Skip to main content

Registry 对象

Registry 是 Huoban 的字架:它组织、索引和发现可复用对象。 v0.1 应定义 Registry 对象,但不急着建设 hosted registry 或 marketplace。

spec 字段

字段要求说明
sources必填registry 来源数组。
sources[].type必填localgithttpmcp
sources[].path条件必填local 来源路径。
sources[].url条件必填git/http/mcp 来源地址。
index可选静态索引配置。
trustPolicyRef可选来源信任策略。

最小示例

apiVersion: huoban.dev/v1alpha1
kind: Registry
metadata:
  name: local-huoban-registry
spec:
  sources:
    - type: local
      path: ./huoban
    - type: git
      url: https://example.com/org/huoban-objects.git
  index:
    includeKinds:
      - Skill
      - Adapter
      - Flow
      - Profile

status

常见 conditions:
  • RegistryLoaded
  • SourceIndexed
  • SourceUnavailable
  • TrustPolicyApplied
  • ObjectInvalid

设计约束

Registry 不是 marketplace。早期 Registry 的目标是本地发现、静态索引和 schema validation,不做排名、推荐、托管发布和商业分发。