Phase 4 Testing: CLI (@uncaged/cli-json-cas) #6

Closed
opened 2026-05-17 09:16:03 +00:00 by xiaoju · 0 comments
Owner

验证目标

命令行工具可用,覆盖基础操作、schema 管理、遍历。

前置

Phase 3 完成(#5)

测试步骤

  • Step 1: init + bootstrap

    json-cas init && json-cas bootstrap
    

    预期: 创建 .cas/ 目录,输出 meta-schema hash

  • Step 2: schema put + list
    预期: 注册 schema 输出 hash,list 显示 name + hash

  • Step 3: put + get
    预期: 存入节点输出 hash,get 输出完整 JSON(type, payload, timestamp)

  • Step 4: verify
    预期: 输出验证结果

  • Step 5: refs + walk
    预期: refs 列出直接引用,walk --format tree 展示树形

  • Step 6: hash(dry run)
    预期: 输出 hash 但不存入

验证完成标准

所有 checkbox 打勾
json-cas --help 输出正确

Ref: #1

## 验证目标 命令行工具可用,覆盖基础操作、schema 管理、遍历。 ## 前置 Phase 3 完成(#5) ## 测试步骤 - [ ] **Step 1: init + bootstrap** ```bash json-cas init && json-cas bootstrap ``` **预期:** 创建 `.cas/` 目录,输出 meta-schema hash - [ ] **Step 2: schema put + list** **预期:** 注册 schema 输出 hash,list 显示 name + hash - [ ] **Step 3: put + get** **预期:** 存入节点输出 hash,get 输出完整 JSON(type, payload, timestamp) - [ ] **Step 4: verify** **预期:** 输出验证结果 - [ ] **Step 5: refs + walk** **预期:** refs 列出直接引用,walk --format tree 展示树形 - [ ] **Step 6: hash(dry run)** **预期:** 输出 hash 但不存入 ## 验证完成标准 ✅ 所有 checkbox 打勾 ✅ `json-cas --help` 输出正确 Ref: #1
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#6