rosettify 2.1.0 → 2.2.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.
- package/dist/commands/help/index.d.ts.map +1 -1
- package/dist/commands/help/index.js +10 -20
- package/dist/commands/help/index.js.map +1 -1
- package/dist/commands/plan/core.d.ts +2 -1
- package/dist/commands/plan/core.d.ts.map +1 -1
- package/dist/commands/plan/core.js +6 -1
- package/dist/commands/plan/core.js.map +1 -1
- package/dist/commands/plan/create-with-template.d.ts +41 -0
- package/dist/commands/plan/create-with-template.d.ts.map +1 -0
- package/dist/commands/plan/create-with-template.js +50 -0
- package/dist/commands/plan/create-with-template.js.map +1 -0
- package/dist/commands/plan/create.d.ts +72 -2
- package/dist/commands/plan/create.d.ts.map +1 -1
- package/dist/commands/plan/create.js +58 -1
- package/dist/commands/plan/create.js.map +1 -1
- package/dist/commands/plan/errors.d.ts +11 -0
- package/dist/commands/plan/errors.d.ts.map +1 -0
- package/dist/commands/plan/errors.js +15 -0
- package/dist/commands/plan/errors.js.map +1 -0
- package/dist/commands/plan/help-content.d.ts +132 -19
- package/dist/commands/plan/help-content.d.ts.map +1 -1
- package/dist/commands/plan/help-content.js +113 -24
- package/dist/commands/plan/help-content.js.map +1 -1
- package/dist/commands/plan/index.d.ts.map +1 -1
- package/dist/commands/plan/index.js +81 -7
- package/dist/commands/plan/index.js.map +1 -1
- package/dist/commands/plan/list-templates.d.ts +43 -0
- package/dist/commands/plan/list-templates.d.ts.map +1 -0
- package/dist/commands/plan/list-templates.js +25 -0
- package/dist/commands/plan/list-templates.js.map +1 -0
- package/dist/commands/plan/next.d.ts +34 -0
- package/dist/commands/plan/next.d.ts.map +1 -1
- package/dist/commands/plan/next.js +31 -3
- package/dist/commands/plan/next.js.map +1 -1
- package/dist/commands/plan/output.d.ts +25 -0
- package/dist/commands/plan/output.d.ts.map +1 -0
- package/dist/commands/plan/output.js +23 -0
- package/dist/commands/plan/output.js.map +1 -0
- package/dist/commands/plan/query.d.ts +18 -0
- package/dist/commands/plan/query.d.ts.map +1 -1
- package/dist/commands/plan/query.js +25 -2
- package/dist/commands/plan/query.js.map +1 -1
- package/dist/commands/plan/schemas.d.ts +366 -0
- package/dist/commands/plan/schemas.d.ts.map +1 -0
- package/dist/commands/plan/schemas.js +135 -0
- package/dist/commands/plan/schemas.js.map +1 -0
- package/dist/commands/plan/show-status.d.ts +35 -0
- package/dist/commands/plan/show-status.d.ts.map +1 -1
- package/dist/commands/plan/show-status.js +32 -4
- package/dist/commands/plan/show-status.js.map +1 -1
- package/dist/commands/plan/templates/create/for-orchestrator.d.ts +63 -0
- package/dist/commands/plan/templates/create/for-orchestrator.d.ts.map +1 -0
- package/dist/commands/plan/templates/create/for-orchestrator.js +78 -0
- package/dist/commands/plan/templates/create/for-orchestrator.js.map +1 -0
- package/dist/commands/plan/templates/index.d.ts +108 -0
- package/dist/commands/plan/templates/index.d.ts.map +1 -0
- package/dist/commands/plan/templates/index.js +26 -0
- package/dist/commands/plan/templates/index.js.map +1 -0
- package/dist/commands/plan/templates/render.d.ts +19 -0
- package/dist/commands/plan/templates/render.d.ts.map +1 -0
- package/dist/commands/plan/templates/render.js +86 -0
- package/dist/commands/plan/templates/render.js.map +1 -0
- package/dist/commands/plan/templates/upsert/for-subagent.d.ts +43 -0
- package/dist/commands/plan/templates/upsert/for-subagent.d.ts.map +1 -0
- package/dist/commands/plan/templates/upsert/for-subagent.js +52 -0
- package/dist/commands/plan/templates/upsert/for-subagent.js.map +1 -0
- package/dist/commands/plan/update-status.d.ts +33 -0
- package/dist/commands/plan/update-status.d.ts.map +1 -1
- package/dist/commands/plan/update-status.js +30 -4
- package/dist/commands/plan/update-status.js.map +1 -1
- package/dist/commands/plan/upsert-with-template.d.ts +45 -0
- package/dist/commands/plan/upsert-with-template.d.ts.map +1 -0
- package/dist/commands/plan/upsert-with-template.js +53 -0
- package/dist/commands/plan/upsert-with-template.js.map +1 -0
- package/dist/commands/plan/upsert.d.ts +45 -2
- package/dist/commands/plan/upsert.d.ts.map +1 -1
- package/dist/commands/plan/upsert.js +65 -34
- package/dist/commands/plan/upsert.js.map +1 -1
- package/dist/frontends/cli.d.ts.map +1 -1
- package/dist/frontends/cli.js +60 -1
- package/dist/frontends/cli.js.map +1 -1
- package/dist/registry/types.d.ts +21 -3
- package/dist/registry/types.d.ts.map +1 -1
- package/dist/shared/constants.d.ts +4 -0
- package/dist/shared/constants.d.ts.map +1 -1
- package/dist/shared/constants.js +6 -0
- package/dist/shared/constants.js.map +1 -1
- package/dist/shared/plan-io.d.ts +41 -0
- package/dist/shared/plan-io.d.ts.map +1 -0
- package/dist/shared/plan-io.js +235 -0
- package/dist/shared/plan-io.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const planNotes: string[];
|
|
1
2
|
export declare const planHelpContent: {
|
|
2
3
|
name: string;
|
|
3
4
|
brief: string;
|
|
@@ -34,8 +35,18 @@ export declare const planHelpContent: {
|
|
|
34
35
|
"patch-json"?: undefined;
|
|
35
36
|
kind?: undefined;
|
|
36
37
|
phase_id?: undefined;
|
|
38
|
+
template?: undefined;
|
|
39
|
+
"plan-name"?: undefined;
|
|
40
|
+
"plan-description"?: undefined;
|
|
41
|
+
"phase-id"?: undefined;
|
|
42
|
+
"phase-name"?: undefined;
|
|
43
|
+
"phase-description"?: undefined;
|
|
37
44
|
};
|
|
38
45
|
description: string;
|
|
46
|
+
examples: {
|
|
47
|
+
tip: string;
|
|
48
|
+
real: string;
|
|
49
|
+
};
|
|
39
50
|
} | {
|
|
40
51
|
name: string;
|
|
41
52
|
brief: string;
|
|
@@ -50,8 +61,18 @@ export declare const planHelpContent: {
|
|
|
50
61
|
"patch-json"?: undefined;
|
|
51
62
|
kind?: undefined;
|
|
52
63
|
phase_id?: undefined;
|
|
64
|
+
template?: undefined;
|
|
65
|
+
"plan-name"?: undefined;
|
|
66
|
+
"plan-description"?: undefined;
|
|
67
|
+
"phase-id"?: undefined;
|
|
68
|
+
"phase-name"?: undefined;
|
|
69
|
+
"phase-description"?: undefined;
|
|
53
70
|
};
|
|
54
71
|
description: string;
|
|
72
|
+
examples: {
|
|
73
|
+
tip: string;
|
|
74
|
+
real: string;
|
|
75
|
+
};
|
|
55
76
|
} | {
|
|
56
77
|
name: string;
|
|
57
78
|
brief: string;
|
|
@@ -66,8 +87,18 @@ export declare const planHelpContent: {
|
|
|
66
87
|
"patch-json"?: undefined;
|
|
67
88
|
kind?: undefined;
|
|
68
89
|
phase_id?: undefined;
|
|
90
|
+
template?: undefined;
|
|
91
|
+
"plan-name"?: undefined;
|
|
92
|
+
"plan-description"?: undefined;
|
|
93
|
+
"phase-id"?: undefined;
|
|
94
|
+
"phase-name"?: undefined;
|
|
95
|
+
"phase-description"?: undefined;
|
|
69
96
|
};
|
|
70
97
|
description: string;
|
|
98
|
+
examples: {
|
|
99
|
+
tip: string;
|
|
100
|
+
real: string;
|
|
101
|
+
};
|
|
71
102
|
} | {
|
|
72
103
|
name: string;
|
|
73
104
|
brief: string;
|
|
@@ -82,8 +113,18 @@ export declare const planHelpContent: {
|
|
|
82
113
|
"patch-json"?: undefined;
|
|
83
114
|
kind?: undefined;
|
|
84
115
|
phase_id?: undefined;
|
|
116
|
+
template?: undefined;
|
|
117
|
+
"plan-name"?: undefined;
|
|
118
|
+
"plan-description"?: undefined;
|
|
119
|
+
"phase-id"?: undefined;
|
|
120
|
+
"phase-name"?: undefined;
|
|
121
|
+
"phase-description"?: undefined;
|
|
85
122
|
};
|
|
86
123
|
description: string;
|
|
124
|
+
examples: {
|
|
125
|
+
tip: string;
|
|
126
|
+
real: string;
|
|
127
|
+
};
|
|
87
128
|
} | {
|
|
88
129
|
name: string;
|
|
89
130
|
brief: string;
|
|
@@ -98,23 +139,98 @@ export declare const planHelpContent: {
|
|
|
98
139
|
"--target"?: undefined;
|
|
99
140
|
step_id?: undefined;
|
|
100
141
|
status?: undefined;
|
|
142
|
+
template?: undefined;
|
|
143
|
+
"plan-name"?: undefined;
|
|
144
|
+
"plan-description"?: undefined;
|
|
145
|
+
"phase-id"?: undefined;
|
|
146
|
+
"phase-name"?: undefined;
|
|
147
|
+
"phase-description"?: undefined;
|
|
101
148
|
};
|
|
102
149
|
description: string;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
required: string[];
|
|
107
|
-
optional: string[];
|
|
150
|
+
examples: {
|
|
151
|
+
tip: string;
|
|
152
|
+
real: string;
|
|
108
153
|
};
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
154
|
+
} | {
|
|
155
|
+
name: string;
|
|
156
|
+
brief: string;
|
|
157
|
+
usage: string;
|
|
158
|
+
args: {
|
|
159
|
+
template: string;
|
|
160
|
+
"plan-name": string;
|
|
161
|
+
"plan-description": string;
|
|
162
|
+
"plan-json"?: undefined;
|
|
163
|
+
limit?: undefined;
|
|
164
|
+
"--target"?: undefined;
|
|
165
|
+
step_id?: undefined;
|
|
166
|
+
status?: undefined;
|
|
167
|
+
target_id?: undefined;
|
|
168
|
+
"patch-json"?: undefined;
|
|
169
|
+
kind?: undefined;
|
|
170
|
+
phase_id?: undefined;
|
|
171
|
+
"phase-id"?: undefined;
|
|
172
|
+
"phase-name"?: undefined;
|
|
173
|
+
"phase-description"?: undefined;
|
|
112
174
|
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
175
|
+
description: string;
|
|
176
|
+
examples: {
|
|
177
|
+
tip: string;
|
|
178
|
+
real: string;
|
|
116
179
|
};
|
|
117
|
-
}
|
|
180
|
+
} | {
|
|
181
|
+
name: string;
|
|
182
|
+
brief: string;
|
|
183
|
+
usage: string;
|
|
184
|
+
args: {
|
|
185
|
+
"phase-id": string;
|
|
186
|
+
template: string;
|
|
187
|
+
"phase-name": string;
|
|
188
|
+
"phase-description": string;
|
|
189
|
+
"plan-json"?: undefined;
|
|
190
|
+
limit?: undefined;
|
|
191
|
+
"--target"?: undefined;
|
|
192
|
+
step_id?: undefined;
|
|
193
|
+
status?: undefined;
|
|
194
|
+
target_id?: undefined;
|
|
195
|
+
"patch-json"?: undefined;
|
|
196
|
+
kind?: undefined;
|
|
197
|
+
phase_id?: undefined;
|
|
198
|
+
"plan-name"?: undefined;
|
|
199
|
+
"plan-description"?: undefined;
|
|
200
|
+
};
|
|
201
|
+
description: string;
|
|
202
|
+
examples: {
|
|
203
|
+
tip: string;
|
|
204
|
+
real: string;
|
|
205
|
+
};
|
|
206
|
+
} | {
|
|
207
|
+
name: string;
|
|
208
|
+
brief: string;
|
|
209
|
+
usage: string;
|
|
210
|
+
args: {
|
|
211
|
+
"plan-json"?: undefined;
|
|
212
|
+
limit?: undefined;
|
|
213
|
+
"--target"?: undefined;
|
|
214
|
+
step_id?: undefined;
|
|
215
|
+
status?: undefined;
|
|
216
|
+
target_id?: undefined;
|
|
217
|
+
"patch-json"?: undefined;
|
|
218
|
+
kind?: undefined;
|
|
219
|
+
phase_id?: undefined;
|
|
220
|
+
template?: undefined;
|
|
221
|
+
"plan-name"?: undefined;
|
|
222
|
+
"plan-description"?: undefined;
|
|
223
|
+
"phase-id"?: undefined;
|
|
224
|
+
"phase-name"?: undefined;
|
|
225
|
+
"phase-description"?: undefined;
|
|
226
|
+
};
|
|
227
|
+
description: string;
|
|
228
|
+
examples: {
|
|
229
|
+
tip: string;
|
|
230
|
+
real: string;
|
|
231
|
+
};
|
|
232
|
+
})[];
|
|
233
|
+
schemas: Record<string, unknown>;
|
|
118
234
|
limits: {
|
|
119
235
|
max_phases: number;
|
|
120
236
|
max_steps_per_phase: number;
|
|
@@ -122,14 +238,11 @@ export declare const planHelpContent: {
|
|
|
122
238
|
max_string_length: number;
|
|
123
239
|
max_name_length: number;
|
|
124
240
|
};
|
|
125
|
-
|
|
126
|
-
create:
|
|
127
|
-
|
|
128
|
-
update_status: string;
|
|
129
|
-
show_status: string;
|
|
130
|
-
query: string;
|
|
131
|
-
upsert: string;
|
|
241
|
+
readonly templates: {
|
|
242
|
+
create: import("./templates/index.js").TemplateCatalogEntry[];
|
|
243
|
+
upsert: import("./templates/index.js").TemplateCatalogEntry[];
|
|
132
244
|
};
|
|
245
|
+
notes: string[];
|
|
133
246
|
plan_authoring_guidance: string;
|
|
134
247
|
next_steps_for_ai: string;
|
|
135
248
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help-content.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/help-content.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"help-content.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/help-content.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS,EAAE,MAAM,EAe7B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsN3B,CAAC"}
|
|
@@ -1,13 +1,37 @@
|
|
|
1
|
+
// Implements FR-PLAN-0016 (plan help content), FR-PLAN-0018 (limits and dual-form examples),
|
|
2
|
+
// FR-HELP-0002 (schemas dict and notes from per-subcommand declarations).
|
|
1
3
|
import { PLAN_MAX_PHASES, PLAN_MAX_STEPS_PER_PHASE, PLAN_MAX_DEPENDENCIES_PER_ITEM, PLAN_MAX_STRING_LENGTH, PLAN_MAX_NAME_LENGTH, } from "../../shared/constants.js";
|
|
4
|
+
import { planSchemasDict } from "./schemas.js";
|
|
5
|
+
import { buildTemplateCatalog } from "./templates/index.js";
|
|
6
|
+
// FR-PLAN-0016 — notes documenting behaviors that affect the caller upfront
|
|
7
|
+
export const planNotes = [
|
|
8
|
+
// FR-PLAN-0015 / FR-PLAN-0016 — status silently dropped
|
|
9
|
+
"upsert silently drops status fields — use update_status to change status one-by-one after each task completion",
|
|
10
|
+
// FR-PLAN-0024 — write cycle summary
|
|
11
|
+
"write-cycle process (high level): read with retries → modify in memory → rename old file as backup → write new file",
|
|
12
|
+
// FR-PLAN-0024 — atomic rename and previous_version
|
|
13
|
+
"every successful write atomically renames the plan file to <plan_file>.bakNNN before writing the new plan; the plan's previous_version field points to the immediately prior version (the backup captured at write time)",
|
|
14
|
+
// FR-PLAN-0024 — backup retention
|
|
15
|
+
"backup retention is bounded; the oldest backups beyond the configured limit (default 5) are pruned",
|
|
16
|
+
// FR-SHRD-0009 — read resilience
|
|
17
|
+
"if the plan file is missing but at least one backup exists, reads retry briefly before returning plan_not_found",
|
|
18
|
+
// FR-PLAN-0033 — template kind separation
|
|
19
|
+
"templates have two kinds (create, upsert); a template of one kind cannot be used with the other kind",
|
|
20
|
+
// FR-PLAN-0034 — placeholder syntax
|
|
21
|
+
"placeholder syntax in templates is [placeholder-name]; provided params and declared placeholders must match exactly",
|
|
22
|
+
];
|
|
2
23
|
export const planHelpContent = {
|
|
3
24
|
name: "plan",
|
|
4
25
|
brief: "Manage execution plans (create, query, update, upsert)",
|
|
5
26
|
description: "The plan command manages two-level execution plans stored as JSON files. " +
|
|
6
|
-
"Plans contain phases, phases contain steps. Status propagates bottom-up automatically."
|
|
27
|
+
"Plans contain phases, phases contain steps. Status propagates bottom-up automatically. " +
|
|
28
|
+
"Write subcommands return a compressed-tree snapshot of the post-write plan.",
|
|
29
|
+
// FR-PLAN-0016 — plan_file convention
|
|
7
30
|
plan_file: {
|
|
8
31
|
convention: "plans/<feature>/plan.json",
|
|
9
32
|
note: "Plan file lives in the feature plan folder: plans/<feature>/",
|
|
10
33
|
},
|
|
34
|
+
// FR-PLAN-0016 — core concepts
|
|
11
35
|
concepts: {
|
|
12
36
|
hierarchy: "Two levels: phases contain steps. You assign string IDs.",
|
|
13
37
|
statuses: "open | in_progress | complete | blocked | failed",
|
|
@@ -19,12 +43,14 @@ export const planHelpContent = {
|
|
|
19
43
|
resume: "next returns in_progress steps (resume:true) before open steps. " +
|
|
20
44
|
"Always check resume flag to avoid duplicate work on interrupted sessions.",
|
|
21
45
|
},
|
|
46
|
+
// FR-PLAN-0016 — subagent_fields
|
|
22
47
|
subagent_fields: {
|
|
23
48
|
note: "Available on both phases and steps for delegation",
|
|
24
49
|
subagent: "subagent name",
|
|
25
50
|
role: "specialization to assume, brilliant and short",
|
|
26
51
|
model: "comma-separated list of recommended models",
|
|
27
52
|
},
|
|
53
|
+
// FR-PLAN-0016 — subcommands with dual-form examples (FR-PLAN-0018)
|
|
28
54
|
subcommands: [
|
|
29
55
|
{
|
|
30
56
|
name: "create",
|
|
@@ -32,7 +58,13 @@ export const planHelpContent = {
|
|
|
32
58
|
usage: "rosettify plan create <plan_file> '<plan-json>'",
|
|
33
59
|
args: { "plan-json": "JSON with name, description?, phases[]" },
|
|
34
60
|
description: "Creates a new plan at plan_file. Defaults: name='Unnamed Plan', status='open', " +
|
|
35
|
-
"depends_on=[], timestamps set. Validates unique IDs, dependencies, and size limits."
|
|
61
|
+
"depends_on=[], timestamps set. Validates unique IDs, dependencies, and size limits. " +
|
|
62
|
+
"Returns compressed-tree (FR-PLAN-0040) with previous_version=null.",
|
|
63
|
+
// FR-PLAN-0018 — dual-form examples
|
|
64
|
+
examples: {
|
|
65
|
+
tip: "rosettify plan create [plan_file] '[plan-json-with-name-phases]'",
|
|
66
|
+
real: "rosettify plan create plans/feature-x/plan.json '{\"name\":\"Feature X\",\"phases\":[]}'",
|
|
67
|
+
},
|
|
36
68
|
},
|
|
37
69
|
{
|
|
38
70
|
name: "next",
|
|
@@ -45,6 +77,10 @@ export const planHelpContent = {
|
|
|
45
77
|
description: "Returns steps in priority order: (1) in_progress (resume:true), " +
|
|
46
78
|
"(2) open with deps satisfied, (3) blocked (previously_blocked:true), " +
|
|
47
79
|
"(4) failed (previously_failed:true). Loop until count:0 and plan_status:complete.",
|
|
80
|
+
examples: {
|
|
81
|
+
tip: "rosettify plan next [plan_file] [limit] --target [phase-id]",
|
|
82
|
+
real: "rosettify plan next plans/feature-x/plan.json 5 --target ph-impl",
|
|
83
|
+
},
|
|
48
84
|
},
|
|
49
85
|
{
|
|
50
86
|
name: "update_status",
|
|
@@ -56,6 +92,10 @@ export const planHelpContent = {
|
|
|
56
92
|
},
|
|
57
93
|
description: "Updates a single step status and propagates upward. " +
|
|
58
94
|
"Phase status is always derived from child steps.",
|
|
95
|
+
examples: {
|
|
96
|
+
tip: "rosettify plan update_status [plan_file] [step-id] [status]",
|
|
97
|
+
real: "rosettify plan update_status plans/feature-x/plan.json ph-impl-s1 complete",
|
|
98
|
+
},
|
|
59
99
|
},
|
|
60
100
|
{
|
|
61
101
|
name: "show_status",
|
|
@@ -64,6 +104,10 @@ export const planHelpContent = {
|
|
|
64
104
|
args: { target_id: "entire_plan | phase-id | step-id (default: entire_plan)" },
|
|
65
105
|
description: "Returns progress totals for plan, phase, or step. " +
|
|
66
106
|
"progress_pct = round(complete/total * 1000) / 10",
|
|
107
|
+
examples: {
|
|
108
|
+
tip: "rosettify plan show_status [plan_file] [target-id-or-entire_plan]",
|
|
109
|
+
real: "rosettify plan show_status plans/feature-x/plan.json entire_plan",
|
|
110
|
+
},
|
|
67
111
|
},
|
|
68
112
|
{
|
|
69
113
|
name: "query",
|
|
@@ -71,6 +115,10 @@ export const planHelpContent = {
|
|
|
71
115
|
usage: "rosettify plan query <plan_file> [target_id]",
|
|
72
116
|
args: { target_id: "entire_plan | phase-id | step-id (default: entire_plan)" },
|
|
73
117
|
description: "Returns full JSON of the requested target.",
|
|
118
|
+
examples: {
|
|
119
|
+
tip: "rosettify plan query [plan_file] [target-id-or-entire_plan]",
|
|
120
|
+
real: "rosettify plan query plans/feature-x/plan.json ph-impl",
|
|
121
|
+
},
|
|
74
122
|
},
|
|
75
123
|
{
|
|
76
124
|
name: "upsert",
|
|
@@ -83,23 +131,64 @@ export const planHelpContent = {
|
|
|
83
131
|
phase_id: "required for new step: parent phase ID",
|
|
84
132
|
},
|
|
85
133
|
description: "Creates or merge-patches plan/phase/step. Status fields in patch are silently stripped. " +
|
|
86
|
-
"Use update_status to change status after each task completion.",
|
|
134
|
+
"Use update_status to change status after each task completion. Returns compressed-tree (FR-PLAN-0040).",
|
|
135
|
+
examples: {
|
|
136
|
+
tip: "rosettify plan upsert [plan_file] [target-id] '[patch-json]'",
|
|
137
|
+
real: "rosettify plan upsert plans/feature-x/plan.json ph-review '{\"kind\":\"phase\",\"name\":\"Review\"}'",
|
|
138
|
+
},
|
|
87
139
|
},
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
140
|
+
{
|
|
141
|
+
name: "create-with-template",
|
|
142
|
+
brief: "Create a plan from a registered create-kind template",
|
|
143
|
+
usage: "rosettify plan create-with-template <plan_file> <template> <plan-name> <plan-description>",
|
|
144
|
+
args: {
|
|
145
|
+
template: "template name from create-kind collection",
|
|
146
|
+
"plan-name": "value for [plan-name] placeholder",
|
|
147
|
+
"plan-description": "value for [plan-description] placeholder",
|
|
148
|
+
},
|
|
149
|
+
description: "Renders the named create-kind template with the provided placeholder values, " +
|
|
150
|
+
"then creates the plan. All validations and write semantics are identical to create. " +
|
|
151
|
+
"Returns compressed-tree (FR-PLAN-0040).",
|
|
152
|
+
// FR-PLAN-0016 — concrete illustration from requirements
|
|
153
|
+
examples: {
|
|
154
|
+
tip: "rosettify plan create-with-template plans/feature-x/plan.json for-orchestrator [plan-name] [user-request-description-one-sentence]",
|
|
155
|
+
real: "rosettify plan create-with-template plans/feature-x/plan.json for-orchestrator \"Feature X\" \"User wants to add Y to Z\"",
|
|
156
|
+
},
|
|
93
157
|
},
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
158
|
+
{
|
|
159
|
+
name: "upsert-with-template",
|
|
160
|
+
brief: "Upsert a phase into an existing plan using a registered upsert-kind template",
|
|
161
|
+
usage: "rosettify plan upsert-with-template <plan_file> <phase-id> <template> <phase-name> <phase-description>",
|
|
162
|
+
args: {
|
|
163
|
+
"phase-id": "target phase ID and value for [phase-id] placeholder",
|
|
164
|
+
template: "template name from upsert-kind collection",
|
|
165
|
+
"phase-name": "value for [phase-name] placeholder",
|
|
166
|
+
"phase-description": "value for [phase-description] placeholder",
|
|
167
|
+
},
|
|
168
|
+
description: "Renders the named upsert-kind template with the provided placeholder values, " +
|
|
169
|
+
"then upserts the rendered phase into the plan. All upsert merge semantics apply. " +
|
|
170
|
+
"Returns compressed-tree (FR-PLAN-0040).",
|
|
171
|
+
examples: {
|
|
172
|
+
tip: "rosettify plan upsert-with-template plans/feature-x/plan.json [phase-id] for-subagent [phase-name] [phase-description-one-sentence]",
|
|
173
|
+
real: "rosettify plan upsert-with-template plans/feature-x/plan.json ph-impl for-subagent \"Implementation\" \"Implement the API endpoint\"",
|
|
174
|
+
},
|
|
97
175
|
},
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
176
|
+
{
|
|
177
|
+
name: "list-templates",
|
|
178
|
+
brief: "List all registered templates grouped by kind",
|
|
179
|
+
usage: "rosettify plan list-templates",
|
|
180
|
+
args: {},
|
|
181
|
+
description: "Returns the catalog of registered templates grouped by kind (create, upsert). " +
|
|
182
|
+
"Each entry has name, brief, and placeholders array.",
|
|
183
|
+
examples: {
|
|
184
|
+
tip: "rosettify plan list-templates",
|
|
185
|
+
real: "rosettify plan list-templates",
|
|
186
|
+
},
|
|
101
187
|
},
|
|
102
|
-
|
|
188
|
+
],
|
|
189
|
+
// FR-HELP-0002 — flat schemas dict sourced from per-subcommand declarations (not hand-authored)
|
|
190
|
+
schemas: planSchemasDict,
|
|
191
|
+
// FR-PLAN-0005 / FR-PLAN-0016 — limits
|
|
103
192
|
limits: {
|
|
104
193
|
max_phases: PLAN_MAX_PHASES,
|
|
105
194
|
max_steps_per_phase: PLAN_MAX_STEPS_PER_PHASE,
|
|
@@ -107,16 +196,16 @@ export const planHelpContent = {
|
|
|
107
196
|
max_string_length: PLAN_MAX_STRING_LENGTH,
|
|
108
197
|
max_name_length: PLAN_MAX_NAME_LENGTH,
|
|
109
198
|
},
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
update_status: "rosettify plan update_status plans/myfeature/plan.json p1-s1 complete",
|
|
114
|
-
show_status: "rosettify plan show_status plans/myfeature/plan.json",
|
|
115
|
-
query: "rosettify plan query plans/myfeature/plan.json p1",
|
|
116
|
-
upsert: "rosettify plan upsert plans/myfeature/plan.json p2 '{\"kind\":\"phase\",\"name\":\"Phase 2\",\"description\":\"Second phase\"}'",
|
|
199
|
+
// FR-PLAN-0032 / FR-PLAN-0016 — templates catalog (same as list-templates result)
|
|
200
|
+
get templates() {
|
|
201
|
+
return buildTemplateCatalog();
|
|
117
202
|
},
|
|
118
|
-
|
|
119
|
-
|
|
203
|
+
// FR-PLAN-0016 — notes array with all required behaviors
|
|
204
|
+
notes: planNotes,
|
|
205
|
+
// FR-PLAN-0016 — plan_authoring_guidance (verbatim from requirement)
|
|
206
|
+
plan_authoring_guidance: "the last step in each phase should verify all work in that phase was actually completed; " +
|
|
207
|
+
"the last phase should verify all work across the entire plan was completed",
|
|
208
|
+
// FR-PLAN-0016 — next_steps_for_ai
|
|
120
209
|
next_steps_for_ai: "1. Call 'plan next <plan_file>' to get ready steps. " +
|
|
121
210
|
"2. For each step: call 'plan update_status <plan_file> <step_id> in_progress', execute the work, " +
|
|
122
211
|
"then call 'plan update_status <plan_file> <step_id> complete'. " +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help-content.js","sourceRoot":"","sources":["../../../src/commands/plan/help-content.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,8BAA8B,EAC9B,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"help-content.js","sourceRoot":"","sources":["../../../src/commands/plan/help-content.ts"],"names":[],"mappings":"AAAA,6FAA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,EAAE,EAAE;YACR,WAAW,EACT,gFAAgF;gBAChF,qDAAqD;YACvD,QAAQ,EAAE;gBACR,GAAG,EAAE,+BAA+B;gBACpC,IAAI,EAAE,+BAA+B;aACtC;SACF;KACF;IAED,gGAAgG;IAChG,OAAO,EAAE,eAAe;IAExB,uCAAuC;IACvC,MAAM,EAAE;QACN,UAAU,EAAE,eAAe;QAC3B,mBAAmB,EAAE,wBAAwB;QAC7C,yBAAyB,EAAE,8BAA8B;QACzD,iBAAiB,EAAE,sBAAsB;QACzC,eAAe,EAAE,oBAAoB;KACtC;IAED,kFAAkF;IAClF,IAAI,SAAS;QACX,OAAO,oBAAoB,EAAE,CAAC;IAChC,CAAC;IAED,yDAAyD;IACzD,KAAK,EAAE,SAAS;IAEhB,qEAAqE;IACrE,uBAAuB,EACrB,2FAA2F;QAC3F,4EAA4E;IAE9E,mCAAmC;IACnC,iBAAiB,EACf,sDAAsD;QACtD,mGAAmG;QACnG,iEAAiE;QACjE,gEAAgE;CACnE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAe,MAAM,yBAAyB,CAAC;AAEpE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AA2I3C,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,SAAS,EAAE,OAAO,CAyFnD,CAAC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// Plan command entry point.
|
|
2
|
+
// Routes all plan subcommands and exposes the ToolDef for CLI/MCP registration.
|
|
3
|
+
// Implements FR-PLAN-0022 (no-args returns help), FR-PLAN-0023 (unknown subcommand error).
|
|
1
4
|
import { ok, err } from "../../shared/envelope.js";
|
|
2
5
|
import { cmdCreate } from "./create.js";
|
|
3
6
|
import { cmdNext } from "./next.js";
|
|
@@ -5,7 +8,12 @@ import { cmdUpdateStatus } from "./update-status.js";
|
|
|
5
8
|
import { cmdShowStatus } from "./show-status.js";
|
|
6
9
|
import { cmdQuery } from "./query.js";
|
|
7
10
|
import { cmdUpsert } from "./upsert.js";
|
|
11
|
+
import { cmdCreateWithTemplate } from "./create-with-template.js";
|
|
12
|
+
import { cmdUpsertWithTemplate } from "./upsert-with-template.js";
|
|
13
|
+
import { cmdListTemplates } from "./list-templates.js";
|
|
8
14
|
import { planHelpContent } from "./help-content.js";
|
|
15
|
+
import { ERR_MISSING_TEMPLATE_PARAM } from "./errors.js";
|
|
16
|
+
// FR-PLAN-0023 — valid subcommand list includes all new subcommands
|
|
9
17
|
const VALID_SUBCOMMANDS = [
|
|
10
18
|
"create",
|
|
11
19
|
"next",
|
|
@@ -13,16 +21,20 @@ const VALID_SUBCOMMANDS = [
|
|
|
13
21
|
"show_status",
|
|
14
22
|
"query",
|
|
15
23
|
"upsert",
|
|
24
|
+
"create-with-template",
|
|
25
|
+
"upsert-with-template",
|
|
26
|
+
"list-templates",
|
|
16
27
|
];
|
|
28
|
+
const VALID_SUBCOMMANDS_STR = VALID_SUBCOMMANDS.join(", ");
|
|
17
29
|
async function runPlan(input) {
|
|
18
|
-
const { subcommand, plan_file, data, target_id, new_status, limit, kind, phase_id } = input;
|
|
19
|
-
//
|
|
30
|
+
const { subcommand, plan_file, data, target_id, new_status, limit, kind, phase_id, template, "plan-name": planName, "plan-description": planDescription, "phase-id": phaseId, "phase-name": phaseName, "phase-description": phaseDescription, } = input;
|
|
31
|
+
// FR-PLAN-0022 — no subcommand returns help content
|
|
20
32
|
if (!subcommand) {
|
|
21
33
|
return ok(planHelpContent);
|
|
22
34
|
}
|
|
23
|
-
//
|
|
35
|
+
// FR-PLAN-0023 — unknown subcommand: return error with valid list and include_help=true
|
|
24
36
|
if (!VALID_SUBCOMMANDS.includes(subcommand)) {
|
|
25
|
-
return err(`unknown_command: ${subcommand} | valid:
|
|
37
|
+
return err(`unknown_command: ${subcommand} | valid: ${VALID_SUBCOMMANDS_STR}`, true);
|
|
26
38
|
}
|
|
27
39
|
// Parse data if it's a JSON string
|
|
28
40
|
let parsedData;
|
|
@@ -78,21 +90,53 @@ async function runPlan(input) {
|
|
|
78
90
|
return err("missing_data", true);
|
|
79
91
|
return cmdUpsert(plan_file, target_id, parsedData, kind, phase_id);
|
|
80
92
|
}
|
|
93
|
+
// FR-PLAN-0030 — create-with-template
|
|
94
|
+
case "create-with-template": {
|
|
95
|
+
if (!plan_file)
|
|
96
|
+
return err("missing plan_file", true);
|
|
97
|
+
if (template === undefined || template === null)
|
|
98
|
+
return err(`${ERR_MISSING_TEMPLATE_PARAM}: template`, true);
|
|
99
|
+
// FR-PLAN-0034 — provided=present. Empty string is a value; only undefined/null = absent.
|
|
100
|
+
if (planName === undefined || planName === null)
|
|
101
|
+
return err(`${ERR_MISSING_TEMPLATE_PARAM}: plan-name`, true);
|
|
102
|
+
if (planDescription === undefined || planDescription === null)
|
|
103
|
+
return err(`${ERR_MISSING_TEMPLATE_PARAM}: plan-description`, true);
|
|
104
|
+
return cmdCreateWithTemplate(plan_file, template, planName, planDescription);
|
|
105
|
+
}
|
|
106
|
+
// FR-PLAN-0031 — upsert-with-template
|
|
107
|
+
case "upsert-with-template": {
|
|
108
|
+
if (!plan_file)
|
|
109
|
+
return err("missing plan_file", true);
|
|
110
|
+
// phase-id is also the upsert target_id, so it must be a non-empty string.
|
|
111
|
+
if (!phaseId)
|
|
112
|
+
return err(`${ERR_MISSING_TEMPLATE_PARAM}: phase-id`, true);
|
|
113
|
+
if (template === undefined || template === null)
|
|
114
|
+
return err(`${ERR_MISSING_TEMPLATE_PARAM}: template`, true);
|
|
115
|
+
if (phaseName === undefined || phaseName === null)
|
|
116
|
+
return err(`${ERR_MISSING_TEMPLATE_PARAM}: phase-name`, true);
|
|
117
|
+
if (phaseDescription === undefined || phaseDescription === null)
|
|
118
|
+
return err(`${ERR_MISSING_TEMPLATE_PARAM}: phase-description`, true);
|
|
119
|
+
return cmdUpsertWithTemplate(plan_file, phaseId, template, phaseName, phaseDescription);
|
|
120
|
+
}
|
|
121
|
+
// FR-PLAN-0032 — list-templates
|
|
122
|
+
case "list-templates": {
|
|
123
|
+
return cmdListTemplates();
|
|
124
|
+
}
|
|
81
125
|
default:
|
|
82
126
|
return err(`unknown_command: ${subcommand}`, true);
|
|
83
127
|
}
|
|
84
128
|
}
|
|
85
129
|
export const planToolDef = {
|
|
86
130
|
name: "plan",
|
|
87
|
-
brief: "Manage execution plans (create, query, update, upsert)",
|
|
131
|
+
brief: "Manage execution plans (create, query, update, upsert, templates)",
|
|
88
132
|
description: "Manages two-level execution plans stored as JSON files. " +
|
|
89
|
-
|
|
133
|
+
`Subcommands: ${VALID_SUBCOMMANDS_STR}.`,
|
|
90
134
|
inputSchema: {
|
|
91
135
|
type: "object",
|
|
92
136
|
properties: {
|
|
93
137
|
subcommand: {
|
|
94
138
|
type: "string",
|
|
95
|
-
description:
|
|
139
|
+
description: `Subcommand: ${VALID_SUBCOMMANDS_STR}`,
|
|
96
140
|
},
|
|
97
141
|
plan_file: {
|
|
98
142
|
type: "string",
|
|
@@ -125,6 +169,31 @@ export const planToolDef = {
|
|
|
125
169
|
type: "string",
|
|
126
170
|
description: "Parent phase for new step (upsert)",
|
|
127
171
|
},
|
|
172
|
+
// FR-PLAN-0030 / FR-PLAN-0034 — template parameters (kebab-case, uniform across CLI/MCP)
|
|
173
|
+
template: {
|
|
174
|
+
type: "string",
|
|
175
|
+
description: "FR-PLAN-0030 / FR-PLAN-0031 — template name",
|
|
176
|
+
},
|
|
177
|
+
"plan-name": {
|
|
178
|
+
type: "string",
|
|
179
|
+
description: "FR-PLAN-0030 / FR-PLAN-0034 — value for [plan-name] placeholder",
|
|
180
|
+
},
|
|
181
|
+
"plan-description": {
|
|
182
|
+
type: "string",
|
|
183
|
+
description: "FR-PLAN-0030 / FR-PLAN-0034 — value for [plan-description] placeholder",
|
|
184
|
+
},
|
|
185
|
+
"phase-id": {
|
|
186
|
+
type: "string",
|
|
187
|
+
description: "FR-PLAN-0031 / FR-PLAN-0034 — value for [phase-id] placeholder",
|
|
188
|
+
},
|
|
189
|
+
"phase-name": {
|
|
190
|
+
type: "string",
|
|
191
|
+
description: "FR-PLAN-0031 / FR-PLAN-0034 — value for [phase-name] placeholder",
|
|
192
|
+
},
|
|
193
|
+
"phase-description": {
|
|
194
|
+
type: "string",
|
|
195
|
+
description: "FR-PLAN-0031 / FR-PLAN-0034 — value for [phase-description] placeholder",
|
|
196
|
+
},
|
|
128
197
|
},
|
|
129
198
|
required: [],
|
|
130
199
|
},
|
|
@@ -140,5 +209,10 @@ export const planToolDef = {
|
|
|
140
209
|
cli: true,
|
|
141
210
|
mcp: true,
|
|
142
211
|
run: runPlan,
|
|
212
|
+
// FR-HELP-0002 / FR-PLAN-0016 — forward the full plan help content payload through
|
|
213
|
+
// help/index.ts. Includes plan_file, concepts, subagent_fields, subcommands with
|
|
214
|
+
// dual-form examples, schemas, limits, templates, notes, plan_authoring_guidance,
|
|
215
|
+
// next_steps_for_ai.
|
|
216
|
+
helpContent: planHelpContent,
|
|
143
217
|
};
|
|
144
218
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/plan/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/plan/index.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,gFAAgF;AAChF,2FAA2F;AAG3F,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD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