Phase 1+2 Testing: @uncaged/workflow scaffold + types migration #321

Open
opened 2026-05-05 10:19:44 +00:00 by xiaoju · 0 comments
Owner

验证目标

@uncaged/workflow 包已创建,所有 workflow types 和 constants 从 core 搬到 workflow 包,core 不再有 workflow.ts

Parent: #320

测试步骤

  • Step 1: Package exists and builds

    ls packages/workflow/package.json
    cat packages/workflow/package.json | jq .name
    # 预期: "@uncaged/workflow"
    cd packages/workflow && pnpm run build
    # 预期: 构建成功
    
  • Step 2: Workflow types exported from @uncaged/workflow

    grep -c "START\|END\|WorkflowDefinition\|ThreadContext\|Role\|Moderator" packages/workflow/dist/index.d.ts
    # 预期: >= 6 (所有核心类型都有)
    
  • Step 3: WorkflowConfig types in @uncaged/workflow

    grep "WorkflowConfig\|DropOverflowConfig\|QueueOverflowConfig" packages/workflow/dist/index.d.ts
    # 预期: 三个类型都存在
    
  • Step 4: core/src/workflow.ts deleted

    test ! -f packages/core/src/workflow.ts && echo "PASS" || echo "FAIL"
    # 预期: PASS
    
  • Step 5: core re-exports from @uncaged/workflow

    grep "@uncaged/workflow" packages/core/src/index.ts
    # 预期: 有 re-export 行
    
  • Step 6: Full workspace build succeeds

    pnpm run build
    # 预期: 0 errors
    
  • Step 7: Full test suite passes

    pnpm test
    # 预期: all tests pass
    

验证完成标准

所有 checkbox 打勾
pnpm run check (biome) 无 error

## 验证目标 `@uncaged/workflow` 包已创建,所有 workflow types 和 constants 从 core 搬到 workflow 包,core 不再有 `workflow.ts`。 Parent: #320 ## 测试步骤 - [ ] **Step 1: Package exists and builds** ```bash ls packages/workflow/package.json cat packages/workflow/package.json | jq .name # 预期: "@uncaged/workflow" cd packages/workflow && pnpm run build # 预期: 构建成功 ``` - [ ] **Step 2: Workflow types exported from @uncaged/workflow** ```bash grep -c "START\|END\|WorkflowDefinition\|ThreadContext\|Role\|Moderator" packages/workflow/dist/index.d.ts # 预期: >= 6 (所有核心类型都有) ``` - [ ] **Step 3: WorkflowConfig types in @uncaged/workflow** ```bash grep "WorkflowConfig\|DropOverflowConfig\|QueueOverflowConfig" packages/workflow/dist/index.d.ts # 预期: 三个类型都存在 ``` - [ ] **Step 4: core/src/workflow.ts deleted** ```bash test ! -f packages/core/src/workflow.ts && echo "PASS" || echo "FAIL" # 预期: PASS ``` - [ ] **Step 5: core re-exports from @uncaged/workflow** ```bash grep "@uncaged/workflow" packages/core/src/index.ts # 预期: 有 re-export 行 ``` - [ ] **Step 6: Full workspace build succeeds** ```bash pnpm run build # 预期: 0 errors ``` - [ ] **Step 7: Full test suite passes** ```bash pnpm test # 预期: all tests pass ``` ## 验证完成标准 ✅ 所有 checkbox 打勾 ✅ pnpm run check (biome) 无 error
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/nerve#321