opencode-swarm 7.168.0 → 7.169.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/.opencode/skills/swarm-pr-feedback/SKILL.md +11 -11
  2. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  3. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  4. package/dist/cli/{coder-settlement-a35acvj1.js → coder-settlement-fd6ba876.js} +12 -12
  5. package/dist/cli/{config-doctor-9csx775x.js → config-doctor-zeppqwwx.js} +2 -2
  6. package/dist/cli/{core-agk5s7dm.js → core-fj1afc31.js} +5 -2
  7. package/dist/cli/{curation-policy-mgwv8h2k.js → curation-policy-k74qz9ms.js} +5 -5
  8. package/dist/cli/{curator-drift-k0zrnm09.js → curator-drift-3ssjr0nx.js} +5 -5
  9. package/dist/cli/{curator-2fcagjyk.js → curator-emftndv0.js} +39 -38
  10. package/dist/cli/curator-llm-factory-4t773tmz.js +72 -0
  11. package/dist/cli/{dispatch-8ks9dyk5.js → dispatch-hwwj3qrb.js} +2 -2
  12. package/dist/cli/{evidence-summary-service-4s6cje60.js → evidence-summary-service-51b69jc3.js} +16 -16
  13. package/dist/cli/{gate-evidence-saja4dan.js → gate-evidence-53s161wb.js} +7 -7
  14. package/dist/cli/guardrail-explain-mhx8gt8q.js +73 -0
  15. package/dist/cli/{guardrail-log-0h24spq0.js → guardrail-log-xg6hrdsq.js} +8 -8
  16. package/dist/cli/{guardrail-reset-cwbe47k5.js → guardrail-reset-fgv5kt5x.js} +39 -38
  17. package/dist/cli/{hive-promoter-esxtcvr1.js → hive-promoter-41zygtgx.js} +39 -38
  18. package/dist/cli/index-0hgmsyfp.js +92 -0
  19. package/dist/cli/{index-nsyxj57e.js → index-0vgs5r39.js} +8 -8
  20. package/dist/cli/{index-54w1564x.js → index-1cbjemgh.js} +2 -2
  21. package/dist/cli/{index-p612v1mv.js → index-2s7dvzff.js} +200 -51
  22. package/dist/cli/{index-3dywbkyr.js → index-2znfa537.js} +4 -4
  23. package/dist/cli/{index-seetnhpx.js → index-3bfzpzsb.js} +1 -1
  24. package/dist/cli/{index-yevn4jpe.js → index-3zcds757.js} +3101 -1918
  25. package/dist/cli/{index-d5qf7hvh.js → index-5400m33a.js} +1 -1
  26. package/dist/cli/{index-mr0wn36f.js → index-55fkkjec.js} +5 -5
  27. package/dist/cli/{index-qwsh0h2g.js → index-5qt9yf5w.js} +4 -4
  28. package/dist/cli/{index-30h1pk05.js → index-5reh1bjz.js} +3 -3
  29. package/dist/cli/{index-j950hqmq.js → index-76ng6vmq.js} +7 -7
  30. package/dist/cli/{index-qhey6vc3.js → index-7h01bkm6.js} +2 -2
  31. package/dist/cli/{index-yv76j77m.js → index-83m0y4cj.js} +6 -6
  32. package/dist/cli/{index-ddr97ram.js → index-8x9keek6.js} +41 -40
  33. package/dist/cli/{index-8ybjqg51.js → index-9ttqbhvw.js} +1 -1
  34. package/dist/cli/{index-kear8gb7.js → index-b3pmzbh1.js} +2 -2
  35. package/dist/cli/{index-h439y187.js → index-bernkwgf.js} +1 -1
  36. package/dist/cli/{index-m35hybf0.js → index-bm5xrfnx.js} +1 -1
  37. package/dist/cli/{index-pyf517sz.js → index-br3mvbsa.js} +2 -2
  38. package/dist/cli/{index-4r5pmtvk.js → index-bx1wgn3a.js} +4 -4
  39. package/dist/cli/{index-64phnth4.js → index-c7kr7tnk.js} +4 -4
  40. package/dist/cli/{index-nwwk3dej.js → index-cgpwjctj.js} +1 -1
  41. package/dist/cli/{index-s0d5xter.js → index-dd48vt27.js} +3 -3
  42. package/dist/cli/{index-wst6n478.js → index-dvbf6fpn.js} +1 -1
  43. package/dist/cli/{index-rxcgrgkc.js → index-e4dxf5cr.js} +39 -38
  44. package/dist/cli/{index-cyenn3pf.js → index-egkc2bpv.js} +36 -1
  45. package/dist/cli/{index-h0e2e3h1.js → index-exf0j569.js} +1 -1
  46. package/dist/cli/{index-a8xbvsse.js → index-fgp96k3r.js} +2 -2
  47. package/dist/cli/{index-5zqakgp4.js → index-fhh02gwx.js} +3 -3
  48. package/dist/cli/{index-dfyv3xkd.js → index-gfbggp8k.js} +9 -9
  49. package/dist/cli/{index-nprngf8p.js → index-ksybszed.js} +7 -7
  50. package/dist/cli/{index-v3xc4sde.js → index-nbdmdyke.js} +2 -1
  51. package/dist/cli/{index-z6qreakh.js → index-nprdr0sm.js} +6 -4
  52. package/dist/cli/{index-wnzxcr0z.js → index-nwv3e3kc.js} +2 -2
  53. package/dist/cli/{index-bvqqwx84.js → index-nyn01yrz.js} +2 -2
  54. package/dist/cli/{index-an8b5gda.js → index-p6xsgk4r.js} +7 -7
  55. package/dist/cli/{index-x7k3dps5.js → index-s96dpjsk.js} +2 -2
  56. package/dist/cli/{index-ze520xw1.js → index-sb1s03y9.js} +8 -8
  57. package/dist/cli/{index-00zx94vn.js → index-sxcfszbe.js} +5 -5
  58. package/dist/cli/{index-8f0kscpg.js → index-wwr67xc0.js} +197 -35
  59. package/dist/cli/{index-gp9yzr1v.js → index-xnpjwc4h.js} +1 -1
  60. package/dist/cli/{index-exatbqwj.js → index-yj24ny5k.js} +26 -4
  61. package/dist/cli/{index-21ree67h.js → index-zapc8vj4.js} +14 -14
  62. package/dist/cli/index.js +39 -38
  63. package/dist/cli/{knowledge-escalator-b2tf3sd1.js → knowledge-escalator-07s44av0.js} +13 -13
  64. package/dist/cli/{knowledge-events-bgs2kxe0.js → knowledge-events-j2n1569p.js} +11 -11
  65. package/dist/cli/{knowledge-link-dr3xnwyd.js → knowledge-link-rkxfrmhm.js} +4 -4
  66. package/dist/cli/{knowledge-store-stbmb1b9.js → knowledge-store-85metj89.js} +5 -5
  67. package/dist/cli/{knowledge-validator-zykgnsag.js → knowledge-validator-63k1xzcc.js} +7 -7
  68. package/dist/cli/{pending-delegations-n5qavj20.js → pending-delegations-dckmjymn.js} +12 -12
  69. package/dist/cli/{pr-subscriptions-gnvmyrng.js → pr-subscriptions-pyh73me6.js} +12 -12
  70. package/dist/cli/{pr-workflow-gate-cf3ybrws.js → pr-workflow-gate-k1r4rjw4.js} +39 -38
  71. package/dist/cli/{runner-k0ycgv8x.js → runner-1dwrgyyr.js} +6 -6
  72. package/dist/cli/{scan-cursor-b3mcrx23.js → scan-cursor-k6egg4n0.js} +6 -6
  73. package/dist/cli/{schema-08049cjb.js → schema-vdrtpggt.js} +5 -1
  74. package/dist/cli/{scope-persistence-a493gv51.js → scope-persistence-h1mmww19.js} +14 -14
  75. package/dist/cli/{skill-generator-2qqzkdpv.js → skill-generator-pmn6gmvk.js} +15 -15
  76. package/dist/cli/{snapshot-coordination-init-8yt8p7q0.js → snapshot-coordination-init-rspykgd0.js} +39 -38
  77. package/dist/cli/{telemetry-2wzapf11.js → telemetry-fdtaemnv.js} +1 -1
  78. package/dist/cli/{workspace-snapshot-rkgxhj9b.js → workspace-snapshot-hkz2wt1c.js} +4 -4
  79. package/dist/cli/{worktree-collision-ownership-xttafc4h.js → worktree-collision-ownership-x84dzzzc.js} +18 -104
  80. package/dist/cli/{worktree-isolation-e5q5rewk.js → worktree-isolation-nw9pakkx.js} +39 -38
  81. package/dist/commands/destructive-purge.d.ts +85 -0
  82. package/dist/commands/registry.d.ts +2 -2
  83. package/dist/commands/reset-session.d.ts +5 -1
  84. package/dist/config/constants.d.ts +4 -1
  85. package/dist/config/lane-context.d.ts +19 -0
  86. package/dist/config/schema.d.ts +77 -0
  87. package/dist/evaluation/index.d.ts +1 -0
  88. package/dist/evaluation/retrieval-quality.d.ts +116 -0
  89. package/dist/failures/invocation-failure.d.ts +23 -4
  90. package/dist/hooks/init-orphan-recovery.d.ts +7 -0
  91. package/dist/hooks/pr-workflow-gate.d.ts +8 -2
  92. package/dist/index.js +596 -590
  93. package/dist/memory/embeddings/reranker.d.ts +13 -2
  94. package/dist/memory/evaluation.d.ts +99 -0
  95. package/dist/memory/heldout-evaluation-corpus.d.ts +51 -0
  96. package/dist/memory/index.d.ts +5 -2
  97. package/dist/memory/sqlite-provider.d.ts +35 -1
  98. package/dist/memory/types.d.ts +14 -0
  99. package/dist/observability/otel-mapping.d.ts +5 -5
  100. package/dist/observability/otlp-exporter.d.ts +80 -0
  101. package/dist/parallel/lane-owners.d.ts +76 -0
  102. package/dist/tools/repo-graph/query.d.ts +6 -1
  103. package/dist/tools/repo-graph/types.d.ts +13 -4
  104. package/dist/utils/bun-compat.d.ts +20 -0
  105. package/dist/utils/gitignore-warning.d.ts +5 -2
  106. package/dist/worktree/base-migration.d.ts +55 -0
  107. package/dist/worktree/core.d.ts +15 -6
  108. package/dist/worktree/ownership.d.ts +66 -0
  109. package/opencode-swarm.schema.json +97 -0
  110. package/package.json +4 -2
  111. package/tests/fixtures/memory-recall-heldout/manifest.json +311 -0
  112. package/tests/fixtures/memory-recall-heldout/sources/bash.sh +1 -0
  113. package/tests/fixtures/memory-recall-heldout/sources/c.c +1 -0
  114. package/tests/fixtures/memory-recall-heldout/sources/cpp.cpp +1 -0
  115. package/tests/fixtures/memory-recall-heldout/sources/csharp.cs +1 -0
  116. package/tests/fixtures/memory-recall-heldout/sources/css.css +3 -0
  117. package/tests/fixtures/memory-recall-heldout/sources/dart.dart +1 -0
  118. package/tests/fixtures/memory-recall-heldout/sources/go.go +3 -0
  119. package/tests/fixtures/memory-recall-heldout/sources/ini.ini +2 -0
  120. package/tests/fixtures/memory-recall-heldout/sources/java.java +1 -0
  121. package/tests/fixtures/memory-recall-heldout/sources/javascript.js +3 -0
  122. package/tests/fixtures/memory-recall-heldout/sources/kotlin.kt +1 -0
  123. package/tests/fixtures/memory-recall-heldout/sources/php.php +1 -0
  124. package/tests/fixtures/memory-recall-heldout/sources/powershell.ps1 +1 -0
  125. package/tests/fixtures/memory-recall-heldout/sources/python.py +2 -0
  126. package/tests/fixtures/memory-recall-heldout/sources/regex.regex +1 -0
  127. package/tests/fixtures/memory-recall-heldout/sources/ruby.rb +3 -0
  128. package/tests/fixtures/memory-recall-heldout/sources/rust.rs +1 -0
  129. package/tests/fixtures/memory-recall-heldout/sources/swift.swift +1 -0
  130. package/tests/fixtures/memory-recall-heldout/sources/tsx.tsx +3 -0
  131. package/tests/fixtures/memory-recall-heldout/sources/typescript.ts +3 -0
  132. package/dist/cli/curator-llm-factory-qaxmyy46.js +0 -71
  133. package/dist/cli/guardrail-explain-z41q6sf0.js +0 -72
@@ -1,7 +1,16 @@
1
1
  // @bun
2
+ import {
3
+ validateSwarmPath
4
+ } from "./index-b3pmzbh1.js";
2
5
  import {
3
6
  bunSpawn
4
- } from "./index-p612v1mv.js";
7
+ } from "./index-2s7dvzff.js";
8
+ import {
9
+ atomicWriteSwarmFileSync
10
+ } from "./index-nbdmdyke.js";
11
+ import {
12
+ canonicalRootKeyFresh
13
+ } from "./index-1xnse449.js";
5
14
  import {
6
15
  init_git_executable,
7
16
  resolveGitExecutable
@@ -15,6 +24,7 @@ import {
15
24
  init_constants
16
25
  } from "./index-sxt7fgcw.js";
17
26
  import {
27
+ init_logger,
18
28
  log
19
29
  } from "./index-zgwm4ryv.js";
20
30
  import {
@@ -23,7 +33,7 @@ import {
23
33
 
24
34
  // src/worktree/core.ts
25
35
  init_constants();
26
- import * as fs from "fs";
36
+ import * as fs2 from "fs";
27
37
  import * as fsPromises from "fs/promises";
28
38
  import * as os from "os";
29
39
  import * as path from "path";
@@ -68,10 +78,152 @@ function matchSwarmLaneBranch(branch) {
68
78
  return;
69
79
  }
70
80
 
81
+ // src/parallel/lane-owners.ts
82
+ import * as fs from "fs";
83
+ init_logger();
84
+ var LIVE_LANE_OWNERS_PATH = "live-lane-owners.json";
85
+ var MAX_LIVE_LANE_OWNERS = 256;
86
+ var MAX_LIVE_LANE_OWNERS_BYTES = 128 * 1024;
87
+ var LIVE_LANE_OWNER_CLAIM_WINDOW_MS = 24 * 60 * 60 * 1000;
88
+ var _internals = {
89
+ readFileSync: fs.readFileSync,
90
+ rmSync: fs.rmSync.bind(fs),
91
+ statSync: fs.statSync,
92
+ atomicWriteSwarmFileSync,
93
+ now: () => Date.now(),
94
+ kill: (pid, signal) => {
95
+ process.kill(pid, signal);
96
+ return true;
97
+ },
98
+ process: { pid: process.pid }
99
+ };
100
+ function storePath(directory) {
101
+ return validateSwarmPath(directory, LIVE_LANE_OWNERS_PATH);
102
+ }
103
+ function isLiveLaneOwnerEntry(value) {
104
+ if (!value || typeof value !== "object" || Array.isArray(value))
105
+ return false;
106
+ const c = value;
107
+ return typeof c.lanePath === "string" && c.lanePath.length > 0 && typeof c.branchName === "string" && typeof c.sessionId === "string" && typeof c.taskId === "string" && typeof c.ownerPid === "number" && Number.isInteger(c.ownerPid) && c.ownerPid > 0 && typeof c.startedAt === "number" && Number.isFinite(c.startedAt);
108
+ }
109
+ function readStore(directory) {
110
+ try {
111
+ const raw = _internals.readFileSync(storePath(directory), "utf-8");
112
+ if (raw.length > MAX_LIVE_LANE_OWNERS_BYTES) {
113
+ return { schemaVersion: 1, entries: [] };
114
+ }
115
+ const parsed = JSON.parse(raw);
116
+ if (!parsed || parsed.schemaVersion !== 1 || !Array.isArray(parsed.entries)) {
117
+ return { schemaVersion: 1, entries: [] };
118
+ }
119
+ return {
120
+ schemaVersion: 1,
121
+ entries: parsed.entries.filter(isLiveLaneOwnerEntry)
122
+ };
123
+ } catch {
124
+ return { schemaVersion: 1, entries: [] };
125
+ }
126
+ }
127
+ function writeStore(directory, store) {
128
+ let entries = store.entries.slice(-MAX_LIVE_LANE_OWNERS);
129
+ for (;; ) {
130
+ const serialized = JSON.stringify({ schemaVersion: 1, entries }, null, 2);
131
+ if (serialized.length <= MAX_LIVE_LANE_OWNERS_BYTES || entries.length === 0) {
132
+ if (entries.length < store.entries.length) {
133
+ log(`[lane-owners] store bound dropped ${store.entries.length - entries.length} oldest entries (caps: ${MAX_LIVE_LANE_OWNERS} entries / ${MAX_LIVE_LANE_OWNERS_BYTES} bytes)`);
134
+ }
135
+ if (entries.length === 0) {
136
+ try {
137
+ _internals.rmSync(storePath(directory), { force: true });
138
+ } catch {}
139
+ return;
140
+ }
141
+ _internals.atomicWriteSwarmFileSync(storePath(directory), serialized);
142
+ return;
143
+ }
144
+ entries = entries.slice(1);
145
+ }
146
+ }
147
+ function recordLiveLaneOwner(directory, entry) {
148
+ try {
149
+ const store = readStore(directory);
150
+ const filtered = store.entries.filter((e) => e.lanePath !== entry.lanePath && canonicalRootKeyFresh(e.lanePath) !== canonicalRootKeyFresh(entry.lanePath));
151
+ filtered.push({
152
+ ...entry,
153
+ ownerPid: _internals.process.pid,
154
+ startedAt: _internals.now()
155
+ });
156
+ writeStore(directory, { schemaVersion: 1, entries: filtered });
157
+ } catch (error) {
158
+ log(`[lane-owners] could not record live lane owner ${entry.lanePath}: ${error instanceof Error ? error.message : String(error)}`);
159
+ }
160
+ }
161
+ function clearLiveLaneOwner(directory, lanePath) {
162
+ try {
163
+ const store = readStore(directory);
164
+ const canonical = canonicalRootKeyFresh(lanePath);
165
+ const filtered = store.entries.filter((e) => e.lanePath !== lanePath && canonicalRootKeyFresh(e.lanePath) !== canonical);
166
+ if (filtered.length === store.entries.length)
167
+ return;
168
+ writeStore(directory, { schemaVersion: 1, entries: filtered });
169
+ } catch (error) {
170
+ log(`[lane-owners] could not clear live lane owner ${lanePath}: ${error instanceof Error ? error.message : String(error)}`);
171
+ }
172
+ }
173
+ function pidAlive(pid) {
174
+ try {
175
+ _internals.kill(pid, 0);
176
+ return true;
177
+ } catch (error) {
178
+ const code = error.code;
179
+ return code === "EPERM";
180
+ }
181
+ }
182
+ function pathExists(target) {
183
+ try {
184
+ _internals.statSync(target);
185
+ return true;
186
+ } catch {
187
+ return false;
188
+ }
189
+ }
190
+ function listLiveLaneOwners(directory) {
191
+ const store = readStore(directory);
192
+ const now = _internals.now();
193
+ const live = [];
194
+ const reaped = [];
195
+ const kept = [];
196
+ for (const entry of store.entries) {
197
+ if (!pathExists(entry.lanePath)) {
198
+ reaped.push(entry);
199
+ continue;
200
+ }
201
+ if (now - entry.startedAt > LIVE_LANE_OWNER_CLAIM_WINDOW_MS) {
202
+ reaped.push(entry);
203
+ continue;
204
+ }
205
+ if (!pidAlive(entry.ownerPid)) {
206
+ kept.push(entry);
207
+ continue;
208
+ }
209
+ live.push(entry);
210
+ kept.push(entry);
211
+ }
212
+ if (reaped.length > 0) {
213
+ try {
214
+ writeStore(directory, { schemaVersion: 1, entries: kept });
215
+ } catch (error) {
216
+ log(`[lane-owners] could not persist reap: ${error instanceof Error ? error.message : String(error)}`);
217
+ }
218
+ }
219
+ return { live, reaped };
220
+ }
221
+
71
222
  // src/worktree/core.ts
72
223
  init_warning_buffer();
73
224
  init_git_executable();
74
- var _internals = {
225
+ var _internals2 = {
226
+ clearLiveLaneOwner,
75
227
  bunSpawn,
76
228
  resolveGitExecutable,
77
229
  platform: process.platform,
@@ -86,13 +238,13 @@ var _internals = {
86
238
  return value === "" ? undefined : value;
87
239
  },
88
240
  fs: {
89
- existsSync: fs.existsSync,
241
+ existsSync: fs2.existsSync,
90
242
  cp: fsPromises.cp,
91
- cpSync: fs.cpSync,
92
- symlinkSync: fs.symlinkSync
243
+ cpSync: fs2.cpSync,
244
+ symlinkSync: fs2.symlinkSync
93
245
  },
94
246
  writeScopeToDisk: async (directory, taskId, files) => {
95
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-a493gv51.js");
247
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-h1mmww19.js");
96
248
  return realWrite(directory, taskId, files);
97
249
  },
98
250
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -122,16 +274,16 @@ async function writeLaneProfileToDiskReal(worktreePath, laneIndex, envOverrides)
122
274
  if (lines.length === 0)
123
275
  return;
124
276
  const lanesDir = path.join(worktreePath, ".swarm", "lanes");
125
- await fs.promises.mkdir(lanesDir, { recursive: true });
277
+ await fs2.promises.mkdir(lanesDir, { recursive: true });
126
278
  const envPath = path.join(lanesDir, `${laneIndex}.env`);
127
- await fs.promises.writeFile(envPath, `${lines.join(`
279
+ await fs2.promises.writeFile(envPath, `${lines.join(`
128
280
  `)}
129
281
  `, "utf-8");
130
282
  }
131
283
  async function removeLaneProfileFromDiskReal(worktreePath, laneIndex) {
132
284
  const envPath = path.join(worktreePath, ".swarm", "lanes", `${laneIndex}.env`);
133
285
  try {
134
- await fs.promises.unlink(envPath);
286
+ await fs2.promises.unlink(envPath);
135
287
  } catch (err) {
136
288
  if (err.code !== "ENOENT") {
137
289
  log(`[worktree] Failed to remove lane profile ${envPath}: ${err.message}`);
@@ -145,7 +297,7 @@ var GIT_SPAWN_FAILURE_EXIT_CODE = 1;
145
297
  async function runGit(args, cwd, timeoutMs = WORKTREE_TIMEOUT_MS) {
146
298
  let proc;
147
299
  try {
148
- proc = _internals.bunSpawn([_internals.resolveGitExecutable(), ...args], {
300
+ proc = _internals2.bunSpawn([_internals2.resolveGitExecutable(), ...args], {
149
301
  cwd,
150
302
  timeout: timeoutMs,
151
303
  stdin: "ignore",
@@ -165,6 +317,12 @@ async function runGit(args, cwd, timeoutMs = WORKTREE_TIMEOUT_MS) {
165
317
  const stdout = await proc.stdout.text();
166
318
  const stderr = await proc.stderr.text();
167
319
  return { exitCode, stdout, stderr };
320
+ } catch {
321
+ return {
322
+ exitCode: GIT_SPAWN_FAILURE_EXIT_CODE,
323
+ stdout: "",
324
+ stderr: `git ${args[0] ?? "command"} output could not be read in ${cwd}`
325
+ };
168
326
  } finally {
169
327
  try {
170
328
  proc.kill();
@@ -172,19 +330,19 @@ async function runGit(args, cwd, timeoutMs = WORKTREE_TIMEOUT_MS) {
172
330
  }
173
331
  }
174
332
  async function checkPathBudget(worktreeRoot, directory) {
175
- if (_internals.platform !== "win32") {
333
+ if (_internals2.platform !== "win32") {
176
334
  return { ok: true };
177
335
  }
178
336
  let longPaths;
179
337
  try {
180
- longPaths = await _internals.getCoreLongPaths(directory);
338
+ longPaths = await _internals2.getCoreLongPaths(directory);
181
339
  } catch {}
182
340
  if (longPaths === "true") {
183
341
  return { ok: true };
184
342
  }
185
343
  let proc;
186
344
  try {
187
- proc = _internals.bunSpawn([_internals.resolveGitExecutable(), "ls-files"], {
345
+ proc = _internals2.bunSpawn([_internals2.resolveGitExecutable(), "ls-files"], {
188
346
  cwd: directory,
189
347
  timeout: WORKTREE_TIMEOUT_MS,
190
348
  stdin: "ignore",
@@ -217,6 +375,8 @@ async function checkPathBudget(worktreeRoot, directory) {
217
375
  };
218
376
  }
219
377
  return { ok: true };
378
+ } catch {
379
+ return { ok: true };
220
380
  } finally {
221
381
  try {
222
382
  proc.kill();
@@ -224,9 +384,9 @@ async function checkPathBudget(worktreeRoot, directory) {
224
384
  }
225
385
  }
226
386
  function shortenWorktreePath(_directory, sessionId, laneId) {
227
- let tmp = _internals.osTmpdir();
387
+ let tmp = _internals2.osTmpdir();
228
388
  try {
229
- tmp = fs.realpathSync(tmp);
389
+ tmp = fs2.realpathSync(tmp);
230
390
  } catch {}
231
391
  return path.join(tmp, "swwt", sessionId, laneId);
232
392
  }
@@ -234,13 +394,13 @@ function makeWorktreeBranchName(sessionId, id, options) {
234
394
  return buildSwarmBranchName(sessionId, id, options.purpose, options.branchStyle === "legacy-lane" && options.purpose === "lane");
235
395
  }
236
396
  function resolveWorktreeBaseDir(directory, worktreeDir) {
237
- return worktreeDir ? path.resolve(directory, worktreeDir) : path.resolve(path.dirname(directory), SWARM_WORKTREE_DIR_NAME);
397
+ return worktreeDir ? path.resolve(directory, worktreeDir) : path.resolve(directory, SWARM_WORKTREE_DIR_NAME);
238
398
  }
239
399
  function isPathUnderSwarmWorktreeBase(targetPath, directory, worktreeDirOverrides = []) {
240
400
  const caseInsensitive = process.platform === "win32";
241
401
  let realTarget;
242
402
  try {
243
- realTarget = fs.realpathSync(path.resolve(directory, targetPath));
403
+ realTarget = fs2.realpathSync(path.resolve(directory, targetPath));
244
404
  } catch {
245
405
  return false;
246
406
  }
@@ -252,7 +412,7 @@ function isPathUnderSwarmWorktreeBase(targetPath, directory, worktreeDirOverride
252
412
  return bases.some((base) => {
253
413
  let realBase;
254
414
  try {
255
- realBase = fs.realpathSync(base);
415
+ realBase = fs2.realpathSync(base);
256
416
  } catch {
257
417
  realBase = path.resolve(base);
258
418
  }
@@ -290,7 +450,7 @@ async function provisionWorktree(directory, id, sessionId, options) {
290
450
  const normalizeGitPath = (p) => {
291
451
  const lexical = p.replace(/\\/g, "/").replace(/\/+$/, "");
292
452
  try {
293
- return fs.realpathSync(p).replace(/\\/g, "/").replace(/\/+$/, "");
453
+ return fs2.realpathSync(p).replace(/\\/g, "/").replace(/\/+$/, "");
294
454
  } catch {
295
455
  return lexical;
296
456
  }
@@ -417,16 +577,16 @@ async function provisionWorktree(directory, id, sessionId, options) {
417
577
  if (strategy !== "skip") {
418
578
  const hostDepDir = path.join(directory, "node_modules");
419
579
  const laneDepDir = path.join(worktreePath, "node_modules");
420
- if (_internals.fs.existsSync(hostDepDir)) {
580
+ if (_internals2.fs.existsSync(hostDepDir)) {
421
581
  try {
422
582
  if (strategy === "copy") {
423
- await _internals.fs.cp(hostDepDir, laneDepDir, {
583
+ await _internals2.fs.cp(hostDepDir, laneDepDir, {
424
584
  recursive: true,
425
585
  force: true
426
586
  });
427
587
  } else if (strategy === "link") {
428
- const isWindows = _internals.platform === "win32";
429
- _internals.fs.symlinkSync(hostDepDir, laneDepDir, isWindows ? "junction" : "dir");
588
+ const isWindows = _internals2.platform === "win32";
589
+ _internals2.fs.symlinkSync(hostDepDir, laneDepDir, isWindows ? "junction" : "dir");
430
590
  }
431
591
  } catch (e) {
432
592
  log(`[swarm] deps_strategy '${strategy}' preparation failed for ${id}: ${e instanceof Error ? e.message : String(e)}`);
@@ -439,12 +599,12 @@ async function provisionWorktree(directory, id, sessionId, options) {
439
599
  }
440
600
  if (options.scope?.taskId && Array.isArray(options.scope.files)) {
441
601
  try {
442
- await _internals.writeScopeToDisk(worktreePath, options.scope.taskId, options.scope.files);
602
+ await _internals2.writeScopeToDisk(worktreePath, options.scope.taskId, options.scope.files);
443
603
  } catch {}
444
604
  }
445
605
  if (options.laneProfile) {
446
606
  try {
447
- await _internals.writeLaneProfileToDisk(worktreePath, options.laneProfile.laneIndex, options.laneProfile.envOverrides);
607
+ await _internals2.writeLaneProfileToDisk(worktreePath, options.laneProfile.laneIndex, options.laneProfile.envOverrides);
448
608
  } catch {}
449
609
  }
450
610
  return {
@@ -456,14 +616,15 @@ async function provisionWorktree(directory, id, sessionId, options) {
456
616
  };
457
617
  }
458
618
  async function removeWorktree(worktreePath, projectRoot, options) {
459
- const isWindows = _internals.platform === "win32";
619
+ const isWindows = _internals2.platform === "win32";
460
620
  const MAX_RETRIES = 4;
461
621
  const RETRY_DELAY_MS = 2000;
462
622
  let lastError = "";
463
623
  for (let attempt = 0;attempt < MAX_RETRIES; attempt++) {
464
624
  const result = await runGit(["worktree", "remove", worktreePath], projectRoot);
465
625
  if (result.exitCode === 0) {
466
- if (fs.existsSync(worktreePath)) {
626
+ _internals2.clearLiveLaneOwner(projectRoot, worktreePath);
627
+ if (fs2.existsSync(worktreePath)) {
467
628
  const trusted = isPathUnderSwarmWorktreeBase(worktreePath, projectRoot, options?.worktreeDir ? [options.worktreeDir] : []);
468
629
  if (!trusted) {
469
630
  return {
@@ -471,13 +632,13 @@ async function removeWorktree(worktreePath, projectRoot, options) {
471
632
  };
472
633
  }
473
634
  try {
474
- fs.rmSync(worktreePath, { recursive: true, force: true });
635
+ fs2.rmSync(worktreePath, { recursive: true, force: true });
475
636
  } catch (error) {
476
637
  return {
477
638
  error: `git removed the worktree registration but residual directory cleanup failed: ${error instanceof Error ? error.message : String(error)}`
478
639
  };
479
640
  }
480
- if (fs.existsSync(worktreePath)) {
641
+ if (fs2.existsSync(worktreePath)) {
481
642
  return {
482
643
  error: "git removed the worktree registration but the residual directory still exists after cleanup"
483
644
  };
@@ -487,21 +648,22 @@ async function removeWorktree(worktreePath, projectRoot, options) {
487
648
  }
488
649
  lastError = result.stderr.trim() || result.stdout.trim();
489
650
  if (isWindows && (lastError.includes("EBUSY") || lastError.includes("EPERM")) && attempt < MAX_RETRIES - 1) {
490
- await _internals.sleep(RETRY_DELAY_MS);
651
+ await _internals2.sleep(RETRY_DELAY_MS);
491
652
  continue;
492
653
  }
493
654
  if (options?.force && isPathUnderSwarmWorktreeBase(worktreePath, projectRoot, options.worktreeDir ? [options.worktreeDir] : [])) {
494
655
  const forced = await runGit(["worktree", "remove", "--force", worktreePath], projectRoot);
495
656
  if (forced.exitCode === 0) {
496
- if (fs.existsSync(worktreePath)) {
657
+ _internals2.clearLiveLaneOwner(projectRoot, worktreePath);
658
+ if (fs2.existsSync(worktreePath)) {
497
659
  try {
498
- fs.rmSync(worktreePath, { recursive: true, force: true });
660
+ fs2.rmSync(worktreePath, { recursive: true, force: true });
499
661
  } catch (error) {
500
662
  return {
501
663
  error: `git force-removed the worktree registration but residual directory cleanup failed: ${error instanceof Error ? error.message : String(error)}`
502
664
  };
503
665
  }
504
- if (fs.existsSync(worktreePath)) {
666
+ if (fs2.existsSync(worktreePath)) {
505
667
  return {
506
668
  error: "git force-removed the worktree registration but the residual directory still exists after cleanup"
507
669
  };
@@ -626,4 +788,4 @@ async function assertCleanWorkingTree(directory) {
626
788
  return { clean: true };
627
789
  }
628
790
 
629
- export { _internals, writeLaneProfileToDiskReal, removeLaneProfileFromDiskReal, checkPathBudget, shortenWorktreePath, makeWorktreeBranchName, resolveWorktreeBaseDir, isPathUnderSwarmWorktreeBase, provisionWorktree, removeWorktree, isCleanWorktree, autoCommitDirty, cleanUntrackedFiles, assertCleanWorkingTree };
791
+ export { recordLiveLaneOwner, listLiveLaneOwners, _internals2 as _internals, writeLaneProfileToDiskReal, removeLaneProfileFromDiskReal, checkPathBudget, shortenWorktreePath, makeWorktreeBranchName, resolveWorktreeBaseDir, isPathUnderSwarmWorktreeBase, provisionWorktree, removeWorktree, isCleanWorktree, autoCommitDirty, cleanUntrackedFiles, assertCleanWorkingTree };
@@ -11,7 +11,7 @@ import {
11
11
  assertProjectRoot,
12
12
  atomicWriteFile,
13
13
  withEvidenceLock
14
- } from "./index-4r5pmtvk.js";
14
+ } from "./index-bx1wgn3a.js";
15
15
  import {
16
16
  exports_external,
17
17
  init_zod
@@ -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.168.0",
24
+ version: "7.169.0",
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",
@@ -106,6 +106,7 @@ var init_package = __esm(() => {
106
106
  ".opencode/skills/orchestrating-subagents",
107
107
  ".opencode/skills/durable-session-state",
108
108
  "tests/fixtures/memory-recall",
109
+ "tests/fixtures/memory-recall-heldout",
109
110
  "opencode-swarm.schema.json",
110
111
  "README.md",
111
112
  "LICENSE"
@@ -152,7 +153,8 @@ var init_package = __esm(() => {
152
153
  "check:error-channel-discard": "bun run scripts/check-error-channel-discard.ts",
153
154
  "check:path-identity": "bun run scripts/check-path-identity.ts",
154
155
  "check:registry-citations": "bun run scripts/check-registry-citations.ts",
155
- "check:memory-recall": "bun run scripts/memory-recall-regression.ts"
156
+ "check:memory-recall": "bun run scripts/memory-recall-regression.ts",
157
+ "check:retrieval-quality": "bun run scripts/retrieval-quality-regression.ts"
156
158
  },
157
159
  dependencies: {
158
160
  "@opencode-ai/plugin": "^1.18.3",
@@ -320,7 +322,7 @@ function resolveExternalSkillsConfig(input) {
320
322
  };
321
323
  return merged;
322
324
  }
323
- var _internals, SEPARATORS, CANONICAL_ROLES_LONGEST_FIRST, CANONICAL_ROLES_SET, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX = 3, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_SECTION_SCHEMAS, GateConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GATE_CONFIG_READERS, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, RetentionConfigSchema, ReviewPassesConfigSchema, AUTO_REVIEW_V8_BURN_IN_DECISION, AutoReviewFinalConfigSchema, AutoReviewConfigObjectSchema, AutoReviewConfigSchema, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchemaBase, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, GitConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, INVALID_CHECKPOINT_PROTO_FIELD = "__swarm_invalid_checkpoint_proto__", FORBIDDEN_CHECKPOINT_CONFIG_KEYS, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchemaBase, AutomationConfigSchema, KnowledgeConfigSchema, LearningConfigSchema, ConsensusConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationAudienceSchema, SkillPropagationConfigSchema, HarnessRelativePathSchema, HarnessEvolutionConfigSchema, DEFAULT_HARNESS_EVOLUTION_CONFIG, SkillImproverConfigSchema, SkillsConfigSchema, SkillOptConfigSchema, DEFAULT_SKILL_OPT_CONFIG, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilMemberConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, DEFAULT_PR_REVIEW_RESILIENCE_CONFIG, PrReviewResilienceConfigSchema, LaneLivenessWatchdogConfigSchema, DispatchProtectionConfigSchema, DEFAULT_PR_REVIEW_LEGACY_TRANSCRIPT_COMPATIBILITY = false, PluginConfigSchema;
325
+ var _internals, SEPARATORS, CANONICAL_ROLES_LONGEST_FIRST, CANONICAL_ROLES_SET, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX = 3, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_SECTION_SCHEMAS, GateConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GATE_CONFIG_READERS, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, RetentionConfigSchema, ReviewPassesConfigSchema, AUTO_REVIEW_V8_BURN_IN_DECISION, AutoReviewFinalConfigSchema, AutoReviewConfigObjectSchema, AutoReviewConfigSchema, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchemaBase, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, GitConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, INVALID_CHECKPOINT_PROTO_FIELD = "__swarm_invalid_checkpoint_proto__", FORBIDDEN_CHECKPOINT_CONFIG_KEYS, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchemaBase, AutomationConfigSchema, KnowledgeConfigSchema, LearningConfigSchema, ConsensusConfigSchema, OtlpExportConfigSchema, ObservabilityConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationAudienceSchema, SkillPropagationConfigSchema, HarnessRelativePathSchema, HarnessEvolutionConfigSchema, DEFAULT_HARNESS_EVOLUTION_CONFIG, SkillImproverConfigSchema, SkillsConfigSchema, SkillOptConfigSchema, DEFAULT_SKILL_OPT_CONFIG, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilMemberConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, DEFAULT_PR_REVIEW_RESILIENCE_CONFIG, PrReviewResilienceConfigSchema, LaneLivenessWatchdogConfigSchema, DispatchProtectionConfigSchema, DEFAULT_PR_REVIEW_LEGACY_TRANSCRIPT_COMPATIBILITY = false, PluginConfigSchema;
324
326
  var init_schema = __esm(() => {
325
327
  init_zod();
326
328
  init_package();
@@ -969,6 +971,25 @@ var init_schema = __esm(() => {
969
971
  llm_timeout_ms: exports_external.number().int().min(0).default(60000),
970
972
  report_retention: exports_external.number().int().min(0).default(50)
971
973
  });
974
+ OtlpExportConfigSchema = exports_external.object({
975
+ enabled: exports_external.boolean().default(false),
976
+ endpoint: exports_external.string().min(1).default(""),
977
+ convention: exports_external.enum(["genai", "openinference"]).default("genai"),
978
+ headers: exports_external.record(exports_external.string(), exports_external.string()).optional(),
979
+ batchSize: exports_external.number().int().min(1).max(512).default(64),
980
+ flushIntervalMs: exports_external.number().int().min(250).max(300000).default(5000),
981
+ requestTimeoutMs: exports_external.number().int().min(250).max(60000).default(5000),
982
+ spoolMaxBytes: exports_external.number().int().min(16 * 1024).max(16 * 1024 * 1024).default(1024 * 1024),
983
+ spoolMaxAgeMs: exports_external.number().int().min(60000).max(30 * 24 * 60 * 60000).default(24 * 60 * 60000),
984
+ maxRetries: exports_external.number().int().min(0).max(10).default(3),
985
+ backoffBaseMs: exports_external.number().int().min(10).max(1e4).default(200),
986
+ backoffMaxMs: exports_external.number().int().min(100).max(300000).default(30000),
987
+ circuitThreshold: exports_external.number().int().min(1).max(50).default(5),
988
+ circuitCooldownMs: exports_external.number().int().min(1000).max(600000).default(60000)
989
+ });
990
+ ObservabilityConfigSchema = exports_external.object({
991
+ export: OtlpExportConfigSchema.optional()
992
+ });
972
993
  MemoryConfigSchema = exports_external.object({
973
994
  enabled: exports_external.boolean().default(false),
974
995
  provider: exports_external.enum(["local-jsonl", "sqlite"]).default("sqlite"),
@@ -1722,6 +1743,7 @@ var init_schema = __esm(() => {
1722
1743
  automation: AutomationConfigSchema.optional().describe("Background automation mode and per-feature toggles (v6.7 background-first rollout)."),
1723
1744
  knowledge: KnowledgeConfigSchema.optional().describe("Two-tier cross-project knowledge base (v6.17)."),
1724
1745
  memory: MemoryConfigSchema.optional().describe("Swarm memory substrate \u2014 disabled by default so existing flows are unchanged."),
1746
+ observability: ObservabilityConfigSchema.optional().describe("Observability options \u2014 remote OTLP/OpenInference export is opt-in and disabled by default (issue #2485)."),
1725
1747
  learning: LearningConfigSchema.optional().describe("Learning subsystem: real-time admission, PRM persistence, dedup sweep (issue #1821)."),
1726
1748
  consensus: ConsensusConfigSchema.optional().describe("Consensus mining over completed run evidence (issue #1821)."),
1727
1749
  curator: CuratorConfigSchema.optional().describe("Phase context consolidation and drift detection."),
@@ -1919,4 +1941,4 @@ var init_schema = __esm(() => {
1919
1941
  });
1920
1942
  });
1921
1943
 
1922
- export { init_package, package_default, DEFAULT_MODEL_CONTEXT_TOKENS, init_context_window, _internals, isKnownCanonicalRole, getCanonicalAgentRole, resolveGeneratedAgentRole, stripKnownSwarmPrefix, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_SECTION_SCHEMAS, GateConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GATE_CONFIG_READERS, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, RetentionConfigSchema, ReviewPassesConfigSchema, AUTO_REVIEW_V8_BURN_IN_DECISION, AutoReviewConfigSchema, resolveAutoReviewConfig, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, GitConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, resolveGuardrailsConfig, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, KnowledgeConfigSchema, LearningConfigSchema, ConsensusConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationConfigSchema, HarnessEvolutionConfigSchema, DEFAULT_HARNESS_EVOLUTION_CONFIG, SkillImproverConfigSchema, SkillsConfigSchema, SkillOptConfigSchema, DEFAULT_SKILL_OPT_CONFIG, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, resolveExternalSkillsConfig, DEFAULT_PR_REVIEW_RESILIENCE_CONFIG, PrReviewResilienceConfigSchema, LaneLivenessWatchdogConfigSchema, DispatchProtectionConfigSchema, DEFAULT_PR_REVIEW_LEGACY_TRANSCRIPT_COMPATIBILITY, PluginConfigSchema, init_schema };
1944
+ export { init_package, package_default, DEFAULT_MODEL_CONTEXT_TOKENS, init_context_window, _internals, isKnownCanonicalRole, getCanonicalAgentRole, resolveGeneratedAgentRole, stripKnownSwarmPrefix, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_SECTION_SCHEMAS, GateConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GATE_CONFIG_READERS, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, RetentionConfigSchema, ReviewPassesConfigSchema, AUTO_REVIEW_V8_BURN_IN_DECISION, AutoReviewConfigSchema, resolveAutoReviewConfig, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, GitConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, resolveGuardrailsConfig, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, KnowledgeConfigSchema, LearningConfigSchema, ConsensusConfigSchema, OtlpExportConfigSchema, ObservabilityConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationConfigSchema, HarnessEvolutionConfigSchema, DEFAULT_HARNESS_EVOLUTION_CONFIG, SkillImproverConfigSchema, SkillsConfigSchema, SkillOptConfigSchema, DEFAULT_SKILL_OPT_CONFIG, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, resolveExternalSkillsConfig, DEFAULT_PR_REVIEW_RESILIENCE_CONFIG, PrReviewResilienceConfigSchema, LaneLivenessWatchdogConfigSchema, DispatchProtectionConfigSchema, DEFAULT_PR_REVIEW_LEGACY_TRANSCRIPT_COMPATIBILITY, PluginConfigSchema, init_schema };
@@ -3,7 +3,7 @@ import {
3
3
  EvaluationRunV1Schema,
4
4
  GateAuditResultV1Schema,
5
5
  getProtectedEvaluationRunIds
6
- } from "./index-gp9yzr1v.js";
6
+ } from "./index-xnpjwc4h.js";
7
7
  import {
8
8
  readEffectiveSpecSync
9
9
  } from "./index-9br68j86.js";
@@ -23,18 +23,18 @@ import {
23
23
  readTaskEvidence,
24
24
  readTaskEvidenceRaw,
25
25
  sanitizeTaskId
26
- } from "./index-00zx94vn.js";
26
+ } from "./index-sxcfszbe.js";
27
27
  import {
28
28
  estimateCharsForTokens,
29
29
  estimateTokens,
30
30
  readSwarmFileAsync,
31
31
  validateSwarmPath
32
- } from "./index-kear8gb7.js";
32
+ } from "./index-b3pmzbh1.js";
33
33
  import {
34
34
  bunHash,
35
35
  bunWrite,
36
36
  mergeEnvForChild
37
- } from "./index-p612v1mv.js";
37
+ } from "./index-2s7dvzff.js";
38
38
  import {
39
39
  EVIDENCE_MAX_JSON_BYTES,
40
40
  EvidenceBundleSchema,
@@ -58,10 +58,10 @@ import {
58
58
  replayFromLedgerWithStatus,
59
59
  takeSnapshotEvent,
60
60
  takeSnapshotWithRetry
61
- } from "./index-yv76j77m.js";
61
+ } from "./index-83m0y4cj.js";
62
62
  import {
63
63
  appendCoreEventSync
64
- } from "./index-a8xbvsse.js";
64
+ } from "./index-fgp96k3r.js";
65
65
  import {
66
66
  derivePlanId,
67
67
  derivePlanIdentityHash,
@@ -69,32 +69,32 @@ import {
69
69
  importCoordinationOnce,
70
70
  listCoordinationStates,
71
71
  transitionCoordinationState
72
- } from "./index-h439y187.js";
72
+ } from "./index-bernkwgf.js";
73
73
  import {
74
74
  DURABILITY_CLASSES,
75
75
  getProjectDb,
76
76
  projectDbExists,
77
77
  withDurabilityClass
78
- } from "./index-wst6n478.js";
78
+ } from "./index-dvbf6fpn.js";
79
79
  import {
80
80
  assertProjectRoot,
81
81
  tryAcquireLock,
82
82
  withEvidenceLock
83
- } from "./index-4r5pmtvk.js";
83
+ } from "./index-bx1wgn3a.js";
84
+ import {
85
+ emit
86
+ } from "./index-nprdr0sm.js";
84
87
  import {
85
88
  atomicWriteSwarmFileSync,
86
89
  invalidateCachedArtifact,
87
90
  readCachedParsedFile
88
- } from "./index-v3xc4sde.js";
89
- import {
90
- emit
91
- } from "./index-z6qreakh.js";
91
+ } from "./index-nbdmdyke.js";
92
92
  import {
93
93
  canonicalRootKeyFresh
94
94
  } from "./index-1xnse449.js";
95
95
  import {
96
96
  PlanSchema
97
- } from "./index-seetnhpx.js";
97
+ } from "./index-3bfzpzsb.js";
98
98
  import {
99
99
  GIT_BINARY_ENV_VAR,
100
100
  describeGitResolution,