opencode-swarm 7.167.2 → 7.168.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/cli/{coder-settlement-jy9rad28.js → coder-settlement-54a3d97g.js} +12 -12
- package/dist/cli/{config-doctor-p66vnpy3.js → config-doctor-vzp6b3ng.js} +3 -3
- package/dist/cli/{core-tw0wtntz.js → core-yynse50x.js} +2 -2
- package/dist/cli/{curation-policy-ndp27v0c.js → curation-policy-mgwv8h2k.js} +5 -5
- package/dist/cli/{curator-5nzde80g.js → curator-agdhhzqt.js} +38 -38
- package/dist/cli/{curator-drift-gb651hcw.js → curator-drift-k0zrnm09.js} +5 -5
- package/dist/cli/curator-llm-factory-ygxd6hfx.js +71 -0
- package/dist/cli/{evidence-summary-service-bzpfaypy.js → evidence-summary-service-6mmcekr7.js} +17 -17
- package/dist/cli/{gate-evidence-wa8cj8h6.js → gate-evidence-xqvkqhrk.js} +7 -7
- package/dist/cli/guardrail-explain-vjtjhgzs.js +72 -0
- package/dist/cli/{guardrail-log-7dv73e0q.js → guardrail-log-5wa5c77w.js} +8 -8
- package/dist/cli/{guardrail-reset-1kng6y8x.js → guardrail-reset-dh78tbcf.js} +38 -38
- package/dist/cli/{hive-promoter-87kk2pg5.js → hive-promoter-3czsx7c6.js} +38 -38
- package/dist/cli/{index-18rfc7qv.js → index-2xbww1x0.js} +7 -7
- package/dist/cli/{index-3ws11dq0.js → index-3jmb4ppa.js} +2 -2
- package/dist/cli/{index-79234evf.js → index-4kv1ew3q.js} +1 -1
- package/dist/cli/{index-vgpedapd.js → index-4r5pmtvk.js} +2 -2
- package/dist/cli/{index-rrne6g2m.js → index-5g6rhkn7.js} +6 -2
- package/dist/cli/{index-m7cwnt9r.js → index-5zqakgp4.js} +2 -2
- package/dist/cli/{index-m3z83nhs.js → index-6df6wbvj.js} +8 -8
- package/dist/cli/{index-0q839sg6.js → index-8ybjqg51.js} +1 -1
- package/dist/cli/{index-wjet7x0a.js → index-91ww9hyr.js} +1 -1
- package/dist/cli/{index-pdcperq5.js → index-9b2105n0.js} +2 -2
- package/dist/cli/{index-z6we1abx.js → index-a8xbvsse.js} +2 -2
- package/dist/cli/{index-2b1hd1fx.js → index-apy1qfj0.js} +13 -4
- package/dist/cli/{index-gmjg65tm.js → index-bvqqwx84.js} +2 -2
- package/dist/cli/{index-ce8p9t28.js → index-bw9x8d8n.js} +5 -5
- package/dist/cli/{index-dme7wvwg.js → index-chebm5h5.js} +4 -4
- package/dist/cli/{index-mtepgqan.js → index-dfyv3xkd.js} +7 -7
- package/dist/cli/{index-sjkg2hc4.js → index-f1fps3w9.js} +6 -6
- package/dist/cli/index-gh9ybrrs.js +2008 -0
- package/dist/cli/{index-3r6k6qa7.js → index-gmpmgtzn.js} +4 -4
- package/dist/cli/{index-83r0v5tn.js → index-gp9yzr1v.js} +1 -1
- package/dist/cli/{index-962qme08.js → index-h439y187.js} +1 -1
- package/dist/cli/{index-5sjq3shs.js → index-j0bxxz9d.js} +8 -8
- package/dist/cli/{index-8vbahc4c.js → index-kear8gb7.js} +11 -6
- package/dist/cli/{index-y1sj2e1n.js → index-kkmezerc.js} +2094 -1686
- package/dist/cli/{index-syedr4e3.js → index-m35hybf0.js} +1 -1
- package/dist/cli/{index-f8cc92g7.js → index-nwwk3dej.js} +1 -1
- package/dist/cli/{index-g409c7ke.js → index-pyf517sz.js} +2 -2
- package/dist/cli/{index-ehq2vtkq.js → index-q8091q8b.js} +4 -4
- package/dist/cli/{index-k73ehxa1.js → index-qhey6vc3.js} +1 -1
- package/dist/cli/{index-09gv90d7.js → index-qkwtth00.js} +2 -2
- package/dist/cli/{index-shrf0wt3.js → index-qthc56c4.js} +4 -4
- package/dist/cli/{index-gs12223x.js → index-qwsh0h2g.js} +2 -2
- package/dist/cli/{index-n4fzmqz8.js → index-rdm3px0g.js} +4 -2
- package/dist/cli/{index-g5m43paw.js → index-sxt7fgcw.js} +1 -0
- package/dist/cli/{index-x7pm61wk.js → index-v3xc4sde.js} +9 -8
- package/dist/cli/{index-arqv4psy.js → index-w1dfkp1q.js} +57 -101
- package/dist/cli/{index-25xeyjfx.js → index-w3x1dmrf.js} +38 -38
- package/dist/cli/{index-hhkm64wh.js → index-wst6n478.js} +103 -3
- package/dist/cli/{index-f91fhch0.js → index-xhb4gryr.js} +4 -4
- package/dist/cli/{index-s7a9dqtb.js → index-xkf3672y.js} +4 -3
- package/dist/cli/{index-jhd3pmd1.js → index-y85aptep.js} +7 -7
- package/dist/cli/{index-65s0vgb1.js → index-yt9n9zt3.js} +40 -40
- package/dist/cli/{index-tcj8v6my.js → index-z6qreakh.js} +6 -6
- package/dist/cli/index.js +38 -38
- package/dist/cli/{knowledge-escalator-5e4zxan5.js → knowledge-escalator-135dz4eh.js} +13 -13
- package/dist/cli/{knowledge-events-abzm5vfh.js → knowledge-events-27gwv47q.js} +11 -11
- package/dist/cli/{knowledge-link-9ga6hyd5.js → knowledge-link-dr3xnwyd.js} +4 -4
- package/dist/cli/{knowledge-store-q4a92eq7.js → knowledge-store-80m44bfw.js} +5 -5
- package/dist/cli/{knowledge-validator-pn3m5r41.js → knowledge-validator-crsfb2cc.js} +7 -7
- package/dist/cli/{model-preflight-mw895vgt.js → model-preflight-1ycat9jz.js} +1 -1
- package/dist/cli/{pending-delegations-3z0xjppd.js → pending-delegations-gwgjzzkz.js} +12 -12
- package/dist/cli/{pr-subscriptions-h7mwnp62.js → pr-subscriptions-g633nhz4.js} +12 -12
- package/dist/cli/{pr-workflow-gate-fec04fa0.js → pr-workflow-gate-4dc5nt2e.js} +38 -38
- package/dist/cli/{runner-d9833azt.js → runner-k0ycgv8x.js} +5 -5
- package/dist/cli/{scan-cursor-ymfvzdkz.js → scan-cursor-avxjsm4w.js} +6 -6
- package/dist/cli/{schema-chc4aez6.js → schema-3ja77k4y.js} +4 -2
- package/dist/cli/{scope-persistence-3xnr59y8.js → scope-persistence-f540tc50.js} +16 -16
- package/dist/cli/{skill-generator-3mvaghxk.js → skill-generator-kcqqpg1g.js} +15 -15
- package/dist/cli/{snapshot-coordination-init-arnc77r9.js → snapshot-coordination-init-e4s8bn4p.js} +38 -38
- package/dist/cli/{sqlite-loader-xrnf6bq8.js → sqlite-loader-amp9z7ty.js} +1 -1
- package/dist/cli/{telemetry-g9pppt9e.js → telemetry-2wzapf11.js} +1 -1
- package/dist/cli/{workspace-snapshot-hvsjtepd.js → workspace-snapshot-rkgxhj9b.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-vj8anvb7.js → worktree-collision-ownership-rk9gz638.js} +13 -13
- package/dist/cli/{worktree-isolation-mt7z75hz.js → worktree-isolation-1bdzfgky.js} +38 -38
- package/dist/commands/reset.d.ts +10 -0
- package/dist/commands/rollback.d.ts +9 -0
- package/dist/config/schema.d.ts +29 -0
- package/dist/db/project-db.d.ts +8 -0
- package/dist/db/sqlite-loader.d.ts +2 -1
- package/dist/dispatch/spawn-circuit.d.ts +121 -0
- package/dist/dispatch/token-bucket.d.ts +46 -0
- package/dist/hooks/delegation-gate/dead-lane-reclaim.d.ts +61 -0
- package/dist/hooks/delegation-gate/worktree-isolation.d.ts +22 -0
- package/dist/hooks/issue-trace.d.ts +3 -0
- package/dist/hooks/utils.d.ts +1 -1
- package/dist/index.js +657 -572
- package/dist/plan/ledger-sqlite.d.ts +226 -0
- package/dist/plan/ledger.d.ts +24 -0
- package/dist/plan/manager.d.ts +19 -0
- package/dist/retention/sweep.d.ts +2 -0
- package/dist/services/spec-drift-recovery.d.ts +2 -1
- package/dist/utils/ephemeral-session-teardown.d.ts +55 -2
- package/opencode-swarm.schema.json +41 -0
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-xy96x5x8.js +0 -71
- package/dist/cli/guardrail-explain-1ef5he6j.js +0 -72
- package/dist/cli/index-z7z3g5wt.js +0 -1017
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
autoCommitDirty,
|
|
4
4
|
cleanUntrackedFiles
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-qkwtth00.js";
|
|
6
6
|
import {
|
|
7
7
|
validateSwarmPath
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-kear8gb7.js";
|
|
9
9
|
import {
|
|
10
10
|
bunSpawn,
|
|
11
11
|
classifySpawnFailure
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
atomicWriteFile,
|
|
16
16
|
taskEvidencePath,
|
|
17
17
|
withTaskEvidenceLock
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-4r5pmtvk.js";
|
|
19
19
|
import {
|
|
20
20
|
telemetry
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-z6qreakh.js";
|
|
22
22
|
import {
|
|
23
23
|
init_git_executable,
|
|
24
24
|
resolveGitExecutable
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
captureWorkspaceSnapshotAsync,
|
|
4
4
|
changedFilesSinceSnapshotAsync
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-5zqakgp4.js";
|
|
6
6
|
import {
|
|
7
7
|
removeWorktreeProvisioningOwner
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-bvqqwx84.js";
|
|
9
9
|
import {
|
|
10
10
|
SOURCE_WORKTREE_GONE_STAGE,
|
|
11
11
|
ensureTaskGateRequirementsReceiptForSettledTransition,
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
reconcileLandedMerge,
|
|
15
15
|
withTaskEvidenceTransaction,
|
|
16
16
|
writeWorkflowWalFile
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-gmpmgtzn.js";
|
|
18
18
|
import {
|
|
19
19
|
validateSwarmPath
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-kear8gb7.js";
|
|
21
21
|
import {
|
|
22
22
|
appendCoreEventSync
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-a8xbvsse.js";
|
|
24
24
|
import {
|
|
25
25
|
tryAcquireLock
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-4r5pmtvk.js";
|
|
27
27
|
import {
|
|
28
28
|
canonicalRootKeyFresh
|
|
29
29
|
} from "./index-1xnse449.js";
|
|
@@ -489,7 +489,7 @@ async function cleanupRecoveredWorktree(directory, descriptor) {
|
|
|
489
489
|
awaitingMergeByCallID,
|
|
490
490
|
cleanupStandardWorktreeForCallId,
|
|
491
491
|
standardWorktreeByCallID
|
|
492
|
-
} = await import("./worktree-isolation-
|
|
492
|
+
} = await import("./worktree-isolation-1bdzfgky.js");
|
|
493
493
|
standardWorktreeByCallID.delete(descriptor.callID);
|
|
494
494
|
if (hasResidue)
|
|
495
495
|
awaitingMergeByCallID.set(descriptor.callID, {
|
|
@@ -613,7 +613,7 @@ async function recoverCoderSettlement(directory, taskId) {
|
|
|
613
613
|
awaitingMergeByCallID,
|
|
614
614
|
finishStandardWorktreeDispatch,
|
|
615
615
|
standardWorktreeByCallID
|
|
616
|
-
} = await import("./worktree-isolation-
|
|
616
|
+
} = await import("./worktree-isolation-1bdzfgky.js");
|
|
617
617
|
const descriptor = wal.worktree;
|
|
618
618
|
const reconstructedDispatch = {
|
|
619
619
|
callID: descriptor.callID,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
readCachedTextFile,
|
|
8
8
|
wasObservedToExist,
|
|
9
9
|
wasRecentlyWrittenByThisProcess
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-v3xc4sde.js";
|
|
11
11
|
import {
|
|
12
12
|
SwarmError
|
|
13
13
|
} from "./index-ee6ydtfe.js";
|
|
@@ -132,14 +132,14 @@ function isPathWithin(candidate, base) {
|
|
|
132
132
|
}
|
|
133
133
|
return normalizedCandidate === normalizedBase || normalizedCandidate.startsWith(`${normalizedBase}${path.sep}`);
|
|
134
134
|
}
|
|
135
|
-
async function readSwarmFileAsync(directory, filename, cache) {
|
|
136
|
-
if (cache !== undefined) {
|
|
135
|
+
async function readSwarmFileAsync(directory, filename, cache, reader, useArtifactCache = true) {
|
|
136
|
+
if (cache !== undefined && useArtifactCache) {
|
|
137
137
|
const key = `${directory}::${filename}`;
|
|
138
138
|
const cached = cache.get(key);
|
|
139
139
|
if (cached !== undefined) {
|
|
140
140
|
return cached;
|
|
141
141
|
}
|
|
142
|
-
const promise = readSwarmFileAsync(directory, filename);
|
|
142
|
+
const promise = readSwarmFileAsync(directory, filename, undefined, reader, useArtifactCache);
|
|
143
143
|
cache.set(key, promise);
|
|
144
144
|
return promise;
|
|
145
145
|
}
|
|
@@ -150,12 +150,17 @@ async function readSwarmFileAsync(directory, filename, cache) {
|
|
|
150
150
|
let resolvedPath = "";
|
|
151
151
|
try {
|
|
152
152
|
resolvedPath = _internals.validateSwarmPath(directory, filename);
|
|
153
|
-
|
|
153
|
+
const read = async () => {
|
|
154
|
+
if (reader !== undefined)
|
|
155
|
+
return reader(resolvedPath);
|
|
154
156
|
const file = bunFile(resolvedPath);
|
|
155
157
|
return await file.text();
|
|
156
|
-
}
|
|
158
|
+
};
|
|
159
|
+
return useArtifactCache ? await _internals.readCachedTextFile(resolvedPath, read) : await read();
|
|
157
160
|
} catch (err) {
|
|
158
161
|
const code = err?.code;
|
|
162
|
+
if (reader !== undefined && (code === undefined || code === "ERR_ENCODING_INVALID_ENCODED_DATA"))
|
|
163
|
+
throw err;
|
|
159
164
|
if (code === "ENOENT") {
|
|
160
165
|
const retryWorthy = resolvedPath !== "" && (wasRecentlyWrittenByThisProcess(resolvedPath, RECENT_WRITE_WINDOW_MS) || wasObservedToExist(resolvedPath));
|
|
161
166
|
if (!retryWorthy)
|