Phase 3 Testing: cas gc + 顶层 alias + deprecation warning #66

Closed
opened 2026-05-07 13:59:36 +00:00 by xiaomo · 0 comments
Owner

验证目标

  • gccas gc
  • 顶层保留 runlive 作为 alias
  • 旧命令(如顶层 list, show, ps 等)加 deprecation warning

关联

Ref: #54

测试步骤

  • Step 1: cas gc 正常工作

    bun run packages/cli-workflow/src/cli.ts cas gc
    

    预期: exit 0,输出 scanned/deleted 统计

  • Step 2: 顶层 run alias

    bun run packages/cli-workflow/src/cli.ts run --help 2>&1
    

    预期: 等价于 thread run,正常工作

  • Step 3: 顶层 live alias

    bun run packages/cli-workflow/src/cli.ts live --help 2>&1
    

    预期: 等价于 thread live,正常工作

  • Step 4: 旧命令 deprecation warning

    bun run packages/cli-workflow/src/cli.ts list 2>&1
    bun run packages/cli-workflow/src/cli.ts ps 2>&1
    

    预期: 功能正常但 stderr 输出 deprecation warning,提示使用 workflow list / thread ps

  • Step 5: 全量测试 + lint

    cd packages/cli-workflow && bun test
    bun run check
    

    预期: 全部通过

## 验证目标 - `gc` → `cas gc` - 顶层保留 `run` 和 `live` 作为 alias - 旧命令(如顶层 `list`, `show`, `ps` 等)加 deprecation warning ## 关联 Ref: #54 ## 测试步骤 - [ ] **Step 1: cas gc 正常工作** ```bash bun run packages/cli-workflow/src/cli.ts cas gc ``` **预期:** exit 0,输出 scanned/deleted 统计 - [ ] **Step 2: 顶层 run alias** ```bash bun run packages/cli-workflow/src/cli.ts run --help 2>&1 ``` **预期:** 等价于 `thread run`,正常工作 - [ ] **Step 3: 顶层 live alias** ```bash bun run packages/cli-workflow/src/cli.ts live --help 2>&1 ``` **预期:** 等价于 `thread live`,正常工作 - [ ] **Step 4: 旧命令 deprecation warning** ```bash bun run packages/cli-workflow/src/cli.ts list 2>&1 bun run packages/cli-workflow/src/cli.ts ps 2>&1 ``` **预期:** 功能正常但 stderr 输出 deprecation warning,提示使用 `workflow list` / `thread ps` - [ ] **Step 5: 全量测试 + lint** ```bash cd packages/cli-workflow && bun test bun run check ``` **预期:** 全部通过
xiaomo self-assigned this 2026-05-07 13:59:36 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#66