opencode-swarm 7.173.1 → 7.175.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-review/references/findings-persistence-contract.md +37 -0
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/agents/critic.d.ts +44 -2
- package/dist/background/pending-delegations.d.ts +10 -0
- package/dist/background/pr-review-contract.d.ts +27 -0
- package/dist/background/stage-b-gates.d.ts +29 -0
- package/dist/background/status-artifact.d.ts +24 -1
- package/dist/cli/{coder-settlement-kxxmd9jt.js → coder-settlement-f2n9yp7a.js} +11 -11
- package/dist/cli/{config-doctor-nzcya5zr.js → config-doctor-zcyz614n.js} +2 -2
- package/dist/cli/{core-s9a9kmcc.js → core-jar8cmzf.js} +3 -3
- package/dist/cli/{curation-policy-tx4kb30e.js → curation-policy-e5p147bb.js} +5 -5
- package/dist/cli/{curator-jkp8558s.js → curator-3xfz7wdp.js} +36 -36
- package/dist/cli/{curator-drift-047n8fjw.js → curator-drift-x3tt8apf.js} +4 -4
- package/dist/cli/curator-llm-factory-rc7cqtx8.js +72 -0
- package/dist/cli/{evidence-summary-service-ek50h5b3.js → evidence-summary-service-bpe04ngj.js} +15 -15
- package/dist/cli/{gate-evidence-8dk50ten.js → gate-evidence-pyzzafp3.js} +6 -6
- package/dist/cli/guardrail-explain-ncrw7k8h.js +73 -0
- package/dist/cli/{guardrail-log-hq5xpm7g.js → guardrail-log-nn2t8xyd.js} +7 -7
- package/dist/cli/{guardrail-reset-gttz1y0h.js → guardrail-reset-3c3c7e5e.js} +36 -36
- package/dist/cli/{hive-promoter-44p7ng87.js → hive-promoter-xfbabpnm.js} +36 -36
- package/dist/cli/{index-53c0ajk4.js → index-20q20gpd.js} +1 -1
- package/dist/cli/{index-m51cmzxt.js → index-2dv07mw2.js} +1 -1
- package/dist/cli/{index-fnx0jzf7.js → index-2xwavnbg.js} +1 -1
- package/dist/cli/{index-62pcs7jg.js → index-4rm5saxs.js} +3 -3
- package/dist/cli/{index-za1kvsa0.js → index-5t71wd7j.js} +2 -2
- package/dist/cli/{index-dktpzjy9.js → index-6tbnev6y.js} +1 -1
- package/dist/cli/{index-1xfxzjq9.js → index-6yqszgky.js} +2 -2
- package/dist/cli/{index-pynk60z5.js → index-8bbhh3kx.js} +8 -8
- package/dist/cli/{index-bsnpv4xd.js → index-8tn4yx8b.js} +2 -2
- package/dist/cli/{index-mt8pbzda.js → index-96hz14wr.js} +12 -12
- package/dist/cli/{index-z35ynvj4.js → index-98r0bh1c.js} +1 -1
- package/dist/cli/{index-psb9rxt8.js → index-9gpe25nr.js} +5 -5
- package/dist/cli/{index-wf3s2t1t.js → index-ar3ve24w.js} +3005 -2328
- package/dist/cli/{index-dx9pz5n6.js → index-bmk77mpq.js} +7 -7
- package/dist/cli/{index-ndvgkxpf.js → index-c60t3sw6.js} +2 -2
- package/dist/cli/{index-43dmpa9w.js → index-cpgh76bk.js} +2 -2
- package/dist/cli/{index-evf5r7bk.js → index-czhbsgdh.js} +1 -1
- package/dist/cli/{index-j0vvq8se.js → index-d0wq7paf.js} +7 -7
- package/dist/cli/{index-cm0339fe.js → index-ddvva9fn.js} +4 -4
- package/dist/cli/{index-mjqjbq94.js → index-fzvh6trw.js} +11 -11
- package/dist/cli/{index-pjw95rxm.js → index-gtej1br8.js} +65 -10
- package/dist/cli/{index-c5nrcde1.js → index-hdwdapp6.js} +38 -38
- package/dist/cli/{index-m53v442a.js → index-hej0z0sm.js} +36 -36
- package/dist/cli/{index-r93ptj7j.js → index-hqmr21qx.js} +19 -1
- package/dist/cli/{index-18b9snn6.js → index-j1yd2gbz.js} +6 -6
- package/dist/cli/{index-kdyvk541.js → index-jgkva4r4.js} +2 -2
- package/dist/cli/{index-0dfhahxm.js → index-jj09bfnn.js} +2 -2
- package/dist/cli/{index-hhws1xkc.js → index-jn3m9s61.js} +1 -1
- package/dist/cli/{index-wr4m11x4.js → index-kj7h2yfv.js} +1 -1
- package/dist/cli/{index-6z404f7y.js → index-m6bsy0jb.js} +4 -4
- package/dist/cli/{index-90qbc4rp.js → index-mat5rawf.js} +11 -3
- package/dist/cli/{index-samx6zgc.js → index-n5jac8z9.js} +1 -1
- package/dist/cli/{index-r8g2meas.js → index-nr96hbpy.js} +5 -3
- package/dist/cli/{index-yeehyat1.js → index-ppb5krpy.js} +2 -2
- package/dist/cli/{index-jmn35na4.js → index-qz6ee73z.js} +3 -3
- package/dist/cli/{index-7gkdxs00.js → index-tr9jz898.js} +7 -7
- package/dist/cli/{index-yzwb6ja4.js → index-vqjkr1kd.js} +1 -1
- package/dist/cli/{index-p36b6t7w.js → index-vt9a5rbg.js} +16 -9
- package/dist/cli/{index-vwnd2szd.js → index-yk3es7m2.js} +22 -13
- package/dist/cli/{index-gwtb07gc.js → index-zpygn1tn.js} +3 -3
- package/dist/cli/{index-gwz9p53s.js → index-zz40vfbz.js} +2 -2
- package/dist/cli/index.js +37 -37
- package/dist/cli/{knowledge-escalator-ttp4x29h.js → knowledge-escalator-2zjpwg0q.js} +12 -12
- package/dist/cli/{knowledge-events-dx9mjgqb.js → knowledge-events-gp2ckzqm.js} +10 -10
- package/dist/cli/{knowledge-link-f7bhq7cx.js → knowledge-link-s77cyqxk.js} +4 -4
- package/dist/cli/{knowledge-store-6sq9rxma.js → knowledge-store-kd88k067.js} +5 -5
- package/dist/cli/{knowledge-validator-h49dkw2z.js → knowledge-validator-22t16mba.js} +7 -7
- package/dist/cli/{mcp-kd7w2572.js → mcp-1fjc89yp.js} +1 -1
- package/dist/cli/{pending-delegations-n4qyymj2.js → pending-delegations-k4hfqz12.js} +11 -11
- package/dist/cli/{pr-subscriptions-n8vkm5mv.js → pr-subscriptions-8g6w41vz.js} +11 -11
- package/dist/cli/{pr-workflow-gate-j67jhtzt.js → pr-workflow-gate-kb3e709n.js} +42 -36
- package/dist/cli/{runner-58k70bnr.js → runner-nzppg2ky.js} +5 -5
- package/dist/cli/{scan-cursor-sz8ncpw2.js → scan-cursor-erm49azh.js} +6 -6
- package/dist/cli/{schema-70c0yw8p.js → schema-kts10txe.js} +5 -1
- package/dist/cli/{scope-persistence-0dzyv0vt.js → scope-persistence-krnvsmsz.js} +14 -14
- package/dist/cli/{server-njmemwbm.js → server-9bqh036q.js} +36 -36
- package/dist/cli/{skill-generator-kf5yqmvk.js → skill-generator-7q75h2kr.js} +14 -14
- package/dist/cli/{snapshot-coordination-init-ezf5xqy2.js → snapshot-coordination-init-bw9mn21x.js} +36 -36
- package/dist/cli/{telemetry-zed80n86.js → telemetry-7bk8ps5p.js} +1 -1
- package/dist/cli/{workspace-snapshot-62be4368.js → workspace-snapshot-6aw002e8.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-fe176vyv.js → worktree-collision-ownership-ajagwzh8.js} +12 -12
- package/dist/cli/{worktree-isolation-c0b1h3f1.js → worktree-isolation-rmqp04fx.js} +36 -36
- package/dist/commands/registry.d.ts +1 -1
- package/dist/config/index.d.ts +2 -2
- package/dist/config/schema.d.ts +22 -8
- package/dist/events/core-events.d.ts +2 -0
- package/dist/evidence/task-gate-requirements.d.ts +24 -0
- package/dist/gate-evidence.d.ts +12 -0
- package/dist/hooks/pr-workflow-gate.d.ts +28 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +501 -488
- package/dist/parallel/review-router.d.ts +8 -2
- package/dist/pr-review/completion.d.ts +2 -1
- package/dist/pr-review/finding-policy.d.ts +194 -0
- package/dist/pr-review/types.d.ts +8 -0
- package/dist/review/routing-enforcement.d.ts +163 -0
- package/dist/session/snapshot-writer.d.ts +2 -0
- package/dist/state.d.ts +28 -0
- package/dist/tools/complete-pr-workflow.d.ts +2 -1
- package/dist/tools/dispatch-lanes.d.ts +29 -0
- package/dist/tools/tool-metadata.d.ts +16 -16
- package/dist/tools/update-task-status.d.ts +0 -10
- package/dist/tools/write-pr-review-artifact.d.ts +7 -0
- package/dist/workflow/coder-settlement.d.ts +7 -0
- package/dist/workflow/recovery-invocation.d.ts +35 -0
- package/dist/workflow/stage-a-repair.d.ts +17 -0
- package/dist/workflow/task-recovery-status.d.ts +61 -0
- package/opencode-swarm.schema.json +11 -0
- package/package.json +2 -1
- package/dist/cli/curator-llm-factory-dza1qtwr.js +0 -72
- package/dist/cli/guardrail-explain-s29vngen.js +0 -73
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
observeStoreHealth
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-cpgh76bk.js";
|
|
5
5
|
import {
|
|
6
6
|
telemetry
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-qz6ee73z.js";
|
|
8
8
|
import {
|
|
9
9
|
init_logger,
|
|
10
10
|
warn
|
|
@@ -152,7 +152,7 @@ var _internals = {
|
|
|
152
152
|
limits: CORE_EVENT_LIMITS,
|
|
153
153
|
emitHealth: emitCoreEventsHealth
|
|
154
154
|
};
|
|
155
|
-
function
|
|
155
|
+
function coreEventsFilePath(directory) {
|
|
156
156
|
return path.join(directory, ".swarm", "events.jsonl");
|
|
157
157
|
}
|
|
158
158
|
function lockFilePath(directory) {
|
|
@@ -354,7 +354,7 @@ function atomicReplace(directory, content) {
|
|
|
354
354
|
continue;
|
|
355
355
|
JSON.parse(line);
|
|
356
356
|
}
|
|
357
|
-
const finalPath =
|
|
357
|
+
const finalPath = coreEventsFilePath(directory);
|
|
358
358
|
const tmpPath = tmpPathFor(finalPath);
|
|
359
359
|
try {
|
|
360
360
|
if (_internals.existsSync(tmpPath)) {
|
|
@@ -469,7 +469,7 @@ function warnThrottled(message) {
|
|
|
469
469
|
warn(`core-events: ${message}`);
|
|
470
470
|
}
|
|
471
471
|
function readStoreFull(directory) {
|
|
472
|
-
const filePath =
|
|
472
|
+
const filePath = coreEventsFilePath(directory);
|
|
473
473
|
if (!_internals.existsSync(filePath)) {
|
|
474
474
|
return { manifest: null, lines: [], corruptLines: 0 };
|
|
475
475
|
}
|
|
@@ -512,7 +512,7 @@ function coverageFor(fileExists, lineCount, truncated) {
|
|
|
512
512
|
return truncated ? "truncated" : "complete";
|
|
513
513
|
}
|
|
514
514
|
function readCoreEvents(directory) {
|
|
515
|
-
const filePath =
|
|
515
|
+
const filePath = coreEventsFilePath(directory);
|
|
516
516
|
if (!_internals.existsSync(filePath)) {
|
|
517
517
|
return { text: "", truncated: false, coverage: "empty" };
|
|
518
518
|
}
|
|
@@ -538,7 +538,7 @@ function readCoreEvents(directory) {
|
|
|
538
538
|
return { text, truncated, coverage };
|
|
539
539
|
}
|
|
540
540
|
function getCoreEventCoverage(directory) {
|
|
541
|
-
const filePath =
|
|
541
|
+
const filePath = coreEventsFilePath(directory);
|
|
542
542
|
if (!_internals.existsSync(filePath))
|
|
543
543
|
return "empty";
|
|
544
544
|
const size = fileSizeOrZero(filePath);
|
|
@@ -556,7 +556,7 @@ function appendCoreEventSync(directory, event, options) {
|
|
|
556
556
|
if (lineBytes - 1 > _internals.limits.maxLineBytes) {
|
|
557
557
|
throw new Error(CORE_EVENT_LINE_TOO_LARGE);
|
|
558
558
|
}
|
|
559
|
-
const filePath =
|
|
559
|
+
const filePath = coreEventsFilePath(directory);
|
|
560
560
|
const swarmDir = path.join(directory, ".swarm");
|
|
561
561
|
if (options?.ensureSwarmDir === false) {
|
|
562
562
|
if (!_internals.existsSync(swarmDir)) {
|
|
@@ -614,7 +614,7 @@ function appendCoreEventsSync(directory, events, options) {
|
|
|
614
614
|
throw new Error(CORE_EVENT_LINE_TOO_LARGE);
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
const filePath =
|
|
617
|
+
const filePath = coreEventsFilePath(directory);
|
|
618
618
|
const swarmDir = path.join(directory, ".swarm");
|
|
619
619
|
if (options?.ensureSwarmDir === false) {
|
|
620
620
|
if (!_internals.existsSync(swarmDir)) {
|
|
@@ -706,7 +706,7 @@ function hasTaskRepairAuditEvent(directory, taskId, transitionId) {
|
|
|
706
706
|
return hasAuthorityEvent(directory, `repair|${taskId}|${transitionId}`, (e) => e.type === AUTHORITY_REPAIR && e.taskId === taskId && e.transitionId === transitionId);
|
|
707
707
|
}
|
|
708
708
|
function foldPass(directory, trigger, forceFull, preloadedAuthorityState) {
|
|
709
|
-
const filePath =
|
|
709
|
+
const filePath = coreEventsFilePath(directory);
|
|
710
710
|
if (!_internals.existsSync(filePath))
|
|
711
711
|
return;
|
|
712
712
|
const view = readStoreFull(directory);
|
|
@@ -819,7 +819,7 @@ function foldPass(directory, trigger, forceFull, preloadedAuthorityState) {
|
|
|
819
819
|
}
|
|
820
820
|
function runMaintenance(directory) {
|
|
821
821
|
try {
|
|
822
|
-
const filePath =
|
|
822
|
+
const filePath = coreEventsFilePath(directory);
|
|
823
823
|
if (!_internals.existsSync(filePath))
|
|
824
824
|
return;
|
|
825
825
|
const drainThreshold = _internals.limits.activeMaxBytes + _internals.limits.headerMaxBytes + 2048;
|
|
@@ -844,7 +844,7 @@ function runMaintenance(directory) {
|
|
|
844
844
|
}
|
|
845
845
|
function finalizeCoreEventsForClose(directory) {
|
|
846
846
|
try {
|
|
847
|
-
const filePath =
|
|
847
|
+
const filePath = coreEventsFilePath(directory);
|
|
848
848
|
if (!_internals.existsSync(filePath))
|
|
849
849
|
return;
|
|
850
850
|
withCoreEventStoreLock(directory, () => {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
queryHistoricalOutcomes,
|
|
4
4
|
readKnowledgeEvents,
|
|
5
5
|
recordKnowledgeEvent
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-8bbhh3kx.js";
|
|
7
7
|
import {
|
|
8
8
|
jaccardBigram,
|
|
9
9
|
readKnowledge,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveSwarmKnowledgePath,
|
|
12
12
|
transactKnowledge,
|
|
13
13
|
wordBigrams
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-d0wq7paf.js";
|
|
15
15
|
import {
|
|
16
16
|
init_knowledge_types,
|
|
17
17
|
isActiveStatus
|
|
@@ -224,11 +224,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
|
|
|
224
224
|
alreadyInactive: true
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
227
|
+
const { quarantineEntry } = await import("./knowledge-validator-22t16mba.js");
|
|
228
228
|
let policyConfig;
|
|
229
229
|
try {
|
|
230
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
231
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
230
|
+
const { KnowledgeConfigSchema } = await import("./schema-kts10txe.js");
|
|
231
|
+
const { loadPluginConfigWithMeta } = await import("./index-nr96hbpy.js");
|
|
232
232
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
233
233
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
234
234
|
} catch {
|