opencode-swarm 7.166.2 → 7.166.3
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-pv86n7n4.js → coder-settlement-nx8ff9k1.js} +11 -11
- package/dist/cli/{config-doctor-fy1aytwt.js → config-doctor-n9cjh11e.js} +2 -2
- package/dist/cli/{core-1d9vqbt4.js → core-cbwrwhcz.js} +1 -1
- package/dist/cli/{curation-policy-gnpgc3z7.js → curation-policy-bvxf5pxv.js} +9 -6
- package/dist/cli/{curator-a4rbehfr.js → curator-c7amtass.js} +37 -36
- package/dist/cli/{curator-drift-efmgp1v2.js → curator-drift-20m2ab5w.js} +4 -4
- package/dist/cli/curator-llm-factory-2gv6kt1v.js +71 -0
- package/dist/cli/{evidence-summary-service-dvp1kbm4.js → evidence-summary-service-5th3zm9c.js} +15 -15
- package/dist/cli/{gate-evidence-qf27gdfx.js → gate-evidence-py8v0w28.js} +6 -6
- package/dist/cli/guardrail-explain-qzhjhtyk.js +72 -0
- package/dist/cli/{guardrail-log-qhw3knjt.js → guardrail-log-rtdpk545.js} +7 -7
- package/dist/cli/{guardrail-reset-84ydxdg3.js → guardrail-reset-s27fehv6.js} +37 -36
- package/dist/cli/{hive-promoter-y2daybf6.js → hive-promoter-56mfysq6.js} +37 -36
- package/dist/cli/{index-0a0jsbhg.js → index-0jpv5z94.js} +1 -1
- package/dist/cli/{index-bysyj3z4.js → index-1aex5zd9.js} +1 -1
- package/dist/cli/{index-p0r5fn7y.js → index-251vrmge.js} +2 -2
- package/dist/cli/{index-sxsyd7kf.js → index-2c7eabkr.js} +6 -6
- package/dist/cli/{index-sxe3t040.js → index-2w0beg3s.js} +2 -2
- package/dist/cli/{index-kd68b6mg.js → index-3a2xznmd.js} +2 -2
- package/dist/cli/{index-9ccxcjdm.js → index-3f1tr4ha.js} +4 -4
- package/dist/cli/{index-jr6tppv9.js → index-3nm1b3t2.js} +7 -7
- package/dist/cli/{index-3wtfrjcx.js → index-4c50tm9j.js} +3 -3
- package/dist/cli/{index-e0bjbadr.js → index-4mgggb8x.js} +8 -3
- package/dist/cli/{index-ft1tnx0e.js → index-5bd84nxc.js} +1 -1
- package/dist/cli/{index-7pp8fz4j.js → index-6d4dc99f.js} +1 -1
- package/dist/cli/{index-nthqfxzz.js → index-75f9jj3h.js} +2 -2
- package/dist/cli/{index-x4azb6qj.js → index-87wqes24.js} +2 -2
- package/dist/cli/{index-22sannyk.js → index-8cky7ksv.js} +36 -10
- package/dist/cli/{index-x8cvbkjs.js → index-9wv6a3jx.js} +2 -2
- package/dist/cli/{index-qmp4gxac.js → index-b7ra4hwj.js} +1 -1
- package/dist/cli/{index-8nv3bc9h.js → index-bwvbj3fp.js} +4 -4
- package/dist/cli/{index-st47knj6.js → index-ch293kd3.js} +3 -3
- package/dist/cli/{index-ytsts0zj.js → index-d5gvr6z4.js} +1 -1
- package/dist/cli/{index-gy55mc55.js → index-dvhecfa9.js} +3369 -2820
- package/dist/cli/{index-bks56jbg.js → index-f6zgz02s.js} +3 -3
- package/dist/cli/{index-z1kmkh72.js → index-gbv76wf7.js} +2 -2
- package/dist/cli/{index-2n1v8ft1.js → index-gk1w1h9k.js} +5 -1
- package/dist/cli/{index-ty0wg9yp.js → index-h92cqbqa.js} +5 -5
- package/dist/cli/{index-hbjax6hy.js → index-hfrb77tj.js} +8 -8
- package/dist/cli/{index-19hjpqsy.js → index-m21x1bkx.js} +17 -9
- package/dist/cli/{index-j81kpway.js → index-m3tx1q9v.js} +1 -1
- package/dist/cli/{index-7mxrqy4r.js → index-ms16gaa4.js} +7 -7
- package/dist/cli/{index-jgtje76m.js → index-qa7t42e7.js} +94 -29
- package/dist/cli/{index-hgphhnrp.js → index-qd619x3r.js} +2 -2
- package/dist/cli/{index-fkk7x6sy.js → index-qd726agw.js} +2 -2
- package/dist/cli/{index-c23w8t46.js → index-qww0h314.js} +11 -6
- package/dist/cli/{index-y3dtdn2f.js → index-rk10x4zr.js} +1 -1
- package/dist/cli/{index-4kwxpnf8.js → index-sahf5yz3.js} +1 -1
- package/dist/cli/{index-14z9en94.js → index-t8tw1bhs.js} +1 -1
- package/dist/cli/{index-wz258yje.js → index-t9kjxzdr.js} +11 -11
- package/dist/cli/{index-3nww2vnx.js → index-tzq6t9wc.js} +8 -8
- package/dist/cli/index-vzm6zre7.js +167 -0
- package/dist/cli/{index-nrdj94za.js → index-w50dk71y.js} +39 -38
- package/dist/cli/{index-c0eyq4rp.js → index-xn16akay.js} +4 -4
- package/dist/cli/index.js +37 -36
- package/dist/cli/{knowledge-escalator-aq7gzhpd.js → knowledge-escalator-stnveccq.js} +13 -12
- package/dist/cli/{knowledge-events-9z5sskyv.js → knowledge-events-ph6txm8h.js} +10 -10
- package/dist/cli/{knowledge-link-ps2v4s18.js → knowledge-link-w1fwqts4.js} +4 -4
- package/dist/cli/{knowledge-store-1hzt2a0t.js → knowledge-store-tgyhr9nf.js} +8 -5
- package/dist/cli/{knowledge-validator-xe1fza7c.js → knowledge-validator-2g547bcn.js} +8 -7
- package/dist/cli/{pending-delegations-0nfjg7vp.js → pending-delegations-873dtyw6.js} +12 -11
- package/dist/cli/{pr-subscriptions-8974hwa0.js → pr-subscriptions-xmxdrj1z.js} +12 -11
- package/dist/cli/{pr-workflow-gate-xgak5wvz.js → pr-workflow-gate-h7644byf.js} +37 -36
- package/dist/cli/{runner-7zqbp81n.js → runner-nmrjv7te.js} +5 -5
- package/dist/cli/{scan-cursor-hc4v0c90.js → scan-cursor-tx72gxp0.js} +7 -6
- package/dist/cli/{schema-w1hsvw1h.js → schema-cpc92vq0.js} +3 -1
- package/dist/cli/{scope-persistence-k17003v4.js → scope-persistence-xy3xs55f.js} +15 -14
- package/dist/cli/{skill-generator-tbxgpc9x.js → skill-generator-4f1v5zwx.js} +15 -14
- package/dist/cli/{snapshot-coordination-init-vaf34wf0.js → snapshot-coordination-init-w2nw33pn.js} +37 -36
- package/dist/cli/{telemetry-8qn4eag5.js → telemetry-ce0tx41h.js} +1 -1
- package/dist/cli/{workspace-snapshot-y85jy6gs.js → workspace-snapshot-0kxj2grt.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-r3jdke7h.js → worktree-collision-ownership-1g1qz8wc.js} +13 -12
- package/dist/cli/{worktree-isolation-sa1tbqff.js → worktree-isolation-jwxtrh3z.js} +37 -36
- package/dist/commands/close.d.ts +82 -0
- package/dist/config/schema.d.ts +9 -0
- package/dist/context-map/capsule-persistence.d.ts +13 -8
- package/dist/hooks/delegate-ack-collector.d.ts +7 -0
- package/dist/hooks/knowledge-store.d.ts +7 -0
- package/dist/hooks/review-receipt.d.ts +29 -1
- package/dist/index.js +554 -551
- package/dist/knowledge/curation-policy.d.ts +7 -0
- package/dist/memory/consolidation-log.d.ts +9 -0
- package/dist/memory/injector.d.ts +7 -0
- package/dist/memory/run-log.d.ts +8 -0
- package/dist/retention/caps.d.ts +33 -0
- package/dist/retention/dir-prune.d.ts +72 -0
- package/dist/retention/jsonl-cap.d.ts +84 -0
- package/dist/retention/sweep.d.ts +67 -0
- package/dist/services/compaction-service.d.ts +14 -0
- package/dist/services/skill-changelog.d.ts +20 -0
- package/dist/summaries/manager.d.ts +41 -4
- package/dist/test-impact/history-store.d.ts +16 -0
- package/dist/turbo/epic/calibration.d.ts +16 -1
- package/dist/turbo/epic/divergence-recorder.d.ts +11 -0
- package/opencode-swarm.schema.json +15 -0
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-cwg62ynw.js +0 -70
- package/dist/cli/guardrail-explain-zskpzgsr.js +0 -71
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
EvaluationRunV1Schema,
|
|
4
4
|
GateAuditResultV1Schema,
|
|
5
5
|
getProtectedEvaluationRunIds
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-5bd84nxc.js";
|
|
7
7
|
import {
|
|
8
8
|
validateWorkspaceRoot
|
|
9
9
|
} from "./index-cw912re7.js";
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
readTaskEvidence,
|
|
24
24
|
readTaskEvidenceRaw,
|
|
25
25
|
sanitizeTaskId
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-xn16akay.js";
|
|
27
27
|
import {
|
|
28
28
|
estimateCharsForTokens,
|
|
29
29
|
estimateTokens,
|
|
30
30
|
readSwarmFileAsync,
|
|
31
31
|
validateSwarmPath
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-sahf5yz3.js";
|
|
33
33
|
import {
|
|
34
34
|
bunHash,
|
|
35
35
|
bunWrite,
|
|
@@ -57,10 +57,10 @@ import {
|
|
|
57
57
|
replayFromLedgerWithStatus,
|
|
58
58
|
takeSnapshotEvent,
|
|
59
59
|
takeSnapshotWithRetry
|
|
60
|
-
} from "./index-
|
|
60
|
+
} from "./index-3f1tr4ha.js";
|
|
61
61
|
import {
|
|
62
62
|
appendCoreEventSync
|
|
63
|
-
} from "./index-
|
|
63
|
+
} from "./index-qd619x3r.js";
|
|
64
64
|
import {
|
|
65
65
|
derivePlanId,
|
|
66
66
|
derivePlanIdentityHash,
|
|
@@ -68,32 +68,32 @@ import {
|
|
|
68
68
|
importCoordinationOnce,
|
|
69
69
|
listCoordinationStates,
|
|
70
70
|
transitionCoordinationState
|
|
71
|
-
} from "./index-
|
|
71
|
+
} from "./index-6d4dc99f.js";
|
|
72
72
|
import {
|
|
73
73
|
DURABILITY_CLASSES,
|
|
74
74
|
getProjectDb,
|
|
75
75
|
projectDbExists,
|
|
76
76
|
withDurabilityClass
|
|
77
|
-
} from "./index-
|
|
77
|
+
} from "./index-rk10x4zr.js";
|
|
78
78
|
import {
|
|
79
79
|
assertProjectRoot,
|
|
80
80
|
tryAcquireLock,
|
|
81
81
|
withEvidenceLock
|
|
82
|
-
} from "./index-
|
|
82
|
+
} from "./index-2w0beg3s.js";
|
|
83
83
|
import {
|
|
84
84
|
atomicWriteSwarmFileSync,
|
|
85
85
|
invalidateCachedArtifact,
|
|
86
86
|
readCachedParsedFile
|
|
87
|
-
} from "./index-
|
|
87
|
+
} from "./index-m21x1bkx.js";
|
|
88
88
|
import {
|
|
89
89
|
emit
|
|
90
|
-
} from "./index-
|
|
90
|
+
} from "./index-f6zgz02s.js";
|
|
91
91
|
import {
|
|
92
92
|
canonicalRootKeyFresh
|
|
93
93
|
} from "./index-7qefgq4j.js";
|
|
94
94
|
import {
|
|
95
95
|
PlanSchema
|
|
96
|
-
} from "./index-
|
|
96
|
+
} from "./index-0jpv5z94.js";
|
|
97
97
|
import {
|
|
98
98
|
GIT_BINARY_ENV_VAR,
|
|
99
99
|
describeGitResolution,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-sahf5yz3.js";
|
|
5
5
|
import {
|
|
6
6
|
observeReceiptTransition
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-qd726agw.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveHiveEventsPath
|
|
10
10
|
} from "./index-ae75rja9.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveKnowledgeStoreDir
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-t8tw1bhs.js";
|
|
14
14
|
import {
|
|
15
15
|
assertProjectRoot,
|
|
16
16
|
atomicWriteFile
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-2w0beg3s.js";
|
|
18
18
|
import {
|
|
19
19
|
emit
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-f6zgz02s.js";
|
|
21
21
|
import {
|
|
22
22
|
canonicalRootKey
|
|
23
23
|
} from "./index-7qefgq4j.js";
|
|
@@ -26,11 +26,11 @@ import {
|
|
|
26
26
|
} from "./index-7g4c7s5r.js";
|
|
27
27
|
import {
|
|
28
28
|
loadPluginConfigWithMeta
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-0jpv5z94.js";
|
|
30
30
|
import {
|
|
31
31
|
KnowledgeConfigSchema,
|
|
32
32
|
init_schema
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-4mgggb8x.js";
|
|
34
34
|
import {
|
|
35
35
|
init_logger,
|
|
36
36
|
warn
|
|
@@ -2813,7 +2813,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
2813
2813
|
}
|
|
2814
2814
|
let bumps = 0;
|
|
2815
2815
|
if (deltas.length > 0) {
|
|
2816
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
2816
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-tgyhr9nf.js");
|
|
2817
2817
|
bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
2818
2818
|
}
|
|
2819
2819
|
return {
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/retention/caps.ts
|
|
3
|
+
var overrides = new Map;
|
|
4
|
+
function resolveRetentionCap(name, defaultValue) {
|
|
5
|
+
const override = overrides.get(name);
|
|
6
|
+
if (override !== undefined && Number.isFinite(override) && override >= 1) {
|
|
7
|
+
return override;
|
|
8
|
+
}
|
|
9
|
+
return defaultValue;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// src/retention/jsonl-cap.ts
|
|
13
|
+
import * as fs from "fs";
|
|
14
|
+
import * as path from "path";
|
|
15
|
+
var RENAME_MAX_ATTEMPTS = 4;
|
|
16
|
+
var RENAME_RETRY_DELAY_MS = 50;
|
|
17
|
+
var appendChains = new Map;
|
|
18
|
+
function withFileLock(filePath, task) {
|
|
19
|
+
const key = path.resolve(filePath);
|
|
20
|
+
const tail = appendChains.get(key) ?? Promise.resolve();
|
|
21
|
+
const run = tail.then(task, task);
|
|
22
|
+
const settled = run.then(() => {
|
|
23
|
+
if ((appendChains.get(key) ?? settled) === settled) {
|
|
24
|
+
appendChains.delete(key);
|
|
25
|
+
}
|
|
26
|
+
}, () => {
|
|
27
|
+
if ((appendChains.get(key) ?? settled) === settled) {
|
|
28
|
+
appendChains.delete(key);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
appendChains.set(key, settled);
|
|
32
|
+
return run;
|
|
33
|
+
}
|
|
34
|
+
function sleep(ms) {
|
|
35
|
+
return new Promise((resolve2) => setTimeout(resolve2, ms));
|
|
36
|
+
}
|
|
37
|
+
async function renameWithRetry(from, to) {
|
|
38
|
+
let lastError;
|
|
39
|
+
for (let attempt = 1;attempt <= RENAME_MAX_ATTEMPTS; attempt++) {
|
|
40
|
+
try {
|
|
41
|
+
await fs.promises.rename(from, to);
|
|
42
|
+
return;
|
|
43
|
+
} catch (error) {
|
|
44
|
+
lastError = error;
|
|
45
|
+
const code = typeof error === "object" && error !== null && "code" in error ? String(error.code) : "";
|
|
46
|
+
if (code !== "EBUSY" && code !== "EPERM" && code !== "EEXIST" && code !== "ENOTEMPTY") {
|
|
47
|
+
throw error;
|
|
48
|
+
}
|
|
49
|
+
if (attempt < RENAME_MAX_ATTEMPTS) {
|
|
50
|
+
await sleep(RENAME_RETRY_DELAY_MS);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
throw lastError instanceof Error ? lastError : new Error(String(lastError));
|
|
55
|
+
}
|
|
56
|
+
function wholeLines(content) {
|
|
57
|
+
return content.split(`
|
|
58
|
+
`).map((line) => line.trim()).filter((line) => line.length > 0);
|
|
59
|
+
}
|
|
60
|
+
function selectCompactionSurvivors(lines, opts) {
|
|
61
|
+
const kept = [];
|
|
62
|
+
let keptBytes = 0;
|
|
63
|
+
for (let i = lines.length - 1;i >= 0; i--) {
|
|
64
|
+
if (kept.length >= opts.maxEntries)
|
|
65
|
+
break;
|
|
66
|
+
const line = lines[i];
|
|
67
|
+
const lineBytes = Buffer.byteLength(`${line}
|
|
68
|
+
`, "utf-8");
|
|
69
|
+
if (kept.length > 0 && opts.maxBytes !== undefined && keptBytes + lineBytes > opts.maxBytes) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
kept.unshift(line);
|
|
73
|
+
keptBytes += lineBytes;
|
|
74
|
+
}
|
|
75
|
+
return kept;
|
|
76
|
+
}
|
|
77
|
+
async function appendAndCap(filePath, line, opts) {
|
|
78
|
+
const directory = path.dirname(filePath);
|
|
79
|
+
fs.mkdirSync(directory, { recursive: true });
|
|
80
|
+
const record = `${line.trim()}
|
|
81
|
+
`;
|
|
82
|
+
let existing = "";
|
|
83
|
+
try {
|
|
84
|
+
existing = await fs.promises.readFile(filePath, "utf-8");
|
|
85
|
+
} catch {}
|
|
86
|
+
const lines = wholeLines(existing);
|
|
87
|
+
const combined = [...lines, line.trim()];
|
|
88
|
+
const survivors = selectCompactionSurvivors(combined, opts);
|
|
89
|
+
const dropped = combined.length - survivors.length;
|
|
90
|
+
if (dropped > 0) {
|
|
91
|
+
const compactedLines = combined.slice(dropped, combined.length - 1);
|
|
92
|
+
const compacted = compactedLines.length > 0 ? `${compactedLines.join(`
|
|
93
|
+
`)}
|
|
94
|
+
` : "";
|
|
95
|
+
const tmp = path.join(directory, `.${path.basename(filePath)}.tmp-${process.pid}-${Math.random().toString(36).slice(2, 8)}`);
|
|
96
|
+
fs.writeFileSync(tmp, compacted, "utf-8");
|
|
97
|
+
try {
|
|
98
|
+
await renameWithRetry(tmp, filePath);
|
|
99
|
+
} catch (error) {
|
|
100
|
+
try {
|
|
101
|
+
fs.unlinkSync(tmp);
|
|
102
|
+
} catch {}
|
|
103
|
+
throw error instanceof Error ? error : new Error(String(error));
|
|
104
|
+
}
|
|
105
|
+
if (opts.onPrune) {
|
|
106
|
+
try {
|
|
107
|
+
opts.onPrune(dropped);
|
|
108
|
+
} catch {}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
await fs.promises.appendFile(filePath, record, "utf-8");
|
|
112
|
+
}
|
|
113
|
+
async function appendCappedJsonl(filePath, line, opts) {
|
|
114
|
+
return withFileLock(filePath, () => appendAndCap(filePath, line, opts));
|
|
115
|
+
}
|
|
116
|
+
async function readTailInternal(filePath, opts) {
|
|
117
|
+
let content;
|
|
118
|
+
let tailTruncated = false;
|
|
119
|
+
try {
|
|
120
|
+
if (opts.maxBytes !== undefined) {
|
|
121
|
+
const stat = await fs.promises.stat(filePath);
|
|
122
|
+
if (stat.size > opts.maxBytes) {
|
|
123
|
+
const handle = await fs.promises.open(filePath, "r");
|
|
124
|
+
try {
|
|
125
|
+
const start = Math.max(0, stat.size - opts.maxBytes);
|
|
126
|
+
const buf = Buffer.alloc(opts.maxBytes);
|
|
127
|
+
await handle.read(buf, 0, opts.maxBytes, start);
|
|
128
|
+
content = buf.toString("utf-8");
|
|
129
|
+
} finally {
|
|
130
|
+
await handle.close();
|
|
131
|
+
}
|
|
132
|
+
const firstNewline = content.indexOf(`
|
|
133
|
+
`);
|
|
134
|
+
if (firstNewline >= 0)
|
|
135
|
+
content = content.slice(firstNewline + 1);
|
|
136
|
+
} else {
|
|
137
|
+
content = await fs.promises.readFile(filePath, "utf-8");
|
|
138
|
+
}
|
|
139
|
+
} else {
|
|
140
|
+
content = await fs.promises.readFile(filePath, "utf-8");
|
|
141
|
+
}
|
|
142
|
+
} catch {
|
|
143
|
+
return { records: [], tailTruncated: false };
|
|
144
|
+
}
|
|
145
|
+
if (content.length > 0 && !content.endsWith(`
|
|
146
|
+
`)) {
|
|
147
|
+
tailTruncated = true;
|
|
148
|
+
}
|
|
149
|
+
const lines = wholeLines(content);
|
|
150
|
+
const take = opts.maxEntries !== undefined ? lines.slice(-opts.maxEntries) : lines;
|
|
151
|
+
const records = [];
|
|
152
|
+
for (const line of take) {
|
|
153
|
+
try {
|
|
154
|
+
records.push(JSON.parse(line));
|
|
155
|
+
} catch {}
|
|
156
|
+
}
|
|
157
|
+
return { records, tailTruncated };
|
|
158
|
+
}
|
|
159
|
+
async function readTailJsonl(filePath, opts) {
|
|
160
|
+
const { records } = await readTailInternal(filePath, opts);
|
|
161
|
+
return records;
|
|
162
|
+
}
|
|
163
|
+
async function readTailJsonlDetailed(filePath, opts) {
|
|
164
|
+
return readTailInternal(filePath, opts);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export { resolveRetentionCap, appendCappedJsonl, readTailJsonl, readTailJsonlDetailed };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-gbv76wf7.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-d5gvr6z4.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -94,65 +94,66 @@ import {
|
|
|
94
94
|
handleWriteRetroCommand,
|
|
95
95
|
normalizeSwarmCommandInput,
|
|
96
96
|
resolveCommand
|
|
97
|
-
} from "./index-
|
|
97
|
+
} from "./index-dvhecfa9.js";
|
|
98
98
|
import"./index-d5qf7hvh.js";
|
|
99
|
-
import"./index-
|
|
100
|
-
import"./index-
|
|
101
|
-
import"./index-
|
|
102
|
-
import"./index-
|
|
103
|
-
import"./index-
|
|
99
|
+
import"./index-m3tx1q9v.js";
|
|
100
|
+
import"./index-4c50tm9j.js";
|
|
101
|
+
import"./index-gk1w1h9k.js";
|
|
102
|
+
import"./index-t9kjxzdr.js";
|
|
103
|
+
import"./index-5bd84nxc.js";
|
|
104
104
|
import"./index-txdagbh7.js";
|
|
105
105
|
import"./index-cw912re7.js";
|
|
106
|
-
import"./index-
|
|
107
|
-
import"./index-
|
|
108
|
-
import"./index-
|
|
106
|
+
import"./index-qa7t42e7.js";
|
|
107
|
+
import"./index-h92cqbqa.js";
|
|
108
|
+
import"./index-87wqes24.js";
|
|
109
109
|
import"./index-70ha9e09.js";
|
|
110
|
-
import"./index-
|
|
110
|
+
import"./index-1aex5zd9.js";
|
|
111
111
|
import"./index-9ss2m4rs.js";
|
|
112
|
-
import"./index-
|
|
112
|
+
import"./index-3nm1b3t2.js";
|
|
113
113
|
import"./index-zsrtt42s.js";
|
|
114
|
-
import"./index-
|
|
115
|
-
import"./index-
|
|
116
|
-
import"./index-
|
|
114
|
+
import"./index-hfrb77tj.js";
|
|
115
|
+
import"./index-251vrmge.js";
|
|
116
|
+
import"./index-9wv6a3jx.js";
|
|
117
117
|
import"./index-b43rt5ph.js";
|
|
118
118
|
import"./index-q7sjgr1y.js";
|
|
119
|
-
import"./index-
|
|
120
|
-
import"./index-
|
|
121
|
-
import"./index-
|
|
122
|
-
import"./index-
|
|
123
|
-
import"./index-
|
|
119
|
+
import"./index-xn16akay.js";
|
|
120
|
+
import"./index-b7ra4hwj.js";
|
|
121
|
+
import"./index-2c7eabkr.js";
|
|
122
|
+
import"./index-tzq6t9wc.js";
|
|
123
|
+
import"./index-sahf5yz3.js";
|
|
124
124
|
import"./index-p612v1mv.js";
|
|
125
|
-
import"./index-
|
|
126
|
-
import"./index-
|
|
125
|
+
import"./index-bwvbj3fp.js";
|
|
126
|
+
import"./index-qww0h314.js";
|
|
127
127
|
import"./index-rtry5xyf.js";
|
|
128
|
-
import"./index-
|
|
128
|
+
import"./index-3a2xznmd.js";
|
|
129
129
|
import"./index-3qf1vxtb.js";
|
|
130
130
|
import"./index-n832052r.js";
|
|
131
|
-
import"./index-
|
|
132
|
-
import"./index-
|
|
133
|
-
import"./index-
|
|
134
|
-
import"./index-
|
|
135
|
-
import"./index-
|
|
136
|
-
import"./index-
|
|
131
|
+
import"./index-ms16gaa4.js";
|
|
132
|
+
import"./index-3f1tr4ha.js";
|
|
133
|
+
import"./index-qd619x3r.js";
|
|
134
|
+
import"./index-75f9jj3h.js";
|
|
135
|
+
import"./index-6d4dc99f.js";
|
|
136
|
+
import"./index-rk10x4zr.js";
|
|
137
137
|
import"./index-ry16d01s.js";
|
|
138
138
|
import"./index-n4fzmqz8.js";
|
|
139
|
-
import"./index-
|
|
140
|
-
import"./index-
|
|
139
|
+
import"./index-qd726agw.js";
|
|
140
|
+
import"./index-8cky7ksv.js";
|
|
141
|
+
import"./index-vzm6zre7.js";
|
|
141
142
|
import"./index-ae75rja9.js";
|
|
142
|
-
import"./index-
|
|
143
|
-
import"./index-
|
|
144
|
-
import"./index-
|
|
145
|
-
import"./index-
|
|
143
|
+
import"./index-t8tw1bhs.js";
|
|
144
|
+
import"./index-2w0beg3s.js";
|
|
145
|
+
import"./index-m21x1bkx.js";
|
|
146
|
+
import"./index-f6zgz02s.js";
|
|
146
147
|
import"./index-7qefgq4j.js";
|
|
147
148
|
import"./index-ee6ydtfe.js";
|
|
148
149
|
import"./index-7g4c7s5r.js";
|
|
149
|
-
import"./index-
|
|
150
|
+
import"./index-0jpv5z94.js";
|
|
150
151
|
import"./index-9e6fdz2h.js";
|
|
151
152
|
import"./index-4rhhvd1a.js";
|
|
152
153
|
import {
|
|
153
154
|
init_schema,
|
|
154
155
|
stripKnownSwarmPrefix
|
|
155
|
-
} from "./index-
|
|
156
|
+
} from "./index-4mgggb8x.js";
|
|
156
157
|
import {
|
|
157
158
|
AGENT_TOOL_MAP,
|
|
158
159
|
ORCHESTRATOR_NAME,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
autoCommitDirty,
|
|
4
4
|
cleanUntrackedFiles
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-b7ra4hwj.js";
|
|
6
6
|
import {
|
|
7
7
|
validateSwarmPath
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-sahf5yz3.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-2w0beg3s.js";
|
|
19
19
|
import {
|
|
20
20
|
telemetry
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-f6zgz02s.js";
|
|
22
22
|
import {
|
|
23
23
|
init_git_executable,
|
|
24
24
|
resolveGitExecutable
|
package/dist/cli/index.js
CHANGED
|
@@ -13,65 +13,66 @@ import {
|
|
|
13
13
|
readCachePackageVersion,
|
|
14
14
|
resolveCommand,
|
|
15
15
|
safeRealpathSync
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-dvhecfa9.js";
|
|
17
17
|
import"./index-d5qf7hvh.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
18
|
+
import"./index-m3tx1q9v.js";
|
|
19
|
+
import"./index-4c50tm9j.js";
|
|
20
|
+
import"./index-gk1w1h9k.js";
|
|
21
|
+
import"./index-t9kjxzdr.js";
|
|
22
|
+
import"./index-5bd84nxc.js";
|
|
23
23
|
import"./index-txdagbh7.js";
|
|
24
24
|
import"./index-cw912re7.js";
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
25
|
+
import"./index-qa7t42e7.js";
|
|
26
|
+
import"./index-h92cqbqa.js";
|
|
27
|
+
import"./index-87wqes24.js";
|
|
28
28
|
import"./index-70ha9e09.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-1aex5zd9.js";
|
|
30
30
|
import"./index-9ss2m4rs.js";
|
|
31
|
-
import"./index-
|
|
31
|
+
import"./index-3nm1b3t2.js";
|
|
32
32
|
import"./index-zsrtt42s.js";
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
33
|
+
import"./index-hfrb77tj.js";
|
|
34
|
+
import"./index-251vrmge.js";
|
|
35
|
+
import"./index-9wv6a3jx.js";
|
|
36
36
|
import"./index-b43rt5ph.js";
|
|
37
37
|
import"./index-q7sjgr1y.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
38
|
+
import"./index-xn16akay.js";
|
|
39
|
+
import"./index-b7ra4hwj.js";
|
|
40
|
+
import"./index-2c7eabkr.js";
|
|
41
|
+
import"./index-tzq6t9wc.js";
|
|
42
|
+
import"./index-sahf5yz3.js";
|
|
43
43
|
import"./index-p612v1mv.js";
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
44
|
+
import"./index-bwvbj3fp.js";
|
|
45
|
+
import"./index-qww0h314.js";
|
|
46
46
|
import"./index-rtry5xyf.js";
|
|
47
|
-
import"./index-
|
|
47
|
+
import"./index-3a2xznmd.js";
|
|
48
48
|
import"./index-3qf1vxtb.js";
|
|
49
49
|
import"./index-n832052r.js";
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
52
|
-
import"./index-
|
|
53
|
-
import"./index-
|
|
54
|
-
import"./index-
|
|
55
|
-
import"./index-
|
|
50
|
+
import"./index-ms16gaa4.js";
|
|
51
|
+
import"./index-3f1tr4ha.js";
|
|
52
|
+
import"./index-qd619x3r.js";
|
|
53
|
+
import"./index-75f9jj3h.js";
|
|
54
|
+
import"./index-6d4dc99f.js";
|
|
55
|
+
import"./index-rk10x4zr.js";
|
|
56
56
|
import"./index-ry16d01s.js";
|
|
57
57
|
import"./index-n4fzmqz8.js";
|
|
58
|
-
import"./index-
|
|
59
|
-
import"./index-
|
|
58
|
+
import"./index-qd726agw.js";
|
|
59
|
+
import"./index-8cky7ksv.js";
|
|
60
|
+
import"./index-vzm6zre7.js";
|
|
60
61
|
import"./index-ae75rja9.js";
|
|
61
|
-
import"./index-
|
|
62
|
-
import"./index-
|
|
63
|
-
import"./index-
|
|
64
|
-
import"./index-
|
|
62
|
+
import"./index-t8tw1bhs.js";
|
|
63
|
+
import"./index-2w0beg3s.js";
|
|
64
|
+
import"./index-m21x1bkx.js";
|
|
65
|
+
import"./index-f6zgz02s.js";
|
|
65
66
|
import"./index-7qefgq4j.js";
|
|
66
67
|
import"./index-ee6ydtfe.js";
|
|
67
68
|
import"./index-7g4c7s5r.js";
|
|
68
|
-
import"./index-
|
|
69
|
+
import"./index-0jpv5z94.js";
|
|
69
70
|
import"./index-9e6fdz2h.js";
|
|
70
71
|
import"./index-4rhhvd1a.js";
|
|
71
72
|
import {
|
|
72
73
|
init_package,
|
|
73
74
|
package_default
|
|
74
|
-
} from "./index-
|
|
75
|
+
} from "./index-4mgggb8x.js";
|
|
75
76
|
import {
|
|
76
77
|
DEFAULT_AGENT_CONFIGS,
|
|
77
78
|
init_constants
|
|
@@ -9,27 +9,28 @@ import {
|
|
|
9
9
|
maybeEscalateOnViolation,
|
|
10
10
|
maybeQuarantineOnContradiction,
|
|
11
11
|
readRecentEscalations
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
12
|
+
} from "./index-h92cqbqa.js";
|
|
13
|
+
import"./index-tzq6t9wc.js";
|
|
14
|
+
import"./index-sahf5yz3.js";
|
|
15
15
|
import"./index-p612v1mv.js";
|
|
16
|
-
import"./index-
|
|
16
|
+
import"./index-3a2xznmd.js";
|
|
17
17
|
import"./index-3qf1vxtb.js";
|
|
18
18
|
import"./index-n832052r.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
19
|
+
import"./index-qd726agw.js";
|
|
20
|
+
import"./index-8cky7ksv.js";
|
|
21
|
+
import"./index-vzm6zre7.js";
|
|
21
22
|
import"./index-ae75rja9.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
23
|
+
import"./index-t8tw1bhs.js";
|
|
24
|
+
import"./index-2w0beg3s.js";
|
|
25
|
+
import"./index-m21x1bkx.js";
|
|
26
|
+
import"./index-f6zgz02s.js";
|
|
26
27
|
import"./index-7qefgq4j.js";
|
|
27
28
|
import"./index-ee6ydtfe.js";
|
|
28
29
|
import"./index-7g4c7s5r.js";
|
|
29
|
-
import"./index-
|
|
30
|
+
import"./index-0jpv5z94.js";
|
|
30
31
|
import"./index-9e6fdz2h.js";
|
|
31
32
|
import"./index-4rhhvd1a.js";
|
|
32
|
-
import"./index-
|
|
33
|
+
import"./index-4mgggb8x.js";
|
|
33
34
|
import"./index-0tc0pcmh.js";
|
|
34
35
|
import"./index-bk5tah7q.js";
|
|
35
36
|
import"./index-bpmtbmy9.js";
|
|
@@ -29,25 +29,25 @@ import {
|
|
|
29
29
|
resolveKnowledgeCounterBaselinePath,
|
|
30
30
|
resolveKnowledgeEventsPath,
|
|
31
31
|
resolveLegacyApplicationLogPath
|
|
32
|
-
} from "./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
} from "./index-tzq6t9wc.js";
|
|
33
|
+
import"./index-sahf5yz3.js";
|
|
34
34
|
import"./index-p612v1mv.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-3a2xznmd.js";
|
|
36
36
|
import"./index-3qf1vxtb.js";
|
|
37
37
|
import"./index-n832052r.js";
|
|
38
|
-
import"./index-
|
|
38
|
+
import"./index-qd726agw.js";
|
|
39
39
|
import"./index-ae75rja9.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
40
|
+
import"./index-t8tw1bhs.js";
|
|
41
|
+
import"./index-2w0beg3s.js";
|
|
42
|
+
import"./index-m21x1bkx.js";
|
|
43
|
+
import"./index-f6zgz02s.js";
|
|
44
44
|
import"./index-7qefgq4j.js";
|
|
45
45
|
import"./index-ee6ydtfe.js";
|
|
46
46
|
import"./index-7g4c7s5r.js";
|
|
47
|
-
import"./index-
|
|
47
|
+
import"./index-0jpv5z94.js";
|
|
48
48
|
import"./index-9e6fdz2h.js";
|
|
49
49
|
import"./index-4rhhvd1a.js";
|
|
50
|
-
import"./index-
|
|
50
|
+
import"./index-4mgggb8x.js";
|
|
51
51
|
import"./index-0tc0pcmh.js";
|
|
52
52
|
import"./index-bk5tah7q.js";
|
|
53
53
|
import"./index-bpmtbmy9.js";
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
resolveLinkDir,
|
|
13
13
|
sanitizeLinkId,
|
|
14
14
|
writeLinkPointer
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
15
|
+
} from "./index-t8tw1bhs.js";
|
|
16
|
+
import"./index-2w0beg3s.js";
|
|
17
|
+
import"./index-m21x1bkx.js";
|
|
18
|
+
import"./index-f6zgz02s.js";
|
|
19
19
|
import"./index-7qefgq4j.js";
|
|
20
20
|
import"./index-ee6ydtfe.js";
|
|
21
21
|
import"./index-7g4c7s5r.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
MAX_CONFIRMED_BY,
|
|
4
|
+
MAX_RETRACTION_RECORDS,
|
|
4
5
|
OUTCOME_SIGNAL_SMOOTHING,
|
|
5
6
|
_internals,
|
|
6
7
|
appendKnowledge,
|
|
@@ -42,14 +43,15 @@ import {
|
|
|
42
43
|
transactKnowledge,
|
|
43
44
|
transactKnowledgeWithCas,
|
|
44
45
|
wordBigrams
|
|
45
|
-
} from "./index-
|
|
46
|
+
} from "./index-8cky7ksv.js";
|
|
47
|
+
import"./index-vzm6zre7.js";
|
|
46
48
|
import {
|
|
47
49
|
resolveHiveDataDir
|
|
48
50
|
} from "./index-ae75rja9.js";
|
|
49
|
-
import"./index-
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
52
|
-
import"./index-
|
|
51
|
+
import"./index-t8tw1bhs.js";
|
|
52
|
+
import"./index-2w0beg3s.js";
|
|
53
|
+
import"./index-m21x1bkx.js";
|
|
54
|
+
import"./index-f6zgz02s.js";
|
|
53
55
|
import"./index-7qefgq4j.js";
|
|
54
56
|
import"./index-ee6ydtfe.js";
|
|
55
57
|
import"./index-7g4c7s5r.js";
|
|
@@ -101,5 +103,6 @@ export {
|
|
|
101
103
|
appendKnowledge,
|
|
102
104
|
_internals,
|
|
103
105
|
OUTCOME_SIGNAL_SMOOTHING,
|
|
106
|
+
MAX_RETRACTION_RECORDS,
|
|
104
107
|
MAX_CONFIRMED_BY
|
|
105
108
|
};
|