refactor: remove uwf cas subcommand, use ocas CLI #15

Merged
xiaomo merged 1 commits from refactor/remove-uwf-cas into main 2026-06-02 13:45:48 +00:00
Owner

What

Remove uwf cas subcommand entirely. CAS operations now use ocas CLI.

Why

Phase 3 of United Workforce migration (issue #10). uwf cas duplicates ocas functionality.

Changes

  • Removed uwf cas command group from CLI (cli.ts)
  • Deleted commands/cas.ts (confirmed: only used by CLI + tests, not internal modules)
  • Deleted cas.test.ts + cas-exit-code.test.ts
  • Updated .workflows/ and examples/: uwf cas get/has/refs/walkocas get/has/refs/walk
  • Updated scripts/e2e-walkthrough.sh
  • Updated docs and reference files
  • Kept store-global-cas.test.ts (internal store tests)

Migration

  • uwf cas get <hash>ocas get <hash>
  • uwf cas has <hash>ocas has <hash>
  • uwf cas refs <hash>ocas refs <hash>
  • uwf cas walk <hash>ocas walk <hash>
  • Agent text storage: handled internally by uwf pipeline

Verification

  • bun run check
  • bun run test (400 CLI tests)
  • Zero remaining uwf cas references

Closes #10

## What Remove `uwf cas` subcommand entirely. CAS operations now use `ocas` CLI. ## Why Phase 3 of United Workforce migration (issue #10). `uwf cas` duplicates `ocas` functionality. ## Changes - Removed `uwf cas` command group from CLI (cli.ts) - Deleted `commands/cas.ts` (confirmed: only used by CLI + tests, not internal modules) - Deleted `cas.test.ts` + `cas-exit-code.test.ts` - Updated `.workflows/` and `examples/`: `uwf cas get/has/refs/walk` → `ocas get/has/refs/walk` - Updated `scripts/e2e-walkthrough.sh` - Updated docs and reference files - Kept `store-global-cas.test.ts` (internal store tests) ## Migration - `uwf cas get <hash>` → `ocas get <hash>` - `uwf cas has <hash>` → `ocas has <hash>` - `uwf cas refs <hash>` → `ocas refs <hash>` - `uwf cas walk <hash>` → `ocas walk <hash>` - Agent text storage: handled internally by uwf pipeline ## Verification - `bun run check` ✅ - `bun run test` ✅ (400 CLI tests) - Zero remaining `uwf cas` references Closes #10
xingyue added 1 commit 2026-06-02 13:31:18 +00:00
refactor: remove uwf cas subcommand, use ocas CLI
CI / check (pull_request) Failing after 9m57s
1aacf11ad9
- Remove entire 'uwf cas' command group from CLI
- Delete commands/cas.ts (only used by CLI + tests)
- Delete cas.test.ts and cas-exit-code.test.ts
- Update workflow YAMLs: uwf cas get/has/refs/walk → ocas
- Update e2e-walkthrough script to use ocas
- Update docs and reference files
- Keep store-global-cas.test.ts (internal CAS store tests)

CAS operations now go through 'ocas' CLI exclusively.
Agent text storage handled internally by uwf pipeline.

Closes #10
xiaomo approved these changes 2026-06-02 13:45:47 +00:00
xiaomo left a comment
Owner

LGTM

干净的删减:

  • commands/cas.ts + 2 test files 删除,570 行代码移除
  • uwf cas 零残留(grep 确认)
  • workflow YAML 中的 CAS 操作全部替换为 ocas 命令
  • cas put-text 在 solve-issue planner procedure 中改为说明 pipeline 自动处理,不需要 agent 手动调用 — 这个简化很好
  • reference docs 的 CAS 命令表更新为 ocas
LGTM ✅ 干净的删减: - `commands/cas.ts` + 2 test files 删除,570 行代码移除 - `uwf cas` 零残留(grep 确认) - workflow YAML 中的 CAS 操作全部替换为 `ocas` 命令 - `cas put-text` 在 solve-issue planner procedure 中改为说明 pipeline 自动处理,不需要 agent 手动调用 — 这个简化很好 - reference docs 的 CAS 命令表更新为 ocas
xiaomo merged commit 323bbf4d13 into main 2026-06-02 13:45:48 +00:00
xiaomo deleted branch refactor/remove-uwf-cas 2026-06-02 13:45:49 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shazhou/united-workforce#15