@iloom/cli 0.10.0 → 0.10.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 (155) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +2 -2
  3. package/dist/{BranchNamingService-ECJHBB67.js → BranchNamingService-25KSZAEM.js} +2 -2
  4. package/dist/ClaudeContextManager-66GR4BGM.js +14 -0
  5. package/dist/ClaudeService-7KM5NA5Z.js +13 -0
  6. package/dist/{LoomLauncher-L64HHS3T.js → LoomLauncher-TDLZSYG2.js} +6 -6
  7. package/dist/{PromptTemplateManager-DULSVRRE.js → PromptTemplateManager-YOE2SIPG.js} +2 -2
  8. package/dist/README.md +2 -2
  9. package/dist/{SettingsManager-BQDQA3FK.js → SettingsManager-FNKCOZMQ.js} +2 -2
  10. package/dist/{build-5GO3XW26.js → build-VHGEMXBA.js} +6 -6
  11. package/dist/chunk-4E7LCFUG.js +24 -0
  12. package/dist/chunk-4E7LCFUG.js.map +1 -0
  13. package/dist/{chunk-MNHZB4Z2.js → chunk-4FGEGQW4.js} +3 -3
  14. package/dist/{chunk-LXLMMXXY.js → chunk-5FJWO4IT.js} +17 -12
  15. package/dist/chunk-5FJWO4IT.js.map +1 -0
  16. package/dist/{chunk-ZHPNZC75.js → chunk-5RPBYK5Q.js} +26 -21
  17. package/dist/chunk-5RPBYK5Q.js.map +1 -0
  18. package/dist/{chunk-WY4QBK43.js → chunk-63QWFWH3.js} +2 -2
  19. package/dist/{chunk-YYAKPQBT.js → chunk-7VHJNVLF.js} +19 -9
  20. package/dist/chunk-7VHJNVLF.js.map +1 -0
  21. package/dist/{chunk-SF2P22EE.js → chunk-C6HNNJIV.js} +2 -2
  22. package/dist/{chunk-5MWV33NN.js → chunk-CVCTIDDK.js} +2 -2
  23. package/dist/{chunk-RYWFS37M.js → chunk-E6KOWMKA.js} +2 -2
  24. package/dist/{chunk-6EU6TCF6.js → chunk-EVPZFV3K.js} +5 -5
  25. package/dist/{chunk-ZEWU5PZK.js → chunk-G5V75JD5.js} +2 -2
  26. package/dist/chunk-GRISNU6G.js +651 -0
  27. package/dist/chunk-GRISNU6G.js.map +1 -0
  28. package/dist/{chunk-VGGST52X.js → chunk-I5T677EA.js} +2 -2
  29. package/dist/{chunk-VECNX6VX.js → chunk-KIK2ZFAL.js} +2 -2
  30. package/dist/{chunk-FB47TIJG.js → chunk-KKV5WH5M.js} +4 -23
  31. package/dist/chunk-KKV5WH5M.js.map +1 -0
  32. package/dist/{chunk-ZW2LKWWE.js → chunk-KVHIAWVT.js} +3 -3
  33. package/dist/{chunk-3D7WQM7I.js → chunk-LLHXQS3C.js} +2 -2
  34. package/dist/{chunk-Y4YZTHZE.js → chunk-LUKXJSRI.js} +2 -2
  35. package/dist/{ignite-CGOV3TD4.js → chunk-OTGH2HRS.js} +105 -71
  36. package/dist/chunk-OTGH2HRS.js.map +1 -0
  37. package/dist/{chunk-J5S7DFYC.js → chunk-QVLPWNE3.js} +2 -2
  38. package/dist/chunk-RJ3VBUFK.js +781 -0
  39. package/dist/chunk-RJ3VBUFK.js.map +1 -0
  40. package/dist/{chunk-SN3SQCFK.js → chunk-S7PZA6IV.js} +4 -4
  41. package/dist/{chunk-UWGVCXRF.js → chunk-SKSYYBCU.js} +23 -1
  42. package/dist/chunk-SKSYYBCU.js.map +1 -0
  43. package/dist/{chunk-JO2LZ6EQ.js → chunk-SWSJWA2S.js} +2 -2
  44. package/dist/{chunk-ONQYPICO.js → chunk-UR5DGNUO.js} +60 -6
  45. package/dist/chunk-UR5DGNUO.js.map +1 -0
  46. package/dist/{chunk-4WJNIR5O.js → chunk-UUEW5KWB.js} +1 -1
  47. package/dist/chunk-UUEW5KWB.js.map +1 -0
  48. package/dist/{chunk-NRSWLOAZ.js → chunk-WXIM2WS7.js} +4 -4
  49. package/dist/{chunk-UD3WJDIV.js → chunk-ZNMPGMHY.js} +11 -774
  50. package/dist/chunk-ZNMPGMHY.js.map +1 -0
  51. package/dist/{claude-P3NQR6IJ.js → claude-7GGEWVEM.js} +2 -2
  52. package/dist/{cleanup-6UCPVMFG.js → cleanup-6PVAC4NI.js} +19 -17
  53. package/dist/{cleanup-6UCPVMFG.js.map → cleanup-6PVAC4NI.js.map} +1 -1
  54. package/dist/cli.js +154 -614
  55. package/dist/cli.js.map +1 -1
  56. package/dist/{commit-L3EPY5QG.js → commit-FZR5XDQG.js} +12 -10
  57. package/dist/commit-FZR5XDQG.js.map +1 -0
  58. package/dist/{compile-ZS4HYRX5.js → compile-7ALJHZ4N.js} +6 -6
  59. package/dist/{contribute-ORDDQGSL.js → contribute-5GKLK3BQ.js} +3 -3
  60. package/dist/{dev-server-FYZ2AQIH.js → dev-server-7SMIB7OF.js} +8 -8
  61. package/dist/{feedback-TMBXSCM5.js → feedback-G2GJFN2F.js} +10 -8
  62. package/dist/{feedback-TMBXSCM5.js.map → feedback-G2GJFN2F.js.map} +1 -1
  63. package/dist/{git-ET64COO3.js → git-GTLKAZRJ.js} +3 -3
  64. package/dist/ignite-H2O5Y5A2.js +34 -0
  65. package/dist/ignite-H2O5Y5A2.js.map +1 -0
  66. package/dist/index.d.ts +113 -18
  67. package/dist/index.js +177 -12
  68. package/dist/index.js.map +1 -1
  69. package/dist/{init-GFQ5W7GK.js → init-32YOKXRL.js} +8 -8
  70. package/dist/{issues-T4ZZSPEG.js → issues-4UUAQ5K6.js} +3 -3
  71. package/dist/{lint-6TQXDZ3T.js → lint-AAN2NZWG.js} +6 -6
  72. package/dist/mcp/harness-server.js +140 -0
  73. package/dist/mcp/harness-server.js.map +1 -0
  74. package/dist/mcp/issue-management-server.js +140 -18
  75. package/dist/mcp/issue-management-server.js.map +1 -1
  76. package/dist/{open-5QZGXQRF.js → open-FXWW3VI4.js} +8 -8
  77. package/dist/{plan-U7ZQWLFY.js → plan-RQ5FPIGF.js} +338 -36
  78. package/dist/plan-RQ5FPIGF.js.map +1 -0
  79. package/dist/prompts/CLAUDE.md +2 -2
  80. package/dist/prompts/init-prompt.txt +102 -27
  81. package/dist/prompts/issue-prompt.txt +46 -0
  82. package/dist/prompts/plan-prompt.txt +59 -19
  83. package/dist/prompts/swarm-orchestrator-prompt.txt +107 -80
  84. package/dist/{rebase-DWIB77KV.js → rebase-6NVLX5V7.js} +17 -8
  85. package/dist/rebase-6NVLX5V7.js.map +1 -0
  86. package/dist/{recap-MX63HAKV.js → recap-OMBOKJST.js} +6 -6
  87. package/dist/{run-O3TFNQFC.js → run-BBXLRIZB.js} +8 -8
  88. package/dist/schema/settings.schema.json +36 -2
  89. package/dist/{shell-G6VC2CYR.js → shell-RF7LTND5.js} +5 -5
  90. package/dist/{summary-FWHAX55O.js → summary-WTQZ7XG2.js} +9 -9
  91. package/dist/{test-F7JNJZYP.js → test-SGO6I5Z7.js} +6 -6
  92. package/dist/{test-git-BTAOIUE2.js → test-git-XM4TM65W.js} +3 -3
  93. package/dist/{test-jira-CHYNV33F.js → test-jira-LDTOYFSD.js} +3 -3
  94. package/dist/{test-prefix-Q6TFSU6F.js → test-prefix-GBO37XCN.js} +3 -3
  95. package/dist/{test-webserver-EONCG7E7.js → test-webserver-NZ3JTVLL.js} +5 -5
  96. package/dist/{vscode-VA5X4P25.js → vscode-6XUGHJKL.js} +5 -5
  97. package/package.json +1 -1
  98. package/dist/ClaudeContextManager-QXX6ZFST.js +0 -14
  99. package/dist/ClaudeService-NJNK2SUH.js +0 -13
  100. package/dist/chunk-4WJNIR5O.js.map +0 -1
  101. package/dist/chunk-FB47TIJG.js.map +0 -1
  102. package/dist/chunk-LXLMMXXY.js.map +0 -1
  103. package/dist/chunk-ONQYPICO.js.map +0 -1
  104. package/dist/chunk-UD3WJDIV.js.map +0 -1
  105. package/dist/chunk-UVD4CZKS.js +0 -101
  106. package/dist/chunk-UVD4CZKS.js.map +0 -1
  107. package/dist/chunk-UWGVCXRF.js.map +0 -1
  108. package/dist/chunk-YYAKPQBT.js.map +0 -1
  109. package/dist/chunk-ZHPNZC75.js.map +0 -1
  110. package/dist/commit-L3EPY5QG.js.map +0 -1
  111. package/dist/ignite-CGOV3TD4.js.map +0 -1
  112. package/dist/plan-U7ZQWLFY.js.map +0 -1
  113. package/dist/rebase-DWIB77KV.js.map +0 -1
  114. /package/dist/{BranchNamingService-ECJHBB67.js.map → BranchNamingService-25KSZAEM.js.map} +0 -0
  115. /package/dist/{ClaudeContextManager-QXX6ZFST.js.map → ClaudeContextManager-66GR4BGM.js.map} +0 -0
  116. /package/dist/{ClaudeService-NJNK2SUH.js.map → ClaudeService-7KM5NA5Z.js.map} +0 -0
  117. /package/dist/{LoomLauncher-L64HHS3T.js.map → LoomLauncher-TDLZSYG2.js.map} +0 -0
  118. /package/dist/{PromptTemplateManager-DULSVRRE.js.map → PromptTemplateManager-YOE2SIPG.js.map} +0 -0
  119. /package/dist/{SettingsManager-BQDQA3FK.js.map → SettingsManager-FNKCOZMQ.js.map} +0 -0
  120. /package/dist/{build-5GO3XW26.js.map → build-VHGEMXBA.js.map} +0 -0
  121. /package/dist/{chunk-MNHZB4Z2.js.map → chunk-4FGEGQW4.js.map} +0 -0
  122. /package/dist/{chunk-WY4QBK43.js.map → chunk-63QWFWH3.js.map} +0 -0
  123. /package/dist/{chunk-SF2P22EE.js.map → chunk-C6HNNJIV.js.map} +0 -0
  124. /package/dist/{chunk-5MWV33NN.js.map → chunk-CVCTIDDK.js.map} +0 -0
  125. /package/dist/{chunk-RYWFS37M.js.map → chunk-E6KOWMKA.js.map} +0 -0
  126. /package/dist/{chunk-6EU6TCF6.js.map → chunk-EVPZFV3K.js.map} +0 -0
  127. /package/dist/{chunk-ZEWU5PZK.js.map → chunk-G5V75JD5.js.map} +0 -0
  128. /package/dist/{chunk-VGGST52X.js.map → chunk-I5T677EA.js.map} +0 -0
  129. /package/dist/{chunk-VECNX6VX.js.map → chunk-KIK2ZFAL.js.map} +0 -0
  130. /package/dist/{chunk-ZW2LKWWE.js.map → chunk-KVHIAWVT.js.map} +0 -0
  131. /package/dist/{chunk-3D7WQM7I.js.map → chunk-LLHXQS3C.js.map} +0 -0
  132. /package/dist/{chunk-Y4YZTHZE.js.map → chunk-LUKXJSRI.js.map} +0 -0
  133. /package/dist/{chunk-J5S7DFYC.js.map → chunk-QVLPWNE3.js.map} +0 -0
  134. /package/dist/{chunk-SN3SQCFK.js.map → chunk-S7PZA6IV.js.map} +0 -0
  135. /package/dist/{chunk-JO2LZ6EQ.js.map → chunk-SWSJWA2S.js.map} +0 -0
  136. /package/dist/{chunk-NRSWLOAZ.js.map → chunk-WXIM2WS7.js.map} +0 -0
  137. /package/dist/{claude-P3NQR6IJ.js.map → claude-7GGEWVEM.js.map} +0 -0
  138. /package/dist/{compile-ZS4HYRX5.js.map → compile-7ALJHZ4N.js.map} +0 -0
  139. /package/dist/{contribute-ORDDQGSL.js.map → contribute-5GKLK3BQ.js.map} +0 -0
  140. /package/dist/{dev-server-FYZ2AQIH.js.map → dev-server-7SMIB7OF.js.map} +0 -0
  141. /package/dist/{git-ET64COO3.js.map → git-GTLKAZRJ.js.map} +0 -0
  142. /package/dist/{init-GFQ5W7GK.js.map → init-32YOKXRL.js.map} +0 -0
  143. /package/dist/{issues-T4ZZSPEG.js.map → issues-4UUAQ5K6.js.map} +0 -0
  144. /package/dist/{lint-6TQXDZ3T.js.map → lint-AAN2NZWG.js.map} +0 -0
  145. /package/dist/{open-5QZGXQRF.js.map → open-FXWW3VI4.js.map} +0 -0
  146. /package/dist/{recap-MX63HAKV.js.map → recap-OMBOKJST.js.map} +0 -0
  147. /package/dist/{run-O3TFNQFC.js.map → run-BBXLRIZB.js.map} +0 -0
  148. /package/dist/{shell-G6VC2CYR.js.map → shell-RF7LTND5.js.map} +0 -0
  149. /package/dist/{summary-FWHAX55O.js.map → summary-WTQZ7XG2.js.map} +0 -0
  150. /package/dist/{test-F7JNJZYP.js.map → test-SGO6I5Z7.js.map} +0 -0
  151. /package/dist/{test-git-BTAOIUE2.js.map → test-git-XM4TM65W.js.map} +0 -0
  152. /package/dist/{test-jira-CHYNV33F.js.map → test-jira-LDTOYFSD.js.map} +0 -0
  153. /package/dist/{test-prefix-Q6TFSU6F.js.map → test-prefix-GBO37XCN.js.map} +0 -0
  154. /package/dist/{test-webserver-EONCG7E7.js.map → test-webserver-NZ3JTVLL.js.map} +0 -0
  155. /package/dist/{vscode-VA5X4P25.js.map → vscode-6XUGHJKL.js.map} +0 -0
@@ -8,6 +8,12 @@ You are running with `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`. You have access t
8
8
 
9
9
  **This is a fully autonomous workflow. Do NOT pause for user input, call AskUserQuestion, or wait for human checkpoints at any point.**
10
10
 
11
+ ### Orchestrator Discipline: Stay Lean
12
+
13
+ You are a **coordinator**, not an executor. Your job is to schedule work, track state, and make decisions -- NOT to run heavy operations directly. All git operations (rebasing, merging, committing, pushing, conflict resolution) and any other code-level work MUST be delegated to subagents via the `Task` tool. The only commands you should run directly are lightweight reads: `cat` for metadata files, `git log`/`git status` for state checks, and `il cleanup` for worktree management.
14
+
15
+ **Why:** Running heavy operations in the orchestrator bloats its context window, risks mid-operation failures that are harder to recover from, and mixes coordination concerns with execution concerns. Subagents are disposable -- if one fails, the orchestrator can reason about the failure and retry or fail gracefully without losing its own state.
16
+
11
17
  ---
12
18
 
13
19
  ## Loom Recap
@@ -162,42 +168,16 @@ For each child issue, use these parameters:
162
168
  - `team_name`: `"swarm-epic-{{EPIC_ISSUE_NUMBER}}"`
163
169
  - `name`: `"issue-<child-number>"`
164
170
 
165
- The prompt for each child agent should be:
166
-
167
- ```
168
- You are working on issue #<child-number>: "<child-title>"
169
-
170
- **Worktree path:** `<child-worktree-path>`
171
-
172
- IMPORTANT: You MUST work in this worktree path. cd to it first before doing anything:
173
- cd <child-worktree-path>
171
+ **CRITICAL: The task prompt MUST contain only the issue number and worktree path. Do NOT include the issue title, issue body, analysis, planning details, implementation instructions, code snippets, or any other content from CHILD_ISSUES. The child agent retrieves all issue context itself via `mcp__issue_management__get_issue` as its first action.**
174
172
 
175
- All file reads, writes, searches, and git operations must happen within this directory. Do NOT work in the epic worktree or any other child's worktree.
173
+ The prompt for each child agent should be exactly:
176
174
 
177
- ## Strict Boundaries
178
-
179
- - You are ONLY responsible for issue #<child-number>. Do not implement, fix, commit, or merge work for any other issue.
180
- - NEVER cd into, read from, or modify files in any other worktree path. Your entire scope is `<child-worktree-path>`.
181
- - Do NOT merge branches, close issues, or perform any orchestration tasks. The orchestrator handles all merging and issue management.
182
- - Do NOT pick up tasks from the team task list. You have exactly one job.
183
-
184
- **Issue body:**
185
- <child-issue-body>
186
-
187
- Implement this issue following your workflow instructions.
188
-
189
- ## After Completion
190
-
191
- When your implementation is done, report back with:
192
- - Issue number
193
- - Status (success or failed)
194
- - Brief summary of what was implemented or what went wrong
195
- - Number of files changed (if successful)
196
-
197
- After sending your report, STOP. Do not look for more work. Do not check on other issues. Do not attempt to help with other worktrees. Wait for a shutdown request and approve it.
175
+ ```
176
+ Issue: #<child-number>
177
+ Worktree: <child-worktree-path>
198
178
  ```
199
179
 
200
- Note: The child issue body is available directly in the `CHILD_ISSUES` template data above (each entry has a `body` field). Make sure to include it in the Task prompt for each child.
180
+ Nothing else. No title. No body. No instructions. No context. The child's system prompt defines everything it needs to do.
201
181
 
202
182
  Update each child's tracking status to `in_progress`.
203
183
 
@@ -213,35 +193,54 @@ This is the core orchestration loop. After spawning initial agents, monitor for
213
193
 
214
194
  When a child agent reports back with status `success` (or goes idle after completing its tasks):
215
195
 
216
- #### Step 3.1: Merge the Child's Branch
196
+ #### Step 3.1: Rebase and Merge the Child's Branch
217
197
 
218
- Rebase the child branch onto the epic branch from the child's worktree, then fast-forward merge from the epic worktree. You must run the rebase from the child's worktree because that's where the child branch is checked out — git will refuse to rebase a branch that's checked out in another worktree.
198
+ **Delegate this entire operation to a subagent.** Do NOT run git rebase, merge, or conflict resolution commands directly in the orchestrator.
199
+
200
+ Spawn a subagent using the `Task` tool:
201
+ - `subagent_type`: `"general-purpose"`
202
+ - Prompt:
219
203
 
220
- ```bash
221
- cd <child-worktree-path>
222
- git rebase epic/{{EPIC_ISSUE_NUMBER}}
223
- cd {{EPIC_WORKTREE_PATH}}
224
- git merge --ff-only <child-branch-name>
225
204
  ```
205
+ Rebase and merge child branch `<child-branch-name>` (issue #<child-number>: "<child-title>") into the epic branch.
226
206
 
227
- Where `<child-worktree-path>` and `<child-branch-name>` are from the child's entry in `CHILD_ISSUES`.
207
+ ## Instructions
228
208
 
229
- **Important**: Use rebase + fast-forward merge, NOT merge commits. This keeps the epic branch history linear and clean.
209
+ 1. Rebase the child branch onto the epic branch FROM THE CHILD'S WORKTREE (git refuses to rebase a branch checked out in another worktree):
210
+ ```bash
211
+ cd <child-worktree-path>
212
+ git rebase epic/{{EPIC_ISSUE_NUMBER}}
213
+ ```
230
214
 
231
- #### Step 3.2: Handle Rebase Conflicts
215
+ 2. If the rebase has conflicts, resolve them:
216
+ - Understand the intent of both sides
217
+ - Stage resolved files with `git add`
218
+ - Run `git rebase --continue`
219
+ - Repeat for any remaining conflicts
220
+ - Ensure the code compiles after resolution
232
221
 
233
- If the rebase has conflicts:
222
+ 3. After the rebase succeeds, fast-forward merge from the epic worktree:
223
+ ```bash
224
+ cd {{EPIC_WORKTREE_PATH}}
225
+ git merge --ff-only <child-branch-name>
226
+ ```
227
+
228
+ 4. Report back with:
229
+ - Status: "success" or "failed"
230
+ - If conflicts were resolved, briefly describe what was resolved
231
+ - If failed, explain why (e.g., "Rebase conflict could not be resolved" or specific error)
232
+
233
+ IMPORTANT: Use rebase + fast-forward merge, NOT merge commits. This keeps the epic branch history linear and clean.
234
+ ```
234
235
 
235
- 1. **Attempt automatic resolution**: Spawn a subagent to resolve the conflicts:
236
- - `subagent_type`: `"general-purpose"`
237
- - Prompt: "There are rebase conflicts while rebasing branch `<child-branch-name>` (issue #<child-number>: '<child-title>') onto the epic branch in `{{EPIC_WORKTREE_PATH}}`. Please resolve the conflicts by understanding the intent of both sides, stage the resolved files with `git add`, and run `git rebase --continue`. Ensure the code compiles after resolution."
238
- 2. If the subagent resolves the conflicts: proceed with the fast-forward merge, then Step 3.3
239
- 3. If the subagent fails to resolve:
240
- - Abort the rebase: `git rebase --abort`
241
- - Mark the child as `failed` with reason: "Rebase conflict could not be resolved"
242
- - Skip to Phase 4 failure handling for this child
236
+ **Handle the subagent result:**
237
+ - If the subagent reports `success`: proceed to Step 3.2
238
+ - If the subagent reports `failed`:
239
+ - Ensure the rebase is aborted (spawn another subagent if needed): `cd <child-worktree-path> && git rebase --abort`
240
+ - Mark the child as `failed` with reason from the subagent's report
241
+ - Skip to Phase 4 failure handling for this child
243
242
 
244
- #### Step 3.3: Ensure Completion Comment Exists
243
+ #### Step 3.2: Ensure Completion Comment Exists
245
244
 
246
245
  Child agents are expected to post a summary comment on their issue when they finish. However, if a child agent completes without posting a comment, the orchestrator must post one on its behalf.
247
246
 
@@ -252,7 +251,7 @@ Child agents are expected to post a summary comment on their issue when they fin
252
251
  - `body`: A summary including: what was implemented, the branch name, and that it was merged into the epic branch
253
252
  3. Log any new comment as an artifact: Call `mcp__recap__add_artifact` with `{ type: "comment", primaryUrl: "<comment-url>", description: "Completion comment for #<child-number>", worktreePath: "<child-worktree-path>" }`
254
253
 
255
- #### Step 3.4: Update State
254
+ #### Step 3.3: Update State
256
255
 
257
256
  1. Update the child's tracking status to `done`
258
257
  2. Update the child's loom state: Call `mcp__recap__set_loom_state` with `{ state: "done", worktreePath: "<child-worktree-path>" }`
@@ -261,22 +260,32 @@ Child agents are expected to post a summary comment on their issue when they fin
261
260
 
262
261
  {{#if DRAFT_PR_MODE}}
263
262
  {{#if AUTO_COMMIT_PUSH}}
264
- #### Step 3.4.5: Push Epic Branch to Remote (Incremental)
263
+ #### Step 3.3.5: Push Epic Branch to Remote (Incremental)
264
+
265
+ **Delegate this to a subagent.** After each successful child merge, push the epic branch to remote so the draft PR reflects incremental progress.
265
266
 
266
- After each successful child merge, push the epic branch to remote so the draft PR reflects incremental progress.
267
+ Spawn a subagent using the `Task` tool:
268
+ - `subagent_type`: `"general-purpose"`
269
+ - Prompt:
270
+
271
+ ```
272
+ Push the epic branch to remote from the epic worktree.
267
273
 
268
274
  ```bash
269
275
  cd {{EPIC_WORKTREE_PATH}}
270
276
  git push --force-with-lease {{GIT_REMOTE}} HEAD
271
277
  ```
272
278
 
273
- **NOTE**: `--force-with-lease` is required because the remote branch may still have the placeholder commit (on first push) or because the history was rewritten by a previous force push.
279
+ NOTE: --force-with-lease is required because the remote branch may still have the placeholder commit (on first push) or because the history was rewritten by a previous force push.
280
+
281
+ Report back with status: "success" or "failed" and any error output.
282
+ ```
274
283
 
275
- **Error handling**: If the push fails, log the error and continue. Do NOT fail the swarm or skip remaining children. The work is committed locally and will be pushed either by a later successful push or by `il finish`.
284
+ **Error handling**: If the subagent reports a push failure, log the error and continue. Do NOT fail the swarm or skip remaining children. The work is committed locally and will be pushed either by a later successful push or by `il finish`.
276
285
 
277
286
  {{/if}}
278
287
  {{/if}}
279
- #### Step 3.4.6: Clean Up Child Worktree
288
+ #### Step 3.3.6: Clean Up Child Worktree
280
289
 
281
290
  {{#unless NO_CLEANUP}}
282
291
  After the child's state is updated to `done`, clean up its worktree and archive its metadata by running `il cleanup --archive`. Since the child's work is already rebased and merged into the epic branch, we only need to remove the worktree and branch while preserving metadata.
@@ -294,7 +303,7 @@ If the `il cleanup` command fails, log the error but continue with the orchestra
294
303
  **Note:** Child loom cleanup is disabled (`--skip-cleanup` flag). Child worktrees will be preserved after the swarm completes.
295
304
  {{/if}}
296
305
 
297
- #### Step 3.5: Check for Newly Unblocked Issues
306
+ #### Step 3.4: Check for Newly Unblocked Issues
298
307
 
299
308
  After a child completes:
300
309
  1. Remove the completed child's issue number from all other children's `blockedBy` lists
@@ -357,7 +366,14 @@ Use `TeamDelete` to clean up the team `swarm-epic-{{EPIC_ISSUE_NUMBER}}`.
357
366
 
358
367
  ### Step 5.3: Final Commit on Epic Branch
359
368
 
360
- If at least one child succeeded, create a final commit on the epic branch that fixes the epic issue. This ensures the epic issue is automatically closed when the PR is merged.
369
+ If at least one child succeeded, **delegate the final commit to a subagent.**
370
+
371
+ Spawn a subagent using the `Task` tool:
372
+ - `subagent_type`: `"general-purpose"`
373
+ - Prompt:
374
+
375
+ ```
376
+ Create the final commit on the epic branch that closes the epic issue.
361
377
 
362
378
  ```bash
363
379
  cd {{EPIC_WORKTREE_PATH}}
@@ -365,36 +381,47 @@ git add -A
365
381
  git commit --allow-empty -m "Fixes {{ISSUE_PREFIX}}{{EPIC_ISSUE_NUMBER}}"
366
382
  ```
367
383
 
368
- Note: `--allow-empty` is used because the child branches have already been merged — there may be no additional staged changes, but we still need the commit message trailer to trigger issue closure.
384
+ NOTE: --allow-empty is used because the child branches have already been merged — there may be no additional staged changes, but we still need the commit message to trigger issue closure.
385
+
386
+ Report back with status: "success" or "failed" and the commit hash if successful.
387
+ ```
369
388
 
370
389
  {{#if DRAFT_PR_MODE}}
371
390
  {{#if AUTO_COMMIT_PUSH}}
372
391
  ### Step 5.3.5: Push Epic Branch to Remote (Final Commit)
373
392
 
374
- After the final "Fixes" commit, push the epic branch to remote so the draft PR includes the issue-closing trailer.
393
+ After the final "Fixes" commit, push the epic branch to remote so the draft PR includes the issue-closing trailer. **Delegate this to a subagent.**
375
394
 
376
- **Note**: Incremental pushes in Step 3.4.5 should have already pushed merged child work. This final push adds the "Fixes" commit.
395
+ **Note**: Incremental pushes in Step 3.3.5 should have already pushed merged child work. This final push adds the "Fixes" commit.
377
396
 
378
- 1. **Check if push is needed:**
379
- ```bash
380
- cd {{EPIC_WORKTREE_PATH}}
381
- git log -1 --format=%s
382
- ```
383
- - If the latest commit message starts with `[iloom-placeholder]` or `[iloom] Temporary`, no children succeeded. Skip the push.
397
+ First, check if push is needed (this is a lightweight read, OK to do directly):
398
+ ```bash
399
+ cd {{EPIC_WORKTREE_PATH}}
400
+ git log -1 --format=%s
401
+ ```
402
+ - If the latest commit message starts with `[iloom-placeholder]` or `[iloom] Temporary`, no children succeeded. Skip the push.
384
403
 
385
- 2. **Push to remote:**
386
- ```bash
387
- cd {{EPIC_WORKTREE_PATH}}
388
- git push --force-with-lease {{GIT_REMOTE}} HEAD
389
- ```
390
- **NOTE**: `--force-with-lease` is required because the branch history includes rebased child commits.
404
+ If a push is needed, spawn a subagent using the `Task` tool:
405
+ - `subagent_type`: `"general-purpose"`
406
+ - Prompt:
391
407
 
392
- 3. **Handle errors gracefully:**
393
- - If push fails: Log the error but do NOT fail the swarm. The work is committed locally and `il finish` will handle the push.
394
- - Do NOT retry automatically.
408
+ ```
409
+ Push the epic branch to remote (final commit with Fixes trailer).
410
+
411
+ ```bash
412
+ cd {{EPIC_WORKTREE_PATH}}
413
+ git push --force-with-lease {{GIT_REMOTE}} HEAD
414
+ ```
415
+
416
+ NOTE: --force-with-lease is required because the branch history includes rebased child commits.
417
+
418
+ Report back with status: "success" or "failed" and any error output.
419
+ ```
395
420
 
396
- 4. **Notify completion:**
397
- - Log: "Epic branch pushed to remote. Draft PR #{{DRAFT_PR_NUMBER}} updated with final commit."
421
+ **Handle the subagent result:**
422
+ - If push fails: Log the error but do NOT fail the swarm. The work is committed locally and `il finish` will handle the push.
423
+ - Do NOT retry automatically.
424
+ - If push succeeds: Log "Epic branch pushed to remote. Draft PR #{{DRAFT_PR_NUMBER}} updated with final commit."
398
425
 
399
426
  {{/if}}
400
427
  {{/if}}
@@ -2,23 +2,23 @@
2
2
  import {
3
3
  BuildRunner,
4
4
  MergeManager
5
- } from "./chunk-LXLMMXXY.js";
5
+ } from "./chunk-5FJWO4IT.js";
6
6
  import {
7
7
  installDependencies
8
8
  } from "./chunk-WWKOVDWC.js";
9
9
  import {
10
10
  GitWorktreeManager
11
- } from "./chunk-VGGST52X.js";
11
+ } from "./chunk-I5T677EA.js";
12
12
  import "./chunk-MORRVYPT.js";
13
13
  import "./chunk-YQ57ORTV.js";
14
- import "./chunk-ONQYPICO.js";
14
+ import "./chunk-UR5DGNUO.js";
15
15
  import {
16
16
  getWorktreeRoot,
17
17
  isValidGitRepo
18
- } from "./chunk-MNHZB4Z2.js";
18
+ } from "./chunk-4FGEGQW4.js";
19
19
  import {
20
20
  SettingsManager
21
- } from "./chunk-YYAKPQBT.js";
21
+ } from "./chunk-7VHJNVLF.js";
22
22
  import "./chunk-KB64WNBZ.js";
23
23
  import "./chunk-6MLEBAYZ.js";
24
24
  import {
@@ -93,9 +93,10 @@ var RebaseCommand = class {
93
93
  }
94
94
  const mergeOptions = {
95
95
  dryRun: options.dryRun ?? false,
96
- force: options.force ?? false
96
+ force: options.force ?? false,
97
+ jsonStream: options.jsonStream ?? false
97
98
  };
98
- await this.mergeManager.rebaseOnMain(worktreePath, mergeOptions);
99
+ const outcome = await this.mergeManager.rebaseOnMain(worktreePath, mergeOptions);
99
100
  if (!options.dryRun) {
100
101
  logger.info("Installing dependencies...");
101
102
  try {
@@ -109,6 +110,14 @@ var RebaseCommand = class {
109
110
  logger.info("[DRY RUN] Would install dependencies");
110
111
  }
111
112
  await this.runPostRebaseBuild(worktreePath, options);
113
+ if (options.jsonStream) {
114
+ return {
115
+ success: true,
116
+ conflictsDetected: outcome.conflictsDetected,
117
+ claudeLaunched: outcome.claudeLaunched,
118
+ conflictsResolved: outcome.conflictsResolved
119
+ };
120
+ }
112
121
  }
113
122
  /**
114
123
  * Run post-rebase build for CLI projects
@@ -139,4 +148,4 @@ export {
139
148
  RebaseCommand,
140
149
  WorktreeValidationError
141
150
  };
142
- //# sourceMappingURL=rebase-DWIB77KV.js.map
151
+ //# sourceMappingURL=rebase-6NVLX5V7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/commands/rebase.ts"],"sourcesContent":["import { logger } from '../utils/logger.js'\nimport { MergeManager } from '../lib/MergeManager.js'\nimport { GitWorktreeManager } from '../lib/GitWorktreeManager.js'\nimport { SettingsManager } from '../lib/SettingsManager.js'\nimport { BuildRunner } from '../lib/BuildRunner.js'\nimport { isValidGitRepo, getWorktreeRoot } from '../utils/git.js'\nimport { installDependencies } from '../utils/package-manager.js'\nimport type { MergeOptions, RebaseResult } from '../types/index.js'\n\nexport interface RebaseOptions {\n\tforce?: boolean\n\tdryRun?: boolean\n\tjsonStream?: boolean\n}\n\n/**\n * Error thrown when the rebase command is run from an invalid location\n */\nexport class WorktreeValidationError extends Error {\n\tconstructor(\n\t\tmessage: string,\n\t\tpublic readonly suggestion: string\n\t) {\n\t\tsuper(message)\n\t\tthis.name = 'WorktreeValidationError'\n\t}\n}\n\n/**\n * RebaseCommand: Rebase current branch on main with Claude-assisted conflict resolution\n *\n * This command:\n * 1. Validates the current directory is an iloom-managed worktree\n * 2. Detects the worktree root (supports running from subdirectories)\n * 3. Delegates to MergeManager.rebaseOnMain() which handles:\n * - Checking main branch exists\n * - Detecting uncommitted changes (throws if found)\n * - Checking if already up-to-date\n * - Executing rebase\n * - Claude-assisted conflict resolution\n * 4. Reports success\n */\nexport class RebaseCommand {\n\tprivate mergeManager: MergeManager\n\tprivate gitWorktreeManager: GitWorktreeManager\n\tprivate settingsManager: SettingsManager\n\tprivate buildRunner: BuildRunner\n\n\tconstructor(mergeManager?: MergeManager, gitWorktreeManager?: GitWorktreeManager, settingsManager?: SettingsManager, buildRunner?: BuildRunner) {\n\t\tthis.mergeManager = mergeManager ?? new MergeManager()\n\t\tthis.gitWorktreeManager = gitWorktreeManager ?? new GitWorktreeManager()\n\t\tthis.settingsManager = settingsManager ?? new SettingsManager()\n\t\tthis.buildRunner = buildRunner ?? new BuildRunner()\n\t}\n\n\t/**\n\t * Validate that the current directory is within an iloom-managed worktree\n\t * Returns the worktree root path if valid\n\t * @throws WorktreeValidationError if validation fails\n\t */\n\tprivate async validateWorktreeContext(): Promise<string> {\n\t\tconst currentDir = process.cwd()\n\n\t\t// Step 1: Check if we're in a git repository at all\n\t\tconst isGitRepo = await isValidGitRepo(currentDir)\n\t\tif (!isGitRepo) {\n\t\t\tthrow new WorktreeValidationError(\n\t\t\t\t'Not a git repository.',\n\t\t\t\t\"Run 'il rebase' from within an iloom worktree created by 'il start'.\"\n\t\t\t)\n\t\t}\n\n\t\t// Step 2: Get the worktree root (handles subdirectories)\n\t\tconst worktreeRoot = await getWorktreeRoot(currentDir)\n\t\tif (!worktreeRoot) {\n\t\t\tthrow new WorktreeValidationError(\n\t\t\t\t'Could not determine repository root.',\n\t\t\t\t\"Run 'il rebase' from within an iloom worktree created by 'il start'.\"\n\t\t\t)\n\t\t}\n\n\t\t// Step 3: Check if this path is a registered git worktree\n\t\tconst worktrees = await this.gitWorktreeManager.listWorktrees()\n\t\tconst currentWorktree = worktrees.find(wt => wt.path === worktreeRoot)\n\n\t\tif (!currentWorktree) {\n\t\t\tthrow new WorktreeValidationError(\n\t\t\t\t'This directory is not an iloom worktree.',\n\t\t\t\t\"Run 'il rebase' from within a worktree created by 'il start <issue>'. Use 'il list' to see available worktrees.\"\n\t\t\t)\n\t\t}\n\n\t\t// Step 4: Check if this is the main worktree (we shouldn't rebase from main)\n\t\tconst isMain = await this.gitWorktreeManager.isMainWorktree(currentWorktree, this.settingsManager)\n\t\tif (isMain) {\n\t\t\tthrow new WorktreeValidationError(\n\t\t\t\t'Cannot rebase from the main worktree.',\n\t\t\t\t\"Navigate to a feature worktree created by 'il start <issue>' and run 'il rebase' from there.\"\n\t\t\t)\n\t\t}\n\n\t\treturn worktreeRoot\n\t}\n\n\tasync execute(options: RebaseOptions = {}): Promise<RebaseResult | void> {\n\t\t// Set ILOOM=1 so hooks know this is an iloom session\n\t\tprocess.env.ILOOM = '1'\n\n\t\t// Step 1: Validate we're in a valid iloom worktree\n\t\tlet worktreePath: string\n\t\ttry {\n\t\t\tworktreePath = await this.validateWorktreeContext()\n\t\t} catch (error) {\n\t\t\tif (error instanceof WorktreeValidationError) {\n\t\t\t\tlogger.error(error.message)\n\t\t\t\tlogger.info(error.suggestion)\n\t\t\t\tthrow error\n\t\t\t}\n\t\t\tthrow error\n\t\t}\n\n\t\tconst mergeOptions: MergeOptions = {\n\t\t\tdryRun: options.dryRun ?? false,\n\t\t\tforce: options.force ?? false,\n\t\t\tjsonStream: options.jsonStream ?? false,\n\t\t}\n\n\t\t// MergeManager.rebaseOnMain() handles:\n\t\t// - Checking main branch exists\n\t\t// - Detecting uncommitted changes (throws if found)\n\t\t// - Checking if already up-to-date\n\t\t// - Executing rebase\n\t\t// - Claude-assisted conflict resolution\n\t\tconst outcome = await this.mergeManager.rebaseOnMain(worktreePath, mergeOptions)\n\n\t\t// Install dependencies after successful rebase\n\t\tif (!options.dryRun) {\n\t\t\tlogger.info('Installing dependencies...')\n\t\t\ttry {\n\t\t\t\tawait installDependencies(worktreePath, true, true) // frozen=true, quiet=true\n\t\t\t} catch (error) {\n\t\t\t\t// Log warning but don't fail - rebase succeeded, user can fix deps manually\n\t\t\t\tconst message = error instanceof Error ? error.message : 'Unknown error'\n\t\t\t\tlogger.warn(`Dependency installation failed: ${message}`)\n\t\t\t\tlogger.warn('Please run your package manager install command manually')\n\t\t\t}\n\t\t} else {\n\t\t\tlogger.info('[DRY RUN] Would install dependencies')\n\t\t}\n\n\t\t// Run build for CLI projects after successful rebase\n\t\tawait this.runPostRebaseBuild(worktreePath, options)\n\n\t\t// Return result if jsonStream mode\n\t\tif (options.jsonStream) {\n\t\t\treturn {\n\t\t\t\tsuccess: true,\n\t\t\t\tconflictsDetected: outcome.conflictsDetected,\n\t\t\t\tclaudeLaunched: outcome.claudeLaunched,\n\t\t\t\tconflictsResolved: outcome.conflictsResolved,\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Run post-rebase build for CLI projects\n\t * Non-blocking: build failures are logged as warnings but don't fail the rebase\n\t */\n\tprivate async runPostRebaseBuild(worktreePath: string, options: RebaseOptions): Promise<void> {\n\t\tif (options.dryRun) {\n\t\t\tlogger.info('[DRY RUN] Would run post-rebase build for CLI projects')\n\t\t\treturn\n\t\t}\n\n\t\ttry {\n\t\t\tconst buildResult = await this.buildRunner.runBuild(worktreePath, {\n\t\t\t\tdryRun: options.dryRun ?? false,\n\t\t\t})\n\n\t\t\tif (buildResult.skipped) {\n\t\t\t\tlogger.debug(`Build skipped: ${buildResult.reason}`)\n\t\t\t} else {\n\t\t\t\tlogger.success('Post-rebase build completed successfully')\n\t\t\t}\n\t\t} catch (error) {\n\t\t\t// Log warning but don't fail - rebase succeeded, user can fix build manually\n\t\t\tconst message = error instanceof Error ? error.message : 'Unknown error'\n\t\t\tlogger.warn(`Post-rebase build failed: ${message}`)\n\t\t\tlogger.warn('Please run the build command manually')\n\t\t}\n\t}\n}\n"],"mappings":"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","names":[]}
@@ -4,15 +4,15 @@ import {
4
4
  } from "./chunk-NXMDEL3F.js";
5
5
  import {
6
6
  findArchivedRecap
7
- } from "./chunk-Y4YZTHZE.js";
7
+ } from "./chunk-LUKXJSRI.js";
8
8
  import {
9
9
  IdentifierParser
10
- } from "./chunk-WY4QBK43.js";
10
+ } from "./chunk-63QWFWH3.js";
11
11
  import {
12
12
  GitWorktreeManager
13
- } from "./chunk-VGGST52X.js";
14
- import "./chunk-MNHZB4Z2.js";
15
- import "./chunk-YYAKPQBT.js";
13
+ } from "./chunk-I5T677EA.js";
14
+ import "./chunk-4FGEGQW4.js";
15
+ import "./chunk-7VHJNVLF.js";
16
16
  import "./chunk-KB64WNBZ.js";
17
17
  import "./chunk-6MLEBAYZ.js";
18
18
  import "./chunk-VT4PDUYT.js";
@@ -135,4 +135,4 @@ var RecapCommand = class {
135
135
  export {
136
136
  RecapCommand
137
137
  };
138
- //# sourceMappingURL=recap-MX63HAKV.js.map
138
+ //# sourceMappingURL=recap-OMBOKJST.js.map
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  DevServerManager
4
- } from "./chunk-5MWV33NN.js";
5
- import "./chunk-ZEWU5PZK.js";
4
+ } from "./chunk-CVCTIDDK.js";
5
+ import "./chunk-G5V75JD5.js";
6
6
  import {
7
7
  getWorkspacePort
8
- } from "./chunk-3D7WQM7I.js";
8
+ } from "./chunk-LLHXQS3C.js";
9
9
  import "./chunk-WWKOVDWC.js";
10
10
  import {
11
11
  IdentifierParser
12
- } from "./chunk-WY4QBK43.js";
12
+ } from "./chunk-63QWFWH3.js";
13
13
  import {
14
14
  GitWorktreeManager
15
- } from "./chunk-VGGST52X.js";
15
+ } from "./chunk-I5T677EA.js";
16
16
  import {
17
17
  openBrowser
18
18
  } from "./chunk-YETJNRQM.js";
@@ -25,10 +25,10 @@ import {
25
25
  } from "./chunk-GYCR2LOU.js";
26
26
  import {
27
27
  extractIssueNumber
28
- } from "./chunk-MNHZB4Z2.js";
28
+ } from "./chunk-4FGEGQW4.js";
29
29
  import {
30
30
  SettingsManager
31
- } from "./chunk-YYAKPQBT.js";
31
+ } from "./chunk-7VHJNVLF.js";
32
32
  import "./chunk-KB64WNBZ.js";
33
33
  import "./chunk-6MLEBAYZ.js";
34
34
  import {
@@ -238,4 +238,4 @@ Make sure the project is built (run 'il start' first)`
238
238
  export {
239
239
  RunCommand
240
240
  };
241
- //# sourceMappingURL=run-O3TFNQFC.js.map
241
+ //# sourceMappingURL=run-BBXLRIZB.js.map
@@ -197,6 +197,15 @@
197
197
  ],
198
198
  "description": "Claude model shorthand: sonnet, opus, or haiku"
199
199
  },
200
+ "swarmModel": {
201
+ "type": "string",
202
+ "enum": [
203
+ "sonnet",
204
+ "opus",
205
+ "haiku"
206
+ ],
207
+ "description": "Model to use for this agent in swarm mode. Overrides the base model when running inside swarm workers."
208
+ },
200
209
  "enabled": {
201
210
  "type": "boolean",
202
211
  "description": "Whether this agent is enabled. Defaults to true."
@@ -233,6 +242,15 @@
233
242
  ],
234
243
  "description": "Claude model shorthand: sonnet, opus, or haiku"
235
244
  },
245
+ "swarmModel": {
246
+ "type": "string",
247
+ "enum": [
248
+ "sonnet",
249
+ "opus",
250
+ "haiku"
251
+ ],
252
+ "description": "Model to use for this agent in swarm mode. Overrides the base model when running inside swarm workers."
253
+ },
236
254
  "enabled": {
237
255
  "type": "boolean",
238
256
  "description": "Whether this agent is enabled. Defaults to true."
@@ -258,7 +276,14 @@
258
276
  },
259
277
  "additionalProperties": false
260
278
  },
261
- "description": "Nested per-agent model overrides for swarm mode. Configure under agents.iloom-swarm-worker.agents.<agent-name>.model to set a different model for phase agents when running inside swarm workers. Fallback chain: swarm-specific agent model > explicit swarm worker model > base agent model. Only meaningful under the iloom-swarm-worker agent entry."
279
+ "description": "Nested per-agent settings. Only meaningful under the iloom-swarm-worker agent entry for sub-agent timeout configuration."
280
+ },
281
+ "subAgentTimeout": {
282
+ "type": "number",
283
+ "minimum": 1,
284
+ "maximum": 120,
285
+ "default": 10,
286
+ "description": "Timeout in minutes for sub-agent claude -p invocations in swarm mode. Applies to each phase agent (evaluator, analyzer, planner, implementer) when invoked via the Bash tool. Default: 10 minutes. Only meaningful under the iloom-swarm-worker agent entry."
262
287
  }
263
288
  },
264
289
  "additionalProperties": false
@@ -270,7 +295,7 @@
270
295
  "type": "null"
271
296
  }
272
297
  ],
273
- "description": "Per-agent configuration overrides. Available agents: iloom-issue-analyzer (analyzes issues), iloom-issue-planner (creates implementation plans), iloom-issue-analyze-and-plan (combined analysis and planning), iloom-issue-complexity-evaluator (evaluates complexity), iloom-issue-enhancer (enhances issue descriptions), iloom-issue-implementer (implements code changes), iloom-code-reviewer (reviews code changes against requirements), iloom-artifact-reviewer (reviews artifacts before posting), iloom-swarm-worker (swarm worker agent, dynamically generated). The iloom-swarm-worker agent supports a nested \"agents\" sub-record for configuring phase agent models specifically in swarm mode."
298
+ "description": "Per-agent configuration overrides. Available agents: iloom-issue-analyzer (analyzes issues), iloom-issue-planner (creates implementation plans), iloom-issue-analyze-and-plan (combined analysis and planning), iloom-issue-complexity-evaluator (evaluates complexity), iloom-issue-enhancer (enhances issue descriptions), iloom-issue-implementer (implements code changes), iloom-code-reviewer (reviews code changes against requirements), iloom-artifact-reviewer (reviews artifacts before posting), iloom-swarm-worker (swarm worker agent, dynamically generated). Use swarmModel on any agent to override its model in swarm mode."
274
299
  },
275
300
  "spin": {
276
301
  "type": "object",
@@ -284,6 +309,15 @@
284
309
  ],
285
310
  "default": "opus",
286
311
  "description": "Claude model shorthand for spin orchestrator"
312
+ },
313
+ "swarmModel": {
314
+ "type": "string",
315
+ "enum": [
316
+ "sonnet",
317
+ "opus",
318
+ "haiku"
319
+ ],
320
+ "description": "Model for the spin orchestrator when running in swarm mode. Overrides spin.model for swarm workflows."
287
321
  }
288
322
  },
289
323
  "additionalProperties": false,
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  IdentifierParser
4
- } from "./chunk-WY4QBK43.js";
4
+ } from "./chunk-63QWFWH3.js";
5
5
  import {
6
6
  GitWorktreeManager
7
- } from "./chunk-VGGST52X.js";
7
+ } from "./chunk-I5T677EA.js";
8
8
  import {
9
9
  extractIssueNumber
10
- } from "./chunk-MNHZB4Z2.js";
10
+ } from "./chunk-4FGEGQW4.js";
11
11
  import {
12
12
  SettingsManager
13
- } from "./chunk-YYAKPQBT.js";
13
+ } from "./chunk-7VHJNVLF.js";
14
14
  import {
15
15
  MetadataManager
16
16
  } from "./chunk-KB64WNBZ.js";
@@ -242,4 +242,4 @@ var ShellCommand = class {
242
242
  export {
243
243
  ShellCommand
244
244
  };
245
- //# sourceMappingURL=shell-G6VC2CYR.js.map
245
+ //# sourceMappingURL=shell-RF7LTND5.js.map
@@ -1,26 +1,26 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  SessionSummaryService
4
- } from "./chunk-6EU6TCF6.js";
4
+ } from "./chunk-EVPZFV3K.js";
5
5
  import "./chunk-NXMDEL3F.js";
6
6
  import {
7
7
  PRManager
8
- } from "./chunk-ZW2LKWWE.js";
9
- import "./chunk-JO2LZ6EQ.js";
8
+ } from "./chunk-KVHIAWVT.js";
9
+ import "./chunk-SWSJWA2S.js";
10
10
  import "./chunk-4232AHNQ.js";
11
11
  import {
12
12
  GitWorktreeManager
13
- } from "./chunk-VGGST52X.js";
13
+ } from "./chunk-I5T677EA.js";
14
14
  import "./chunk-YETJNRQM.js";
15
15
  import "./chunk-FXDYIV3K.js";
16
- import "./chunk-ONQYPICO.js";
17
- import "./chunk-4WJNIR5O.js";
16
+ import "./chunk-UR5DGNUO.js";
17
+ import "./chunk-UUEW5KWB.js";
18
18
  import {
19
19
  extractIssueNumber
20
- } from "./chunk-MNHZB4Z2.js";
20
+ } from "./chunk-4FGEGQW4.js";
21
21
  import {
22
22
  SettingsManager
23
- } from "./chunk-YYAKPQBT.js";
23
+ } from "./chunk-7VHJNVLF.js";
24
24
  import {
25
25
  MetadataManager
26
26
  } from "./chunk-KB64WNBZ.js";
@@ -282,4 +282,4 @@ Please provide an issue number, PR number, or branch name.`
282
282
  export {
283
283
  SummaryCommand
284
284
  };
285
- //# sourceMappingURL=summary-FWHAX55O.js.map
285
+ //# sourceMappingURL=summary-WTQZ7XG2.js.map
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  ScriptCommandBase
4
- } from "./chunk-NRSWLOAZ.js";
4
+ } from "./chunk-WXIM2WS7.js";
5
5
  import "./chunk-WWKOVDWC.js";
6
- import "./chunk-WY4QBK43.js";
7
- import "./chunk-VGGST52X.js";
6
+ import "./chunk-63QWFWH3.js";
7
+ import "./chunk-I5T677EA.js";
8
8
  import "./chunk-YQ57ORTV.js";
9
- import "./chunk-MNHZB4Z2.js";
10
- import "./chunk-YYAKPQBT.js";
9
+ import "./chunk-4FGEGQW4.js";
10
+ import "./chunk-7VHJNVLF.js";
11
11
  import "./chunk-KB64WNBZ.js";
12
12
  import "./chunk-6MLEBAYZ.js";
13
13
  import "./chunk-VT4PDUYT.js";
@@ -24,4 +24,4 @@ var TestCommand = class extends ScriptCommandBase {
24
24
  export {
25
25
  TestCommand
26
26
  };
27
- //# sourceMappingURL=test-F7JNJZYP.js.map
27
+ //# sourceMappingURL=test-SGO6I5Z7.js.map
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  findMainWorktreePath
4
- } from "./chunk-MNHZB4Z2.js";
4
+ } from "./chunk-4FGEGQW4.js";
5
5
  import {
6
6
  SettingsManager
7
- } from "./chunk-YYAKPQBT.js";
7
+ } from "./chunk-7VHJNVLF.js";
8
8
  import "./chunk-KB64WNBZ.js";
9
9
  import "./chunk-6MLEBAYZ.js";
10
10
  import {
@@ -51,4 +51,4 @@ var TestGitCommand = class {
51
51
  export {
52
52
  TestGitCommand
53
53
  };
54
- //# sourceMappingURL=test-git-BTAOIUE2.js.map
54
+ //# sourceMappingURL=test-git-XM4TM65W.js.map
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  IssueManagementProviderFactory
4
- } from "./chunk-JO2LZ6EQ.js";
4
+ } from "./chunk-SWSJWA2S.js";
5
5
  import "./chunk-4232AHNQ.js";
6
6
  import {
7
7
  SettingsManager
8
- } from "./chunk-YYAKPQBT.js";
8
+ } from "./chunk-7VHJNVLF.js";
9
9
  import "./chunk-HEXKPKCK.js";
10
10
  import "./chunk-VG45TUYK.js";
11
11
  import "./chunk-6MLEBAYZ.js";
@@ -93,4 +93,4 @@ var TestJiraCommand = class {
93
93
  export {
94
94
  TestJiraCommand
95
95
  };
96
- //# sourceMappingURL=test-jira-CHYNV33F.js.map
96
+ //# sourceMappingURL=test-jira-LDTOYFSD.js.map