rosettify 2.2.1 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/commands/help/index.d.ts.map +1 -1
  2. package/dist/commands/help/index.js +1 -2
  3. package/dist/commands/help/index.js.map +1 -1
  4. package/dist/commands/plan/core.d.ts +38 -31
  5. package/dist/commands/plan/core.d.ts.map +1 -1
  6. package/dist/commands/plan/core.js.map +1 -1
  7. package/dist/commands/plan/create-with-template.d.ts +3 -16
  8. package/dist/commands/plan/create-with-template.d.ts.map +1 -1
  9. package/dist/commands/plan/create-with-template.js +4 -11
  10. package/dist/commands/plan/create-with-template.js.map +1 -1
  11. package/dist/commands/plan/create.d.ts +3 -55
  12. package/dist/commands/plan/create.d.ts.map +1 -1
  13. package/dist/commands/plan/create.js +4 -38
  14. package/dist/commands/plan/create.js.map +1 -1
  15. package/dist/commands/plan/help-content.d.ts +18 -3
  16. package/dist/commands/plan/help-content.d.ts.map +1 -1
  17. package/dist/commands/plan/help-content.js +56 -33
  18. package/dist/commands/plan/help-content.js.map +1 -1
  19. package/dist/commands/plan/index.d.ts.map +1 -1
  20. package/dist/commands/plan/index.js +6 -7
  21. package/dist/commands/plan/index.js.map +1 -1
  22. package/dist/commands/plan/list-templates.d.ts +4 -27
  23. package/dist/commands/plan/list-templates.d.ts.map +1 -1
  24. package/dist/commands/plan/list-templates.js +1 -7
  25. package/dist/commands/plan/list-templates.js.map +1 -1
  26. package/dist/commands/plan/next.d.ts +3 -16
  27. package/dist/commands/plan/next.d.ts.map +1 -1
  28. package/dist/commands/plan/next.js +67 -25
  29. package/dist/commands/plan/next.js.map +1 -1
  30. package/dist/commands/plan/output.d.ts +10 -21
  31. package/dist/commands/plan/output.d.ts.map +1 -1
  32. package/dist/commands/plan/output.js +6 -6
  33. package/dist/commands/plan/output.js.map +1 -1
  34. package/dist/commands/plan/query.d.ts +7 -2
  35. package/dist/commands/plan/query.d.ts.map +1 -1
  36. package/dist/commands/plan/query.js +6 -3
  37. package/dist/commands/plan/query.js.map +1 -1
  38. package/dist/commands/plan/schemas.d.ts +36 -151
  39. package/dist/commands/plan/schemas.d.ts.map +1 -1
  40. package/dist/commands/plan/schemas.js +200 -68
  41. package/dist/commands/plan/schemas.js.map +1 -1
  42. package/dist/commands/plan/show-status.d.ts +9 -22
  43. package/dist/commands/plan/show-status.d.ts.map +1 -1
  44. package/dist/commands/plan/show-status.js +7 -10
  45. package/dist/commands/plan/show-status.js.map +1 -1
  46. package/dist/commands/plan/templates/create/for-orchestrator.d.ts +14 -33
  47. package/dist/commands/plan/templates/create/for-orchestrator.d.ts.map +1 -1
  48. package/dist/commands/plan/templates/create/for-orchestrator.js +14 -38
  49. package/dist/commands/plan/templates/create/for-orchestrator.js.map +1 -1
  50. package/dist/commands/plan/templates/index.d.ts +29 -45
  51. package/dist/commands/plan/templates/index.d.ts.map +1 -1
  52. package/dist/commands/plan/templates/index.js +2 -0
  53. package/dist/commands/plan/templates/index.js.map +1 -1
  54. package/dist/commands/plan/templates/upsert/for-subagent.d.ts +10 -9
  55. package/dist/commands/plan/templates/upsert/for-subagent.d.ts.map +1 -1
  56. package/dist/commands/plan/templates/upsert/for-subagent.js +12 -11
  57. package/dist/commands/plan/templates/upsert/for-subagent.js.map +1 -1
  58. package/dist/commands/plan/update-status.d.ts +2 -3
  59. package/dist/commands/plan/update-status.d.ts.map +1 -1
  60. package/dist/commands/plan/update-status.js +2 -3
  61. package/dist/commands/plan/update-status.js.map +1 -1
  62. package/dist/commands/plan/upsert-with-template.d.ts +3 -16
  63. package/dist/commands/plan/upsert-with-template.d.ts.map +1 -1
  64. package/dist/commands/plan/upsert-with-template.js +5 -12
  65. package/dist/commands/plan/upsert-with-template.js.map +1 -1
  66. package/dist/commands/plan/upsert.d.ts +3 -16
  67. package/dist/commands/plan/upsert.d.ts.map +1 -1
  68. package/dist/commands/plan/upsert.js +9 -17
  69. package/dist/commands/plan/upsert.js.map +1 -1
  70. package/dist/frontends/cli.d.ts.map +1 -1
  71. package/dist/frontends/cli.js +8 -4
  72. package/dist/frontends/cli.js.map +1 -1
  73. package/dist/frontends/mcp.d.ts.map +1 -1
  74. package/dist/frontends/mcp.js +2 -1
  75. package/dist/frontends/mcp.js.map +1 -1
  76. package/dist/shared/version.d.ts +2 -0
  77. package/dist/shared/version.d.ts.map +1 -0
  78. package/dist/shared/version.js +8 -0
  79. package/dist/shared/version.js.map +1 -0
  80. package/package.json +3 -3
@@ -1,31 +1,41 @@
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
+ // Implements FR-PLAN-0016 (plan help content), FR-PLAN-0018 (limits/examples),
2
+ // FR-PLAN-0041 (schemas), FR-PLAN-0042 (notes), FR-HELP-0002.
3
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
4
  import { planSchemasDict } from "./schemas.js";
5
5
  import { buildTemplateCatalog } from "./templates/index.js";
6
- // FR-PLAN-0016 — notes documenting behaviors that affect the caller upfront
6
+ // FR-PLAN-0042 — notes documenting behaviors that affect the caller upfront
7
7
  export const planNotes = [
8
- // FR-PLAN-0015 / FR-PLAN-0016 — status silently dropped
8
+ // Silent-drop note (FR-PLAN-0015 / FR-PLAN-0016)
9
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
10
+ // Write-cycle summary (FR-PLAN-0024)
11
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
12
+ // Atomic rename + previous_version chain (FR-PLAN-0024)
13
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
14
+ // Backup retention (FR-PLAN-0024)
15
15
  "backup retention is bounded; the oldest backups beyond the configured limit (default 5) are pruned",
16
- // FR-SHRD-0009 — read resilience
16
+ // Read resilience (FR-SHRD-0009)
17
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
18
+ // Template kind separation (FR-PLAN-0033)
19
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
20
+ // Placeholder syntax (FR-PLAN-0034)
21
21
  "placeholder syntax in templates is [placeholder-name]; provided params and declared placeholders must match exactly",
22
+ // End-to-end usage (FR-PLAN-0042)
23
+ "end-to-end usage: (1) build the whole plan from a create-kind template with create-with-template; (2) for each phase, seed the subagent's first steps from an upsert-kind template with upsert-with-template before delegating that phase; (3) hand the phase to its subagent; (4) the subagent works the phase in a loop — call next with --target <its phase id> for the next small batch, call update_status <step_id> in_progress before starting a step and update_status <step_id> complete once it passes; (5) the phase is finished when next returns count 0 and parent.status is complete; if blocked or failed steps remain, recover them before finishing",
24
+ // Phase-scoped next (FR-PLAN-0042)
25
+ "phase-scoped next: when working a single phase always call next with --target <that phase id> so the batch and all the counts cover only that phase; --target may be passed with or without a limit",
26
+ // What next returns (FR-PLAN-0042)
27
+ "what next returns: next lists steps in priority order — in_progress, then ready open, then blocked, then failed — and cuts the list off at limit (default 3). Because in_progress and open steps come first, when there is enough work to do the blocked and failed steps get cut off and won't appear in that call. The Overall*Count fields are a headcount of every status in scope (open, in_progress, blocked, failed, complete) — a reminder of what exists even when the limit hid some",
28
+ // Three outcomes of a next call (FR-PLAN-0042)
29
+ "three outcomes of a next call: if count is greater than 0, work the returned steps; if count is 0 and the scope is complete (parent.status complete under --target, otherwise plan_status complete), the scope is done; if count is 0 but blocked or failed steps remain, stop looping and recover them",
30
+ // Recover blocked/failed/stuck steps (FR-PLAN-0042)
31
+ "recover blocked, failed, or stuck steps: when OverallBlockedCount or OverallFailedCount is non-zero, or OverallInProgressCount does not fall across calls (a stuck in_progress step), call show_status with --target <phase id> to list every step with its status — it has no limit, so it scales to any number of steps — then for each blocked, failed, or stuck step call query <step_id> for full detail, re-review and re-verify the work, and retry it by resetting its status with update_status <step_id> open (or in_progress) so next surfaces it again; do not finish the phase while any blocked or failed step remains",
22
32
  ];
23
33
  export const planHelpContent = {
24
34
  name: "plan",
25
35
  brief: "Manage execution plans (create, query, update, upsert)",
26
36
  description: "The plan command manages two-level execution plans stored as JSON files. " +
27
37
  "Plans contain phases, phases contain steps. Status propagates bottom-up automatically. " +
28
- "Write subcommands return a compressed-tree snapshot of the post-write plan.",
38
+ "Write subcommands return a PlanWriteResult snapshot of the post-write plan.",
29
39
  // FR-PLAN-0016 — plan_file convention
30
40
  plan_file: {
31
41
  convention: "plans/<feature>/plan.json",
@@ -36,12 +46,10 @@ export const planHelpContent = {
36
46
  hierarchy: "Two levels: phases contain steps. You assign string IDs.",
37
47
  statuses: "open | in_progress | complete | blocked | failed",
38
48
  depends_on: "Phases reference phase IDs; steps reference step IDs (cross-phase allowed).",
39
- status_propagation: "Bottom-up: steps → phases → plan. all-complete=complete, any-failed=failed, " +
40
- "any-blocked=blocked, any-in_progress/complete=in_progress, else open. " +
49
+ status_propagation: "Bottom-up: steps → phases → plan. A parent is complete only when all children are complete. " +
50
+ "Otherwise: failed outranks blocked, blocked outranks in_progress, in_progress outranks open. " +
41
51
  "Plan root status is always derived — never set manually.",
42
52
  target_id: '"entire_plan" | phase-id | step-id (default: entire_plan)',
43
- resume: "next returns in_progress steps (resume:true) before open steps. " +
44
- "Always check resume flag to avoid duplicate work on interrupted sessions.",
45
53
  },
46
54
  // FR-PLAN-0016 — subagent_fields
47
55
  subagent_fields: {
@@ -50,17 +58,17 @@ export const planHelpContent = {
50
58
  role: "specialization to assume, brilliant and short",
51
59
  model: "comma-separated list of recommended models",
52
60
  },
53
- // FR-PLAN-0016 — subcommands with dual-form examples (FR-PLAN-0018)
61
+ // FR-PLAN-0016 — subcommands with dual-form examples (FR-PLAN-0018) and required statements
54
62
  subcommands: [
55
63
  {
56
64
  name: "create",
57
65
  brief: "Create a new plan JSON file",
58
66
  usage: "rosettify plan create <plan_file> '<plan-json>'",
59
67
  args: { "plan-json": "JSON with name, description?, phases[]" },
68
+ required: "plan_file and data (plan JSON) are required",
60
69
  description: "Creates a new plan at plan_file. Defaults: name='Unnamed Plan', status='open', " +
61
70
  "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
71
+ "Returns PlanWriteResult: plan + phases summary.",
64
72
  examples: {
65
73
  tip: "rosettify plan create [plan_file] '[plan-json-with-name-phases]'",
66
74
  real: "rosettify plan create plans/feature-x/plan.json '{\"name\":\"Feature X\",\"phases\":[]}'",
@@ -71,12 +79,15 @@ export const planHelpContent = {
71
79
  brief: "Return steps ready for execution",
72
80
  usage: "rosettify plan next <plan_file> [limit] [--target <phase_id>]",
73
81
  args: {
74
- limit: "max steps to return (default: 10)",
82
+ limit: "max steps to return (default: 3)",
75
83
  "--target": "scope to a specific phase",
76
84
  },
77
- description: "Returns steps in priority order: (1) in_progress (resume:true), " +
78
- "(2) open with deps satisfied, (3) blocked (previously_blocked:true), " +
79
- "(4) failed (previously_failed:true). Loop until count:0 and plan_status:complete.",
85
+ required: "plan_file is required; limit and --target are optional",
86
+ description: "Returns steps in priority order: (1) in_progress, " +
87
+ "(2) open with deps satisfied, (3) blocked, " +
88
+ "(4) failed. Truncated to limit (default 3). Each step carries its status. " +
89
+ "Completion is judged by parent.status when --target is used (otherwise plan_status); blocked or failed steps must be recovered, not ignored — see notes for the three outcomes. " +
90
+ "Overall*Count fields report counts for all statuses in scope regardless of the limit.",
80
91
  examples: {
81
92
  tip: "rosettify plan next [plan_file] [limit] --target [phase-id]",
82
93
  real: "rosettify plan next plans/feature-x/plan.json 5 --target ph-impl",
@@ -90,6 +101,7 @@ export const planHelpContent = {
90
101
  step_id: "step ID (phases are derived, cannot be set directly)",
91
102
  status: "open | in_progress | complete | blocked | failed",
92
103
  },
104
+ required: "plan_file, step_id, and status are required",
93
105
  description: "Updates a single step status and propagates upward. " +
94
106
  "Phase status is always derived from child steps.",
95
107
  examples: {
@@ -102,6 +114,7 @@ export const planHelpContent = {
102
114
  brief: "Status summary with progress percentages and totals",
103
115
  usage: "rosettify plan show_status <plan_file> [target_id]",
104
116
  args: { target_id: "entire_plan | phase-id | step-id (default: entire_plan)" },
117
+ required: "plan_file is required; target_id defaults to entire_plan",
105
118
  description: "Returns progress totals for plan, phase, or step. " +
106
119
  "progress_pct = round(complete/total * 1000) / 10",
107
120
  examples: {
@@ -114,6 +127,7 @@ export const planHelpContent = {
114
127
  brief: "Return full JSON of plan, phase, or step",
115
128
  usage: "rosettify plan query <plan_file> [target_id]",
116
129
  args: { target_id: "entire_plan | phase-id | step-id (default: entire_plan)" },
130
+ required: "plan_file is required; target_id defaults to entire_plan",
117
131
  description: "Returns full JSON of the requested target.",
118
132
  examples: {
119
133
  tip: "rosettify plan query [plan_file] [target-id-or-entire_plan]",
@@ -130,8 +144,10 @@ export const planHelpContent = {
130
144
  kind: "required for new items: 'phase' or 'step'",
131
145
  phase_id: "required for new step: parent phase ID",
132
146
  },
147
+ required: "plan_file, target_id, and data (patch JSON) are required",
148
+ conditional_requirements: "kind is required only when the target id does not already exist; phase_id is required only when kind is step",
133
149
  description: "Creates or merge-patches plan/phase/step. Status fields in patch are silently stripped. " +
134
- "Use update_status to change status after each task completion. Returns compressed-tree (FR-PLAN-0040).",
150
+ "Use update_status to change status after each task completion. Returns PlanWriteResult.",
135
151
  examples: {
136
152
  tip: "rosettify plan upsert [plan_file] [target-id] '[patch-json]'",
137
153
  real: "rosettify plan upsert plans/feature-x/plan.json ph-review '{\"kind\":\"phase\",\"name\":\"Review\"}'",
@@ -146,10 +162,10 @@ export const planHelpContent = {
146
162
  "plan-name": "value for [plan-name] placeholder",
147
163
  "plan-description": "value for [plan-description] placeholder",
148
164
  },
165
+ required: "plan_file, template, plan-name, and plan-description are all required",
149
166
  description: "Renders the named create-kind template with the provided placeholder values, " +
150
167
  "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
168
+ "Returns PlanWriteResult.",
153
169
  examples: {
154
170
  tip: "rosettify plan create-with-template plans/feature-x/plan.json for-orchestrator [plan-name] [user-request-description-one-sentence]",
155
171
  real: "rosettify plan create-with-template plans/feature-x/plan.json for-orchestrator \"Feature X\" \"User wants to add Y to Z\"",
@@ -165,9 +181,10 @@ export const planHelpContent = {
165
181
  "phase-name": "value for [phase-name] placeholder",
166
182
  "phase-description": "value for [phase-description] placeholder",
167
183
  },
184
+ required: "plan_file, phase-id, template, phase-name, and phase-description are all required",
168
185
  description: "Renders the named upsert-kind template with the provided placeholder values, " +
169
186
  "then upserts the rendered phase into the plan. All upsert merge semantics apply. " +
170
- "Returns compressed-tree (FR-PLAN-0040).",
187
+ "Returns PlanWriteResult.",
171
188
  examples: {
172
189
  tip: "rosettify plan upsert-with-template plans/feature-x/plan.json [phase-id] for-subagent [phase-name] [phase-description-one-sentence]",
173
190
  real: "rosettify plan upsert-with-template plans/feature-x/plan.json ph-impl for-subagent \"Implementation\" \"Implement the API endpoint\"",
@@ -178,8 +195,9 @@ export const planHelpContent = {
178
195
  brief: "List all registered templates grouped by kind",
179
196
  usage: "rosettify plan list-templates",
180
197
  args: {},
198
+ required: "no required inputs",
181
199
  description: "Returns the catalog of registered templates grouped by kind (create, upsert). " +
182
- "Each entry has name, brief, and placeholders array.",
200
+ "Each entry has name, brief, placeholders array, and produces (what the template generates).",
183
201
  examples: {
184
202
  tip: "rosettify plan list-templates",
185
203
  real: "rosettify plan list-templates",
@@ -200,15 +218,20 @@ export const planHelpContent = {
200
218
  get templates() {
201
219
  return buildTemplateCatalog();
202
220
  },
203
- // FR-PLAN-0016 — notes array with all required behaviors
221
+ // FR-PLAN-0016 / FR-PLAN-0042 — notes array with all required behaviors
204
222
  notes: planNotes,
205
223
  // FR-PLAN-0016 — plan_authoring_guidance (verbatim from requirement)
206
224
  plan_authoring_guidance: "the last step in each phase should verify all work in that phase was actually completed; " +
207
225
  "the last phase should verify all work across the entire plan was completed",
208
- // FR-PLAN-0016 — next_steps_for_ai
209
- next_steps_for_ai: "1. Call 'plan next <plan_file>' to get ready steps. " +
210
- "2. For each step: call 'plan update_status <plan_file> <step_id> in_progress', execute the work, " +
211
- "then call 'plan update_status <plan_file> <step_id> complete'. " +
212
- "3. Repeat until next returns count:0 and plan_status:complete.",
226
+ // FR-PLAN-0016 — next_steps_for_ai with three outcomes
227
+ next_steps_for_ai: "Three outcomes of a next call: " +
228
+ "(1) count > 0 — work the returned steps (call update_status in_progress before starting each step, " +
229
+ "update_status complete once it passes, then call next again for the next batch). " +
230
+ "(2) count = 0 and scope is complete (parent.status = complete under --target, otherwise plan_status = complete) — " +
231
+ "the scope is done; move on. " +
232
+ "(3) count = 0 but blocked or failed steps remain — stop looping and recover: call show_status --target <phase id> " +
233
+ "to list every step with its status, call query <step_id> for full detail on each blocked or failed step, " +
234
+ "re-review and re-verify the work, then reset status with update_status <step_id> open (or in_progress) " +
235
+ "so next surfaces it again.",
213
236
  };
214
237
  //# sourceMappingURL=help-content.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"help-content.js","sourceRoot":"","sources":["../../../src/commands/plan/help-content.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,0EAA0E;AAE1E,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,8BAA8B,EAC9B,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,4EAA4E;AAC5E,MAAM,CAAC,MAAM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C,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
+ {"version":3,"file":"help-content.js","sourceRoot":"","sources":["../../../src/commands/plan/help-content.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,8DAA8D;AAE9D,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,8BAA8B,EAC9B,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,4EAA4E;AAC5E,MAAM,CAAC,MAAM,SAAS,GAAa;IACjC,iDAAiD;IACjD,gHAAgH;IAChH,qCAAqC;IACrC,qHAAqH;IACrH,wDAAwD;IACxD,0NAA0N;IAC1N,kCAAkC;IAClC,oGAAoG;IACpG,iCAAiC;IACjC,iHAAiH;IACjH,0CAA0C;IAC1C,sGAAsG;IACtG,oCAAoC;IACpC,qHAAqH;IACrH,kCAAkC;IAClC,uoBAAuoB;IACvoB,mCAAmC;IACnC,qMAAqM;IACrM,mCAAmC;IACnC,geAAge;IAChe,+CAA+C;IAC/C,ySAAyS;IACzS,oDAAoD;IACpD,smBAAsmB;CACvmB,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,wDAAwD;IAC/D,WAAW,EACT,2EAA2E;QAC3E,yFAAyF;QACzF,6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,OAAO,oBAAoB,EAAE,CAAC;IAChC,CAAC;IAED,wEAAwE;IACxE,KAAK,EAAE,SAAS;IAEhB,qEAAqE;IACrE,uBAAuB,EACrB,2FAA2F;QAC3F,4EAA4E;IAE9E,uDAAuD;IACvD,iBAAiB,EACf,iCAAiC;QACjC,qGAAqG;QACrG,mFAAmF;QACnF,oHAAoH;QACpH,8BAA8B;QAC9B,oHAAoH;QACpH,2GAA2G;QAC3G,yGAAyG;QACzG,4BAA4B;CAC/B,CAAC"}
@@ -1 +1 @@
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
+ {"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,CAwFnD,CAAC"}
@@ -172,30 +172,29 @@ export const planToolDef = {
172
172
  // FR-PLAN-0030 / FR-PLAN-0034 — template parameters (kebab-case, uniform across CLI/MCP)
173
173
  template: {
174
174
  type: "string",
175
- description: "FR-PLAN-0030 / FR-PLAN-0031 — template name",
175
+ description: "Template name",
176
176
  },
177
177
  "plan-name": {
178
178
  type: "string",
179
- description: "FR-PLAN-0030 / FR-PLAN-0034 — value for [plan-name] placeholder",
179
+ description: "Value for [plan-name] placeholder",
180
180
  },
181
181
  "plan-description": {
182
182
  type: "string",
183
- description: "FR-PLAN-0030 / FR-PLAN-0034 — value for [plan-description] placeholder",
183
+ description: "Value for [plan-description] placeholder",
184
184
  },
185
185
  "phase-id": {
186
186
  type: "string",
187
- description: "FR-PLAN-0031 / FR-PLAN-0034 — value for [phase-id] placeholder",
187
+ description: "Value for [phase-id] placeholder",
188
188
  },
189
189
  "phase-name": {
190
190
  type: "string",
191
- description: "FR-PLAN-0031 / FR-PLAN-0034 — value for [phase-name] placeholder",
191
+ description: "Value for [phase-name] placeholder",
192
192
  },
193
193
  "phase-description": {
194
194
  type: "string",
195
- description: "FR-PLAN-0031 / FR-PLAN-0034 — value for [phase-description] placeholder",
195
+ description: "Value for [phase-description] placeholder",
196
196
  },
197
197
  },
198
- required: [],
199
198
  },
200
199
  outputSchema: {
201
200
  type: "object",
@@ -1 +1 @@
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,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAEzD,oEAAoE;AACpE,MAAM,iBAAi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UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kCAAkC;aAChD;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oCAAoC;aAClD;YACD,mBAAmB,EAAE;gBACnB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,2CAA2C;aACzD;SACF;KACF;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;YACvB,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACzB,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAClC;KACF;IACD,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,OAAO;IACZ,mFAAmF;IACnF,iFAAiF;IACjF,kFAAkF;IAClF,qBAAqB;IACrB,WAAW,EAAE,eAAqD;CACnE,CAAC"}
@@ -1,15 +1,8 @@
1
1
  import type { RunEnvelope } from "../../registry/types.js";
2
+ import { type PlanTemplateCatalogEntry } from "./templates/index.js";
2
3
  export interface ListTemplatesResult {
3
- create: Array<{
4
- name: string;
5
- brief: string;
6
- placeholders: readonly string[];
7
- }>;
8
- upsert: Array<{
9
- name: string;
10
- brief: string;
11
- placeholders: readonly string[];
12
- }>;
4
+ create: PlanTemplateCatalogEntry[];
5
+ upsert: PlanTemplateCatalogEntry[];
13
6
  }
14
7
  export declare const listTemplatesInputSchema: {
15
8
  type: "object";
@@ -19,25 +12,9 @@ export declare const listTemplatesInputSchema: {
19
12
  description: string;
20
13
  };
21
14
  };
22
- required: never[];
23
15
  };
24
16
  export declare const listTemplatesOutputSchema: {
25
- type: "object";
26
- description: string;
27
- properties: {
28
- create: {
29
- type: string;
30
- items: {
31
- type: string;
32
- };
33
- };
34
- upsert: {
35
- type: string;
36
- items: {
37
- type: string;
38
- };
39
- };
40
- };
17
+ $ref: "PlanTemplateCatalog";
41
18
  };
42
19
  export declare function cmdListTemplates(): Promise<RunEnvelope<ListTemplatesResult>>;
43
20
  //# sourceMappingURL=list-templates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-templates.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/list-templates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAM3D,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;IAChF,MAAM,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;CACjF;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;CAMpC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;CAOrC,CAAC;AAEF,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAIlF"}
1
+ {"version":3,"file":"list-templates.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/list-templates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAG3D,OAAO,EAAwB,KAAK,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAG3F,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,wBAAwB,EAAE,CAAC;IACnC,MAAM,EAAE,wBAAwB,EAAE,CAAC;CACpC;AAED,eAAO,MAAM,wBAAwB;;;;;;;;CAKpC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;CAErC,CAAC;AAEF,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAIlF"}
@@ -7,15 +7,9 @@ export const listTemplatesInputSchema = {
7
7
  properties: {
8
8
  plan_file: { type: "string", description: "Unused; included for CLI consistency" },
9
9
  },
10
- required: [],
11
10
  };
12
11
  export const listTemplatesOutputSchema = {
13
- type: "object",
14
- description: "FR-PLAN-0032 — catalog of registered templates grouped by kind",
15
- properties: {
16
- create: { type: "array", items: { type: "object" } },
17
- upsert: { type: "array", items: { type: "object" } },
18
- },
12
+ $ref: "PlanTemplateCatalog",
19
13
  };
20
14
  export async function cmdListTemplates() {
21
15
  logger.info({}, "list-templates");
@@ -1 +1 @@
1
- {"version":3,"file":"list-templates.js","sourceRoot":"","sources":["../../../src/commands/plan/list-templates.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAGvD,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAQ5D,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE;QACV,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,sCAAsC,EAAE;KACnF;IACD,QAAQ,EAAE,EAAE;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,IAAI,EAAE,QAAiB;IACvB,WAAW,EAAE,gEAAgE;IAC7E,UAAU,EAAE;QACV,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;QACpD,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;KACrD;CACF,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,gBAAgB;IACpC,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,gBAAgB,CAAC,CAAC;IAClC,gDAAgD;IAChD,OAAO,EAAE,CAAC,oBAAoB,EAAE,CAAC,CAAC;AACpC,CAAC"}
1
+ {"version":3,"file":"list-templates.js","sourceRoot":"","sources":["../../../src/commands/plan/list-templates.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAGvD,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAiC,MAAM,sBAAsB,CAAC;AAQ3F,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE;QACV,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,sCAAsC,EAAE;KACnF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,IAAI,EAAE,qBAA8B;CACrC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,gBAAgB;IACpC,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,gBAAgB,CAAC,CAAC;IAClC,gDAAgD;IAChD,OAAO,EAAE,CAAC,oBAAoB,EAAE,CAAC,CAAC;AACpC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { RunEnvelope } from "../../registry/types.js";
2
- import { type NextResult } from "./core.js";
2
+ import { type PlanNextResult } from "./core.js";
3
3
  export declare const nextInputSchema: {
4
4
  type: "object";
5
5
  properties: {
@@ -17,22 +17,9 @@ export declare const nextInputSchema: {
17
17
  description: string;
18
18
  };
19
19
  };
20
- required: never[];
21
20
  };
22
21
  export declare const nextOutputSchema: {
23
- type: "object";
24
- description: string;
25
- properties: {
26
- ready: {
27
- type: string;
28
- };
29
- count: {
30
- type: string;
31
- };
32
- plan_status: {
33
- type: string;
34
- };
35
- };
22
+ $ref: "PlanNextResult";
36
23
  };
37
- export declare function cmdNext(planFile: string, targetId?: string, limit?: number): Promise<RunEnvelope<NextResult>>;
24
+ export declare function cmdNext(planFile: string, targetId?: string, limit?: number): Promise<RunEnvelope<PlanNextResult>>;
38
25
  //# sourceMappingURL=next.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/next.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAK3D,OAAO,EAEL,KAAK,UAAU,EAMhB,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;CAQ3B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;CAQ5B,CAAC;AAEF,wBAAsB,OAAO,CAC3B,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,EACjB,KAAK,SAAK,GACT,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAqElC"}
1
+ {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/next.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAK3D,OAAO,EAEL,KAAK,cAAc,EAQpB,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;CAO3B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;CAE5B,CAAC;AAEF,wBAAsB,OAAO,CAC3B,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,EACjB,KAAK,SAAI,GACR,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,CAoGtC"}
@@ -9,21 +9,14 @@ export const nextInputSchema = {
9
9
  type: "object",
10
10
  properties: {
11
11
  plan_file: { type: "string", description: "Path to the plan JSON file" },
12
- limit: { type: "integer", minimum: 0, description: "Max steps to return (default: 10)" },
12
+ limit: { type: "integer", minimum: 0, description: "Max steps to return (default: 3)" },
13
13
  target_id: { type: "string", description: "Scope to a specific phase ID" },
14
14
  },
15
- required: [],
16
15
  };
17
16
  export const nextOutputSchema = {
18
- type: "object",
19
- description: "FR-PLAN-0011 — next steps result",
20
- properties: {
21
- ready: { type: "array" },
22
- count: { type: "integer" },
23
- plan_status: { type: "string" },
24
- },
17
+ $ref: "PlanNextResult",
25
18
  };
26
- export async function cmdNext(planFile, targetId, limit = 10) {
19
+ export async function cmdNext(planFile, targetId, limit = 3) {
27
20
  try {
28
21
  if (limit < 0)
29
22
  return err("invalid_limit", true);
@@ -38,8 +31,9 @@ export async function cmdNext(planFile, targetId, limit = 10) {
38
31
  if (!plan)
39
32
  return err("plan_not_found");
40
33
  // Validate target_id if provided — must reference an existing phase
34
+ let targetPhase;
41
35
  if (targetId) {
42
- const targetPhase = plan.phases.find((p) => p.id === targetId);
36
+ targetPhase = plan.phases.find((p) => p.id === targetId);
43
37
  if (!targetPhase)
44
38
  return err("target_not_found");
45
39
  }
@@ -64,31 +58,60 @@ export async function cmdNext(planFile, targetId, limit = 10) {
64
58
  for (const step of phase.steps ?? []) {
65
59
  const st = step.status ?? "open";
66
60
  if (st === "in_progress") {
67
- inProgress.push(buildNextStep(step, phase, { resume: true }));
61
+ inProgress.push(buildNextStep(step, phase));
68
62
  }
69
63
  else if (st === "open") {
70
64
  if (depsSatisfied(step, stepStatusMap)) {
71
- openReady.push(buildNextStep(step, phase, { resume: false }));
65
+ openReady.push(buildNextStep(step, phase));
72
66
  }
73
67
  }
74
68
  else if (st === "blocked") {
75
- blocked.push(buildNextStep(step, phase, { previously_blocked: true }));
69
+ blocked.push(buildNextStep(step, phase));
76
70
  }
77
71
  else if (st === "failed") {
78
- failed.push(buildNextStep(step, phase, { previously_failed: true }));
72
+ failed.push(buildNextStep(step, phase));
79
73
  }
80
74
  }
81
75
  }
82
- const ready = [...inProgress, ...openReady, ...blocked, ...failed].slice(0, limit);
83
- logger.info({ planFile, count: ready.length }, "next steps retrieved");
84
- return ok({ ready, count: ready.length, plan_status: plan.status });
76
+ const next = [...inProgress, ...openReady, ...blocked, ...failed].slice(0, limit);
77
+ // Compute Overall*Count — scoped to target phase when target_id given, else whole plan
78
+ const countScope = targetId
79
+ ? (plan.phases.filter((p) => p.id === targetId))
80
+ : plan.phases;
81
+ const overallCounts = computeOverallCounts(countScope);
82
+ // Build parent block if target_id is given (FR-PLAN-0011 — PlanPhaseContext)
83
+ let parent;
84
+ if (targetId && targetPhase) {
85
+ parent = {
86
+ id: targetPhase.id,
87
+ name: targetPhase.name,
88
+ description: targetPhase.description,
89
+ status: targetPhase.status,
90
+ depends_on: targetPhase.depends_on ?? [],
91
+ };
92
+ if (targetPhase.subagent)
93
+ parent.subagent = targetPhase.subagent;
94
+ if (targetPhase.role)
95
+ parent.role = targetPhase.role;
96
+ if (targetPhase.model)
97
+ parent.model = targetPhase.model;
98
+ }
99
+ const result = {
100
+ ...(parent !== undefined ? { parent } : {}),
101
+ next,
102
+ count: next.length,
103
+ plan_status: plan.status,
104
+ ...overallCounts,
105
+ };
106
+ logger.info({ planFile, count: next.length }, "next steps retrieved");
107
+ return ok(result);
85
108
  }
86
109
  catch (e) {
87
110
  const msg = e instanceof Error ? e.message : String(e);
88
111
  return err(`internal_error: ${msg}`);
89
112
  }
90
113
  }
91
- function buildNextStep(step, phase, flags) {
114
+ function buildNextStep(step, phase) {
92
115
  const result = {
93
116
  id: step.id,
94
117
  name: step.name,
@@ -98,12 +121,6 @@ function buildNextStep(step, phase, flags) {
98
121
  phase_id: phase.id,
99
122
  phase_name: phase.name,
100
123
  };
101
- if (flags.resume)
102
- result.resume = true;
103
- if (flags.previously_blocked)
104
- result.previously_blocked = true;
105
- if (flags.previously_failed)
106
- result.previously_failed = true;
107
124
  if (step.subagent)
108
125
  result.subagent = step.subagent;
109
126
  if (step.role)
@@ -112,4 +129,29 @@ function buildNextStep(step, phase, flags) {
112
129
  result.model = step.model;
113
130
  return result;
114
131
  }
132
+ function computeOverallCounts(phases) {
133
+ let open = 0, inProgress = 0, blocked = 0, failed = 0, complete = 0;
134
+ for (const phase of phases) {
135
+ for (const step of phase.steps ?? []) {
136
+ const st = step.status ?? "open";
137
+ if (st === "open")
138
+ open++;
139
+ else if (st === "in_progress")
140
+ inProgress++;
141
+ else if (st === "blocked")
142
+ blocked++;
143
+ else if (st === "failed")
144
+ failed++;
145
+ else if (st === "complete")
146
+ complete++;
147
+ }
148
+ }
149
+ return {
150
+ OverallOpenCount: open,
151
+ OverallInProgressCount: inProgress,
152
+ OverallBlockedCount: blocked,
153
+ OverallFailedCount: failed,
154
+ OverallCompleteCount: complete,
155
+ };
156
+ }
115
157
  //# sourceMappingURL=next.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"next.js","sourceRoot":"","sources":["../../../src/commands/plan/next.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,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,EAML,kBAAkB,EAClB,aAAa,GACd,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE;QACV,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,4BAA4B,EAAE;QACxE,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,WAAW,EAAE,mCAAmC,EAAE;QACxF,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,8BAA8B,EAAE;KAC3E;IACD,QAAQ,EAAE,EAAE;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,IAAI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