opencode-swarm 7.148.5 → 7.149.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 (82) hide show
  1. package/dist/background/candidate-contract.d.ts +1 -1
  2. package/dist/background/pending-delegations.d.ts +6 -0
  3. package/dist/background/pr-review-contract.d.ts +20 -0
  4. package/dist/cli/{config-doctor-6z7x0jnz.js → config-doctor-d3nsq1nz.js} +3 -3
  5. package/dist/cli/{core-0ph6pb2y.js → core-y9d858n6.js} +3 -3
  6. package/dist/cli/{curation-policy-fbvctttr.js → curation-policy-nck9g765.js} +6 -6
  7. package/dist/cli/{curator-pffqw3br.js → curator-f5m0hh2p.js} +32 -31
  8. package/dist/cli/{curator-llm-factory-mbsn281q.js → curator-llm-factory-mzh9ns5s.js} +32 -31
  9. package/dist/cli/{evidence-summary-service-9ajw5tpc.js → evidence-summary-service-601x7ne7.js} +15 -14
  10. package/dist/cli/{gate-evidence-wc8wzwaw.js → gate-evidence-kjs9vsx9.js} +9 -9
  11. package/dist/cli/{guardrail-explain-a8706sq1.js → guardrail-explain-j291sss5.js} +33 -32
  12. package/dist/cli/{guardrail-log-wx43bj32.js → guardrail-log-1jykfrqc.js} +6 -4
  13. package/dist/cli/{guardrail-reset-sy0vztrd.js → guardrail-reset-tr07m077.js} +32 -31
  14. package/dist/cli/{hive-promoter-jvyzykgx.js → hive-promoter-162ws6xp.js} +32 -31
  15. package/dist/cli/{index-x3d9asnz.js → index-1aztaa2s.js} +3 -3
  16. package/dist/cli/{index-c6jqkx9d.js → index-38ema5k2.js} +2 -2
  17. package/dist/cli/{index-nq4tkfpc.js → index-4sdhbxgq.js} +1 -1
  18. package/dist/cli/{index-vyg5b8ee.js → index-5gntxwxt.js} +5 -5
  19. package/dist/cli/{index-0yzt06r5.js → index-64d17yd0.js} +2 -2
  20. package/dist/cli/{index-3aev3a0c.js → index-7m8rk72d.js} +491 -369
  21. package/dist/cli/{index-vhefvcta.js → index-apwcvfjt.js} +2 -2
  22. package/dist/cli/{index-arjq717j.js → index-cna8m7my.js} +1 -1
  23. package/dist/cli/{index-59wqcatm.js → index-cqhf7fkw.js} +1 -1
  24. package/dist/cli/{index-jzz52as5.js → index-dkrz1vv5.js} +4 -4
  25. package/dist/cli/{index-kg4knw6r.js → index-dtmgt2xn.js} +11 -10
  26. package/dist/cli/{index-579qg534.js → index-eaq9b0qm.js} +1 -1
  27. package/dist/cli/{index-zhn0q7nf.js → index-ekvs3ade.js} +18 -17
  28. package/dist/cli/index-exn0ztsv.js +881 -0
  29. package/dist/cli/{index-ag9bv589.js → index-f53yyerg.js} +34 -33
  30. package/dist/cli/{index-q7ke7kwd.js → index-fc4x86sy.js} +9 -12
  31. package/dist/cli/{index-zf2vwa7y.js → index-hxbrsb40.js} +2 -2
  32. package/dist/cli/{index-k1s8gxjh.js → index-jb9tb1sd.js} +1 -1
  33. package/dist/cli/{index-haf092ak.js → index-jg2gwzvq.js} +11 -11
  34. package/dist/cli/{index-qwmrt51t.js → index-k2sm9677.js} +1 -1
  35. package/dist/cli/{index-5r2mcgpa.js → index-kgk65rde.js} +1 -1
  36. package/dist/cli/{index-vrp2zva8.js → index-m8dn0qnm.js} +1 -1
  37. package/dist/cli/{index-1w5nnyew.js → index-mdwtj4xm.js} +6 -6
  38. package/dist/cli/{index-j382eh60.js → index-n99s022c.js} +1 -1
  39. package/dist/cli/{index-yezd5ks6.js → index-pf22x0dr.js} +3 -1
  40. package/dist/cli/{index-8djgxw2w.js → index-prxrmc3b.js} +2 -2
  41. package/dist/cli/{index-kj6m9ry3.js → index-srwp8fs7.js} +4 -4
  42. package/dist/cli/{index-5zq3892p.js → index-t994f8fp.js} +4 -4
  43. package/dist/cli/{index-t25evmna.js → index-vy6q9d8j.js} +3 -2
  44. package/dist/cli/{index-ne45ew6z.js → index-xe83cwvn.js} +10 -10
  45. package/dist/cli/{index-ghbkknjz.js → index-xggpmtfx.js} +73 -42
  46. package/dist/cli/{index-qbsc2btq.js → index-yjj3s8af.js} +3 -3
  47. package/dist/cli/index.js +32 -31
  48. package/dist/cli/{knowledge-escalator-bvrtfdyb.js → knowledge-escalator-whkxxgxj.js} +14 -14
  49. package/dist/cli/{knowledge-events-rpvkevbm.js → knowledge-events-rnqzt87h.js} +12 -12
  50. package/dist/cli/{knowledge-link-spw879rs.js → knowledge-link-mzn8x0qd.js} +5 -5
  51. package/dist/cli/{knowledge-store-wjy2kshh.js → knowledge-store-7de59rnz.js} +6 -6
  52. package/dist/cli/{knowledge-validator-cq2cgfcx.js → knowledge-validator-bpk17jf4.js} +8 -8
  53. package/dist/cli/{pending-delegations-f4wvyzbf.js → pending-delegations-qzy6rnvw.js} +3 -3
  54. package/dist/cli/{pr-subscriptions-f4xw1rxy.js → pr-subscriptions-q862pvz1.js} +3 -3
  55. package/dist/cli/{runner-rk26nk58.js → runner-1aygs98c.js} +6 -6
  56. package/dist/cli/{scan-cursor-7n0zs72g.js → scan-cursor-0p51fh61.js} +7 -7
  57. package/dist/cli/{schema-e59spg93.js → schema-8g2nxhjf.js} +1 -1
  58. package/dist/cli/{scope-persistence-d75p900m.js → scope-persistence-hhkr0c46.js} +8 -10
  59. package/dist/cli/{skill-generator-c65y1h6a.js → skill-generator-pk9gcz7r.js} +16 -16
  60. package/dist/cli/{telemetry-1pnsftp0.js → telemetry-5deacb7w.js} +1 -1
  61. package/dist/cli/{workspace-snapshot-nq25j94x.js → workspace-snapshot-8269e1p9.js} +2 -2
  62. package/dist/cli/{worktree-collision-ownership-wqy7mgb3.js → worktree-collision-ownership-9v8e0dz7.js} +8 -8
  63. package/dist/cli/{worktree-isolation-ay9d58w4.js → worktree-isolation-1hwwfbdw.js} +32 -31
  64. package/dist/commands/close.d.ts +1 -0
  65. package/dist/events/core-events.d.ts +250 -0
  66. package/dist/failures/invocation-failure.d.ts +7 -0
  67. package/dist/full-auto/oversight.d.ts +5 -3
  68. package/dist/hooks/full-auto-delegation.d.ts +24 -0
  69. package/dist/hooks/full-auto-input-probe.d.ts +11 -0
  70. package/dist/hooks/pr-workflow-gate.d.ts +37 -6
  71. package/dist/hooks/steering-consumed.d.ts +12 -4
  72. package/dist/index.js +598 -613
  73. package/dist/observability/catalog.d.ts +9 -7
  74. package/dist/services/session-reflection.d.ts +7 -0
  75. package/dist/services/spec-drift-recovery.d.ts +9 -2
  76. package/dist/state.d.ts +10 -0
  77. package/dist/telemetry.d.ts +24 -1
  78. package/dist/tools/dispatch-lanes.d.ts +50 -1
  79. package/dist/tools/write-pr-review-artifact.d.ts +2 -0
  80. package/package.json +3 -1
  81. package/dist/cli/{curator-drift-fv4rttf4.js → curator-drift-2h1d2fnq.js} +1 -1
  82. package/dist/cli/{index-g8wwj0sz.js → index-vnn7qq8c.js} +3 -3
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-0yzt06r5.js";
4
+ } from "./index-64d17yd0.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-579qg534.js";
7
+ } from "./index-eaq9b0qm.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -85,48 +85,52 @@ import {
85
85
  handleWriteRetroCommand,
86
86
  normalizeSwarmCommandInput,
87
87
  resolveCommand
88
- } from "./index-3aev3a0c.js";
89
- import"./index-j382eh60.js";
90
- import"./index-arjq717j.js";
91
- import"./index-5r2mcgpa.js";
92
- import"./index-zhn0q7nf.js";
93
- import"./index-8djgxw2w.js";
88
+ } from "./index-7m8rk72d.js";
89
+ import"./index-n99s022c.js";
90
+ import"./index-cna8m7my.js";
91
+ import"./index-kgk65rde.js";
92
+ import"./index-ekvs3ade.js";
93
+ import"./index-prxrmc3b.js";
94
94
  import"./index-134d35c1.js";
95
95
  import"./index-nj6rmyeh.js";
96
96
  import"./index-y8552snf.js";
97
- import"./index-vyg5b8ee.js";
98
- import"./index-zf2vwa7y.js";
97
+ import"./index-5gntxwxt.js";
98
+ import"./index-hxbrsb40.js";
99
99
  import"./index-70ha9e09.js";
100
100
  import"./index-c8s9a3zh.js";
101
101
  import"./index-9ss2m4rs.js";
102
- import"./index-g8wwj0sz.js";
103
- import"./index-qwmrt51t.js";
104
- import"./index-jzz52as5.js";
105
- import"./index-kj6m9ry3.js";
106
- import"./index-nq4tkfpc.js";
102
+ import"./index-vnn7qq8c.js";
103
+ import"./index-k2sm9677.js";
104
+ import"./index-dkrz1vv5.js";
105
+ import"./index-srwp8fs7.js";
106
+ import"./index-4sdhbxgq.js";
107
107
  import"./index-rtry5xyf.js";
108
108
  import"./index-zsrtt42s.js";
109
- import"./index-t25evmna.js";
109
+ import"./index-vy6q9d8j.js";
110
110
  import"./index-fxvgaeq4.js";
111
- import"./index-haf092ak.js";
112
- import"./index-5zq3892p.js";
113
- import"./index-q7ke7kwd.js";
114
- import"./index-x3d9asnz.js";
111
+ import"./index-jg2gwzvq.js";
112
+ import"./index-t994f8fp.js";
113
+ import"./index-fc4x86sy.js";
114
+ import"./index-1aztaa2s.js";
115
+ import"./index-exn0ztsv.js";
115
116
  import"./index-556ja8an.js";
116
117
  import"./index-b43rt5ph.js";
117
118
  import"./index-q7sjgr1y.js";
118
119
  import"./index-3g0xk6tk.js";
119
120
  import"./index-85gkedsf.js";
120
- import"./index-1w5nnyew.js";
121
- import"./index-ne45ew6z.js";
122
- import"./index-c6jqkx9d.js";
121
+ import"./index-mdwtj4xm.js";
122
+ import"./index-xe83cwvn.js";
123
+ import"./index-38ema5k2.js";
123
124
  import"./index-gprxjmm7.js";
124
125
  import"./index-n832052r.js";
125
- import"./index-59wqcatm.js";
126
+ import"./index-4cgee5vh.js";
127
+ import"./index-z6xqpmqg.js";
128
+ import"./index-r3mvsbtq.js";
129
+ import"./index-cqhf7fkw.js";
126
130
  import {
127
131
  init_schema,
128
132
  stripKnownSwarmPrefix
129
- } from "./index-yezd5ks6.js";
133
+ } from "./index-pf22x0dr.js";
130
134
  import {
131
135
  AGENT_TOOL_MAP,
132
136
  ORCHESTRATOR_NAME,
@@ -134,17 +138,14 @@ import {
134
138
  } from "./index-cpg98bh1.js";
135
139
  import"./index-9e6fdz2h.js";
136
140
  import"./index-4rhhvd1a.js";
137
- import"./index-4cgee5vh.js";
138
- import"./index-z6xqpmqg.js";
139
- import"./index-r3mvsbtq.js";
140
141
  import"./index-zjygnfay.js";
141
142
  import"./index-ae75rja9.js";
142
- import"./index-k1s8gxjh.js";
143
- import"./index-vhefvcta.js";
143
+ import"./index-jb9tb1sd.js";
144
+ import"./index-apwcvfjt.js";
144
145
  import"./index-bk5tah7q.js";
145
- import"./index-kg4knw6r.js";
146
- import"./index-vrp2zva8.js";
147
- import"./index-ghbkknjz.js";
146
+ import"./index-dtmgt2xn.js";
147
+ import"./index-m8dn0qnm.js";
148
+ import"./index-xggpmtfx.js";
148
149
  import"./index-7g4c7s5r.js";
149
150
  import"./index-bpmtbmy9.js";
150
151
  import"./index-ed5ykebp.js";
@@ -2,23 +2,23 @@
2
2
  import {
3
3
  computePlanStructureHash,
4
4
  derivePlanId
5
- } from "./index-x3d9asnz.js";
5
+ } from "./index-1aztaa2s.js";
6
+ import {
7
+ appendCoreEventSync
8
+ } from "./index-exn0ztsv.js";
6
9
  import {
7
10
  unsafePathTextReason
8
11
  } from "./index-556ja8an.js";
9
12
  import {
10
13
  PlanSchema
11
- } from "./index-59wqcatm.js";
12
- import {
13
- validateSwarmPath
14
- } from "./index-4cgee5vh.js";
14
+ } from "./index-cqhf7fkw.js";
15
15
  import {
16
16
  atomicWriteSwarmFile,
17
17
  atomicWriteSwarmFileSync
18
- } from "./index-kg4knw6r.js";
18
+ } from "./index-dtmgt2xn.js";
19
19
  import {
20
20
  assertProjectRoot
21
- } from "./index-vrp2zva8.js";
21
+ } from "./index-m8dn0qnm.js";
22
22
  import {
23
23
  require_proper_lockfile
24
24
  } from "./index-7g4c7s5r.js";
@@ -1444,9 +1444,7 @@ function readCurrentPlan(directory) {
1444
1444
  var SCOPE_BINDING_AUTO_REVIVE_WINDOW_MS = 24 * 60 * 60 * 1000;
1445
1445
  function appendScopeBindingRevivalEvent(workspace, revived) {
1446
1446
  try {
1447
- const eventsPath = validateSwarmPath(workspace, "events.jsonl");
1448
- fs2.mkdirSync(path2.dirname(eventsPath), { recursive: true });
1449
- fs2.appendFileSync(eventsPath, `${JSON.stringify({
1447
+ appendCoreEventSync(workspace, {
1450
1448
  type: "scope_binding_auto_recovered",
1451
1449
  timestamp: new Date().toISOString(),
1452
1450
  taskId: revived.taskId,
@@ -1454,8 +1452,7 @@ function appendScopeBindingRevivalEvent(workspace, revived) {
1454
1452
  generationId: revived.generationId,
1455
1453
  revision: revived.revision,
1456
1454
  expiresAt: new Date(revived.expiresAt).toISOString()
1457
- })}
1458
- `, "utf-8");
1455
+ });
1459
1456
  } catch {}
1460
1457
  }
1461
1458
  function attemptIdleScopeBindingRevival(directory, resolution) {
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-1w5nnyew.js";
5
+ } from "./index-mdwtj4xm.js";
6
6
  import {
7
7
  init_git_executable,
8
8
  resolveGitExecutableAsync
9
9
  } from "./index-9e6fdz2h.js";
10
10
  import {
11
11
  resolveKnowledgeStoreDir
12
- } from "./index-k1s8gxjh.js";
12
+ } from "./index-jb9tb1sd.js";
13
13
  import {
14
14
  init_knowledge_types,
15
15
  isActiveStatus
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  atomicWriteFile
4
- } from "./index-vhefvcta.js";
4
+ } from "./index-apwcvfjt.js";
5
5
  import {
6
6
  init_logger,
7
7
  warn
@@ -2,11 +2,18 @@
2
2
  import {
3
3
  autoCommitDirty,
4
4
  cleanUntrackedFiles
5
- } from "./index-5zq3892p.js";
5
+ } from "./index-t994f8fp.js";
6
6
  import {
7
7
  isPathWithinDeclaredScope,
8
8
  unsafePathTextReason
9
9
  } from "./index-556ja8an.js";
10
+ import {
11
+ validateSwarmPath
12
+ } from "./index-4cgee5vh.js";
13
+ import {
14
+ bunSpawn,
15
+ classifySpawnFailure
16
+ } from "./index-r3mvsbtq.js";
10
17
  import {
11
18
  init_git_executable,
12
19
  resolveGitExecutable
@@ -15,24 +22,17 @@ import {
15
22
  advisoryWarn,
16
23
  init_warning_buffer
17
24
  } from "./index-4rhhvd1a.js";
18
- import {
19
- validateSwarmPath
20
- } from "./index-4cgee5vh.js";
21
- import {
22
- bunSpawn,
23
- classifySpawnFailure
24
- } from "./index-r3mvsbtq.js";
25
25
  import {
26
26
  atomicWriteFile,
27
27
  taskEvidencePath,
28
28
  withTaskEvidenceLock
29
- } from "./index-vhefvcta.js";
29
+ } from "./index-apwcvfjt.js";
30
30
  import {
31
31
  assertProjectRoot
32
- } from "./index-vrp2zva8.js";
32
+ } from "./index-m8dn0qnm.js";
33
33
  import {
34
34
  telemetry
35
- } from "./index-ghbkknjz.js";
35
+ } from "./index-xggpmtfx.js";
36
36
  import {
37
37
  exports_external,
38
38
  init_zod
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-4cgee5vh.js";
5
5
  import {
6
6
  withEvidenceLock
7
- } from "./index-vrp2zva8.js";
7
+ } from "./index-m8dn0qnm.js";
8
8
  import {
9
9
  exports_external,
10
10
  init_zod
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  stripKnownSwarmPrefix
9
- } from "./index-yezd5ks6.js";
9
+ } from "./index-pf22x0dr.js";
10
10
  import {
11
11
  ALL_AGENT_NAMES,
12
12
  init_constants
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  emit
4
- } from "./index-ghbkknjz.js";
4
+ } from "./index-xggpmtfx.js";
5
5
  import {
6
6
  require_proper_lockfile
7
7
  } from "./index-7g4c7s5r.js";
@@ -6,10 +6,10 @@ import {
6
6
  } from "./index-ae75rja9.js";
7
7
  import {
8
8
  resolveKnowledgeStoreDir
9
- } from "./index-k1s8gxjh.js";
9
+ } from "./index-jb9tb1sd.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-vhefvcta.js";
12
+ } from "./index-apwcvfjt.js";
13
13
  import {
14
14
  init_knowledge_types,
15
15
  isActiveStatus
@@ -713,7 +713,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
713
713
  const {
714
714
  readAuthoritativeKnowledgeCounterRollups,
715
715
  effectiveRetrievalOutcomes
716
- } = await import("./knowledge-events-rpvkevbm.js");
716
+ } = await import("./knowledge-events-rnqzt87h.js");
717
717
  const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
718
718
  const flagIds = new Set;
719
719
  for (const e of atFloor) {
@@ -780,11 +780,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
780
780
  });
781
781
  }
782
782
  if (action === "quarantine" && toQuarantine.length > 0) {
783
- const { quarantineEntry } = await import("./knowledge-validator-cq2cgfcx.js");
784
- const { KnowledgeConfigSchema } = await import("./schema-e59spg93.js");
783
+ const { quarantineEntry } = await import("./knowledge-validator-bpk17jf4.js");
784
+ const { KnowledgeConfigSchema } = await import("./schema-8g2nxhjf.js");
785
785
  let config;
786
786
  try {
787
- const { loadPluginConfigWithMeta } = await import("./index-qbsc2btq.js");
787
+ const { loadPluginConfigWithMeta } = await import("./index-yjj3s8af.js");
788
788
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
789
789
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
790
790
  } catch {
@@ -9,7 +9,7 @@ import {
9
9
  readEvaluationRun,
10
10
  saveEvaluationRun,
11
11
  saveTaskSetSnapshot
12
- } from "./index-8djgxw2w.js";
12
+ } from "./index-prxrmc3b.js";
13
13
  import {
14
14
  canonicalHash,
15
15
  computeCandidateInputContentHash,
@@ -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.148.5",
24
+ version: "7.149.1",
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",
@@ -130,10 +130,12 @@ var init_package = __esm(() => {
130
130
  "repro:1873": "bun build scripts/repro-1873-entry.ts --outdir dist-build-test/repro-1873 --target node --format esm && node scripts/repro-1873.mjs",
131
131
  "check:events": "bun run scripts/check-event-contract.ts",
132
132
  "check:retention": "bun run scripts/check-retention-registry.ts",
133
+ "check:core-events": "bun run scripts/check-core-events-usage.ts",
133
134
  "check:test-file-cap": "bun run scripts/check-test-file-cap.ts",
134
135
  "check:pending-fragment": "bun run scripts/check-pending-fragment.ts",
135
136
  "check:gate-portability": "bun run scripts/check-gate-portability.ts",
136
137
  "check:bare-spawn": "bun run scripts/check-bare-executable-spawn.ts",
138
+ "check:error-channel-discard": "bun run scripts/check-error-channel-discard.ts",
137
139
  "check:memory-recall": "bun run scripts/memory-recall-regression.ts"
138
140
  },
139
141
  dependencies: {
@@ -9,11 +9,11 @@ import {
9
9
  } from "./index-y8552snf.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-vhefvcta.js";
12
+ } from "./index-apwcvfjt.js";
13
13
  import {
14
14
  assertProjectRoot,
15
15
  withEvidenceLock
16
- } from "./index-vrp2zva8.js";
16
+ } from "./index-m8dn0qnm.js";
17
17
  import {
18
18
  exports_external,
19
19
  init_zod
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-nq4tkfpc.js";
4
+ } from "./index-4sdhbxgq.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-1w5nnyew.js";
12
+ } from "./index-mdwtj4xm.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
- } from "./index-k1s8gxjh.js";
15
+ } from "./index-jb9tb1sd.js";
16
16
  import {
17
17
  atomicWriteFile
18
- } from "./index-vhefvcta.js";
18
+ } from "./index-apwcvfjt.js";
19
19
  import {
20
20
  require_proper_lockfile
21
21
  } from "./index-7g4c7s5r.js";
@@ -1,4 +1,7 @@
1
1
  // @bun
2
+ import {
3
+ bunSpawn
4
+ } from "./index-r3mvsbtq.js";
2
5
  import {
3
6
  SWARM_WORKTREE_DIR_NAME,
4
7
  init_constants
@@ -11,9 +14,6 @@ import {
11
14
  advisoryWarn,
12
15
  init_warning_buffer
13
16
  } from "./index-4rhhvd1a.js";
14
- import {
15
- bunSpawn
16
- } from "./index-r3mvsbtq.js";
17
17
  import {
18
18
  log
19
19
  } from "./index-zgwm4ryv.js";
@@ -92,7 +92,7 @@ var _internals = {
92
92
  symlinkSync: fs.symlinkSync
93
93
  },
94
94
  writeScopeToDisk: async (directory, taskId, files) => {
95
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-d75p900m.js");
95
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-hhkr0c46.js");
96
96
  return realWrite(directory, taskId, files);
97
97
  },
98
98
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  EvidenceLockTimeoutError,
10
10
  withEvidenceLock
11
- } from "./index-vrp2zva8.js";
11
+ } from "./index-m8dn0qnm.js";
12
12
  import {
13
13
  exports_external,
14
14
  init_zod
@@ -441,6 +441,7 @@ var ResultSchema = exports_external.object({
441
441
  outputArtifactError: exports_external.string().optional(),
442
442
  transcriptIncomplete: exports_external.boolean().optional(),
443
443
  messageCount: exports_external.number().optional(),
444
+ workflowLaneFailureClass: exports_external.enum(["contract", "resource", "deadline"]).optional(),
444
445
  salvagedWorkflowLanes: exports_external.array(exports_external.string()).optional(),
445
446
  salvagedWorkflowLaneRecoveries: exports_external.array(WorkflowLaneRecoverySchema).optional()
446
447
  }).strict();
@@ -1697,7 +1698,7 @@ function sameTerminalEvent(left, right) {
1697
1698
  return left.eventId === right.eventId && left.status === right.status && sameRetainedResult(left.result, right.result);
1698
1699
  }
1699
1700
  function sameRetainedResult(left, right) {
1700
- return left.chars === right.chars && left.truncated === right.truncated && left.digest === right.digest && left.outputRef === right.outputRef && left.outputPreviewChars === right.outputPreviewChars && left.outputDegraded === right.outputDegraded && left.outputArtifactError === right.outputArtifactError && left.transcriptIncomplete === right.transcriptIncomplete && left.messageCount === right.messageCount && sameJson(left.salvagedWorkflowLanes, right.salvagedWorkflowLanes) && sameJson(left.salvagedWorkflowLaneRecoveries, right.salvagedWorkflowLaneRecoveries);
1701
+ return left.chars === right.chars && left.truncated === right.truncated && left.digest === right.digest && left.outputRef === right.outputRef && left.outputPreviewChars === right.outputPreviewChars && left.outputDegraded === right.outputDegraded && left.outputArtifactError === right.outputArtifactError && left.transcriptIncomplete === right.transcriptIncomplete && left.messageCount === right.messageCount && left.workflowLaneFailureClass === right.workflowLaneFailureClass && sameJson(left.salvagedWorkflowLanes, right.salvagedWorkflowLanes) && sameJson(left.salvagedWorkflowLaneRecoveries, right.salvagedWorkflowLaneRecoveries);
1701
1702
  }
1702
1703
  function settlementProvenanceFor(record) {
1703
1704
  const baseline = record.taskChangeContext?.baseline;
@@ -1,29 +1,29 @@
1
1
  // @bun
2
+ import {
3
+ validateSwarmPath
4
+ } from "./index-4cgee5vh.js";
2
5
  import {
3
6
  loadPluginConfigWithMeta
4
- } from "./index-59wqcatm.js";
7
+ } from "./index-cqhf7fkw.js";
5
8
  import {
6
9
  KnowledgeConfigSchema,
7
10
  init_schema
8
- } from "./index-yezd5ks6.js";
9
- import {
10
- validateSwarmPath
11
- } from "./index-4cgee5vh.js";
11
+ } from "./index-pf22x0dr.js";
12
12
  import {
13
13
  resolveHiveEventsPath
14
14
  } from "./index-ae75rja9.js";
15
15
  import {
16
16
  resolveKnowledgeStoreDir
17
- } from "./index-k1s8gxjh.js";
17
+ } from "./index-jb9tb1sd.js";
18
18
  import {
19
19
  atomicWriteFile
20
- } from "./index-vhefvcta.js";
20
+ } from "./index-apwcvfjt.js";
21
21
  import {
22
22
  assertProjectRoot
23
- } from "./index-vrp2zva8.js";
23
+ } from "./index-m8dn0qnm.js";
24
24
  import {
25
25
  emit
26
- } from "./index-ghbkknjz.js";
26
+ } from "./index-xggpmtfx.js";
27
27
  import {
28
28
  require_proper_lockfile
29
29
  } from "./index-7g4c7s5r.js";
@@ -2693,7 +2693,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
2693
2693
  }
2694
2694
  let bumps = 0;
2695
2695
  if (deltas.length > 0) {
2696
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-wjy2kshh.js");
2696
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-7de59rnz.js");
2697
2697
  bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
2698
2698
  }
2699
2699
  return {