rosettify 2.2.1 → 2.3.1

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 (80) 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 +3 -16
  8. package/dist/commands/plan/create-with-template.d.ts.map +1 -1
  9. package/dist/commands/plan/create-with-template.js +4 -11
  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/help-content.d.ts +18 -3
  16. package/dist/commands/plan/help-content.d.ts.map +1 -1
  17. package/dist/commands/plan/help-content.js +56 -33
  18. package/dist/commands/plan/help-content.js.map +1 -1
  19. package/dist/commands/plan/index.d.ts.map +1 -1
  20. package/dist/commands/plan/index.js +6 -7
  21. package/dist/commands/plan/index.js.map +1 -1
  22. package/dist/commands/plan/list-templates.d.ts +4 -27
  23. package/dist/commands/plan/list-templates.d.ts.map +1 -1
  24. package/dist/commands/plan/list-templates.js +1 -7
  25. package/dist/commands/plan/list-templates.js.map +1 -1
  26. package/dist/commands/plan/next.d.ts +3 -16
  27. package/dist/commands/plan/next.d.ts.map +1 -1
  28. package/dist/commands/plan/next.js +67 -25
  29. package/dist/commands/plan/next.js.map +1 -1
  30. package/dist/commands/plan/output.d.ts +10 -21
  31. package/dist/commands/plan/output.d.ts.map +1 -1
  32. package/dist/commands/plan/output.js +6 -6
  33. package/dist/commands/plan/output.js.map +1 -1
  34. package/dist/commands/plan/query.d.ts +7 -2
  35. package/dist/commands/plan/query.d.ts.map +1 -1
  36. package/dist/commands/plan/query.js +6 -3
  37. package/dist/commands/plan/query.js.map +1 -1
  38. package/dist/commands/plan/schemas.d.ts +36 -151
  39. package/dist/commands/plan/schemas.d.ts.map +1 -1
  40. package/dist/commands/plan/schemas.js +200 -68
  41. package/dist/commands/plan/schemas.js.map +1 -1
  42. package/dist/commands/plan/show-status.d.ts +9 -22
  43. package/dist/commands/plan/show-status.d.ts.map +1 -1
  44. package/dist/commands/plan/show-status.js +7 -10
  45. package/dist/commands/plan/show-status.js.map +1 -1
  46. package/dist/commands/plan/templates/create/for-orchestrator.d.ts +14 -33
  47. package/dist/commands/plan/templates/create/for-orchestrator.d.ts.map +1 -1
  48. package/dist/commands/plan/templates/create/for-orchestrator.js +14 -38
  49. package/dist/commands/plan/templates/create/for-orchestrator.js.map +1 -1
  50. package/dist/commands/plan/templates/index.d.ts +29 -45
  51. package/dist/commands/plan/templates/index.d.ts.map +1 -1
  52. package/dist/commands/plan/templates/index.js +2 -0
  53. package/dist/commands/plan/templates/index.js.map +1 -1
  54. package/dist/commands/plan/templates/upsert/for-subagent.d.ts +10 -9
  55. package/dist/commands/plan/templates/upsert/for-subagent.d.ts.map +1 -1
  56. package/dist/commands/plan/templates/upsert/for-subagent.js +12 -11
  57. package/dist/commands/plan/templates/upsert/for-subagent.js.map +1 -1
  58. package/dist/commands/plan/update-status.d.ts +2 -3
  59. package/dist/commands/plan/update-status.d.ts.map +1 -1
  60. package/dist/commands/plan/update-status.js +2 -3
  61. package/dist/commands/plan/update-status.js.map +1 -1
  62. package/dist/commands/plan/upsert-with-template.d.ts +3 -16
  63. package/dist/commands/plan/upsert-with-template.d.ts.map +1 -1
  64. package/dist/commands/plan/upsert-with-template.js +5 -12
  65. package/dist/commands/plan/upsert-with-template.js.map +1 -1
  66. package/dist/commands/plan/upsert.d.ts +3 -16
  67. package/dist/commands/plan/upsert.d.ts.map +1 -1
  68. package/dist/commands/plan/upsert.js +9 -17
  69. package/dist/commands/plan/upsert.js.map +1 -1
  70. package/dist/frontends/cli.d.ts.map +1 -1
  71. package/dist/frontends/cli.js +8 -4
  72. package/dist/frontends/cli.js.map +1 -1
  73. package/dist/frontends/mcp.d.ts.map +1 -1
  74. package/dist/frontends/mcp.js +2 -1
  75. package/dist/frontends/mcp.js.map +1 -1
  76. package/dist/shared/version.d.ts +2 -0
  77. package/dist/shared/version.d.ts.map +1 -0
  78. package/dist/shared/version.js +8 -0
  79. package/dist/shared/version.js.map +1 -0
  80. package/package.json +3 -3
@@ -1,5 +1,7 @@
1
- // Implements FR-HELP-0002 (per-subcommand input/output schema aggregation).
2
- // Aggregates per-subcommand declarations into a flat dictionary for help output.
1
+ // Implements FR-HELP-0002 / FR-PLAN-0041 (schemas dict keyed by exported type name, SRP+DRY).
2
+ // Aggregates per-subcommand declarations into dictionaries for help output and validation.
3
+ // $ref convention: { $ref: "<DictKey>" } — string key into planSchemasDict.
4
+ // Array of named shape: { type:"array", items:{ $ref:"<DictKey>" } }.
3
5
  import { createInputSchema, createOutputSchema } from "./create.js";
4
6
  import { upsertInputSchema, upsertOutputSchema } from "./upsert.js";
5
7
  import { updateStatusInputSchema, updateStatusOutputSchema } from "./update-status.js";
@@ -21,46 +23,144 @@ export const planSubcommandSchemas = {
21
23
  "upsert-with-template": { input: upsertWithTemplateInputSchema, output: upsertWithTemplateOutputSchema },
22
24
  "list-templates": { input: listTemplatesInputSchema, output: listTemplatesOutputSchema },
23
25
  };
24
- // Reusable shared shapes (part of the flat dict per FR-HELP-0002)
25
- const compressedTreeSchema = {
26
+ // ---------------------------------------------------------------------------
27
+ // Shared named schemas — SRP+DRY, $ref convention throughout
28
+ // ---------------------------------------------------------------------------
29
+ // PlanSummary — plan name, status, and backup path after write (used in PlanWriteResult) (FR-PLAN-0040)
30
+ const planSummarySchema = {
26
31
  type: "object",
27
- description: "FR-PLAN-0040 — compressed-tree shape returned by write subcommands",
32
+ description: "Plan name, derived status, and backup path after write",
28
33
  properties: {
29
- plan: {
30
- type: "object",
31
- properties: {
32
- name: { type: "string" },
33
- status: { type: "string" },
34
- },
35
- },
36
- previous_version: { type: ["string", "null"] },
37
- phases: {
38
- type: "array",
39
- items: {
40
- type: "object",
41
- properties: {
42
- id: { type: "string" },
43
- name: { type: "string" },
44
- status: { type: "string" },
45
- steps: {
46
- type: "array",
47
- items: {
48
- type: "object",
49
- properties: {
50
- id: { type: "string" },
51
- name: { type: "string" },
52
- status: { type: "string" },
53
- },
54
- },
55
- },
56
- },
57
- },
58
- },
34
+ name: { type: "string" },
35
+ status: { type: "string", enum: ["open", "in_progress", "complete", "blocked", "failed"] },
36
+ previous_version: { type: ["string", "null"] }, // ... (FR-PLAN-0040)
37
+ },
38
+ };
39
+ // PlanStepSummary — step id, name, status summary (FR-PLAN-0013)
40
+ const planStepSummarySchema = {
41
+ type: "object",
42
+ description: "Step summary: id, name, status",
43
+ properties: {
44
+ id: { type: "string" },
45
+ name: { type: "string" },
46
+ status: { type: "string" },
47
+ },
48
+ };
49
+ // PlanPhaseSummary — phase id, name, status, steps (reused in write result and show_status) (FR-PLAN-0013)
50
+ const planPhaseSummarySchema = {
51
+ type: "object",
52
+ description: "Phase summary: id, name, status, steps",
53
+ properties: {
54
+ id: { type: "string" },
55
+ name: { type: "string" },
56
+ status: { type: "string" },
57
+ steps: { type: "array", items: { $ref: "PlanStepSummary" } },
58
+ },
59
+ };
60
+ // PlanWriteResult — shared by all 4 write subcommands (create, upsert, create-with-template, upsert-with-template) (FR-PLAN-0040)
61
+ const planWriteResultSchema = {
62
+ type: "object",
63
+ description: "Compact plan snapshot returned by all write subcommands (create, upsert, create-with-template, upsert-with-template)",
64
+ properties: {
65
+ plan: { $ref: "PlanSummary" },
66
+ phases: { type: "array", items: { $ref: "PlanPhaseSummary" } },
59
67
  },
60
68
  };
69
+ // PlanNextStep — item type of the next array (FR-PLAN-0011)
70
+ const planNextStepSchema = {
71
+ type: "object",
72
+ description: "Step returned by next: id, name, prompt, status, depends_on, phase_id, phase_name, and optional subagent fields",
73
+ properties: {
74
+ id: { type: "string" },
75
+ name: { type: "string" },
76
+ prompt: { type: "string" },
77
+ status: { type: "string" },
78
+ depends_on: { type: "array", items: { type: "string" } },
79
+ phase_id: { type: "string" },
80
+ phase_name: { type: "string" },
81
+ subagent: { type: "string" },
82
+ role: { type: "string" },
83
+ model: { type: "string" },
84
+ },
85
+ };
86
+ // PlanPhaseContext — phase scalar fields present when target_id used in next (FR-PLAN-0011)
87
+ const planPhaseContextSchema = {
88
+ type: "object",
89
+ description: "Phase context returned in next when target_id is provided: scalar phase fields (no steps)",
90
+ properties: {
91
+ id: { type: "string" },
92
+ name: { type: "string" },
93
+ description: { type: "string" },
94
+ status: { type: "string" },
95
+ depends_on: { type: "array", items: { type: "string" } },
96
+ subagent: { type: "string" },
97
+ role: { type: "string" },
98
+ model: { type: "string" },
99
+ },
100
+ };
101
+ // PlanStatusTotals — status counts + progress_pct (FR-PLAN-0013)
102
+ const planStatusTotalsSchema = {
103
+ type: "object",
104
+ description: "Status counts and progress percentage for phases or steps",
105
+ properties: {
106
+ open: { type: "integer" },
107
+ in_progress: { type: "integer" },
108
+ complete: { type: "integer" },
109
+ blocked: { type: "integer" },
110
+ failed: { type: "integer" },
111
+ total: { type: "integer" },
112
+ progress_pct: { type: "number" },
113
+ },
114
+ };
115
+ // PlanStepDetail — step detail from show_status step target (FR-PLAN-0013)
116
+ const planStepDetailSchema = {
117
+ type: "object",
118
+ description: "Step detail: id, name, status, depends_on, and optional subagent fields",
119
+ properties: {
120
+ id: { type: "string" },
121
+ name: { type: "string" },
122
+ status: { type: "string" },
123
+ depends_on: { type: "array", items: { type: "string" } },
124
+ subagent: { type: "string" },
125
+ role: { type: "string" },
126
+ model: { type: "string" },
127
+ },
128
+ };
129
+ // PlanTemplateCatalogEntry — one entry in the template catalog (FR-PLAN-0032)
130
+ const planTemplateCatalogEntrySchema = {
131
+ type: "object",
132
+ description: "Template catalog entry: name, brief, placeholders, produces",
133
+ properties: {
134
+ name: { type: "string" },
135
+ brief: { type: "string" },
136
+ placeholders: { type: "array", items: { type: "string" } },
137
+ produces: { type: "string" },
138
+ },
139
+ };
140
+ // ShowStatusPlanResult — entire-plan target of show_status (FR-PLAN-0013 / HIGH F2)
141
+ const showStatusPlanResultSchema = {
142
+ type: "object",
143
+ description: "Plan-level status summary: name, status, phase and step totals, phase summary list",
144
+ properties: {
145
+ name: { type: "string" },
146
+ status: { type: "string" },
147
+ phases: { $ref: "PlanStatusTotals" },
148
+ steps: { $ref: "PlanStatusTotals" },
149
+ phase_summary: { type: "array", items: { $ref: "PlanPhaseSummary" } },
150
+ },
151
+ };
152
+ // PlanTargetInput — shared by show_status and query (both accept plan_file + target_id)
153
+ export const planTargetInputSchema = {
154
+ type: "object",
155
+ properties: {
156
+ plan_file: { type: "string", description: "Path to the plan JSON file" },
157
+ target_id: { type: "string", description: "entire_plan | phase-id | step-id (default: entire_plan)" },
158
+ },
159
+ };
160
+ // Plan — full plan data type (FR-PLAN-0001 / HIGH F1: phases uses $ref)
61
161
  const planSchema = {
62
162
  type: "object",
63
- description: "FR-PLAN-0017 — full plan JSON schema",
163
+ description: "Full plan JSON: name, description, status, timestamps, previous_version, phases",
64
164
  properties: {
65
165
  name: { type: "string" },
66
166
  description: { type: "string" },
@@ -68,12 +168,13 @@ const planSchema = {
68
168
  created_at: { type: "string" },
69
169
  updated_at: { type: "string" },
70
170
  previous_version: { type: ["string", "null"] },
71
- phases: { type: "array" },
171
+ phases: { type: "array", items: { $ref: "Phase" } },
72
172
  },
73
173
  };
174
+ // Phase — full phase data type (FR-PLAN-0001 / HIGH F1: steps uses $ref)
74
175
  const phaseSchema = {
75
176
  type: "object",
76
- description: "FR-PLAN-0001 — phase fields",
177
+ description: "Phase fields: id, name, description, status, depends_on, subagent, role, model, steps",
77
178
  properties: {
78
179
  id: { type: "string" },
79
180
  name: { type: "string" },
@@ -83,12 +184,13 @@ const phaseSchema = {
83
184
  subagent: { type: "string" },
84
185
  role: { type: "string" },
85
186
  model: { type: "string" },
86
- steps: { type: "array" },
187
+ steps: { type: "array", items: { $ref: "Step" } },
87
188
  },
88
189
  };
190
+ // Step — full step data type
89
191
  const stepSchema = {
90
192
  type: "object",
91
- description: "FR-PLAN-0001 — step fields",
193
+ description: "Step fields: id, name, prompt, status, depends_on, subagent, role, model",
92
194
  properties: {
93
195
  id: { type: "string" },
94
196
  name: { type: "string" },
@@ -100,36 +202,66 @@ const stepSchema = {
100
202
  model: { type: "string" },
101
203
  },
102
204
  };
205
+ // PlanNextResult — result of next subcommand (FR-PLAN-0011)
206
+ const planNextResultSchema = {
207
+ type: "object",
208
+ description: "Steps actionable now, in priority order, plus scope-wide status counts",
209
+ properties: {
210
+ parent: { $ref: "PlanPhaseContext" },
211
+ next: { type: "array", items: { $ref: "PlanNextStep" } },
212
+ count: { type: "integer" },
213
+ plan_status: { type: "string" },
214
+ OverallOpenCount: { type: "integer" },
215
+ OverallInProgressCount: { type: "integer" },
216
+ OverallBlockedCount: { type: "integer" },
217
+ OverallFailedCount: { type: "integer" },
218
+ OverallCompleteCount: { type: "integer" },
219
+ },
220
+ };
221
+ // PlanTemplateCatalog — result of list-templates (FR-PLAN-0032)
222
+ const planTemplateCatalogSchema = {
223
+ type: "object",
224
+ description: "Template catalog grouped by kind (create, upsert)",
225
+ properties: {
226
+ create: { type: "array", items: { $ref: "PlanTemplateCatalogEntry" } },
227
+ upsert: { type: "array", items: { $ref: "PlanTemplateCatalogEntry" } },
228
+ },
229
+ };
103
230
  /**
104
- * FR-HELP-0002 — flat schemas dict: subcommand → input schema,
105
- * plus shared shapes (compressed-tree, plan, phase, step).
106
- * Output schemas live under <subcommand>-output keys.
231
+ * FR-HELP-0002 — flat schemas dict: keyed by exported type name.
232
+ * One entry per distinct named type — inputs, results, and shared data shapes.
233
+ * Used for help display (planSchemasDict).
234
+ * $ref convention: every array items and every nested object property uses { $ref: "<DictKey>" }.
107
235
  */
108
236
  export const planSchemasDict = {
109
- // Input schemas keyed by subcommand name
110
- create: createInputSchema,
111
- next: nextInputSchema,
112
- update_status: updateStatusInputSchema,
113
- show_status: showStatusInputSchema,
114
- query: queryInputSchema,
115
- upsert: upsertInputSchema,
116
- "create-with-template": createWithTemplateInputSchema,
117
- "upsert-with-template": upsertWithTemplateInputSchema,
118
- "list-templates": listTemplatesInputSchema,
119
- // Output schemas under <subcommand>-output keys
120
- "create-output": createOutputSchema,
121
- "next-output": nextOutputSchema,
122
- "update_status-output": updateStatusOutputSchema,
123
- "show_status-output": showStatusOutputSchema,
124
- "query-output": queryOutputSchema,
125
- "upsert-output": upsertOutputSchema,
126
- "create-with-template-output": createWithTemplateOutputSchema,
127
- "upsert-with-template-output": upsertWithTemplateOutputSchema,
128
- "list-templates-output": listTemplatesOutputSchema,
129
- // Shared reusable shapes
130
- "compressed-tree": compressedTreeSchema,
131
- plan: planSchema,
132
- phase: phaseSchema,
133
- step: stepSchema,
237
+ // Input schemas keyed by exported type name
238
+ PlanCreateInput: createInputSchema,
239
+ PlanNextInput: nextInputSchema,
240
+ PlanUpdateStatusInput: updateStatusInputSchema,
241
+ PlanTargetInput: planTargetInputSchema, // shared by show_status and query
242
+ PlanUpsertInput: upsertInputSchema,
243
+ PlanCreateWithTemplateInput: createWithTemplateInputSchema,
244
+ PlanUpsertWithTemplateInput: upsertWithTemplateInputSchema,
245
+ PlanListTemplatesInput: listTemplatesInputSchema,
246
+ // Result schemas keyed by exported type name
247
+ PlanWriteResult: planWriteResultSchema, // shared by all 4 write subcommands
248
+ PlanNextResult: planNextResultSchema,
249
+ PlanUpdateStatusResult: updateStatusOutputSchema,
250
+ PlanShowStatusResult: showStatusOutputSchema,
251
+ PlanQueryResult: queryOutputSchema,
252
+ PlanTemplateCatalog: planTemplateCatalogSchema,
253
+ // Shared reusable data shapes (FR-PLAN-0041)
254
+ Plan: planSchema,
255
+ Phase: phaseSchema,
256
+ Step: stepSchema,
257
+ PlanSummary: planSummarySchema,
258
+ PlanNextStep: planNextStepSchema,
259
+ PlanPhaseContext: planPhaseContextSchema,
260
+ PlanStatusTotals: planStatusTotalsSchema,
261
+ PlanPhaseSummary: planPhaseSummarySchema,
262
+ PlanStepSummary: planStepSummarySchema,
263
+ PlanStepDetail: planStepDetailSchema,
264
+ PlanTemplateCatalogEntry: planTemplateCatalogEntrySchema,
265
+ ShowStatusPlanResult: showStatusPlanResultSchema,
134
266
  };
135
267
  //# sourceMappingURL=schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/commands/plan/schemas.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,iFAAiF;AAEjF,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC1G,OAAO,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC1G,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAE1F,sEAAsE;AACtE,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,MAAM,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,kBAAkB,EAAE;IAChE,IAAI,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,gBAAgB,EAAE;IAC1D,aAAa,EAAE,EAAE,KAAK,EAAE,uBAAuB,EAAE,MAAM,EAAE,wBAAwB,EAA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;IAChC,gBAAgB,EAAE,sBAAsB;IACxC,gBAAgB,EAAE,sBAAsB;IACxC,gBAAgB,EAAE,sBAAsB;IACxC,eAAe,EAAE,qBAAqB;IACtC,cAAc,EAAE,oBAAoB;IACpC,wBAAwB,EAAE,8BAA8B;IACxD,oBAAoB,EAAE,0BAA0B;CACjD,CAAC"}
@@ -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,OAAO,EAOL,SAAS,EACT,QAAQ,GACT,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE;QACV,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,4BAA4B,EAAE;QACxE,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,yDAAyD,EAAE;KACtG;IACD,QAAQ,EAAE,EAAE;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,QAAiB;IACvB,WAAW,EAAE,wDAAwD;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M,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
  },