opencode-swarm 7.165.0 → 7.166.1
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/background/delegation-cost-identity.d.ts +41 -0
- package/dist/background/delegation-lifecycle.d.ts +24 -5
- package/dist/background/pending-delegations.d.ts +2 -0
- package/dist/background/pr-monitor-worker.d.ts +60 -6
- package/dist/background/pr-subscriptions.d.ts +13 -0
- package/dist/cli/{capability-probe-5wa7mcp6.js → capability-probe-faqefhah.js} +2 -1
- package/dist/cli/{coder-settlement-89nt4j7g.js → coder-settlement-x0h3h6vd.js} +13 -13
- package/dist/cli/{config-doctor-gm6f5chm.js → config-doctor-pjcjeh8f.js} +5 -5
- package/dist/cli/{core-91p43zwj.js → core-v11pd1yk.js} +4 -4
- package/dist/cli/{curation-policy-bqpmry2n.js → curation-policy-jtzwz6bc.js} +4 -4
- package/dist/cli/{curator-drift-hbc3w5zj.js → curator-drift-jpdfwae9.js} +5 -5
- package/dist/cli/curator-llm-factory-da5q3gg6.js +70 -0
- package/dist/cli/{curator-4bs2hmy9.js → curator-ssvd7evd.js} +40 -40
- package/dist/cli/{dispatch-c7xjt7js.js → dispatch-591v13pp.js} +3 -3
- package/dist/cli/{evidence-summary-service-g1xd8egd.js → evidence-summary-service-mw6tnsp9.js} +19 -19
- package/dist/cli/{gate-evidence-gdmgsz7c.js → gate-evidence-jymaxb82.js} +9 -9
- package/dist/cli/guardrail-explain-eva1yrtf.js +71 -0
- package/dist/cli/guardrail-log-kzq2sktb.js +23 -0
- package/dist/cli/{guardrail-reset-rp9jq0gj.js → guardrail-reset-ea1g3g7d.js} +40 -40
- package/dist/cli/hive-promoter-ghjbgsms.js +85 -0
- package/dist/cli/{index-6be5caj8.js → index-066xxa4q.js} +3 -3
- package/dist/cli/{index-5ythtd9t.js → index-0g5v4s0x.js} +67 -16
- package/dist/cli/{index-a0d4fp6r.js → index-0tc0pcmh.js} +1 -1
- package/dist/cli/{index-n3pjcks8.js → index-13egyjgv.js} +5 -5
- package/dist/cli/{index-tqw8w2n5.js → index-17yszqs5.js} +1 -1
- package/dist/cli/{index-8bdk7124.js → index-1zqf2pny.js} +1 -1
- package/dist/cli/{index-8d90gzaz.js → index-2sqgbmtq.js} +1 -1
- package/dist/cli/{index-xwbn7c8m.js → index-2v17wb75.js} +2 -2
- package/dist/cli/{index-y1zhpfk8.js → index-2y4kargd.js} +4 -4
- package/dist/cli/{index-hwz46jj7.js → index-399nq780.js} +2509 -1094
- package/dist/cli/{index-r5hj3nfe.js → index-3tyym20r.js} +2 -2
- package/dist/cli/{index-zycp24b9.js → index-52xdezsh.js} +12 -3
- package/dist/cli/{index-2k53pfnc.js → index-6rff2h8x.js} +4 -4
- package/dist/cli/{index-6m24v15v.js → index-79sr3fd1.js} +2 -2
- package/dist/cli/{index-k1ntjzmf.js → index-8fr2wn18.js} +2 -2
- package/dist/cli/{index-dh5th4jn.js → index-8hqkrd2j.js} +1 -1
- package/dist/cli/{index-6rx1rdaq.js → index-a7rw4g4s.js} +1 -1
- package/dist/cli/{index-w6988bbc.js → index-aftapk6j.js} +75 -1
- package/dist/cli/{index-j2svfhzk.js → index-axf65x87.js} +1 -1
- package/dist/cli/{index-anxs69ad.js → index-bfr392e7.js} +1 -1
- package/dist/cli/{index-c4ddtrqg.js → index-bkd3450m.js} +6 -6
- package/dist/cli/{index-ajknebrc.js → index-c20gf089.js} +1 -1
- package/dist/cli/{index-qzvry1n1.js → index-crjx4sx0.js} +42 -42
- package/dist/cli/{index-jre6tm3v.js → index-edm41q4j.js} +1 -1
- package/dist/cli/{index-z6xqpmqg.js → index-ee6ydtfe.js} +1 -1
- package/dist/cli/{index-p7hdp3rp.js → index-fc1dqzjp.js} +2 -2
- package/dist/cli/{index-4gmt79q9.js → index-gerkwyrr.js} +1 -1
- package/dist/cli/{index-hdakb4n9.js → index-gr8ppbq3.js} +16 -13
- package/dist/cli/{index-f36hy1x4.js → index-hvk3zs62.js} +1 -1
- package/dist/cli/{index-5ebgzb5a.js → index-hwj25q9r.js} +78 -53
- package/dist/cli/{index-1v6vc90w.js → index-j29nkq5d.js} +5 -5
- package/dist/cli/{index-e45htt92.js → index-jx9f4ke1.js} +1 -1
- package/dist/cli/{index-7h94rfem.js → index-k5w284js.js} +16 -14
- package/dist/cli/{index-58be2gtd.js → index-nph5g4em.js} +3 -3
- package/dist/cli/{index-4fwbbad3.js → index-q1r1cfww.js} +46 -17
- package/dist/cli/{index-afpkqsdb.js → index-w11whwn3.js} +14 -7
- package/dist/cli/{index-0e9jh9c7.js → index-wf12wckd.js} +3 -3
- package/dist/cli/{index-ptsqnxwd.js → index-xezfx7ge.js} +21 -11
- package/dist/cli/{index-3xyjvx24.js → index-xwkn5hse.js} +11 -9
- package/dist/cli/{index-g8wdekzz.js → index-ybcxvv17.js} +2 -2
- package/dist/cli/{index-e6n7cemz.js → index-yt25kpvz.js} +12 -8
- package/dist/cli/{index-556ja8an.js → index-yzjaj53h.js} +9 -2
- package/dist/cli/{index-gn6ybsc4.js → index-zha9bdj9.js} +8 -8
- package/dist/cli/index-zpsr8rpc.js +68 -0
- package/dist/cli/index.js +40 -40
- package/dist/cli/{knowledge-escalator-eq07pcj3.js → knowledge-escalator-3pjed4tq.js} +14 -14
- package/dist/cli/{knowledge-events-rv9q9mkm.js → knowledge-events-a5dwkg30.js} +12 -12
- package/dist/cli/{knowledge-link-dgvbqjqg.js → knowledge-link-1zykfk1p.js} +3 -3
- package/dist/cli/{knowledge-store-cxcr0ttk.js → knowledge-store-h85efsak.js} +4 -4
- package/dist/cli/{knowledge-validator-8qtd9ys0.js → knowledge-validator-76qrf1ev.js} +6 -6
- package/dist/cli/{model-preflight-3s1c0zpc.js → model-preflight-b3b5pgsc.js} +2 -2
- package/dist/cli/{pending-delegations-dp3g8e7k.js → pending-delegations-zgwfqfac.js} +14 -12
- package/dist/cli/{pr-subscriptions-3vx06rar.js → pr-subscriptions-fzy3ks1k.js} +16 -12
- package/dist/cli/{pr-workflow-gate-bbet0apk.js → pr-workflow-gate-1gtsn7f0.js} +40 -40
- package/dist/cli/{runner-0e3bjeev.js → runner-j3acybhs.js} +4 -4
- package/dist/cli/{scan-cursor-zwm0xng7.js → scan-cursor-ahwkxa8j.js} +5 -5
- package/dist/cli/{schema-ebfxgya0.js → schema-27sedbfk.js} +3 -3
- package/dist/cli/{scope-persistence-6c55akfz.js → scope-persistence-q792yfxh.js} +16 -16
- package/dist/cli/{skill-generator-mv5jxzsh.js → skill-generator-g8wbjw6v.js} +16 -16
- package/dist/cli/{snapshot-coordination-init-n556wa18.js → snapshot-coordination-init-y6spakwm.js} +40 -40
- package/dist/cli/{telemetry-a1yvjerj.js → telemetry-9h1z2w9d.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-pp4z4z8p.js → worktree-collision-ownership-pmpnftkd.js} +13 -13
- package/dist/cli/{worktree-isolation-69hz9dgg.js → worktree-isolation-4053n0px.js} +40 -40
- package/dist/commands/pr-monitor-status.d.ts +2 -0
- package/dist/commands/registry.d.ts +8 -0
- package/dist/commands/report.d.ts +36 -0
- package/dist/db/observability-event-store.d.ts +162 -0
- package/dist/git/pr.d.ts +27 -27
- package/dist/git/safe-ref.d.ts +51 -0
- package/dist/hooks/context-capsule-inject.d.ts +3 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +573 -480
- package/dist/observability/catalog.d.ts +8 -4
- package/dist/sandbox/executor.d.ts +10 -0
- package/dist/sandbox/win32/runner-client.d.ts +7 -0
- package/dist/services/context-attribution.d.ts +69 -0
- package/dist/services/cost-accounting.d.ts +2 -0
- package/dist/telemetry.d.ts +10 -2
- package/dist/tools/co-change-analyzer.d.ts +7 -0
- package/dist/tools/gh-evidence.d.ts +15 -8
- package/dist/tools/pkg-audit.d.ts +23 -0
- package/dist/utils/gh-executable.d.ts +106 -0
- package/dist/utils/merge.d.ts +26 -0
- package/opencode-swarm.schema.json +1 -1
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-fhbjwar0.js +0 -70
- package/dist/cli/guardrail-explain-1nfbtpgg.js +0 -71
- package/dist/cli/guardrail-log-nyggdv04.js +0 -23
- package/dist/cli/hive-promoter-39xb4tx2.js +0 -85
- package/dist/cli/index-zjygnfay.js +0 -33
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
detectWindowsWrites,
|
|
15
15
|
getSharedClassifierGuardrailBlock,
|
|
16
16
|
resolveWriteTargets
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-399nq780.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-gr8ppbq3.js";
|
|
25
25
|
|
|
26
26
|
// src/services/guardrail-explain-service.ts
|
|
27
27
|
import path from "path";
|
|
@@ -14,12 +14,13 @@ import {
|
|
|
14
14
|
PluginConfigSchema,
|
|
15
15
|
init_schema,
|
|
16
16
|
resolveExternalSkillsConfig
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-wf12wckd.js";
|
|
18
18
|
import {
|
|
19
|
+
DangerousMergeKeyError,
|
|
19
20
|
MAX_MERGE_DEPTH,
|
|
20
21
|
deepMerge,
|
|
21
22
|
init_merge
|
|
22
|
-
} from "./index-
|
|
23
|
+
} from "./index-zpsr8rpc.js";
|
|
23
24
|
import {
|
|
24
25
|
exports_external,
|
|
25
26
|
init_zod
|
|
@@ -503,7 +504,15 @@ function enforceGitBinaryProvenance(mergedRaw, rawUserConfig) {
|
|
|
503
504
|
function buildConfigWithMeta(rawUserConfig, rawProjectConfig, loadedFromFile, configHadErrors) {
|
|
504
505
|
let mergedRaw = rawUserConfig ?? {};
|
|
505
506
|
if (rawProjectConfig) {
|
|
506
|
-
|
|
507
|
+
try {
|
|
508
|
+
mergedRaw = deepMerge(mergedRaw, rawProjectConfig);
|
|
509
|
+
} catch (err) {
|
|
510
|
+
if (err instanceof DangerousMergeKeyError) {
|
|
511
|
+
advisoryWarn(`[opencode-swarm] \u26A0\uFE0F SECURITY: Ignoring the entire project config (.opencode/${CONFIG_FILENAME}): ` + `it carries the dangerous key "${err.key}" at "${err.path}", a prototype-pollution payload. ` + "Continuing with user-level configuration only.");
|
|
512
|
+
} else {
|
|
513
|
+
throw err;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
507
516
|
}
|
|
508
517
|
mergedRaw = enforceGitBinaryProvenance(mergedRaw, rawUserConfig);
|
|
509
518
|
if (rawFullAutoLocked(rawUserConfig) || rawFullAutoLocked(rawProjectConfig)) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-c20gf089.js";
|
|
5
5
|
import {
|
|
6
6
|
findNearDuplicate,
|
|
7
7
|
inferTags,
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
resolveSwarmKnowledgePath,
|
|
10
10
|
resolveSwarmRejectedPath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-bkd3450m.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-a7rw4g4s.js";
|
|
16
16
|
import {
|
|
17
17
|
atomicWriteFile
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-edm41q4j.js";
|
|
19
19
|
import {
|
|
20
20
|
require_proper_lockfile
|
|
21
21
|
} from "./index-7g4c7s5r.js";
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
derivePlanId,
|
|
4
4
|
derivePlanIdentityHash
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-jx9f4ke1.js";
|
|
6
6
|
import {
|
|
7
7
|
DURABILITY_CLASSES,
|
|
8
8
|
getProjectDb,
|
|
9
9
|
projectDbExists,
|
|
10
10
|
withImmediateTransaction
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-aftapk6j.js";
|
|
12
12
|
import {
|
|
13
13
|
init_logger,
|
|
14
14
|
warn
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
PluginConfigSchema,
|
|
13
13
|
init_schema,
|
|
14
14
|
stripKnownSwarmPrefix
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-wf12wckd.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-0tc0pcmh.js";
|
|
22
22
|
import {
|
|
23
23
|
log
|
|
24
24
|
} from "./index-zgwm4ryv.js";
|
|
@@ -334,6 +334,77 @@ var MIGRATIONS = [
|
|
|
334
334
|
name: "create_coordination_event_fence_global_age_index",
|
|
335
335
|
sql: `CREATE INDEX IF NOT EXISTS idx_coordination_event_fence_global_age
|
|
336
336
|
ON coordination_event_fence(created_at, stream_id)`
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
version: 29,
|
|
340
|
+
name: "create_observability_event",
|
|
341
|
+
sql: `CREATE TABLE IF NOT EXISTS observability_event (
|
|
342
|
+
event_id TEXT PRIMARY KEY,
|
|
343
|
+
kind TEXT NOT NULL,
|
|
344
|
+
category TEXT,
|
|
345
|
+
severity TEXT,
|
|
346
|
+
occurred_at TEXT NOT NULL,
|
|
347
|
+
writer_sequence INTEGER,
|
|
348
|
+
trace_id TEXT,
|
|
349
|
+
span_id TEXT,
|
|
350
|
+
host_session_id TEXT,
|
|
351
|
+
task_id TEXT,
|
|
352
|
+
lane_id TEXT,
|
|
353
|
+
batch_id TEXT,
|
|
354
|
+
phase_id TEXT,
|
|
355
|
+
council_round_id TEXT,
|
|
356
|
+
project_ref TEXT,
|
|
357
|
+
outcome_status TEXT,
|
|
358
|
+
retry_index INTEGER,
|
|
359
|
+
privacy_class TEXT,
|
|
360
|
+
sampled INTEGER,
|
|
361
|
+
payload_json TEXT NOT NULL,
|
|
362
|
+
relationship_violations TEXT,
|
|
363
|
+
quarantined INTEGER NOT NULL DEFAULT 0,
|
|
364
|
+
quarantine_reason TEXT,
|
|
365
|
+
ingested_via TEXT NOT NULL
|
|
366
|
+
)`
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
version: 30,
|
|
370
|
+
name: "create_observability_event_indexes",
|
|
371
|
+
sql: `CREATE INDEX IF NOT EXISTS idx_obs_event_occurred
|
|
372
|
+
ON observability_event(occurred_at);
|
|
373
|
+
CREATE INDEX IF NOT EXISTS idx_obs_event_kind
|
|
374
|
+
ON observability_event(kind, occurred_at);
|
|
375
|
+
CREATE INDEX IF NOT EXISTS idx_obs_event_session
|
|
376
|
+
ON observability_event(host_session_id, occurred_at);
|
|
377
|
+
CREATE INDEX IF NOT EXISTS idx_obs_event_task
|
|
378
|
+
ON observability_event(task_id, occurred_at);
|
|
379
|
+
CREATE INDEX IF NOT EXISTS idx_obs_event_trace
|
|
380
|
+
ON observability_event(trace_id);
|
|
381
|
+
CREATE INDEX IF NOT EXISTS idx_obs_event_batch
|
|
382
|
+
ON observability_event(batch_id)`
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
version: 31,
|
|
386
|
+
name: "create_observability_sink_health",
|
|
387
|
+
sql: `CREATE TABLE IF NOT EXISTS observability_sink_health (
|
|
388
|
+
id INTEGER PRIMARY KEY CHECK(id = 1),
|
|
389
|
+
accepted INTEGER NOT NULL DEFAULT 0,
|
|
390
|
+
quarantined INTEGER NOT NULL DEFAULT 0,
|
|
391
|
+
dropped INTEGER NOT NULL DEFAULT 0,
|
|
392
|
+
last_error_category TEXT,
|
|
393
|
+
last_error_at TEXT,
|
|
394
|
+
last_flush_at TEXT,
|
|
395
|
+
updated_at TEXT NOT NULL
|
|
396
|
+
)`
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
version: 32,
|
|
400
|
+
name: "create_observability_import",
|
|
401
|
+
sql: `CREATE TABLE IF NOT EXISTS observability_import (
|
|
402
|
+
source TEXT PRIMARY KEY,
|
|
403
|
+
fingerprint_size INTEGER NOT NULL,
|
|
404
|
+
fingerprint_mtime_ms INTEGER NOT NULL,
|
|
405
|
+
lines_seen INTEGER NOT NULL CHECK(lines_seen >= 0),
|
|
406
|
+
imported_at TEXT NOT NULL
|
|
407
|
+
)`
|
|
337
408
|
}
|
|
338
409
|
];
|
|
339
410
|
var _projectDbs = new Map;
|
|
@@ -610,7 +681,10 @@ var DURABILITY_CLASSES = {
|
|
|
610
681
|
phase_report: "normal",
|
|
611
682
|
project_constraints: "normal",
|
|
612
683
|
migration_failures: "normal",
|
|
613
|
-
schema_migrations: "normal"
|
|
684
|
+
schema_migrations: "normal",
|
|
685
|
+
observability_event: "normal",
|
|
686
|
+
observability_sink_health: "normal",
|
|
687
|
+
observability_import: "normal"
|
|
614
688
|
};
|
|
615
689
|
function batchDurabilityClass(classes) {
|
|
616
690
|
for (const cls of classes) {
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./index-ae75rja9.js";
|
|
7
7
|
import {
|
|
8
8
|
resolveKnowledgeStoreDir
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-a7rw4g4s.js";
|
|
10
10
|
import {
|
|
11
11
|
atomicWriteFile
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-edm41q4j.js";
|
|
13
13
|
import {
|
|
14
14
|
readCachedParsedFile
|
|
15
15
|
} from "./index-gy0nyfbw.js";
|
|
@@ -713,7 +713,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
713
713
|
const {
|
|
714
714
|
readAuthoritativeKnowledgeCounterRollups,
|
|
715
715
|
effectiveRetrievalOutcomes
|
|
716
|
-
} = await import("./knowledge-events-
|
|
716
|
+
} = await import("./knowledge-events-a5dwkg30.js");
|
|
717
717
|
const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
|
|
718
718
|
const flagIds = new Set;
|
|
719
719
|
for (const e of atFloor) {
|
|
@@ -780,11 +780,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
780
780
|
});
|
|
781
781
|
}
|
|
782
782
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
783
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
784
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
783
|
+
const { quarantineEntry } = await import("./knowledge-validator-76qrf1ev.js");
|
|
784
|
+
const { KnowledgeConfigSchema } = await import("./schema-27sedbfk.js");
|
|
785
785
|
let config;
|
|
786
786
|
try {
|
|
787
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
787
|
+
const { loadPluginConfigWithMeta } = await import("./index-j29nkq5d.js");
|
|
788
788
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
789
789
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
790
790
|
} catch {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
readLinkPointer,
|
|
8
8
|
resolveKnowledgeStoreDir,
|
|
9
9
|
resolveLinkDir
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-a7rw4g4s.js";
|
|
11
11
|
|
|
12
12
|
// src/knowledge/curation-policy.ts
|
|
13
13
|
import { appendFile, mkdir as mkdir2, readFile as readFile2 } from "fs/promises";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-3tyym20r.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-gerkwyrr.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -94,75 +94,75 @@ import {
|
|
|
94
94
|
handleWriteRetroCommand,
|
|
95
95
|
normalizeSwarmCommandInput,
|
|
96
96
|
resolveCommand
|
|
97
|
-
} from "./index-
|
|
98
|
-
import"./index-
|
|
99
|
-
import"./index-
|
|
100
|
-
import"./index-
|
|
101
|
-
import"./index-
|
|
102
|
-
import"./index-
|
|
103
|
-
import"./index-
|
|
97
|
+
} from "./index-399nq780.js";
|
|
98
|
+
import"./index-2sqgbmtq.js";
|
|
99
|
+
import"./index-hvk3zs62.js";
|
|
100
|
+
import"./index-gr8ppbq3.js";
|
|
101
|
+
import"./index-8fr2wn18.js";
|
|
102
|
+
import"./index-0g5v4s0x.js";
|
|
103
|
+
import"./index-17yszqs5.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-066xxa4q.js";
|
|
107
|
+
import"./index-13egyjgv.js";
|
|
108
|
+
import"./index-ybcxvv17.js";
|
|
109
109
|
import"./index-70ha9e09.js";
|
|
110
|
-
import"./index-
|
|
110
|
+
import"./index-8hqkrd2j.js";
|
|
111
111
|
import"./index-9ss2m4rs.js";
|
|
112
|
-
import"./index-
|
|
112
|
+
import"./index-xezfx7ge.js";
|
|
113
113
|
import"./index-zsrtt42s.js";
|
|
114
|
-
import"./index-
|
|
114
|
+
import"./index-k5w284js.js";
|
|
115
115
|
import"./index-6chhqq2n.js";
|
|
116
|
-
import"./index-
|
|
116
|
+
import"./index-1zqf2pny.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-
|
|
124
|
-
import"./index-
|
|
119
|
+
import"./index-yt25kpvz.js";
|
|
120
|
+
import"./index-fc1dqzjp.js";
|
|
121
|
+
import"./index-w11whwn3.js";
|
|
122
|
+
import"./index-zha9bdj9.js";
|
|
123
|
+
import"./index-bfr392e7.js";
|
|
124
|
+
import"./index-ee6ydtfe.js";
|
|
125
125
|
import"./index-p612v1mv.js";
|
|
126
|
-
import"./index-
|
|
127
|
-
import"./index-
|
|
126
|
+
import"./index-6rff2h8x.js";
|
|
127
|
+
import"./index-c20gf089.js";
|
|
128
128
|
import"./index-rtry5xyf.js";
|
|
129
|
-
import"./index-
|
|
129
|
+
import"./index-nph5g4em.js";
|
|
130
130
|
import"./index-3qf1vxtb.js";
|
|
131
131
|
import"./index-n832052r.js";
|
|
132
|
-
import"./index-
|
|
133
|
-
import"./index-
|
|
134
|
-
import"./index-
|
|
135
|
-
import"./index-
|
|
136
|
-
import"./index-
|
|
137
|
-
import"./index-
|
|
138
|
-
import"./index-w6988bbc.js";
|
|
132
|
+
import"./index-xwkn5hse.js";
|
|
133
|
+
import"./index-2y4kargd.js";
|
|
134
|
+
import"./index-2v17wb75.js";
|
|
135
|
+
import"./index-79sr3fd1.js";
|
|
136
|
+
import"./index-jx9f4ke1.js";
|
|
137
|
+
import"./index-aftapk6j.js";
|
|
139
138
|
import"./index-ry16d01s.js";
|
|
140
139
|
import"./index-n4fzmqz8.js";
|
|
141
|
-
import"./index-
|
|
142
|
-
import"./index-
|
|
140
|
+
import"./index-axf65x87.js";
|
|
141
|
+
import"./index-bkd3450m.js";
|
|
143
142
|
import"./index-ae75rja9.js";
|
|
144
|
-
import"./index-
|
|
143
|
+
import"./index-a7rw4g4s.js";
|
|
145
144
|
import"./index-7qefgq4j.js";
|
|
146
|
-
import"./index-
|
|
145
|
+
import"./index-edm41q4j.js";
|
|
147
146
|
import"./index-gy0nyfbw.js";
|
|
148
|
-
import"./index-
|
|
147
|
+
import"./index-hwj25q9r.js";
|
|
149
148
|
import"./index-7g4c7s5r.js";
|
|
150
|
-
import"./index-
|
|
149
|
+
import"./index-52xdezsh.js";
|
|
151
150
|
import"./index-9e6fdz2h.js";
|
|
152
151
|
import"./index-4rhhvd1a.js";
|
|
153
152
|
import {
|
|
154
153
|
init_schema,
|
|
155
154
|
stripKnownSwarmPrefix
|
|
156
|
-
} from "./index-
|
|
155
|
+
} from "./index-wf12wckd.js";
|
|
157
156
|
import {
|
|
158
157
|
AGENT_TOOL_MAP,
|
|
159
158
|
ORCHESTRATOR_NAME,
|
|
160
159
|
init_constants
|
|
161
|
-
} from "./index-
|
|
162
|
-
import"./index-
|
|
160
|
+
} from "./index-0tc0pcmh.js";
|
|
161
|
+
import"./index-zpsr8rpc.js";
|
|
163
162
|
import"./index-bk5tah7q.js";
|
|
164
163
|
import"./index-bpmtbmy9.js";
|
|
165
|
-
import"./index-
|
|
164
|
+
import"./index-q1r1cfww.js";
|
|
165
|
+
import"./index-yzjaj53h.js";
|
|
166
166
|
import"./index-zgwm4ryv.js";
|
|
167
167
|
import"./index-a76rekgs.js";
|
|
168
168
|
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
SWARM_WORKTREE_DIR_NAME,
|
|
15
15
|
init_constants
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-0tc0pcmh.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-q792yfxh.js");
|
|
96
96
|
return realWrite(directory, taskId, files);
|
|
97
97
|
},
|
|
98
98
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
getPathFlavor,
|
|
4
|
-
isOnDifferentPathRoot,
|
|
5
|
-
isPathIdentityWithin,
|
|
6
|
-
isPathWithinDeclaredScope,
|
|
7
|
-
pathIdentitiesEqual,
|
|
8
|
-
sanitizeDiagnosticText,
|
|
9
|
-
unsafePathTextReason
|
|
10
|
-
} from "./index-556ja8an.js";
|
|
11
2
|
import {
|
|
12
3
|
observeStoreHealth
|
|
13
|
-
} from "./index-
|
|
4
|
+
} from "./index-axf65x87.js";
|
|
14
5
|
import {
|
|
15
6
|
telemetry
|
|
16
|
-
} from "./index-
|
|
7
|
+
} from "./index-hwj25q9r.js";
|
|
17
8
|
import {
|
|
18
9
|
init_schema,
|
|
19
10
|
stripKnownSwarmPrefix
|
|
20
|
-
} from "./index-
|
|
11
|
+
} from "./index-wf12wckd.js";
|
|
21
12
|
import {
|
|
22
13
|
init_constants
|
|
23
|
-
} from "./index-
|
|
14
|
+
} from "./index-0tc0pcmh.js";
|
|
15
|
+
import {
|
|
16
|
+
getPathFlavor,
|
|
17
|
+
init_path_identity,
|
|
18
|
+
isOnDifferentPathRoot,
|
|
19
|
+
isPathIdentityWithin,
|
|
20
|
+
isPathWithinDeclaredScope,
|
|
21
|
+
pathIdentitiesEqual,
|
|
22
|
+
sanitizeDiagnosticText,
|
|
23
|
+
unsafePathTextReason
|
|
24
|
+
} from "./index-yzjaj53h.js";
|
|
24
25
|
import {
|
|
25
26
|
init_logger,
|
|
26
27
|
warn
|
|
@@ -2075,6 +2076,7 @@ class QuickLRU extends Map {
|
|
|
2075
2076
|
|
|
2076
2077
|
// src/hooks/guardrails/file-authority.ts
|
|
2077
2078
|
init_schema();
|
|
2079
|
+
init_path_identity();
|
|
2078
2080
|
|
|
2079
2081
|
// src/security/protected-path-policy.ts
|
|
2080
2082
|
import * as path from "path";
|
|
@@ -2652,6 +2654,7 @@ function checkFileAuthority(agentName, filePath, cwd, authorityConfig, options =
|
|
|
2652
2654
|
|
|
2653
2655
|
// src/hooks/guardrails/helpers.ts
|
|
2654
2656
|
init_constants();
|
|
2657
|
+
init_path_identity();
|
|
2655
2658
|
function isInDeclaredScope(filePath, scopeEntries, cwd) {
|
|
2656
2659
|
return isPathWithinDeclaredScope(filePath, scopeEntries, cwd);
|
|
2657
2660
|
}
|