opencode-swarm 7.186.7 → 7.187.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/swarm-pr-review/SKILL.md +3 -3
- package/.opencode/skills/swarm-pr-review/references/lane-output-recoverability.md +4 -3
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/agents/architect.d.ts +1 -1
- package/dist/background/pending-delegations.d.ts +4 -1
- package/dist/cli/{auto-checkpoint-2wez0vzz.js → auto-checkpoint-r69e82bh.js} +10 -11
- package/dist/cli/{checkpoint-ywqsp7d7.js → checkpoint-1sqwbgra.js} +18 -19
- package/dist/cli/{coder-settlement-nfzcjeda.js → coder-settlement-b9qx0732.js} +14 -15
- package/dist/cli/{config-doctor-1fjsn7zq.js → config-doctor-s4fr5qwr.js} +34 -4
- package/dist/cli/{core-xs68b2jw.js → core-bezezjy9.js} +5 -6
- package/dist/cli/{curation-policy-3dvythny.js → curation-policy-2x2w3b57.js} +7 -8
- package/dist/cli/{curator-drift-cz65fcz0.js → curator-drift-785xnxdv.js} +10 -11
- package/dist/cli/curator-llm-factory-p0wwyswg.js +80 -0
- package/dist/cli/{curator-nejfgxfm.js → curator-w4hp7a10.js} +44 -45
- package/dist/cli/{dispatch-0ejzwb45.js → dispatch-qvcztbpf.js} +222 -48
- package/dist/cli/{evidence-summary-service-0jt68dq5.js → evidence-summary-service-33qcm9xc.js} +21 -22
- package/dist/cli/{gate-evidence-ypmdcgrt.js → gate-evidence-9ehj968e.js} +9 -10
- package/dist/cli/guardrail-explain-5715fdzv.js +81 -0
- package/dist/cli/guardrail-log-k1dfzfzm.js +22 -0
- package/dist/cli/{guardrail-reset-cpw83epe.js → guardrail-reset-nt88n9dm.js} +44 -45
- package/dist/cli/hive-promoter-c8fjn186.js +95 -0
- package/dist/cli/{index-mr86ywsj.js → index-0yj79yk1.js} +1 -1
- package/dist/cli/{index-9qgncxbv.js → index-1vvr69ka.js} +1 -1
- package/dist/cli/{index-q93b3xdh.js → index-2s8wdagg.js} +44 -45
- package/dist/cli/{index-2rkw7nft.js → index-2wgvjwpr.js} +5 -5
- package/dist/cli/{index-gaf95msf.js → index-469xmpd6.js} +1 -1
- package/dist/cli/{index-9n1va1c4.js → index-4g6sw4eq.js} +1 -1
- package/dist/cli/{index-gmwzspch.js → index-5m56c5r6.js} +6 -6
- package/dist/cli/{index-yan163x1.js → index-6ersmqjd.js} +9 -9
- package/dist/cli/{index-mdxqv3r9.js → index-9hag235h.js} +2 -2
- package/dist/cli/{index-zyx7p0kb.js → index-a8gvszr2.js} +2 -2
- package/dist/cli/{index-63e62vkg.js → index-akt0arnt.js} +2745 -2596
- package/dist/cli/{index-qwd1qpmg.js → index-b2je0z0t.js} +4 -4
- package/dist/cli/{index-rsrsv4c6.js → index-bbqxt1p5.js} +28 -11
- package/dist/cli/{index-j2m9q6w1.js → index-bejxkee0.js} +2 -2
- package/dist/cli/{index-8y9p665v.js → index-c8ffgcvz.js} +3 -3
- package/dist/cli/{index-gvch83kc.js → index-cc1vzq4m.js} +1 -1
- package/dist/cli/{index-qy60v48q.js → index-cppqxjw9.js} +2 -2
- package/dist/cli/{index-93mgmhe5.js → index-cx4s7cak.js} +46 -47
- package/dist/cli/{index-059dnh78.js → index-d6kvatwp.js} +12 -12
- package/dist/cli/{index-8jhpedx9.js → index-df2p0k0s.js} +2 -2
- package/dist/cli/{index-h9gkgwn6.js → index-dypmvvga.js} +1 -1
- package/dist/cli/{index-vtbehfx1.js → index-ectvhv8e.js} +5 -5
- package/dist/cli/{index-e27aph2j.js → index-en7vzpeq.js} +4 -4
- package/dist/cli/{index-v3w5y2zp.js → index-evy5yrsw.js} +4 -4
- package/dist/cli/{index-mc72pk74.js → index-fzpt2djt.js} +32 -1
- package/dist/cli/{index-w4q83wf9.js → index-hvr82s1t.js} +565 -76
- package/dist/cli/{index-xdjwefa5.js → index-jtncfvhe.js} +1 -1
- package/dist/cli/{index-d7sxckqj.js → index-knbjtqwt.js} +5 -5
- package/dist/cli/{index-5z3qzesd.js → index-krqq8kbq.js} +7 -7
- package/dist/cli/{index-q4vf9k47.js → index-m1qy7f1e.js} +1 -1
- package/dist/cli/{index-5z1xrkaa.js → index-mf19yqss.js} +3 -3
- package/dist/cli/{index-j0j82th1.js → index-pfpnzf6w.js} +1 -1
- package/dist/cli/{index-fzah4ctw.js → index-pts38j6x.js} +5 -5
- package/dist/cli/{index-8t5z1yxt.js → index-pymr99as.js} +8 -8
- package/dist/cli/{index-qc8r1gy4.js → index-qzgfheb4.js} +3 -3
- package/dist/cli/{index-g319bdeh.js → index-r6e8syr3.js} +2 -2
- package/dist/cli/{index-emjnn90k.js → index-r7gt2w1b.js} +4 -4
- package/dist/cli/{index-m9xhje7p.js → index-rm676s0p.js} +2 -2
- package/dist/cli/{index-mpvvgktj.js → index-sztx0vyt.js} +5 -5
- package/dist/cli/{index-4dkmehar.js → index-t3hcd6zz.js} +2 -2
- package/dist/cli/{index-4c4s8yww.js → index-ta48pe8j.js} +3 -3
- package/dist/cli/{index-kb30szp0.js → index-v08ksq0b.js} +2 -2
- package/dist/cli/{index-7bxssqaf.js → index-vx8a8w3b.js} +142 -2
- package/dist/cli/{index-743kwz1r.js → index-ww8payq9.js} +2 -2
- package/dist/cli/{index-xadre3f0.js → index-xs96nry2.js} +24 -13
- package/dist/cli/{index-tq8f6ar8.js → index-ycz8z2db.js} +8 -8
- package/dist/cli/{index-671k5bzj.js → index-yf0cc6c5.js} +2 -2
- package/dist/cli/{index-48jvqqfa.js → index-yw1g78v9.js} +7 -3
- package/dist/cli/{index-qs706r9x.js → index-zzxnssy3.js} +4 -4
- package/dist/cli/index.js +45 -46
- package/dist/cli/{knowledge-escalator-1g4ewbtd.js → knowledge-escalator-qttydcx2.js} +15 -16
- package/dist/cli/{knowledge-events-t4axcrwt.js → knowledge-events-4vf0vj82.js} +13 -14
- package/dist/cli/{knowledge-link-xwn2ww1d.js → knowledge-link-p2c8agc8.js} +6 -7
- package/dist/cli/{knowledge-store-dfdktsc9.js → knowledge-store-bw1dk2eb.js} +7 -8
- package/dist/cli/{knowledge-validator-kraghq1k.js → knowledge-validator-gefcc36h.js} +9 -10
- package/dist/cli/{mcp-gv7qrj3a.js → mcp-d5p0k3p1.js} +1 -1
- package/dist/cli/{model-preflight-gztv8xqx.js → model-preflight-fmx49pwy.js} +44 -45
- package/dist/cli/{pending-delegations-rxyjgkrw.js → pending-delegations-8333cb3y.js} +13 -14
- package/dist/cli/{pr-subscriptions-csr7n0mx.js → pr-subscriptions-p42ny2sn.js} +13 -14
- package/dist/cli/{pr-workflow-gate-3nrrg0je.js → pr-workflow-gate-csy32z8w.js} +44 -45
- package/dist/cli/{runner-mfxyvzv5.js → runner-cbpr45cs.js} +7 -8
- package/dist/cli/{scan-cursor-0v2a2kya.js → scan-cursor-14mwymtz.js} +8 -9
- package/dist/cli/{schema-zzz1ddnv.js → schema-6426g0gw.js} +2 -2
- package/dist/cli/{scope-persistence-5p4kkrgt.js → scope-persistence-avkv3s4m.js} +17 -18
- package/dist/cli/{server-96a0yyge.js → server-d9rk2zeb.js} +45 -47
- package/dist/cli/{skill-generator-v5q1vkxk.js → skill-generator-epdvdsh5.js} +17 -18
- package/dist/cli/{snapshot-coordination-init-7cr259p8.js → snapshot-coordination-init-35f7wrqb.js} +44 -45
- package/dist/cli/{speckit-checkoff-j9skdc02.js → speckit-checkoff-erwa7fbj.js} +5 -5
- package/dist/cli/{telemetry-rb8hrvbx.js → telemetry-2vwb3n42.js} +2 -3
- package/dist/cli/{workspace-snapshot-hcgztg7w.js → workspace-snapshot-y60ay5eq.js} +4 -5
- package/dist/cli/{worktree-collision-ownership-k5kcnw6t.js → worktree-collision-ownership-3tqkw81h.js} +14 -15
- package/dist/cli/{worktree-isolation-p0p13n1e.js → worktree-isolation-0rrjqypt.js} +44 -45
- package/dist/commands/registry.d.ts +4 -4
- package/dist/commands/reset-backup.d.ts +20 -5
- package/dist/commands/rollback-gate.d.ts +73 -0
- package/dist/hooks/pr-workflow-gate.d.ts +1 -1
- package/dist/index.js +618 -603
- package/dist/lang/backends/java.d.ts +76 -0
- package/dist/lang/java-extraction.d.ts +88 -0
- package/dist/pr-review/circuit.d.ts +1 -1
- package/dist/pr-review/completion.d.ts +1 -0
- package/dist/pr-review/reducer.d.ts +2 -1
- package/dist/pr-review/types.d.ts +2 -1
- package/dist/services/config-doctor.d.ts +19 -1
- package/dist/services/preflight-integration.d.ts +8 -1
- package/dist/state.d.ts +13 -0
- package/dist/tools/cancel-lane-batch.d.ts +38 -0
- package/dist/tools/dispatch-lanes.d.ts +19 -0
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/manifest.d.ts +1 -0
- package/dist/tools/symbols.d.ts +18 -0
- package/dist/tools/tool-metadata.d.ts +4 -0
- package/opencode-swarm.schema.json +1 -1
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-p9r4sb0v.js +0 -81
- package/dist/cli/guardrail-explain-c42va9fp.js +0 -82
- package/dist/cli/guardrail-log-1hv4awyg.js +0 -23
- package/dist/cli/hive-promoter-y1f7zsrj.js +0 -96
- package/dist/cli/index-c1ggtmpm.js +0 -33
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
observeStoreHealth
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-c8ffgcvz.js";
|
|
5
5
|
import {
|
|
6
6
|
telemetry
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-jtncfvhe.js";
|
|
8
8
|
import {
|
|
9
9
|
init_schema,
|
|
10
10
|
stripKnownSwarmPrefix
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-qzgfheb4.js";
|
|
12
12
|
import {
|
|
13
13
|
init_constants
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-yw1g78v9.js";
|
|
15
15
|
import {
|
|
16
16
|
getPathFlavor,
|
|
17
17
|
init_path_identity,
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
loadPlanJsonOnly
|
|
4
|
+
} from "./index-d6kvatwp.js";
|
|
2
5
|
import {
|
|
3
6
|
isCanonicalPathWithinRoot
|
|
4
7
|
} from "./index-6b295cas.js";
|
|
@@ -12,13 +15,13 @@ import {
|
|
|
12
15
|
PluginConfigSchema,
|
|
13
16
|
init_schema,
|
|
14
17
|
stripKnownSwarmPrefix
|
|
15
|
-
} from "./index-
|
|
18
|
+
} from "./index-qzgfheb4.js";
|
|
16
19
|
import {
|
|
17
20
|
ALL_AGENT_NAMES,
|
|
18
21
|
TOOL_NAME_SET,
|
|
19
22
|
init_constants,
|
|
20
23
|
init_tool_metadata
|
|
21
|
-
} from "./index-
|
|
24
|
+
} from "./index-yw1g78v9.js";
|
|
22
25
|
import {
|
|
23
26
|
log
|
|
24
27
|
} from "./index-zgwm4ryv.js";
|
|
@@ -26,11 +29,11 @@ import {
|
|
|
26
29
|
// src/services/config-doctor.ts
|
|
27
30
|
init_constants();
|
|
28
31
|
init_schema();
|
|
29
|
-
init_tool_metadata();
|
|
30
32
|
import * as crypto from "crypto";
|
|
31
33
|
import * as fs from "fs";
|
|
32
34
|
import * as os from "os";
|
|
33
35
|
import * as path from "path";
|
|
36
|
+
init_tool_metadata();
|
|
34
37
|
var CONFIG_DOCTOR_MAX_CONFIG_FILE_BYTES = 102400;
|
|
35
38
|
var KNOWN_TOP_LEVEL_KEYS = new Set(Object.keys(PluginConfigSchema.shape));
|
|
36
39
|
var DEPRECATED_FIELDS = new Map([
|
|
@@ -444,10 +447,23 @@ function collectRawAutoReviewCompatibilityFindings(directory) {
|
|
|
444
447
|
}
|
|
445
448
|
return findings;
|
|
446
449
|
}
|
|
447
|
-
|
|
448
|
-
|
|
450
|
+
var _internals = {
|
|
451
|
+
loadPlanJsonOnly
|
|
452
|
+
};
|
|
453
|
+
async function resolvePlanParallelizationFlag(directory) {
|
|
454
|
+
let plan = null;
|
|
455
|
+
try {
|
|
456
|
+
plan = await _internals.loadPlanJsonOnly(directory);
|
|
457
|
+
} catch {
|
|
458
|
+
return null;
|
|
459
|
+
}
|
|
460
|
+
if (!plan?.execution_profile)
|
|
461
|
+
return null;
|
|
462
|
+
return plan.execution_profile.parallelization_enabled === true;
|
|
463
|
+
}
|
|
464
|
+
function emitWorktreeIsolationLayeringAdvisory(config, findings, planParallelizationEnabled) {
|
|
449
465
|
const worktreePolicy = config.worktree?.policy ?? "auto";
|
|
450
|
-
if (
|
|
466
|
+
if (planParallelizationEnabled === true && worktreePolicy !== "disabled") {
|
|
451
467
|
findings.push({
|
|
452
468
|
id: "worktree-isolation-baseline-active",
|
|
453
469
|
title: "Worktree isolation is already active for standard parallel coders",
|
|
@@ -1482,7 +1498,7 @@ function walkConfigAndValidate(obj, path2, findings, visited = new WeakSet) {
|
|
|
1482
1498
|
walkConfigAndValidate(value, newPath, findings, visited);
|
|
1483
1499
|
}
|
|
1484
1500
|
}
|
|
1485
|
-
function runConfigDoctor(config, directory) {
|
|
1501
|
+
function runConfigDoctor(config, directory, planParallelizationEnabled = null) {
|
|
1486
1502
|
const findings = [];
|
|
1487
1503
|
walkConfigAndValidate(config, "", findings);
|
|
1488
1504
|
findings.push(...collectRawGatesConfigFindings(directory));
|
|
@@ -1491,7 +1507,7 @@ function runConfigDoctor(config, directory) {
|
|
|
1491
1507
|
findings.push(...collectRawValueConstraintFindings(directory));
|
|
1492
1508
|
findings.push(...collectRawAutoReviewCompatibilityFindings(directory));
|
|
1493
1509
|
findings.push(...collectLeanTurboGateSatisfiabilityFindings(config));
|
|
1494
|
-
emitWorktreeIsolationLayeringAdvisory(config, findings);
|
|
1510
|
+
emitWorktreeIsolationLayeringAdvisory(config, findings, planParallelizationEnabled);
|
|
1495
1511
|
const summary = {
|
|
1496
1512
|
info: findings.filter((f) => f.severity === "info").length,
|
|
1497
1513
|
warn: findings.filter((f) => f.severity === "warn").length,
|
|
@@ -1801,7 +1817,8 @@ function shouldRunOnStartup(automationConfig) {
|
|
|
1801
1817
|
return automationConfig.capabilities?.config_doctor_on_startup === true;
|
|
1802
1818
|
}
|
|
1803
1819
|
async function runConfigDoctorWithFixes(directory, config, autoFix = false, options = {}) {
|
|
1804
|
-
const
|
|
1820
|
+
const planParallelizationEnabled = await resolvePlanParallelizationFlag(directory);
|
|
1821
|
+
const result = runConfigDoctor(config, directory, planParallelizationEnabled);
|
|
1805
1822
|
const artifactPath = writeDoctorArtifact(directory, result);
|
|
1806
1823
|
if (!autoFix) {
|
|
1807
1824
|
return {
|
|
@@ -1848,7 +1865,7 @@ async function runConfigDoctorWithFixes(directory, config, autoFix = false, opti
|
|
|
1848
1865
|
if (appliedFixes.length > 0) {
|
|
1849
1866
|
const freshConfig = readConfigFromFile(directory);
|
|
1850
1867
|
if (freshConfig) {
|
|
1851
|
-
const newResult = runConfigDoctor(freshConfig.config, directory);
|
|
1868
|
+
const newResult = runConfigDoctor(freshConfig.config, directory, planParallelizationEnabled);
|
|
1852
1869
|
writeDoctorArtifact(directory, newResult);
|
|
1853
1870
|
}
|
|
1854
1871
|
}
|
|
@@ -1969,4 +1986,4 @@ function removeStraySwarmDir(projectRoot, strayPath) {
|
|
|
1969
1986
|
}
|
|
1970
1987
|
}
|
|
1971
1988
|
|
|
1972
|
-
export { CURRENT_CONFIG_FORMAT_VERSION, DEFAULT_FLIPS, LEAN_TURBO_GATE_PRODUCERS, collectLeanTurboGateSatisfiabilityFindings, getConfigPaths, createConfigBackup, writeBackupArtifact, restoreFromBackup, runConfigDoctor, applySafeAutoFixes, readDoctorArtifact, writeDoctorArtifact, shouldRunOnStartup, runConfigDoctorWithFixes, detectStraySwarmDirs, removeStraySwarmDir };
|
|
1989
|
+
export { CURRENT_CONFIG_FORMAT_VERSION, DEFAULT_FLIPS, LEAN_TURBO_GATE_PRODUCERS, collectLeanTurboGateSatisfiabilityFindings, _internals, resolvePlanParallelizationFlag, getConfigPaths, createConfigBackup, writeBackupArtifact, restoreFromBackup, runConfigDoctor, applySafeAutoFixes, readDoctorArtifact, writeDoctorArtifact, shouldRunOnStartup, runConfigDoctorWithFixes, detectStraySwarmDirs, removeStraySwarmDir };
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
} from "./index-2s7dvzff.js";
|
|
5
5
|
import {
|
|
6
6
|
SwarmError
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-fzpt2djt.js";
|
|
8
8
|
import {
|
|
9
9
|
RECENT_WRITE_WINDOW_MS,
|
|
10
10
|
readCachedTextFile,
|
|
11
11
|
wasObservedToExist,
|
|
12
12
|
wasRecentlyWrittenByThisProcess
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-r6e8syr3.js";
|
|
14
14
|
import {
|
|
15
15
|
warn
|
|
16
16
|
} from "./index-zgwm4ryv.js";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
pseudonymousRef,
|
|
4
4
|
resolveLineageSalt,
|
|
5
5
|
telemetry
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-jtncfvhe.js";
|
|
7
7
|
import {
|
|
8
8
|
canonicalRootKeyFresh
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-fzpt2djt.js";
|
|
10
10
|
import {
|
|
11
11
|
atomicWriteSwarmFile
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-r6e8syr3.js";
|
|
13
13
|
|
|
14
14
|
// src/health/learning-health.ts
|
|
15
15
|
import { promises as fs } from "fs";
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
atomicWriteFileAnyRoot,
|
|
7
7
|
atomicWriteSwarmFileSync
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-r6e8syr3.js";
|
|
9
9
|
import {
|
|
10
10
|
init_loader,
|
|
11
11
|
loadPluginConfig
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-469xmpd6.js";
|
|
13
13
|
import {
|
|
14
14
|
init_logger,
|
|
15
15
|
log,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-yf0cc6c5.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-4g6sw4eq.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
DEFAULT_CI_DEADLINE_MS,
|
|
@@ -97,81 +97,80 @@ import {
|
|
|
97
97
|
handleWriteRetroCommand,
|
|
98
98
|
normalizeSwarmCommandInput,
|
|
99
99
|
resolveCommand
|
|
100
|
-
} from "./index-
|
|
101
|
-
import"./index-
|
|
102
|
-
import"./index-
|
|
103
|
-
import"./index-
|
|
104
|
-
import"./index-
|
|
105
|
-
import"./index-
|
|
106
|
-
import"./index-
|
|
100
|
+
} from "./index-akt0arnt.js";
|
|
101
|
+
import"./index-b2je0z0t.js";
|
|
102
|
+
import"./index-bbqxt1p5.js";
|
|
103
|
+
import"./index-sztx0vyt.js";
|
|
104
|
+
import"./index-vx8a8w3b.js";
|
|
105
|
+
import"./index-dypmvvga.js";
|
|
106
|
+
import"./index-df2p0k0s.js";
|
|
107
107
|
import"./index-txdagbh7.js";
|
|
108
|
-
import"./index-
|
|
108
|
+
import"./index-v08ksq0b.js";
|
|
109
109
|
import"./index-rdec0y3z.js";
|
|
110
|
-
import"./index-
|
|
111
|
-
import"./index-
|
|
112
|
-
import"./index-
|
|
113
|
-
import"./index-
|
|
114
|
-
import"./index-
|
|
115
|
-
import"./index-
|
|
110
|
+
import"./index-r7gt2w1b.js";
|
|
111
|
+
import"./index-pymr99as.js";
|
|
112
|
+
import"./index-2wgvjwpr.js";
|
|
113
|
+
import"./index-knbjtqwt.js";
|
|
114
|
+
import"./index-mf19yqss.js";
|
|
115
|
+
import"./index-ycz8z2db.js";
|
|
116
116
|
import"./index-cjapb4hy.js";
|
|
117
|
-
import"./index-
|
|
117
|
+
import"./index-a8gvszr2.js";
|
|
118
118
|
import"./index-pt7h91zc.js";
|
|
119
119
|
import"./index-q7sjgr1y.js";
|
|
120
|
-
import"./index-
|
|
121
|
-
import"./index-
|
|
120
|
+
import"./index-hvr82s1t.js";
|
|
121
|
+
import"./index-d6kvatwp.js";
|
|
122
122
|
import"./index-6b295cas.js";
|
|
123
123
|
import"./index-9nyqt3kb.js";
|
|
124
|
-
import"./index-
|
|
124
|
+
import"./index-1vvr69ka.js";
|
|
125
125
|
import"./index-zsrtt42s.js";
|
|
126
|
-
import"./index-
|
|
127
|
-
import"./index-
|
|
128
|
-
import"./index-
|
|
126
|
+
import"./index-cppqxjw9.js";
|
|
127
|
+
import"./index-evy5yrsw.js";
|
|
128
|
+
import"./index-pts38j6x.js";
|
|
129
129
|
import"./index-g4fs6z4e.js";
|
|
130
|
-
import"./index-
|
|
131
|
-
import"./index-
|
|
132
|
-
import"./index-
|
|
130
|
+
import"./index-xs96nry2.js";
|
|
131
|
+
import"./index-6ersmqjd.js";
|
|
132
|
+
import"./index-bejxkee0.js";
|
|
133
133
|
import"./index-2s7dvzff.js";
|
|
134
|
-
import"./index-
|
|
135
|
-
import"./index-
|
|
134
|
+
import"./index-zzxnssy3.js";
|
|
135
|
+
import"./index-pfpnzf6w.js";
|
|
136
136
|
import"./index-rtry5xyf.js";
|
|
137
|
-
import"./index-
|
|
137
|
+
import"./index-ta48pe8j.js";
|
|
138
138
|
import"./index-kbkk7vnh.js";
|
|
139
139
|
import"./index-0725jpp7.js";
|
|
140
|
-
import"./index-
|
|
141
|
-
import"./index-
|
|
142
|
-
import"./index-
|
|
143
|
-
import"./index-
|
|
144
|
-
import"./index-
|
|
145
|
-
import"./index-
|
|
140
|
+
import"./index-ectvhv8e.js";
|
|
141
|
+
import"./index-5m56c5r6.js";
|
|
142
|
+
import"./index-ww8payq9.js";
|
|
143
|
+
import"./index-m1qy7f1e.js";
|
|
144
|
+
import"./index-cc1vzq4m.js";
|
|
145
|
+
import"./index-9hag235h.js";
|
|
146
146
|
import"./index-ry16d01s.js";
|
|
147
147
|
import"./index-rdm3px0g.js";
|
|
148
148
|
import"./index-7pmbnjvj.js";
|
|
149
|
-
import"./index-
|
|
150
|
-
import"./index-
|
|
149
|
+
import"./index-c8ffgcvz.js";
|
|
150
|
+
import"./index-krqq8kbq.js";
|
|
151
151
|
import"./index-vzm6zre7.js";
|
|
152
152
|
import"./index-ae75rja9.js";
|
|
153
|
-
import"./index-
|
|
154
|
-
import"./index-
|
|
155
|
-
import"./index-
|
|
153
|
+
import"./index-rm676s0p.js";
|
|
154
|
+
import"./index-t3hcd6zz.js";
|
|
155
|
+
import"./index-0yj79yk1.js";
|
|
156
156
|
import"./index-t7hmqgjy.js";
|
|
157
|
-
import"./index-
|
|
158
|
-
import"./index-
|
|
159
|
-
import"./index-c1ggtmpm.js";
|
|
157
|
+
import"./index-jtncfvhe.js";
|
|
158
|
+
import"./index-fzpt2djt.js";
|
|
160
159
|
import"./index-ejhxgyvm.js";
|
|
161
160
|
import"./index-7g4c7s5r.js";
|
|
162
|
-
import"./index-
|
|
161
|
+
import"./index-r6e8syr3.js";
|
|
163
162
|
import"./index-gx2vp8gx.js";
|
|
164
|
-
import"./index-
|
|
163
|
+
import"./index-469xmpd6.js";
|
|
165
164
|
import"./index-zxdawwc7.js";
|
|
166
165
|
import {
|
|
167
166
|
init_schema,
|
|
168
167
|
stripKnownSwarmPrefix
|
|
169
|
-
} from "./index-
|
|
168
|
+
} from "./index-qzgfheb4.js";
|
|
170
169
|
import {
|
|
171
170
|
AGENT_TOOL_MAP,
|
|
172
171
|
ORCHESTRATOR_NAME,
|
|
173
172
|
init_constants
|
|
174
|
-
} from "./index-
|
|
173
|
+
} from "./index-yw1g78v9.js";
|
|
175
174
|
import"./index-bk5tah7q.js";
|
|
176
175
|
import"./index-gknz3bv1.js";
|
|
177
176
|
import"./index-zpsr8rpc.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./index-6b295cas.js";
|
|
5
5
|
import {
|
|
6
6
|
readEffectiveSpecSync
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-1vvr69ka.js";
|
|
8
8
|
import {
|
|
9
9
|
getWorktreeMergeFailure
|
|
10
10
|
} from "./index-zsrtt42s.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
estimateTokens,
|
|
21
21
|
readSwarmFileAsync,
|
|
22
22
|
validateSwarmPath
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-bejxkee0.js";
|
|
24
24
|
import {
|
|
25
25
|
bunHash,
|
|
26
26
|
bunWrite,
|
|
@@ -44,22 +44,22 @@ import {
|
|
|
44
44
|
replayFromLedgerWithStatus,
|
|
45
45
|
takeSnapshotEvent,
|
|
46
46
|
takeSnapshotWithRetry
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-5m56c5r6.js";
|
|
48
48
|
import {
|
|
49
49
|
appendCoreEventSync
|
|
50
|
-
} from "./index-
|
|
50
|
+
} from "./index-ww8payq9.js";
|
|
51
51
|
import {
|
|
52
52
|
getCoordinationState,
|
|
53
53
|
importCoordinationOnce,
|
|
54
54
|
listCoordinationStates,
|
|
55
55
|
transitionCoordinationState
|
|
56
|
-
} from "./index-
|
|
56
|
+
} from "./index-cc1vzq4m.js";
|
|
57
57
|
import {
|
|
58
58
|
DURABILITY_CLASSES,
|
|
59
59
|
getProjectDb,
|
|
60
60
|
projectDbExists,
|
|
61
61
|
withDurabilityClass
|
|
62
|
-
} from "./index-
|
|
62
|
+
} from "./index-9hag235h.js";
|
|
63
63
|
import {
|
|
64
64
|
derivePlanId,
|
|
65
65
|
derivePlanIdentityHash
|
|
@@ -69,10 +69,10 @@ import {
|
|
|
69
69
|
} from "./index-t7hmqgjy.js";
|
|
70
70
|
import {
|
|
71
71
|
emit
|
|
72
|
-
} from "./index-
|
|
72
|
+
} from "./index-jtncfvhe.js";
|
|
73
73
|
import {
|
|
74
74
|
canonicalRootKeyFresh
|
|
75
|
-
} from "./index-
|
|
75
|
+
} from "./index-fzpt2djt.js";
|
|
76
76
|
import {
|
|
77
77
|
tryAcquireLock
|
|
78
78
|
} from "./index-ejhxgyvm.js";
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
atomicWriteSwarmFileSync,
|
|
81
81
|
invalidateCachedArtifact,
|
|
82
82
|
readCachedParsedFile
|
|
83
|
-
} from "./index-
|
|
83
|
+
} from "./index-r6e8syr3.js";
|
|
84
84
|
import {
|
|
85
85
|
PlanSchema,
|
|
86
86
|
normalizeCurrentPhaseInPlace,
|
|
@@ -3002,7 +3002,7 @@ ${markdown}`;
|
|
|
3002
3002
|
}
|
|
3003
3003
|
}
|
|
3004
3004
|
async function defaultMaybeSaveAutoCheckpoint(directory, plan) {
|
|
3005
|
-
const { maybeSaveAutoCheckpoint } = await import("./auto-checkpoint-
|
|
3005
|
+
const { maybeSaveAutoCheckpoint } = await import("./auto-checkpoint-r69e82bh.js");
|
|
3006
3006
|
return maybeSaveAutoCheckpoint(directory, plan);
|
|
3007
3007
|
}
|
|
3008
3008
|
async function updateTaskStatus(directory, taskId, status, options) {
|
|
@@ -3078,7 +3078,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
|
|
|
3078
3078
|
if (status === "completed") {
|
|
3079
3079
|
try {
|
|
3080
3080
|
const completedTask = updatedPlan.phases.flatMap((phase) => phase.tasks).find((candidate) => candidate.id === taskId);
|
|
3081
|
-
const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-
|
|
3081
|
+
const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-erwa7fbj.js");
|
|
3082
3082
|
await maybePropagateSpeckitCheckoff(directory, {
|
|
3083
3083
|
taskId,
|
|
3084
3084
|
frRefs: completedTask?.fr_refs ?? [],
|
|
@@ -3103,7 +3103,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
|
|
|
3103
3103
|
break;
|
|
3104
3104
|
}
|
|
3105
3105
|
}
|
|
3106
|
-
const { readDeclaredScopeFilesFromBindings } = await import("./scope-persistence-
|
|
3106
|
+
const { readDeclaredScopeFilesFromBindings } = await import("./scope-persistence-avkv3s4m.js");
|
|
3107
3107
|
const canonicalScope = readDeclaredScopeFilesFromBindings({
|
|
3108
3108
|
directory,
|
|
3109
3109
|
taskId,
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from "./index-txdagbh7.js";
|
|
10
10
|
import {
|
|
11
11
|
atomicWriteFile
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-t3hcd6zz.js";
|
|
13
13
|
import {
|
|
14
14
|
withEvidenceLock
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-0yj79yk1.js";
|
|
16
16
|
import {
|
|
17
17
|
assertProjectRoot
|
|
18
18
|
} from "./index-t7hmqgjy.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
computePlanStructureHash
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-5m56c5r6.js";
|
|
5
5
|
import {
|
|
6
6
|
appendCoreEventSync
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-ww8payq9.js";
|
|
8
8
|
import {
|
|
9
9
|
deleteCoordinationState,
|
|
10
10
|
importCoordinationOnce,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
transitionCoordinationState,
|
|
13
13
|
transitionCoordinationStateWithinTransaction,
|
|
14
14
|
withCoordinationTransaction
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-cc1vzq4m.js";
|
|
16
16
|
import {
|
|
17
17
|
getProjectDb
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-9hag235h.js";
|
|
19
19
|
import {
|
|
20
20
|
canonicalExistingFilesystemPath,
|
|
21
21
|
legacyCanonicalExistingFilesystemPath
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
atomicWriteSwarmFile,
|
|
34
34
|
atomicWriteSwarmFileSync
|
|
35
|
-
} from "./index-
|
|
35
|
+
} from "./index-r6e8syr3.js";
|
|
36
36
|
import {
|
|
37
37
|
PlanSchema
|
|
38
38
|
} from "./index-gx2vp8gx.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
_internals,
|
|
4
4
|
resolveWorktreeIsolationConfig
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-ta48pe8j.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-469xmpd6.js";
|
|
50
50
|
import"./index-zxdawwc7.js";
|
|
51
51
|
import {
|
|
52
52
|
AUTO_REVIEW_V8_BURN_IN_DECISION,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
TurboConfigSchema,
|
|
73
73
|
WorktreeIsolationConfigSchema,
|
|
74
74
|
resolveAutoReviewConfig
|
|
75
|
-
} from "./index-
|
|
75
|
+
} from "./index-qzgfheb4.js";
|
|
76
76
|
import {
|
|
77
77
|
ALL_AGENT_NAMES,
|
|
78
78
|
ALL_SUBAGENT_NAMES,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
QA_AGENTS,
|
|
83
83
|
isQAAgent,
|
|
84
84
|
isSubagent
|
|
85
|
-
} from "./index-
|
|
85
|
+
} from "./index-yw1g78v9.js";
|
|
86
86
|
import"./index-bk5tah7q.js";
|
|
87
87
|
import"./index-gknz3bv1.js";
|
|
88
88
|
import"./index-zpsr8rpc.js";
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
autoCommitDirty,
|
|
4
4
|
cleanUntrackedFiles
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-pts38j6x.js";
|
|
6
6
|
import {
|
|
7
7
|
isSpawnCwdMissing,
|
|
8
8
|
isSpawnCwdUnreadable
|
|
9
9
|
} from "./index-g4fs6z4e.js";
|
|
10
10
|
import {
|
|
11
11
|
validateSwarmPath
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-bejxkee0.js";
|
|
13
13
|
import {
|
|
14
14
|
bunSpawn
|
|
15
15
|
} from "./index-2s7dvzff.js";
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
atomicWriteFile,
|
|
18
18
|
taskEvidencePath,
|
|
19
19
|
withTaskEvidenceLock
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-t3hcd6zz.js";
|
|
21
21
|
import {
|
|
22
22
|
assertProjectRoot
|
|
23
23
|
} from "./index-t7hmqgjy.js";
|
|
24
24
|
import {
|
|
25
25
|
telemetry
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-jtncfvhe.js";
|
|
27
27
|
import {
|
|
28
28
|
advisoryWarn,
|
|
29
29
|
init_git_executable,
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
init_merge
|
|
4
|
+
} from "./index-zpsr8rpc.js";
|
|
5
|
+
import {
|
|
6
|
+
init_logger
|
|
7
|
+
} from "./index-zgwm4ryv.js";
|
|
8
|
+
|
|
2
9
|
// src/utils/canonical-root.ts
|
|
3
10
|
import * as fsSync from "fs";
|
|
4
11
|
import * as path from "path";
|
|
@@ -78,4 +85,28 @@ function sessionKeySuffix(sessionId) {
|
|
|
78
85
|
return `${SESSION_KEY_SEPARATOR}${sessionId}`;
|
|
79
86
|
}
|
|
80
87
|
|
|
81
|
-
|
|
88
|
+
// src/utils/errors.ts
|
|
89
|
+
class SwarmError extends Error {
|
|
90
|
+
code;
|
|
91
|
+
guidance;
|
|
92
|
+
constructor(message, code, guidance) {
|
|
93
|
+
super(message);
|
|
94
|
+
this.name = "SwarmError";
|
|
95
|
+
this.code = code;
|
|
96
|
+
this.guidance = guidance;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// src/utils/index.ts
|
|
101
|
+
init_logger();
|
|
102
|
+
init_merge();
|
|
103
|
+
|
|
104
|
+
// src/utils/regex.ts
|
|
105
|
+
function escapeRegex(s) {
|
|
106
|
+
return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
107
|
+
}
|
|
108
|
+
function simpleGlobToRegex(pattern, flags = "i") {
|
|
109
|
+
const escaped = pattern.split("*").map((starSegment) => starSegment.split("?").map(escapeRegex).join(".")).join(".*");
|
|
110
|
+
return new RegExp(`^${escaped}$`, flags);
|
|
111
|
+
}
|
|
112
|
+
export { SESSION_KEY_SEPARATOR, _internals, lexicalRootAliasKey, canonicalRootKeyLexical, canonicalRootKeyFreshAsync, canonicalRootKey, canonicalRootKeyFresh, sameProjectRoot, compositeSessionKey, sessionKeySuffix, SwarmError, escapeRegex, simpleGlobToRegex };
|