refactor: extract planner and coder into standalone role packages

- New @uncaged/workflow-role-planner (phaseSchema, createPlannerRole)
- New @uncaged/workflow-role-coder (coderMetaSchema, createCoderRole)
- solve-issue template imports from new packages, keeps dry-run defaults

小橘 <xiaoju@shazhou.work>
This commit is contained in:
2026-05-06 11:40:19 +00:00
parent 45bb5af99a
commit c9cdfe37db
14 changed files with 225 additions and 65 deletions
@@ -8,9 +8,11 @@ import {
validateWorkflowDescriptor,
} from "@uncaged/workflow";
import type { PlannerMeta } from "@uncaged/workflow-role-planner";
import { buildSolveIssueDescriptor } from "../src/descriptor.js";
import { solveIssueModerator } from "../src/moderator.js";
import { createSolveIssueRoles, type PlannerMeta, type SolveIssueMeta } from "../src/roles.js";
import { createSolveIssueRoles, type SolveIssueMeta } from "../src/roles.js";
const DEFAULT_PHASES: PlannerMeta["phases"] = [
{ name: "phase-a", description: "Do the work", acceptance: "Done" },