opencode-swarm 7.168.1 → 7.170.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.
- package/.opencode/skills/swarm-pr-feedback/SKILL.md +11 -11
- package/README.md +1 -0
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/ci/evaluate.d.ts +100 -0
- package/dist/ci/index.d.ts +13 -0
- package/dist/ci/quality-checks.d.ts +58 -0
- package/dist/ci/report.d.ts +21 -0
- package/dist/ci/runtime.d.ts +81 -0
- package/dist/cli/{capability-probe-faqefhah.js → capability-probe-pdwwz8gs.js} +1 -1
- package/dist/cli/{coder-settlement-54a3d97g.js → coder-settlement-65zx1bet.js} +12 -12
- package/dist/cli/{config-doctor-vzp6b3ng.js → config-doctor-c30rss1c.js} +2 -2
- package/dist/cli/{core-yynse50x.js → core-8wkbr1tr.js} +5 -2
- package/dist/cli/{curation-policy-mgwv8h2k.js → curation-policy-k74qz9ms.js} +5 -5
- package/dist/cli/{curator-drift-k0zrnm09.js → curator-drift-3ssjr0nx.js} +5 -5
- package/dist/cli/curator-llm-factory-jkjqasfs.js +72 -0
- package/dist/cli/{curator-agdhhzqt.js → curator-pckzk1q4.js} +40 -39
- package/dist/cli/{dispatch-8ks9dyk5.js → dispatch-hwwj3qrb.js} +2 -2
- package/dist/cli/{evidence-summary-service-6mmcekr7.js → evidence-summary-service-4ydcapke.js} +17 -17
- package/dist/cli/{gate-evidence-xqvkqhrk.js → gate-evidence-xwqfky3m.js} +7 -7
- package/dist/cli/guardrail-explain-fe2veh2s.js +73 -0
- package/dist/cli/{guardrail-log-5wa5c77w.js → guardrail-log-z38j69bx.js} +8 -8
- package/dist/cli/{guardrail-reset-dh78tbcf.js → guardrail-reset-mmnzt4mz.js} +40 -39
- package/dist/cli/hive-promoter-68hrw1y1.js +87 -0
- package/dist/cli/{index-gmpmgtzn.js → index-06rbdzqn.js} +5 -5
- package/dist/cli/index-0hgmsyfp.js +92 -0
- package/dist/cli/{index-f1fps3w9.js → index-0xprxg95.js} +7 -7
- package/dist/cli/{index-p612v1mv.js → index-2s7dvzff.js} +200 -51
- package/dist/cli/{index-qthc56c4.js → index-31sqcdsd.js} +4 -4
- package/dist/cli/{index-y85aptep.js → index-3axdtaf0.js} +7 -7
- package/dist/cli/{index-9b2105n0.js → index-3eh2n3dx.js} +2 -2
- package/dist/cli/{index-w1dfkp1q.js → index-3p3y55xg.js} +15 -15
- package/dist/cli/{index-apy1qfj0.js → index-4wc5gfgm.js} +26 -4
- package/dist/cli/{index-d5qf7hvh.js → index-5400m33a.js} +1 -1
- package/dist/cli/{index-qkwtth00.js → index-59fcfpkh.js} +197 -35
- package/dist/cli/{index-j0bxxz9d.js → index-5bbem0ey.js} +8 -8
- package/dist/cli/{index-qwsh0h2g.js → index-5qt9yf5w.js} +4 -4
- package/dist/cli/{index-q1r1cfww.js → index-76qm2c2y.js} +37 -26
- package/dist/cli/{index-qhey6vc3.js → index-7h01bkm6.js} +2 -2
- package/dist/cli/{index-6df6wbvj.js → index-8w1mrvbd.js} +8 -8
- package/dist/cli/{index-8ybjqg51.js → index-9ttqbhvw.js} +1 -1
- package/dist/cli/{index-xhb4gryr.js → index-9xk97bcf.js} +4 -4
- package/dist/cli/{index-kear8gb7.js → index-b3pmzbh1.js} +2 -2
- package/dist/cli/{index-h439y187.js → index-bernkwgf.js} +1 -1
- package/dist/cli/{index-m35hybf0.js → index-bm5xrfnx.js} +1 -1
- package/dist/cli/{index-pyf517sz.js → index-br3mvbsa.js} +2 -2
- package/dist/cli/{index-4r5pmtvk.js → index-bx1wgn3a.js} +4 -4
- package/dist/cli/{index-nwwk3dej.js → index-cgpwjctj.js} +1 -1
- package/dist/cli/{index-wst6n478.js → index-dvbf6fpn.js} +1 -1
- package/dist/cli/{index-a8xbvsse.js → index-fgp96k3r.js} +2 -2
- package/dist/cli/{index-5zqakgp4.js → index-fhh02gwx.js} +3 -3
- package/dist/cli/{index-dfyv3xkd.js → index-gfbggp8k.js} +9 -9
- package/dist/cli/{index-kkmezerc.js → index-j144fgk8.js} +4831 -2776
- package/dist/cli/{index-xkf3672y.js → index-mjn6aqqk.js} +2 -2
- package/dist/cli/{index-3jmb4ppa.js → index-n0d5hrs4.js} +2 -2
- package/dist/cli/{index-v3xc4sde.js → index-nbdmdyke.js} +2 -1
- package/dist/cli/{index-z6qreakh.js → index-nprdr0sm.js} +6 -4
- package/dist/cli/{index-bvqqwx84.js → index-nyn01yrz.js} +2 -2
- package/dist/cli/{index-q8091q8b.js → index-p6fj7qz7.js} +3 -3
- package/dist/cli/{index-gh9ybrrs.js → index-pw00xcj0.js} +7 -7
- package/dist/cli/{index-bw9x8d8n.js → index-r1z8nrb6.js} +5 -5
- package/dist/cli/{index-2xbww1x0.js → index-ssx8087p.js} +7 -7
- package/dist/cli/{index-4kv1ew3q.js → index-t73888m0.js} +1 -1
- package/dist/cli/{index-91ww9hyr.js → index-td6xrw55.js} +1 -1
- package/dist/cli/{index-gp9yzr1v.js → index-xnpjwc4h.js} +1 -1
- package/dist/cli/{index-yt9n9zt3.js → index-xztkjj3c.js} +48 -41
- package/dist/cli/{index-5g6rhkn7.js → index-ye43mdfm.js} +36 -1
- package/dist/cli/{index-w3x1dmrf.js → index-z5vas8c3.js} +40 -39
- package/dist/cli/{index-chebm5h5.js → index-zw3hkzch.js} +3 -3
- package/dist/cli/index.js +45 -39
- package/dist/cli/{knowledge-escalator-135dz4eh.js → knowledge-escalator-pz2faktx.js} +13 -13
- package/dist/cli/{knowledge-events-27gwv47q.js → knowledge-events-s6s8qedx.js} +11 -11
- package/dist/cli/{knowledge-link-dr3xnwyd.js → knowledge-link-rkxfrmhm.js} +4 -4
- package/dist/cli/{knowledge-store-80m44bfw.js → knowledge-store-dgv3xw3h.js} +5 -5
- package/dist/cli/{knowledge-validator-crsfb2cc.js → knowledge-validator-22qppdyv.js} +7 -7
- package/dist/cli/{pending-delegations-gwgjzzkz.js → pending-delegations-4r21nf9d.js} +12 -12
- package/dist/cli/{pr-subscriptions-g633nhz4.js → pr-subscriptions-d52xy3zd.js} +12 -12
- package/dist/cli/{pr-workflow-gate-4dc5nt2e.js → pr-workflow-gate-0de81kzw.js} +40 -39
- package/dist/cli/{runner-k0ycgv8x.js → runner-1dwrgyyr.js} +6 -6
- package/dist/cli/{scan-cursor-avxjsm4w.js → scan-cursor-ahbbejab.js} +6 -6
- package/dist/cli/{schema-3ja77k4y.js → schema-17h2hcw9.js} +5 -1
- package/dist/cli/{scope-persistence-f540tc50.js → scope-persistence-gcn3zm5e.js} +14 -14
- package/dist/cli/{skill-generator-kcqqpg1g.js → skill-generator-hkqr5qs7.js} +15 -15
- package/dist/cli/{snapshot-coordination-init-e4s8bn4p.js → snapshot-coordination-init-ms36zxv6.js} +40 -39
- package/dist/cli/{telemetry-2wzapf11.js → telemetry-fdtaemnv.js} +1 -1
- package/dist/cli/{workspace-snapshot-rkgxhj9b.js → workspace-snapshot-hkz2wt1c.js} +4 -4
- package/dist/cli/{worktree-collision-ownership-rk9gz638.js → worktree-collision-ownership-7v7gg511.js} +18 -104
- package/dist/cli/{worktree-isolation-1bdzfgky.js → worktree-isolation-nanamt25.js} +40 -39
- package/dist/commands/ci.d.ts +40 -0
- package/dist/commands/destructive-purge.d.ts +85 -0
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/registry.d.ts +10 -2
- package/dist/commands/reset-session.d.ts +5 -1
- package/dist/config/constants.d.ts +4 -1
- package/dist/config/lane-context.d.ts +19 -0
- package/dist/config/schema.d.ts +77 -0
- package/dist/evaluation/index.d.ts +1 -0
- package/dist/evaluation/retrieval-quality.d.ts +116 -0
- package/dist/failures/invocation-failure.d.ts +23 -4
- package/dist/hooks/gate-denial-tracker.d.ts +18 -14
- package/dist/hooks/init-orphan-recovery.d.ts +7 -0
- package/dist/hooks/pr-workflow-gate.d.ts +8 -2
- package/dist/index.js +616 -608
- package/dist/memory/embeddings/reranker.d.ts +13 -2
- package/dist/memory/evaluation.d.ts +99 -0
- package/dist/memory/heldout-evaluation-corpus.d.ts +51 -0
- package/dist/memory/index.d.ts +5 -2
- package/dist/memory/sqlite-provider.d.ts +35 -1
- package/dist/memory/types.d.ts +14 -0
- package/dist/observability/otel-mapping.d.ts +5 -5
- package/dist/observability/otlp-exporter.d.ts +80 -0
- package/dist/parallel/lane-owners.d.ts +76 -0
- package/dist/sandbox/macos/sandbox-exec-executor.d.ts +48 -11
- package/dist/tools/repo-graph/query.d.ts +6 -1
- package/dist/tools/repo-graph/types.d.ts +13 -4
- package/dist/utils/bun-compat.d.ts +20 -0
- package/dist/utils/gitignore-warning.d.ts +5 -2
- package/dist/worktree/base-migration.d.ts +55 -0
- package/dist/worktree/core.d.ts +15 -6
- package/dist/worktree/ownership.d.ts +66 -0
- package/opencode-swarm.schema.json +97 -0
- package/package.json +4 -2
- package/tests/fixtures/memory-recall-heldout/manifest.json +311 -0
- package/tests/fixtures/memory-recall-heldout/sources/bash.sh +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/c.c +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/cpp.cpp +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/csharp.cs +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/css.css +3 -0
- package/tests/fixtures/memory-recall-heldout/sources/dart.dart +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/go.go +3 -0
- package/tests/fixtures/memory-recall-heldout/sources/ini.ini +2 -0
- package/tests/fixtures/memory-recall-heldout/sources/java.java +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/javascript.js +3 -0
- package/tests/fixtures/memory-recall-heldout/sources/kotlin.kt +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/php.php +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/powershell.ps1 +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/python.py +2 -0
- package/tests/fixtures/memory-recall-heldout/sources/regex.regex +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/ruby.rb +3 -0
- package/tests/fixtures/memory-recall-heldout/sources/rust.rs +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/swift.swift +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/tsx.tsx +3 -0
- package/tests/fixtures/memory-recall-heldout/sources/typescript.ts +3 -0
- package/dist/cli/curator-llm-factory-ygxd6hfx.js +0 -71
- package/dist/cli/guardrail-explain-vjtjhgzs.js +0 -72
- package/dist/cli/hive-promoter-3czsx7c6.js +0 -86
|
@@ -137,6 +137,20 @@ function bunHash(input) {
|
|
|
137
137
|
}
|
|
138
138
|
return hash;
|
|
139
139
|
}
|
|
140
|
+
var DEFAULT_BUN_SPAWN_MAX_BUFFER_BYTES = 5 * 1024 * 1024;
|
|
141
|
+
|
|
142
|
+
class BunCompatOutputLimitError extends Error {
|
|
143
|
+
limit;
|
|
144
|
+
captured;
|
|
145
|
+
total;
|
|
146
|
+
constructor(limit, captured, total) {
|
|
147
|
+
super(`Subprocess output exceeded the ${limit}-byte buffer limit after capturing ${captured} bytes (${total} bytes observed)`);
|
|
148
|
+
this.name = "BunCompatOutputLimitError";
|
|
149
|
+
this.limit = limit;
|
|
150
|
+
this.captured = captured;
|
|
151
|
+
this.total = total;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
140
154
|
async function killProcessTreeImpl(pid, signal, directKill, wasDetached) {
|
|
141
155
|
if (typeof pid !== "number" || pid <= 0) {
|
|
142
156
|
directKill(signal);
|
|
@@ -267,32 +281,95 @@ function wrapSpawnFailure(error, cwd, executable) {
|
|
|
267
281
|
return err;
|
|
268
282
|
return describeSpawnCwdFailure(cwd, executable, err) ?? err;
|
|
269
283
|
}
|
|
270
|
-
function
|
|
284
|
+
function normalizedMaxBuffer(value) {
|
|
285
|
+
return typeof value === "number" && Number.isSafeInteger(value) && value > 0 ? value : DEFAULT_BUN_SPAWN_MAX_BUFFER_BYTES;
|
|
286
|
+
}
|
|
287
|
+
function createOutputOverflowController(limit, requestKill) {
|
|
288
|
+
let error;
|
|
289
|
+
let killRequested = false;
|
|
290
|
+
let resolveCompleted;
|
|
291
|
+
const completed = new Promise((resolve) => {
|
|
292
|
+
resolveCompleted = resolve;
|
|
293
|
+
});
|
|
294
|
+
return {
|
|
295
|
+
get error() {
|
|
296
|
+
return error;
|
|
297
|
+
},
|
|
298
|
+
completed,
|
|
299
|
+
overflow(captured, total) {
|
|
300
|
+
if (error)
|
|
301
|
+
return;
|
|
302
|
+
error = new BunCompatOutputLimitError(limit, captured, total);
|
|
303
|
+
if (killRequested)
|
|
304
|
+
return;
|
|
305
|
+
killRequested = true;
|
|
306
|
+
try {
|
|
307
|
+
requestKill();
|
|
308
|
+
} catch {}
|
|
309
|
+
},
|
|
310
|
+
complete() {
|
|
311
|
+
resolveCompleted();
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
function streamFromNode(pipe, limit, controller) {
|
|
316
|
+
if (!pipe)
|
|
317
|
+
return staticStream("");
|
|
318
|
+
let mode;
|
|
271
319
|
let collected;
|
|
272
|
-
let readerClaimed = false;
|
|
273
320
|
const collect = () => {
|
|
274
|
-
if (
|
|
321
|
+
if (mode === "reader") {
|
|
275
322
|
return Promise.reject(new TypeError("Subprocess output is already consumed by a reader"));
|
|
276
323
|
}
|
|
277
|
-
|
|
324
|
+
mode = "buffered";
|
|
325
|
+
if (collected)
|
|
326
|
+
return collected;
|
|
327
|
+
collected = new Promise((resolve) => {
|
|
278
328
|
if (!pipe) {
|
|
279
329
|
resolve(Buffer.alloc(0));
|
|
280
330
|
return;
|
|
281
331
|
}
|
|
282
332
|
const chunks = [];
|
|
333
|
+
let captured = 0;
|
|
334
|
+
let total = 0;
|
|
335
|
+
let finished = false;
|
|
336
|
+
const finish = () => {
|
|
337
|
+
if (finished)
|
|
338
|
+
return;
|
|
339
|
+
finished = true;
|
|
340
|
+
resolve(Buffer.concat(chunks));
|
|
341
|
+
};
|
|
283
342
|
pipe.on("data", (chunk) => {
|
|
284
|
-
|
|
343
|
+
const bytes = typeof chunk === "string" ? Buffer.from(chunk) : chunk;
|
|
344
|
+
total += bytes.byteLength;
|
|
345
|
+
if (controller?.error || limit === undefined)
|
|
346
|
+
return;
|
|
347
|
+
const remaining = limit - captured;
|
|
348
|
+
if (remaining > 0) {
|
|
349
|
+
const retained = Buffer.from(bytes.subarray(0, remaining));
|
|
350
|
+
chunks.push(retained);
|
|
351
|
+
captured += retained.byteLength;
|
|
352
|
+
}
|
|
353
|
+
if (bytes.byteLength > remaining) {
|
|
354
|
+
controller?.overflow(captured, total);
|
|
355
|
+
}
|
|
285
356
|
});
|
|
286
|
-
pipe.on("end",
|
|
287
|
-
pipe.on("
|
|
357
|
+
pipe.on("end", finish);
|
|
358
|
+
pipe.on("close", finish);
|
|
359
|
+
pipe.on("error", finish);
|
|
360
|
+
}).then(async (bytes) => {
|
|
361
|
+
await controller?.completed;
|
|
362
|
+
if (controller?.error)
|
|
363
|
+
throw controller.error;
|
|
364
|
+
return bytes;
|
|
288
365
|
});
|
|
289
366
|
return collected;
|
|
290
367
|
};
|
|
291
368
|
const toWebReadable = () => {
|
|
292
369
|
if (!pipe) {
|
|
293
370
|
return new ReadableStream({
|
|
294
|
-
start(
|
|
295
|
-
|
|
371
|
+
start(controller2) {
|
|
372
|
+
controller2.close();
|
|
296
373
|
}
|
|
297
374
|
});
|
|
298
375
|
}
|
|
@@ -301,12 +378,12 @@ function streamFromNode(pipe) {
|
|
|
301
378
|
return r.toWeb();
|
|
302
379
|
}
|
|
303
380
|
return new ReadableStream({
|
|
304
|
-
start(
|
|
381
|
+
start(controller2) {
|
|
305
382
|
pipe.on("data", (chunk) => {
|
|
306
|
-
|
|
383
|
+
controller2.enqueue(typeof chunk === "string" ? new TextEncoder().encode(chunk) : new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength));
|
|
307
384
|
});
|
|
308
|
-
pipe.on("end", () =>
|
|
309
|
-
pipe.on("error", (err) =>
|
|
385
|
+
pipe.on("end", () => controller2.close());
|
|
386
|
+
pipe.on("error", (err) => controller2.error(err));
|
|
310
387
|
},
|
|
311
388
|
cancel() {
|
|
312
389
|
const destroyable = pipe;
|
|
@@ -318,7 +395,7 @@ function streamFromNode(pipe) {
|
|
|
318
395
|
}
|
|
319
396
|
});
|
|
320
397
|
};
|
|
321
|
-
|
|
398
|
+
const result = {
|
|
322
399
|
async text() {
|
|
323
400
|
return (await collect()).toString("utf-8");
|
|
324
401
|
},
|
|
@@ -327,18 +404,27 @@ function streamFromNode(pipe) {
|
|
|
327
404
|
return new Uint8Array(b.buffer, b.byteOffset, b.byteLength);
|
|
328
405
|
},
|
|
329
406
|
getReader() {
|
|
330
|
-
if (
|
|
407
|
+
if (mode !== undefined) {
|
|
331
408
|
throw new TypeError("Subprocess output is already consumed");
|
|
332
409
|
}
|
|
333
|
-
|
|
410
|
+
mode = "reader";
|
|
334
411
|
return toWebReadable().getReader();
|
|
335
412
|
}
|
|
336
413
|
};
|
|
414
|
+
if (pipe && controller && limit !== undefined) {
|
|
415
|
+
queueMicrotask(() => {
|
|
416
|
+
if (mode === undefined)
|
|
417
|
+
collect().catch(() => {
|
|
418
|
+
return;
|
|
419
|
+
});
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
return result;
|
|
337
423
|
}
|
|
338
424
|
function mapStdio(v) {
|
|
339
425
|
return v ?? "pipe";
|
|
340
426
|
}
|
|
341
|
-
function streamFromBun(stream) {
|
|
427
|
+
function streamFromBun(stream, limit, controller) {
|
|
342
428
|
if (!stream || typeof stream !== "object") {
|
|
343
429
|
const empty = {
|
|
344
430
|
async text() {
|
|
@@ -349,8 +435,8 @@ function streamFromBun(stream) {
|
|
|
349
435
|
},
|
|
350
436
|
getReader() {
|
|
351
437
|
return new ReadableStream({
|
|
352
|
-
start(
|
|
353
|
-
|
|
438
|
+
start(controller2) {
|
|
439
|
+
controller2.close();
|
|
354
440
|
}
|
|
355
441
|
}).getReader();
|
|
356
442
|
}
|
|
@@ -358,36 +444,82 @@ function streamFromBun(stream) {
|
|
|
358
444
|
return empty;
|
|
359
445
|
}
|
|
360
446
|
const candidate = stream;
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
const chunks = [];
|
|
367
|
-
for (;; ) {
|
|
368
|
-
const { done, value } = await reader.read();
|
|
369
|
-
if (done)
|
|
370
|
-
break;
|
|
371
|
-
if (value)
|
|
372
|
-
chunks.push(value);
|
|
373
|
-
}
|
|
374
|
-
const total = chunks.reduce((acc, c) => acc + c.byteLength, 0);
|
|
375
|
-
const out = new Uint8Array(total);
|
|
376
|
-
let off = 0;
|
|
377
|
-
for (const c of chunks) {
|
|
378
|
-
out.set(c, off);
|
|
379
|
-
off += c.byteLength;
|
|
447
|
+
let mode;
|
|
448
|
+
let collected;
|
|
449
|
+
const collect = () => {
|
|
450
|
+
if (mode === "reader") {
|
|
451
|
+
return Promise.reject(new TypeError("Subprocess output is already consumed by a reader"));
|
|
380
452
|
}
|
|
381
|
-
|
|
453
|
+
mode = "buffered";
|
|
454
|
+
collected ??= (async () => {
|
|
455
|
+
if (typeof candidate.getReader !== "function")
|
|
456
|
+
return new Uint8Array(0);
|
|
457
|
+
const reader = candidate.getReader();
|
|
458
|
+
const chunks = [];
|
|
459
|
+
let captured = 0;
|
|
460
|
+
let total = 0;
|
|
461
|
+
try {
|
|
462
|
+
for (;; ) {
|
|
463
|
+
const { done, value } = await reader.read();
|
|
464
|
+
if (done)
|
|
465
|
+
break;
|
|
466
|
+
if (!value)
|
|
467
|
+
continue;
|
|
468
|
+
total += value.byteLength;
|
|
469
|
+
if (controller?.error || limit === undefined)
|
|
470
|
+
continue;
|
|
471
|
+
const remaining = limit - captured;
|
|
472
|
+
if (remaining > 0) {
|
|
473
|
+
const retained = value.slice(0, remaining);
|
|
474
|
+
chunks.push(retained);
|
|
475
|
+
captured += retained.byteLength;
|
|
476
|
+
}
|
|
477
|
+
if (value.byteLength > remaining) {
|
|
478
|
+
controller?.overflow(captured, total);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
} finally {
|
|
482
|
+
reader.releaseLock();
|
|
483
|
+
}
|
|
484
|
+
await controller?.completed;
|
|
485
|
+
if (controller?.error)
|
|
486
|
+
throw controller.error;
|
|
487
|
+
const out = new Uint8Array(captured);
|
|
488
|
+
let offset = 0;
|
|
489
|
+
for (const chunk of chunks) {
|
|
490
|
+
out.set(chunk, offset);
|
|
491
|
+
offset += chunk.byteLength;
|
|
492
|
+
}
|
|
493
|
+
return out;
|
|
494
|
+
})();
|
|
495
|
+
return collected;
|
|
382
496
|
};
|
|
383
|
-
const
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
497
|
+
const result = {
|
|
498
|
+
async text() {
|
|
499
|
+
return new TextDecoder().decode(await collect());
|
|
500
|
+
},
|
|
501
|
+
bytes: collect,
|
|
502
|
+
getReader() {
|
|
503
|
+
if (mode !== undefined) {
|
|
504
|
+
throw new TypeError("Subprocess output is already consumed");
|
|
505
|
+
}
|
|
506
|
+
mode = "reader";
|
|
507
|
+
return typeof candidate.getReader === "function" ? candidate.getReader() : new ReadableStream({
|
|
508
|
+
start(streamController) {
|
|
509
|
+
streamController.close();
|
|
510
|
+
}
|
|
511
|
+
}).getReader();
|
|
388
512
|
}
|
|
389
|
-
}
|
|
390
|
-
|
|
513
|
+
};
|
|
514
|
+
if (typeof candidate.getReader === "function" && controller && limit !== undefined) {
|
|
515
|
+
queueMicrotask(() => {
|
|
516
|
+
if (mode === undefined)
|
|
517
|
+
collect().catch(() => {
|
|
518
|
+
return;
|
|
519
|
+
});
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
return result;
|
|
391
523
|
}
|
|
392
524
|
function mergeEnvForChild(baseEnv, envOverrides) {
|
|
393
525
|
const hasExplicitBaseEnv = baseEnv !== undefined;
|
|
@@ -448,11 +580,13 @@ function spawnCreationFailure(error) {
|
|
|
448
580
|
};
|
|
449
581
|
}
|
|
450
582
|
function bunSpawn(cmd, options) {
|
|
583
|
+
const maxBuffer = normalizedMaxBuffer(options?.maxBuffer);
|
|
451
584
|
const bun = getBun();
|
|
452
585
|
if (bun?.spawn) {
|
|
453
586
|
const mergedEnv2 = mergeEnvForChild(options?.env, options?.envOverrides);
|
|
454
587
|
const spawnOpts = { ...options };
|
|
455
588
|
delete spawnOpts.killProcessTree;
|
|
589
|
+
delete spawnOpts.maxBuffer;
|
|
456
590
|
if (mergedEnv2 !== undefined)
|
|
457
591
|
spawnOpts.env = mergedEnv2;
|
|
458
592
|
if (options?.timeout && options.timeout > 0 && options.killProcessTree !== true) {
|
|
@@ -472,6 +606,11 @@ function bunSpawn(cmd, options) {
|
|
|
472
606
|
const proc2 = spawned;
|
|
473
607
|
const killBunTree = createProcessTreeKiller(proc2.pid, (sig) => proc2.kill(sig), true);
|
|
474
608
|
const killBunProcess = (sig) => options?.killProcessTree ? killBunTree(sig) : Promise.resolve(proc2.kill(sig));
|
|
609
|
+
const outputController2 = createOutputOverflowController(maxBuffer, () => {
|
|
610
|
+
killBunProcess("SIGKILL").catch(() => {
|
|
611
|
+
return;
|
|
612
|
+
});
|
|
613
|
+
});
|
|
475
614
|
let timeoutHandle2;
|
|
476
615
|
if (options?.killProcessTree === true && options.timeout && options.timeout > 0) {
|
|
477
616
|
timeoutHandle2 = setTimeout(() => {
|
|
@@ -487,10 +626,11 @@ function bunSpawn(cmd, options) {
|
|
|
487
626
|
const exited2 = proc2.exited.finally(() => {
|
|
488
627
|
if (timeoutHandle2 !== undefined)
|
|
489
628
|
clearTimeout(timeoutHandle2);
|
|
629
|
+
outputController2.complete();
|
|
490
630
|
});
|
|
491
631
|
return {
|
|
492
|
-
stdout: streamFromBun(proc2.stdout),
|
|
493
|
-
stderr: streamFromBun(proc2.stderr),
|
|
632
|
+
stdout: streamFromBun(proc2.stdout, maxBuffer, outputController2),
|
|
633
|
+
stderr: streamFromBun(proc2.stderr, maxBuffer, outputController2),
|
|
494
634
|
exited: exited2,
|
|
495
635
|
get exitCode() {
|
|
496
636
|
return proc2.exitCode;
|
|
@@ -533,6 +673,11 @@ function bunSpawn(cmd, options) {
|
|
|
533
673
|
proc.kill(signal);
|
|
534
674
|
return Promise.resolve();
|
|
535
675
|
};
|
|
676
|
+
const outputController = createOutputOverflowController(maxBuffer, () => {
|
|
677
|
+
killChild("SIGKILL").catch(() => {
|
|
678
|
+
return;
|
|
679
|
+
});
|
|
680
|
+
});
|
|
536
681
|
let timeoutHandle;
|
|
537
682
|
let observedSignal = null;
|
|
538
683
|
let observedSpawnError = null;
|
|
@@ -560,10 +705,11 @@ function bunSpawn(cmd, options) {
|
|
|
560
705
|
}).finally(() => {
|
|
561
706
|
if (timeoutHandle !== undefined)
|
|
562
707
|
clearTimeout(timeoutHandle);
|
|
708
|
+
outputController.complete();
|
|
563
709
|
});
|
|
564
710
|
return {
|
|
565
|
-
stdout: streamFromNode(proc.stdout),
|
|
566
|
-
stderr: streamFromNode(proc.stderr),
|
|
711
|
+
stdout: streamFromNode(proc.stdout, maxBuffer, outputController),
|
|
712
|
+
stderr: streamFromNode(proc.stderr, maxBuffer, outputController),
|
|
567
713
|
exited,
|
|
568
714
|
get exitCode() {
|
|
569
715
|
return observedSpawnError ? null : proc.exitCode;
|
|
@@ -596,7 +742,10 @@ function bunSpawnSync(cmd, options) {
|
|
|
596
742
|
const bun = getBun();
|
|
597
743
|
if (bun?.spawnSync) {
|
|
598
744
|
const mergedEnv2 = mergeEnvForChild(options?.env, options?.envOverrides);
|
|
599
|
-
const spawnOpts =
|
|
745
|
+
const spawnOpts = { ...options };
|
|
746
|
+
delete spawnOpts.maxBuffer;
|
|
747
|
+
if (mergedEnv2 !== undefined)
|
|
748
|
+
spawnOpts.env = mergedEnv2;
|
|
600
749
|
try {
|
|
601
750
|
return bun.spawnSync(cmd, spawnOpts);
|
|
602
751
|
} catch (error) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-bm5xrfnx.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-
|
|
12
|
+
} from "./index-ssx8087p.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-9ttqbhvw.js";
|
|
16
16
|
import {
|
|
17
17
|
atomicWriteFile
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-bx1wgn3a.js";
|
|
19
19
|
import {
|
|
20
20
|
require_proper_lockfile
|
|
21
21
|
} from "./index-7g4c7s5r.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
computePlanStructureHash
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-pw00xcj0.js";
|
|
5
5
|
import {
|
|
6
6
|
appendCoreEventSync
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-fgp96k3r.js";
|
|
8
8
|
import {
|
|
9
9
|
deleteCoordinationState,
|
|
10
10
|
derivePlanId,
|
|
@@ -13,27 +13,27 @@ import {
|
|
|
13
13
|
transitionCoordinationState,
|
|
14
14
|
transitionCoordinationStateWithinTransaction,
|
|
15
15
|
withCoordinationTransaction
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-bernkwgf.js";
|
|
17
17
|
import {
|
|
18
18
|
getProjectDb
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-dvbf6fpn.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-
|
|
26
|
+
} from "./index-bx1wgn3a.js";
|
|
27
27
|
import {
|
|
28
28
|
require_proper_lockfile
|
|
29
29
|
} from "./index-7g4c7s5r.js";
|
|
30
30
|
import {
|
|
31
31
|
atomicWriteSwarmFile,
|
|
32
32
|
atomicWriteSwarmFileSync
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-nbdmdyke.js";
|
|
34
34
|
import {
|
|
35
35
|
PlanSchema
|
|
36
|
-
} from "./index-
|
|
36
|
+
} from "./index-td6xrw55.js";
|
|
37
37
|
import {
|
|
38
38
|
init_path_identity,
|
|
39
39
|
unsafePathTextReason
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readKnowledge,
|
|
4
4
|
transactKnowledge
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-ssx8087p.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveKnowledgeStoreDir
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-9ttqbhvw.js";
|
|
9
9
|
import {
|
|
10
10
|
init_git_executable,
|
|
11
11
|
resolveGitExecutableAsync
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
EvaluationRunV1Schema,
|
|
4
4
|
GateAuditResultV1Schema,
|
|
5
5
|
getProtectedEvaluationRunIds
|
|
6
|
-
} from "./index-
|
|
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-
|
|
26
|
+
} from "./index-06rbdzqn.js";
|
|
27
27
|
import {
|
|
28
28
|
estimateCharsForTokens,
|
|
29
29
|
estimateTokens,
|
|
30
30
|
readSwarmFileAsync,
|
|
31
31
|
validateSwarmPath
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-b3pmzbh1.js";
|
|
33
33
|
import {
|
|
34
34
|
bunHash,
|
|
35
35
|
bunWrite,
|
|
36
36
|
mergeEnvForChild
|
|
37
|
-
} from "./index-
|
|
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-
|
|
61
|
+
} from "./index-pw00xcj0.js";
|
|
62
62
|
import {
|
|
63
63
|
appendCoreEventSync
|
|
64
|
-
} from "./index-
|
|
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-
|
|
72
|
+
} from "./index-bernkwgf.js";
|
|
73
73
|
import {
|
|
74
74
|
DURABILITY_CLASSES,
|
|
75
75
|
getProjectDb,
|
|
76
76
|
projectDbExists,
|
|
77
77
|
withDurabilityClass
|
|
78
|
-
} from "./index-
|
|
78
|
+
} from "./index-dvbf6fpn.js";
|
|
79
79
|
import {
|
|
80
80
|
assertProjectRoot,
|
|
81
81
|
tryAcquireLock,
|
|
82
82
|
withEvidenceLock
|
|
83
|
-
} from "./index-
|
|
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-
|
|
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-
|
|
97
|
+
} from "./index-td6xrw55.js";
|
|
98
98
|
import {
|
|
99
99
|
GIT_BINARY_ENV_VAR,
|
|
100
100
|
describeGitResolution,
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
init_executor,
|
|
110
110
|
isUntrustedEnvKey,
|
|
111
111
|
isValidEnvKey
|
|
112
|
-
} from "./index-
|
|
112
|
+
} from "./index-76qm2c2y.js";
|
|
113
113
|
import {
|
|
114
114
|
criticalWarn,
|
|
115
115
|
error,
|
|
@@ -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.
|
|
24
|
+
version: "7.170.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 };
|