opencode-swarm 7.200.0 → 7.200.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 (100) 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/cli/{attest-task-8ekwny8v.js → attest-task-sg8b5a5j.js} +42 -42
  4. package/dist/cli/{auto-checkpoint-dqjk82s7.js → auto-checkpoint-bywgxh27.js} +7 -7
  5. package/dist/cli/{checkpoint-2ahps2sp.js → checkpoint-k2092cbw.js} +17 -15
  6. package/dist/cli/{coder-settlement-1dk37pa9.js → coder-settlement-y0hkcngn.js} +10 -10
  7. package/dist/cli/{config-doctor-73rctg85.js → config-doctor-0fnrwkga.js} +13 -13
  8. package/dist/cli/{core-y5mfws8v.js → core-mfyaj8b4.js} +3 -3
  9. package/dist/cli/{curation-policy-43gq6t0y.js → curation-policy-fth5n93x.js} +4 -4
  10. package/dist/cli/{curator-m278hyrq.js → curator-1s64jkc3.js} +41 -41
  11. package/dist/cli/{curator-drift-k7j9rcgp.js → curator-drift-famx6p6s.js} +8 -8
  12. package/dist/cli/curator-llm-factory-vya4epq6.js +82 -0
  13. package/dist/cli/{doctor-knowledge-receipt-phase-id-1m7pkzvt.js → doctor-knowledge-receipt-phase-id-v4y6pbek.js} +7 -7
  14. package/dist/cli/{evidence-summary-service-19k8x1g9.js → evidence-summary-service-rd7y6yjq.js} +17 -17
  15. package/dist/cli/{gate-evidence-hche0hf8.js → gate-evidence-kama66h5.js} +5 -5
  16. package/dist/cli/guardrail-explain-8fkhq0cg.js +83 -0
  17. package/dist/cli/{guardrail-log-tvbgnxns.js → guardrail-log-gdj19fq5.js} +6 -6
  18. package/dist/cli/{guardrail-reset-v8kvh9cn.js → guardrail-reset-bmg6czzk.js} +41 -41
  19. package/dist/cli/{hive-promoter-bqfa763z.js → hive-promoter-ychygdgc.js} +41 -41
  20. package/dist/cli/{index-1rfgzsaw.js → index-0ptf66x5.js} +4 -4
  21. package/dist/cli/{index-rfvnq6wd.js → index-0tygsk8b.js} +8 -8
  22. package/dist/cli/{index-qnst0jwc.js → index-12h2rtdj.js} +3 -3
  23. package/dist/cli/{index-bp476gwc.js → index-1v277wxc.js} +2 -2
  24. package/dist/cli/{index-511hw14d.js → index-2dm42tgp.js} +43 -43
  25. package/dist/cli/{index-hg4qa0aq.js → index-2hnnkj64.js} +1892 -2354
  26. package/dist/cli/{index-pyv8vzkx.js → index-2m740hyt.js} +5 -5
  27. package/dist/cli/{index-wfb6vrc2.js → index-2w5grmmj.js} +2 -2
  28. package/dist/cli/{index-gwc7jahh.js → index-3020n6d9.js} +1 -1
  29. package/dist/cli/{index-m9j9varx.js → index-3exe6k66.js} +3 -3
  30. package/dist/cli/{index-sk1rva12.js → index-3zspah3v.js} +2 -2
  31. package/dist/cli/{index-hxp5jgd8.js → index-51dw4bjc.js} +2 -2
  32. package/dist/cli/{index-0wg5q595.js → index-5snwc3dz.js} +1 -1
  33. package/dist/cli/{index-kwfhr3mz.js → index-b0d8ra32.js} +1 -1
  34. package/dist/cli/{index-r02aqt0a.js → index-b4kdms7x.js} +2 -2
  35. package/dist/cli/{index-n5k81wym.js → index-bn3aa5q1.js} +7 -7
  36. package/dist/cli/{index-md2180vx.js → index-c9g3hkjz.js} +3 -3
  37. package/dist/cli/{index-qnabg1wp.js → index-dgyddtje.js} +6 -6
  38. package/dist/cli/{index-q1x73nnd.js → index-epzadpmm.js} +1 -1
  39. package/dist/cli/{index-jbm301bq.js → index-f6nrw8am.js} +41 -41
  40. package/dist/cli/{index-dng8z8me.js → index-g57p8p1k.js} +1 -1
  41. package/dist/cli/{index-vmevv6my.js → index-na6ph1fp.js} +1 -1
  42. package/dist/cli/{index-tv9c3b3q.js → index-nawp90n7.js} +3 -3
  43. package/dist/cli/{index-wr0n2w3z.js → index-nzfq1ms2.js} +1 -1
  44. package/dist/cli/{index-yvv0my1a.js → index-p6v544jn.js} +1 -1
  45. package/dist/cli/{index-x25rhkmk.js → index-parkaa70.js} +4 -4
  46. package/dist/cli/{index-yss701b3.js → index-pe77h482.js} +4 -4
  47. package/dist/cli/{index-71bqn1nn.js → index-qaqyq25k.js} +7 -7
  48. package/dist/cli/{index-8rrs1nc0.js → index-qzakbjcg.js} +2 -2
  49. package/dist/cli/{index-22atsy06.js → index-rzkmg02a.js} +918 -154
  50. package/dist/cli/{index-nq3zcrhm.js → index-s3w41p1x.js} +1 -1
  51. package/dist/cli/{index-7v74n9a1.js → index-s8eac99p.js} +3 -3
  52. package/dist/cli/{index-99zt998b.js → index-s9y49avf.js} +1 -1
  53. package/dist/cli/{index-58cr1xg0.js → index-sva5swrs.js} +3 -3
  54. package/dist/cli/{index-p5m71yph.js → index-sz67z90q.js} +4 -4
  55. package/dist/cli/{index-e8m8bb1r.js → index-th667k1y.js} +4 -4
  56. package/dist/cli/{index-ac8vdmgv.js → index-traz987v.js} +1 -1
  57. package/dist/cli/{index-jy0mgzjq.js → index-v1h70r3y.js} +1 -1
  58. package/dist/cli/{index-d083d1q7.js → index-ves1rtqt.js} +1 -1
  59. package/dist/cli/{index-9nmrw7ek.js → index-vtkgg2qn.js} +3 -3
  60. package/dist/cli/{index-35tf03js.js → index-w2bhrp6z.js} +10 -10
  61. package/dist/cli/{index-8a3aasag.js → index-wgf1780e.js} +5 -5
  62. package/dist/cli/{index-x1z5d5kj.js → index-xyvsdn07.js} +1 -1
  63. package/dist/cli/{index-1tpz99db.js → index-ypxq0x7r.js} +1 -1
  64. package/dist/cli/{index-vqtca3xv.js → index-z9mysg5m.js} +2 -2
  65. package/dist/cli/index.js +42 -42
  66. package/dist/cli/{knowledge-escalator-qcra58bx.js → knowledge-escalator-zxd76jna.js} +12 -12
  67. package/dist/cli/{knowledge-events-9mnx1a3f.js → knowledge-events-z8h0wmaw.js} +10 -10
  68. package/dist/cli/{knowledge-link-2jsn9f6a.js → knowledge-link-wfhsfyn2.js} +3 -3
  69. package/dist/cli/{knowledge-store-fdneqf7z.js → knowledge-store-g2gm13s8.js} +4 -4
  70. package/dist/cli/{knowledge-validator-7nj987ga.js → knowledge-validator-2sech2sx.js} +6 -6
  71. package/dist/cli/{mcp-0g34wmz4.js → mcp-t88363gj.js} +1 -1
  72. package/dist/cli/{model-preflight-g11ykgc0.js → model-preflight-akj8g1m2.js} +41 -41
  73. package/dist/cli/{pending-delegations-5vme18wx.js → pending-delegations-bqp6b6as.js} +11 -11
  74. package/dist/cli/{pr-subscriptions-cbx5p838.js → pr-subscriptions-wxjvkg56.js} +10 -10
  75. package/dist/cli/{pr-workflow-gate-376gw6yj.js → pr-workflow-gate-2wcrfa6g.js} +41 -41
  76. package/dist/cli/{runner-vvd26z2z.js → runner-s1a73y5h.js} +4 -4
  77. package/dist/cli/{scan-cursor-x3j5wvfm.js → scan-cursor-8br4x41t.js} +5 -5
  78. package/dist/cli/{schema-d98zzrpn.js → schema-mc419qh8.js} +1 -1
  79. package/dist/cli/{scope-persistence-vkb8z4hc.js → scope-persistence-5gyjt70q.js} +13 -13
  80. package/dist/cli/{server-25svy6cb.js → server-bp247fqe.js} +41 -41
  81. package/dist/cli/{skill-generator-ktz33dt6.js → skill-generator-q4afafh3.js} +14 -14
  82. package/dist/cli/{snapshot-coordination-init-74x3psxc.js → snapshot-coordination-init-b4kmrgh7.js} +41 -41
  83. package/dist/cli/{speckit-checkoff-9t6cdn4a.js → speckit-checkoff-1v02b2dt.js} +4 -4
  84. package/dist/cli/{workspace-snapshot-afqvh9bq.js → workspace-snapshot-93gzfac2.js} +3 -3
  85. package/dist/cli/{worktree-collision-ownership-7a1n1f9j.js → worktree-collision-ownership-84m9f5an.js} +12 -12
  86. package/dist/cli/{worktree-isolation-8snw7w34.js → worktree-isolation-xwbszhja.js} +41 -41
  87. package/dist/commands/close/internals.d.ts +1 -1
  88. package/dist/commands/close/orchestrator.d.ts +7 -0
  89. package/dist/commands/destructive-purge.d.ts +15 -0
  90. package/dist/commands/git-status-read.d.ts +23 -0
  91. package/dist/commands/registry.d.ts +1 -1
  92. package/dist/commands/rollback-gate.d.ts +77 -10
  93. package/dist/git/branch.d.ts +22 -0
  94. package/dist/index.js +26 -22
  95. package/dist/session/snapshot-coordination-init.d.ts +34 -0
  96. package/dist/session/snapshot-writer.d.ts +5 -1
  97. package/dist/tools/checkpoint.d.ts +17 -0
  98. package/package.json +1 -1
  99. package/dist/cli/curator-llm-factory-rke0964p.js +0 -82
  100. package/dist/cli/guardrail-explain-jg5png4a.js +0 -83
@@ -13,6 +13,29 @@ interface ReadinessEntry {
13
13
  settled: boolean;
14
14
  underlying: Promise<void>;
15
15
  error?: string;
16
+ /**
17
+ * #2963: why this entry is closing, recorded by the only origins that
18
+ * know it — the reset command's release-gate decision
19
+ * ('reset-cleanup-failed') or host shutdown marking ('shutdown'). An
20
+ * in-flight reset's guard carries NO reason: consumers must never infer
21
+ * the cleanup-stranded contract from `settled` alone (a normal active
22
+ * reset presents `closing && settled` with no reason).
23
+ */
24
+ closingReason?: 'reset-cleanup-failed' | 'shutdown';
25
+ /**
26
+ * #2963: true while the ORIGINAL initializer this closing window is
27
+ * waiting on is still unsettled (priorUnsettled close-timeout, including
28
+ * guards installed by a reset re-entry before the original settled).
29
+ * Cleared by the identity-safe settlement observer below.
30
+ */
31
+ pendingPriorAttempt?: boolean;
32
+ /**
33
+ * #2963: the still-unsettled original initializer's promise, captured at
34
+ * the first priorUnsettled guard and propagated with the flag through
35
+ * every replacement so the whole chain observes the same original. Never
36
+ * exposed on SnapshotCoordinationStatus.
37
+ */
38
+ pendingPriorUnderlying?: Promise<void>;
16
39
  }
17
40
  export interface SnapshotCoordinationStatus {
18
41
  state: ReadinessState | 'idle';
@@ -20,6 +43,10 @@ export interface SnapshotCoordinationStatus {
20
43
  generation?: number;
21
44
  settled: boolean;
22
45
  error?: string;
46
+ /** #2963: read-only origin classification (see ReadinessEntry.closingReason). */
47
+ closingReason?: 'reset-cleanup-failed' | 'shutdown';
48
+ /** #2963: read-only — a prior initialization attempt is still settling. */
49
+ pendingPriorAttempt?: boolean;
23
50
  }
24
51
  /**
25
52
  * Held while reset-session removes the authoritative snapshot and its legacy
@@ -30,6 +57,13 @@ export interface SnapshotCoordinationResetGuard {
30
57
  closeError?: Error;
31
58
  /** True when the prior initializer did not settle before the reset deadline. */
32
59
  priorUnsettled?: boolean;
60
+ /**
61
+ * #2963: mark THIS guard's entry as cleanup-stranded. Returns whether the
62
+ * marking landed (same identity discipline as release(): false when a
63
+ * newer guard has replaced this one at the root). Callers gate any
64
+ * stranded-stop advisory on the boolean — a void no-op cannot.
65
+ */
66
+ markStranded(): boolean;
33
67
  }
34
68
  export declare function startSnapshotCoordinationInitialization(directory: string): Promise<void>;
35
69
  export declare function ensureSnapshotCoordinationReady(directory: string): Promise<void>;
@@ -197,7 +197,11 @@ export interface SnapshotData {
197
197
  export declare function serializeAgentSession(s: AgentSessionState): SerializedAgentSession;
198
198
  /**
199
199
  * Write a snapshot of swarmState to .swarm/session/state.json atomically.
200
- * Silently swallows errors (non-fatal — never crash the plugin).
200
+ * Non-fatal — never crashes the plugin. Failures are silent in the debug log
201
+ * EXCEPT the closing-stop class (#2963): when coordination refuses the write
202
+ * because a partially-failed reset stranded the closing guard, exactly one
203
+ * always-visible operational advisory per root per stop episode is emitted
204
+ * (advisoryWarn — the /swarm diagnose channel, never chat-visible noise).
201
205
  */
202
206
  export declare function writeSnapshot(directory: string, state: typeof swarmState): Promise<void>;
203
207
  export declare function writeSnapshotProjection(directory: string, snapshot: SnapshotData, shouldCommit?: () => boolean): Promise<void>;
@@ -1,4 +1,6 @@
1
1
  import type { ToolDefinition } from '@opencode-ai/plugin/tool';
2
+ import { readGitRepositoryStatusDetailedAsync, readGitStatusAsync } from '../commands/git-status-read';
3
+ import { measureGitDestruction } from '../commands/rollback-gate';
2
4
  import { tryAcquireLock } from '../parallel/file-locks.js';
3
5
  import { loadPlan } from '../plan/manager.js';
4
6
  import { resolveGitExecutable } from '../utils/git-executable.js';
@@ -20,6 +22,21 @@ export declare const _internals: {
20
22
  * `spawnSync` call slots the test is asserting on.
21
23
  */
22
24
  resolveGitExecutable: typeof resolveGitExecutable;
25
+ /**
26
+ * Feedback-round seam (#3441 review): the restore path's destruction
27
+ * measurement is reachable through this slot so a test can stub the
28
+ * measurement without mocking the whole rollback-gate module (whose
29
+ * process-global mock.module form leaks across co-run files).
30
+ */
31
+ measureGitDestruction: typeof measureGitDestruction;
32
+ /**
33
+ * Feedback-round seams (PRR-011): the two async reader probes are
34
+ * reachable through slots so tests stub them by PROPERTY ASSIGNMENT
35
+ * (restored in afterEach) instead of mock.module — the module-level
36
+ * registration is process-global and poisoned co-run files.
37
+ */
38
+ readGitStatusAsync: typeof readGitStatusAsync;
39
+ readGitRepositoryStatusDetailedAsync: typeof readGitRepositoryStatusDetailedAsync;
23
40
  };
24
41
  declare function stageAllExcludingSwarm(directory: string): void;
25
42
  declare function gitExec(args: string[], cwd: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.200.0",
3
+ "version": "7.200.1",
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,82 +0,0 @@
1
- // @bun
2
- import {
3
- createCuratorLLMDelegate
4
- } from "./index-hg4qa0aq.js";
5
- import"./index-nq3zcrhm.js";
6
- import"./index-8rrs1nc0.js";
7
- import"./index-md2180vx.js";
8
- import"./index-yss701b3.js";
9
- import"./index-0wg5q595.js";
10
- import"./index-axqyjreb.js";
11
- import"./index-txdagbh7.js";
12
- import"./index-qnabg1wp.js";
13
- import"./index-vqtca3xv.js";
14
- import"./index-rdec0y3z.js";
15
- import"./index-qnst0jwc.js";
16
- import"./index-71bqn1nn.js";
17
- import"./index-e8m8bb1r.js";
18
- import"./index-bp476gwc.js";
19
- import"./index-8a3aasag.js";
20
- import"./index-x5jwegqw.js";
21
- import"./index-r02aqt0a.js";
22
- import"./index-rfvnq6wd.js";
23
- import"./index-8mrentmw.js";
24
- import"./index-pt7h91zc.js";
25
- import"./index-q7sjgr1y.js";
26
- import"./index-22atsy06.js";
27
- import"./index-35tf03js.js";
28
- import"./index-6b295cas.js";
29
- import"./index-9nyqt3kb.js";
30
- import"./index-9nmrw7ek.js";
31
- import"./index-v3bmwmqw.js";
32
- import"./index-sk1rva12.js";
33
- import"./index-58cr1xg0.js";
34
- import"./index-m9j9varx.js";
35
- import"./index-spggmr30.js";
36
- import"./index-1rfgzsaw.js";
37
- import"./index-x25rhkmk.js";
38
- import"./index-m9zzj4ee.js";
39
- import"./index-x1z5d5kj.js";
40
- import"./index-p5m71yph.js";
41
- import"./index-jy0mgzjq.js";
42
- import"./index-rtry5xyf.js";
43
- import"./index-hxp5jgd8.js";
44
- import"./index-g22dps7x.js";
45
- import"./index-0725jpp7.js";
46
- import"./index-pyv8vzkx.js";
47
- import"./index-99zt998b.js";
48
- import"./index-7v74n9a1.js";
49
- import"./index-vmevv6my.js";
50
- import"./index-d083d1q7.js";
51
- import"./index-ry16d01s.js";
52
- import"./index-rdm3px0g.js";
53
- import"./index-wr0n2w3z.js";
54
- import"./index-7pmbnjvj.js";
55
- import"./index-9rwhas09.js";
56
- import"./index-1tpz99db.js";
57
- import"./index-n5k81wym.js";
58
- import"./index-vzm6zre7.js";
59
- import"./index-ae75rja9.js";
60
- import"./index-dng8z8me.js";
61
- import"./index-ac8vdmgv.js";
62
- import"./index-q8vfw61p.js";
63
- import"./index-t7hmqgjy.js";
64
- import"./index-c2k7q723.js";
65
- import"./index-te9hq2f4.js";
66
- import"./index-ejhxgyvm.js";
67
- import"./index-7g4c7s5r.js";
68
- import"./index-q1x73nnd.js";
69
- import"./index-3t46mez1.js";
70
- import"./index-gwc7jahh.js";
71
- import"./index-sp2cxpaq.js";
72
- import"./index-qbxk2rn6.js";
73
- import"./index-zgwm4ryv.js";
74
- import"./index-yvv0my1a.js";
75
- import"./index-xfzkq1k4.js";
76
- import"./index-bk5tah7q.js";
77
- import"./index-gknz3bv1.js";
78
- import"./index-zpsr8rpc.js";
79
- import"./index-a76rekgs.js";
80
- export {
81
- createCuratorLLMDelegate
82
- };
@@ -1,83 +0,0 @@
1
- // @bun
2
- import {
3
- handleGuardrailExplain
4
- } from "./index-wfb6vrc2.js";
5
- import"./index-hg4qa0aq.js";
6
- import"./index-nq3zcrhm.js";
7
- import"./index-8rrs1nc0.js";
8
- import"./index-md2180vx.js";
9
- import"./index-yss701b3.js";
10
- import"./index-0wg5q595.js";
11
- import"./index-axqyjreb.js";
12
- import"./index-txdagbh7.js";
13
- import"./index-qnabg1wp.js";
14
- import"./index-vqtca3xv.js";
15
- import"./index-rdec0y3z.js";
16
- import"./index-qnst0jwc.js";
17
- import"./index-71bqn1nn.js";
18
- import"./index-e8m8bb1r.js";
19
- import"./index-bp476gwc.js";
20
- import"./index-8a3aasag.js";
21
- import"./index-x5jwegqw.js";
22
- import"./index-r02aqt0a.js";
23
- import"./index-rfvnq6wd.js";
24
- import"./index-8mrentmw.js";
25
- import"./index-pt7h91zc.js";
26
- import"./index-q7sjgr1y.js";
27
- import"./index-22atsy06.js";
28
- import"./index-35tf03js.js";
29
- import"./index-6b295cas.js";
30
- import"./index-9nyqt3kb.js";
31
- import"./index-9nmrw7ek.js";
32
- import"./index-v3bmwmqw.js";
33
- import"./index-sk1rva12.js";
34
- import"./index-58cr1xg0.js";
35
- import"./index-m9j9varx.js";
36
- import"./index-spggmr30.js";
37
- import"./index-1rfgzsaw.js";
38
- import"./index-x25rhkmk.js";
39
- import"./index-m9zzj4ee.js";
40
- import"./index-x1z5d5kj.js";
41
- import"./index-p5m71yph.js";
42
- import"./index-jy0mgzjq.js";
43
- import"./index-rtry5xyf.js";
44
- import"./index-hxp5jgd8.js";
45
- import"./index-g22dps7x.js";
46
- import"./index-0725jpp7.js";
47
- import"./index-pyv8vzkx.js";
48
- import"./index-99zt998b.js";
49
- import"./index-7v74n9a1.js";
50
- import"./index-vmevv6my.js";
51
- import"./index-d083d1q7.js";
52
- import"./index-ry16d01s.js";
53
- import"./index-rdm3px0g.js";
54
- import"./index-wr0n2w3z.js";
55
- import"./index-7pmbnjvj.js";
56
- import"./index-9rwhas09.js";
57
- import"./index-1tpz99db.js";
58
- import"./index-n5k81wym.js";
59
- import"./index-vzm6zre7.js";
60
- import"./index-ae75rja9.js";
61
- import"./index-dng8z8me.js";
62
- import"./index-ac8vdmgv.js";
63
- import"./index-q8vfw61p.js";
64
- import"./index-t7hmqgjy.js";
65
- import"./index-c2k7q723.js";
66
- import"./index-te9hq2f4.js";
67
- import"./index-ejhxgyvm.js";
68
- import"./index-7g4c7s5r.js";
69
- import"./index-q1x73nnd.js";
70
- import"./index-3t46mez1.js";
71
- import"./index-gwc7jahh.js";
72
- import"./index-sp2cxpaq.js";
73
- import"./index-qbxk2rn6.js";
74
- import"./index-zgwm4ryv.js";
75
- import"./index-yvv0my1a.js";
76
- import"./index-xfzkq1k4.js";
77
- import"./index-bk5tah7q.js";
78
- import"./index-gknz3bv1.js";
79
- import"./index-zpsr8rpc.js";
80
- import"./index-a76rekgs.js";
81
- export {
82
- handleGuardrailExplain
83
- };