opencode-swarm 7.200.10 → 7.200.11
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/{attest-task-yx2t832n.js → attest-task-y0n69zgb.js} +26 -26
- package/dist/cli/{auto-checkpoint-15mvj9zm.js → auto-checkpoint-hyaksmtg.js} +4 -4
- package/dist/cli/{checkpoint-65whgvwa.js → checkpoint-t0p781sc.js} +8 -8
- package/dist/cli/{coder-settlement-sdg1he8p.js → coder-settlement-nh88s6es.js} +4 -4
- package/dist/cli/{config-doctor-4af2p2y4.js → config-doctor-sf7hc0q4.js} +7 -7
- package/dist/cli/{core-8swqc6kw.js → core-p168fw3r.js} +1 -1
- package/dist/cli/{curator-6ze04fz3.js → curator-5ayzhk7v.js} +26 -26
- package/dist/cli/{curator-drift-ktf137da.js → curator-drift-jx9kyndc.js} +5 -5
- package/dist/cli/{curator-llm-factory-7vq4rgg7.js → curator-llm-factory-ytfkvtxs.js} +26 -26
- package/dist/cli/{doctor-knowledge-receipt-phase-id-0smwq3ar.js → doctor-knowledge-receipt-phase-id-2gjvxndy.js} +4 -4
- package/dist/cli/{evidence-summary-service-3bhq2gef.js → evidence-summary-service-972sqht5.js} +10 -10
- package/dist/cli/{gate-evidence-gcv0xgfc.js → gate-evidence-n1m842gj.js} +3 -3
- package/dist/cli/{guardrail-explain-9t3mvm92.js → guardrail-explain-6yv78gmk.js} +27 -27
- package/dist/cli/{guardrail-log-ehgpan5n.js → guardrail-log-z5pzgkcv.js} +3 -3
- package/dist/cli/{guardrail-reset-q7m265wy.js → guardrail-reset-w0nxcs6a.js} +26 -26
- package/dist/cli/{hive-promoter-857ranjf.js → hive-promoter-3q0738xg.js} +26 -26
- package/dist/cli/{index-66b4f2qd.js → index-0an54fza.js} +3 -3
- package/dist/cli/{index-mamw83wm.js → index-0g0x9ets.js} +26 -26
- package/dist/cli/{index-vm3j8fvn.js → index-2n7a184b.js} +2 -2
- package/dist/cli/{index-8c6zshfj.js → index-2vj8d8te.js} +1 -1
- package/dist/cli/{index-fbn2mv67.js → index-5k88v1e7.js} +76 -31
- package/dist/cli/{index-06sj5bjh.js → index-814q5t5s.js} +1 -1
- package/dist/cli/{index-vqknke9n.js → index-8g9rn3rp.js} +5 -5
- package/dist/cli/{index-60m7qnds.js → index-aj41bscz.js} +3 -3
- package/dist/cli/{index-ev46f132.js → index-bnbhqvsn.js} +1 -1
- package/dist/cli/{index-rnm6c33a.js → index-bv9tqmpm.js} +1 -1
- package/dist/cli/{index-4dvqvn4k.js → index-ce6qarfq.js} +179 -75
- package/dist/cli/{index-ffm3d4cn.js → index-gkvk9et2.js} +3 -3
- package/dist/cli/{index-tm6nwe43.js → index-h1chaf63.js} +5 -5
- package/dist/cli/{index-r3wyt8za.js → index-hhzwfyd7.js} +1 -1
- package/dist/cli/{index-bt3pxs7r.js → index-jt9j02tm.js} +1 -1
- package/dist/cli/{index-6ehx0pj4.js → index-ke881z7m.js} +2 -2
- package/dist/cli/{index-3h5ztpn5.js → index-krjamprc.js} +2 -2
- package/dist/cli/{index-gsnj3a0h.js → index-kzr3nby8.js} +2 -2
- package/dist/cli/{index-ww5ne0g6.js → index-mq4eyhtf.js} +1 -1
- package/dist/cli/{index-c34tgnwm.js → index-njg8zvqe.js} +3 -3
- package/dist/cli/{index-2dey2mtg.js → index-nnc23ddw.js} +3 -3
- package/dist/cli/{index-43zgg04r.js → index-nzhfhpng.js} +1 -1
- package/dist/cli/{index-vajbtn3v.js → index-qdz6zysj.js} +4 -4
- package/dist/cli/{index-xkavxqf2.js → index-r097ettz.js} +1 -1
- package/dist/cli/{index-6e7jxxys.js → index-ra3erqpk.js} +2 -2
- package/dist/cli/{index-mx34b7bm.js → index-ssp4t8g6.js} +28 -28
- package/dist/cli/{index-h9qhy8r6.js → index-ve74c3a8.js} +6 -6
- package/dist/cli/{index-ywwazz81.js → index-x8sh8v4a.js} +1 -1
- package/dist/cli/{index-zmp1k0mb.js → index-xht6gprr.js} +35 -22
- package/dist/cli/{index-kxxy7zq4.js → index-yn6jrxen.js} +3 -3
- package/dist/cli/{index-nv8tx9v4.js → index-yq73sd3w.js} +1 -1
- package/dist/cli/index.js +27 -27
- package/dist/cli/{knowledge-escalator-6p7m6gkc.js → knowledge-escalator-2e92rdsx.js} +7 -7
- package/dist/cli/{knowledge-events-w3ep12sq.js → knowledge-events-gzqwr94e.js} +5 -5
- package/dist/cli/{knowledge-store-g4cpw0hz.js → knowledge-store-6j8d1gm4.js} +1 -1
- package/dist/cli/{knowledge-validator-zhy6mgxv.js → knowledge-validator-wt2tcfg7.js} +2 -2
- package/dist/cli/{mcp-j1dy60mx.js → mcp-ky6xn6ys.js} +1 -1
- package/dist/cli/{model-preflight-962y2z1d.js → model-preflight-ajt55s59.js} +26 -26
- package/dist/cli/{pending-delegations-erjwa1y6.js → pending-delegations-wry31649.js} +2 -2
- package/dist/cli/{pr-subscriptions-7fcawjg9.js → pr-subscriptions-dsdjbfr4.js} +1 -1
- package/dist/cli/{pr-workflow-gate-j8ee9c6g.js → pr-workflow-gate-0vcq1m95.js} +26 -26
- package/dist/cli/{scan-cursor-msz8j44s.js → scan-cursor-1zgrg7kp.js} +2 -2
- package/dist/cli/{schema-kep9t01t.js → schema-q9xbwkec.js} +1 -1
- package/dist/cli/{scope-persistence-tx71g0ac.js → scope-persistence-4wwmytwh.js} +5 -5
- package/dist/cli/{server-6enk6sfw.js → server-q8ydxk7z.js} +35 -26
- package/dist/cli/{skill-generator-p9fkx1g3.js → skill-generator-b1eqcxej.js} +8 -8
- package/dist/cli/{snapshot-coordination-init-kgftbdmq.js → snapshot-coordination-init-0yva5015.js} +26 -26
- package/dist/cli/{speckit-checkoff-jfdwsy5n.js → speckit-checkoff-sh9w7j5b.js} +3 -3
- package/dist/cli/{workflow-wal-file-xvvwcxr1.js → workflow-wal-file-a2c8e920.js} +2 -2
- package/dist/cli/{worktree-collision-ownership-hac3t2xv.js → worktree-collision-ownership-xr6crt8c.js} +2 -2
- package/dist/cli/{worktree-isolation-tjvxcsr9.js → worktree-isolation-0126b5e7.js} +26 -26
- package/dist/hooks/delegation-gate.d.ts +6 -0
- package/dist/hooks/guardrails/audit-log.d.ts +2 -0
- package/dist/hooks/guardrails/cmd-delete-grammar.d.ts +47 -0
- package/dist/hooks/guardrails/destructive-command.d.ts +11 -3
- package/dist/hooks/guardrails/shell-audit-store.d.ts +2 -0
- package/dist/hooks/guardrails/tool-before.d.ts +16 -0
- package/dist/index.js +17 -17
- package/package.json +1 -1
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
ensureTaskCheckpointReceipt,
|
|
5
5
|
loadPlan,
|
|
6
6
|
updateTaskCheckpointReceipt
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-h1chaf63.js";
|
|
8
8
|
import {
|
|
9
9
|
tool
|
|
10
10
|
} from "./index-9nyqt3kb.js";
|
|
11
11
|
import {
|
|
12
12
|
readLedgerEvents
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-ra3erqpk.js";
|
|
14
14
|
import {
|
|
15
15
|
init_executor,
|
|
16
16
|
isUntrustedEnvKey,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./index-7pmbnjvj.js";
|
|
26
26
|
import {
|
|
27
27
|
loadPluginConfigWithMeta
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-mq4eyhtf.js";
|
|
29
29
|
import {
|
|
30
30
|
GitBinaryMissingError,
|
|
31
31
|
GitSpawnCwdError,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./index-6b295cas.js";
|
|
5
5
|
import {
|
|
6
6
|
readEffectiveSpecSync
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-nnc23ddw.js";
|
|
8
8
|
import {
|
|
9
9
|
_internals,
|
|
10
10
|
clearWorktreeMergeStatus,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
replayFromLedgerWithStatus,
|
|
31
31
|
takeSnapshotEvent,
|
|
32
32
|
takeSnapshotWithRetry
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-ra3erqpk.js";
|
|
34
34
|
import {
|
|
35
35
|
deleteCoordinationStateWithinTransaction,
|
|
36
36
|
getCoordinationStateRaw,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
init_loader,
|
|
67
67
|
isEpicModeConfigEnabled,
|
|
68
68
|
loadPluginConfigWithMeta
|
|
69
|
-
} from "./index-
|
|
69
|
+
} from "./index-mq4eyhtf.js";
|
|
70
70
|
import {
|
|
71
71
|
estimateCharsForTokens,
|
|
72
72
|
estimateTokens,
|
|
@@ -2670,7 +2670,7 @@ ${markdown}`;
|
|
|
2670
2670
|
}
|
|
2671
2671
|
}
|
|
2672
2672
|
async function defaultMaybeSaveAutoCheckpoint(directory, plan) {
|
|
2673
|
-
const { maybeSaveAutoCheckpoint } = await import("./auto-checkpoint-
|
|
2673
|
+
const { maybeSaveAutoCheckpoint } = await import("./auto-checkpoint-hyaksmtg.js");
|
|
2674
2674
|
return maybeSaveAutoCheckpoint(directory, plan);
|
|
2675
2675
|
}
|
|
2676
2676
|
async function updateTaskStatus(directory, taskId, status, options) {
|
|
@@ -2746,7 +2746,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
|
|
|
2746
2746
|
if (status === "completed") {
|
|
2747
2747
|
try {
|
|
2748
2748
|
const completedTask = updatedPlan.phases.flatMap((phase) => phase.tasks).find((candidate) => candidate.id === taskId);
|
|
2749
|
-
const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-
|
|
2749
|
+
const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-sh9w7j5b.js");
|
|
2750
2750
|
await maybePropagateSpeckitCheckoff(directory, {
|
|
2751
2751
|
taskId,
|
|
2752
2752
|
frRefs: completedTask?.fr_refs ?? [],
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
} from "./index-3t46mez1.js";
|
|
11
11
|
import {
|
|
12
12
|
loadPluginConfigWithMeta
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-mq4eyhtf.js";
|
|
14
14
|
import {
|
|
15
15
|
KnowledgeConfigSchema,
|
|
16
16
|
init_schema
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-814q5t5s.js";
|
|
18
18
|
import {
|
|
19
19
|
validateSwarmPath
|
|
20
20
|
} from "./index-001tkp0j.js";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
init_loader,
|
|
4
4
|
loadPluginConfigWithMeta
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-mq4eyhtf.js";
|
|
6
6
|
import {
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-814q5t5s.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
11
11
|
init_constants
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
queryHistoricalOutcomes
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-ke881z7m.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveHiveEventsPath
|
|
7
7
|
} from "./index-ae75rja9.js";
|
|
@@ -708,7 +708,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
708
708
|
}
|
|
709
709
|
let bumps = 0;
|
|
710
710
|
if (deltas.length > 0) {
|
|
711
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
711
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-6j8d1gm4.js");
|
|
712
712
|
bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
713
713
|
}
|
|
714
714
|
return {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
_internals,
|
|
4
4
|
resolveWorktreeIsolationConfig
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-krjamprc.js";
|
|
6
6
|
import {
|
|
7
7
|
ApprovalEvidenceSchema,
|
|
8
8
|
BaseEvidenceSchema,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
loadPluginConfigWithMeta,
|
|
47
47
|
loadPluginConfigWithMetaAsync,
|
|
48
48
|
resetConfigAdvisoryDedup
|
|
49
|
-
} from "./index-
|
|
49
|
+
} from "./index-mq4eyhtf.js";
|
|
50
50
|
import {
|
|
51
51
|
AUTO_REVIEW_V8_BURN_IN_DECISION,
|
|
52
52
|
AgentOverrideConfigSchema,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
TurboConfigSchema,
|
|
72
72
|
WorktreeIsolationConfigSchema,
|
|
73
73
|
resolveAutoReviewConfig
|
|
74
|
-
} from "./index-
|
|
74
|
+
} from "./index-814q5t5s.js";
|
|
75
75
|
import"./index-bk5tah7q.js";
|
|
76
76
|
import"./index-sp2cxpaq.js";
|
|
77
77
|
import"./index-qbxk2rn6.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
writeSpeckitCheckoffLedger
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-nzhfhpng.js";
|
|
5
5
|
import {
|
|
6
6
|
validateSpecContent
|
|
7
7
|
} from "./index-0725jpp7.js";
|
|
8
8
|
import {
|
|
9
9
|
init_loader,
|
|
10
10
|
readSddSourceSetting
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-mq4eyhtf.js";
|
|
12
12
|
import {
|
|
13
13
|
SDD_SOURCES,
|
|
14
14
|
init_schema
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-814q5t5s.js";
|
|
16
16
|
import {
|
|
17
17
|
advisoryWarn,
|
|
18
18
|
init_warning_buffer
|
|
@@ -739,7 +739,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
739
739
|
const {
|
|
740
740
|
readAuthoritativeKnowledgeCounterRollups,
|
|
741
741
|
effectiveRetrievalOutcomes
|
|
742
|
-
} = await import("./knowledge-events-
|
|
742
|
+
} = await import("./knowledge-events-gzqwr94e.js");
|
|
743
743
|
const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
|
|
744
744
|
const flagIds = new Set;
|
|
745
745
|
for (const e of atFloor) {
|
|
@@ -806,11 +806,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
806
806
|
});
|
|
807
807
|
}
|
|
808
808
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
809
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
810
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
809
|
+
const { quarantineEntry } = await import("./knowledge-validator-wt2tcfg7.js");
|
|
810
|
+
const { KnowledgeConfigSchema } = await import("./schema-q9xbwkec.js");
|
|
811
811
|
let config;
|
|
812
812
|
try {
|
|
813
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
813
|
+
const { loadPluginConfigWithMeta } = await import("./index-njg8zvqe.js");
|
|
814
814
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
815
815
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
816
816
|
} catch {
|
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
init_loader,
|
|
20
20
|
loadPluginConfig
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-mq4eyhtf.js";
|
|
22
22
|
import {
|
|
23
23
|
init_package,
|
|
24
24
|
package_default
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-814q5t5s.js";
|
|
26
26
|
import {
|
|
27
27
|
withEvidenceLock
|
|
28
28
|
} from "./index-pjrx4jkq.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-xht6gprr.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-2vj8d8te.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
DEFAULT_CI_DEADLINE_MS,
|
|
@@ -98,37 +98,37 @@ import {
|
|
|
98
98
|
handleWriteRetroCommand,
|
|
99
99
|
normalizeSwarmCommandInput,
|
|
100
100
|
resolveCommand
|
|
101
|
-
} from "./index-
|
|
101
|
+
} from "./index-ce6qarfq.js";
|
|
102
102
|
import"./index-ckq78kq1.js";
|
|
103
|
-
import"./index-
|
|
104
|
-
import"./index-
|
|
105
|
-
import"./index-
|
|
103
|
+
import"./index-5k88v1e7.js";
|
|
104
|
+
import"./index-yn6jrxen.js";
|
|
105
|
+
import"./index-x8sh8v4a.js";
|
|
106
106
|
import"./index-vx1j2t5p.js";
|
|
107
107
|
import"./index-txdagbh7.js";
|
|
108
108
|
import"./index-axqyjreb.js";
|
|
109
|
-
import"./index-
|
|
110
|
-
import"./index-
|
|
111
|
-
import"./index-
|
|
109
|
+
import"./index-aj41bscz.js";
|
|
110
|
+
import"./index-ve74c3a8.js";
|
|
111
|
+
import"./index-jt9j02tm.js";
|
|
112
112
|
import"./index-rdec0y3z.js";
|
|
113
|
-
import"./index-
|
|
114
|
-
import"./index-
|
|
115
|
-
import"./index-
|
|
113
|
+
import"./index-bv9tqmpm.js";
|
|
114
|
+
import"./index-8g9rn3rp.js";
|
|
115
|
+
import"./index-r097ettz.js";
|
|
116
116
|
import"./index-rpvp88js.js";
|
|
117
117
|
import"./index-kd1n3ne2.js";
|
|
118
118
|
import"./index-x5jwegqw.js";
|
|
119
119
|
import"./index-w0afnznk.js";
|
|
120
|
-
import"./index-
|
|
121
|
-
import"./index-
|
|
120
|
+
import"./index-0an54fza.js";
|
|
121
|
+
import"./index-bnbhqvsn.js";
|
|
122
122
|
import"./index-tggyracy.js";
|
|
123
123
|
import"./index-pt7h91zc.js";
|
|
124
124
|
import"./index-q7sjgr1y.js";
|
|
125
|
-
import"./index-
|
|
126
|
-
import"./index-
|
|
125
|
+
import"./index-gkvk9et2.js";
|
|
126
|
+
import"./index-h1chaf63.js";
|
|
127
127
|
import"./index-6b295cas.js";
|
|
128
128
|
import"./index-9nyqt3kb.js";
|
|
129
|
-
import"./index-
|
|
129
|
+
import"./index-nnc23ddw.js";
|
|
130
130
|
import"./index-697mg68b.js";
|
|
131
|
-
import"./index-
|
|
131
|
+
import"./index-ra3erqpk.js";
|
|
132
132
|
import"./index-rck7v4r4.js";
|
|
133
133
|
import"./index-ck7jpn0y.js";
|
|
134
134
|
import"./index-ry16d01s.js";
|
|
@@ -136,30 +136,30 @@ import"./index-rdm3px0g.js";
|
|
|
136
136
|
import"./index-dp6hy23p.js";
|
|
137
137
|
import"./index-rjsqf4hv.js";
|
|
138
138
|
import"./index-7pmbnjvj.js";
|
|
139
|
-
import"./index-
|
|
140
|
-
import"./index-
|
|
141
|
-
import"./index-
|
|
139
|
+
import"./index-nzhfhpng.js";
|
|
140
|
+
import"./index-kzr3nby8.js";
|
|
141
|
+
import"./index-ke881z7m.js";
|
|
142
142
|
import"./index-m9zzj4ee.js";
|
|
143
143
|
import"./index-8xtdxy91.js";
|
|
144
|
-
import"./index-
|
|
144
|
+
import"./index-yq73sd3w.js";
|
|
145
145
|
import"./index-qyj4383m.js";
|
|
146
146
|
import"./index-rtry5xyf.js";
|
|
147
|
-
import"./index-
|
|
147
|
+
import"./index-qdz6zysj.js";
|
|
148
148
|
import"./index-vzm6zre7.js";
|
|
149
149
|
import"./index-ae75rja9.js";
|
|
150
150
|
import"./index-erp7fk72.js";
|
|
151
|
-
import"./index-
|
|
151
|
+
import"./index-krjamprc.js";
|
|
152
152
|
import"./index-g22dps7x.js";
|
|
153
153
|
import"./index-0725jpp7.js";
|
|
154
154
|
import"./index-3t46mez1.js";
|
|
155
|
-
import"./index-
|
|
155
|
+
import"./index-mq4eyhtf.js";
|
|
156
156
|
import {
|
|
157
157
|
init_schema,
|
|
158
158
|
stripKnownSwarmPrefix
|
|
159
|
-
} from "./index-
|
|
159
|
+
} from "./index-814q5t5s.js";
|
|
160
160
|
import"./index-bk5tah7q.js";
|
|
161
|
-
import"./index-
|
|
162
|
-
import"./index-
|
|
161
|
+
import"./index-hhzwfyd7.js";
|
|
162
|
+
import"./index-2n7a184b.js";
|
|
163
163
|
import"./index-spggmr30.js";
|
|
164
164
|
import"./index-001tkp0j.js";
|
|
165
165
|
import"./index-9rwhas09.js";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readKnowledgeEvents,
|
|
4
4
|
recordKnowledgeEvent
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-kzr3nby8.js";
|
|
6
6
|
import {
|
|
7
7
|
queryHistoricalOutcomes
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-ke881z7m.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-qdz6zysj.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-wt2tcfg7.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-q9xbwkec.js");
|
|
233
|
+
const { loadPluginConfigWithMeta } = await import("./index-njg8zvqe.js");
|
|
234
234
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
235
235
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
236
236
|
} catch {
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
dcEvaluateRecursiveDeleteTargets,
|
|
7
7
|
dcExtractPowerShellTargets,
|
|
8
8
|
dcExtractRecursiveRmTargets,
|
|
9
|
-
dcExtractWindowsCmdTargets,
|
|
10
9
|
dcNormalizeCommand,
|
|
10
|
+
dcParseWindowsRecursiveDelete,
|
|
11
11
|
dcSplitSegments,
|
|
12
12
|
dcUnwrapWrappers,
|
|
13
13
|
declaresWindowsWrapperLoose,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
mergeWriteAnalyses,
|
|
23
23
|
resolveWindowsWriteAuthority,
|
|
24
24
|
resolveWriteTargets
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-ce6qarfq.js";
|
|
26
26
|
import {
|
|
27
27
|
checkFileAuthority,
|
|
28
28
|
classifyFile,
|
|
29
29
|
isInDeclaredScope,
|
|
30
30
|
redactPath,
|
|
31
31
|
redactShellCommand
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-5k88v1e7.js";
|
|
33
33
|
|
|
34
34
|
// src/services/guardrail-explain-service.ts
|
|
35
35
|
import path from "path";
|
|
@@ -109,27 +109,40 @@ function evaluateDestructiveDecision(rawCommand, cwd, declaredScope) {
|
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
};
|
|
112
|
+
const explainRmdirVerb = /^(?:rmdir|rd)(?:\.exe)?\s*/i.exec(seg);
|
|
113
|
+
if (explainRmdirVerb) {
|
|
114
|
+
const parsed = dcParseWindowsRecursiveDelete(seg.slice(explainRmdirVerb[0].length));
|
|
115
|
+
if (parsed.fires) {
|
|
116
|
+
if (parsed.targets.length === 0) {
|
|
117
|
+
return {
|
|
118
|
+
decision: "block",
|
|
119
|
+
firingRule: "destructive_block: Windows recursive directory delete (rmdir /s)"
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
const targetDecision = dcEvaluateRecursiveDeleteTargets({
|
|
123
|
+
targets: parsed.targets,
|
|
124
|
+
cwd
|
|
125
|
+
});
|
|
126
|
+
if (!targetDecision.allowed) {
|
|
127
|
+
return {
|
|
128
|
+
decision: "block",
|
|
129
|
+
firingRule: `${targetDecision.code}: ${targetDecision.reason}`
|
|
130
|
+
};
|
|
131
|
+
}
|
|
126
132
|
}
|
|
127
133
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
134
|
+
const explainDelVerb = /^del(?:\.exe)?\s*/i.exec(seg);
|
|
135
|
+
if (explainDelVerb) {
|
|
136
|
+
const parsed = dcParseWindowsRecursiveDelete(seg.slice(explainDelVerb[0].length));
|
|
137
|
+
if (parsed.fires) {
|
|
138
|
+
if (parsed.targets.length === 0) {
|
|
139
|
+
return {
|
|
140
|
+
decision: "block",
|
|
141
|
+
firingRule: "destructive_block: Windows recursive file delete (del /s)"
|
|
142
|
+
};
|
|
143
|
+
}
|
|
131
144
|
const targetDecision = dcEvaluateRecursiveDeleteTargets({
|
|
132
|
-
targets:
|
|
145
|
+
targets: parsed.targets,
|
|
133
146
|
cwd
|
|
134
147
|
});
|
|
135
148
|
if (!targetDecision.allowed) {
|
|
@@ -140,7 +153,7 @@ function evaluateDestructiveDecision(rawCommand, cwd, declaredScope) {
|
|
|
140
153
|
}
|
|
141
154
|
}
|
|
142
155
|
}
|
|
143
|
-
if (/^(?:Remove-Item|ri|rm|rmdir|del|erase|rd)\b
|
|
156
|
+
if (/^(?:Remove-Item|ri|rm|rmdir|del|erase|rd)\b.*\s-[Rr]ecurse\b/i.test(seg) || /^(?:Remove-Item|ri|rm|rmdir|del|erase|rd)\b.*\s-[Rr]\b/i.test(seg)) {
|
|
144
157
|
const targets2 = dcExtractPowerShellTargets(seg);
|
|
145
158
|
if (targets2.length > 0) {
|
|
146
159
|
const targetDecision = dcEvaluateRecursiveDeleteTargets({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
loadPlanJsonOnly
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-h1chaf63.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-mq4eyhtf.js";
|
|
18
18
|
import {
|
|
19
19
|
FALLBACK_MODELS_MAX,
|
|
20
20
|
GATE_CONFIG_KNOWN_SECTION_KEYS,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
init_schema,
|
|
26
26
|
retiredEpicKeyReplacement,
|
|
27
27
|
stripKnownSwarmPrefix
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-814q5t5s.js";
|
|
29
29
|
import {
|
|
30
30
|
log
|
|
31
31
|
} from "./index-zgwm4ryv.js";
|
package/dist/cli/index.js
CHANGED
|
@@ -14,37 +14,37 @@ import {
|
|
|
14
14
|
readCachePackageVersion,
|
|
15
15
|
resolveCommand,
|
|
16
16
|
safeRealpathSync
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-ce6qarfq.js";
|
|
18
18
|
import"./index-ckq78kq1.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
19
|
+
import"./index-5k88v1e7.js";
|
|
20
|
+
import"./index-yn6jrxen.js";
|
|
21
|
+
import"./index-x8sh8v4a.js";
|
|
22
22
|
import"./index-vx1j2t5p.js";
|
|
23
23
|
import"./index-txdagbh7.js";
|
|
24
24
|
import"./index-axqyjreb.js";
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
25
|
+
import"./index-aj41bscz.js";
|
|
26
|
+
import"./index-ve74c3a8.js";
|
|
27
|
+
import"./index-jt9j02tm.js";
|
|
28
28
|
import"./index-rdec0y3z.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
29
|
+
import"./index-bv9tqmpm.js";
|
|
30
|
+
import"./index-8g9rn3rp.js";
|
|
31
|
+
import"./index-r097ettz.js";
|
|
32
32
|
import"./index-rpvp88js.js";
|
|
33
33
|
import"./index-kd1n3ne2.js";
|
|
34
34
|
import"./index-x5jwegqw.js";
|
|
35
35
|
import"./index-w0afnznk.js";
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
36
|
+
import"./index-0an54fza.js";
|
|
37
|
+
import"./index-bnbhqvsn.js";
|
|
38
38
|
import"./index-tggyracy.js";
|
|
39
39
|
import"./index-pt7h91zc.js";
|
|
40
40
|
import"./index-q7sjgr1y.js";
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
41
|
+
import"./index-gkvk9et2.js";
|
|
42
|
+
import"./index-h1chaf63.js";
|
|
43
43
|
import"./index-6b295cas.js";
|
|
44
44
|
import"./index-9nyqt3kb.js";
|
|
45
|
-
import"./index-
|
|
45
|
+
import"./index-nnc23ddw.js";
|
|
46
46
|
import"./index-697mg68b.js";
|
|
47
|
-
import"./index-
|
|
47
|
+
import"./index-ra3erqpk.js";
|
|
48
48
|
import"./index-rck7v4r4.js";
|
|
49
49
|
import"./index-ck7jpn0y.js";
|
|
50
50
|
import"./index-ry16d01s.js";
|
|
@@ -52,30 +52,30 @@ import"./index-rdm3px0g.js";
|
|
|
52
52
|
import"./index-dp6hy23p.js";
|
|
53
53
|
import"./index-rjsqf4hv.js";
|
|
54
54
|
import"./index-7pmbnjvj.js";
|
|
55
|
-
import"./index-
|
|
56
|
-
import"./index-
|
|
57
|
-
import"./index-
|
|
55
|
+
import"./index-nzhfhpng.js";
|
|
56
|
+
import"./index-kzr3nby8.js";
|
|
57
|
+
import"./index-ke881z7m.js";
|
|
58
58
|
import"./index-m9zzj4ee.js";
|
|
59
59
|
import"./index-8xtdxy91.js";
|
|
60
|
-
import"./index-
|
|
60
|
+
import"./index-yq73sd3w.js";
|
|
61
61
|
import"./index-qyj4383m.js";
|
|
62
62
|
import"./index-rtry5xyf.js";
|
|
63
|
-
import"./index-
|
|
63
|
+
import"./index-qdz6zysj.js";
|
|
64
64
|
import"./index-vzm6zre7.js";
|
|
65
65
|
import"./index-ae75rja9.js";
|
|
66
66
|
import"./index-erp7fk72.js";
|
|
67
|
-
import"./index-
|
|
67
|
+
import"./index-krjamprc.js";
|
|
68
68
|
import"./index-g22dps7x.js";
|
|
69
69
|
import"./index-0725jpp7.js";
|
|
70
70
|
import"./index-3t46mez1.js";
|
|
71
|
-
import"./index-
|
|
71
|
+
import"./index-mq4eyhtf.js";
|
|
72
72
|
import {
|
|
73
73
|
init_package,
|
|
74
74
|
package_default
|
|
75
|
-
} from "./index-
|
|
75
|
+
} from "./index-814q5t5s.js";
|
|
76
76
|
import"./index-bk5tah7q.js";
|
|
77
|
-
import"./index-
|
|
78
|
-
import"./index-
|
|
77
|
+
import"./index-hhzwfyd7.js";
|
|
78
|
+
import"./index-2n7a184b.js";
|
|
79
79
|
import"./index-spggmr30.js";
|
|
80
80
|
import"./index-001tkp0j.js";
|
|
81
81
|
import"./index-9rwhas09.js";
|
|
@@ -917,7 +917,7 @@ async function main() {
|
|
|
917
917
|
const exitCode = await run(["ci", ...args.slice(1)]);
|
|
918
918
|
process.exit(exitCode);
|
|
919
919
|
} else if (command === "mcp") {
|
|
920
|
-
const { handleMcpCommand } = await import("./mcp-
|
|
920
|
+
const { handleMcpCommand } = await import("./mcp-ky6xn6ys.js");
|
|
921
921
|
const exitCode = await handleMcpCommand(args.slice(1));
|
|
922
922
|
process.exit(exitCode);
|
|
923
923
|
} else {
|