rosettify 2.2.0 → 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,25 +1,14 @@
1
- import type { Plan, Status } from "./core.js";
2
- export interface CompressedPlanTree {
3
- plan: {
4
- name: string;
5
- status: Status;
6
- };
7
- /** FR-PLAN-0040 — backup path from FR-PLAN-0024, or null on first create. */
8
- previous_version: string | null;
9
- phases: Array<{
10
- id: string;
11
- name: string;
12
- status: Status;
13
- steps: Array<{
14
- id: string;
15
- name: string;
16
- status: Status;
17
- }>;
18
- }>;
1
+ import type { Plan, PlanSummary, PlanPhaseSummary } from "./core.js";
2
+ export interface PlanWriteResult {
3
+ /** FR-PLAN-0040 — plan name and derived status after write */
4
+ plan: PlanSummary;
5
+ /** FR-PLAN-0040 — phases with step summaries (id/name/status only) */
6
+ phases: PlanPhaseSummary[];
19
7
  }
20
8
  /**
21
- * Builds the compressed-tree representation of a plan after a successful write.
22
- * FR-PLAN-0040 — contains only plan.name/status, previous_version, and phases with steps (id/name/status only).
9
+ * Builds the PlanWriteResult representation of a plan after a successful write.
10
+ * FR-PLAN-0040 — contains plan (PlanSummary with previous_version) and phases (PlanPhaseSummary[]).
11
+ * previousVersion is null on first create (FR-PLAN-0010) and the backup path on subsequent writes (FR-PLAN-0024).
23
12
  */
24
- export declare function buildCompressedTree(plan: Plan, previousVersion: string | null): CompressedPlanTree;
13
+ export declare function buildPlanWriteResult(plan: Plan, previousVersion: string | null): PlanWriteResult;
25
14
  //# sourceMappingURL=output.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/output.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAM9C,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,6EAA6E;IAC7E,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,MAAM,EAAE,KAAK,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,KAAK,CAAC;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KAC5D,CAAC,CAAC;CACJ;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,GAAG,IAAI,GAAG,kBAAkB,CAgBlG"}
1
+ {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/output.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,gBAAgB,EAAmB,MAAM,WAAW,CAAC;AAMtF,MAAM,WAAW,eAAe;IAC9B,8DAA8D;IAC9D,IAAI,EAAE,WAAW,CAAC;IAClB,sEAAsE;IACtE,MAAM,EAAE,gBAAgB,EAAE,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,GAAG,IAAI,GAAG,eAAe,CAehG"}
@@ -1,13 +1,13 @@
1
- // Implements FR-PLAN-0040 (compressed-tree output shape for write subcommands).
1
+ // Implements FR-PLAN-0040 (PlanWriteResult output shape for write subcommands).
2
2
  /**
3
- * Builds the compressed-tree representation of a plan after a successful write.
4
- * FR-PLAN-0040 — contains only plan.name/status, previous_version, and phases with steps (id/name/status only).
3
+ * Builds the PlanWriteResult representation of a plan after a successful write.
4
+ * FR-PLAN-0040 — contains plan (PlanSummary with previous_version) and phases (PlanPhaseSummary[]).
5
+ * previousVersion is null on first create (FR-PLAN-0010) and the backup path on subsequent writes (FR-PLAN-0024).
5
6
  */
6
- export function buildCompressedTree(plan, previousVersion) {
7
+ export function buildPlanWriteResult(plan, previousVersion) {
7
8
  // FR-PLAN-0040 — only the specified fields, no extras
8
9
  return {
9
- plan: { name: plan.name, status: plan.status },
10
- previous_version: previousVersion,
10
+ plan: { name: plan.name, status: plan.status, previous_version: previousVersion },
11
11
  phases: plan.phases.map((ph) => ({
12
12
  id: ph.id,
13
13
  name: ph.name,
@@ -1 +1 @@
1
- {"version":3,"file":"output.js","sourceRoot":"","sources":["../../../src/commands/plan/output.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAoBhF;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAU,EAAE,eAA8B;IAC5E,sDAAsD;IACtD,OAAO;QACL,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;QAC9C,gBAAgB,EAAE,eAAe;QACjC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;YAC/B,EAAE,EAAE,EAAE,CAAC,EAAE;YACT,IAAI,EAAE,EAAE,CAAC,IAAI;YACb,MAAM,EAAE,EAAE,CAAC,MAAM;YACjB,KAAK,EAAE,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBAClC,EAAE,EAAE,CAAC,CAAC,EAAE;gBACR,IAAI,EAAE,CAAC,CAAC,IAAI;gBACZ,MAAM,EAAE,CAAC,CAAC,MAAM;aACjB,CAAC,CAAC;SACJ,CAAC,CAAC;KACJ,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../../src/commands/plan/output.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAehF;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAU,EAAE,eAA8B;IAC7E,sDAAsD;IACtD,OAAO;QACL,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,gBAAgB,EAAE,eAAe,EAAE;QACjF,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;YAC/B,EAAE,EAAE,EAAE,CAAC,EAAE;YACT,IAAI,EAAE,EAAE,CAAC,IAAI;YACb,MAAM,EAAE,EAAE,CAAC,MAAM;YACjB,KAAK,EAAE,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAmB,EAAE,CAAC,CAAC;gBACnD,EAAE,EAAE,CAAC,CAAC,EAAE;gBACR,IAAI,EAAE,CAAC,CAAC,IAAI;gBACZ,MAAM,EAAE,CAAC,CAAC,MAAM;aACjB,CAAC,CAAC;SACJ,CAAC,CAAC;KACJ,CAAC;AACJ,CAAC"}
@@ -12,10 +12,15 @@ export declare const queryInputSchema: {
12
12
  description: string;
13
13
  };
14
14
  };
15
- required: never[];
16
15
  };
17
16
  export declare const queryOutputSchema: {
18
- type: "object";
17
+ oneOf: ({
18
+ $ref: "Plan";
19
+ } | {
20
+ $ref: "Phase";
21
+ } | {
22
+ $ref: "Step";
23
+ })[];
19
24
  description: string;
20
25
  };
21
26
  export declare function cmdQuery(planFile: string, targetId?: string): Promise<RunEnvelope<Plan | Phase | Step>>;
@@ -1 +1 @@
1
- {"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/query.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAK3D,OAAO,EACL,KAAK,IAAI,EACT,KAAK,KAAK,EACV,KAAK,IAAI,EAGV,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;CAO5B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;CAG7B,CAAC;AAEF,wBAAsB,QAAQ,CAC5B,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,WAAW,CAAC,IAAI,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,CAiC3C"}
1
+ {"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/query.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAK3D,OAAO,EACL,KAAK,IAAI,EACT,KAAK,KAAK,EACV,KAAK,IAAI,EAGV,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;CAM5B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;CAO7B,CAAC;AAEF,wBAAsB,QAAQ,CAC5B,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,WAAW,CAAC,IAAI,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,CAiC3C"}
@@ -11,11 +11,14 @@ export const queryInputSchema = {
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 queryOutputSchema = {
17
- type: "object",
18
- description: "FR-PLAN-0014 — full JSON of the target (plan, phase, or step)",
16
+ oneOf: [
17
+ { $ref: "Plan" },
18
+ { $ref: "Phase" },
19
+ { $ref: "Step" },
20
+ ],
21
+ description: "Full JSON of the target — a Plan, Phase, or Step",
19
22
  };
20
23
  export async function cmdQuery(planFile, targetId) {
21
24
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/commands/plan/query.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,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,EAIL,SAAS,EACT,QAAQ,GACT,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,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,iBAAiB,GAAG;IAC/B,IAAI,EAAE,QAAiB;IACvB,WAAW,EAAE,+DAA+D;CAC7E,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,QAAQ,CAC5B,QAAgB,EAChB,QAAiB;IAEjB,IAAI,CAAC;QACH,sCAAsC;QACtC,IAAI,IAAiB,CAAC;QACtB,IAAI,CAAC;YACH,IAAI,GAAG,MAAM,iBAAiB,CAAO,QAAQ,CAAC,CAAC;QACjD,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACtC,CAAC;QACD,IAAI,CAAC,IAAI;YAAE,OAAO,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAExC,IAAI,CAAC,QAAQ,IAAI,QAAQ,KAAK,aAAa,EAAE,CAAC;YAC5C,MAAM,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;YACnD,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;QACnB,CAAC;QAED,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACvC,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,YAAY,CAAC,CAAC;YAClD,OAAO,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxB,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"}
@@ -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": {
@@ -265,22 +178,9 @@ export declare const planSubcommandSchemas: {
265
178
  description: string;
266
179
  };
267
180
  };
268
- required: never[];
269
181
  };
270
182
  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
- };
183
+ $ref: "PlanWriteResult";
284
184
  };
285
185
  };
286
186
  readonly "upsert-with-template": {
@@ -308,22 +208,9 @@ export declare const planSubcommandSchemas: {
308
208
  description: string;
309
209
  };
310
210
  };
311
- required: never[];
312
211
  };
313
212
  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
- };
213
+ $ref: "PlanWriteResult";
327
214
  };
328
215
  };
329
216
  readonly "list-templates": {
@@ -335,32 +222,30 @@ export declare const planSubcommandSchemas: {
335
222
  description: string;
336
223
  };
337
224
  };
338
- required: never[];
339
225
  };
340
226
  readonly output: {
341
- type: "object";
227
+ $ref: "PlanTemplateCatalog";
228
+ };
229
+ };
230
+ };
231
+ export declare const planTargetInputSchema: {
232
+ type: "object";
233
+ properties: {
234
+ plan_file: {
235
+ type: string;
236
+ description: string;
237
+ };
238
+ target_id: {
239
+ type: string;
342
240
  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
241
  };
358
242
  };
359
243
  };
360
244
  /**
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.
245
+ * FR-HELP-0002 — flat schemas dict: keyed by exported type name.
246
+ * One entry per distinct named type — inputs, results, and shared data shapes.
247
+ * Used for help display (planSchemasDict).
248
+ * $ref convention: every array items and every nested object property uses { $ref: "<DictKey>" }.
364
249
  */
365
250
  export declare const planSchemasDict: Record<string, unknown>;
366
251
  //# 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"}