opencode-swarm 7.171.0 → 7.171.2

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 (79) 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-pn26zx36.js → coder-settlement-9e696204.js} +7 -7
  4. package/dist/cli/{config-doctor-jrhpq41y.js → config-doctor-zr748h4m.js} +2 -2
  5. package/dist/cli/{core-r0nbh1k2.js → core-aa3jmzcs.js} +1 -1
  6. package/dist/cli/{curation-policy-qemp257w.js → curation-policy-fakrpw5t.js} +4 -4
  7. package/dist/cli/{curator-drift-3ssjr0nx.js → curator-drift-r9r8gepb.js} +2 -2
  8. package/dist/cli/{curator-llm-factory-89yjg1m4.js → curator-llm-factory-nshzhgs4.js} +32 -32
  9. package/dist/cli/{curator-0g733bka.js → curator-xgpxtaf1.js} +32 -32
  10. package/dist/cli/{evidence-summary-service-4r7sqb2h.js → evidence-summary-service-5e2323zr.js} +13 -13
  11. package/dist/cli/{gate-evidence-f13tm63x.js → gate-evidence-5htpsr5y.js} +4 -4
  12. package/dist/cli/{guardrail-explain-kt4w2rt8.js → guardrail-explain-d0h0p73g.js} +33 -33
  13. package/dist/cli/{guardrail-log-18wdr04f.js → guardrail-log-heejmjce.js} +6 -6
  14. package/dist/cli/{guardrail-reset-795t6nah.js → guardrail-reset-rdqxeqy0.js} +32 -32
  15. package/dist/cli/{hive-promoter-gwtvg5vc.js → hive-promoter-n262tkm3.js} +32 -32
  16. package/dist/cli/{index-ttyvcxxb.js → index-04ph4jp2.js} +2 -2
  17. package/dist/cli/{index-9fxnn8xg.js → index-0caqxnby.js} +1 -1
  18. package/dist/cli/{index-ak3ca0nv.js → index-0yffa3np.js} +5 -5
  19. package/dist/cli/{index-xdw0m34m.js → index-11gz0few.js} +1 -1
  20. package/dist/cli/{index-wp0396m1.js → index-2ryy0cwt.js} +6 -6
  21. package/dist/cli/{index-sz75avt3.js → index-3jcp3zb6.js} +1 -1
  22. package/dist/cli/{index-k2cpsr0d.js → index-5a8q4qr5.js} +1 -1
  23. package/dist/cli/{index-znf55hyt.js → index-6k5aq7b9.js} +2 -2
  24. package/dist/cli/{index-zjkkz9qh.js → index-7hnjs7tf.js} +2 -2
  25. package/dist/cli/{index-4m7q9hqd.js → index-7qqwx64h.js} +5 -5
  26. package/dist/cli/{index-bvr0p6ns.js → index-95e3a9en.js} +1 -1
  27. package/dist/cli/{index-cravqkxf.js → index-9dz2ee2g.js} +55 -50
  28. package/dist/cli/{index-wy4txsws.js → index-9txyxbqc.js} +7 -7
  29. package/dist/cli/{index-npst1d4g.js → index-9vfp6g53.js} +34 -34
  30. package/dist/cli/{index-br3mvbsa.js → index-aa2eyfvr.js} +2 -2
  31. package/dist/cli/{index-4dpsvbdt.js → index-d79q2f8z.js} +3 -3
  32. package/dist/cli/{index-gxbesz2h.js → index-dsgc303n.js} +3 -3
  33. package/dist/cli/{index-7s5cm87j.js → index-e7yv4xw1.js} +2 -2
  34. package/dist/cli/{index-v3e19zzm.js → index-er6sk4e6.js} +1 -1
  35. package/dist/cli/{index-cex3emb2.js → index-evxd1art.js} +1 -1
  36. package/dist/cli/{index-mvcjc28t.js → index-f1rj1j8t.js} +279 -179
  37. package/dist/cli/{index-bernkwgf.js → index-g6nen3gt.js} +1 -1
  38. package/dist/cli/{index-sz9qnjd6.js → index-gq2zdxep.js} +5 -5
  39. package/dist/cli/{index-003d071j.js → index-j6rq132j.js} +6 -6
  40. package/dist/cli/{index-nmffafb0.js → index-jr6pypmj.js} +32 -32
  41. package/dist/cli/{index-cgpwjctj.js → index-kb66he4e.js} +1 -1
  42. package/dist/cli/{index-g93g1c5r.js → index-mazy938h.js} +1 -1
  43. package/dist/cli/{index-fdz0076x.js → index-nfs78aqj.js} +1 -1
  44. package/dist/cli/{index-d7yc4ys8.js → index-ph94evsh.js} +3 -3
  45. package/dist/cli/{index-dgpdnve5.js → index-q2yk70rs.js} +2 -1
  46. package/dist/cli/{index-0qa2cqyv.js → index-qcy7eg6z.js} +5 -5
  47. package/dist/cli/{index-7c0e181h.js → index-qdy4a48x.js} +1 -1
  48. package/dist/cli/{index-yj0qrgyc.js → index-r60cw2jt.js} +6 -6
  49. package/dist/cli/{index-b3nw1bzp.js → index-rrc08h4q.js} +3 -3
  50. package/dist/cli/{index-j92fe86t.js → index-vqb65csb.js} +9 -9
  51. package/dist/cli/{index-h17tpj0y.js → index-wfh89qct.js} +4 -4
  52. package/dist/cli/{index-dvbf6fpn.js → index-yqbnsmmv.js} +39 -0
  53. package/dist/cli/index.js +32 -32
  54. package/dist/cli/{knowledge-escalator-kpfm536v.js → knowledge-escalator-kn74r5w8.js} +10 -10
  55. package/dist/cli/{knowledge-events-t3e721m2.js → knowledge-events-7gpw741m.js} +8 -8
  56. package/dist/cli/{knowledge-link-refyc1fz.js → knowledge-link-vh9pfnb9.js} +3 -3
  57. package/dist/cli/{knowledge-store-sk2bhh52.js → knowledge-store-3f9kke7z.js} +4 -4
  58. package/dist/cli/{knowledge-validator-nmc56pbg.js → knowledge-validator-c2z68v8v.js} +6 -6
  59. package/dist/cli/{pending-delegations-ckshrtar.js → pending-delegations-d5c07rb7.js} +9 -9
  60. package/dist/cli/{pr-subscriptions-h81nme2p.js → pr-subscriptions-krv0jvds.js} +9 -9
  61. package/dist/cli/{pr-workflow-gate-m1k4b8mr.js → pr-workflow-gate-hmdht1he.js} +32 -32
  62. package/dist/cli/{runner-kzs5wbqh.js → runner-8m8qhngm.js} +4 -4
  63. package/dist/cli/{scan-cursor-e7varrte.js → scan-cursor-b57xxs3q.js} +5 -5
  64. package/dist/cli/{schema-nsb0saad.js → schema-r8tv8dqm.js} +1 -1
  65. package/dist/cli/{scope-persistence-2s5h5ry7.js → scope-persistence-0sc90mpj.js} +13 -13
  66. package/dist/cli/{skill-generator-wpq9j1nf.js → skill-generator-syxa1mxm.js} +12 -12
  67. package/dist/cli/{snapshot-coordination-init-8nhmhefs.js → snapshot-coordination-init-x18mwxyv.js} +32 -32
  68. package/dist/cli/{telemetry-z9scwfbz.js → telemetry-0mz37v3h.js} +1 -1
  69. package/dist/cli/{worktree-collision-ownership-2kmajcc9.js → worktree-collision-ownership-1tzw8qzp.js} +9 -9
  70. package/dist/cli/{worktree-isolation-kepgr7j2.js → worktree-isolation-ez0e48v3.js} +32 -32
  71. package/dist/db/observability-event-store.d.ts +17 -1
  72. package/dist/index.js +18 -17
  73. package/dist/observability/index.d.ts +1 -1
  74. package/dist/observability/observe.d.ts +6 -0
  75. package/dist/pr-review/reducer.d.ts +18 -10
  76. package/dist/pr-review/types.d.ts +43 -47
  77. package/dist/retention/dir-prune.d.ts +5 -1
  78. package/dist/telemetry.d.ts +10 -2
  79. package/package.json +2 -1
@@ -4,7 +4,7 @@ import {
4
4
  getProjectDb,
5
5
  projectDbExists,
6
6
  withImmediateTransaction
7
- } from "./index-dvbf6fpn.js";
7
+ } from "./index-yqbnsmmv.js";
8
8
 
9
9
  // src/db/coordination-store.ts
10
10
  import { createHash } from "crypto";
@@ -14,16 +14,16 @@ import {
14
14
  reconcileLandedMerge,
15
15
  withTaskEvidenceTransaction,
16
16
  writeWorkflowWalFile
17
- } from "./index-b3nw1bzp.js";
17
+ } from "./index-rrc08h4q.js";
18
18
  import {
19
19
  validateSwarmPath
20
20
  } from "./index-b3pmzbh1.js";
21
21
  import {
22
22
  appendCoreEventSync
23
- } from "./index-znf55hyt.js";
23
+ } from "./index-6k5aq7b9.js";
24
24
  import {
25
25
  tryAcquireLock
26
- } from "./index-cex3emb2.js";
26
+ } from "./index-evxd1art.js";
27
27
  import {
28
28
  canonicalRootKeyFresh
29
29
  } from "./index-1xnse449.js";
@@ -489,7 +489,7 @@ async function cleanupRecoveredWorktree(directory, descriptor) {
489
489
  awaitingMergeByCallID,
490
490
  cleanupStandardWorktreeForCallId,
491
491
  standardWorktreeByCallID
492
- } = await import("./worktree-isolation-kepgr7j2.js");
492
+ } = await import("./worktree-isolation-ez0e48v3.js");
493
493
  standardWorktreeByCallID.delete(descriptor.callID);
494
494
  if (hasResidue)
495
495
  awaitingMergeByCallID.set(descriptor.callID, {
@@ -613,7 +613,7 @@ async function recoverCoderSettlement(directory, taskId) {
613
613
  awaitingMergeByCallID,
614
614
  finishStandardWorktreeDispatch,
615
615
  standardWorktreeByCallID
616
- } = await import("./worktree-isolation-kepgr7j2.js");
616
+ } = await import("./worktree-isolation-ez0e48v3.js");
617
617
  const descriptor = wal.worktree;
618
618
  const reconstructedDispatch = {
619
619
  callID: descriptor.callID,
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  computePlanStructureHash
4
- } from "./index-wp0396m1.js";
4
+ } from "./index-2ryy0cwt.js";
5
5
  import {
6
6
  appendCoreEventSync
7
- } from "./index-znf55hyt.js";
7
+ } from "./index-6k5aq7b9.js";
8
8
  import {
9
9
  deleteCoordinationState,
10
10
  derivePlanId,
@@ -13,17 +13,17 @@ import {
13
13
  transitionCoordinationState,
14
14
  transitionCoordinationStateWithinTransaction,
15
15
  withCoordinationTransaction
16
- } from "./index-bernkwgf.js";
16
+ } from "./index-g6nen3gt.js";
17
17
  import {
18
18
  getProjectDb
19
- } from "./index-dvbf6fpn.js";
19
+ } from "./index-yqbnsmmv.js";
20
20
  import {
21
21
  canonicalExistingFilesystemPath,
22
22
  legacyCanonicalExistingFilesystemPath
23
23
  } from "./index-ry16d01s.js";
24
24
  import {
25
25
  assertProjectRoot
26
- } from "./index-cex3emb2.js";
26
+ } from "./index-evxd1art.js";
27
27
  import {
28
28
  require_proper_lockfile
29
29
  } from "./index-7g4c7s5r.js";
@@ -33,7 +33,7 @@ import {
33
33
  } from "./index-nbdmdyke.js";
34
34
  import {
35
35
  PlanSchema
36
- } from "./index-k2cpsr0d.js";
36
+ } from "./index-5a8q4qr5.js";
37
37
  import {
38
38
  init_path_identity,
39
39
  unsafePathTextReason
@@ -22,66 +22,66 @@ import {
22
22
  resolveFallbackModel,
23
23
  resolvePrimaryAgentNames,
24
24
  stripSwarmPrefix
25
- } from "./index-mvcjc28t.js";
25
+ } from "./index-f1rj1j8t.js";
26
26
  import"./index-5400m33a.js";
27
- import"./index-v3e19zzm.js";
28
- import"./index-gxbesz2h.js";
29
- import"./index-cgpwjctj.js";
30
- import"./index-7c0e181h.js";
31
- import"./index-j92fe86t.js";
32
- import"./index-sz75avt3.js";
27
+ import"./index-er6sk4e6.js";
28
+ import"./index-dsgc303n.js";
29
+ import"./index-kb66he4e.js";
30
+ import"./index-qdy4a48x.js";
31
+ import"./index-vqb65csb.js";
32
+ import"./index-3jcp3zb6.js";
33
33
  import"./index-txdagbh7.js";
34
34
  import"./index-9br68j86.js";
35
35
  import"./index-cw912re7.js";
36
- import"./index-4dpsvbdt.js";
37
- import"./index-ak3ca0nv.js";
38
- import"./index-ttyvcxxb.js";
36
+ import"./index-d79q2f8z.js";
37
+ import"./index-0yffa3np.js";
38
+ import"./index-04ph4jp2.js";
39
39
  import {
40
40
  createExplorerAgent
41
41
  } from "./index-fyfbpz4f.js";
42
- import"./index-4m7q9hqd.js";
42
+ import"./index-7qqwx64h.js";
43
43
  import"./index-0hgmsyfp.js";
44
44
  import"./index-zsrtt42s.js";
45
- import"./index-sz9qnjd6.js";
45
+ import"./index-gq2zdxep.js";
46
46
  import"./index-fhh02gwx.js";
47
47
  import"./index-nyn01yrz.js";
48
48
  import"./index-b43rt5ph.js";
49
49
  import"./index-q7sjgr1y.js";
50
- import"./index-b3nw1bzp.js";
51
- import"./index-g93g1c5r.js";
52
- import"./index-0qa2cqyv.js";
53
- import"./index-wy4txsws.js";
50
+ import"./index-rrc08h4q.js";
51
+ import"./index-mazy938h.js";
52
+ import"./index-qcy7eg6z.js";
53
+ import"./index-9txyxbqc.js";
54
54
  import"./index-b3pmzbh1.js";
55
55
  import"./index-2s7dvzff.js";
56
- import"./index-h17tpj0y.js";
57
- import"./index-9fxnn8xg.js";
56
+ import"./index-wfh89qct.js";
57
+ import"./index-0caqxnby.js";
58
58
  import"./index-rtry5xyf.js";
59
- import"./index-7s5cm87j.js";
59
+ import"./index-e7yv4xw1.js";
60
60
  import"./index-3qf1vxtb.js";
61
61
  import"./index-n832052r.js";
62
- import"./index-003d071j.js";
63
- import"./index-wp0396m1.js";
64
- import"./index-znf55hyt.js";
65
- import"./index-br3mvbsa.js";
66
- import"./index-bernkwgf.js";
67
- import"./index-dvbf6fpn.js";
62
+ import"./index-j6rq132j.js";
63
+ import"./index-2ryy0cwt.js";
64
+ import"./index-6k5aq7b9.js";
65
+ import"./index-aa2eyfvr.js";
66
+ import"./index-g6nen3gt.js";
67
+ import"./index-yqbnsmmv.js";
68
68
  import"./index-rdm3px0g.js";
69
69
  import"./index-ry16d01s.js";
70
- import"./index-fdz0076x.js";
71
- import"./index-yj0qrgyc.js";
70
+ import"./index-nfs78aqj.js";
71
+ import"./index-r60cw2jt.js";
72
72
  import"./index-vzm6zre7.js";
73
73
  import"./index-ae75rja9.js";
74
- import"./index-bvr0p6ns.js";
75
- import"./index-cex3emb2.js";
74
+ import"./index-95e3a9en.js";
75
+ import"./index-evxd1art.js";
76
76
  import"./index-7g4c7s5r.js";
77
- import"./index-cravqkxf.js";
77
+ import"./index-9dz2ee2g.js";
78
78
  import"./index-nbdmdyke.js";
79
79
  import"./index-1xnse449.js";
80
80
  import"./index-ee6ydtfe.js";
81
- import"./index-k2cpsr0d.js";
81
+ import"./index-5a8q4qr5.js";
82
82
  import"./index-0mhftbpp.js";
83
83
  import"./index-a1w58b47.js";
84
- import"./index-dgpdnve5.js";
84
+ import"./index-q2yk70rs.js";
85
85
  import"./index-sxt7fgcw.js";
86
86
  import"./index-bk5tah7q.js";
87
87
  import"./index-bpmtbmy9.js";
@@ -5,7 +5,7 @@ import {
5
5
  batchDurabilityClass,
6
6
  classifyDbWriteError,
7
7
  getProjectDb
8
- } from "./index-dvbf6fpn.js";
8
+ } from "./index-yqbnsmmv.js";
9
9
  import {
10
10
  _internals,
11
11
  canonicalRootKeyFresh
@@ -244,7 +244,7 @@ var _internals2 = {
244
244
  symlinkSync: fs2.symlinkSync
245
245
  },
246
246
  writeScopeToDisk: async (directory, taskId, files) => {
247
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-2s5h5ry7.js");
247
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-0sc90mpj.js");
248
248
  return realWrite(directory, taskId, files);
249
249
  },
250
250
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -3,7 +3,7 @@ import {
3
3
  pseudonymousRef,
4
4
  resolveLineageSalt,
5
5
  telemetry
6
- } from "./index-cravqkxf.js";
6
+ } from "./index-9dz2ee2g.js";
7
7
  import {
8
8
  atomicWriteSwarmFile
9
9
  } from "./index-nbdmdyke.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  _internals,
4
4
  resolveWorktreeIsolationConfig
5
- } from "./index-7s5cm87j.js";
5
+ } from "./index-e7yv4xw1.js";
6
6
  import {
7
7
  ApprovalEvidenceSchema,
8
8
  BaseEvidenceSchema,
@@ -44,7 +44,7 @@ import {
44
44
  loadPluginConfigWithMeta,
45
45
  loadPluginConfigWithMetaAsync,
46
46
  resetConfigAdvisoryDedup
47
- } from "./index-k2cpsr0d.js";
47
+ } from "./index-5a8q4qr5.js";
48
48
  import"./index-0mhftbpp.js";
49
49
  import"./index-a1w58b47.js";
50
50
  import {
@@ -70,7 +70,7 @@ import {
70
70
  TurboConfigSchema,
71
71
  WorktreeIsolationConfigSchema,
72
72
  resolveAutoReviewConfig
73
- } from "./index-dgpdnve5.js";
73
+ } from "./index-q2yk70rs.js";
74
74
  import {
75
75
  ALL_AGENT_NAMES,
76
76
  ALL_SUBAGENT_NAMES,
@@ -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.171.0",
24
+ version: "7.171.2",
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",
@@ -134,6 +134,7 @@ var init_package = __esm(() => {
134
134
  "repro:704": "node scripts/repro-704.mjs",
135
135
  "repro:1144": "bun scripts/repro-1144.mjs",
136
136
  "repro:1873": "bun build scripts/repro-1873-entry.ts --outdir dist-build-test/repro-1873 --target node --format esm && node scripts/repro-1873.mjs",
137
+ "repro:2487": "bun build scripts/repro-2487-parity-entry.ts --outdir dist-build-test/repro-2487 --target node --format esm && node scripts/repro-2487-parity.mjs",
137
138
  "check:events": "bun run scripts/check-event-contract.ts",
138
139
  "check:retention": "bun run scripts/check-retention-registry.ts",
139
140
  "check:core-events": "bun run scripts/check-core-events-usage.ts",
@@ -18,18 +18,18 @@ import {
18
18
  releaseCoordinationLease,
19
19
  transitionCoordinationState,
20
20
  withCoordinationTransaction
21
- } from "./index-bernkwgf.js";
21
+ } from "./index-g6nen3gt.js";
22
22
  import {
23
23
  getProjectDb,
24
24
  projectDbExists
25
- } from "./index-dvbf6fpn.js";
25
+ } from "./index-yqbnsmmv.js";
26
26
  import {
27
27
  observeDelegationLedgerPressure
28
- } from "./index-fdz0076x.js";
28
+ } from "./index-nfs78aqj.js";
29
29
  import {
30
30
  EvidenceLockTimeoutError,
31
31
  withEvidenceLock
32
- } from "./index-cex3emb2.js";
32
+ } from "./index-evxd1art.js";
33
33
  import {
34
34
  canonicalRootKeyFresh,
35
35
  sameProjectRoot
@@ -4524,7 +4524,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
4524
4524
  const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
4525
4525
  if (candidates.length === 0)
4526
4526
  return 0;
4527
- const { transferCoderSettlementToBackground } = await import("./coder-settlement-pn26zx36.js");
4527
+ const { transferCoderSettlementToBackground } = await import("./coder-settlement-9e696204.js");
4528
4528
  let transferred = 0;
4529
4529
  for (const record of candidates) {
4530
4530
  try {
@@ -12,7 +12,7 @@ import {
12
12
  PluginConfigSchema,
13
13
  init_schema,
14
14
  stripKnownSwarmPrefix
15
- } from "./index-dgpdnve5.js";
15
+ } from "./index-q2yk70rs.js";
16
16
  import {
17
17
  ALL_AGENT_NAMES,
18
18
  TOOL_NAME_SET,
@@ -11,10 +11,10 @@ import {
11
11
  } from "./index-ae75rja9.js";
12
12
  import {
13
13
  resolveKnowledgeStoreDir
14
- } from "./index-bvr0p6ns.js";
14
+ } from "./index-95e3a9en.js";
15
15
  import {
16
16
  atomicWriteFile
17
- } from "./index-cex3emb2.js";
17
+ } from "./index-evxd1art.js";
18
18
  import {
19
19
  require_proper_lockfile
20
20
  } from "./index-7g4c7s5r.js";
@@ -739,7 +739,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
739
739
  const {
740
740
  readAuthoritativeKnowledgeCounterRollups,
741
741
  effectiveRetrievalOutcomes
742
- } = await import("./knowledge-events-t3e721m2.js");
742
+ } = await import("./knowledge-events-7gpw741m.js");
743
743
  const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
744
744
  const flagIds = new Set;
745
745
  for (const e of atFloor) {
@@ -806,11 +806,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
806
806
  });
807
807
  }
808
808
  if (action === "quarantine" && toQuarantine.length > 0) {
809
- const { quarantineEntry } = await import("./knowledge-validator-nmc56pbg.js");
810
- const { KnowledgeConfigSchema } = await import("./schema-nsb0saad.js");
809
+ const { quarantineEntry } = await import("./knowledge-validator-c2z68v8v.js");
810
+ const { KnowledgeConfigSchema } = await import("./schema-r8tv8dqm.js");
811
811
  let config;
812
812
  try {
813
- const { loadPluginConfigWithMeta } = await import("./index-d7yc4ys8.js");
813
+ const { loadPluginConfigWithMeta } = await import("./index-ph94evsh.js");
814
814
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
815
815
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
816
816
  } catch {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  autoCommitDirty,
4
4
  cleanUntrackedFiles
5
- } from "./index-g93g1c5r.js";
5
+ } from "./index-mazy938h.js";
6
6
  import {
7
7
  validateSwarmPath
8
8
  } from "./index-b3pmzbh1.js";
@@ -15,10 +15,10 @@ import {
15
15
  atomicWriteFile,
16
16
  taskEvidencePath,
17
17
  withTaskEvidenceLock
18
- } from "./index-cex3emb2.js";
18
+ } from "./index-evxd1art.js";
19
19
  import {
20
20
  telemetry
21
- } from "./index-cravqkxf.js";
21
+ } from "./index-9dz2ee2g.js";
22
22
  import {
23
23
  init_git_executable,
24
24
  resolveGitExecutable
@@ -3,7 +3,7 @@ import {
3
3
  EvaluationRunV1Schema,
4
4
  GateAuditResultV1Schema,
5
5
  getProtectedEvaluationRunIds
6
- } from "./index-sz75avt3.js";
6
+ } from "./index-3jcp3zb6.js";
7
7
  import {
8
8
  readEffectiveSpecSync
9
9
  } from "./index-9br68j86.js";
@@ -23,7 +23,7 @@ import {
23
23
  readTaskEvidence,
24
24
  readTaskEvidenceRaw,
25
25
  sanitizeTaskId
26
- } from "./index-b3nw1bzp.js";
26
+ } from "./index-rrc08h4q.js";
27
27
  import {
28
28
  estimateCharsForTokens,
29
29
  estimateTokens,
@@ -58,10 +58,10 @@ import {
58
58
  replayFromLedgerWithStatus,
59
59
  takeSnapshotEvent,
60
60
  takeSnapshotWithRetry
61
- } from "./index-wp0396m1.js";
61
+ } from "./index-2ryy0cwt.js";
62
62
  import {
63
63
  appendCoreEventSync
64
- } from "./index-znf55hyt.js";
64
+ } from "./index-6k5aq7b9.js";
65
65
  import {
66
66
  derivePlanId,
67
67
  derivePlanIdentityHash,
@@ -69,21 +69,21 @@ import {
69
69
  importCoordinationOnce,
70
70
  listCoordinationStates,
71
71
  transitionCoordinationState
72
- } from "./index-bernkwgf.js";
72
+ } from "./index-g6nen3gt.js";
73
73
  import {
74
74
  DURABILITY_CLASSES,
75
75
  getProjectDb,
76
76
  projectDbExists,
77
77
  withDurabilityClass
78
- } from "./index-dvbf6fpn.js";
78
+ } from "./index-yqbnsmmv.js";
79
79
  import {
80
80
  assertProjectRoot,
81
81
  tryAcquireLock,
82
82
  withEvidenceLock
83
- } from "./index-cex3emb2.js";
83
+ } from "./index-evxd1art.js";
84
84
  import {
85
85
  emit
86
- } from "./index-cravqkxf.js";
86
+ } from "./index-9dz2ee2g.js";
87
87
  import {
88
88
  atomicWriteSwarmFileSync,
89
89
  invalidateCachedArtifact,
@@ -94,7 +94,7 @@ import {
94
94
  } from "./index-1xnse449.js";
95
95
  import {
96
96
  PlanSchema
97
- } from "./index-k2cpsr0d.js";
97
+ } from "./index-5a8q4qr5.js";
98
98
  import {
99
99
  GIT_BINARY_ENV_VAR,
100
100
  describeGitResolution,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-9fxnn8xg.js";
4
+ } from "./index-0caqxnby.js";
5
5
  import {
6
6
  findNearDuplicate,
7
7
  inferTags,
@@ -9,13 +9,13 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-yj0qrgyc.js";
12
+ } from "./index-r60cw2jt.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
- } from "./index-bvr0p6ns.js";
15
+ } from "./index-95e3a9en.js";
16
16
  import {
17
17
  atomicWriteFile
18
- } from "./index-cex3emb2.js";
18
+ } from "./index-evxd1art.js";
19
19
  import {
20
20
  require_proper_lockfile
21
21
  } from "./index-7g4c7s5r.js";
@@ -482,6 +482,17 @@ var MIGRATIONS = [
482
482
  name: "create_plan_ledger_import_hash_index",
483
483
  sql: `CREATE INDEX IF NOT EXISTS idx_plan_ledger_import_hash
484
484
  ON plan_ledger_import(source_hash)`
485
+ },
486
+ {
487
+ version: 38,
488
+ name: "add_observability_event_line_hash",
489
+ sql: "ALTER TABLE observability_event ADD COLUMN line_hash TEXT"
490
+ },
491
+ {
492
+ version: 39,
493
+ name: "create_observability_event_line_hash_index",
494
+ sql: `CREATE INDEX IF NOT EXISTS idx_obs_event_line_hash
495
+ ON observability_event(line_hash)`
485
496
  }
486
497
  ];
487
498
  var _projectDbs = new Map;
@@ -550,6 +561,27 @@ function isConcurrentMigrationApply(err) {
550
561
  return true;
551
562
  return msg.includes("already exists") && (msg.includes("table") || msg.includes("index") || msg.includes("trigger"));
552
563
  }
564
+ function isDuplicateColumn(err) {
565
+ const msg = (err instanceof Error ? err.message : String(err)).toLowerCase();
566
+ return msg.includes("duplicate column name");
567
+ }
568
+ function alterColumnAlreadyApplied(db, migration) {
569
+ const matches = [
570
+ ...migration.sql.trim().matchAll(/ALTER\s+TABLE\s+(\w+)\s+ADD\s+COLUMN\s+(\w+)/gi)
571
+ ];
572
+ if (matches.length === 0)
573
+ return false;
574
+ try {
575
+ for (const match of matches) {
576
+ const columns = db.query(`PRAGMA table_info(${match[1]})`).all();
577
+ if (!columns.some((c) => c.name === match[2]))
578
+ return false;
579
+ }
580
+ return true;
581
+ } catch {
582
+ return false;
583
+ }
584
+ }
553
585
  function isSqliteBusy(err) {
554
586
  const msg = (err instanceof Error ? err.message : String(err)).toLowerCase();
555
587
  return msg.includes("sqlite_busy") || msg.includes("database is locked") || msg.includes("database is busy");
@@ -619,6 +651,13 @@ function runProjectMigrations(db, markerDir) {
619
651
  if (isConcurrentMigrationApply(err) && currentVersionNowCoversSafely(db, migration.version)) {
620
652
  continue;
621
653
  }
654
+ if (isDuplicateColumn(err) && alterColumnAlreadyApplied(db, migration)) {
655
+ db.run("INSERT INTO schema_migrations (version, name) VALUES (?, ?)", [
656
+ migration.version,
657
+ migration.name
658
+ ]);
659
+ continue;
660
+ }
622
661
  recordMigrationFailure(db, migration, err, markerDir);
623
662
  throw new ProjectDbError("migration_failed", `swarm.db migration v${migration.version} (${migration.name}) failed: ${err instanceof Error ? err.message : String(err)}`);
624
663
  }
package/dist/cli/index.js CHANGED
@@ -13,67 +13,67 @@ import {
13
13
  readCachePackageVersion,
14
14
  resolveCommand,
15
15
  safeRealpathSync
16
- } from "./index-mvcjc28t.js";
16
+ } from "./index-f1rj1j8t.js";
17
17
  import"./index-5400m33a.js";
18
- import"./index-v3e19zzm.js";
19
- import"./index-gxbesz2h.js";
20
- import"./index-cgpwjctj.js";
21
- import"./index-7c0e181h.js";
22
- import"./index-j92fe86t.js";
23
- import"./index-sz75avt3.js";
18
+ import"./index-er6sk4e6.js";
19
+ import"./index-dsgc303n.js";
20
+ import"./index-kb66he4e.js";
21
+ import"./index-qdy4a48x.js";
22
+ import"./index-vqb65csb.js";
23
+ import"./index-3jcp3zb6.js";
24
24
  import"./index-txdagbh7.js";
25
25
  import"./index-9br68j86.js";
26
26
  import"./index-cw912re7.js";
27
- import"./index-4dpsvbdt.js";
28
- import"./index-ak3ca0nv.js";
29
- import"./index-ttyvcxxb.js";
27
+ import"./index-d79q2f8z.js";
28
+ import"./index-0yffa3np.js";
29
+ import"./index-04ph4jp2.js";
30
30
  import"./index-fyfbpz4f.js";
31
- import"./index-4m7q9hqd.js";
31
+ import"./index-7qqwx64h.js";
32
32
  import"./index-0hgmsyfp.js";
33
33
  import"./index-zsrtt42s.js";
34
- import"./index-sz9qnjd6.js";
34
+ import"./index-gq2zdxep.js";
35
35
  import"./index-fhh02gwx.js";
36
36
  import"./index-nyn01yrz.js";
37
37
  import"./index-b43rt5ph.js";
38
38
  import"./index-q7sjgr1y.js";
39
- import"./index-b3nw1bzp.js";
40
- import"./index-g93g1c5r.js";
41
- import"./index-0qa2cqyv.js";
42
- import"./index-wy4txsws.js";
39
+ import"./index-rrc08h4q.js";
40
+ import"./index-mazy938h.js";
41
+ import"./index-qcy7eg6z.js";
42
+ import"./index-9txyxbqc.js";
43
43
  import"./index-b3pmzbh1.js";
44
44
  import"./index-2s7dvzff.js";
45
- import"./index-h17tpj0y.js";
46
- import"./index-9fxnn8xg.js";
45
+ import"./index-wfh89qct.js";
46
+ import"./index-0caqxnby.js";
47
47
  import"./index-rtry5xyf.js";
48
- import"./index-7s5cm87j.js";
48
+ import"./index-e7yv4xw1.js";
49
49
  import"./index-3qf1vxtb.js";
50
50
  import"./index-n832052r.js";
51
- import"./index-003d071j.js";
52
- import"./index-wp0396m1.js";
53
- import"./index-znf55hyt.js";
54
- import"./index-br3mvbsa.js";
55
- import"./index-bernkwgf.js";
56
- import"./index-dvbf6fpn.js";
51
+ import"./index-j6rq132j.js";
52
+ import"./index-2ryy0cwt.js";
53
+ import"./index-6k5aq7b9.js";
54
+ import"./index-aa2eyfvr.js";
55
+ import"./index-g6nen3gt.js";
56
+ import"./index-yqbnsmmv.js";
57
57
  import"./index-rdm3px0g.js";
58
58
  import"./index-ry16d01s.js";
59
- import"./index-fdz0076x.js";
60
- import"./index-yj0qrgyc.js";
59
+ import"./index-nfs78aqj.js";
60
+ import"./index-r60cw2jt.js";
61
61
  import"./index-vzm6zre7.js";
62
62
  import"./index-ae75rja9.js";
63
- import"./index-bvr0p6ns.js";
64
- import"./index-cex3emb2.js";
63
+ import"./index-95e3a9en.js";
64
+ import"./index-evxd1art.js";
65
65
  import"./index-7g4c7s5r.js";
66
- import"./index-cravqkxf.js";
66
+ import"./index-9dz2ee2g.js";
67
67
  import"./index-nbdmdyke.js";
68
68
  import"./index-1xnse449.js";
69
69
  import"./index-ee6ydtfe.js";
70
- import"./index-k2cpsr0d.js";
70
+ import"./index-5a8q4qr5.js";
71
71
  import"./index-0mhftbpp.js";
72
72
  import"./index-a1w58b47.js";
73
73
  import {
74
74
  init_package,
75
75
  package_default
76
- } from "./index-dgpdnve5.js";
76
+ } from "./index-q2yk70rs.js";
77
77
  import {
78
78
  DEFAULT_AGENT_CONFIGS,
79
79
  init_constants
@@ -9,28 +9,28 @@ import {
9
9
  maybeEscalateOnViolation,
10
10
  maybeQuarantineOnContradiction,
11
11
  readRecentEscalations
12
- } from "./index-ak3ca0nv.js";
13
- import"./index-wy4txsws.js";
12
+ } from "./index-0yffa3np.js";
13
+ import"./index-9txyxbqc.js";
14
14
  import"./index-b3pmzbh1.js";
15
15
  import"./index-2s7dvzff.js";
16
- import"./index-7s5cm87j.js";
16
+ import"./index-e7yv4xw1.js";
17
17
  import"./index-3qf1vxtb.js";
18
18
  import"./index-n832052r.js";
19
- import"./index-fdz0076x.js";
20
- import"./index-yj0qrgyc.js";
19
+ import"./index-nfs78aqj.js";
20
+ import"./index-r60cw2jt.js";
21
21
  import"./index-vzm6zre7.js";
22
22
  import"./index-ae75rja9.js";
23
- import"./index-bvr0p6ns.js";
24
- import"./index-cex3emb2.js";
23
+ import"./index-95e3a9en.js";
24
+ import"./index-evxd1art.js";
25
25
  import"./index-7g4c7s5r.js";
26
- import"./index-cravqkxf.js";
26
+ import"./index-9dz2ee2g.js";
27
27
  import"./index-nbdmdyke.js";
28
28
  import"./index-1xnse449.js";
29
29
  import"./index-ee6ydtfe.js";
30
- import"./index-k2cpsr0d.js";
30
+ import"./index-5a8q4qr5.js";
31
31
  import"./index-0mhftbpp.js";
32
32
  import"./index-a1w58b47.js";
33
- import"./index-dgpdnve5.js";
33
+ import"./index-q2yk70rs.js";
34
34
  import"./index-sxt7fgcw.js";
35
35
  import"./index-bk5tah7q.js";
36
36
  import"./index-bpmtbmy9.js";