Registry 对象
Registry 是 Huoban 的字架:它组织、索引和发现可复用对象。
v0.1 应定义 Registry 对象,但不急着建设 hosted registry 或 marketplace。
spec 字段
| 字段 | 要求 | 说明 |
|---|---|---|
sources | 必填 | registry 来源数组。 |
sources[].type | 必填 | local、git、http、mcp。 |
sources[].path | 条件必填 | local 来源路径。 |
sources[].url | 条件必填 | git/http/mcp 来源地址。 |
index | 可选 | 静态索引配置。 |
trustPolicyRef | 可选 | 来源信任策略。 |
最小示例
status
常见 conditions:RegistryLoadedSourceIndexedSourceUnavailableTrustPolicyAppliedObjectInvalid