Phase 2 Testing: 迁移模板 + 移除 extractRefs #289

Closed
opened 2026-05-16 10:46:21 +00:00 by xiaoju · 0 comments
Owner

验证目标

所有模板的 extractRefs 迁移为 schema casRef 标注,RoleDefinition 类型中移除 extractRefs 字段。

关联

Ref #285 Phase 2

测试步骤

  • Step 1: RoleDefinition 类型无 extractRefs — workflow-protocol types.ts 中 RoleDefinition 不再包含 extractRefs 字段
  • Step 2: develop 模板迁移 — planner/coder schema 加 .meta({ casRef: true }),移除 extractRefs
  • Step 3: solve-issue 模板迁移 — developer/preparer/submitter 移除 extractRefs
  • Step 4: smoke/init 模板迁移 — smoke-greet-entry.ts、develop-entry.ts、CLI init templates 移除 extractRefs
  • Step 5: create-workflow.ts 改用 collectCasRefs — resolveExtractedRefs 替换为 collectCasRefs(roleDef.schema, meta)
  • Step 6: bunx tsc --build 通过 — 无 TS 错误
  • Step 7: bun test 全量通过 — 所有现有测试 pass
  • Step 8: biome check 通过 — 无新 lint 错误

验证完成标准

所有 checkbox 打勾
全量 tsc + test + biome 通过

## 验证目标 所有模板的 extractRefs 迁移为 schema casRef 标注,RoleDefinition 类型中移除 extractRefs 字段。 ## 关联 Ref #285 Phase 2 ## 测试步骤 - [ ] **Step 1: RoleDefinition 类型无 extractRefs** — workflow-protocol types.ts 中 RoleDefinition 不再包含 extractRefs 字段 - [ ] **Step 2: develop 模板迁移** — planner/coder schema 加 .meta({ casRef: true }),移除 extractRefs - [ ] **Step 3: solve-issue 模板迁移** — developer/preparer/submitter 移除 extractRefs - [ ] **Step 4: smoke/init 模板迁移** — smoke-greet-entry.ts、develop-entry.ts、CLI init templates 移除 extractRefs - [ ] **Step 5: create-workflow.ts 改用 collectCasRefs** — resolveExtractedRefs 替换为 collectCasRefs(roleDef.schema, meta) - [ ] **Step 6: bunx tsc --build 通过** — 无 TS 错误 - [ ] **Step 7: bun test 全量通过** — 所有现有测试 pass - [ ] **Step 8: biome check 通过** — 无新 lint 错误 ## 验证完成标准 ✅ 所有 checkbox 打勾 ✅ 全量 tsc + test + biome 通过
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#289