rosettify 2.1.0 → 2.2.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 (92) hide show
  1. package/dist/commands/help/index.d.ts.map +1 -1
  2. package/dist/commands/help/index.js +10 -20
  3. package/dist/commands/help/index.js.map +1 -1
  4. package/dist/commands/plan/core.d.ts +2 -1
  5. package/dist/commands/plan/core.d.ts.map +1 -1
  6. package/dist/commands/plan/core.js +6 -1
  7. package/dist/commands/plan/core.js.map +1 -1
  8. package/dist/commands/plan/create-with-template.d.ts +41 -0
  9. package/dist/commands/plan/create-with-template.d.ts.map +1 -0
  10. package/dist/commands/plan/create-with-template.js +50 -0
  11. package/dist/commands/plan/create-with-template.js.map +1 -0
  12. package/dist/commands/plan/create.d.ts +72 -2
  13. package/dist/commands/plan/create.d.ts.map +1 -1
  14. package/dist/commands/plan/create.js +58 -1
  15. package/dist/commands/plan/create.js.map +1 -1
  16. package/dist/commands/plan/errors.d.ts +11 -0
  17. package/dist/commands/plan/errors.d.ts.map +1 -0
  18. package/dist/commands/plan/errors.js +15 -0
  19. package/dist/commands/plan/errors.js.map +1 -0
  20. package/dist/commands/plan/help-content.d.ts +132 -19
  21. package/dist/commands/plan/help-content.d.ts.map +1 -1
  22. package/dist/commands/plan/help-content.js +113 -24
  23. package/dist/commands/plan/help-content.js.map +1 -1
  24. package/dist/commands/plan/index.d.ts.map +1 -1
  25. package/dist/commands/plan/index.js +81 -7
  26. package/dist/commands/plan/index.js.map +1 -1
  27. package/dist/commands/plan/list-templates.d.ts +43 -0
  28. package/dist/commands/plan/list-templates.d.ts.map +1 -0
  29. package/dist/commands/plan/list-templates.js +25 -0
  30. package/dist/commands/plan/list-templates.js.map +1 -0
  31. package/dist/commands/plan/next.d.ts +34 -0
  32. package/dist/commands/plan/next.d.ts.map +1 -1
  33. package/dist/commands/plan/next.js +31 -3
  34. package/dist/commands/plan/next.js.map +1 -1
  35. package/dist/commands/plan/output.d.ts +25 -0
  36. package/dist/commands/plan/output.d.ts.map +1 -0
  37. package/dist/commands/plan/output.js +23 -0
  38. package/dist/commands/plan/output.js.map +1 -0
  39. package/dist/commands/plan/query.d.ts +18 -0
  40. package/dist/commands/plan/query.d.ts.map +1 -1
  41. package/dist/commands/plan/query.js +25 -2
  42. package/dist/commands/plan/query.js.map +1 -1
  43. package/dist/commands/plan/schemas.d.ts +366 -0
  44. package/dist/commands/plan/schemas.d.ts.map +1 -0
  45. package/dist/commands/plan/schemas.js +135 -0
  46. package/dist/commands/plan/schemas.js.map +1 -0
  47. package/dist/commands/plan/show-status.d.ts +35 -0
  48. package/dist/commands/plan/show-status.d.ts.map +1 -1
  49. package/dist/commands/plan/show-status.js +32 -4
  50. package/dist/commands/plan/show-status.js.map +1 -1
  51. package/dist/commands/plan/templates/create/for-orchestrator.d.ts +63 -0
  52. package/dist/commands/plan/templates/create/for-orchestrator.d.ts.map +1 -0
  53. package/dist/commands/plan/templates/create/for-orchestrator.js +78 -0
  54. package/dist/commands/plan/templates/create/for-orchestrator.js.map +1 -0
  55. package/dist/commands/plan/templates/index.d.ts +108 -0
  56. package/dist/commands/plan/templates/index.d.ts.map +1 -0
  57. package/dist/commands/plan/templates/index.js +26 -0
  58. package/dist/commands/plan/templates/index.js.map +1 -0
  59. package/dist/commands/plan/templates/render.d.ts +19 -0
  60. package/dist/commands/plan/templates/render.d.ts.map +1 -0
  61. package/dist/commands/plan/templates/render.js +86 -0
  62. package/dist/commands/plan/templates/render.js.map +1 -0
  63. package/dist/commands/plan/templates/upsert/for-subagent.d.ts +43 -0
  64. package/dist/commands/plan/templates/upsert/for-subagent.d.ts.map +1 -0
  65. package/dist/commands/plan/templates/upsert/for-subagent.js +52 -0
  66. package/dist/commands/plan/templates/upsert/for-subagent.js.map +1 -0
  67. package/dist/commands/plan/update-status.d.ts +33 -0
  68. package/dist/commands/plan/update-status.d.ts.map +1 -1
  69. package/dist/commands/plan/update-status.js +30 -4
  70. package/dist/commands/plan/update-status.js.map +1 -1
  71. package/dist/commands/plan/upsert-with-template.d.ts +45 -0
  72. package/dist/commands/plan/upsert-with-template.d.ts.map +1 -0
  73. package/dist/commands/plan/upsert-with-template.js +53 -0
  74. package/dist/commands/plan/upsert-with-template.js.map +1 -0
  75. package/dist/commands/plan/upsert.d.ts +45 -2
  76. package/dist/commands/plan/upsert.d.ts.map +1 -1
  77. package/dist/commands/plan/upsert.js +65 -34
  78. package/dist/commands/plan/upsert.js.map +1 -1
  79. package/dist/frontends/cli.d.ts.map +1 -1
  80. package/dist/frontends/cli.js +60 -1
  81. package/dist/frontends/cli.js.map +1 -1
  82. package/dist/registry/types.d.ts +21 -3
  83. package/dist/registry/types.d.ts.map +1 -1
  84. package/dist/shared/constants.d.ts +4 -0
  85. package/dist/shared/constants.d.ts.map +1 -1
  86. package/dist/shared/constants.js +6 -0
  87. package/dist/shared/constants.js.map +1 -1
  88. package/dist/shared/plan-io.d.ts +41 -0
  89. package/dist/shared/plan-io.d.ts.map +1 -0
  90. package/dist/shared/plan-io.js +235 -0
  91. package/dist/shared/plan-io.js.map +1 -0
  92. package/package.json +1 -1
@@ -0,0 +1,366 @@
1
+ export declare const planSubcommandSchemas: {
2
+ readonly create: {
3
+ readonly input: {
4
+ type: "object";
5
+ properties: {
6
+ plan_file: {
7
+ type: string;
8
+ description: string;
9
+ };
10
+ data: {
11
+ oneOf: {
12
+ type: string;
13
+ description: string;
14
+ }[];
15
+ };
16
+ };
17
+ required: never[];
18
+ };
19
+ 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
+ };
72
+ };
73
+ };
74
+ readonly next: {
75
+ readonly input: {
76
+ type: "object";
77
+ properties: {
78
+ plan_file: {
79
+ type: string;
80
+ description: string;
81
+ };
82
+ limit: {
83
+ type: string;
84
+ minimum: number;
85
+ description: string;
86
+ };
87
+ target_id: {
88
+ type: string;
89
+ description: string;
90
+ };
91
+ };
92
+ required: never[];
93
+ };
94
+ 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
+ };
108
+ };
109
+ };
110
+ readonly update_status: {
111
+ readonly input: {
112
+ type: "object";
113
+ properties: {
114
+ plan_file: {
115
+ type: string;
116
+ description: string;
117
+ };
118
+ target_id: {
119
+ type: string;
120
+ description: string;
121
+ };
122
+ new_status: {
123
+ type: string;
124
+ description: string;
125
+ };
126
+ };
127
+ required: never[];
128
+ };
129
+ readonly output: {
130
+ type: "object";
131
+ description: string;
132
+ properties: {
133
+ id: {
134
+ type: string;
135
+ };
136
+ status: {
137
+ type: string;
138
+ };
139
+ plan_status: {
140
+ type: string;
141
+ };
142
+ };
143
+ };
144
+ };
145
+ readonly show_status: {
146
+ readonly input: {
147
+ type: "object";
148
+ properties: {
149
+ plan_file: {
150
+ type: string;
151
+ description: string;
152
+ };
153
+ target_id: {
154
+ type: string;
155
+ description: string;
156
+ };
157
+ };
158
+ required: never[];
159
+ };
160
+ 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
+ };
180
+ };
181
+ };
182
+ readonly query: {
183
+ readonly input: {
184
+ type: "object";
185
+ properties: {
186
+ plan_file: {
187
+ type: string;
188
+ description: string;
189
+ };
190
+ target_id: {
191
+ type: string;
192
+ description: string;
193
+ };
194
+ };
195
+ required: never[];
196
+ };
197
+ readonly output: {
198
+ type: "object";
199
+ description: string;
200
+ };
201
+ };
202
+ readonly upsert: {
203
+ readonly input: {
204
+ type: "object";
205
+ properties: {
206
+ plan_file: {
207
+ type: string;
208
+ description: string;
209
+ };
210
+ target_id: {
211
+ type: string;
212
+ description: string;
213
+ };
214
+ data: {
215
+ oneOf: {
216
+ type: string;
217
+ description: string;
218
+ }[];
219
+ };
220
+ kind: {
221
+ type: string;
222
+ description: string;
223
+ };
224
+ phase_id: {
225
+ type: string;
226
+ description: string;
227
+ };
228
+ };
229
+ required: never[];
230
+ };
231
+ 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
+ };
245
+ };
246
+ };
247
+ readonly "create-with-template": {
248
+ readonly input: {
249
+ type: "object";
250
+ properties: {
251
+ plan_file: {
252
+ type: string;
253
+ description: string;
254
+ };
255
+ template: {
256
+ type: string;
257
+ description: string;
258
+ };
259
+ "plan-name": {
260
+ type: string;
261
+ description: string;
262
+ };
263
+ "plan-description": {
264
+ type: string;
265
+ description: string;
266
+ };
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: {
281
+ type: string;
282
+ };
283
+ };
284
+ };
285
+ };
286
+ readonly "upsert-with-template": {
287
+ readonly input: {
288
+ type: "object";
289
+ properties: {
290
+ plan_file: {
291
+ type: string;
292
+ description: string;
293
+ };
294
+ "phase-id": {
295
+ type: string;
296
+ description: string;
297
+ };
298
+ template: {
299
+ type: string;
300
+ description: string;
301
+ };
302
+ "phase-name": {
303
+ type: string;
304
+ description: string;
305
+ };
306
+ "phase-description": {
307
+ type: string;
308
+ description: string;
309
+ };
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: {
324
+ type: string;
325
+ };
326
+ };
327
+ };
328
+ };
329
+ readonly "list-templates": {
330
+ readonly input: {
331
+ type: "object";
332
+ properties: {
333
+ plan_file: {
334
+ type: string;
335
+ description: string;
336
+ };
337
+ };
338
+ required: never[];
339
+ };
340
+ readonly output: {
341
+ type: "object";
342
+ 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
+ };
358
+ };
359
+ };
360
+ /**
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.
364
+ */
365
+ export declare const planSchemasDict: Record<string, unknown>;
366
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,135 @@
1
+ // Implements FR-HELP-0002 (per-subcommand input/output schema aggregation).
2
+ // Aggregates per-subcommand declarations into a flat dictionary for help output.
3
+ import { createInputSchema, createOutputSchema } from "./create.js";
4
+ import { upsertInputSchema, upsertOutputSchema } from "./upsert.js";
5
+ import { updateStatusInputSchema, updateStatusOutputSchema } from "./update-status.js";
6
+ import { nextInputSchema, nextOutputSchema } from "./next.js";
7
+ import { showStatusInputSchema, showStatusOutputSchema } from "./show-status.js";
8
+ import { queryInputSchema, queryOutputSchema } from "./query.js";
9
+ import { createWithTemplateInputSchema, createWithTemplateOutputSchema } from "./create-with-template.js";
10
+ import { upsertWithTemplateInputSchema, upsertWithTemplateOutputSchema } from "./upsert-with-template.js";
11
+ import { listTemplatesInputSchema, listTemplatesOutputSchema } from "./list-templates.js";
12
+ // FR-HELP-0002 — per-subcommand schema dict, keyed by subcommand name
13
+ export const planSubcommandSchemas = {
14
+ create: { input: createInputSchema, output: createOutputSchema },
15
+ next: { input: nextInputSchema, output: nextOutputSchema },
16
+ update_status: { input: updateStatusInputSchema, output: updateStatusOutputSchema },
17
+ show_status: { input: showStatusInputSchema, output: showStatusOutputSchema },
18
+ query: { input: queryInputSchema, output: queryOutputSchema },
19
+ upsert: { input: upsertInputSchema, output: upsertOutputSchema },
20
+ "create-with-template": { input: createWithTemplateInputSchema, output: createWithTemplateOutputSchema },
21
+ "upsert-with-template": { input: upsertWithTemplateInputSchema, output: upsertWithTemplateOutputSchema },
22
+ "list-templates": { input: listTemplatesInputSchema, output: listTemplatesOutputSchema },
23
+ };
24
+ // Reusable shared shapes (part of the flat dict per FR-HELP-0002)
25
+ const compressedTreeSchema = {
26
+ type: "object",
27
+ description: "FR-PLAN-0040 — compressed-tree shape returned by write subcommands",
28
+ 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
+ },
59
+ },
60
+ };
61
+ const planSchema = {
62
+ type: "object",
63
+ description: "FR-PLAN-0017 — full plan JSON schema",
64
+ properties: {
65
+ name: { type: "string" },
66
+ description: { type: "string" },
67
+ status: { type: "string", enum: ["open", "in_progress", "complete", "blocked", "failed"] },
68
+ created_at: { type: "string" },
69
+ updated_at: { type: "string" },
70
+ previous_version: { type: ["string", "null"] },
71
+ phases: { type: "array" },
72
+ },
73
+ };
74
+ const phaseSchema = {
75
+ type: "object",
76
+ description: "FR-PLAN-0001 — phase fields",
77
+ properties: {
78
+ id: { type: "string" },
79
+ name: { type: "string" },
80
+ description: { type: "string" },
81
+ status: { type: "string" },
82
+ depends_on: { type: "array", items: { type: "string" } },
83
+ subagent: { type: "string" },
84
+ role: { type: "string" },
85
+ model: { type: "string" },
86
+ steps: { type: "array" },
87
+ },
88
+ };
89
+ const stepSchema = {
90
+ type: "object",
91
+ description: "FR-PLAN-0001 — step fields",
92
+ properties: {
93
+ id: { type: "string" },
94
+ name: { type: "string" },
95
+ prompt: { type: "string" },
96
+ status: { type: "string" },
97
+ depends_on: { type: "array", items: { type: "string" } },
98
+ subagent: { type: "string" },
99
+ role: { type: "string" },
100
+ model: { type: "string" },
101
+ },
102
+ };
103
+ /**
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.
107
+ */
108
+ 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,
134
+ };
135
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +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;AAC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C,KAAK,EAAE,EAAE,IAAI,EAAE,QAAiB,EAAE;KACnC;CACF,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAA4B;IACtD,yCAAyC;IACzC,MAAM,EAAE,iBAAiB;IACzB,IAAI,EAAE,eAAe;IACrB,aAAa,EAAE,uBAAuB;IACtC,WAAW,EAAE,qBAAqB;IAClC,KAAK,EAAE,gBAAgB;IACvB,MAAM,EAAE,iBAAiB;IACzB,sBAAsB,EAAE,6BAA6B;IACrD,sBAAsB,EAAE,6BAA6B;IACrD,gBAAgB,EAAE,wBAAwB;IAC1C,gDAAgD;IAChD,eAAe,EAAE,kBAAkB;IACnC,aAAa,EAAE,gBAAgB;IAC/B,sBAAsB,EAAE,wBAAwB;IAChD,oBAAoB,EAAE,sBAAsB;IAC5C,cAAc,EAAE,iBAAiB;IACjC,eAAe,EAAE,kBAAkB;IACnC,6BAA6B,EAAE,8BAA8B;IAC7D,6BAA6B,EAAE,8BAA8B;IAC7D,uBAAuB,EAAE,yBAAyB;IAClD,yBAAyB;IACzB,iBAAiB,EAAE,oBAAoB;IACvC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,UAAU;CACjB,CAAC"}
@@ -1,4 +1,39 @@
1
1
  import type { RunEnvelope } from "../../registry/types.js";
2
2
  import { type ShowStatusPlanResult, type ShowStatusPhaseResult, type ShowStatusStepResult } from "./core.js";
3
+ export declare const showStatusInputSchema: {
4
+ type: "object";
5
+ properties: {
6
+ plan_file: {
7
+ type: string;
8
+ description: string;
9
+ };
10
+ target_id: {
11
+ type: string;
12
+ description: string;
13
+ };
14
+ };
15
+ required: never[];
16
+ };
17
+ 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
+ };
37
+ };
3
38
  export declare function cmdShowStatus(planFile: string, targetId?: string): Promise<RunEnvelope<ShowStatusPlanResult | ShowStatusPhaseResult | ShowStatusStepResult>>;
4
39
  //# 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":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAG3D,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EAI1B,MAAM,WAAW,CAAC;AAwBnB,wBAAsB,aAAa,CACjC,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CACR,WAAW,CACT,oBAAoB,GAAG,qBAAqB,GAAG,oBAAoB,CACpE,CACF,CAwEA"}
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,6 +1,29 @@
1
+ // Implements FR-PLAN-0013 (show_status subcommand).
2
+ // Uses FR-SHRD-0009 (readPlanWithRetry) for read resilience.
1
3
  import { ok, err } from "../../shared/envelope.js";
2
4
  import { logger } from "../../shared/logger.js";
3
- import { loadPlan, findPhase, findStep, } from "./core.js";
5
+ import { readPlanWithRetry } from "../../shared/plan-io.js";
6
+ import { ERR_PLAN_FILE_CORRUPTED } from "./errors.js";
7
+ import { findPhase, findStep, } from "./core.js";
8
+ export const showStatusInputSchema = {
9
+ type: "object",
10
+ properties: {
11
+ plan_file: { type: "string", description: "Path to the plan JSON file" },
12
+ target_id: { type: "string", description: "entire_plan | phase-id | step-id (default: entire_plan)" },
13
+ },
14
+ required: [],
15
+ };
16
+ 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
+ },
26
+ };
4
27
  function computeTotals(statuses) {
5
28
  const t = {
6
29
  open: 0,
@@ -24,7 +47,14 @@ function computeTotals(statuses) {
24
47
  }
25
48
  export async function cmdShowStatus(planFile, targetId) {
26
49
  try {
27
- const plan = loadPlan(planFile);
50
+ // FR-SHRD-0009 — read with resilience
51
+ let plan;
52
+ try {
53
+ plan = await readPlanWithRetry(planFile);
54
+ }
55
+ catch {
56
+ return err(ERR_PLAN_FILE_CORRUPTED);
57
+ }
28
58
  if (!plan)
29
59
  return err("plan_not_found");
30
60
  if (!targetId || targetId === "entire_plan") {
@@ -49,7 +79,6 @@ export async function cmdShowStatus(planFile, targetId) {
49
79
  logger.info({ planFile }, "show_status entire_plan");
50
80
  return ok(result);
51
81
  }
52
- // Check phase
53
82
  const phase = findPhase(plan, targetId);
54
83
  if (phase) {
55
84
  const result = {
@@ -65,7 +94,6 @@ export async function cmdShowStatus(planFile, targetId) {
65
94
  logger.info({ planFile, targetId }, "show_status phase");
66
95
  return ok(result);
67
96
  }
68
- // Check step
69
97
  const found = findStep(plan, targetId);
70
98
  if (found) {
71
99
  const { step } = found;
@@ -1 +1 @@
1
- {"version":3,"file":"show-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