opencode-swarm 7.113.1 → 7.113.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/.opencode/skills/engineering-conventions/SKILL.md +5 -0
- package/.opencode/skills/gate-attribution/SKILL.md +2 -0
- package/binaries/win32-arm64/.gitkeep +0 -0
- package/binaries/win32-x64/.gitkeep +0 -0
- package/dist/background/event-bus.d.ts +1 -1
- package/dist/background/pending-delegations.d.ts +8 -0
- package/dist/background/queue.d.ts +11 -0
- package/dist/background/trigger.d.ts +1 -0
- package/dist/background/workspace-snapshot.d.ts +7 -0
- package/dist/cli/{capability-probe-sh9bwh39.js → capability-probe-f1paszww.js} +1 -1
- package/dist/cli/{config-doctor-az11cwf5.js → config-doctor-xbdfrbwt.js} +2 -2
- package/dist/cli/{core-f4cbabe7.js → core-zg8s1jwx.js} +2 -2
- package/dist/cli/{curator-nm2c9y1p.js → curator-ckzb8ww4.js} +23 -22
- package/dist/cli/{curator-drift-jvs1v6em.js → curator-drift-c0by7063.js} +2 -2
- package/dist/cli/curator-llm-factory-mhjcpy1s.js +41 -0
- package/dist/cli/{dispatch-wst7bypk.js → dispatch-mczsxy5s.js} +2 -2
- package/dist/cli/{evidence-summary-service-j6fnsfeq.js → evidence-summary-service-8g594znj.js} +7 -7
- package/dist/cli/{gate-evidence-mk0ss1re.js → gate-evidence-vkpqt300.js} +5 -5
- package/dist/cli/guardrail-explain-kabd97j8.js +42 -0
- package/dist/cli/{guardrail-log-hysxdwg9.js → guardrail-log-qfc2j0tb.js} +4 -4
- package/dist/cli/hive-promoter-h21wzpsr.js +49 -0
- package/dist/cli/{index-0dab9w37.js → index-0p660a87.js} +2 -2
- package/dist/cli/{index-32bx4kch.js → index-0q7rrh59.js} +4 -4
- package/dist/cli/{index-1ey3dxq7.js → index-147ja18h.js} +0 -4
- package/dist/cli/{index-0gf6de8b.js → index-2148358e.js} +45 -1
- package/dist/cli/{index-30ejh1tx.js → index-43khae15.js} +3 -3
- package/dist/cli/{index-pm992z24.js → index-4h2ea8h5.js} +12 -9
- package/dist/cli/{index-5mkc2f9z.js → index-4sckv7y6.js} +1 -1
- package/dist/cli/{index-q1jaeynn.js → index-80jkseqw.js} +2 -2
- package/dist/cli/{index-wvrj16f0.js → index-8fwhhayc.js} +4 -0
- package/dist/cli/{index-npd9rypp.js → index-dh87tpc5.js} +176 -63
- package/dist/cli/{workspace-snapshot-w58jr2ga.js → index-dqh3zhhc.js} +53 -10
- package/dist/cli/{index-d0w40jm3.js → index-f6y341yk.js} +14 -11
- package/dist/cli/{index-db1fh1fv.js → index-g40r5d08.js} +1 -1
- package/dist/cli/{index-8f256d7t.js → index-g6va6n3t.js} +1 -1
- package/dist/cli/{index-9fxs0rm1.js → index-ga4ta3cr.js} +1 -1
- package/dist/cli/{index-t6wfwdm1.js → index-h7q1bvzm.js} +3 -3
- package/dist/cli/{index-rqpm9cwe.js → index-hw4tcxs9.js} +25 -24
- package/dist/cli/{index-h389ed8y.js → index-mr4whary.js} +3 -3
- package/dist/cli/{index-g55nzpwn.js → index-n6fa2hhk.js} +1 -1
- package/dist/cli/{index-vn263hqt.js → index-pa6t33pt.js} +17 -10
- package/dist/cli/{index-h91bv3hy.js → index-qe3v54nb.js} +6 -1
- package/dist/cli/{index-hpp2r0sd.js → index-qzqx2qky.js} +3 -3
- package/dist/cli/{index-fhmw7evd.js → index-rdwfqhp7.js} +2 -2
- package/dist/cli/{index-ky8eb4q6.js → index-srvqfcyj.js} +2 -2
- package/dist/cli/{index-1rga1vvb.js → index-wh8949ef.js} +1 -1
- package/dist/cli/{index-r9fjzr3k.js → index-xbe1wtme.js} +1 -1
- package/dist/cli/index.js +23 -22
- package/dist/cli/{knowledge-escalator-4gbz527n.js → knowledge-escalator-0q1p6br7.js} +8 -8
- package/dist/cli/{knowledge-events-b6x28fgc.js → knowledge-events-9518gzsp.js} +6 -6
- package/dist/cli/{knowledge-store-h3cjx4dg.js → knowledge-store-k5rab79h.js} +6 -6
- package/dist/cli/{knowledge-validator-q6jw2p0t.js → knowledge-validator-csay9wqj.js} +7 -7
- package/dist/cli/{pending-delegations-gc3a2hfx.js → pending-delegations-ddbkbgxy.js} +11 -4
- package/dist/cli/{pr-subscriptions-p8g2rzxd.js → pr-subscriptions-vwv7zm2p.js} +5 -5
- package/dist/cli/{schema-qb313fyy.js → schema-e5kd993s.js} +1 -1
- package/dist/cli/{scope-persistence-5ccgtebg.js → scope-persistence-fm0gzhnk.js} +2 -2
- package/dist/cli/{skill-generator-nnwn4sq0.js → skill-generator-z01sjppf.js} +9 -9
- package/dist/cli/{telemetry-jm7t8031.js → telemetry-jny76r83.js} +1 -1
- package/dist/cli/workspace-snapshot-eyf6gd0d.js +22 -0
- package/dist/commands/registry.d.ts +7 -0
- package/dist/config/constants.d.ts +1 -1
- package/dist/config/skill-mirrors.d.ts +3 -1
- package/dist/gate-evidence-classification.d.ts +5 -0
- package/dist/gate-evidence.d.ts +14 -3
- package/dist/hooks/messages-transform.d.ts +22 -1
- package/dist/hooks/spawn-helper.d.ts +10 -0
- package/dist/index.js +302 -300
- package/dist/memory/schema.d.ts +4 -4
- package/dist/sandbox/capability-probe.d.ts +14 -0
- package/dist/sandbox/macos/sandbox-exec-executor.d.ts +5 -0
- package/dist/tools/phase-complete.d.ts +8 -0
- package/dist/tools/sast-scan.d.ts +2 -0
- package/dist/tools/tool-metadata.d.ts +1 -1
- package/dist/utils/path-security.d.ts +28 -0
- package/package.json +2 -1
- package/dist/cli/curator-llm-factory-nmhzc774.js +0 -40
- package/dist/cli/guardrail-explain-q1np1xaw.js +0 -41
- package/dist/cli/hive-promoter-z4dezw62.js +0 -48
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
readSwarmFileAsync,
|
|
14
14
|
validateSwarmPath
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-wh8949ef.js";
|
|
16
16
|
import {
|
|
17
17
|
readCachedParsedFile
|
|
18
18
|
} from "./index-jtqkh8jf.js";
|
|
@@ -27,22 +27,22 @@ import {
|
|
|
27
27
|
readTaskEvidence,
|
|
28
28
|
readTaskEvidenceRaw,
|
|
29
29
|
sanitizeTaskId
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-4h2ea8h5.js";
|
|
31
31
|
import {
|
|
32
32
|
ZodError,
|
|
33
33
|
exports_external
|
|
34
34
|
} from "./index-293f68mj.js";
|
|
35
35
|
import {
|
|
36
36
|
withEvidenceLock
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-4sckv7y6.js";
|
|
38
38
|
import {
|
|
39
39
|
emit
|
|
40
|
-
} from "./index-
|
|
40
|
+
} from "./index-pa6t33pt.js";
|
|
41
41
|
import {
|
|
42
42
|
bunHash,
|
|
43
43
|
bunWrite,
|
|
44
44
|
mergeEnvForChild
|
|
45
|
-
} from "./index-
|
|
45
|
+
} from "./index-qe3v54nb.js";
|
|
46
46
|
import {
|
|
47
47
|
__esm,
|
|
48
48
|
__export,
|
|
@@ -265,10 +265,10 @@ function buildSandboxProfile(scopePaths, tempDir, envOverrides) {
|
|
|
265
265
|
(allow file-read* (subpath "/sbin"))
|
|
266
266
|
(allow file-read* (subpath "/lib"))
|
|
267
267
|
(allow file-read* (subpath "/lib64"))
|
|
268
|
+
(deny file-write*)
|
|
268
269
|
${rwAllowLines}
|
|
269
270
|
${envLines.join(`
|
|
270
|
-
`)}
|
|
271
|
-
(deny file-write*)`;
|
|
271
|
+
`)}`;
|
|
272
272
|
return profile;
|
|
273
273
|
}
|
|
274
274
|
|
|
@@ -351,7 +351,8 @@ var init_sandbox_exec_executor = __esm(() => {
|
|
|
351
351
|
init_executor();
|
|
352
352
|
SANDBOX_UNAVAILABLE_CODES = new Set(["ENOENT", "EACCES", "ENOSPC"]);
|
|
353
353
|
_internals3 = {
|
|
354
|
-
probeSandboxExec
|
|
354
|
+
probeSandboxExec,
|
|
355
|
+
buildSandboxProfile
|
|
355
356
|
};
|
|
356
357
|
});
|
|
357
358
|
|
|
@@ -792,7 +793,7 @@ async function _createExecutor() {
|
|
|
792
793
|
return null;
|
|
793
794
|
}
|
|
794
795
|
async function _createLinuxExecutor() {
|
|
795
|
-
const { SandboxCapabilityProbe, isBubblewrapAvailable } = await import("./capability-probe-
|
|
796
|
+
const { SandboxCapabilityProbe, isBubblewrapAvailable } = await import("./capability-probe-f1paszww.js");
|
|
796
797
|
await new SandboxCapabilityProbe().detect();
|
|
797
798
|
if (!isBubblewrapAvailable()) {
|
|
798
799
|
return null;
|
|
@@ -805,7 +806,7 @@ async function _createLinuxExecutor() {
|
|
|
805
806
|
}
|
|
806
807
|
}
|
|
807
808
|
async function _createMacOSExecutor() {
|
|
808
|
-
const { SandboxCapabilityProbe, isSandboxExecAvailable } = await import("./capability-probe-
|
|
809
|
+
const { SandboxCapabilityProbe, isSandboxExecAvailable } = await import("./capability-probe-f1paszww.js");
|
|
809
810
|
await new SandboxCapabilityProbe().detect();
|
|
810
811
|
if (!isSandboxExecAvailable()) {
|
|
811
812
|
return null;
|
|
@@ -818,7 +819,7 @@ async function _createMacOSExecutor() {
|
|
|
818
819
|
}
|
|
819
820
|
}
|
|
820
821
|
async function _createWindowsExecutor() {
|
|
821
|
-
const { SandboxCapabilityProbe, isWindowsSandboxAvailable } = await import("./capability-probe-
|
|
822
|
+
const { SandboxCapabilityProbe, isWindowsSandboxAvailable } = await import("./capability-probe-f1paszww.js");
|
|
822
823
|
await new SandboxCapabilityProbe().detect();
|
|
823
824
|
if (!isWindowsSandboxAvailable()) {
|
|
824
825
|
return null;
|
|
@@ -1543,6 +1544,8 @@ function loadDurableStatus(statusPath) {
|
|
|
1543
1544
|
}
|
|
1544
1545
|
}
|
|
1545
1546
|
function initDurableStatusPath(projectDir) {
|
|
1547
|
+
if (typeof projectDir !== "string" || projectDir.length === 0)
|
|
1548
|
+
return;
|
|
1546
1549
|
const nextPath = path5.join(projectDir, ".swarm", "worktree-merge-status.json");
|
|
1547
1550
|
if (durableStatusPath === nextPath && hasLoaded)
|
|
1548
1551
|
return;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
countEntryViolationsInWindow,
|
|
5
5
|
readKnowledgeEvents,
|
|
6
6
|
recordKnowledgeEvent
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-qzqx2qky.js";
|
|
8
8
|
import {
|
|
9
9
|
jaccardBigram,
|
|
10
10
|
readKnowledge,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolveSwarmKnowledgePath,
|
|
13
13
|
transactKnowledge,
|
|
14
14
|
wordBigrams
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-0q7rrh59.js";
|
|
16
16
|
import {
|
|
17
17
|
isActiveStatus
|
|
18
18
|
} from "./index-bfwt3abw.js";
|
|
@@ -188,7 +188,7 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
|
|
|
188
188
|
alreadyInactive: true
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
191
|
+
const { quarantineEntry } = await import("./knowledge-validator-csay9wqj.js");
|
|
192
192
|
await quarantineEntry(directory, entryId, `repeat_contradiction: ${count} contradicted events in ${windowDays}d`, "auto");
|
|
193
193
|
return { quarantined: true, entryId, contradictionsInWindow: count };
|
|
194
194
|
} catch {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-srvqfcyj.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-xbe1wtme.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -81,43 +81,44 @@ import {
|
|
|
81
81
|
handleWriteRetroCommand,
|
|
82
82
|
normalizeSwarmCommandInput,
|
|
83
83
|
resolveCommand
|
|
84
|
-
} from "./index-
|
|
85
|
-
import"./index-
|
|
84
|
+
} from "./index-dh87tpc5.js";
|
|
85
|
+
import"./index-g6va6n3t.js";
|
|
86
86
|
import"./index-c8s9a3zh.js";
|
|
87
|
-
import"./index-
|
|
87
|
+
import"./index-2148358e.js";
|
|
88
88
|
import {
|
|
89
89
|
AGENT_TOOL_MAP,
|
|
90
90
|
ORCHESTRATOR_NAME,
|
|
91
91
|
stripKnownSwarmPrefix
|
|
92
|
-
} from "./index-
|
|
93
|
-
import"./index-
|
|
92
|
+
} from "./index-147ja18h.js";
|
|
93
|
+
import"./index-f6y341yk.js";
|
|
94
94
|
import"./index-scww5b77.js";
|
|
95
|
-
import"./index-
|
|
96
|
-
import"./index-
|
|
97
|
-
import"./index-
|
|
98
|
-
import"./index-
|
|
99
|
-
import"./index-
|
|
100
|
-
import"./index-
|
|
101
|
-
import"./index-
|
|
95
|
+
import"./index-ga4ta3cr.js";
|
|
96
|
+
import"./index-80jkseqw.js";
|
|
97
|
+
import"./index-mr4whary.js";
|
|
98
|
+
import"./index-43khae15.js";
|
|
99
|
+
import"./index-h7q1bvzm.js";
|
|
100
|
+
import"./index-qzqx2qky.js";
|
|
101
|
+
import"./index-0q7rrh59.js";
|
|
102
102
|
import"./index-bfwt3abw.js";
|
|
103
|
-
import"./index-
|
|
103
|
+
import"./index-g40r5d08.js";
|
|
104
104
|
import"./index-jt58s751.js";
|
|
105
|
-
import"./index-
|
|
105
|
+
import"./index-8fwhhayc.js";
|
|
106
106
|
import"./index-q1exe2b3.js";
|
|
107
|
-
import"./index-
|
|
108
|
-
import"./index-
|
|
109
|
-
import"./index-
|
|
107
|
+
import"./index-n6fa2hhk.js";
|
|
108
|
+
import"./index-rdwfqhp7.js";
|
|
109
|
+
import"./index-wh8949ef.js";
|
|
110
110
|
import"./index-jtqkh8jf.js";
|
|
111
111
|
import"./index-5e4e2hvv.js";
|
|
112
112
|
import"./index-p0arc26j.js";
|
|
113
113
|
import"./index-zgwm4ryv.js";
|
|
114
|
-
import"./index-
|
|
115
|
-
import"./index-
|
|
114
|
+
import"./index-dqh3zhhc.js";
|
|
115
|
+
import"./index-4h2ea8h5.js";
|
|
116
|
+
import"./index-0p660a87.js";
|
|
116
117
|
import"./index-293f68mj.js";
|
|
117
|
-
import"./index-
|
|
118
|
-
import"./index-
|
|
118
|
+
import"./index-4sckv7y6.js";
|
|
119
|
+
import"./index-pa6t33pt.js";
|
|
119
120
|
import"./index-vvk2g744.js";
|
|
120
|
-
import"./index-
|
|
121
|
+
import"./index-qe3v54nb.js";
|
|
121
122
|
import"./index-a76rekgs.js";
|
|
122
123
|
// src/commands/command-names.ts
|
|
123
124
|
var COMMAND_NAMES = Object.freeze(Object.keys(COMMAND_REGISTRY));
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
4
4
|
validateSkillPath
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-43khae15.js";
|
|
6
6
|
import {
|
|
7
7
|
effectiveRetrievalOutcomes,
|
|
8
8
|
readKnowledgeCounterRollups
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-qzqx2qky.js";
|
|
10
10
|
import {
|
|
11
11
|
computeOutcomeSignal,
|
|
12
12
|
readKnowledge,
|
|
13
13
|
resolveHiveKnowledgePath,
|
|
14
14
|
resolveSwarmKnowledgePath,
|
|
15
15
|
transactKnowledge
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-0q7rrh59.js";
|
|
17
17
|
import {
|
|
18
18
|
isActiveStatus
|
|
19
19
|
} from "./index-bfwt3abw.js";
|
|
@@ -31,11 +31,14 @@ function initTelemetry(projectDirectory) {
|
|
|
31
31
|
fs.mkdirSync(swarmDir, { recursive: true });
|
|
32
32
|
}
|
|
33
33
|
const telemetryPath = path.join(swarmDir, "telemetry.jsonl");
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
const stream = createWriteStream(telemetryPath, { flags: "a" });
|
|
35
|
+
stream.on("error", () => {
|
|
36
|
+
if (_writeStream === stream) {
|
|
37
|
+
_disabled = true;
|
|
38
|
+
_writeStream = null;
|
|
39
|
+
}
|
|
38
40
|
});
|
|
41
|
+
_writeStream = stream;
|
|
39
42
|
} catch {
|
|
40
43
|
_disabled = true;
|
|
41
44
|
_writeStream = null;
|
|
@@ -51,8 +54,9 @@ function emit(event, data) {
|
|
|
51
54
|
event,
|
|
52
55
|
...data
|
|
53
56
|
}) + os.EOL;
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
const stream = _writeStream;
|
|
58
|
+
stream.write(line, (err) => {
|
|
59
|
+
if (err && _writeStream === stream) {
|
|
56
60
|
_disabled = true;
|
|
57
61
|
_writeStream = null;
|
|
58
62
|
}
|
|
@@ -89,11 +93,14 @@ function rotateTelemetryIfNeeded(maxBytes = 10 * 1024 * 1024) {
|
|
|
89
93
|
fs.renameSync(telemetryPath, rotatedPath);
|
|
90
94
|
if (_writeStream !== null) {
|
|
91
95
|
_writeStream.end();
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
const stream = createWriteStream(telemetryPath, { flags: "a" });
|
|
97
|
+
stream.on("error", () => {
|
|
98
|
+
if (_writeStream === stream) {
|
|
99
|
+
_disabled = true;
|
|
100
|
+
_writeStream = null;
|
|
101
|
+
}
|
|
96
102
|
});
|
|
103
|
+
_writeStream = stream;
|
|
97
104
|
}
|
|
98
105
|
} catch {}
|
|
99
106
|
}
|
|
@@ -281,7 +281,12 @@ function bunSpawn(cmd, options) {
|
|
|
281
281
|
const bun = getBun();
|
|
282
282
|
if (bun?.spawn) {
|
|
283
283
|
const mergedEnv2 = mergeEnvForChild(options?.env, options?.envOverrides);
|
|
284
|
-
const spawnOpts =
|
|
284
|
+
const spawnOpts = { ...options };
|
|
285
|
+
if (mergedEnv2 !== undefined)
|
|
286
|
+
spawnOpts.env = mergedEnv2;
|
|
287
|
+
if (options?.timeout && options.timeout > 0) {
|
|
288
|
+
spawnOpts.killSignal = "SIGKILL";
|
|
289
|
+
}
|
|
285
290
|
const proc2 = bun.spawn(cmd, spawnOpts);
|
|
286
291
|
return {
|
|
287
292
|
stdout: streamFromBun(proc2.stdout),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
resolveKnowledgeStoreDir
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-g40r5d08.js";
|
|
5
5
|
import {
|
|
6
6
|
init_logger,
|
|
7
7
|
warn
|
|
8
8
|
} from "./index-zgwm4ryv.js";
|
|
9
9
|
import {
|
|
10
10
|
atomicWriteFile
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-0p660a87.js";
|
|
12
12
|
import {
|
|
13
13
|
require_proper_lockfile
|
|
14
14
|
} from "./index-vvk2g744.js";
|
|
@@ -594,7 +594,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
594
594
|
deltas.push({ id, delta });
|
|
595
595
|
}
|
|
596
596
|
if (deltas.length > 0) {
|
|
597
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
597
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-k5rab79h.js");
|
|
598
598
|
await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
599
599
|
}
|
|
600
600
|
return {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./index-zgwm4ryv.js";
|
|
5
5
|
import {
|
|
6
6
|
bunSpawn
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-qe3v54nb.js";
|
|
8
8
|
import {
|
|
9
9
|
__require
|
|
10
10
|
} from "./index-a76rekgs.js";
|
|
@@ -34,7 +34,7 @@ var _internals = {
|
|
|
34
34
|
symlinkSync: fs.symlinkSync
|
|
35
35
|
},
|
|
36
36
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
37
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
37
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-fm0gzhnk.js");
|
|
38
38
|
return realWrite(directory, taskId, files);
|
|
39
39
|
},
|
|
40
40
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
detectPosixWrites,
|
|
13
13
|
detectWindowsWrites,
|
|
14
14
|
resolveWriteTargets
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-dh87tpc5.js";
|
|
16
16
|
import {
|
|
17
17
|
checkFileAuthority,
|
|
18
18
|
classifyFile,
|
|
19
19
|
isInDeclaredScope,
|
|
20
20
|
redactPath,
|
|
21
21
|
redactShellCommand
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-g6va6n3t.js";
|
|
23
23
|
|
|
24
24
|
// src/services/guardrail-explain-service.ts
|
|
25
25
|
import path from "path";
|
package/dist/cli/index.js
CHANGED
|
@@ -7,41 +7,42 @@ import {
|
|
|
7
7
|
getPluginLockFilePaths,
|
|
8
8
|
package_default,
|
|
9
9
|
resolveCommand
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
} from "./index-dh87tpc5.js";
|
|
11
|
+
import"./index-g6va6n3t.js";
|
|
12
12
|
import"./index-c8s9a3zh.js";
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-2148358e.js";
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_AGENT_CONFIGS
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
} from "./index-147ja18h.js";
|
|
17
|
+
import"./index-f6y341yk.js";
|
|
18
18
|
import"./index-scww5b77.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
19
|
+
import"./index-ga4ta3cr.js";
|
|
20
|
+
import"./index-80jkseqw.js";
|
|
21
|
+
import"./index-mr4whary.js";
|
|
22
|
+
import"./index-43khae15.js";
|
|
23
|
+
import"./index-h7q1bvzm.js";
|
|
24
|
+
import"./index-qzqx2qky.js";
|
|
25
|
+
import"./index-0q7rrh59.js";
|
|
26
26
|
import"./index-bfwt3abw.js";
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-g40r5d08.js";
|
|
28
28
|
import"./index-jt58s751.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-8fwhhayc.js";
|
|
30
30
|
import"./index-q1exe2b3.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
31
|
+
import"./index-n6fa2hhk.js";
|
|
32
|
+
import"./index-rdwfqhp7.js";
|
|
33
|
+
import"./index-wh8949ef.js";
|
|
34
34
|
import"./index-jtqkh8jf.js";
|
|
35
35
|
import"./index-5e4e2hvv.js";
|
|
36
36
|
import"./index-p0arc26j.js";
|
|
37
37
|
import"./index-zgwm4ryv.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
38
|
+
import"./index-dqh3zhhc.js";
|
|
39
|
+
import"./index-4h2ea8h5.js";
|
|
40
|
+
import"./index-0p660a87.js";
|
|
40
41
|
import"./index-293f68mj.js";
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
42
|
+
import"./index-4sckv7y6.js";
|
|
43
|
+
import"./index-pa6t33pt.js";
|
|
43
44
|
import"./index-vvk2g744.js";
|
|
44
|
-
import"./index-
|
|
45
|
+
import"./index-qe3v54nb.js";
|
|
45
46
|
import"./index-a76rekgs.js";
|
|
46
47
|
|
|
47
48
|
// src/cli/index.ts
|
|
@@ -8,18 +8,18 @@ import {
|
|
|
8
8
|
maybeEscalateOnViolation,
|
|
9
9
|
maybeQuarantineOnContradiction,
|
|
10
10
|
readRecentEscalations
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
} from "./index-h7q1bvzm.js";
|
|
12
|
+
import"./index-qzqx2qky.js";
|
|
13
|
+
import"./index-0q7rrh59.js";
|
|
14
14
|
import"./index-bfwt3abw.js";
|
|
15
|
-
import"./index-
|
|
15
|
+
import"./index-g40r5d08.js";
|
|
16
16
|
import"./index-jtqkh8jf.js";
|
|
17
17
|
import"./index-zgwm4ryv.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
18
|
+
import"./index-0p660a87.js";
|
|
19
|
+
import"./index-4sckv7y6.js";
|
|
20
|
+
import"./index-pa6t33pt.js";
|
|
21
21
|
import"./index-vvk2g744.js";
|
|
22
|
-
import"./index-
|
|
22
|
+
import"./index-qe3v54nb.js";
|
|
23
23
|
import"./index-a76rekgs.js";
|
|
24
24
|
export {
|
|
25
25
|
readRecentEscalations,
|
|
@@ -25,14 +25,14 @@ import {
|
|
|
25
25
|
resolveKnowledgeCounterBaselinePath,
|
|
26
26
|
resolveKnowledgeEventsPath,
|
|
27
27
|
resolveLegacyApplicationLogPath
|
|
28
|
-
} from "./index-
|
|
29
|
-
import"./index-
|
|
28
|
+
} from "./index-qzqx2qky.js";
|
|
29
|
+
import"./index-g40r5d08.js";
|
|
30
30
|
import"./index-zgwm4ryv.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
31
|
+
import"./index-0p660a87.js";
|
|
32
|
+
import"./index-4sckv7y6.js";
|
|
33
|
+
import"./index-pa6t33pt.js";
|
|
34
34
|
import"./index-vvk2g744.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-qe3v54nb.js";
|
|
36
36
|
import"./index-a76rekgs.js";
|
|
37
37
|
export {
|
|
38
38
|
resolveLegacyApplicationLogPath,
|
|
@@ -34,16 +34,16 @@ import {
|
|
|
34
34
|
transactFile,
|
|
35
35
|
transactKnowledge,
|
|
36
36
|
wordBigrams
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-0q7rrh59.js";
|
|
38
38
|
import"./index-bfwt3abw.js";
|
|
39
|
-
import"./index-
|
|
39
|
+
import"./index-g40r5d08.js";
|
|
40
40
|
import"./index-jtqkh8jf.js";
|
|
41
41
|
import"./index-zgwm4ryv.js";
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
42
|
+
import"./index-0p660a87.js";
|
|
43
|
+
import"./index-4sckv7y6.js";
|
|
44
|
+
import"./index-pa6t33pt.js";
|
|
45
45
|
import"./index-vvk2g744.js";
|
|
46
|
-
import"./index-
|
|
46
|
+
import"./index-qe3v54nb.js";
|
|
47
47
|
import"./index-a76rekgs.js";
|
|
48
48
|
export {
|
|
49
49
|
wordBigrams,
|
|
@@ -22,17 +22,17 @@ import {
|
|
|
22
22
|
validateLesson,
|
|
23
23
|
validateSkillCandidatePath,
|
|
24
24
|
validateSkillPath
|
|
25
|
-
} from "./index-
|
|
26
|
-
import"./index-
|
|
25
|
+
} from "./index-43khae15.js";
|
|
26
|
+
import"./index-0q7rrh59.js";
|
|
27
27
|
import"./index-bfwt3abw.js";
|
|
28
|
-
import"./index-
|
|
28
|
+
import"./index-g40r5d08.js";
|
|
29
29
|
import"./index-jtqkh8jf.js";
|
|
30
30
|
import"./index-zgwm4ryv.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
31
|
+
import"./index-0p660a87.js";
|
|
32
|
+
import"./index-4sckv7y6.js";
|
|
33
|
+
import"./index-pa6t33pt.js";
|
|
34
34
|
import"./index-vvk2g744.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-qe3v54nb.js";
|
|
36
36
|
import"./index-a76rekgs.js";
|
|
37
37
|
export {
|
|
38
38
|
validateSkillPath,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-wh8949ef.js";
|
|
5
5
|
import"./index-jtqkh8jf.js";
|
|
6
6
|
import"./index-5e4e2hvv.js";
|
|
7
7
|
import"./index-p0arc26j.js";
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
} from "./index-293f68mj.js";
|
|
15
15
|
import {
|
|
16
16
|
withEvidenceLock
|
|
17
|
-
} from "./index-
|
|
18
|
-
import"./index-
|
|
17
|
+
} from "./index-4sckv7y6.js";
|
|
18
|
+
import"./index-pa6t33pt.js";
|
|
19
19
|
import"./index-vvk2g744.js";
|
|
20
|
-
import"./index-
|
|
20
|
+
import"./index-qe3v54nb.js";
|
|
21
21
|
import"./index-a76rekgs.js";
|
|
22
22
|
|
|
23
23
|
// src/background/pending-delegations.ts
|
|
@@ -45,9 +45,14 @@ var WorkspaceSchema = exports_external.object({
|
|
|
45
45
|
directory: exports_external.string(),
|
|
46
46
|
gitHead: exports_external.string().nullable(),
|
|
47
47
|
dirtyHash: exports_external.string().nullable(),
|
|
48
|
+
changedFiles: exports_external.array(exports_external.string()).nullable().optional(),
|
|
48
49
|
prHeadSha: exports_external.string().nullable(),
|
|
49
50
|
scope: exports_external.string().nullable()
|
|
50
51
|
}).strict();
|
|
52
|
+
var TaskChangeContextSchema = exports_external.object({
|
|
53
|
+
declaredFiles: exports_external.array(exports_external.string()).nullable(),
|
|
54
|
+
baseline: WorkspaceSchema
|
|
55
|
+
}).strict();
|
|
51
56
|
var PromptSchema = exports_external.object({
|
|
52
57
|
text: exports_external.string(),
|
|
53
58
|
chars: exports_external.number(),
|
|
@@ -82,6 +87,7 @@ var RecordSchema = exports_external.object({
|
|
|
82
87
|
mode: exports_external.string().optional(),
|
|
83
88
|
promptHash: exports_external.string().optional(),
|
|
84
89
|
workspace: WorkspaceSchema.optional(),
|
|
90
|
+
taskChangeContext: TaskChangeContextSchema.optional(),
|
|
85
91
|
prompt: PromptSchema.optional(),
|
|
86
92
|
generation: exports_external.number().optional(),
|
|
87
93
|
result: ResultSchema.optional(),
|
|
@@ -157,6 +163,7 @@ async function recordPendingDelegation(directory, input, options = {}) {
|
|
|
157
163
|
...input.mode ? { mode: input.mode } : {},
|
|
158
164
|
...input.promptHash ? { promptHash: input.promptHash } : {},
|
|
159
165
|
...input.workspace ? { workspace: input.workspace } : {},
|
|
166
|
+
...input.taskChangeContext ? { taskChangeContext: input.taskChangeContext } : {},
|
|
160
167
|
...input.prompt ? { prompt: input.prompt } : {},
|
|
161
168
|
...input.generation !== undefined ? { generation: input.generation } : {}
|
|
162
169
|
};
|
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
sweepStale,
|
|
10
10
|
unsubscribe,
|
|
11
11
|
updateSnapshot
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-80jkseqw.js";
|
|
13
|
+
import"./index-wh8949ef.js";
|
|
14
14
|
import"./index-jtqkh8jf.js";
|
|
15
15
|
import"./index-5e4e2hvv.js";
|
|
16
16
|
import"./index-p0arc26j.js";
|
|
17
17
|
import"./index-zgwm4ryv.js";
|
|
18
18
|
import"./index-293f68mj.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
19
|
+
import"./index-4sckv7y6.js";
|
|
20
|
+
import"./index-pa6t33pt.js";
|
|
21
21
|
import"./index-vvk2g744.js";
|
|
22
|
-
import"./index-
|
|
22
|
+
import"./index-qe3v54nb.js";
|
|
23
23
|
import"./index-a76rekgs.js";
|
|
24
24
|
export {
|
|
25
25
|
updateSnapshot,
|