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
@@ -14,61 +14,9 @@ export declare const planSubcommandSchemas: {
14
14
  }[];
15
15
  };
16
16
  };
17
- required: never[];
18
17
  };
19
18
  readonly output: {
20
- type: "object";
21
- description: string;
22
- properties: {
23
- plan: {
24
- type: string;
25
- properties: {
26
- name: {
27
- type: string;
28
- };
29
- status: {
30
- type: string;
31
- };
32
- };
33
- };
34
- previous_version: {
35
- type: string[];
36
- };
37
- phases: {
38
- type: string;
39
- items: {
40
- type: string;
41
- properties: {
42
- id: {
43
- type: string;
44
- };
45
- name: {
46
- type: string;
47
- };
48
- status: {
49
- type: string;
50
- };
51
- steps: {
52
- type: string;
53
- items: {
54
- type: string;
55
- properties: {
56
- id: {
57
- type: string;
58
- };
59
- name: {
60
- type: string;
61
- };
62
- status: {
63
- type: string;
64
- };
65
- };
66
- };
67
- };
68
- };
69
- };
70
- };
71
- };
19
+ $ref: "PlanWriteResult";
72
20
  };
73
21
  };
74
22
  readonly next: {
@@ -89,22 +37,9 @@ export declare const planSubcommandSchemas: {
89
37
  description: string;
90
38
  };
91
39
  };
92
- required: never[];
93
40
  };
94
41
  readonly output: {
95
- type: "object";
96
- description: string;
97
- properties: {
98
- ready: {
99
- type: string;
100
- };
101
- count: {
102
- type: string;
103
- };
104
- plan_status: {
105
- type: string;
106
- };
107
- };
42
+ $ref: "PlanNextResult";
108
43
  };
109
44
  };
110
45
  readonly update_status: {
@@ -124,7 +59,6 @@ export declare const planSubcommandSchemas: {
124
59
  description: string;
125
60
  };
126
61
  };
127
- required: never[];
128
62
  };
129
63
  readonly output: {
130
64
  type: "object";
@@ -155,28 +89,15 @@ export declare const planSubcommandSchemas: {
155
89
  description: string;
156
90
  };
157
91
  };
158
- required: never[];
159
92
  };
160
93
  readonly output: {
161
- type: "object";
162
- description: string;
163
- properties: {
164
- name: {
165
- type: string;
166
- };
167
- status: {
168
- type: string;
169
- };
170
- phases: {
171
- type: string;
172
- };
173
- steps: {
174
- type: string;
175
- };
176
- phase_summary: {
177
- type: string;
178
- };
179
- };
94
+ oneOf: ({
95
+ $ref: "ShowStatusPlanResult";
96
+ } | {
97
+ $ref: "PlanPhaseSummary";
98
+ } | {
99
+ $ref: "PlanStepDetail";
100
+ })[];
180
101
  };
181
102
  };
182
103
  readonly query: {
@@ -192,10 +113,15 @@ export declare const planSubcommandSchemas: {
192
113
  description: string;
193
114
  };
194
115
  };
195
- required: never[];
196
116
  };
197
117
  readonly output: {
198
- type: "object";
118
+ oneOf: ({
119
+ $ref: "Plan";
120
+ } | {
121
+ $ref: "Phase";
122
+ } | {
123
+ $ref: "Step";
124
+ })[];
199
125
  description: string;
200
126
  };
201
127
  };
@@ -226,22 +152,9 @@ export declare const planSubcommandSchemas: {
226
152
  description: string;
227
153
  };
228
154
  };
229
- required: never[];
230
155
  };
231
156
  readonly output: {
232
- type: "object";
233
- description: string;
234
- properties: {
235
- plan: {
236
- type: string;
237
- };
238
- previous_version: {
239
- type: string[];
240
- };
241
- phases: {
242
- type: string;
243
- };
244
- };
157
+ $ref: "PlanWriteResult";
245
158
  };
246
159
  };
247
160
  readonly "create-with-template": {
@@ -264,24 +177,15 @@ export declare const planSubcommandSchemas: {
264
177
  type: string;
265
178
  description: string;
266
179
  };
267
- };
268
- required: never[];
269
- };
270
- readonly output: {
271
- type: "object";
272
- description: string;
273
- properties: {
274
- plan: {
275
- type: string;
276
- };
277
- previous_version: {
278
- type: string[];
279
- };
280
- phases: {
180
+ "phase-steps": {
281
181
  type: string;
182
+ description: string;
282
183
  };
283
184
  };
284
185
  };
186
+ readonly output: {
187
+ $ref: "PlanWriteResult";
188
+ };
285
189
  };
286
190
  readonly "upsert-with-template": {
287
191
  readonly input: {
@@ -307,24 +211,15 @@ export declare const planSubcommandSchemas: {
307
211
  type: string;
308
212
  description: string;
309
213
  };
310
- };
311
- required: never[];
312
- };
313
- readonly output: {
314
- type: "object";
315
- description: string;
316
- properties: {
317
- plan: {
318
- type: string;
319
- };
320
- previous_version: {
321
- type: string[];
322
- };
323
- phases: {
214
+ "phase-steps": {
324
215
  type: string;
216
+ description: string;
325
217
  };
326
218
  };
327
219
  };
220
+ readonly output: {
221
+ $ref: "PlanWriteResult";
222
+ };
328
223
  };
329
224
  readonly "list-templates": {
330
225
  readonly input: {
@@ -335,32 +230,30 @@ export declare const planSubcommandSchemas: {
335
230
  description: string;
336
231
  };
337
232
  };
338
- required: never[];
339
233
  };
340
234
  readonly output: {
341
- type: "object";
235
+ $ref: "PlanTemplateCatalog";
236
+ };
237
+ };
238
+ };
239
+ export declare const planTargetInputSchema: {
240
+ type: "object";
241
+ properties: {
242
+ plan_file: {
243
+ type: string;
244
+ description: string;
245
+ };
246
+ target_id: {
247
+ type: string;
342
248
  description: string;
343
- properties: {
344
- create: {
345
- type: string;
346
- items: {
347
- type: string;
348
- };
349
- };
350
- upsert: {
351
- type: string;
352
- items: {
353
- type: string;
354
- };
355
- };
356
- };
357
249
  };
358
250
  };
359
251
  };
360
252
  /**
361
- * FR-HELP-0002 — flat schemas dict: subcommand → input schema,
362
- * plus shared shapes (compressed-tree, plan, phase, step).
363
- * Output schemas live under <subcommand>-output keys.
253
+ * FR-HELP-0002 — flat schemas dict: keyed by exported type name.
254
+ * One entry per distinct named type — inputs, results, and shared data shapes.
255
+ * Used for help display (planSchemasDict).
256
+ * $ref convention: every array items and every nested object property uses { $ref: "<DictKey>" }.
364
257
  */
365
258
  export declare const planSchemasDict: Record<string, unknown>;
366
259
  //# sourceMappingURL=schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/schemas.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUxB,CAAC;AAqFX;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CA0BnD,CAAC"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/schemas.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUxB,CAAC;AA4IX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;CAMjC,CAAC;AA6EF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CA8BnD,CAAC"}
@@ -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,EAAE;IACnF,WAAW,EAAE,EAAE,KAAK,EAAE,qB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