Phase 3: refs/walk/gc + var 子命令信封改造 #71

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

Parent: #67

Depends: Phase 2

Scope

图遍历命令

命令 Schema value 类型
refs <hash> @output/refs string[] (hashes)
walk <hash> @output/walk string[] (hashes) 或 tree 字符串
gc @output/gc { collected, remaining, ... }

var 子命令

命令 Schema 备注
var set @output/var-set 替换现有 wrapVariableEnvelope
var get @output/var-get 同上
var delete @output/var-delete 同上
var tag @output/var-tag 同上
var list @output/var-list 同上

walk --format tree

Tree 模式输出信封,value 为 tree 字符串。

删除 wrapVariableEnvelope

统一使用 Phase 1 的 wrapEnvelope

Verification

  • 所有命令输出 { type, value }
  • ucas gc | ucas render -p 管道可工作
  • var 命令行为不变,只是输出格式更新
  • 测试通过

Ref

Implements Phase 3 of #67

## Parent: #67 ## Depends: Phase 2 ## Scope ### 图遍历命令 | 命令 | Schema | value 类型 | |------|--------|-----------| | `refs <hash>` | `@output/refs` | `string[]` (hashes) | | `walk <hash>` | `@output/walk` | `string[]` (hashes) 或 tree 字符串 | | `gc` | `@output/gc` | `{ collected, remaining, ... }` | ### var 子命令 | 命令 | Schema | 备注 | |------|--------|------| | `var set` | `@output/var-set` | 替换现有 `wrapVariableEnvelope` | | `var get` | `@output/var-get` | 同上 | | `var delete` | `@output/var-delete` | 同上 | | `var tag` | `@output/var-tag` | 同上 | | `var list` | `@output/var-list` | 同上 | ### walk --format tree Tree 模式输出信封,value 为 tree 字符串。 ### 删除 `wrapVariableEnvelope` 统一使用 Phase 1 的 `wrapEnvelope`。 ### Verification - 所有命令输出 `{ type, value }` - `ucas gc | ucas render -p` 管道可工作 - var 命令行为不变,只是输出格式更新 - 测试通过 ## Ref Implements Phase 3 of #67
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#71