rosettify 2.2.1 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/commands/help/index.d.ts.map +1 -1
  2. package/dist/commands/help/index.js +1 -2
  3. package/dist/commands/help/index.js.map +1 -1
  4. package/dist/commands/plan/core.d.ts +38 -31
  5. package/dist/commands/plan/core.d.ts.map +1 -1
  6. package/dist/commands/plan/core.js.map +1 -1
  7. package/dist/commands/plan/create-with-template.d.ts +7 -16
  8. package/dist/commands/plan/create-with-template.d.ts.map +1 -1
  9. package/dist/commands/plan/create-with-template.js +19 -14
  10. package/dist/commands/plan/create-with-template.js.map +1 -1
  11. package/dist/commands/plan/create.d.ts +3 -55
  12. package/dist/commands/plan/create.d.ts.map +1 -1
  13. package/dist/commands/plan/create.js +4 -38
  14. package/dist/commands/plan/create.js.map +1 -1
  15. package/dist/commands/plan/errors.d.ts +2 -0
  16. package/dist/commands/plan/errors.d.ts.map +1 -1
  17. package/dist/commands/plan/errors.js +2 -0
  18. package/dist/commands/plan/errors.js.map +1 -1
  19. package/dist/commands/plan/help-content.d.ts +42 -19
  20. package/dist/commands/plan/help-content.d.ts.map +1 -1
  21. package/dist/commands/plan/help-content.js +74 -47
  22. package/dist/commands/plan/help-content.js.map +1 -1
  23. package/dist/commands/plan/index.d.ts.map +1 -1
  24. package/dist/commands/plan/index.js +16 -10
  25. package/dist/commands/plan/index.js.map +1 -1
  26. package/dist/commands/plan/list-templates.d.ts +4 -27
  27. package/dist/commands/plan/list-templates.d.ts.map +1 -1
  28. package/dist/commands/plan/list-templates.js +1 -7
  29. package/dist/commands/plan/list-templates.js.map +1 -1
  30. package/dist/commands/plan/next.d.ts +3 -16
  31. package/dist/commands/plan/next.d.ts.map +1 -1
  32. package/dist/commands/plan/next.js +67 -25
  33. package/dist/commands/plan/next.js.map +1 -1
  34. package/dist/commands/plan/output.d.ts +10 -21
  35. package/dist/commands/plan/output.d.ts.map +1 -1
  36. package/dist/commands/plan/output.js +6 -6
  37. package/dist/commands/plan/output.js.map +1 -1
  38. package/dist/commands/plan/query.d.ts +7 -2
  39. package/dist/commands/plan/query.d.ts.map +1 -1
  40. package/dist/commands/plan/query.js +6 -3
  41. package/dist/commands/plan/query.js.map +1 -1
  42. package/dist/commands/plan/schemas.d.ts +44 -151
  43. package/dist/commands/plan/schemas.d.ts.map +1 -1
  44. package/dist/commands/plan/schemas.js +200 -68
  45. package/dist/commands/plan/schemas.js.map +1 -1
  46. package/dist/commands/plan/show-status.d.ts +9 -22
  47. package/dist/commands/plan/show-status.d.ts.map +1 -1
  48. package/dist/commands/plan/show-status.js +7 -10
  49. package/dist/commands/plan/show-status.js.map +1 -1
  50. package/dist/commands/plan/templates/create/for-orchestrator.d.ts +14 -33
  51. package/dist/commands/plan/templates/create/for-orchestrator.d.ts.map +1 -1
  52. package/dist/commands/plan/templates/create/for-orchestrator.js +14 -38
  53. package/dist/commands/plan/templates/create/for-orchestrator.js.map +1 -1
  54. package/dist/commands/plan/templates/index.d.ts +29 -45
  55. package/dist/commands/plan/templates/index.d.ts.map +1 -1
  56. package/dist/commands/plan/templates/index.js +2 -0
  57. package/dist/commands/plan/templates/index.js.map +1 -1
  58. package/dist/commands/plan/templates/render.d.ts +18 -0
  59. package/dist/commands/plan/templates/render.d.ts.map +1 -1
  60. package/dist/commands/plan/templates/render.js +29 -1
  61. package/dist/commands/plan/templates/render.js.map +1 -1
  62. package/dist/commands/plan/templates/upsert/for-subagent.d.ts +10 -9
  63. package/dist/commands/plan/templates/upsert/for-subagent.d.ts.map +1 -1
  64. package/dist/commands/plan/templates/upsert/for-subagent.js +12 -11
  65. package/dist/commands/plan/templates/upsert/for-subagent.js.map +1 -1
  66. package/dist/commands/plan/update-status.d.ts +2 -3
  67. package/dist/commands/plan/update-status.d.ts.map +1 -1
  68. package/dist/commands/plan/update-status.js +2 -3
  69. package/dist/commands/plan/update-status.js.map +1 -1
  70. package/dist/commands/plan/upsert-with-template.d.ts +7 -16
  71. package/dist/commands/plan/upsert-with-template.d.ts.map +1 -1
  72. package/dist/commands/plan/upsert-with-template.js +19 -15
  73. package/dist/commands/plan/upsert-with-template.js.map +1 -1
  74. package/dist/commands/plan/upsert.d.ts +3 -16
  75. package/dist/commands/plan/upsert.d.ts.map +1 -1
  76. package/dist/commands/plan/upsert.js +9 -17
  77. package/dist/commands/plan/upsert.js.map +1 -1
  78. package/dist/frontends/cli.d.ts.map +1 -1
  79. package/dist/frontends/cli.js +18 -8
  80. package/dist/frontends/cli.js.map +1 -1
  81. package/dist/frontends/mcp.d.ts.map +1 -1
  82. package/dist/frontends/mcp.js +2 -1
  83. package/dist/frontends/mcp.js.map +1 -1
  84. package/dist/registry/types.d.ts +2 -0
  85. package/dist/registry/types.d.ts.map +1 -1
  86. package/dist/shared/version.d.ts +2 -0
  87. package/dist/shared/version.d.ts.map +1 -0
  88. package/dist/shared/version.js +8 -0
  89. package/dist/shared/version.js.map +1 -0
  90. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  import type { RunEnvelope } from "../../registry/types.js";
2
- import { type ShowStatusPlanResult, type ShowStatusPhaseResult, type ShowStatusStepResult } from "./core.js";
2
+ import { type ShowStatusPlanResult, type PlanPhaseSummary, type PlanStepDetail } from "./core.js";
3
3
  export declare const showStatusInputSchema: {
4
4
  type: "object";
5
5
  properties: {
@@ -12,28 +12,15 @@ export declare const showStatusInputSchema: {
12
12
  description: string;
13
13
  };
14
14
  };
15
- required: never[];
16
15
  };
17
16
  export declare const showStatusOutputSchema: {
18
- type: "object";
19
- description: string;
20
- properties: {
21
- name: {
22
- type: string;
23
- };
24
- status: {
25
- type: string;
26
- };
27
- phases: {
28
- type: string;
29
- };
30
- steps: {
31
- type: string;
32
- };
33
- phase_summary: {
34
- type: string;
35
- };
36
- };
17
+ oneOf: ({
18
+ $ref: "ShowStatusPlanResult";
19
+ } | {
20
+ $ref: "PlanPhaseSummary";
21
+ } | {
22
+ $ref: "PlanStepDetail";
23
+ })[];
37
24
  };
38
- export declare function cmdShowStatus(planFile: string, targetId?: string): Promise<RunEnvelope<ShowStatusPlanResult | ShowStatusPhaseResult | ShowStatusStepResult>>;
25
+ export declare function cmdShowStatus(planFile: string, targetId?: string): Promise<RunEnvelope<ShowStatusPlanResult | PlanPhaseSummary | PlanStepDetail>>;
39
26
  //# sourceMappingURL=show-status.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"show-status.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/show-status.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAK3D,OAAO,EAIL,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EAG1B,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;CAOjC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;CAUlC,CAAC;AAwBF,wBAAsB,aAAa,CACjC,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CACR,WAAW,CACT,oBAAoB,GAAG,qBAAqB,GAAG,oBAAoB,CACpE,CACF,CA4EA"}
1
+ {"version":3,"file":"show-status.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/show-status.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAK3D,OAAO,EAIL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EAGpB,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;CAMjC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;CAMlC,CAAC;AAwBF,wBAAsB,aAAa,CACjC,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,WAAW,CAAC,oBAAoB,GAAG,gBAAgB,GAAG,cAAc,CAAC,CAAC,CA8EhF"}
@@ -11,18 +11,13 @@ export const showStatusInputSchema = {
11
11
  plan_file: { type: "string", description: "Path to the plan JSON file" },
12
12
  target_id: { type: "string", description: "entire_plan | phase-id | step-id (default: entire_plan)" },
13
13
  },
14
- required: [],
15
14
  };
16
15
  export const showStatusOutputSchema = {
17
- type: "object",
18
- description: "FR-PLAN-0013 — status summary for plan, phase, or step",
19
- properties: {
20
- name: { type: "string" },
21
- status: { type: "string" },
22
- phases: { type: "object" },
23
- steps: { type: "object" },
24
- phase_summary: { type: "array" },
25
- },
16
+ oneOf: [
17
+ { $ref: "ShowStatusPlanResult" },
18
+ { $ref: "PlanPhaseSummary" },
19
+ { $ref: "PlanStepDetail" },
20
+ ],
26
21
  };
27
22
  function computeTotals(statuses) {
28
23
  const t = {
@@ -81,6 +76,7 @@ export async function cmdShowStatus(planFile, targetId) {
81
76
  }
82
77
  const phase = findPhase(plan, targetId);
83
78
  if (phase) {
79
+ // FR-PLAN-0013 — phase-target returns PlanPhaseSummary (DRY reuse)
84
80
  const result = {
85
81
  id: phase.id,
86
82
  name: phase.name,
@@ -97,6 +93,7 @@ export async function cmdShowStatus(planFile, targetId) {
97
93
  const found = findStep(plan, targetId);
98
94
  if (found) {
99
95
  const { step } = found;
96
+ // FR-PLAN-0013 — step-target returns PlanStepDetail
100
97
  const result = {
101
98
  id: step.id,
102
99
  name: step.name,
@@ -1 +1 @@
1
- {"version":3,"file":"show-status.js","sourceRoot":"","sources":["../../../src/commands/plan/show-status.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,6DAA6D;AAG7D,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OA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K,EAAE,CAAC;YACV,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;YACvB,oDAAoD;YACpD,MAAM,MAAM,GAAmB;gBAC7B,EAAE,EAAE,IAAI,CAAC,EAAE;gBACX,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,MAAM;gBAC7B,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,EAAE;aAClC,CAAC;YACF,IAAI,IAAI,CAAC,QAAQ;gBAAE,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;YACnD,IAAI,IAAI,CAAC,IAAI;gBAAE,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;YACvC,IAAI,IAAI,CAAC,KAAK;gBAAE,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;YAC1C,MAAM,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,kBAAkB,CAAC,CAAC;YACxD,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;QACpB,CAAC;QAED,OAAO,GAAG,CAAC,kBAAkB,CAAC,CAAC;IACjC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,GAAG,GAAG,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACvD,OAAO,GAAG,CAAC,mBAAmB,GAAG,EAAE,CAAC,CAAC;IACvC,CAAC;AACH,CAAC"}
@@ -7,6 +7,7 @@ export declare const forOrchestrator: {
7
7
  readonly name: "for-orchestrator";
8
8
  readonly brief: "Bootstrap a new plan with the Rosetta orchestrator preparation phase.";
9
9
  readonly placeholders: readonly ["plan-name", "plan-description"];
10
+ readonly produces: "A new plan with one preparation phase (ph-prep) of 5 Rosetta orchestrator bootstrap steps.";
10
11
  readonly content: {
11
12
  readonly name: "[plan-name]";
12
13
  readonly description: "[plan-description]";
@@ -19,43 +20,23 @@ export declare const forOrchestrator: {
19
20
  readonly steps: readonly [{
20
21
  readonly id: "ph-prep-s-load-context-instructions";
21
22
  readonly name: "Load bootstrap context";
22
- readonly prompt: "Call get_context_instructions exactly once to load the bundled bootstrap rules (core policy, execution policy, guardrails, HITL, rosetta files). This is the blocking prerequisite gate (Prep Step 1). Do not call any other tool first.";
23
+ readonly prompt: "USE SKILL `load-context-instructions`. Execute ALL returned prep steps.";
23
24
  }, {
24
- readonly id: "ph-prep-s-create-todo-tasks";
25
- readonly name: "Create todo tasks for prep and workflow";
26
- readonly prompt: "Create separate, dedicated, detailed todo tasks covering all actions of Prep Step 2 and Prep Step 3 (loading workflow, creating workflow-phase tasks, executing the workflow). Output to the user: 'Tasks Created: [task ids returned by the tool]'.";
25
+ readonly id: "ph-prep-s-read-docs";
26
+ readonly name: "Read project context";
27
+ readonly prompt: "USE SKILL `load-context` as the canonical current context loader. The skill is required even when its expected outputs already look satisfied.";
27
28
  }, {
28
- readonly id: "ph-prep-s-use-load-context-skill";
29
- readonly name: "Use load-context skill";
30
- readonly prompt: "USE SKILL load-context as the canonical current-context loader. The skill is required even when its expected outputs already look satisfied.";
29
+ readonly id: "ph-prep-s-orchestrator-contract";
30
+ readonly name: "Load orchestrator contract";
31
+ readonly prompt: "MUST USE SKILL `orchestrator-contract` as first action before dispatching any subagents. MUST USE SKILL `hitl` unless explicitly requested in prompt with exactly `No HITL`.";
31
32
  }, {
32
- readonly id: "ph-prep-s-read-context-architecture";
33
- readonly name: "Read CONTEXT.md and ARCHITECTURE.md in full";
34
- readonly prompt: "Read docs/CONTEXT.md and docs/ARCHITECTURE.md in full. Read all lines at once. These files carry critical project context.";
33
+ readonly id: "ph-prep-s-load-workflow";
34
+ readonly name: "Load workflow";
35
+ readonly prompt: "MUST USE SKILL `load-workflow`.";
35
36
  }, {
36
- readonly id: "ph-prep-s-grep-implementation-memory";
37
- readonly name: "Grep headers of IMPLEMENTATION.md and MEMORY.md";
38
- readonly prompt: "Grep '^#{1,3}' headers of agents/IMPLEMENTATION.md and agents/MEMORY.md. Read further sections only as needed.";
39
- }, {
40
- readonly id: "ph-prep-s-validate-requirements";
41
- readonly name: "Use and validate requirements";
42
- readonly prompt: "If docs/REQUIREMENTS exists, use and validate the relevant requirement set. Apply the requirements-use skill when present.";
43
- }, {
44
- readonly id: "ph-prep-s-identify-request-size";
45
- readonly name: "Identify request size";
46
- readonly prompt: "Classify the user request as SMALL (1-2 file changes, single area), MEDIUM (up to ~10 file changes, single area), or LARGE (more than 10 file changes or multiple areas). Re-evaluate and announce if the size changes later.";
47
- }, {
48
- readonly id: "ph-prep-s-acquire-workflow";
49
- readonly name: "Acquire matching workflow";
50
- readonly prompt: "ACQUIRE the most matching workflow tag from KB (for example workflows/coding-flow.md) and load its full definition. The workflow guides the end-to-end execution for the request size.";
51
- }, {
52
- readonly id: "ph-prep-s-add-workflow-tasks";
53
- readonly name: "Add todo tasks for workflow phases";
54
- readonly prompt: "Add and update separate, dedicated todo tasks reflecting the loaded workflow's phases. Output to the user: 'Tasks Created: [task ids returned by the tool]'.";
55
- }, {
56
- readonly id: "ph-prep-s-execute-workflow";
57
- readonly name: "Execute the workflow";
58
- readonly prompt: "Proceed executing the loaded workflow end-to-end, integrating questioning, planning, implementation, review, validation, and HITL gates as the workflow prescribes.";
37
+ readonly id: "ph-prep-s-add-workflow-phases";
38
+ readonly name: "Add workflow phases";
39
+ readonly prompt: "Add workflow phases from the loaded workflow into this plan — one plan phase per workflow phase, each with dedicated, detailed, and specific steps. Must add phase to identify request size after intial discovery. Include state-restore and resume steps if applicable.";
59
40
  }];
60
41
  }];
61
42
  };
@@ -1 +1 @@
1
- {"version":3,"file":"for-orchestrator.d.ts","sourceRoot":"","sources":["../../../../../src/commands/plan/templates/create/for-orchestrator.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqElB,CAAC"}
1
+ {"version":3,"file":"for-orchestrator.d.ts","sourceRoot":"","sources":["../../../../../src/commands/plan/templates/create/for-orchestrator.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6ClB,CAAC"}
@@ -9,6 +9,7 @@ export const forOrchestrator = {
9
9
  name: "for-orchestrator",
10
10
  brief: "Bootstrap a new plan with the Rosetta orchestrator preparation phase.",
11
11
  placeholders: ["plan-name", "plan-description"],
12
+ produces: "A new plan with one preparation phase (ph-prep) of 5 Rosetta orchestrator bootstrap steps.",
12
13
  content: {
13
14
  name: "[plan-name]",
14
15
  description: "[plan-description]",
@@ -23,52 +24,27 @@ export const forOrchestrator = {
23
24
  {
24
25
  id: "ph-prep-s-load-context-instructions",
25
26
  name: "Load bootstrap context",
26
- prompt: "Call get_context_instructions exactly once to load the bundled bootstrap rules (core policy, execution policy, guardrails, HITL, rosetta files). This is the blocking prerequisite gate (Prep Step 1). Do not call any other tool first.",
27
+ prompt: "USE SKILL `load-context-instructions`. Execute ALL returned prep steps.",
27
28
  },
28
29
  {
29
- id: "ph-prep-s-create-todo-tasks",
30
- name: "Create todo tasks for prep and workflow",
31
- prompt: "Create separate, dedicated, detailed todo tasks covering all actions of Prep Step 2 and Prep Step 3 (loading workflow, creating workflow-phase tasks, executing the workflow). Output to the user: 'Tasks Created: [task ids returned by the tool]'.",
30
+ id: "ph-prep-s-read-docs",
31
+ name: "Read project context",
32
+ prompt: "USE SKILL `load-context` as the canonical current context loader. The skill is required even when its expected outputs already look satisfied.",
32
33
  },
33
34
  {
34
- id: "ph-prep-s-use-load-context-skill",
35
- name: "Use load-context skill",
36
- prompt: "USE SKILL load-context as the canonical current-context loader. The skill is required even when its expected outputs already look satisfied.",
35
+ id: "ph-prep-s-orchestrator-contract",
36
+ name: "Load orchestrator contract",
37
+ prompt: "MUST USE SKILL `orchestrator-contract` as first action before dispatching any subagents. MUST USE SKILL `hitl` unless explicitly requested in prompt with exactly `No HITL`.",
37
38
  },
38
39
  {
39
- id: "ph-prep-s-read-context-architecture",
40
- name: "Read CONTEXT.md and ARCHITECTURE.md in full",
41
- prompt: "Read docs/CONTEXT.md and docs/ARCHITECTURE.md in full. Read all lines at once. These files carry critical project context.",
40
+ id: "ph-prep-s-load-workflow",
41
+ name: "Load workflow",
42
+ prompt: "MUST USE SKILL `load-workflow`.",
42
43
  },
43
44
  {
44
- id: "ph-prep-s-grep-implementation-memory",
45
- name: "Grep headers of IMPLEMENTATION.md and MEMORY.md",
46
- prompt: "Grep '^#{1,3}' headers of agents/IMPLEMENTATION.md and agents/MEMORY.md. Read further sections only as needed.",
47
- },
48
- {
49
- id: "ph-prep-s-validate-requirements",
50
- name: "Use and validate requirements",
51
- prompt: "If docs/REQUIREMENTS exists, use and validate the relevant requirement set. Apply the requirements-use skill when present.",
52
- },
53
- {
54
- id: "ph-prep-s-identify-request-size",
55
- name: "Identify request size",
56
- prompt: "Classify the user request as SMALL (1-2 file changes, single area), MEDIUM (up to ~10 file changes, single area), or LARGE (more than 10 file changes or multiple areas). Re-evaluate and announce if the size changes later.",
57
- },
58
- {
59
- id: "ph-prep-s-acquire-workflow",
60
- name: "Acquire matching workflow",
61
- prompt: "ACQUIRE the most matching workflow tag from KB (for example workflows/coding-flow.md) and load its full definition. The workflow guides the end-to-end execution for the request size.",
62
- },
63
- {
64
- id: "ph-prep-s-add-workflow-tasks",
65
- name: "Add todo tasks for workflow phases",
66
- prompt: "Add and update separate, dedicated todo tasks reflecting the loaded workflow's phases. Output to the user: 'Tasks Created: [task ids returned by the tool]'.",
67
- },
68
- {
69
- id: "ph-prep-s-execute-workflow",
70
- name: "Execute the workflow",
71
- prompt: "Proceed executing the loaded workflow end-to-end, integrating questioning, planning, implementation, review, validation, and HITL gates as the workflow prescribes.",
45
+ id: "ph-prep-s-add-workflow-phases",
46
+ name: "Add workflow phases",
47
+ prompt: "Add workflow phases from the loaded workflow into this plan — one plan phase per workflow phase, each with dedicated, detailed, and specific steps. Must add phase to identify request size after intial discovery. Include state-restore and resume steps if applicable.",
72
48
  },
73
49
  ],
74
50
  },
@@ -1 +1 @@
1
- {"version":3,"file":"for-orchestrator.js","sourceRoot":"","sources":["../../../../../src/commands/plan/templates/create/for-orchestrator.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,2GAA2G;AAE3G;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,uEAAuE;IAC9E,YAAY,EAAE,CAAC,WAAW,EAAE,kBAAkB,CAAU;IACxD,OAAO,EAAE;QACP,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,oBAAoB;QACjC,gBAAgB,EAAE,IAAI;QACtB,MAAM,EAAE;YACN;gBACE,EAAE,EAAE,SAAS;gBACb,IAAI,EAAE,aAAa;gBACnB,WAAW,EAAE,yGAAyG;gBACtH,UAAU,EAAE,EAAE;gBACd,KAAK,EAAE;oBACL;wBACE,EAAE,EAAE,qCAAqC;wBACzC,IAAI,EAAE,wBAAwB;wBAC9B,MAAM,EAAE,0OAA0O;qBACnP;oBACD;wBACE,EAAE,EAAE,6BAA6B;wBACjC,IAAI,EAAE,yCAAyC;wBAC/C,MAAM,EAAE,sPAAsP;qBAC/P;oBACD;wBACE,EAAE,EAAE,kCAAkC;wBACtC,IAAI,EAAE,wBAAwB;wBAC9B,MAAM,EAAE,8IAA8I;qBACvJ;oBACD;wBACE,EAAE,EAAE,qCAAqC;wBACzC,IAAI,EAAE,6CAA6C;wBACnD,MAAM,EAAE,4HAA4H;qBACrI;oBACD;wBACE,EAAE,EAAE,sCAAsC;wBAC1C,IAAI,EAAE,iDAAiD;wBACvD,MAAM,EAAE,gHAAgH;qBACzH;oBACD;wBACE,EAAE,EAAE,iCAAiC;wBACrC,IAAI,EAAE,+BAA+B;wBACrC,MAAM,EAAE,4HAA4H;qBACrI;oBACD;wBACE,EAAE,EAAE,iCAAiC;wBACrC,IAAI,EAAE,uBAAuB;wBAC7B,MAAM,EAAE,+NAA+N;qBACxO;oBACD;wBACE,EAAE,EAAE,4BAA4B;wBAChC,IAAI,EAAE,2BAA2B;wBACjC,MAAM,EAAE,wLAAwL;qBACjM;oBACD;wBACE,EAAE,EAAE,8BAA8B;wBAClC,IAAI,EAAE,oCAAoC;wBAC1C,MAAM,EAAE,8JAA8J;qBACvK;oBACD;wBACE,EAAE,EAAE,4BAA4B;wBAChC,IAAI,EAAE,sBAAsB;wBAC5B,MAAM,EAAE,qKAAqK;qBAC9K;iBACF;aACF;SACF;KACF;CACO,CAAC"}
1
+ {"version":3,"file":"for-orchestrator.js","sourceRoot":"","sources":["../../../../../src/commands/plan/templates/create/for-orchestrator.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,2GAA2G;AAE3G;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,uEAAuE;IAC9E,YAAY,EAAE,CAAC,WAAW,EAAE,kBAAkB,CAAU;IACxD,QAAQ,EAAE,4FAA4F;IACtG,OAAO,EAAE;QACP,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,oBAAoB;QACjC,gBAAgB,EAAE,IAAI;QACtB,MAAM,EAAE;YACN;gBACE,EAAE,EAAE,SAAS;gBACb,IAAI,EAAE,aAAa;gBACnB,WAAW,EAAE,yGAAyG;gBACtH,UAAU,EAAE,EAAE;gBACd,KAAK,EAAE;oBACL;wBACE,EAAE,EAAE,qCAAqC;wBACzC,IAAI,EAAE,wBAAwB;wBAC9B,MAAM,EAAE,yEAAyE;qBAClF;oBACD;wBACE,EAAE,EAAE,qBAAqB;wBACzB,IAAI,EAAE,sBAAsB;wBAC5B,MAAM,EAAE,gJAAgJ;qBACzJ;oBACD;wBACE,EAAE,EAAE,iCAAiC;wBACrC,IAAI,EAAE,4BAA4B;wBAClC,MAAM,EAAE,8KAA8K;qBACvL;oBACD;wBACE,EAAE,EAAE,yBAAyB;wBAC7B,IAAI,EAAE,eAAe;wBACrB,MAAM,EAAE,iCAAiC;qBAC1C;oBACD;wBACE,EAAE,EAAE,+BAA+B;wBACnC,IAAI,EAAE,qBAAqB;wBAC3B,MAAM,EAAC,2QAA2Q;qBACnR;iBACF;aACF;SACF;KACF;CACO,CAAC"}
@@ -3,6 +3,7 @@ export declare const createTemplates: {
3
3
  readonly name: "for-orchestrator";
4
4
  readonly brief: "Bootstrap a new plan with the Rosetta orchestrator preparation phase.";
5
5
  readonly placeholders: readonly ["plan-name", "plan-description"];
6
+ readonly produces: "A new plan with one preparation phase (ph-prep) of 5 Rosetta orchestrator bootstrap steps.";
6
7
  readonly content: {
7
8
  readonly name: "[plan-name]";
8
9
  readonly description: "[plan-description]";
@@ -15,43 +16,23 @@ export declare const createTemplates: {
15
16
  readonly steps: readonly [{
16
17
  readonly id: "ph-prep-s-load-context-instructions";
17
18
  readonly name: "Load bootstrap context";
18
- readonly prompt: "Call get_context_instructions exactly once to load the bundled bootstrap rules (core policy, execution policy, guardrails, HITL, rosetta files). This is the blocking prerequisite gate (Prep Step 1). Do not call any other tool first.";
19
+ readonly prompt: "USE SKILL `load-context-instructions`. Execute ALL returned prep steps.";
19
20
  }, {
20
- readonly id: "ph-prep-s-create-todo-tasks";
21
- readonly name: "Create todo tasks for prep and workflow";
22
- readonly prompt: "Create separate, dedicated, detailed todo tasks covering all actions of Prep Step 2 and Prep Step 3 (loading workflow, creating workflow-phase tasks, executing the workflow). Output to the user: 'Tasks Created: [task ids returned by the tool]'.";
21
+ readonly id: "ph-prep-s-read-docs";
22
+ readonly name: "Read project context";
23
+ readonly prompt: "USE SKILL `load-context` as the canonical current context loader. The skill is required even when its expected outputs already look satisfied.";
23
24
  }, {
24
- readonly id: "ph-prep-s-use-load-context-skill";
25
- readonly name: "Use load-context skill";
26
- readonly prompt: "USE SKILL load-context as the canonical current-context loader. The skill is required even when its expected outputs already look satisfied.";
25
+ readonly id: "ph-prep-s-orchestrator-contract";
26
+ readonly name: "Load orchestrator contract";
27
+ readonly prompt: "MUST USE SKILL `orchestrator-contract` as first action before dispatching any subagents. MUST USE SKILL `hitl` unless explicitly requested in prompt with exactly `No HITL`.";
27
28
  }, {
28
- readonly id: "ph-prep-s-read-context-architecture";
29
- readonly name: "Read CONTEXT.md and ARCHITECTURE.md in full";
30
- readonly prompt: "Read docs/CONTEXT.md and docs/ARCHITECTURE.md in full. Read all lines at once. These files carry critical project context.";
29
+ readonly id: "ph-prep-s-load-workflow";
30
+ readonly name: "Load workflow";
31
+ readonly prompt: "MUST USE SKILL `load-workflow`.";
31
32
  }, {
32
- readonly id: "ph-prep-s-grep-implementation-memory";
33
- readonly name: "Grep headers of IMPLEMENTATION.md and MEMORY.md";
34
- readonly prompt: "Grep '^#{1,3}' headers of agents/IMPLEMENTATION.md and agents/MEMORY.md. Read further sections only as needed.";
35
- }, {
36
- readonly id: "ph-prep-s-validate-requirements";
37
- readonly name: "Use and validate requirements";
38
- readonly prompt: "If docs/REQUIREMENTS exists, use and validate the relevant requirement set. Apply the requirements-use skill when present.";
39
- }, {
40
- readonly id: "ph-prep-s-identify-request-size";
41
- readonly name: "Identify request size";
42
- readonly prompt: "Classify the user request as SMALL (1-2 file changes, single area), MEDIUM (up to ~10 file changes, single area), or LARGE (more than 10 file changes or multiple areas). Re-evaluate and announce if the size changes later.";
43
- }, {
44
- readonly id: "ph-prep-s-acquire-workflow";
45
- readonly name: "Acquire matching workflow";
46
- readonly prompt: "ACQUIRE the most matching workflow tag from KB (for example workflows/coding-flow.md) and load its full definition. The workflow guides the end-to-end execution for the request size.";
47
- }, {
48
- readonly id: "ph-prep-s-add-workflow-tasks";
49
- readonly name: "Add todo tasks for workflow phases";
50
- readonly prompt: "Add and update separate, dedicated todo tasks reflecting the loaded workflow's phases. Output to the user: 'Tasks Created: [task ids returned by the tool]'.";
51
- }, {
52
- readonly id: "ph-prep-s-execute-workflow";
53
- readonly name: "Execute the workflow";
54
- readonly prompt: "Proceed executing the loaded workflow end-to-end, integrating questioning, planning, implementation, review, validation, and HITL gates as the workflow prescribes.";
33
+ readonly id: "ph-prep-s-add-workflow-phases";
34
+ readonly name: "Add workflow phases";
35
+ readonly prompt: "Add workflow phases from the loaded workflow into this plan — one plan phase per workflow phase, each with dedicated, detailed, and specific steps. Must add phase to identify request size after intial discovery. Include state-restore and resume steps if applicable.";
55
36
  }];
56
37
  }];
57
38
  };
@@ -62,6 +43,7 @@ export declare const upsertTemplates: {
62
43
  readonly name: "for-subagent";
63
44
  readonly brief: "Bootstrap a subagent preparation phase with standard Rosetta load-context steps.";
64
45
  readonly placeholders: readonly ["phase-id", "phase-name", "phase-description"];
46
+ readonly produces: "One phase seeded with 6 Rosetta subagent load-context bootstrap steps, step ids prefixed by the phase id.";
65
47
  readonly content: {
66
48
  readonly id: "[phase-id]";
67
49
  readonly name: "[phase-name]";
@@ -70,19 +52,19 @@ export declare const upsertTemplates: {
70
52
  readonly steps: readonly [{
71
53
  readonly id: "[phase-id]-s-load-context-instructions";
72
54
  readonly name: "Load bootstrap context";
73
- readonly prompt: "Call get_context_instructions exactly once to load the bundled bootstrap rules. This is the blocking prerequisite gate (Prep Step 1). Do not call any other tool first.";
55
+ readonly prompt: "USE SKILL `load-context-instructions`. Execute ALL returned prep steps.";
56
+ }, {
57
+ readonly id: "[phase-id]-s-read-docs";
58
+ readonly name: "Read project context";
59
+ readonly prompt: "USE SKILL `load-context` as the canonical current context loader. The skill is required even when its expected outputs already look satisfied.";
60
+ }, {
61
+ readonly id: "[phase-id]-s-subagent-contract";
62
+ readonly name: "Load subagent-only contract";
63
+ readonly prompt: "MUST USE SKILL `subagent-contract` to understand and to follow scope boundaries, input/output contracts, and escalation protocol.";
74
64
  }, {
75
65
  readonly id: "[phase-id]-s-execution-planning";
76
66
  readonly name: "Plan execution at the task level";
77
67
  readonly prompt: "Perform execution-level planning using todo tasks for this phase's scope. Identify dependencies and the right order before acting.";
78
- }, {
79
- readonly id: "[phase-id]-s-read-context-architecture";
80
- readonly name: "Read CONTEXT.md and ARCHITECTURE.md in full";
81
- readonly prompt: "Read docs/CONTEXT.md and docs/ARCHITECTURE.md in full. Read all lines at once. These files carry critical project context.";
82
- }, {
83
- readonly id: "[phase-id]-s-grep-implementation-memory";
84
- readonly name: "Grep headers of IMPLEMENTATION.md and MEMORY.md";
85
- readonly prompt: "Grep '^#{1,3}' headers of agents/IMPLEMENTATION.md and agents/MEMORY.md. Read further sections only as needed.";
86
68
  }, {
87
69
  readonly id: "[phase-id]-s-execute-tasks";
88
70
  readonly name: "Execute todo tasks and adopt changes";
@@ -95,14 +77,16 @@ export declare const upsertTemplates: {
95
77
  };
96
78
  };
97
79
  };
98
- export interface TemplateCatalogEntry {
80
+ export interface PlanTemplateCatalogEntry {
99
81
  name: string;
100
82
  brief: string;
101
83
  placeholders: readonly string[];
84
+ produces: string;
102
85
  }
86
+ export type TemplateCatalogEntry = PlanTemplateCatalogEntry;
103
87
  /** Returns the catalog for list-templates (FR-PLAN-0032). */
104
88
  export declare function buildTemplateCatalog(): {
105
- create: TemplateCatalogEntry[];
106
- upsert: TemplateCatalogEntry[];
89
+ create: PlanTemplateCatalogEntry[];
90
+ upsert: PlanTemplateCatalogEntry[];
107
91
  };
108
92
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/plan/templates/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAElB,CAAC;AAGX,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAElB,CAAC;AAGX,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;CACjC;AAED,6DAA6D;AAC7D,wBAAgB,oBAAoB,IAAI;IACtC,MAAM,EAAE,oBAAoB,EAAE,CAAC;IAC/B,MAAM,EAAE,oBAAoB,EAAE,CAAC;CAChC,CAYA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/plan/templates/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAElB,CAAC;AAGX,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAElB,CAAC;AAGX,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAGD,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,CAAC;AAE5D,6DAA6D;AAC7D,wBAAgB,oBAAoB,IAAI;IACtC,MAAM,EAAE,wBAAwB,EAAE,CAAC;IACnC,MAAM,EAAE,wBAAwB,EAAE,CAAC;CACpC,CAcA"}
@@ -15,11 +15,13 @@ export function buildTemplateCatalog() {
15
15
  name: t.name,
16
16
  brief: t.brief,
17
17
  placeholders: t.placeholders,
18
+ produces: t.produces,
18
19
  }));
19
20
  const upsert = Object.values(upsertTemplates).map((t) => ({
20
21
  name: t.name,
21
22
  brief: t.brief,
22
23
  placeholders: t.placeholders,
24
+ produces: t.produces,
23
25
  }));
24
26
  return { create, upsert };
25
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/plan/templates/index.ts"],"names":[],"mappings":"AAAA,yFAAyF;AAEzF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,yEAAyE;AACzE,MAAM,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,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACpF,IAAI,EAAE,CAAC,CAAC,IAAI;QACZ,KAAK,EAAE,CAAC,CAAC,KAAK;QACd,YAAY,EAAE,CAAC,CAAC,YAAY;QAC5B,QAAQ,EAAE,CAAC,CAAC,QAAQ;KACrB,CAAC,CAAC,CAAC;IACJ,MAAM,MAAM,GAA+B,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACpF,IAAI,EAAE,CAAC,CAAC,IAAI;QACZ,KAAK,EAAE,CAAC,CAAC,KAAK;QACd,YAAY,EAAE,CAAC,CAAC,YAAY;QAC5B,QAAQ,EAAE,CAAC,CAAC,QAAQ;KACrB,CAAC,CAAC,CAAC;IACJ,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAC5B,CAAC"}
@@ -16,4 +16,22 @@ export declare function renderTemplate(template: {
16
16
  ok: false;
17
17
  error: string;
18
18
  };
19
+ /**
20
+ * Parses the required `phase-steps` input — a JSON string that must decode to an
21
+ * array of step objects. The parsed array is appended verbatim to a template's
22
+ * seeded steps by the calling subcommand. This is NOT placeholder substitution
23
+ * (FR-PLAN-0034): it splices objects into an array, which literal string
24
+ * replacement cannot express. Step field and id-uniqueness validation is left to
25
+ * the downstream create/upsert logic on the assembled plan (FR-PLAN-0001).
26
+ *
27
+ * - invalid JSON, or JSON that is not an array → invalid_phase_steps
28
+ * - an empty array is valid and leaves the seeded steps unchanged
29
+ */
30
+ export declare function parsePhaseSteps(phaseSteps: string): {
31
+ ok: true;
32
+ steps: unknown[];
33
+ } | {
34
+ ok: false;
35
+ error: string;
36
+ };
19
37
  //# sourceMappingURL=render.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../../src/commands/plan/templates/render.ts"],"names":[],"mappings":"AAuDA;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE;IAAE,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,EAC/D,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC7B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CA6BhE"}
1
+ {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../../src/commands/plan/templates/render.ts"],"names":[],"mappings":"AA4DA;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE;IAAE,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,EAC/D,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC7B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CA6BhE;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,GACjB;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,OAAO,EAAE,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAW/D"}
@@ -1,5 +1,6 @@
1
1
  // Implements FR-PLAN-0034 (placeholder substitution with strict bidirectional matching).
2
- import { ERR_MISSING_TEMPLATE_PARAM, ERR_UNEXPECTED_TEMPLATE_PARAM } from "../errors.js";
2
+ // Implements FR-PLAN-0043 (phase-steps array injection — distinct from placeholder substitution).
3
+ import { ERR_MISSING_TEMPLATE_PARAM, ERR_UNEXPECTED_TEMPLATE_PARAM, ERR_INVALID_PHASE_STEPS, } from "../errors.js";
3
4
  // ---------------------------------------------------------------------------
4
5
  // FR-PLAN-0034 — Placeholder render with strict bidirectional matching
5
6
  // ---------------------------------------------------------------------------
@@ -83,4 +84,31 @@ export function renderTemplate(template, params) {
83
84
  const rendered = substituteValues(template.content, params);
84
85
  return { ok: true, rendered };
85
86
  }
87
+ // ---------------------------------------------------------------------------
88
+ // FR-PLAN-0043 — phase-steps array injection
89
+ // ---------------------------------------------------------------------------
90
+ /**
91
+ * Parses the required `phase-steps` input — a JSON string that must decode to an
92
+ * array of step objects. The parsed array is appended verbatim to a template's
93
+ * seeded steps by the calling subcommand. This is NOT placeholder substitution
94
+ * (FR-PLAN-0034): it splices objects into an array, which literal string
95
+ * replacement cannot express. Step field and id-uniqueness validation is left to
96
+ * the downstream create/upsert logic on the assembled plan (FR-PLAN-0001).
97
+ *
98
+ * - invalid JSON, or JSON that is not an array → invalid_phase_steps
99
+ * - an empty array is valid and leaves the seeded steps unchanged
100
+ */
101
+ export function parsePhaseSteps(phaseSteps) {
102
+ let parsed;
103
+ try {
104
+ parsed = JSON.parse(phaseSteps);
105
+ }
106
+ catch {
107
+ return { ok: false, error: ERR_INVALID_PHASE_STEPS };
108
+ }
109
+ if (!Array.isArray(parsed)) {
110
+ return { ok: false, error: ERR_INVALID_PHASE_STEPS };
111
+ }
112
+ return { ok: true, steps: parsed };
113
+ }
86
114
  //# sourceMappingURL=render.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"render.js","sourceRoot":"","sources":["../../../../src/commands/plan/templates/render.ts"],"names":[],"mappings":"AAAA,yFAAyF;AAEzF,OAAO,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAEzF,8EAA8E;AAC9E,uEAAuE;AACvE,8EAA8E;AAE9E,0DAA0D;AAC1D,MAAM,iBAAiB,GAAG,wBAAwB,CAAC;AAEnD,+EAA+E;AAC/E,SAAS,wBAAwB,CAAC,KAAc;IAC9C,MAAM,KAAK,G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F,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;AAChC,CAAC;AAED,8EAA8E;AAC9E,6CAA6C;AAC7C,8EAA8E;AAE9E;;;;;;;;;;GAUG;AACH,MAAM,UAAU,eAAe,CAC7B,UAAkB;IAElB,IAAI,MAAe,CAAC;IACpB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,uBAAuB,EAAE,CAAC;IACvD,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3B,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,uBAAuB,EAAE,CAAC;IACvD,CAAC;IACD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AACrC,CAAC"}
@@ -8,6 +8,7 @@ export declare const forSubagent: {
8
8
  readonly name: "for-subagent";
9
9
  readonly brief: "Bootstrap a subagent preparation phase with standard Rosetta load-context steps.";
10
10
  readonly placeholders: readonly ["phase-id", "phase-name", "phase-description"];
11
+ readonly produces: "One phase seeded with 6 Rosetta subagent load-context bootstrap steps, step ids prefixed by the phase id.";
11
12
  readonly content: {
12
13
  readonly id: "[phase-id]";
13
14
  readonly name: "[phase-name]";
@@ -16,19 +17,19 @@ export declare const forSubagent: {
16
17
  readonly steps: readonly [{
17
18
  readonly id: "[phase-id]-s-load-context-instructions";
18
19
  readonly name: "Load bootstrap context";
19
- readonly prompt: "Call get_context_instructions exactly once to load the bundled bootstrap rules. This is the blocking prerequisite gate (Prep Step 1). Do not call any other tool first.";
20
+ readonly prompt: "USE SKILL `load-context-instructions`. Execute ALL returned prep steps.";
21
+ }, {
22
+ readonly id: "[phase-id]-s-read-docs";
23
+ readonly name: "Read project context";
24
+ readonly prompt: "USE SKILL `load-context` as the canonical current context loader. The skill is required even when its expected outputs already look satisfied.";
25
+ }, {
26
+ readonly id: "[phase-id]-s-subagent-contract";
27
+ readonly name: "Load subagent-only contract";
28
+ readonly prompt: "MUST USE SKILL `subagent-contract` to understand and to follow scope boundaries, input/output contracts, and escalation protocol.";
20
29
  }, {
21
30
  readonly id: "[phase-id]-s-execution-planning";
22
31
  readonly name: "Plan execution at the task level";
23
32
  readonly prompt: "Perform execution-level planning using todo tasks for this phase's scope. Identify dependencies and the right order before acting.";
24
- }, {
25
- readonly id: "[phase-id]-s-read-context-architecture";
26
- readonly name: "Read CONTEXT.md and ARCHITECTURE.md in full";
27
- readonly prompt: "Read docs/CONTEXT.md and docs/ARCHITECTURE.md in full. Read all lines at once. These files carry critical project context.";
28
- }, {
29
- readonly id: "[phase-id]-s-grep-implementation-memory";
30
- readonly name: "Grep headers of IMPLEMENTATION.md and MEMORY.md";
31
- readonly prompt: "Grep '^#{1,3}' headers of agents/IMPLEMENTATION.md and agents/MEMORY.md. Read further sections only as needed.";
32
33
  }, {
33
34
  readonly id: "[phase-id]-s-execute-tasks";
34
35
  readonly name: "Execute todo tasks and adopt changes";
@@ -1 +1 @@
1
- {"version":3,"file":"for-subagent.d.ts","sourceRoot":"","sources":["../../../../../src/commands/plan/templates/upsert/for-subagent.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0Cd,CAAC"}
1
+ {"version":3,"file":"for-subagent.d.ts","sourceRoot":"","sources":["../../../../../src/commands/plan/templates/upsert/for-subagent.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Cd,CAAC"}