opencode-swarm 7.172.4 → 7.173.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.
Files changed (90) hide show
  1. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  2. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  3. package/dist/background/pending-delegations.d.ts +2 -0
  4. package/dist/cli/{coder-settlement-mjqefsjv.js → coder-settlement-f60aqxyv.js} +10 -10
  5. package/dist/cli/{config-doctor-3nxrxzqg.js → config-doctor-nvw2fwrn.js} +2 -2
  6. package/dist/cli/{core-bebtf39m.js → core-z68xfzar.js} +3 -3
  7. package/dist/cli/{curation-policy-yep7t261.js → curation-policy-tx4kb30e.js} +4 -4
  8. package/dist/cli/{curator-tbzt37gq.js → curator-93a3pyvv.js} +35 -35
  9. package/dist/cli/{curator-drift-z8p6kwqg.js → curator-drift-047n8fjw.js} +4 -4
  10. package/dist/cli/curator-llm-factory-xkhzrdkk.js +72 -0
  11. package/dist/cli/{evidence-summary-service-b8wvay0a.js → evidence-summary-service-s22vfx64.js} +14 -14
  12. package/dist/cli/{gate-evidence-7kqzd4b6.js → gate-evidence-kz044xwh.js} +5 -5
  13. package/dist/cli/guardrail-explain-5nyr0vnx.js +73 -0
  14. package/dist/cli/{guardrail-log-cpb01m4a.js → guardrail-log-sh9ecphn.js} +6 -6
  15. package/dist/cli/{guardrail-reset-226tvhv4.js → guardrail-reset-m56x3djm.js} +35 -35
  16. package/dist/cli/{hive-promoter-nz5dk7cz.js → hive-promoter-1hfyd1gn.js} +35 -35
  17. package/dist/cli/{index-j7zrvqnf.js → index-0dfhahxm.js} +2 -2
  18. package/dist/cli/{index-1t4v24tw.js → index-0y9fqm5d.js} +1 -1
  19. package/dist/cli/{index-kt8yn94y.js → index-10vr7289.js} +1 -1
  20. package/dist/cli/{index-36143n94.js → index-1pnw3jkr.js} +7 -6
  21. package/dist/cli/{index-2qv69ydg.js → index-1r2avghn.js} +3 -3
  22. package/dist/cli/{index-bwnf1e4d.js → index-3312a4k1.js} +37 -37
  23. package/dist/cli/{index-bbhgnn4j.js → index-3n16qq3z.js} +7 -7
  24. package/dist/cli/{index-yxegcfy5.js → index-43dmpa9w.js} +1 -1
  25. package/dist/cli/{index-gqkfha6x.js → index-579nzg03.js} +1 -1
  26. package/dist/cli/{index-rxakec16.js → index-7gkdxs00.js} +6 -6
  27. package/dist/cli/{index-5qfqwbvg.js → index-8xkr8p2b.js} +7 -7
  28. package/dist/cli/{index-zpksgw8w.js → index-915wxcgs.js} +4 -4
  29. package/dist/cli/{index-8p30wyx0.js → index-bsnpv4xd.js} +1 -1
  30. package/dist/cli/{index-d9g9stnf.js → index-btxf9k1r.js} +10 -10
  31. package/dist/cli/{index-jg2s11sg.js → index-dktpzjy9.js} +1 -1
  32. package/dist/cli/{index-1c1n8aax.js → index-e8tscab8.js} +120 -6
  33. package/dist/cli/{index-68bp6sak.js → index-ejrqyrsr.js} +2 -2
  34. package/dist/cli/{index-2n16srdc.js → index-evf5r7bk.js} +1 -1
  35. package/dist/cli/{index-szezqd2a.js → index-fb5rj8sk.js} +7 -7
  36. package/dist/cli/{index-y6bqbe76.js → index-fnx0jzf7.js} +1 -1
  37. package/dist/cli/{index-16rwxf4m.js → index-fxac6j9v.js} +35 -35
  38. package/dist/cli/{index-5tjd3cne.js → index-gd40ehzt.js} +5 -5
  39. package/dist/cli/{index-9h6zhnk0.js → index-hhws1xkc.js} +1 -1
  40. package/dist/cli/{index-01mjyjdt.js → index-kdyvk541.js} +1 -1
  41. package/dist/cli/{index-1c119trs.js → index-m08ee28a.js} +47 -23
  42. package/dist/cli/{index-efbdfkw9.js → index-m51cmzxt.js} +1 -1
  43. package/dist/cli/{index-2negdnww.js → index-mq2y8qpg.js} +5 -5
  44. package/dist/cli/{index-kerhh5q4.js → index-mt8pbzda.js} +1 -1
  45. package/dist/cli/{index-a1187fx5.js → index-ndvgkxpf.js} +2 -2
  46. package/dist/cli/{index-fn7ny88p.js → index-njdy6w9x.js} +1975 -1828
  47. package/dist/cli/{index-y1qc2cpp.js → index-nrsnman7.js} +3 -3
  48. package/dist/cli/{index-her1kqcr.js → index-nztmfgvw.js} +4 -4
  49. package/dist/cli/{index-d21qcjr6.js → index-pserzhck.js} +1 -1
  50. package/dist/cli/{index-zfzbn9a7.js → index-sftt3gdv.js} +2 -2
  51. package/dist/cli/{index-3rkjybes.js → index-tztqvzf5.js} +2 -2
  52. package/dist/cli/{index-j8z3t7dv.js → index-wr4m11x4.js} +1 -1
  53. package/dist/cli/{index-ksjpc8s8.js → index-yzwb6ja4.js} +1 -1
  54. package/dist/cli/{index-pkgshf8r.js → index-z1k5dvn0.js} +2 -2
  55. package/dist/cli/{index-qzptb0gf.js → index-z35ynvj4.js} +1 -1
  56. package/dist/cli/{index-b395nw9b.js → index-za1kvsa0.js} +2 -2
  57. package/dist/cli/index.js +36 -36
  58. package/dist/cli/{knowledge-escalator-qjvkjkhw.js → knowledge-escalator-zeackj4h.js} +11 -11
  59. package/dist/cli/{knowledge-events-ctn3yfqx.js → knowledge-events-nfcgfhq2.js} +9 -9
  60. package/dist/cli/{knowledge-link-3qypq7bm.js → knowledge-link-f7bhq7cx.js} +3 -3
  61. package/dist/cli/{knowledge-store-7js414b2.js → knowledge-store-jptt6kp5.js} +4 -4
  62. package/dist/cli/{knowledge-validator-f5xhqqxr.js → knowledge-validator-e7nten5a.js} +6 -6
  63. package/dist/cli/{mcp-wzvpxtqf.js → mcp-14kyj73d.js} +1 -1
  64. package/dist/cli/{pending-delegations-avmzmj7x.js → pending-delegations-4jget283.js} +10 -10
  65. package/dist/cli/{pr-subscriptions-k33rz8ea.js → pr-subscriptions-qe0j6xyr.js} +10 -10
  66. package/dist/cli/{pr-workflow-gate-x91jrfaz.js → pr-workflow-gate-2m91qcm6.js} +35 -35
  67. package/dist/cli/{runner-2qypr9b5.js → runner-58k70bnr.js} +4 -4
  68. package/dist/cli/{scan-cursor-kmp98vk2.js → scan-cursor-myzgmzj6.js} +5 -5
  69. package/dist/cli/{schema-n50qbvmt.js → schema-gws3yx52.js} +1 -1
  70. package/dist/cli/{scope-persistence-nrj3q5sk.js → scope-persistence-fh1d8vs0.js} +13 -13
  71. package/dist/cli/{server-zs1r7z1g.js → server-v0wfd3rk.js} +35 -35
  72. package/dist/cli/{skill-generator-7f0jayyp.js → skill-generator-935cmd3p.js} +13 -13
  73. package/dist/cli/{snapshot-coordination-init-6tz602wz.js → snapshot-coordination-init-ad8n0977.js} +35 -35
  74. package/dist/cli/{workspace-snapshot-e63mg204.js → workspace-snapshot-62be4368.js} +3 -3
  75. package/dist/cli/{worktree-collision-ownership-hqk8gc0f.js → worktree-collision-ownership-txzvv5jv.js} +11 -11
  76. package/dist/cli/{worktree-isolation-8yh97cgh.js → worktree-isolation-tv749n96.js} +35 -35
  77. package/dist/commands/close/orchestrator.d.ts +34 -0
  78. package/dist/commands/destructive-purge.d.ts +15 -0
  79. package/dist/hooks/delegation-gate/worktree-isolation.d.ts +18 -3
  80. package/dist/hooks/guardrails/index.d.ts +2 -0
  81. package/dist/hooks/guardrails/stage-a-route.d.ts +45 -0
  82. package/dist/hooks/guardrails/tool-before.d.ts +10 -0
  83. package/dist/index.js +251 -246
  84. package/dist/turbo/lean/merge-back.d.ts +1 -1
  85. package/dist/workflow/coder-settlement.d.ts +2 -0
  86. package/dist/worktree/merge.d.ts +36 -9
  87. package/dist/worktree/types.d.ts +8 -1
  88. package/package.json +1 -1
  89. package/dist/cli/curator-llm-factory-pchm0j1e.js +0 -72
  90. package/dist/cli/guardrail-explain-dmyf8vc9.js +0 -73
@@ -2,4 +2,4 @@ import type { LeanTurboConfig } from '../../config/schema';
2
2
  import { _internals, attemptMergeBackFromDirty, cleanupOrphanedBranches, handleMergeConflict, mergeLaneBranch, postMergeCleanup, startupOrphanRecovery } from '../../worktree/merge';
3
3
  export { _internals, attemptMergeBackFromDirty, cleanupOrphanedBranches, handleMergeConflict, mergeLaneBranch, postMergeCleanup, startupOrphanRecovery, };
4
4
  export type { CleanupFailure, CleanupSuccess, ConflictHandlingError, ConflictInfo, DirtyMergeFailure, DirtyMergePartial, DirtyMergeSuccess, MergeConflict, MergeFailure, MergeSuccess, OrphanCleanupResult, StartupRecoveryResult, } from '../../worktree/merge';
5
- export declare function getMergeStrategy(config: LeanTurboConfig): import("../../worktree").MergeStrategy;
5
+ export declare function getMergeStrategy(config: LeanTurboConfig): "merge" | "rebase" | "cherry-pick";
@@ -24,6 +24,8 @@ export declare function settleCoderDispatch(options: {
24
24
  accepted: boolean;
25
25
  testEngineerExempt: boolean;
26
26
  settlementFailed?: boolean;
27
+ /** #2508: landed via squash-unstaged — retain the lane branch at cleanup. */
28
+ landedUnstaged?: boolean;
27
29
  }): Promise<CoderSettlementResult>;
28
30
  /**
29
31
  * Abort a DISPATCHED settlement (issue #2214): the settlement's launch
@@ -69,7 +69,7 @@ export declare const SOURCE_WORKTREE_GONE_STAGE = "source-worktree-gone";
69
69
  export declare const SOURCE_WORKTREE_UNCERTAIN_STAGE = "source-worktree-uncertain";
70
70
  export interface MergeSuccess {
71
71
  merged: true;
72
- strategy: string;
72
+ strategy: MergeStrategy;
73
73
  }
74
74
  export interface MergeConflict {
75
75
  conflict: true;
@@ -97,7 +97,7 @@ export interface ConflictHandlingError {
97
97
  }
98
98
  export interface DirtyMergeSuccess {
99
99
  merged: true;
100
- strategy: string;
100
+ strategy: MergeStrategy;
101
101
  autoCommitted: boolean;
102
102
  cleaned: boolean;
103
103
  /** True when a resumed operation was already present on the target. */
@@ -112,6 +112,10 @@ export interface DirtyMergePartial {
112
112
  cleaned: boolean;
113
113
  message: string;
114
114
  conflictFiles?: string[];
115
+ /** #2508: stable machine-readable diagnostic code (e.g. SETTLEMENT_OVERLAP_BLOCKED). */
116
+ code?: string;
117
+ /** #2508: imperative recovery instruction in the ACTION[...] house style. */
118
+ recoveryHint?: string;
115
119
  provenance?: MergeOperationProvenance;
116
120
  }
117
121
  export interface DirtyMergeFailure {
@@ -132,7 +136,12 @@ export interface MergeOperationProvenance {
132
136
  sourceHead: string;
133
137
  targetHeadBefore: string;
134
138
  branchName: string;
135
- strategy: MergeStrategy;
139
+ /**
140
+ * Always the PASSED dispatch strategy, never the internal
141
+ * `'squash-unstaged'` landing value (#2508): this struct is persisted into
142
+ * the settlement WAL, whose schema only accepts the three legacy values.
143
+ */
144
+ strategy: Exclude<MergeStrategy, 'squash-unstaged'>;
136
145
  }
137
146
  /**
138
147
  * Git object ids as written by `git rev-parse HEAD`: sha1 (40) today, sha256 (64)
@@ -153,7 +162,7 @@ export interface MergeOperationProvenance {
153
162
  export declare const GIT_OBJECT_ID_PATTERN: RegExp;
154
163
  export type MergeReconciliationResult = {
155
164
  landed: true;
156
- method: 'ancestry' | 'cherry-pick-trailer';
165
+ method: 'ancestry' | 'cherry-pick-trailer' | 'worktree-match';
157
166
  } | {
158
167
  landed: false;
159
168
  error?: string;
@@ -168,7 +177,11 @@ export interface ImmutableMergeRecoveryCoordinates {
168
177
  sourceBaseOid: string;
169
178
  sourceHeadOid: string;
170
179
  targetHeadOid: string;
171
- strategy: MergeStrategy;
180
+ /**
181
+ * Persisted recovery identity — always one of the three legacy dispatch
182
+ * strategies, never the internal `'squash-unstaged'` landing value (#2508).
183
+ */
184
+ strategy: Exclude<MergeStrategy, 'squash-unstaged'>;
172
185
  }
173
186
  export type ImmutableMergeRecoveryResult = (MergeSuccess & {
174
187
  sourceCommitOrder?: string[];
@@ -183,6 +196,13 @@ export interface DirtyMergeOptions {
183
196
  operationId?: string;
184
197
  /** Previously persisted provenance when resuming a `settling` operation. */
185
198
  resume?: MergeOperationProvenance;
199
+ /**
200
+ * #2508: opt OUT of the squash-merge-unstaged default landing for a
201
+ * `'merge'` dispatch. Callers that own their own committed-merge cleanup
202
+ * (Lean Turbo merge-back) pass `true` to keep `git merge --no-edit`.
203
+ * `'rebase'` and `'cherry-pick'` always land committed regardless.
204
+ */
205
+ commitLanding?: boolean;
186
206
  /**
187
207
  * Awaited after auto-commit and HEAD capture, but before the Git merge.
188
208
  * A rejection fails closed without invoking the merge.
@@ -239,9 +259,9 @@ export interface StartupRecoveryResult {
239
259
  * @returns The merge strategy to use: `'merge'`, `'rebase'`, or `'cherry-pick'`.
240
260
  */
241
261
  export declare function getMergeStrategy(config: {
242
- mergeStrategy?: MergeStrategy;
243
- merge_strategy?: MergeStrategy;
244
- }): MergeStrategy;
262
+ mergeStrategy?: Exclude<MergeStrategy, 'squash-unstaged'>;
263
+ merge_strategy?: Exclude<MergeStrategy, 'squash-unstaged'>;
264
+ }): Exclude<MergeStrategy, 'squash-unstaged'>;
245
265
  /**
246
266
  * Merges a lane branch back into the primary worktree using the specified
247
267
  * strategy.
@@ -343,7 +363,14 @@ export declare function handleMergeConflict(primaryDir: string, _branchName: str
343
363
  * @param strategy - Merge strategy to use.
344
364
  * @returns Discriminated union: success, partial, or failure.
345
365
  */
346
- export declare function attemptMergeBackFromDirty(worktreePath: string, branchName: string, primaryDir: string, strategy: MergeStrategy, options?: DirtyMergeOptions): Promise<DirtyMergeSuccess | DirtyMergePartial | DirtyMergeFailure>;
366
+ export declare function attemptMergeBackFromDirty(worktreePath: string, branchName: string, primaryDir: string,
367
+ /**
368
+ * The PASSED dispatch strategy (persisted identity). `'squash-unstaged'` is
369
+ * produced internally by the #2508 landing remap and is never a valid
370
+ * input — callers that want the committed merge pass `'merge'` with
371
+ * `options.commitLanding: true`.
372
+ */
373
+ strategy: Exclude<MergeStrategy, 'squash-unstaged'>, options?: DirtyMergeOptions): Promise<DirtyMergeSuccess | DirtyMergePartial | DirtyMergeFailure>;
347
374
  /**
348
375
  * Extracts the session ID from a swarm-lane branch name.
349
376
  *
@@ -1,5 +1,12 @@
1
1
  export type WorktreePurpose = 'lane' | 'session';
2
- export type MergeStrategy = 'merge' | 'rebase' | 'cherry-pick';
2
+ /**
3
+ * Landing strategies. The three legacy values are the persisted/config surface
4
+ * (workflow WAL, pending-delegation checkpoints, recovery records all validate
5
+ * against exactly these). `'squash-unstaged'` is an internal landing mode
6
+ * (#2508): `attemptMergeBackFromDirty` remaps a `'merge'` dispatch to it unless
7
+ * the caller opts into a committed landing — it must never be persisted.
8
+ */
9
+ export type MergeStrategy = 'merge' | 'rebase' | 'cherry-pick' | 'squash-unstaged';
3
10
  export type DependencyPreparationStrategy = 'skip' | 'copy' | 'link';
4
11
  /**
5
12
  * FR-201: Per-lane runtime profile injected into spawned child processes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.172.4",
3
+ "version": "7.173.0",
4
4
  "description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,72 +0,0 @@
1
- // @bun
2
- import {
3
- createCuratorLLMDelegate
4
- } from "./index-fn7ny88p.js";
5
- import"./index-hnvmj9wx.js";
6
- import"./index-9h6zhnk0.js";
7
- import"./index-68bp6sak.js";
8
- import"./index-j8z3t7dv.js";
9
- import"./index-1t4v24tw.js";
10
- import"./index-d9g9stnf.js";
11
- import"./index-qzptb0gf.js";
12
- import"./index-txdagbh7.js";
13
- import"./index-z2deqhpp.js";
14
- import"./index-fpbcxykc.js";
15
- import"./index-zpksgw8w.js";
16
- import"./index-2negdnww.js";
17
- import"./index-zfzbn9a7.js";
18
- import"./index-fyfbpz4f.js";
19
- import"./index-rxakec16.js";
20
- import"./index-0hgmsyfp.js";
21
- import"./index-zsrtt42s.js";
22
- import"./index-1c119trs.js";
23
- import"./index-a1187fx5.js";
24
- import"./index-j7zrvqnf.js";
25
- import"./index-pt7h91zc.js";
26
- import"./index-q7sjgr1y.js";
27
- import"./index-1c1n8aax.js";
28
- import"./index-y1qc2cpp.js";
29
- import"./index-36143n94.js";
30
- import"./index-5qfqwbvg.js";
31
- import"./index-2n16srdc.js";
32
- import"./index-2s7dvzff.js";
33
- import"./index-her1kqcr.js";
34
- import"./index-efbdfkw9.js";
35
- import"./index-rtry5xyf.js";
36
- import"./index-3rkjybes.js";
37
- import"./index-frcemc0b.js";
38
- import"./index-wrt875kh.js";
39
- import"./index-bbhgnn4j.js";
40
- import"./index-5tjd3cne.js";
41
- import"./index-kerhh5q4.js";
42
- import"./index-b395nw9b.js";
43
- import"./index-y6bqbe76.js";
44
- import"./index-jg2s11sg.js";
45
- import"./index-rdm3px0g.js";
46
- import"./index-ry16d01s.js";
47
- import"./index-yxegcfy5.js";
48
- import"./index-szezqd2a.js";
49
- import"./index-vzm6zre7.js";
50
- import"./index-ae75rja9.js";
51
- import"./index-ksjpc8s8.js";
52
- import"./index-01mjyjdt.js";
53
- import"./index-7g4c7s5r.js";
54
- import"./index-jmn35na4.js";
55
- import"./index-8p30wyx0.js";
56
- import"./index-1xnse449.js";
57
- import"./index-c1ggtmpm.js";
58
- import"./index-gqkfha6x.js";
59
- import"./index-0mhftbpp.js";
60
- import"./index-a1w58b47.js";
61
- import"./index-d21qcjr6.js";
62
- import"./index-5frh43fj.js";
63
- import"./index-bk5tah7q.js";
64
- import"./index-gknz3bv1.js";
65
- import"./index-zpsr8rpc.js";
66
- import"./index-76qm2c2y.js";
67
- import"./index-yzjaj53h.js";
68
- import"./index-zgwm4ryv.js";
69
- import"./index-a76rekgs.js";
70
- export {
71
- createCuratorLLMDelegate
72
- };
@@ -1,73 +0,0 @@
1
- // @bun
2
- import {
3
- handleGuardrailExplain
4
- } from "./index-pkgshf8r.js";
5
- import"./index-fn7ny88p.js";
6
- import"./index-hnvmj9wx.js";
7
- import"./index-9h6zhnk0.js";
8
- import"./index-68bp6sak.js";
9
- import"./index-j8z3t7dv.js";
10
- import"./index-1t4v24tw.js";
11
- import"./index-d9g9stnf.js";
12
- import"./index-qzptb0gf.js";
13
- import"./index-txdagbh7.js";
14
- import"./index-z2deqhpp.js";
15
- import"./index-fpbcxykc.js";
16
- import"./index-zpksgw8w.js";
17
- import"./index-2negdnww.js";
18
- import"./index-zfzbn9a7.js";
19
- import"./index-fyfbpz4f.js";
20
- import"./index-rxakec16.js";
21
- import"./index-0hgmsyfp.js";
22
- import"./index-zsrtt42s.js";
23
- import"./index-1c119trs.js";
24
- import"./index-a1187fx5.js";
25
- import"./index-j7zrvqnf.js";
26
- import"./index-pt7h91zc.js";
27
- import"./index-q7sjgr1y.js";
28
- import"./index-1c1n8aax.js";
29
- import"./index-y1qc2cpp.js";
30
- import"./index-36143n94.js";
31
- import"./index-5qfqwbvg.js";
32
- import"./index-2n16srdc.js";
33
- import"./index-2s7dvzff.js";
34
- import"./index-her1kqcr.js";
35
- import"./index-efbdfkw9.js";
36
- import"./index-rtry5xyf.js";
37
- import"./index-3rkjybes.js";
38
- import"./index-frcemc0b.js";
39
- import"./index-wrt875kh.js";
40
- import"./index-bbhgnn4j.js";
41
- import"./index-5tjd3cne.js";
42
- import"./index-kerhh5q4.js";
43
- import"./index-b395nw9b.js";
44
- import"./index-y6bqbe76.js";
45
- import"./index-jg2s11sg.js";
46
- import"./index-rdm3px0g.js";
47
- import"./index-ry16d01s.js";
48
- import"./index-yxegcfy5.js";
49
- import"./index-szezqd2a.js";
50
- import"./index-vzm6zre7.js";
51
- import"./index-ae75rja9.js";
52
- import"./index-ksjpc8s8.js";
53
- import"./index-01mjyjdt.js";
54
- import"./index-7g4c7s5r.js";
55
- import"./index-jmn35na4.js";
56
- import"./index-8p30wyx0.js";
57
- import"./index-1xnse449.js";
58
- import"./index-c1ggtmpm.js";
59
- import"./index-gqkfha6x.js";
60
- import"./index-0mhftbpp.js";
61
- import"./index-a1w58b47.js";
62
- import"./index-d21qcjr6.js";
63
- import"./index-5frh43fj.js";
64
- import"./index-bk5tah7q.js";
65
- import"./index-gknz3bv1.js";
66
- import"./index-zpsr8rpc.js";
67
- import"./index-76qm2c2y.js";
68
- import"./index-yzjaj53h.js";
69
- import"./index-zgwm4ryv.js";
70
- import"./index-a76rekgs.js";
71
- export {
72
- handleGuardrailExplain
73
- };