opencode-swarm 7.192.0 → 7.192.2
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/critic-gate/SKILL.md +2 -1
- package/.opencode/skills/execute/SKILL.md +1 -1
- package/.opencode/skills/swarm-pr-review/SKILL.md +2 -2
- package/.opencode/skills/swarm-pr-review/references/lane-output-recoverability.md +18 -8
- package/README.md +5 -3
- 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 +2 -2
- package/dist/background/pr-review-trigger-contract.d.ts +145 -0
- package/dist/cli/{auto-checkpoint-fzybxf58.js → auto-checkpoint-735m8sz7.js} +8 -8
- package/dist/cli/{capability-probe-3mgxcfr9.js → capability-probe-rty1315z.js} +1 -1
- package/dist/cli/{checkpoint-6fr9tc3h.js → checkpoint-ptzc5jev.js} +16 -16
- package/dist/cli/{coder-settlement-1t0r6q0r.js → coder-settlement-hh5165m1.js} +12 -12
- package/dist/cli/{config-doctor-0kd6w45h.js → config-doctor-wzzvhpcr.js} +15 -15
- package/dist/cli/{core-dxraa2ss.js → core-0jarm64k.js} +3 -3
- package/dist/cli/{curation-policy-6p6fcfjb.js → curation-policy-yzdznz4z.js} +6 -6
- package/dist/cli/{curator-drift-6qb0c363.js → curator-drift-f4aqxz9e.js} +8 -8
- package/dist/cli/{curator-hwwp7e2g.js → curator-f7crssw2.js} +43 -43
- package/dist/cli/curator-llm-factory-kxnzvhje.js +82 -0
- package/dist/cli/{doctor-knowledge-receipt-phase-id-ay2ngn4a.js → doctor-knowledge-receipt-phase-id-qvp1h3xv.js} +8 -8
- package/dist/cli/{evidence-summary-service-fyyzhbsc.js → evidence-summary-service-379skych.js} +19 -19
- package/dist/cli/{gate-evidence-zt2vj631.js → gate-evidence-b4cfrrgn.js} +7 -7
- package/dist/cli/guardrail-explain-tcnfc3te.js +83 -0
- package/dist/cli/{guardrail-log-ppgfsfzt.js → guardrail-log-xe1evybk.js} +7 -7
- package/dist/cli/{guardrail-reset-4psprskt.js → guardrail-reset-jwx5hsgp.js} +43 -43
- package/dist/cli/{hive-promoter-vxrwvhga.js → hive-promoter-nks9a9s8.js} +43 -43
- package/dist/cli/{index-y9v41185.js → index-0e1nxkte.js} +1 -1
- package/dist/cli/{index-r9yvpr2m.js → index-1n7sf9gz.js} +2 -2
- package/dist/cli/{index-d5dwf6q6.js → index-25zjz6kv.js} +5 -5
- package/dist/cli/{index-ywmz75rj.js → index-29z0w323.js} +7 -7
- package/dist/cli/{index-05t8f1bj.js → index-2y7y0bxf.js} +43 -43
- package/dist/cli/{index-sxw0jbyc.js → index-4qreeddq.js} +4 -4
- package/dist/cli/{index-mj237f76.js → index-4tfr4j1a.js} +7 -7
- package/dist/cli/{index-z3ahy9c2.js → index-4twjbsfw.js} +2 -2
- package/dist/cli/{index-sxj143a4.js → index-5dws7eyb.js} +1 -1
- package/dist/cli/{index-b2j231jy.js → index-5gy5dc2n.js} +2 -2
- package/dist/cli/{index-hqqfxytt.js → index-5s74qd5b.js} +1 -1
- package/dist/cli/{index-dexj54h2.js → index-7a92gwbg.js} +4 -4
- package/dist/cli/{index-egkph2cs.js → index-7bppy3ve.js} +4 -4
- package/dist/cli/{index-mqf06fyy.js → index-878ksabw.js} +11 -11
- package/dist/cli/{index-p1z7pafk.js → index-89826pb5.js} +2 -2
- package/dist/cli/{index-2fpv2wmc.js → index-8zj647hc.js} +1 -1
- package/dist/cli/{index-ecx8jh7s.js → index-914wsfyy.js} +2 -2
- package/dist/cli/{index-tv0m2css.js → index-a83gmv2e.js} +2 -2
- package/dist/cli/{index-zk6ttjkt.js → index-a9m7h5v0.js} +2 -2
- package/dist/cli/{index-sx3g9nwg.js → index-asm2r4g2.js} +4 -4
- package/dist/cli/{index-v9geqn2t.js → index-ba87gkb4.js} +20 -6
- package/dist/cli/{index-3zwhxk98.js → index-bgzpw6ge.js} +1 -1
- package/dist/cli/{index-3c8v05x1.js → index-br28jc6d.js} +3 -3
- package/dist/cli/{index-sgxbqba0.js → index-bzfn85kq.js} +119 -55
- package/dist/cli/{index-zv71frp3.js → index-cf003krm.js} +6 -6
- package/dist/cli/{index-mcv0v2dp.js → index-dt4cjxbz.js} +1 -1
- package/dist/cli/{index-mjfpaxw3.js → index-dtet46e6.js} +7 -7
- package/dist/cli/{index-8bx6vhzk.js → index-e8k0v19e.js} +1 -1
- package/dist/cli/{index-nkgzkt7c.js → index-eaess7dm.js} +1 -1
- package/dist/cli/{index-93zvq6wn.js → index-ejq082zj.js} +5 -5
- package/dist/cli/{index-4d04qzw5.js → index-f54stv77.js} +3 -3
- package/dist/cli/{index-kfevm0n5.js → index-fzqn2kk8.js} +2 -2
- package/dist/cli/{index-n8q43eff.js → index-g8jd3h4r.js} +2 -2
- package/dist/cli/{index-gv63kdd3.js → index-hcsz7bhg.js} +3 -3
- package/dist/cli/{index-ngjjwcam.js → index-k96fx4yw.js} +2 -2
- package/dist/cli/{index-feaxsjrt.js → index-mbn4vn3z.js} +1 -1
- package/dist/cli/{index-7vnr5cmp.js → index-mtqwyjrg.js} +1 -1
- package/dist/cli/{index-qs9myayh.js → index-nwswxes7.js} +4 -4
- package/dist/cli/{index-aazwrwy1.js → index-q0bctx7k.js} +1 -1
- package/dist/cli/{index-1ajj6zbq.js → index-qp3twbdz.js} +45 -45
- package/dist/cli/{index-rehvfgre.js → index-qta3x82z.js} +253 -108
- package/dist/cli/{index-646s7gp9.js → index-w8e73tp0.js} +12 -7
- package/dist/cli/{index-c5644p1y.js → index-w917g452.js} +6 -6
- package/dist/cli/{index-9qwmx95b.js → index-w9y482mp.js} +1 -1
- package/dist/cli/{index-bx6x9ee7.js → index-xen0j48x.js} +2 -2
- package/dist/cli/{index-6v42d116.js → index-xf5v44qh.js} +3 -3
- package/dist/cli/{index-3pkeqcxe.js → index-ypvz2c60.js} +7 -7
- package/dist/cli/{index-x00ghp37.js → index-yte4hqhv.js} +3 -3
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +60 -54
- package/dist/cli/{knowledge-escalator-b45xccz8.js → knowledge-escalator-gzzr7cy2.js} +14 -14
- package/dist/cli/{knowledge-events-rtmavbyy.js → knowledge-events-b16yc189.js} +12 -12
- package/dist/cli/{knowledge-link-6hw3z6wn.js → knowledge-link-a5tvjqdt.js} +5 -5
- package/dist/cli/{knowledge-store-0beaqdxd.js → knowledge-store-arj3by4h.js} +6 -6
- package/dist/cli/{knowledge-validator-r1kjxt80.js → knowledge-validator-b3qhjg0t.js} +8 -8
- package/dist/cli/{mcp-gq7gy5qm.js → mcp-972t0jt0.js} +1 -1
- package/dist/cli/{model-preflight-za9f75h1.js → model-preflight-f1xvxk6e.js} +43 -43
- package/dist/cli/{pending-delegations-ba4bbh3d.js → pending-delegations-fv5xz799.js} +12 -12
- package/dist/cli/{pr-subscriptions-9ge667xn.js → pr-subscriptions-4mcwj33s.js} +12 -12
- package/dist/cli/{pr-workflow-gate-p1sv3vp7.js → pr-workflow-gate-ap5cp211.js} +45 -43
- package/dist/cli/{runner-ssnsje35.js → runner-8qybgy4n.js} +6 -6
- package/dist/cli/{scan-cursor-hrn48cja.js → scan-cursor-tceyckdx.js} +7 -7
- package/dist/cli/{schema-6cwam61t.js → schema-pqevpe3m.js} +1 -1
- package/dist/cli/{scope-persistence-z8b0cj5e.js → scope-persistence-ta6ydymv.js} +15 -15
- package/dist/cli/{server-sqxa4vjy.js → server-s9bfax7h.js} +43 -43
- package/dist/cli/{skill-generator-6dfgb9hj.js → skill-generator-xdg4626x.js} +16 -16
- package/dist/cli/{snapshot-coordination-init-rt4xyayx.js → snapshot-coordination-init-wn0hnwyv.js} +43 -43
- package/dist/cli/{speckit-checkoff-q1zqzwbw.js → speckit-checkoff-8x139jpf.js} +4 -4
- package/dist/cli/{telemetry-9szfdfqv.js → telemetry-qaymh4gg.js} +1 -1
- package/dist/cli/{workspace-snapshot-9f12p1s1.js → workspace-snapshot-vfpnxjsp.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-ge241a9e.js → worktree-collision-ownership-as8hnnff.js} +13 -13
- package/dist/cli/{worktree-isolation-c9x73qrk.js → worktree-isolation-7vrs8t9b.js} +49 -43
- package/dist/commands/turbo.d.ts +4 -3
- package/dist/config/constants.d.ts +2 -2
- package/dist/config/plan-schema.d.ts +16 -0
- package/dist/epic/phase-readiness.d.ts +4 -2
- package/dist/evaluation/ephemeral-agent-dispatcher.d.ts +11 -0
- package/dist/failures/provider-message-error.d.ts +32 -0
- package/dist/hooks/delegation-gate/worktree-isolation.d.ts +40 -0
- package/dist/hooks/delegation-gate.d.ts +13 -0
- package/dist/hooks/extractors.d.ts +2 -0
- package/dist/hooks/guardrails/index.d.ts +2 -0
- package/dist/hooks/guardrails/parallel-gate-attribution.d.ts +10 -0
- package/dist/hooks/pr-workflow-gate.d.ts +12 -1
- package/dist/index.js +415 -412
- package/dist/plan/ledger.d.ts +21 -3
- package/dist/sandbox/linux/bubblewrap-executor.d.ts +24 -0
- package/dist/services/skill-optimizer/store.d.ts +2 -2
- package/dist/tools/phase-complete.d.ts +4 -0
- package/dist/tools/write-pr-review-trigger-eval.d.ts +4 -0
- package/opencode-swarm.schema.json +1 -1
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-w6hvns5a.js +0 -82
- package/dist/cli/guardrail-explain-ddtj3djc.js +0 -83
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
} from "./index-m9zzj4ee.js";
|
|
5
5
|
import {
|
|
6
6
|
validateSwarmPath
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-eaess7dm.js";
|
|
8
8
|
import {
|
|
9
9
|
observeReceiptTransition
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-4twjbsfw.js";
|
|
11
11
|
import {
|
|
12
12
|
assertProjectRoot
|
|
13
13
|
} from "./index-t7hmqgjy.js";
|
|
14
14
|
import {
|
|
15
15
|
emit
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-mtqwyjrg.js";
|
|
17
17
|
import {
|
|
18
18
|
resolveActivePhaseId
|
|
19
19
|
} from "./index-gx2vp8gx.js";
|
|
20
20
|
import {
|
|
21
21
|
loadPluginConfigWithMeta
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-w9y482mp.js";
|
|
23
23
|
import {
|
|
24
24
|
KnowledgeConfigSchema,
|
|
25
25
|
init_schema
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-a83gmv2e.js";
|
|
27
27
|
|
|
28
28
|
// src/utils/context-decisions.ts
|
|
29
29
|
function extractContextDecisions(content) {
|
|
@@ -111,7 +111,12 @@ function extractCurrentPhase(planContent) {
|
|
|
111
111
|
return null;
|
|
112
112
|
}
|
|
113
113
|
function extractCurrentPhaseFromPlan(plan) {
|
|
114
|
-
const
|
|
114
|
+
const label = composePhaseLabel(plan, resolveActivePhaseId(plan));
|
|
115
|
+
if (label === null)
|
|
116
|
+
return null;
|
|
117
|
+
return sanitizeContextText(label);
|
|
118
|
+
}
|
|
119
|
+
function composePhaseLabel(plan, phaseId) {
|
|
115
120
|
const phase = plan.phases.find((p) => p.id === phaseId);
|
|
116
121
|
if (!phase)
|
|
117
122
|
return null;
|
|
@@ -122,7 +127,7 @@ function extractCurrentPhaseFromPlan(plan) {
|
|
|
122
127
|
blocked: "BLOCKED"
|
|
123
128
|
};
|
|
124
129
|
const statusText = statusMap[phase.status] || "PENDING";
|
|
125
|
-
return
|
|
130
|
+
return `Phase ${phase.id}: ${phase.name} [${statusText}]`;
|
|
126
131
|
}
|
|
127
132
|
function extractPhaseIdFromLabel(label) {
|
|
128
133
|
if (!label)
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readKnowledgeEvents,
|
|
4
4
|
recordKnowledgeEvent
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-4qreeddq.js";
|
|
6
6
|
import {
|
|
7
7
|
queryHistoricalOutcomes
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-w8e73tp0.js";
|
|
9
9
|
import {
|
|
10
10
|
jaccardBigram,
|
|
11
11
|
readKnowledge,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
resolveSwarmKnowledgePath,
|
|
14
14
|
transactKnowledge,
|
|
15
15
|
wordBigrams
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-29z0w323.js";
|
|
17
17
|
import {
|
|
18
18
|
init_knowledge_types,
|
|
19
19
|
isActiveStatus
|
|
@@ -226,11 +226,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
|
|
|
226
226
|
alreadyInactive: true
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
229
|
+
const { quarantineEntry } = await import("./knowledge-validator-b3qhjg0t.js");
|
|
230
230
|
let policyConfig;
|
|
231
231
|
try {
|
|
232
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
233
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
232
|
+
const { KnowledgeConfigSchema } = await import("./schema-pqevpe3m.js");
|
|
233
|
+
const { loadPluginConfigWithMeta } = await import("./index-hcsz7bhg.js");
|
|
234
234
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
235
235
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
236
236
|
} catch {
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
detectWindowsWrites,
|
|
15
15
|
getSharedClassifierGuardrailBlock,
|
|
16
16
|
resolveWriteTargets
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-qta3x82z.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-xf5v44qh.js";
|
|
25
25
|
|
|
26
26
|
// src/services/guardrail-explain-service.ts
|
|
27
27
|
import path from "path";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
observeStoreHealth
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-4twjbsfw.js";
|
|
5
5
|
import {
|
|
6
6
|
telemetry
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-mtqwyjrg.js";
|
|
8
8
|
import {
|
|
9
9
|
init_schema,
|
|
10
10
|
stripKnownSwarmPrefix
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-a83gmv2e.js";
|
|
12
12
|
import {
|
|
13
13
|
init_constants
|
|
14
14
|
} from "./index-py8wpe81.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-eaess7dm.js";
|
|
5
5
|
import {
|
|
6
6
|
bunWrite
|
|
7
7
|
} from "./index-2s7dvzff.js";
|
|
@@ -18,21 +18,21 @@ import {
|
|
|
18
18
|
releaseCoordinationLease,
|
|
19
19
|
transitionCoordinationState,
|
|
20
20
|
withCoordinationTransaction
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-mbn4vn3z.js";
|
|
22
22
|
import {
|
|
23
23
|
getProjectDb,
|
|
24
24
|
projectDbExists
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-8zj647hc.js";
|
|
26
26
|
import {
|
|
27
27
|
observeDelegationLedgerPressure
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-4twjbsfw.js";
|
|
29
29
|
import {
|
|
30
30
|
EvidenceLockTimeoutError,
|
|
31
31
|
withEvidenceLock
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-e8k0v19e.js";
|
|
33
33
|
import {
|
|
34
34
|
telemetry
|
|
35
|
-
} from "./index-
|
|
35
|
+
} from "./index-mtqwyjrg.js";
|
|
36
36
|
import {
|
|
37
37
|
canonicalRootKeyFresh,
|
|
38
38
|
sameProjectRoot
|
|
@@ -4735,7 +4735,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
|
|
|
4735
4735
|
const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
|
|
4736
4736
|
if (candidates.length === 0)
|
|
4737
4737
|
return 0;
|
|
4738
|
-
const { transferCoderSettlementToBackground } = await import("./coder-settlement-
|
|
4738
|
+
const { transferCoderSettlementToBackground } = await import("./coder-settlement-hh5165m1.js");
|
|
4739
4739
|
let transferred = 0;
|
|
4740
4740
|
for (const record of candidates) {
|
|
4741
4741
|
try {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
loadPlanJsonOnly
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-878ksabw.js";
|
|
5
5
|
import {
|
|
6
6
|
isCanonicalPathWithinRoot
|
|
7
7
|
} from "./index-6b295cas.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
legacyEpicIssuePath,
|
|
15
15
|
migrateLegacyEpicConfig,
|
|
16
16
|
resolveEpicConfig
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-w9y482mp.js";
|
|
18
18
|
import {
|
|
19
19
|
FALLBACK_MODELS_MAX,
|
|
20
20
|
GATE_CONFIG_KNOWN_SECTION_KEYS,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
init_schema,
|
|
25
25
|
retiredEpicKeyReplacement,
|
|
26
26
|
stripKnownSwarmPrefix
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-a83gmv2e.js";
|
|
28
28
|
import {
|
|
29
29
|
ALL_AGENT_NAMES,
|
|
30
30
|
TOOL_NAME_SET,
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare function isSafeLockFilePath(p: string): boolean;
|
|
|
29
29
|
* Defense in depth:
|
|
30
30
|
* 1. Canonicalize via safeRealpathSync (realpathSync with ENOENT→fallback)
|
|
31
31
|
* so the path a symlinked leaf actually resolves to is what we validate.
|
|
32
|
-
* 2. Refuse root, home, or
|
|
32
|
+
* 2. Refuse the filesystem root, home, or any ancestor of home.
|
|
33
33
|
* 3. Require ≥ 3 non-empty segments (rejects pathological
|
|
34
34
|
* XDG_CONFIG_HOME='/' which yields '/opencode/opencode-swarm', 2 segments).
|
|
35
35
|
* 4. Require basename === 'opencode-swarm'. With no explicit configured
|
|
@@ -48,7 +48,7 @@ export declare function isSafePromptsDir(p: string, configuredDir?: string): boo
|
|
|
48
48
|
* `opencode-swarm` directory — hence a dedicated guard.
|
|
49
49
|
*
|
|
50
50
|
* Defense in depth: canonicalize via safeRealpathSync; refuse root/home/
|
|
51
|
-
*
|
|
51
|
+
* home ancestors; require basename === 'opencode-swarm.json'. With no
|
|
52
52
|
* explicit configured root, the parent directory's basename must equal the
|
|
53
53
|
* config dir's basename. Cleanup callers otherwise bind the canonical parent
|
|
54
54
|
* to their exact configured root.
|
package/dist/cli/index.js
CHANGED
|
@@ -14,77 +14,77 @@ import {
|
|
|
14
14
|
readCachePackageVersion,
|
|
15
15
|
resolveCommand,
|
|
16
16
|
safeRealpathSync
|
|
17
|
-
} from "./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
17
|
+
} from "./index-qta3x82z.js";
|
|
18
|
+
import"./index-xf5v44qh.js";
|
|
19
|
+
import"./index-yte4hqhv.js";
|
|
20
|
+
import"./index-25zjz6kv.js";
|
|
21
21
|
import"./index-j2vv0h13.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
22
|
+
import"./index-0e1nxkte.js";
|
|
23
|
+
import"./index-5gy5dc2n.js";
|
|
24
24
|
import"./index-txdagbh7.js";
|
|
25
|
-
import"./index-
|
|
25
|
+
import"./index-914wsfyy.js";
|
|
26
26
|
import"./index-rdec0y3z.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
27
|
+
import"./index-br28jc6d.js";
|
|
28
|
+
import"./index-4tfr4j1a.js";
|
|
29
|
+
import"./index-asm2r4g2.js";
|
|
30
|
+
import"./index-w917g452.js";
|
|
31
|
+
import"./index-fzqn2kk8.js";
|
|
32
|
+
import"./index-dtet46e6.js";
|
|
33
33
|
import"./index-cjapb4hy.js";
|
|
34
|
-
import"./index-
|
|
34
|
+
import"./index-g8jd3h4r.js";
|
|
35
35
|
import"./index-pt7h91zc.js";
|
|
36
36
|
import"./index-q7sjgr1y.js";
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
37
|
+
import"./index-cf003krm.js";
|
|
38
|
+
import"./index-878ksabw.js";
|
|
39
39
|
import"./index-6b295cas.js";
|
|
40
40
|
import"./index-9nyqt3kb.js";
|
|
41
|
-
import"./index-
|
|
41
|
+
import"./index-5s74qd5b.js";
|
|
42
42
|
import"./index-v3bmwmqw.js";
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
43
|
+
import"./index-k96fx4yw.js";
|
|
44
|
+
import"./index-7a92gwbg.js";
|
|
45
|
+
import"./index-f54stv77.js";
|
|
46
46
|
import"./index-g4fs6z4e.js";
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
47
|
+
import"./index-ypvz2c60.js";
|
|
48
|
+
import"./index-4qreeddq.js";
|
|
49
|
+
import"./index-w8e73tp0.js";
|
|
50
50
|
import"./index-m9zzj4ee.js";
|
|
51
|
-
import"./index-
|
|
51
|
+
import"./index-eaess7dm.js";
|
|
52
52
|
import"./index-2s7dvzff.js";
|
|
53
|
-
import"./index-
|
|
54
|
-
import"./index-
|
|
53
|
+
import"./index-7bppy3ve.js";
|
|
54
|
+
import"./index-5dws7eyb.js";
|
|
55
55
|
import"./index-rtry5xyf.js";
|
|
56
|
-
import"./index-
|
|
56
|
+
import"./index-89826pb5.js";
|
|
57
57
|
import"./index-g22dps7x.js";
|
|
58
58
|
import"./index-0725jpp7.js";
|
|
59
|
-
import"./index-
|
|
60
|
-
import"./index-
|
|
61
|
-
import"./index-
|
|
62
|
-
import"./index-
|
|
63
|
-
import"./index-
|
|
64
|
-
import"./index-
|
|
59
|
+
import"./index-ejq082zj.js";
|
|
60
|
+
import"./index-ba87gkb4.js";
|
|
61
|
+
import"./index-a9m7h5v0.js";
|
|
62
|
+
import"./index-dt4cjxbz.js";
|
|
63
|
+
import"./index-mbn4vn3z.js";
|
|
64
|
+
import"./index-8zj647hc.js";
|
|
65
65
|
import"./index-ry16d01s.js";
|
|
66
66
|
import"./index-rdm3px0g.js";
|
|
67
67
|
import"./index-7pmbnjvj.js";
|
|
68
|
-
import"./index-
|
|
69
|
-
import"./index-
|
|
68
|
+
import"./index-4twjbsfw.js";
|
|
69
|
+
import"./index-29z0w323.js";
|
|
70
70
|
import"./index-vzm6zre7.js";
|
|
71
71
|
import"./index-ae75rja9.js";
|
|
72
|
-
import"./index-
|
|
73
|
-
import"./index-
|
|
74
|
-
import"./index-
|
|
72
|
+
import"./index-bgzpw6ge.js";
|
|
73
|
+
import"./index-1n7sf9gz.js";
|
|
74
|
+
import"./index-e8k0v19e.js";
|
|
75
75
|
import"./index-t7hmqgjy.js";
|
|
76
|
-
import"./index-
|
|
76
|
+
import"./index-mtqwyjrg.js";
|
|
77
77
|
import"./index-fzpt2djt.js";
|
|
78
78
|
import"./index-ejhxgyvm.js";
|
|
79
79
|
import"./index-7g4c7s5r.js";
|
|
80
|
-
import"./index-
|
|
80
|
+
import"./index-nwswxes7.js";
|
|
81
81
|
import"./index-gx2vp8gx.js";
|
|
82
|
-
import"./index-
|
|
82
|
+
import"./index-w9y482mp.js";
|
|
83
83
|
import"./index-zxdawwc7.js";
|
|
84
84
|
import {
|
|
85
85
|
init_package,
|
|
86
86
|
package_default
|
|
87
|
-
} from "./index-
|
|
87
|
+
} from "./index-a83gmv2e.js";
|
|
88
88
|
import {
|
|
89
89
|
DEFAULT_AGENT_CONFIGS,
|
|
90
90
|
init_constants
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
import"./index-bk5tah7q.js";
|
|
93
93
|
import"./index-gknz3bv1.js";
|
|
94
94
|
import"./index-zpsr8rpc.js";
|
|
95
|
-
import"./index-
|
|
95
|
+
import"./index-bzfn85kq.js";
|
|
96
96
|
import"./index-9rwhas09.js";
|
|
97
97
|
import"./index-zgwm4ryv.js";
|
|
98
98
|
import {
|
|
@@ -129,6 +129,17 @@ function normalizePathForComparison(value) {
|
|
|
129
129
|
const normalized = path.normalize(path.resolve(value));
|
|
130
130
|
return process.platform === "win32" ? normalized.toLowerCase() : normalized;
|
|
131
131
|
}
|
|
132
|
+
function isFilesystemRootOrHomeAncestor(resolved) {
|
|
133
|
+
const target = normalizePathForComparison(resolved);
|
|
134
|
+
if (target === normalizePathForComparison(path.parse(target).root)) {
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
const home = normalizePathForComparison(os.homedir());
|
|
138
|
+
if (target === home)
|
|
139
|
+
return true;
|
|
140
|
+
const prefix = target.endsWith(path.sep) ? target : `${target}${path.sep}`;
|
|
141
|
+
return home.startsWith(prefix);
|
|
142
|
+
}
|
|
132
143
|
function isExactConfiguredConfigChild(canonicalTarget, configuredDir) {
|
|
133
144
|
const canonicalConfigDir = safeRealpathSync(configuredDir, configuredDir);
|
|
134
145
|
const canonicalParent = safeRealpathSync(path.dirname(canonicalTarget), path.dirname(canonicalTarget));
|
|
@@ -145,8 +156,7 @@ function hasSafeConfigArtifactParent(resolved, configuredDir) {
|
|
|
145
156
|
}
|
|
146
157
|
function isSafeCachePath(p) {
|
|
147
158
|
const resolved = path.resolve(p);
|
|
148
|
-
|
|
149
|
-
if (resolved === "/" || resolved === home || resolved.length <= home.length) {
|
|
159
|
+
if (isFilesystemRootOrHomeAncestor(resolved)) {
|
|
150
160
|
return false;
|
|
151
161
|
}
|
|
152
162
|
if (segmentDepthBelowRoot(resolved) < 4) {
|
|
@@ -168,8 +178,7 @@ function isSafeCachePath(p) {
|
|
|
168
178
|
}
|
|
169
179
|
function isSafeLockFilePath(p) {
|
|
170
180
|
const resolved = path.resolve(p);
|
|
171
|
-
|
|
172
|
-
if (resolved === "/" || resolved === home || resolved.length <= home.length) {
|
|
181
|
+
if (isFilesystemRootOrHomeAncestor(resolved)) {
|
|
173
182
|
return false;
|
|
174
183
|
}
|
|
175
184
|
if (segmentDepthBelowRoot(resolved) < 4) {
|
|
@@ -195,8 +204,7 @@ function isSafePromptsDir(p, configuredDir) {
|
|
|
195
204
|
return false;
|
|
196
205
|
}
|
|
197
206
|
const resolved = path.resolve(canonical);
|
|
198
|
-
|
|
199
|
-
if (resolved === "/" || resolved === home || resolved.length <= home.length) {
|
|
207
|
+
if (isFilesystemRootOrHomeAncestor(resolved)) {
|
|
200
208
|
return false;
|
|
201
209
|
}
|
|
202
210
|
if (segmentDepthBelowRoot(resolved) < 3) {
|
|
@@ -216,8 +224,7 @@ function isSafePluginConfigPath(p, configuredDir) {
|
|
|
216
224
|
return false;
|
|
217
225
|
}
|
|
218
226
|
const resolved = path.resolve(canonical);
|
|
219
|
-
|
|
220
|
-
if (resolved === "/" || resolved === home || resolved.length <= home.length) {
|
|
227
|
+
if (isFilesystemRootOrHomeAncestor(resolved)) {
|
|
221
228
|
return false;
|
|
222
229
|
}
|
|
223
230
|
if (segmentDepthBelowRoot(resolved) < 3) {
|
|
@@ -237,8 +244,7 @@ function isSafeInstallBackupPath(p, configuredDir) {
|
|
|
237
244
|
return false;
|
|
238
245
|
}
|
|
239
246
|
const resolved = path.resolve(canonical);
|
|
240
|
-
|
|
241
|
-
if (resolved === "/" || resolved === home || resolved.length <= home.length) {
|
|
247
|
+
if (isFilesystemRootOrHomeAncestor(resolved)) {
|
|
242
248
|
return false;
|
|
243
249
|
}
|
|
244
250
|
if (segmentDepthBelowRoot(resolved) < 3) {
|
|
@@ -910,7 +916,7 @@ async function main() {
|
|
|
910
916
|
const exitCode = await run(["ci", ...args.slice(1)]);
|
|
911
917
|
process.exit(exitCode);
|
|
912
918
|
} else if (command === "mcp") {
|
|
913
|
-
const { handleMcpCommand } = await import("./mcp-
|
|
919
|
+
const { handleMcpCommand } = await import("./mcp-972t0jt0.js");
|
|
914
920
|
const exitCode = await handleMcpCommand(args.slice(1));
|
|
915
921
|
process.exit(exitCode);
|
|
916
922
|
} else {
|
|
@@ -9,32 +9,32 @@ import {
|
|
|
9
9
|
maybeEscalateOnViolation,
|
|
10
10
|
maybeQuarantineOnContradiction,
|
|
11
11
|
readRecentEscalations
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
12
|
+
} from "./index-w917g452.js";
|
|
13
|
+
import"./index-4qreeddq.js";
|
|
14
|
+
import"./index-w8e73tp0.js";
|
|
15
15
|
import"./index-m9zzj4ee.js";
|
|
16
|
-
import"./index-
|
|
16
|
+
import"./index-eaess7dm.js";
|
|
17
17
|
import"./index-2s7dvzff.js";
|
|
18
|
-
import"./index-
|
|
18
|
+
import"./index-89826pb5.js";
|
|
19
19
|
import"./index-g22dps7x.js";
|
|
20
20
|
import"./index-0725jpp7.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
import"./index-4twjbsfw.js";
|
|
22
|
+
import"./index-29z0w323.js";
|
|
23
23
|
import"./index-vzm6zre7.js";
|
|
24
24
|
import"./index-ae75rja9.js";
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
25
|
+
import"./index-bgzpw6ge.js";
|
|
26
|
+
import"./index-1n7sf9gz.js";
|
|
27
|
+
import"./index-e8k0v19e.js";
|
|
28
28
|
import"./index-t7hmqgjy.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-mtqwyjrg.js";
|
|
30
30
|
import"./index-fzpt2djt.js";
|
|
31
31
|
import"./index-ejhxgyvm.js";
|
|
32
32
|
import"./index-7g4c7s5r.js";
|
|
33
|
-
import"./index-
|
|
33
|
+
import"./index-nwswxes7.js";
|
|
34
34
|
import"./index-gx2vp8gx.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-w9y482mp.js";
|
|
36
36
|
import"./index-zxdawwc7.js";
|
|
37
|
-
import"./index-
|
|
37
|
+
import"./index-a83gmv2e.js";
|
|
38
38
|
import"./index-py8wpe81.js";
|
|
39
39
|
import"./index-bk5tah7q.js";
|
|
40
40
|
import"./index-gknz3bv1.js";
|
|
@@ -29,29 +29,29 @@ import {
|
|
|
29
29
|
resolveKnowledgeCounterBaselinePath,
|
|
30
30
|
resolveKnowledgeEventsPath,
|
|
31
31
|
resolveLegacyApplicationLogPath
|
|
32
|
-
} from "./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
} from "./index-4qreeddq.js";
|
|
33
|
+
import"./index-w8e73tp0.js";
|
|
34
34
|
import"./index-m9zzj4ee.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-eaess7dm.js";
|
|
36
36
|
import"./index-2s7dvzff.js";
|
|
37
|
-
import"./index-
|
|
37
|
+
import"./index-89826pb5.js";
|
|
38
38
|
import"./index-g22dps7x.js";
|
|
39
39
|
import"./index-0725jpp7.js";
|
|
40
|
-
import"./index-
|
|
40
|
+
import"./index-4twjbsfw.js";
|
|
41
41
|
import"./index-ae75rja9.js";
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
42
|
+
import"./index-bgzpw6ge.js";
|
|
43
|
+
import"./index-1n7sf9gz.js";
|
|
44
|
+
import"./index-e8k0v19e.js";
|
|
45
45
|
import"./index-t7hmqgjy.js";
|
|
46
|
-
import"./index-
|
|
46
|
+
import"./index-mtqwyjrg.js";
|
|
47
47
|
import"./index-fzpt2djt.js";
|
|
48
48
|
import"./index-ejhxgyvm.js";
|
|
49
49
|
import"./index-7g4c7s5r.js";
|
|
50
|
-
import"./index-
|
|
50
|
+
import"./index-nwswxes7.js";
|
|
51
51
|
import"./index-gx2vp8gx.js";
|
|
52
|
-
import"./index-
|
|
52
|
+
import"./index-w9y482mp.js";
|
|
53
53
|
import"./index-zxdawwc7.js";
|
|
54
|
-
import"./index-
|
|
54
|
+
import"./index-a83gmv2e.js";
|
|
55
55
|
import"./index-py8wpe81.js";
|
|
56
56
|
import"./index-bk5tah7q.js";
|
|
57
57
|
import"./index-gknz3bv1.js";
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
resolveLinkDir,
|
|
13
13
|
sanitizeLinkId,
|
|
14
14
|
writeLinkPointer
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
15
|
+
} from "./index-bgzpw6ge.js";
|
|
16
|
+
import"./index-1n7sf9gz.js";
|
|
17
|
+
import"./index-e8k0v19e.js";
|
|
18
18
|
import"./index-t7hmqgjy.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-mtqwyjrg.js";
|
|
20
20
|
import"./index-fzpt2djt.js";
|
|
21
21
|
import"./index-ejhxgyvm.js";
|
|
22
22
|
import"./index-7g4c7s5r.js";
|
|
23
|
-
import"./index-
|
|
23
|
+
import"./index-nwswxes7.js";
|
|
24
24
|
import"./index-gknz3bv1.js";
|
|
25
25
|
import"./index-zpsr8rpc.js";
|
|
26
26
|
import"./index-zgwm4ryv.js";
|
|
@@ -43,20 +43,20 @@ import {
|
|
|
43
43
|
transactKnowledge,
|
|
44
44
|
transactKnowledgeWithCas,
|
|
45
45
|
wordBigrams
|
|
46
|
-
} from "./index-
|
|
46
|
+
} from "./index-29z0w323.js";
|
|
47
47
|
import"./index-vzm6zre7.js";
|
|
48
48
|
import {
|
|
49
49
|
resolveHiveDataDir
|
|
50
50
|
} from "./index-ae75rja9.js";
|
|
51
|
-
import"./index-
|
|
52
|
-
import"./index-
|
|
53
|
-
import"./index-
|
|
51
|
+
import"./index-bgzpw6ge.js";
|
|
52
|
+
import"./index-1n7sf9gz.js";
|
|
53
|
+
import"./index-e8k0v19e.js";
|
|
54
54
|
import"./index-t7hmqgjy.js";
|
|
55
|
-
import"./index-
|
|
55
|
+
import"./index-mtqwyjrg.js";
|
|
56
56
|
import"./index-fzpt2djt.js";
|
|
57
57
|
import"./index-ejhxgyvm.js";
|
|
58
58
|
import"./index-7g4c7s5r.js";
|
|
59
|
-
import"./index-
|
|
59
|
+
import"./index-nwswxes7.js";
|
|
60
60
|
import"./index-bk5tah7q.js";
|
|
61
61
|
import"./index-gknz3bv1.js";
|
|
62
62
|
import"./index-zpsr8rpc.js";
|
|
@@ -23,21 +23,21 @@ import {
|
|
|
23
23
|
validateLesson,
|
|
24
24
|
validateSkillCandidatePath,
|
|
25
25
|
validateSkillPath
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-7bppy3ve.js";
|
|
27
|
+
import"./index-5dws7eyb.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-29z0w323.js";
|
|
30
30
|
import"./index-vzm6zre7.js";
|
|
31
31
|
import"./index-ae75rja9.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
32
|
+
import"./index-bgzpw6ge.js";
|
|
33
|
+
import"./index-1n7sf9gz.js";
|
|
34
|
+
import"./index-e8k0v19e.js";
|
|
35
35
|
import"./index-t7hmqgjy.js";
|
|
36
|
-
import"./index-
|
|
36
|
+
import"./index-mtqwyjrg.js";
|
|
37
37
|
import"./index-fzpt2djt.js";
|
|
38
38
|
import"./index-ejhxgyvm.js";
|
|
39
39
|
import"./index-7g4c7s5r.js";
|
|
40
|
-
import"./index-
|
|
40
|
+
import"./index-nwswxes7.js";
|
|
41
41
|
import"./index-bk5tah7q.js";
|
|
42
42
|
import"./index-gknz3bv1.js";
|
|
43
43
|
import"./index-zpsr8rpc.js";
|
|
@@ -95,7 +95,7 @@ function resolveMcpRoot(input) {
|
|
|
95
95
|
}
|
|
96
96
|
var _internals = {
|
|
97
97
|
runMcpServer: async (options) => {
|
|
98
|
-
const { runMcpServer } = await import("./server-
|
|
98
|
+
const { runMcpServer } = await import("./server-s9bfax7h.js");
|
|
99
99
|
return runMcpServer(options);
|
|
100
100
|
}
|
|
101
101
|
};
|