opencode-swarm 7.184.6 → 7.184.7

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 (95) 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/{coder-settlement-cxe9fn9d.js → coder-settlement-2759zt77.js} +11 -11
  4. package/dist/cli/{config-doctor-f2semh9v.js → config-doctor-g48tz4kt.js} +3 -3
  5. package/dist/cli/{core-xf46e82t.js → core-1jfgxw72.js} +4 -4
  6. package/dist/cli/{curation-policy-49f8jx48.js → curation-policy-k43q6b91.js} +4 -4
  7. package/dist/cli/{curator-drift-8ez4czhj.js → curator-drift-5wc9jfmy.js} +9 -9
  8. package/dist/cli/curator-llm-factory-jjd0cxb2.js +75 -0
  9. package/dist/cli/{curator-n2gvb7rc.js → curator-m7sja3jp.js} +38 -38
  10. package/dist/cli/{evidence-summary-service-e2gt8tnz.js → evidence-summary-service-sx8x12w0.js} +17 -17
  11. package/dist/cli/{gate-evidence-9zpdk87c.js → gate-evidence-znfffz94.js} +8 -6
  12. package/dist/cli/guardrail-explain-x81m4s8q.js +76 -0
  13. package/dist/cli/{guardrail-log-e4ysdxag.js → guardrail-log-mcv4ad3t.js} +7 -7
  14. package/dist/cli/{guardrail-reset-1fxdaqwf.js → guardrail-reset-ksrr2r0n.js} +38 -38
  15. package/dist/cli/{hive-promoter-y81jkaj5.js → hive-promoter-06dzq5ms.js} +38 -38
  16. package/dist/cli/{index-jjdrhr7z.js → index-0prgjynb.js} +5 -5
  17. package/dist/cli/{index-ar2gsn6b.js → index-14j1jkyy.js} +6 -6
  18. package/dist/cli/{index-b5xcv0ec.js → index-16smfppa.js} +4 -4
  19. package/dist/cli/{index-skw3bgg1.js → index-1kz2repk.js} +4 -4
  20. package/dist/cli/{index-kx3hfpb8.js → index-1npynszx.js} +12 -12
  21. package/dist/cli/{index-gekvpzaf.js → index-1nwkzj24.js} +2 -2
  22. package/dist/cli/{index-ya32wfkp.js → index-1t2ctwkd.js} +1 -1
  23. package/dist/cli/{index-5j6g6kqj.js → index-2s0gy81b.js} +3 -3
  24. package/dist/cli/{index-k53a69vb.js → index-2t4zv1ag.js} +7 -14
  25. package/dist/cli/{index-g1aa3sdm.js → index-3h0f07e9.js} +2 -2
  26. package/dist/cli/{index-d4rhnvtf.js → index-42pchr9f.js} +1 -1
  27. package/dist/cli/{index-zm08qe68.js → index-4qmeshfa.js} +5 -5
  28. package/dist/cli/{index-3n5zsp31.js → index-7xv2hvr6.js} +2 -2
  29. package/dist/cli/{index-7136wpb2.js → index-82j1een1.js} +46 -19
  30. package/dist/cli/{index-ejk27p7n.js → index-8bvpcbk8.js} +40 -40
  31. package/dist/cli/{index-wy3zpwjy.js → index-98a0rxby.js} +1 -1
  32. package/dist/cli/{index-vyjped9g.js → index-b1v0zxnh.js} +2 -2
  33. package/dist/cli/{index-5p5tpj50.js → index-bf055zyw.js} +2 -2
  34. package/dist/cli/{index-8x0vtc05.js → index-c5c7hrz1.js} +3 -3
  35. package/dist/cli/{index-m62eysrr.js → index-dyddcx8h.js} +168 -105
  36. package/dist/cli/{index-xf69xty9.js → index-e1zrgvqg.js} +1 -1
  37. package/dist/cli/{index-3w3cssas.js → index-eecz2kna.js} +7 -7
  38. package/dist/cli/{index-y1xtkdys.js → index-enjsn68b.js} +7 -7
  39. package/dist/cli/{index-wzec3c4g.js → index-ezagem2g.js} +4 -0
  40. package/dist/cli/{index-zzvxj02e.js → index-fr6x6vn2.js} +1 -1
  41. package/dist/cli/{index-475bkab8.js → index-g2r6t7by.js} +1 -1
  42. package/dist/cli/{index-47wqppx9.js → index-kbd6apth.js} +38 -38
  43. package/dist/cli/{index-dtgj8d9k.js → index-m8rt7a3g.js} +4 -4
  44. package/dist/cli/{index-qksf7d8b.js → index-mp60wy1f.js} +4 -4
  45. package/dist/cli/{index-6g664sy8.js → index-q39ecyaq.js} +1 -1
  46. package/dist/cli/{index-9vbsarg2.js → index-q4a0j3nh.js} +5 -5
  47. package/dist/cli/{index-earq3mda.js → index-qeqn241m.js} +1 -1
  48. package/dist/cli/{index-k1p87csx.js → index-raj6y6d3.js} +2 -2
  49. package/dist/cli/{index-f0nj3d8z.js → index-rmspt7xm.js} +1 -1
  50. package/dist/cli/{index-77g30h6x.js → index-rwzrbcm9.js} +2 -2
  51. package/dist/cli/{index-jvk95e6y.js → index-s95ghsy1.js} +1 -1
  52. package/dist/cli/{index-h2vpqaf1.js → index-sxxj47cy.js} +6 -6
  53. package/dist/cli/{index-w9hxzcz4.js → index-t0mb5a9p.js} +1 -1
  54. package/dist/cli/{index-4b8997qs.js → index-x16a0c6b.js} +7 -7
  55. package/dist/cli/{index-456awy1p.js → index-xqxqepsy.js} +2 -2
  56. package/dist/cli/{index-p45t3c66.js → index-ywmknn6m.js} +1 -1
  57. package/dist/cli/{index-taw9b4v5.js → index-z1qs160n.js} +1 -1
  58. package/dist/cli/{index-kkj76rky.js → index-z7recmq5.js} +3 -3
  59. package/dist/cli/index.js +39 -39
  60. package/dist/cli/{knowledge-escalator-pw06n575.js → knowledge-escalator-ghx76dcv.js} +12 -12
  61. package/dist/cli/{knowledge-events-f4wgd8n2.js → knowledge-events-kpw6fbmc.js} +10 -10
  62. package/dist/cli/{knowledge-link-ap2274vm.js → knowledge-link-xw6vsbx3.js} +3 -3
  63. package/dist/cli/{knowledge-store-rttx0zb9.js → knowledge-store-fhdrpxdm.js} +4 -4
  64. package/dist/cli/{knowledge-validator-nakzbx9d.js → knowledge-validator-7jr0aka1.js} +6 -6
  65. package/dist/cli/{mcp-fdgfryxa.js → mcp-v7cgf5tn.js} +1 -1
  66. package/dist/cli/{model-preflight-wmm3tard.js → model-preflight-kn3xqvfk.js} +38 -38
  67. package/dist/cli/{pending-delegations-eswsasts.js → pending-delegations-z7mcbecn.js} +10 -10
  68. package/dist/cli/{pr-subscriptions-fvwnd217.js → pr-subscriptions-1sb07tx3.js} +10 -10
  69. package/dist/cli/{pr-workflow-gate-v4e8k3gn.js → pr-workflow-gate-ph4fvf47.js} +38 -38
  70. package/dist/cli/{runner-yz3ysehf.js → runner-pvdhxh74.js} +4 -4
  71. package/dist/cli/{scan-cursor-krrzh2x5.js → scan-cursor-7ny9bnmk.js} +5 -5
  72. package/dist/cli/{schema-wv7r4x4q.js → schema-pjkzvcw8.js} +2 -2
  73. package/dist/cli/{scope-persistence-d3jv0v2w.js → scope-persistence-mkb8yc5s.js} +14 -14
  74. package/dist/cli/{server-cxf8qmej.js → server-4e853cwk.js} +38 -38
  75. package/dist/cli/{skill-generator-gbs540wv.js → skill-generator-v6n0kwh0.js} +14 -14
  76. package/dist/cli/{snapshot-coordination-init-p98yacqd.js → snapshot-coordination-init-agx2sn6h.js} +38 -38
  77. package/dist/cli/{speckit-checkoff-1zhq6dsh.js → speckit-checkoff-wfsbvt1b.js} +5 -5
  78. package/dist/cli/{workspace-snapshot-xwhhznt3.js → workspace-snapshot-553c6cd3.js} +3 -3
  79. package/dist/cli/{worktree-collision-ownership-rm7ybyyc.js → worktree-collision-ownership-4znww3nt.js} +11 -11
  80. package/dist/cli/{worktree-isolation-vz6et0s2.js → worktree-isolation-w4k8q59z.js} +38 -38
  81. package/dist/commands/registry.d.ts +1 -1
  82. package/dist/gate-evidence.d.ts +51 -0
  83. package/dist/index.js +34 -34
  84. package/dist/tools/index.d.ts +1 -0
  85. package/dist/tools/manifest.d.ts +1 -0
  86. package/dist/tools/record-branch-freshness.d.ts +6 -0
  87. package/dist/tools/record-trace-validation.d.ts +11 -0
  88. package/dist/tools/recover-stage-a-task.d.ts +5 -0
  89. package/dist/tools/tool-metadata.d.ts +4 -0
  90. package/dist/workflow/settlement-recovery.d.ts +52 -0
  91. package/dist/workflow/stage-a-repair.d.ts +13 -8
  92. package/dist/workflow/task-recovery-status.d.ts +11 -2
  93. package/package.json +1 -1
  94. package/dist/cli/curator-llm-factory-smd5741x.js +0 -75
  95. package/dist/cli/guardrail-explain-e9kjxg97.js +0 -76
@@ -7,70 +7,70 @@ import {
7
7
  isHiveEligible,
8
8
  promoteFromSwarm,
9
9
  promoteToHive
10
- } from "./index-m62eysrr.js";
11
- import"./index-8x0vtc05.js";
10
+ } from "./index-dyddcx8h.js";
11
+ import"./index-c5c7hrz1.js";
12
12
  import"./index-hamqvzqn.js";
13
- import"./index-6g664sy8.js";
14
- import"./index-kkj76rky.js";
15
- import"./index-77g30h6x.js";
16
- import"./index-kx3hfpb8.js";
17
- import"./index-ya32wfkp.js";
13
+ import"./index-q39ecyaq.js";
14
+ import"./index-z7recmq5.js";
15
+ import"./index-rwzrbcm9.js";
16
+ import"./index-1npynszx.js";
17
+ import"./index-1t2ctwkd.js";
18
18
  import"./index-txdagbh7.js";
19
- import"./index-taw9b4v5.js";
19
+ import"./index-z1qs160n.js";
20
20
  import"./index-6b295cas.js";
21
- import"./index-qksf7d8b.js";
22
- import"./index-zm08qe68.js";
23
- import"./index-k1p87csx.js";
21
+ import"./index-mp60wy1f.js";
22
+ import"./index-4qmeshfa.js";
23
+ import"./index-raj6y6d3.js";
24
24
  import"./index-rdec0y3z.js";
25
- import"./index-ar2gsn6b.js";
25
+ import"./index-14j1jkyy.js";
26
26
  import"./index-cjapb4hy.js";
27
27
  import"./index-zsrtt42s.js";
28
- import"./index-4b8997qs.js";
29
- import"./index-vyjped9g.js";
30
- import"./index-3n5zsp31.js";
28
+ import"./index-x16a0c6b.js";
29
+ import"./index-b1v0zxnh.js";
30
+ import"./index-7xv2hvr6.js";
31
31
  import"./index-pt7h91zc.js";
32
32
  import"./index-q7sjgr1y.js";
33
- import"./index-gekvpzaf.js";
34
- import"./index-7136wpb2.js";
35
- import"./index-skw3bgg1.js";
36
- import"./index-h2vpqaf1.js";
37
- import"./index-3w3cssas.js";
38
- import"./index-wy3zpwjy.js";
33
+ import"./index-1nwkzj24.js";
34
+ import"./index-82j1een1.js";
35
+ import"./index-1kz2repk.js";
36
+ import"./index-sxxj47cy.js";
37
+ import"./index-eecz2kna.js";
38
+ import"./index-98a0rxby.js";
39
39
  import"./index-2s7dvzff.js";
40
- import"./index-dtgj8d9k.js";
41
- import"./index-earq3mda.js";
40
+ import"./index-m8rt7a3g.js";
41
+ import"./index-qeqn241m.js";
42
42
  import"./index-rtry5xyf.js";
43
- import"./index-5j6g6kqj.js";
43
+ import"./index-2s0gy81b.js";
44
44
  import"./index-frcemc0b.js";
45
45
  import"./index-0725jpp7.js";
46
- import"./index-jjdrhr7z.js";
47
- import"./index-9vbsarg2.js";
48
- import"./index-jvk95e6y.js";
49
- import"./index-456awy1p.js";
50
- import"./index-f0nj3d8z.js";
51
- import"./index-w9hxzcz4.js";
46
+ import"./index-0prgjynb.js";
47
+ import"./index-q4a0j3nh.js";
48
+ import"./index-s95ghsy1.js";
49
+ import"./index-xqxqepsy.js";
50
+ import"./index-rmspt7xm.js";
51
+ import"./index-t0mb5a9p.js";
52
52
  import"./index-rdm3px0g.js";
53
53
  import"./index-ry16d01s.js";
54
- import"./index-zzvxj02e.js";
54
+ import"./index-fr6x6vn2.js";
55
55
  import {
56
56
  resolveHiveKnowledgePath
57
- } from "./index-y1xtkdys.js";
57
+ } from "./index-enjsn68b.js";
58
58
  import"./index-vzm6zre7.js";
59
59
  import"./index-ae75rja9.js";
60
- import"./index-475bkab8.js";
61
- import"./index-xf69xty9.js";
60
+ import"./index-g2r6t7by.js";
61
+ import"./index-e1zrgvqg.js";
62
62
  import"./index-t7hmqgjy.js";
63
63
  import"./index-x1gyqgze.js";
64
64
  import"./index-mc72pk74.js";
65
65
  import"./index-c1ggtmpm.js";
66
66
  import"./index-ejhxgyvm.js";
67
67
  import"./index-7g4c7s5r.js";
68
- import"./index-k53a69vb.js";
68
+ import"./index-2t4zv1ag.js";
69
69
  import"./index-gx2vp8gx.js";
70
- import"./index-d4rhnvtf.js";
70
+ import"./index-42pchr9f.js";
71
71
  import"./index-zxdawwc7.js";
72
- import"./index-g1aa3sdm.js";
73
- import"./index-wzec3c4g.js";
72
+ import"./index-3h0f07e9.js";
73
+ import"./index-ezagem2g.js";
74
74
  import"./index-bk5tah7q.js";
75
75
  import"./index-gknz3bv1.js";
76
76
  import"./index-zpsr8rpc.js";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  computePlanStructureHash
4
- } from "./index-9vbsarg2.js";
4
+ } from "./index-q4a0j3nh.js";
5
5
  import {
6
6
  appendCoreEventSync
7
- } from "./index-jvk95e6y.js";
7
+ } from "./index-s95ghsy1.js";
8
8
  import {
9
9
  deleteCoordinationState,
10
10
  derivePlanId,
@@ -13,10 +13,10 @@ import {
13
13
  transitionCoordinationState,
14
14
  transitionCoordinationStateWithinTransaction,
15
15
  withCoordinationTransaction
16
- } from "./index-f0nj3d8z.js";
16
+ } from "./index-rmspt7xm.js";
17
17
  import {
18
18
  getProjectDb
19
- } from "./index-w9hxzcz4.js";
19
+ } from "./index-t0mb5a9p.js";
20
20
  import {
21
21
  canonicalExistingFilesystemPath,
22
22
  legacyCanonicalExistingFilesystemPath
@@ -30,7 +30,7 @@ import {
30
30
  import {
31
31
  atomicWriteSwarmFile,
32
32
  atomicWriteSwarmFileSync
33
- } from "./index-k53a69vb.js";
33
+ } from "./index-2t4zv1ag.js";
34
34
  import {
35
35
  PlanSchema
36
36
  } from "./index-gx2vp8gx.js";
@@ -1,24 +1,24 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-wy3zpwjy.js";
4
+ } from "./index-98a0rxby.js";
5
5
  import {
6
6
  deleteCoordinationState,
7
7
  importCoordinationOnce,
8
8
  listCoordinationStates,
9
9
  transitionCoordinationState,
10
10
  withCoordinationTransaction
11
- } from "./index-f0nj3d8z.js";
11
+ } from "./index-rmspt7xm.js";
12
12
  import {
13
13
  getProjectDb,
14
14
  projectDbExists
15
- } from "./index-w9hxzcz4.js";
15
+ } from "./index-t0mb5a9p.js";
16
16
  import {
17
17
  observeStoreHealth
18
- } from "./index-zzvxj02e.js";
18
+ } from "./index-fr6x6vn2.js";
19
19
  import {
20
20
  withEvidenceLock
21
- } from "./index-xf69xty9.js";
21
+ } from "./index-e1zrgvqg.js";
22
22
  import {
23
23
  telemetry
24
24
  } from "./index-x1gyqgze.js";
@@ -29,7 +29,7 @@ import {
29
29
  } from "./index-mc72pk74.js";
30
30
  import {
31
31
  atomicWriteSwarmFileSync
32
- } from "./index-k53a69vb.js";
32
+ } from "./index-2t4zv1ag.js";
33
33
  import {
34
34
  exports_external,
35
35
  init_zod
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  _internals,
4
4
  resolveWorktreeIsolationConfig
5
- } from "./index-5j6g6kqj.js";
5
+ } from "./index-2s0gy81b.js";
6
6
  import {
7
7
  ApprovalEvidenceSchema,
8
8
  BaseEvidenceSchema,
@@ -46,7 +46,7 @@ import {
46
46
  loadPluginConfigWithMeta,
47
47
  loadPluginConfigWithMetaAsync,
48
48
  resetConfigAdvisoryDedup
49
- } from "./index-d4rhnvtf.js";
49
+ } from "./index-42pchr9f.js";
50
50
  import"./index-zxdawwc7.js";
51
51
  import {
52
52
  AUTO_REVIEW_V8_BURN_IN_DECISION,
@@ -72,7 +72,7 @@ import {
72
72
  TurboConfigSchema,
73
73
  WorktreeIsolationConfigSchema,
74
74
  resolveAutoReviewConfig
75
- } from "./index-g1aa3sdm.js";
75
+ } from "./index-3h0f07e9.js";
76
76
  import {
77
77
  ALL_AGENT_NAMES,
78
78
  ALL_SUBAGENT_NAMES,
@@ -82,7 +82,7 @@ import {
82
82
  QA_AGENTS,
83
83
  isQAAgent,
84
84
  isSubagent
85
- } from "./index-wzec3c4g.js";
85
+ } from "./index-ezagem2g.js";
86
86
  import"./index-bk5tah7q.js";
87
87
  import"./index-gknz3bv1.js";
88
88
  import"./index-zpsr8rpc.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-wy3zpwjy.js";
4
+ } from "./index-98a0rxby.js";
5
5
  import {
6
6
  bunSpawn
7
7
  } from "./index-2s7dvzff.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./index-mc72pk74.js";
11
11
  import {
12
12
  atomicWriteSwarmFileSync
13
- } from "./index-k53a69vb.js";
13
+ } from "./index-2t4zv1ag.js";
14
14
  import {
15
15
  advisoryWarn,
16
16
  init_git_executable,
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  SWARM_WORKTREE_DIR_NAME,
22
22
  init_constants
23
- } from "./index-wzec3c4g.js";
23
+ } from "./index-ezagem2g.js";
24
24
  import {
25
25
  init_logger,
26
26
  log
@@ -242,7 +242,7 @@ var _internals2 = {
242
242
  symlinkSync: fs2.symlinkSync
243
243
  },
244
244
  writeScopeToDisk: async (directory, taskId, files) => {
245
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-d3jv0v2w.js");
245
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-mkb8yc5s.js");
246
246
  return realWrite(directory, taskId, files);
247
247
  },
248
248
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -3,10 +3,10 @@ import {
3
3
  EvaluationRunV1Schema,
4
4
  GateAuditResultV1Schema,
5
5
  getProtectedEvaluationRunIds
6
- } from "./index-ya32wfkp.js";
6
+ } from "./index-1t2ctwkd.js";
7
7
  import {
8
8
  readEffectiveSpecSync
9
- } from "./index-taw9b4v5.js";
9
+ } from "./index-z1qs160n.js";
10
10
  import {
11
11
  validateWorkspaceRoot
12
12
  } from "./index-6b295cas.js";
@@ -26,13 +26,13 @@ import {
26
26
  readTaskEvidence,
27
27
  readTaskEvidenceRaw,
28
28
  sanitizeTaskId
29
- } from "./index-7136wpb2.js";
29
+ } from "./index-82j1een1.js";
30
30
  import {
31
31
  estimateCharsForTokens,
32
32
  estimateTokens,
33
33
  readSwarmFileAsync,
34
34
  validateSwarmPath
35
- } from "./index-wy3zpwjy.js";
35
+ } from "./index-98a0rxby.js";
36
36
  import {
37
37
  bunHash,
38
38
  bunWrite,
@@ -61,10 +61,10 @@ import {
61
61
  replayFromLedgerWithStatus,
62
62
  takeSnapshotEvent,
63
63
  takeSnapshotWithRetry
64
- } from "./index-9vbsarg2.js";
64
+ } from "./index-q4a0j3nh.js";
65
65
  import {
66
66
  appendCoreEventSync
67
- } from "./index-jvk95e6y.js";
67
+ } from "./index-s95ghsy1.js";
68
68
  import {
69
69
  derivePlanId,
70
70
  derivePlanIdentityHash,
@@ -72,16 +72,16 @@ import {
72
72
  importCoordinationOnce,
73
73
  listCoordinationStates,
74
74
  transitionCoordinationState
75
- } from "./index-f0nj3d8z.js";
75
+ } from "./index-rmspt7xm.js";
76
76
  import {
77
77
  DURABILITY_CLASSES,
78
78
  getProjectDb,
79
79
  projectDbExists,
80
80
  withDurabilityClass
81
- } from "./index-w9hxzcz4.js";
81
+ } from "./index-t0mb5a9p.js";
82
82
  import {
83
83
  withEvidenceLock
84
- } from "./index-xf69xty9.js";
84
+ } from "./index-e1zrgvqg.js";
85
85
  import {
86
86
  assertProjectRoot
87
87
  } from "./index-t7hmqgjy.js";
@@ -98,7 +98,7 @@ import {
98
98
  atomicWriteSwarmFileSync,
99
99
  invalidateCachedArtifact,
100
100
  readCachedParsedFile
101
- } from "./index-k53a69vb.js";
101
+ } from "./index-2t4zv1ag.js";
102
102
  import {
103
103
  PlanSchema,
104
104
  normalizeCurrentPhaseInPlace,
@@ -3097,7 +3097,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
3097
3097
  if (status === "completed") {
3098
3098
  try {
3099
3099
  const completedTask = updatedPlan.phases.flatMap((phase) => phase.tasks).find((candidate) => candidate.id === taskId);
3100
- const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-1zhq6dsh.js");
3100
+ const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-wfsbvt1b.js");
3101
3101
  await maybePropagateSpeckitCheckoff(directory, {
3102
3102
  taskId,
3103
3103
  frRefs: completedTask?.fr_refs ?? [],
@@ -3122,7 +3122,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
3122
3122
  break;
3123
3123
  }
3124
3124
  }
3125
- const { readDeclaredScopeFilesFromBindings } = await import("./scope-persistence-d3jv0v2w.js");
3125
+ const { readDeclaredScopeFilesFromBindings } = await import("./scope-persistence-mkb8yc5s.js");
3126
3126
  const canonicalScope = readDeclaredScopeFilesFromBindings({
3127
3127
  directory,
3128
3128
  taskId,
@@ -5,11 +5,11 @@ import {
5
5
  import {
6
6
  atomicWriteFileAnyRoot,
7
7
  atomicWriteSwarmFileSync
8
- } from "./index-k53a69vb.js";
8
+ } from "./index-2t4zv1ag.js";
9
9
  import {
10
10
  init_loader,
11
11
  loadPluginConfig
12
- } from "./index-d4rhnvtf.js";
12
+ } from "./index-42pchr9f.js";
13
13
  import {
14
14
  init_logger,
15
15
  log,
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  atomicWriteFile,
12
12
  withEvidenceLock
13
- } from "./index-xf69xty9.js";
13
+ } from "./index-e1zrgvqg.js";
14
14
  import {
15
15
  assertProjectRoot
16
16
  } from "./index-t7hmqgjy.js";
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  init_loader,
4
4
  loadPluginConfigWithMeta
5
- } from "./index-d4rhnvtf.js";
5
+ } from "./index-42pchr9f.js";
6
6
  import {
7
7
  init_schema
8
- } from "./index-g1aa3sdm.js";
8
+ } from "./index-3h0f07e9.js";
9
9
  import {
10
10
  DEFAULT_WORKTREE_ISOLATION_CONFIG,
11
11
  init_constants
12
- } from "./index-wzec3c4g.js";
12
+ } from "./index-ezagem2g.js";
13
13
 
14
14
  // src/config/index.ts
15
15
  init_constants();
@@ -246,9 +246,6 @@ var SWARM_TEMP_GRAMMARS = [
246
246
  "src/knowledge/identity.ts:230",
247
247
  "src/evidence/phase-participation.ts (pre-#2035; migrated-to=src/evidence/phase-participation.ts:atomicWriteBytes)",
248
248
  "src/turbo/lean/integration.ts:428",
249
- "src/tools/record-branch-freshness.ts:90",
250
- "src/tools/record-trace-validation.ts:134",
251
- "src/tools/record-merge-approval.ts:87",
252
249
  "src/turbo/lean/reviewer.ts:403",
253
250
  "src/plan/ledger.ts:1471",
254
251
  "src/services/synonym-map.ts:389",
@@ -401,10 +398,6 @@ var SWARM_TEMP_GRAMMARS = [
401
398
  "src/tools/write-drift-evidence.ts:275",
402
399
  "src/tools/write-mutation-evidence.ts:169",
403
400
  "src/tools/write-hallucination-evidence.ts:121",
404
- "src/tools/record-implementation-review.ts:87",
405
- "src/tools/record-recurrence-sweep.ts:140",
406
- "src/tools/record-issue-reproduction.ts:85",
407
- "src/tools/record-issue-publication.ts:74",
408
401
  "src/tools/write-final-council-evidence.ts:403"
409
402
  ],
410
403
  note: "constant-name temps: no per-invocation token \u2014 reported when stale, never auto-quarantined (may be an in-flight writer of any process)"
@@ -518,13 +511,13 @@ var WRITER_CLASSIFICATION = Object.freeze({
518
511
  "src/turbo/lean/state.ts": "registered-bespoke",
519
512
  "src/tools/apply-patch.ts": "external",
520
513
  "src/tools/checkpoint.ts": "registered-bespoke",
521
- "src/tools/record-implementation-review.ts": "registered-bespoke",
522
- "src/tools/record-issue-publication.ts": "registered-bespoke",
523
- "src/tools/record-issue-reproduction.ts": "registered-bespoke",
524
- "src/tools/record-recurrence-sweep.ts": "registered-bespoke",
525
- "src/tools/record-branch-freshness.ts": "registered-bespoke",
526
- "src/tools/record-trace-validation.ts": "registered-bespoke",
527
- "src/tools/record-merge-approval.ts": "registered-bespoke",
514
+ "src/tools/record-implementation-review.ts": "migrated",
515
+ "src/tools/record-issue-publication.ts": "migrated",
516
+ "src/tools/record-issue-reproduction.ts": "migrated",
517
+ "src/tools/record-recurrence-sweep.ts": "migrated",
518
+ "src/tools/record-branch-freshness.ts": "migrated",
519
+ "src/tools/record-trace-validation.ts": "migrated",
520
+ "src/tools/record-merge-approval.ts": "migrated",
528
521
  "src/tools/repo-graph/freshness.ts": "registered-bespoke",
529
522
  "src/tools/repo-graph/storage.ts": "registered-bespoke",
530
523
  "src/tools/sast-baseline.ts": "registered-bespoke",
@@ -3,7 +3,7 @@ import {
3
3
  ALL_AGENT_NAMES,
4
4
  SUMMARIZER_EXEMPT_TOOL_NAMES,
5
5
  init_constants
6
- } from "./index-wzec3c4g.js";
6
+ } from "./index-ezagem2g.js";
7
7
  import {
8
8
  OUTCOME_BLOCK_THRESHOLD,
9
9
  init_knowledge_types
@@ -21,7 +21,7 @@ var package_default;
21
21
  var init_package = __esm(() => {
22
22
  package_default = {
23
23
  name: "opencode-swarm",
24
- version: "7.184.6",
24
+ version: "7.184.7",
25
25
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
26
26
  main: "dist/index.js",
27
27
  types: "dist/index.d.ts",
@@ -13,7 +13,7 @@ import {
13
13
  PluginConfigSchema,
14
14
  init_schema,
15
15
  resolveExternalSkillsConfig
16
- } from "./index-g1aa3sdm.js";
16
+ } from "./index-3h0f07e9.js";
17
17
  import {
18
18
  DangerousMergeKeyError,
19
19
  MAX_MERGE_DEPTH,
@@ -3,7 +3,7 @@ import {
3
3
  queryHistoricalOutcomes,
4
4
  readKnowledgeEvents,
5
5
  recordKnowledgeEvent
6
- } from "./index-3w3cssas.js";
6
+ } from "./index-eecz2kna.js";
7
7
  import {
8
8
  jaccardBigram,
9
9
  readKnowledge,
@@ -11,7 +11,7 @@ import {
11
11
  resolveSwarmKnowledgePath,
12
12
  transactKnowledge,
13
13
  wordBigrams
14
- } from "./index-y1xtkdys.js";
14
+ } from "./index-enjsn68b.js";
15
15
  import {
16
16
  init_knowledge_types,
17
17
  isActiveStatus
@@ -224,11 +224,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
224
224
  alreadyInactive: true
225
225
  };
226
226
  }
227
- const { quarantineEntry } = await import("./knowledge-validator-nakzbx9d.js");
227
+ const { quarantineEntry } = await import("./knowledge-validator-7jr0aka1.js");
228
228
  let policyConfig;
229
229
  try {
230
- const { KnowledgeConfigSchema } = await import("./schema-wv7r4x4q.js");
231
- const { loadPluginConfigWithMeta } = await import("./index-b5xcv0ec.js");
230
+ const { KnowledgeConfigSchema } = await import("./schema-pjkzvcw8.js");
231
+ const { loadPluginConfigWithMeta } = await import("./index-16smfppa.js");
232
232
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
233
233
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
234
234
  } catch {
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-wy3zpwjy.js";
4
+ } from "./index-98a0rxby.js";
5
5
  import {
6
6
  atomicWriteSwarmFileSync
7
- } from "./index-k53a69vb.js";
7
+ } from "./index-2t4zv1ag.js";
8
8
 
9
9
  // src/hooks/delegation-gate/worktree-provisioning-owner.ts
10
10
  import { createHash } from "crypto";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  autoCommitDirty,
4
4
  cleanUntrackedFiles
5
- } from "./index-skw3bgg1.js";
5
+ } from "./index-1kz2repk.js";
6
6
  import {
7
7
  validateSwarmPath
8
- } from "./index-wy3zpwjy.js";
8
+ } from "./index-98a0rxby.js";
9
9
  import {
10
10
  bunSpawn,
11
11
  classifySpawnFailure
@@ -14,7 +14,7 @@ import {
14
14
  atomicWriteFile,
15
15
  taskEvidencePath,
16
16
  withTaskEvidenceLock
17
- } from "./index-xf69xty9.js";
17
+ } from "./index-e1zrgvqg.js";
18
18
  import {
19
19
  assertProjectRoot
20
20
  } from "./index-t7hmqgjy.js";
@@ -1827,6 +1827,7 @@ var TaskWorkflowMetadataSchema = exports_external.object({
1827
1827
  updatedAt: exports_external.string(),
1828
1828
  forcedCompletion: exports_external.boolean().optional(),
1829
1829
  supervisedRecovery: exports_external.boolean().optional(),
1830
+ settlementRecovery: exports_external.boolean().optional(),
1830
1831
  noMutationSettlement: exports_external.object({
1831
1832
  generation: exports_external.literal(0),
1832
1833
  transitionId: exports_external.string().min(1).max(512),
@@ -2003,7 +2004,7 @@ function isReadOnlyNoMutationEligible(evidence, options) {
2003
2004
  return deriveApplicableGateSet(evidence, options).readOnlyNoMutation;
2004
2005
  }
2005
2006
  function reduceTaskWorkflowSnapshot(current, event, context) {
2006
- if ((current.state === "complete" || current.state === "blocked" || current.state === "closed") && event.type !== "repair_idle" && !(current.state === "complete" && event.type === "task_completed" || current.state === "blocked" && event.type === "task_blocked" || current.state === "blocked" && event.type === "task_closed")) {
2007
+ if ((current.state === "complete" || current.state === "blocked" || current.state === "closed") && event.type !== "repair_idle" && !(current.state === "complete" && event.type === "task_completed" || current.state === "blocked" && event.type === "task_blocked" || current.state === "blocked" && event.type === "task_closed" || current.state === "blocked" && event.type === "stage_a_passed" && event.settlementRecovery === true)) {
2007
2008
  throw new Error(`TASK_WORKFLOW_TERMINAL: cannot apply ${event.type} from ${current.state}`);
2008
2009
  }
2009
2010
  const outcome = getEventOutcome(event);
@@ -2019,6 +2020,7 @@ function reduceTaskWorkflowSnapshot(current, event, context) {
2019
2020
  updatedAt: context.nowIso,
2020
2021
  ...current.forcedCompletion === true ? { forcedCompletion: true } : {},
2021
2022
  ...current.supervisedRecovery === true ? { supervisedRecovery: true } : {},
2023
+ ...current.settlementRecovery === true ? { settlementRecovery: true } : {},
2022
2024
  ...current.noMutationSettlement ? { noMutationSettlement: current.noMutationSettlement } : {}
2023
2025
  };
2024
2026
  switch (event.type) {
@@ -2063,23 +2065,26 @@ function reduceTaskWorkflowSnapshot(current, event, context) {
2063
2065
  retryCount: Math.min(current.retryCount + 1, 3),
2064
2066
  retryHistory: [...current.retryHistory, outcome].slice(-3),
2065
2067
  retryEpoch: current.retryEpoch || current.generation + 1,
2066
- supervisedRecovery: undefined
2068
+ supervisedRecovery: undefined,
2069
+ settlementRecovery: undefined
2067
2070
  };
2068
2071
  }
2069
2072
  return {
2070
2073
  ...withoutSettlement,
2071
2074
  generation: current.generation + 1,
2072
2075
  state: "coder_delegated",
2073
- supervisedRecovery: undefined
2076
+ supervisedRecovery: undefined,
2077
+ settlementRecovery: undefined
2074
2078
  };
2075
2079
  }
2076
2080
  case "stage_a_passed":
2077
- if (current.state !== "coder_delegated" && current.state !== "pre_check_passed" && !(current.state === "rework_required" && event.supervisedRecovery === true)) {
2081
+ if (current.state !== "coder_delegated" && current.state !== "pre_check_passed" && !(current.state === "rework_required" && event.supervisedRecovery === true) && !(event.settlementRecovery === true && (current.state === "idle" || current.state === "blocked"))) {
2078
2082
  throw new Error(`TASK_WORKFLOW_CODER_MUTATION_REQUIRED: cannot pass Stage A from ${current.state}`);
2079
2083
  }
2080
2084
  return {
2081
2085
  ...base,
2082
2086
  ...event.supervisedRecovery === true ? { supervisedRecovery: true } : {},
2087
+ ...event.settlementRecovery === true ? { settlementRecovery: true } : {},
2083
2088
  state: "pre_check_passed"
2084
2089
  };
2085
2090
  case "stage_a_failed":
@@ -2140,6 +2145,7 @@ function reduceTaskWorkflowSnapshot(current, event, context) {
2140
2145
  const {
2141
2146
  forcedCompletion: _cleared,
2142
2147
  supervisedRecovery: _clearedMarker,
2148
+ settlementRecovery: _clearedSettlementMarker,
2143
2149
  noMutationSettlement: _clearedSettlement,
2144
2150
  ...withoutForced
2145
2151
  } = base;
@@ -2305,16 +2311,30 @@ function updateEvidenceForTransition(existing, event) {
2305
2311
  };
2306
2312
  }
2307
2313
  async function transitionTaskWorkflowEvidence(directory, taskId, event) {
2314
+ const { evidence } = await transitionTaskWorkflowEvidenceWithStatus(directory, taskId, event);
2315
+ return evidence;
2316
+ }
2317
+ async function transitionTaskWorkflowEvidenceWithStatus(directory, taskId, event) {
2308
2318
  assertValidTaskId(taskId);
2309
2319
  let updatedEvidence = null;
2320
+ let duplicated = false;
2310
2321
  await withTaskEvidenceTransaction(directory, taskId, event.type, async (transaction) => {
2322
+ if (transaction.transitionWithStatus) {
2323
+ const result = await transaction.transitionWithStatus(event);
2324
+ updatedEvidence = result.evidence;
2325
+ duplicated = result.duplicated;
2326
+ return;
2327
+ }
2311
2328
  updatedEvidence = await transaction.transition(event);
2312
2329
  });
2313
- return updatedEvidence ?? {
2314
- taskId,
2315
- required_gates: [],
2316
- gates: {},
2317
- workflow: createDefaultWorkflowMetadata(new Date().toISOString())
2330
+ return {
2331
+ evidence: updatedEvidence ?? {
2332
+ taskId,
2333
+ required_gates: [],
2334
+ gates: {},
2335
+ workflow: createDefaultWorkflowMetadata(new Date().toISOString())
2336
+ },
2337
+ duplicated
2318
2338
  };
2319
2339
  }
2320
2340
  async function withTaskEvidenceTransaction(directory, taskId, agent, callback) {
@@ -2341,16 +2361,23 @@ async function withTaskEvidenceTransaction(directory, taskId, agent, callback) {
2341
2361
  current = validated;
2342
2362
  return validated;
2343
2363
  };
2364
+ const transitionWithStatusImpl = async (event) => {
2365
+ const boundEvent = bindTrustedNoMutationSettlement(directory, taskId, event);
2366
+ assertTaskEvidenceWriteAllowed(directory, taskId, boundEvent);
2367
+ const nextEvidence = updateEvidenceForTransition(current, boundEvent);
2368
+ const duplicated = nextEvidence === current;
2369
+ nextEvidence.taskId = taskId;
2370
+ const evidence = await persist(nextEvidence, boundEvent);
2371
+ return { evidence, duplicated };
2372
+ };
2344
2373
  return callback({
2345
2374
  taskId,
2346
2375
  read: () => current,
2347
2376
  transition: async (event) => {
2348
- const boundEvent = bindTrustedNoMutationSettlement(directory, taskId, event);
2349
- assertTaskEvidenceWriteAllowed(directory, taskId, boundEvent);
2350
- const nextEvidence = updateEvidenceForTransition(current, boundEvent);
2351
- nextEvidence.taskId = taskId;
2352
- return persist(nextEvidence, boundEvent);
2353
- }
2377
+ const { evidence } = await transitionWithStatusImpl(event);
2378
+ return evidence;
2379
+ },
2380
+ transitionWithStatus: transitionWithStatusImpl
2354
2381
  });
2355
2382
  });
2356
2383
  }
@@ -2463,4 +2490,4 @@ function compareTaskWorkflowStateRank(left, right) {
2463
2490
  return WORKFLOW_STATE_RANK[left] - WORKFLOW_STATE_RANK[right];
2464
2491
  }
2465
2492
 
2466
- export { isStrictTaskId, sanitizeTaskId, listRecoveryRecords, GitBinaryMissingError, GitSpawnCwdError, isGitBinaryMissing, isSpawnCwdMissing, isSpawnCwdUnreadable, _internals, SOURCE_WORKTREE_GONE_STAGE, SOURCE_WORKTREE_UNCERTAIN_STAGE, getMergeStrategy, recoverMergeBackFromImmutableCoordinates, reconcileLandedMerge, postMergeCleanup, pruneStaleWorktreeMetadata, attemptMergeBackFromDirty, cleanupOrphanedBranches, startupOrphanRecovery, readWorkflowWalFile, writeWorkflowWalFile, _internals3 as _internals1, TASK_WORKFLOW_SCHEMA_MARKER, readCurrentTaskDeclaredFiles, TASK_GATE_REQUIREMENTS_RECONSTRUCTION_SENTINEL, assertTaskEvidenceWriteAllowed, parseTaskEvidence, DEFAULT_REQUIRED_GATES, isValidTaskId, getTaskWorkflowSnapshot, deriveApplicableGateSet, isReadOnlyNoMutationEligible, reduceTaskWorkflowSnapshot, deriveRequiredGates, expandRequiredGates, transitionTaskWorkflowEvidence, withTaskEvidenceTransaction, ensureTaskGateRequirementsReceiptForSettledTransition, recordGateEvidence, recordAgentDispatch, readTaskEvidence, readTaskEvidenceState, readTaskEvidenceRaw, hasPassedAllGates, compareTaskWorkflowStateRank };
2493
+ export { isStrictTaskId, sanitizeTaskId, listRecoveryRecords, GitBinaryMissingError, GitSpawnCwdError, isGitBinaryMissing, isSpawnCwdMissing, isSpawnCwdUnreadable, _internals, SOURCE_WORKTREE_GONE_STAGE, SOURCE_WORKTREE_UNCERTAIN_STAGE, getMergeStrategy, recoverMergeBackFromImmutableCoordinates, reconcileLandedMerge, postMergeCleanup, pruneStaleWorktreeMetadata, attemptMergeBackFromDirty, cleanupOrphanedBranches, startupOrphanRecovery, readWorkflowWalFile, writeWorkflowWalFile, _internals3 as _internals1, TASK_WORKFLOW_SCHEMA_MARKER, readCurrentTaskDeclaredFiles, TASK_GATE_REQUIREMENTS_RECONSTRUCTION_SENTINEL, assertTaskEvidenceWriteAllowed, parseTaskEvidence, DEFAULT_REQUIRED_GATES, isValidTaskId, getTaskWorkflowSnapshot, deriveApplicableGateSet, isReadOnlyNoMutationEligible, reduceTaskWorkflowSnapshot, deriveRequiredGates, expandRequiredGates, transitionTaskWorkflowEvidence, transitionTaskWorkflowEvidenceWithStatus, withTaskEvidenceTransaction, ensureTaskGateRequirementsReceiptForSettledTransition, recordGateEvidence, recordAgentDispatch, readTaskEvidence, readTaskEvidenceState, readTaskEvidenceRaw, hasPassedAllGates, compareTaskWorkflowStateRank };