opencode-swarm 7.164.12 → 7.165.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/durable-session-state/SKILL.md +1 -1
- package/.opencode/skills/issue-tracer/SKILL.md +140 -286
- package/.opencode/skills/issue-tracer/assets/pr-template.md +13 -7
- package/.opencode/skills/issue-tracer/references/acceptance-checks.md +66 -0
- package/.opencode/skills/issue-tracer/references/critic-gate.md +53 -11
- package/.opencode/skills/issue-tracer/references/evidence-artifacts.md +128 -23
- package/.opencode/skills/issue-tracer/references/full-resolution-contract.md +69 -0
- package/.opencode/skills/issue-tracer/references/install.md +31 -9
- package/.opencode/skills/issue-tracer/references/localization-playbook.md +26 -14
- package/.opencode/skills/issue-tracer/references/method-provenance.md +19 -3
- package/.opencode/skills/issue-tracer/references/phase-0-setup.md +90 -0
- package/.opencode/skills/issue-tracer/references/phase-1-intake.md +43 -0
- package/.opencode/skills/issue-tracer/references/untrusted-content.md +13 -5
- package/.opencode/skills/issue-tracer/scripts/repro-check.sh +416 -0
- package/.opencode/skills/issue-tracer/scripts/trace-check.sh +479 -0
- package/.opencode/skills/issue-tracer/scripts/trace-init.sh +96 -6
- package/.opencode/skills/loop/SKILL.md +1 -1
- package/.opencode/skills/{plan → swarm-plan}/SKILL.md +1 -1
- package/dist/cli/{coder-settlement-yh1q5fr3.js → coder-settlement-89nt4j7g.js} +11 -11
- package/dist/cli/{config-doctor-bd4yzmh7.js → config-doctor-gm6f5chm.js} +3 -3
- package/dist/cli/{core-y0s1vmyc.js → core-91p43zwj.js} +2 -2
- package/dist/cli/{curation-policy-gs1qakn7.js → curation-policy-bqpmry2n.js} +5 -5
- package/dist/cli/{curator-brqack0j.js → curator-4bs2hmy9.js} +36 -36
- package/dist/cli/{curator-drift-1sg9yk2m.js → curator-drift-hbc3w5zj.js} +4 -4
- package/dist/cli/curator-llm-factory-fhbjwar0.js +70 -0
- package/dist/cli/{evidence-summary-service-nqbcvp30.js → evidence-summary-service-g1xd8egd.js} +16 -16
- package/dist/cli/{gate-evidence-9stdtpej.js → gate-evidence-gdmgsz7c.js} +7 -7
- package/dist/cli/guardrail-explain-1nfbtpgg.js +71 -0
- package/dist/cli/{guardrail-log-sf39x00b.js → guardrail-log-nyggdv04.js} +8 -8
- package/dist/cli/{guardrail-reset-9wr6a60s.js → guardrail-reset-rp9jq0gj.js} +36 -36
- package/dist/cli/{hive-promoter-bqtj8261.js → hive-promoter-39xb4tx2.js} +36 -36
- package/dist/cli/{index-cgewrpw5.js → index-0e9jh9c7.js} +4 -3
- package/dist/cli/{index-3fnym6ac.js → index-1v6vc90w.js} +4 -4
- package/dist/cli/{index-hg09xemc.js → index-2k53pfnc.js} +4 -4
- package/dist/cli/{index-wknpkfm8.js → index-3xyjvx24.js} +7 -7
- package/dist/cli/{index-03enxdaq.js → index-4gmt79q9.js} +1 -1
- package/dist/cli/{index-qgajv9rd.js → index-58be2gtd.js} +3 -3
- package/dist/cli/{index-r2p0pgst.js → index-5ebgzb5a.js} +3 -3
- package/dist/cli/{index-k0s8n6m5.js → index-5ythtd9t.js} +11 -11
- package/dist/cli/{index-hb7bh4r2.js → index-6be5caj8.js} +30 -6
- package/dist/cli/{index-yvqg6kn5.js → index-6m24v15v.js} +2 -2
- package/dist/cli/{index-sphahrmq.js → index-6rx1rdaq.js} +1 -1
- package/dist/cli/{index-r69gzes2.js → index-7h94rfem.js} +7 -7
- package/dist/cli/{index-xxfk62zd.js → index-8bdk7124.js} +2 -2
- package/dist/cli/{index-50j914b5.js → index-a0d4fp6r.js} +29 -7
- package/dist/cli/{index-8vw2pjgr.js → index-afpkqsdb.js} +6 -6
- package/dist/cli/{index-4mjmnysc.js → index-ajknebrc.js} +1 -1
- package/dist/cli/{index-qqq04n70.js → index-anxs69ad.js} +1 -1
- package/dist/cli/{index-888pq4xx.js → index-c4ddtrqg.js} +7 -7
- package/dist/cli/{index-ztm0q26v.js → index-dh5th4jn.js} +1 -1
- package/dist/cli/{index-c45662wc.js → index-e45htt92.js} +1 -1
- package/dist/cli/{index-ad9064j9.js → index-e6n7cemz.js} +4 -4
- package/dist/cli/{index-hvz4ad2t.js → index-f36hy1x4.js} +1 -1
- package/dist/cli/{index-40twgsyh.js → index-g8wdekzz.js} +2 -2
- package/dist/cli/{index-0byep4pe.js → index-gn6ybsc4.js} +8 -8
- package/dist/cli/{index-ewv8qa8q.js → index-gy0nyfbw.js} +2 -2
- package/dist/cli/{index-wasdrhev.js → index-hdakb4n9.js} +4 -4
- package/dist/cli/{index-5wc5pbzc.js → index-hwz46jj7.js} +682 -349
- package/dist/cli/{index-eed0gkv6.js → index-j2svfhzk.js} +2 -2
- package/dist/cli/{index-2bhz5k91.js → index-jre6tm3v.js} +2 -2
- package/dist/cli/{index-b25t91a3.js → index-k1ntjzmf.js} +2 -2
- package/dist/cli/{index-kxv193aq.js → index-n3pjcks8.js} +5 -5
- package/dist/cli/{index-ebce775n.js → index-p7hdp3rp.js} +2 -2
- package/dist/cli/{index-d3mpxsmy.js → index-ptsqnxwd.js} +7 -7
- package/dist/cli/{index-d7j3n5ra.js → index-qzvry1n1.js} +41 -39
- package/dist/cli/{index-m8xrbdmn.js → index-r5hj3nfe.js} +2 -2
- package/dist/cli/{index-x39hjdf1.js → index-tqw8w2n5.js} +1 -1
- package/dist/cli/{index-es64amqt.js → index-w6988bbc.js} +1 -1
- package/dist/cli/{index-mee9maf5.js → index-xwbn7c8m.js} +2 -2
- package/dist/cli/{index-4vb56w2k.js → index-y1zhpfk8.js} +4 -4
- package/dist/cli/{index-vw66q1rw.js → index-zycp24b9.js} +1 -1
- package/dist/cli/index.js +146 -67
- package/dist/cli/{knowledge-escalator-01vva51d.js → knowledge-escalator-eq07pcj3.js} +13 -13
- package/dist/cli/{knowledge-events-dpfwh1hs.js → knowledge-events-rv9q9mkm.js} +11 -11
- package/dist/cli/{knowledge-link-2rvp966j.js → knowledge-link-dgvbqjqg.js} +4 -4
- package/dist/cli/{knowledge-store-aw58ae7b.js → knowledge-store-cxcr0ttk.js} +5 -5
- package/dist/cli/{knowledge-validator-yhd31ryf.js → knowledge-validator-8qtd9ys0.js} +7 -7
- package/dist/cli/{model-preflight-288nsgpw.js → model-preflight-3s1c0zpc.js} +1 -1
- package/dist/cli/{pending-delegations-fjetcz8e.js → pending-delegations-dp3g8e7k.js} +11 -11
- package/dist/cli/{pr-subscriptions-cwwtfs8w.js → pr-subscriptions-3vx06rar.js} +11 -11
- package/dist/cli/{pr-workflow-gate-5xwtg1k2.js → pr-workflow-gate-bbet0apk.js} +36 -36
- package/dist/cli/{runner-mb51twxt.js → runner-0e3bjeev.js} +5 -5
- package/dist/cli/{scan-cursor-j11qwf0v.js → scan-cursor-zwm0xng7.js} +6 -6
- package/dist/cli/{schema-0xp3bde3.js → schema-ebfxgya0.js} +2 -2
- package/dist/cli/{scope-persistence-brrk806y.js → scope-persistence-6c55akfz.js} +15 -15
- package/dist/cli/{skill-generator-j8qzmet9.js → skill-generator-mv5jxzsh.js} +15 -15
- package/dist/cli/{snapshot-coordination-init-h0xmtftq.js → snapshot-coordination-init-n556wa18.js} +36 -36
- package/dist/cli/{telemetry-m84ap0pp.js → telemetry-a1yvjerj.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-j9zykj18.js → worktree-collision-ownership-pp4z4z8p.js} +12 -12
- package/dist/cli/{worktree-isolation-jd39xz6h.js → worktree-isolation-69hz9dgg.js} +36 -36
- package/dist/commands/benchmark.d.ts +5 -1
- package/dist/commands/registry.d.ts +34 -43
- package/dist/commands/turbo.d.ts +1 -1
- package/dist/config/bundled-skills.d.ts +4 -3
- package/dist/config/constants.d.ts +13 -0
- package/dist/config/skill-mirrors.d.ts +3 -3
- package/dist/hooks/extractors.d.ts +9 -0
- package/dist/hooks/non-architect-advisory.d.ts +18 -0
- package/dist/hooks/repo-graph-injection.d.ts +16 -0
- package/dist/index.js +73 -71
- package/dist/services/decision-drift-analyzer.d.ts +7 -0
- package/dist/services/handoff-service.d.ts +10 -0
- package/dist/services/status-service.d.ts +27 -0
- package/dist/state.d.ts +8 -0
- package/dist/tools/repo-graph/builder.d.ts +1 -25
- package/dist/tools/repo-graph/cache.d.ts +5 -1
- package/dist/tools/repo-graph/fallback-scanner.d.ts +71 -0
- package/dist/tools/repo-graph/indexed-storage.d.ts +11 -0
- package/dist/tools/repo-graph/storage.d.ts +7 -0
- package/dist/utils/context-decisions.d.ts +77 -0
- package/dist/utils/sanitize-display.d.ts +7 -0
- package/package.json +3 -2
- package/dist/cli/curator-llm-factory-dtsjc3zf.js +0 -70
- package/dist/cli/guardrail-explain-3ff1z3fm.js +0 -71
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from "./index-7qefgq4j.js";
|
|
5
5
|
import {
|
|
6
6
|
atomicWriteSwarmFile
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-gy0nyfbw.js";
|
|
8
8
|
import {
|
|
9
9
|
pseudonymousRef,
|
|
10
10
|
resolveLineageSalt,
|
|
11
11
|
telemetry
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-5ebgzb5a.js";
|
|
13
13
|
|
|
14
14
|
// src/health/learning-health.ts
|
|
15
15
|
import { promises as fs } from "fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
atomicWriteFileAnyRoot
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-gy0nyfbw.js";
|
|
5
5
|
import {
|
|
6
6
|
emit
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-5ebgzb5a.js";
|
|
8
8
|
import {
|
|
9
9
|
require_proper_lockfile
|
|
10
10
|
} from "./index-7g4c7s5r.js";
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
PluginConfigSchema,
|
|
13
13
|
init_schema,
|
|
14
14
|
stripKnownSwarmPrefix
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-0e9jh9c7.js";
|
|
16
16
|
import {
|
|
17
17
|
ALL_AGENT_NAMES,
|
|
18
18
|
TOOL_NAME_SET,
|
|
19
19
|
init_constants,
|
|
20
20
|
init_tool_metadata
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-a0d4fp6r.js";
|
|
22
22
|
import {
|
|
23
23
|
log
|
|
24
24
|
} from "./index-zgwm4ryv.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
queryHistoricalOutcomes,
|
|
4
4
|
readKnowledgeEvents,
|
|
5
5
|
recordKnowledgeEvent
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-gn6ybsc4.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-c4ddtrqg.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-8qtd9ys0.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-ebfxgya0.js");
|
|
231
|
+
const { loadPluginConfigWithMeta } = await import("./index-1v6vc90w.js");
|
|
232
232
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
233
233
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
234
234
|
} catch {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
SWARM_WORKTREE_DIR_NAME,
|
|
15
15
|
init_constants
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-a0d4fp6r.js";
|
|
17
17
|
import {
|
|
18
18
|
log
|
|
19
19
|
} from "./index-zgwm4ryv.js";
|
|
@@ -92,7 +92,7 @@ var _internals = {
|
|
|
92
92
|
symlinkSync: fs.symlinkSync
|
|
93
93
|
},
|
|
94
94
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
95
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
95
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-6c55akfz.js");
|
|
96
96
|
return realWrite(directory, taskId, files);
|
|
97
97
|
},
|
|
98
98
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-anxs69ad.js";
|
|
5
5
|
import {
|
|
6
6
|
deleteCoordinationState,
|
|
7
7
|
importCoordinationOnce,
|
|
8
8
|
listCoordinationStates,
|
|
9
9
|
transitionCoordinationState,
|
|
10
10
|
withCoordinationTransaction
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-e45htt92.js";
|
|
12
12
|
import {
|
|
13
13
|
getProjectDb,
|
|
14
14
|
projectDbExists
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-w6988bbc.js";
|
|
16
16
|
import {
|
|
17
17
|
observeStoreHealth
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-j2svfhzk.js";
|
|
19
19
|
import {
|
|
20
20
|
canonicalRootKey,
|
|
21
21
|
canonicalRootKeyFresh,
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
} from "./index-7qefgq4j.js";
|
|
24
24
|
import {
|
|
25
25
|
withEvidenceLock
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-jre6tm3v.js";
|
|
27
27
|
import {
|
|
28
28
|
atomicWriteSwarmFileSync
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-gy0nyfbw.js";
|
|
30
30
|
import {
|
|
31
31
|
telemetry
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-5ebgzb5a.js";
|
|
33
33
|
import {
|
|
34
34
|
exports_external,
|
|
35
35
|
init_zod
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-r5hj3nfe.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-4gmt79q9.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -94,71 +94,71 @@ import {
|
|
|
94
94
|
handleWriteRetroCommand,
|
|
95
95
|
normalizeSwarmCommandInput,
|
|
96
96
|
resolveCommand
|
|
97
|
-
} from "./index-
|
|
97
|
+
} from "./index-hwz46jj7.js";
|
|
98
98
|
import"./index-8d90gzaz.js";
|
|
99
|
-
import"./index-
|
|
100
|
-
import"./index-
|
|
101
|
-
import"./index-
|
|
102
|
-
import"./index-
|
|
103
|
-
import"./index-
|
|
99
|
+
import"./index-f36hy1x4.js";
|
|
100
|
+
import"./index-hdakb4n9.js";
|
|
101
|
+
import"./index-k1ntjzmf.js";
|
|
102
|
+
import"./index-5ythtd9t.js";
|
|
103
|
+
import"./index-tqw8w2n5.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-6be5caj8.js";
|
|
107
|
+
import"./index-n3pjcks8.js";
|
|
108
|
+
import"./index-g8wdekzz.js";
|
|
109
109
|
import"./index-70ha9e09.js";
|
|
110
|
-
import"./index-
|
|
110
|
+
import"./index-dh5th4jn.js";
|
|
111
111
|
import"./index-9ss2m4rs.js";
|
|
112
|
-
import"./index-
|
|
112
|
+
import"./index-ptsqnxwd.js";
|
|
113
113
|
import"./index-zsrtt42s.js";
|
|
114
|
-
import"./index-
|
|
114
|
+
import"./index-7h94rfem.js";
|
|
115
115
|
import"./index-6chhqq2n.js";
|
|
116
|
-
import"./index-
|
|
116
|
+
import"./index-8bdk7124.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-e6n7cemz.js";
|
|
120
|
+
import"./index-p7hdp3rp.js";
|
|
121
|
+
import"./index-afpkqsdb.js";
|
|
122
|
+
import"./index-gn6ybsc4.js";
|
|
123
|
+
import"./index-anxs69ad.js";
|
|
124
124
|
import"./index-z6xqpmqg.js";
|
|
125
125
|
import"./index-p612v1mv.js";
|
|
126
|
-
import"./index-
|
|
127
|
-
import"./index-
|
|
126
|
+
import"./index-2k53pfnc.js";
|
|
127
|
+
import"./index-ajknebrc.js";
|
|
128
128
|
import"./index-rtry5xyf.js";
|
|
129
|
-
import"./index-
|
|
129
|
+
import"./index-58be2gtd.js";
|
|
130
130
|
import"./index-3qf1vxtb.js";
|
|
131
131
|
import"./index-n832052r.js";
|
|
132
|
-
import"./index-
|
|
133
|
-
import"./index-
|
|
134
|
-
import"./index-
|
|
132
|
+
import"./index-3xyjvx24.js";
|
|
133
|
+
import"./index-y1zhpfk8.js";
|
|
134
|
+
import"./index-xwbn7c8m.js";
|
|
135
135
|
import"./index-556ja8an.js";
|
|
136
|
-
import"./index-
|
|
137
|
-
import"./index-
|
|
138
|
-
import"./index-
|
|
136
|
+
import"./index-6m24v15v.js";
|
|
137
|
+
import"./index-e45htt92.js";
|
|
138
|
+
import"./index-w6988bbc.js";
|
|
139
139
|
import"./index-ry16d01s.js";
|
|
140
140
|
import"./index-n4fzmqz8.js";
|
|
141
|
-
import"./index-
|
|
142
|
-
import"./index-
|
|
141
|
+
import"./index-j2svfhzk.js";
|
|
142
|
+
import"./index-c4ddtrqg.js";
|
|
143
143
|
import"./index-ae75rja9.js";
|
|
144
|
-
import"./index-
|
|
144
|
+
import"./index-6rx1rdaq.js";
|
|
145
145
|
import"./index-7qefgq4j.js";
|
|
146
|
-
import"./index-
|
|
147
|
-
import"./index-
|
|
148
|
-
import"./index-
|
|
146
|
+
import"./index-jre6tm3v.js";
|
|
147
|
+
import"./index-gy0nyfbw.js";
|
|
148
|
+
import"./index-5ebgzb5a.js";
|
|
149
149
|
import"./index-7g4c7s5r.js";
|
|
150
|
-
import"./index-
|
|
150
|
+
import"./index-zycp24b9.js";
|
|
151
151
|
import"./index-9e6fdz2h.js";
|
|
152
152
|
import"./index-4rhhvd1a.js";
|
|
153
153
|
import {
|
|
154
154
|
init_schema,
|
|
155
155
|
stripKnownSwarmPrefix
|
|
156
|
-
} from "./index-
|
|
156
|
+
} from "./index-0e9jh9c7.js";
|
|
157
157
|
import {
|
|
158
158
|
AGENT_TOOL_MAP,
|
|
159
159
|
ORCHESTRATOR_NAME,
|
|
160
160
|
init_constants
|
|
161
|
-
} from "./index-
|
|
161
|
+
} from "./index-a0d4fp6r.js";
|
|
162
162
|
import"./index-zjygnfay.js";
|
|
163
163
|
import"./index-bk5tah7q.js";
|
|
164
164
|
import"./index-bpmtbmy9.js";
|
|
@@ -332,7 +332,8 @@ async function buildSwarmCommandPrompt(args) {
|
|
|
332
332
|
return routeToSwarmCommandTool({
|
|
333
333
|
command: canonicalKey,
|
|
334
334
|
args: resolved.remainingArgs,
|
|
335
|
-
original: `/swarm ${tokens.join(" ")}`.trim()
|
|
335
|
+
original: `/swarm ${tokens.join(" ")}`.trim(),
|
|
336
|
+
warning: typedResolved.warning
|
|
336
337
|
});
|
|
337
338
|
}
|
|
338
339
|
if (canUseTool && isV1ToolCommand && !policy.allowed) {
|
|
@@ -413,6 +414,7 @@ function formatCanonicalPromptFallback(args) {
|
|
|
413
414
|
function routeToSwarmCommandTool(args) {
|
|
414
415
|
return [
|
|
415
416
|
`The user typed \`${args.original}\`.`,
|
|
417
|
+
...args.warning ? [args.warning] : [],
|
|
416
418
|
"Call the `swarm_command` tool exactly once with:",
|
|
417
419
|
JSON.stringify({ command: args.command, args: args.args }, null, 2),
|
|
418
420
|
"After the tool returns, show the tool output verbatim and add no extra swarm state."
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
detectWindowsWrites,
|
|
15
15
|
getSharedClassifierGuardrailBlock,
|
|
16
16
|
resolveWriteTargets
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-hwz46jj7.js";
|
|
18
18
|
import {
|
|
19
19
|
checkFileAuthority,
|
|
20
20
|
classifyFile,
|
|
21
21
|
isInDeclaredScope,
|
|
22
22
|
redactPath,
|
|
23
23
|
redactShellCommand
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-hdakb4n9.js";
|
|
25
25
|
|
|
26
26
|
// src/services/guardrail-explain-service.ts
|
|
27
27
|
import path from "path";
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
import {
|
|
3
3
|
derivePlanId,
|
|
4
4
|
derivePlanIdentityHash
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-e45htt92.js";
|
|
6
6
|
import {
|
|
7
7
|
assertProjectRoot,
|
|
8
8
|
withEvidenceLock
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-jre6tm3v.js";
|
|
10
10
|
import {
|
|
11
11
|
emit
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-5ebgzb5a.js";
|
|
13
13
|
import {
|
|
14
14
|
ExecutionProfileSchema,
|
|
15
15
|
PlanSchema,
|
|
16
16
|
TaskStatusSchema,
|
|
17
17
|
init_loader
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-zycp24b9.js";
|
|
19
19
|
import {
|
|
20
20
|
criticalWarn,
|
|
21
21
|
init_logger,
|