#69 Phase 1b: 删除 cat 和 schema 子命令 #74

Closed
opened 2026-05-31 12:46:02 +00:00 by xiaoju · 0 comments
Owner

Parent: #69 (Phase 1 of #67)

Depends: Phase 1a

Scope(仅删除命令,不改输出格式)

删除的命令

  1. cat — 含 --payload 逻辑,cmdCat 函数,dispatch case
  2. schema putcmdSchemaPut 函数
  3. schema getcmdSchemaGet 函数
  4. schema listcmdSchemaList 函数
  5. schema validatecmdSchemaValidate 函数
  6. schema dispatch block — 整个 schema 子命令 routing

新增

  • ucas list --type <hash-or-alias> 命令 — 替代 schema list,按类型列出所有 node hash
  • ucas verify 增强 — 在验 hash 完整性基础上,增加 payload 对 schema 的验证(吸收 schema validate)

更新

  • Help 文本移除 cat/schema 条目,新增 list
  • 删除相关测试,新增 list/verify 增强测试

不做的事

  • 不改任何命令的输出格式
  • 不注册 @output/* schema

Verification

  • bun test 通过
  • ucas cat / ucas schema put 等报 unknown command
  • ucas list --type @schema 能列出所有 schema
  • ucas verify <hash> 同时验完整性和 schema 合规
## Parent: #69 (Phase 1 of #67) ## Depends: Phase 1a ## Scope(仅删除命令,不改输出格式) ### 删除的命令 1. **`cat`** — 含 `--payload` 逻辑,`cmdCat` 函数,dispatch case 2. **`schema put`** — `cmdSchemaPut` 函数 3. **`schema get`** — `cmdSchemaGet` 函数 4. **`schema list`** — `cmdSchemaList` 函数 5. **`schema validate`** — `cmdSchemaValidate` 函数 6. **`schema` dispatch block** — 整个 schema 子命令 routing ### 新增 - `ucas list --type <hash-or-alias>` 命令 — 替代 `schema list`,按类型列出所有 node hash - `ucas verify` 增强 — 在验 hash 完整性基础上,增加 payload 对 schema 的验证(吸收 schema validate) ### 更新 - Help 文本移除 cat/schema 条目,新增 list - 删除相关测试,新增 list/verify 增强测试 ### 不做的事 - ❌ 不改任何命令的输出格式 - ❌ 不注册 @output/* schema ### Verification - `bun test` 通过 - `ucas cat` / `ucas schema put` 等报 unknown command - `ucas list --type @schema` 能列出所有 schema - `ucas verify <hash>` 同时验完整性和 schema 合规
This repo is archived. You cannot comment on issues.
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/json-cas#74