opencode-swarm 7.186.8 → 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/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/cli/{auto-checkpoint-hw4rttv4.js → auto-checkpoint-r69e82bh.js} +10 -11
- package/dist/cli/{checkpoint-fdkh943k.js → checkpoint-1sqwbgra.js} +18 -19
- package/dist/cli/{coder-settlement-91r5s8ar.js → coder-settlement-b9qx0732.js} +14 -15
- package/dist/cli/{config-doctor-nzds5xzf.js → config-doctor-s4fr5qwr.js} +34 -4
- package/dist/cli/{core-w0gq7vwa.js → core-bezezjy9.js} +5 -6
- package/dist/cli/{curation-policy-kw6x1cba.js → curation-policy-2x2w3b57.js} +7 -8
- package/dist/cli/{curator-drift-svnc70x4.js → curator-drift-785xnxdv.js} +10 -11
- package/dist/cli/curator-llm-factory-p0wwyswg.js +80 -0
- package/dist/cli/{curator-gkrn8wz3.js → curator-w4hp7a10.js} +44 -45
- package/dist/cli/{dispatch-0ejzwb45.js → dispatch-qvcztbpf.js} +222 -48
- package/dist/cli/{evidence-summary-service-a2tx8tbn.js → evidence-summary-service-33qcm9xc.js} +21 -22
- package/dist/cli/{gate-evidence-28bys0r0.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-w5kpwfxb.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-mtb763x4.js → index-1vvr69ka.js} +1 -1
- package/dist/cli/{index-b9zqye89.js → index-2s8wdagg.js} +44 -45
- package/dist/cli/{index-e47fhj4k.js → index-2wgvjwpr.js} +5 -5
- package/dist/cli/{index-cvwkjnr5.js → index-469xmpd6.js} +1 -1
- package/dist/cli/{index-0ghn241n.js → index-4g6sw4eq.js} +1 -1
- package/dist/cli/{index-2nbws8bd.js → index-5m56c5r6.js} +5 -5
- package/dist/cli/{index-e6tjg7t9.js → index-6ersmqjd.js} +9 -9
- package/dist/cli/{index-0k283qtq.js → index-9hag235h.js} +2 -2
- package/dist/cli/{index-sjwpvte3.js → index-a8gvszr2.js} +2 -2
- package/dist/cli/{index-qc1x5vvb.js → index-akt0arnt.js} +2695 -2589
- package/dist/cli/{index-kg4yp11g.js → index-b2je0z0t.js} +4 -4
- package/dist/cli/{index-ha4r51k4.js → index-bbqxt1p5.js} +28 -11
- package/dist/cli/{index-znc71e1c.js → index-bejxkee0.js} +2 -2
- package/dist/cli/{index-06pcq86m.js → index-c8ffgcvz.js} +3 -3
- package/dist/cli/{index-n1szkmbz.js → index-cc1vzq4m.js} +1 -1
- package/dist/cli/{index-c12cz80m.js → index-cppqxjw9.js} +2 -2
- package/dist/cli/{index-d21545hp.js → index-cx4s7cak.js} +46 -47
- package/dist/cli/{index-xgsy3hzf.js → index-d6kvatwp.js} +12 -12
- package/dist/cli/{index-k55ep5se.js → index-df2p0k0s.js} +2 -2
- package/dist/cli/{index-x5mkva6s.js → index-dypmvvga.js} +1 -1
- package/dist/cli/{index-7ae4sgp4.js → index-ectvhv8e.js} +5 -5
- package/dist/cli/{index-whk4027k.js → index-en7vzpeq.js} +4 -4
- package/dist/cli/{index-4y6pndcf.js → index-evy5yrsw.js} +4 -4
- package/dist/cli/{index-mc72pk74.js → index-fzpt2djt.js} +32 -1
- package/dist/cli/{index-5dgg9vhz.js → index-hvr82s1t.js} +565 -76
- package/dist/cli/{index-xdjwefa5.js → index-jtncfvhe.js} +1 -1
- package/dist/cli/{index-c5x4yzt6.js → index-knbjtqwt.js} +5 -5
- package/dist/cli/{index-pntrhnj8.js → index-krqq8kbq.js} +7 -7
- package/dist/cli/{index-extgtmxm.js → index-m1qy7f1e.js} +1 -1
- package/dist/cli/{index-84wt7q5y.js → index-mf19yqss.js} +3 -3
- package/dist/cli/{index-7pstt3w2.js → index-pfpnzf6w.js} +1 -1
- package/dist/cli/{index-144jx1jn.js → index-pts38j6x.js} +5 -5
- package/dist/cli/{index-dbwpcjhw.js → index-pymr99as.js} +8 -8
- package/dist/cli/{index-616pp1nq.js → index-qzgfheb4.js} +3 -3
- package/dist/cli/{index-e4hy4des.js → index-r6e8syr3.js} +1 -1
- package/dist/cli/{index-t6na8zpb.js → index-r7gt2w1b.js} +4 -4
- package/dist/cli/{index-gsqmefdg.js → index-rm676s0p.js} +2 -2
- package/dist/cli/{index-n5ekzhad.js → index-sztx0vyt.js} +5 -5
- package/dist/cli/{index-227te5a7.js → index-t3hcd6zz.js} +2 -2
- package/dist/cli/{index-prksynjw.js → index-ta48pe8j.js} +3 -3
- package/dist/cli/{index-q8dj8b88.js → index-v08ksq0b.js} +2 -2
- package/dist/cli/{index-7bxssqaf.js → index-vx8a8w3b.js} +142 -2
- package/dist/cli/{index-zcpd36zm.js → index-ww8payq9.js} +2 -2
- package/dist/cli/{index-tw513bvn.js → index-xs96nry2.js} +8 -8
- package/dist/cli/{index-0qpa53jg.js → index-ycz8z2db.js} +8 -8
- package/dist/cli/{index-gapyat7s.js → index-yf0cc6c5.js} +2 -2
- package/dist/cli/{index-03z05sbb.js → index-yw1g78v9.js} +2 -2
- package/dist/cli/{index-agm6hegf.js → index-zzxnssy3.js} +4 -4
- package/dist/cli/index.js +45 -46
- package/dist/cli/{knowledge-escalator-0dj3bvh2.js → knowledge-escalator-qttydcx2.js} +15 -16
- package/dist/cli/{knowledge-events-zwhb8jnb.js → knowledge-events-4vf0vj82.js} +13 -14
- package/dist/cli/{knowledge-link-pmbyqe3b.js → knowledge-link-p2c8agc8.js} +6 -7
- package/dist/cli/{knowledge-store-67n0qbhg.js → knowledge-store-bw1dk2eb.js} +7 -8
- package/dist/cli/{knowledge-validator-b58w129y.js → knowledge-validator-gefcc36h.js} +9 -10
- package/dist/cli/{mcp-ayc74bm2.js → mcp-d5p0k3p1.js} +1 -1
- package/dist/cli/{model-preflight-nvjb3bv5.js → model-preflight-fmx49pwy.js} +44 -45
- package/dist/cli/{pending-delegations-yvh7b951.js → pending-delegations-8333cb3y.js} +13 -14
- package/dist/cli/{pr-subscriptions-pkj5mmra.js → pr-subscriptions-p42ny2sn.js} +13 -14
- package/dist/cli/{pr-workflow-gate-zg6tg3c0.js → pr-workflow-gate-csy32z8w.js} +44 -45
- package/dist/cli/{runner-jev9vea3.js → runner-cbpr45cs.js} +7 -8
- package/dist/cli/{scan-cursor-8nkt0n1b.js → scan-cursor-14mwymtz.js} +8 -9
- package/dist/cli/{schema-ahy4ps8z.js → schema-6426g0gw.js} +2 -2
- package/dist/cli/{scope-persistence-h8b2hcy9.js → scope-persistence-avkv3s4m.js} +17 -18
- package/dist/cli/{server-14wr2fz2.js → server-d9rk2zeb.js} +45 -47
- package/dist/cli/{skill-generator-2pk8fvfz.js → skill-generator-epdvdsh5.js} +17 -18
- package/dist/cli/{snapshot-coordination-init-keeqdwph.js → snapshot-coordination-init-35f7wrqb.js} +44 -45
- package/dist/cli/{speckit-checkoff-yf09ctgv.js → speckit-checkoff-erwa7fbj.js} +5 -5
- package/dist/cli/{telemetry-rb8hrvbx.js → telemetry-2vwb3n42.js} +2 -3
- package/dist/cli/{workspace-snapshot-28p0ekng.js → workspace-snapshot-y60ay5eq.js} +4 -5
- package/dist/cli/{worktree-collision-ownership-7ctmpqx6.js → worktree-collision-ownership-3tqkw81h.js} +14 -15
- package/dist/cli/{worktree-isolation-2c1hvct4.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/index.js +612 -597
- package/dist/lang/backends/java.d.ts +76 -0
- package/dist/lang/java-extraction.d.ts +88 -0
- 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/symbols.d.ts +18 -0
- package/opencode-swarm.schema.json +1 -1
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-j51cttb2.js +0 -81
- package/dist/cli/guardrail-explain-qjyz300y.js +0 -82
- package/dist/cli/guardrail-log-rw25bt8g.js +0 -23
- package/dist/cli/hive-promoter-qzz0veev.js +0 -96
- package/dist/cli/index-c1ggtmpm.js +0 -33
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
queryHistoricalOutcomes,
|
|
4
4
|
readKnowledgeEvents,
|
|
5
5
|
recordKnowledgeEvent
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-6ersmqjd.js";
|
|
7
7
|
import {
|
|
8
8
|
jaccardBigram,
|
|
9
9
|
readKnowledge,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveSwarmKnowledgePath,
|
|
12
12
|
transactKnowledge,
|
|
13
13
|
wordBigrams
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-krqq8kbq.js";
|
|
15
15
|
import {
|
|
16
16
|
init_knowledge_types,
|
|
17
17
|
isActiveStatus
|
|
@@ -224,11 +224,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
|
|
|
224
224
|
alreadyInactive: true
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
227
|
+
const { quarantineEntry } = await import("./knowledge-validator-gefcc36h.js");
|
|
228
228
|
let policyConfig;
|
|
229
229
|
try {
|
|
230
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
231
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
230
|
+
const { KnowledgeConfigSchema } = await import("./schema-6426g0gw.js");
|
|
231
|
+
const { loadPluginConfigWithMeta } = await import("./index-en7vzpeq.js");
|
|
232
232
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
233
233
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
234
234
|
} catch {
|
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
} from "./index-ae75rja9.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveKnowledgeStoreDir
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-rm676s0p.js";
|
|
15
15
|
import {
|
|
16
16
|
atomicWriteFile
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-t3hcd6zz.js";
|
|
18
18
|
import {
|
|
19
19
|
require_proper_lockfile
|
|
20
20
|
} from "./index-7g4c7s5r.js";
|
|
21
21
|
import {
|
|
22
22
|
readCachedParsedFile
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-r6e8syr3.js";
|
|
24
24
|
import {
|
|
25
25
|
init_knowledge_types,
|
|
26
26
|
isActiveStatus
|
|
@@ -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-4vf0vj82.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-gefcc36h.js");
|
|
810
|
+
const { KnowledgeConfigSchema } = await import("./schema-6426g0gw.js");
|
|
811
811
|
let config;
|
|
812
812
|
try {
|
|
813
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
813
|
+
const { loadPluginConfigWithMeta } = await import("./index-en7vzpeq.js");
|
|
814
814
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
815
815
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
816
816
|
} catch {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-bejxkee0.js";
|
|
5
5
|
import {
|
|
6
6
|
bunSpawn
|
|
7
7
|
} from "./index-2s7dvzff.js";
|
|
8
8
|
import {
|
|
9
9
|
canonicalRootKey,
|
|
10
10
|
sameProjectRoot
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-fzpt2djt.js";
|
|
12
12
|
import {
|
|
13
13
|
atomicWriteSwarmFile
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-r6e8syr3.js";
|
|
15
15
|
import {
|
|
16
16
|
init_git_executable,
|
|
17
17
|
resolveGitExecutable
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-bejxkee0.js";
|
|
5
5
|
import {
|
|
6
6
|
bunSpawn
|
|
7
7
|
} from "./index-2s7dvzff.js";
|
|
8
8
|
import {
|
|
9
9
|
canonicalRootKeyFresh
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-fzpt2djt.js";
|
|
11
11
|
import {
|
|
12
12
|
atomicWriteSwarmFileSync
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-r6e8syr3.js";
|
|
14
14
|
import {
|
|
15
15
|
advisoryWarn,
|
|
16
16
|
init_git_executable,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
SWARM_WORKTREE_DIR_NAME,
|
|
22
22
|
init_constants
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-yw1g78v9.js";
|
|
24
24
|
import {
|
|
25
25
|
init_logger,
|
|
26
26
|
log
|
|
@@ -242,7 +242,7 @@ var _internals2 = {
|
|
|
242
242
|
symlinkSync: fs2.symlinkSync
|
|
243
243
|
},
|
|
244
244
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
245
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
245
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-avkv3s4m.js");
|
|
246
246
|
return realWrite(directory, taskId, files);
|
|
247
247
|
},
|
|
248
248
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
captureWorkspaceSnapshotAsync,
|
|
4
4
|
changedFilesSinceSnapshotAsync
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-mf19yqss.js";
|
|
6
6
|
import {
|
|
7
7
|
removeWorktreeProvisioningOwner
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-a8gvszr2.js";
|
|
9
9
|
import {
|
|
10
10
|
SOURCE_WORKTREE_GONE_STAGE,
|
|
11
11
|
ensureTaskGateRequirementsReceiptForSettledTransition,
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
reconcileLandedMerge,
|
|
15
15
|
withTaskEvidenceTransaction,
|
|
16
16
|
writeWorkflowWalFile
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-evy5yrsw.js";
|
|
18
18
|
import {
|
|
19
19
|
validateSwarmPath
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-bejxkee0.js";
|
|
21
21
|
import {
|
|
22
22
|
appendCoreEventSync
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-ww8payq9.js";
|
|
24
24
|
import {
|
|
25
25
|
canonicalRootKeyFresh
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-fzpt2djt.js";
|
|
27
27
|
import {
|
|
28
28
|
tryAcquireLock
|
|
29
29
|
} from "./index-ejhxgyvm.js";
|
|
@@ -512,7 +512,7 @@ async function cleanupRecoveredWorktree(directory, descriptor, options) {
|
|
|
512
512
|
awaitingMergeByCallID,
|
|
513
513
|
cleanupStandardWorktreeForCallId,
|
|
514
514
|
standardWorktreeByCallID
|
|
515
|
-
} = await import("./worktree-isolation-
|
|
515
|
+
} = await import("./worktree-isolation-0rrjqypt.js");
|
|
516
516
|
standardWorktreeByCallID.delete(descriptor.callID);
|
|
517
517
|
if (hasResidue)
|
|
518
518
|
awaitingMergeByCallID.set(descriptor.callID, {
|
|
@@ -648,7 +648,7 @@ async function recoverCoderSettlement(directory, taskId) {
|
|
|
648
648
|
awaitingMergeByCallID,
|
|
649
649
|
finishStandardWorktreeDispatch,
|
|
650
650
|
standardWorktreeByCallID
|
|
651
|
-
} = await import("./worktree-isolation-
|
|
651
|
+
} = await import("./worktree-isolation-0rrjqypt.js");
|
|
652
652
|
const descriptor = wal.worktree;
|
|
653
653
|
const reconstructedDispatch = {
|
|
654
654
|
callID: descriptor.callID,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ALL_AGENT_NAMES,
|
|
4
4
|
SUMMARIZER_EXEMPT_TOOL_NAMES,
|
|
5
5
|
init_constants
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-yw1g78v9.js";
|
|
7
7
|
import {
|
|
8
8
|
OUTCOME_BLOCK_THRESHOLD,
|
|
9
9
|
init_knowledge_types
|
|
@@ -21,7 +21,7 @@ var package_default;
|
|
|
21
21
|
var init_package = __esm(() => {
|
|
22
22
|
package_default = {
|
|
23
23
|
name: "opencode-swarm",
|
|
24
|
-
version: "7.
|
|
24
|
+
version: "7.187.0",
|
|
25
25
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
26
26
|
main: "dist/index.js",
|
|
27
27
|
types: "dist/index.d.ts",
|
|
@@ -1871,7 +1871,7 @@ var init_schema = __esm(() => {
|
|
|
1871
1871
|
parallelization: ParallelizationConfigSchema.optional().describe("Parallelization (PR 1 dark foundation) \u2014 disabled by default; no production code path branches on enabled=true yet."),
|
|
1872
1872
|
worktree: WorktreeIsolationConfigSchema.optional().describe("Worktree isolation policy for parallel coder dispatch lanes (general surface; Lean Turbo keeps its legacy per-mode fields)."),
|
|
1873
1873
|
turbo: TurboConfigSchema.optional().describe("Turbo execution strategy block (Phase 1). Absent means current behavior unchanged."),
|
|
1874
|
-
turbo_mode: exports_external.boolean().default(false).optional().describe("Bypass reviewer/test gates for rapid iteration (v6.40)."),
|
|
1874
|
+
turbo_mode: exports_external.boolean().default(false).optional().describe("Bypass reviewer/test gates for rapid iteration (v6.40). When true, new sessions start with turbo mode on (session default); /swarm turbo still toggles per session. Directory-less constructions default off."),
|
|
1875
1875
|
quiet: exports_external.boolean().default(true).optional().describe("Suppress non-critical startup warnings (default true keeps the TUI clean). Set false to restore verbose warnings for debugging."),
|
|
1876
1876
|
version_check: exports_external.boolean().default(true).optional().describe("Background staleness check against npm, throttled to once per 24h (issue #675). Set false to fully disable the network call."),
|
|
1877
1877
|
full_auto: exports_external.object({
|
|
@@ -410,7 +410,7 @@ var SWARM_TEMP_GRAMMARS = [
|
|
|
410
410
|
quarantineEligible: false,
|
|
411
411
|
parsesTarget: false,
|
|
412
412
|
producers: [
|
|
413
|
-
"src/tools/checkpoint.ts:
|
|
413
|
+
"src/tools/checkpoint.ts:205",
|
|
414
414
|
"src/full-auto/state.ts:636",
|
|
415
415
|
"src/context-map/persistence.ts:119",
|
|
416
416
|
"src/context-map/capsule-persistence.ts:111",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
readEffectiveSpecSync
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-1vvr69ka.js";
|
|
5
5
|
import {
|
|
6
6
|
readSwarmFileAsync
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-bejxkee0.js";
|
|
8
8
|
import {
|
|
9
9
|
DURABILITY_CLASSES,
|
|
10
10
|
DbWriteError,
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
classifyDbWriteError,
|
|
14
14
|
getProjectDb,
|
|
15
15
|
projectDbExists
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-9hag235h.js";
|
|
17
17
|
import {
|
|
18
18
|
_internals,
|
|
19
19
|
canonicalRootKeyFresh
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-fzpt2djt.js";
|
|
21
21
|
import {
|
|
22
22
|
init_logger,
|
|
23
23
|
log,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
EvaluationRunV1Schema,
|
|
4
4
|
GateAuditResultV1Schema,
|
|
5
5
|
getProtectedEvaluationRunIds
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-df2p0k0s.js";
|
|
7
7
|
import {
|
|
8
8
|
TASK_WORKFLOW_SCHEMA_MARKER,
|
|
9
9
|
deriveApplicableGateSet,
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
readTaskEvidence,
|
|
13
13
|
readTaskEvidenceRaw,
|
|
14
14
|
sanitizeTaskId
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-evy5yrsw.js";
|
|
16
16
|
import {
|
|
17
17
|
readSwarmFileAsync,
|
|
18
18
|
validateSwarmPath
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-bejxkee0.js";
|
|
20
20
|
import {
|
|
21
21
|
bunWrite
|
|
22
22
|
} from "./index-2s7dvzff.js";
|
|
@@ -27,13 +27,13 @@ import {
|
|
|
27
27
|
} from "./index-kbkk7vnh.js";
|
|
28
28
|
import {
|
|
29
29
|
withEvidenceLock
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-0yj79yk1.js";
|
|
31
31
|
import {
|
|
32
32
|
assertProjectRoot
|
|
33
33
|
} from "./index-t7hmqgjy.js";
|
|
34
34
|
import {
|
|
35
35
|
invalidateCachedArtifact
|
|
36
|
-
} from "./index-
|
|
36
|
+
} from "./index-r6e8syr3.js";
|
|
37
37
|
import {
|
|
38
38
|
ZodError,
|
|
39
39
|
init_zod
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
withEvidenceLock
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-0yj79yk1.js";
|
|
5
5
|
import {
|
|
6
6
|
atomicWriteFileAnyRoot
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-r6e8syr3.js";
|
|
8
8
|
|
|
9
9
|
// src/evidence/task-file.ts
|
|
10
10
|
import * as path from "path";
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
init_loader,
|
|
4
4
|
loadPluginConfigWithMeta
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-469xmpd6.js";
|
|
6
6
|
import {
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-qzgfheb4.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
11
11
|
init_constants
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-yw1g78v9.js";
|
|
13
13
|
|
|
14
14
|
// src/config/index.ts
|
|
15
15
|
init_constants();
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readKnowledge,
|
|
4
4
|
transactKnowledge
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-krqq8kbq.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveKnowledgeStoreDir
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-rm676s0p.js";
|
|
9
9
|
import {
|
|
10
10
|
init_git_executable,
|
|
11
11
|
resolveGitExecutableAsync
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./index-2s7dvzff.js";
|
|
8
8
|
import {
|
|
9
9
|
simpleGlobToRegex
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-fzpt2djt.js";
|
|
11
11
|
import {
|
|
12
12
|
warn
|
|
13
13
|
} from "./index-zgwm4ryv.js";
|
|
@@ -2673,4 +2673,144 @@ function buildPythonBackend() {
|
|
|
2673
2673
|
}
|
|
2674
2674
|
var _internals3 = { extractImports: extractImports2 };
|
|
2675
2675
|
|
|
2676
|
-
|
|
2676
|
+
// src/lang/java-extraction.ts
|
|
2677
|
+
function parseJavaImports(rawContent) {
|
|
2678
|
+
const imports = [];
|
|
2679
|
+
const content = maskCommentsAndLiterals(rawContent);
|
|
2680
|
+
const re = /^[ \t]*import[ \t]+(static[ \t]+)?([A-Za-z_][\w.]*(?:\.\*)?)[ \t]*;?[ \t]*\r?$/gm;
|
|
2681
|
+
for (let m = re.exec(content);m !== null; m = re.exec(content)) {
|
|
2682
|
+
const isStatic = Boolean(m[1]);
|
|
2683
|
+
const raw = m[2];
|
|
2684
|
+
if (raw.endsWith(".*")) {
|
|
2685
|
+
imports.push({ specifier: raw, importType: "namespace", bindings: [] });
|
|
2686
|
+
continue;
|
|
2687
|
+
}
|
|
2688
|
+
const imported = finalDottedSegment(raw);
|
|
2689
|
+
const specifier = isStatic ? raw.split(".").slice(0, -1).join(".") : raw;
|
|
2690
|
+
imports.push({
|
|
2691
|
+
specifier,
|
|
2692
|
+
importType: "named",
|
|
2693
|
+
bindings: [{ imported, local: imported }]
|
|
2694
|
+
});
|
|
2695
|
+
}
|
|
2696
|
+
return imports;
|
|
2697
|
+
}
|
|
2698
|
+
function maskCommentsAndLiterals(content) {
|
|
2699
|
+
let out = "";
|
|
2700
|
+
let i = 0;
|
|
2701
|
+
const n = content.length;
|
|
2702
|
+
while (i < n) {
|
|
2703
|
+
const ch = content[i];
|
|
2704
|
+
const next = i + 1 < n ? content[i + 1] : "";
|
|
2705
|
+
const next2 = i + 2 < n ? content[i + 2] : "";
|
|
2706
|
+
if (ch === '"' && next === '"' && next2 === '"') {
|
|
2707
|
+
out += " ";
|
|
2708
|
+
i += 3;
|
|
2709
|
+
while (i < n) {
|
|
2710
|
+
if (content[i] === '"' && content[i + 1] === '"' && content[i + 2] === '"') {
|
|
2711
|
+
out += " ";
|
|
2712
|
+
i += 3;
|
|
2713
|
+
break;
|
|
2714
|
+
}
|
|
2715
|
+
out += content[i] === `
|
|
2716
|
+
` ? `
|
|
2717
|
+
` : " ";
|
|
2718
|
+
i++;
|
|
2719
|
+
}
|
|
2720
|
+
continue;
|
|
2721
|
+
}
|
|
2722
|
+
if (ch === "/" && next === "/") {
|
|
2723
|
+
while (i < n && content[i] !== `
|
|
2724
|
+
`) {
|
|
2725
|
+
out += " ";
|
|
2726
|
+
i++;
|
|
2727
|
+
}
|
|
2728
|
+
continue;
|
|
2729
|
+
}
|
|
2730
|
+
if (ch === "/" && next === "*") {
|
|
2731
|
+
out += " ";
|
|
2732
|
+
i += 2;
|
|
2733
|
+
while (i < n) {
|
|
2734
|
+
if (content[i] === "*" && content[i + 1] === "/") {
|
|
2735
|
+
out += " ";
|
|
2736
|
+
i += 2;
|
|
2737
|
+
break;
|
|
2738
|
+
}
|
|
2739
|
+
out += content[i] === `
|
|
2740
|
+
` ? `
|
|
2741
|
+
` : " ";
|
|
2742
|
+
i++;
|
|
2743
|
+
}
|
|
2744
|
+
continue;
|
|
2745
|
+
}
|
|
2746
|
+
if (ch === '"' || ch === "'") {
|
|
2747
|
+
const quote = ch;
|
|
2748
|
+
out += ch;
|
|
2749
|
+
i++;
|
|
2750
|
+
while (i < n) {
|
|
2751
|
+
const c = content[i];
|
|
2752
|
+
if (c === "\\") {
|
|
2753
|
+
out += " ";
|
|
2754
|
+
i++;
|
|
2755
|
+
if (i < n) {
|
|
2756
|
+
out += content[i] === `
|
|
2757
|
+
` ? content[i] : " ";
|
|
2758
|
+
i++;
|
|
2759
|
+
}
|
|
2760
|
+
continue;
|
|
2761
|
+
}
|
|
2762
|
+
if (c === `
|
|
2763
|
+
`) {
|
|
2764
|
+
break;
|
|
2765
|
+
}
|
|
2766
|
+
if (c === quote) {
|
|
2767
|
+
out += c;
|
|
2768
|
+
i++;
|
|
2769
|
+
break;
|
|
2770
|
+
}
|
|
2771
|
+
out += " ";
|
|
2772
|
+
i++;
|
|
2773
|
+
}
|
|
2774
|
+
continue;
|
|
2775
|
+
}
|
|
2776
|
+
out += ch;
|
|
2777
|
+
i++;
|
|
2778
|
+
}
|
|
2779
|
+
return out;
|
|
2780
|
+
}
|
|
2781
|
+
function finalDottedSegment(path6) {
|
|
2782
|
+
const lastDot = path6.lastIndexOf(".");
|
|
2783
|
+
return lastDot === -1 ? path6 : path6.slice(lastDot + 1);
|
|
2784
|
+
}
|
|
2785
|
+
var JAVA_SYMBOL_GRAMMAR = {
|
|
2786
|
+
defs: `
|
|
2787
|
+
(method_declaration
|
|
2788
|
+
(identifier) @func.name
|
|
2789
|
+
) @func.def
|
|
2790
|
+
(constructor_declaration
|
|
2791
|
+
(identifier) @ctor.name
|
|
2792
|
+
) @ctor.def
|
|
2793
|
+
(class_declaration
|
|
2794
|
+
(identifier) @class.name
|
|
2795
|
+
) @class.def
|
|
2796
|
+
(interface_declaration
|
|
2797
|
+
(identifier) @interface.name
|
|
2798
|
+
) @interface.def
|
|
2799
|
+
(enum_declaration
|
|
2800
|
+
(identifier) @enum.name
|
|
2801
|
+
) @enum.def
|
|
2802
|
+
(record_declaration
|
|
2803
|
+
(identifier) @record.name
|
|
2804
|
+
) @record.def
|
|
2805
|
+
`,
|
|
2806
|
+
imports: `
|
|
2807
|
+
(import_declaration) @import
|
|
2808
|
+
`,
|
|
2809
|
+
refs: `
|
|
2810
|
+
(identifier) @ref.identifier
|
|
2811
|
+
(type_identifier) @ref.identifier
|
|
2812
|
+
`,
|
|
2813
|
+
exports: ``
|
|
2814
|
+
};
|
|
2815
|
+
|
|
2816
|
+
export { LANGUAGE_REGISTRY, getProfileForFile, detectProjectLanguages, tokenizeCommand, resolveLocalNodeTool, isCommandAvailable, parseJavaImports, maskCommentsAndLiterals, JAVA_SYMBOL_GRAMMAR, defaultSelectTestFramework, defaultBuildTestCommand, buildNativeTargetCommand, defaultParseTestOutput, defaultSelectBuildCommand, defaultTestFilesFor, defaultBackendFor, buildGoBackend, _internals2 as _internals, buildPythonBackend, _internals3 as _internals1 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-bejxkee0.js";
|
|
5
5
|
import {
|
|
6
6
|
bunWrite
|
|
7
7
|
} from "./index-2s7dvzff.js";
|
|
@@ -18,25 +18,25 @@ import {
|
|
|
18
18
|
releaseCoordinationLease,
|
|
19
19
|
transitionCoordinationState,
|
|
20
20
|
withCoordinationTransaction
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-cc1vzq4m.js";
|
|
22
22
|
import {
|
|
23
23
|
getProjectDb,
|
|
24
24
|
projectDbExists
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-9hag235h.js";
|
|
26
26
|
import {
|
|
27
27
|
observeDelegationLedgerPressure
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-c8ffgcvz.js";
|
|
29
29
|
import {
|
|
30
30
|
EvidenceLockTimeoutError,
|
|
31
31
|
withEvidenceLock
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-0yj79yk1.js";
|
|
33
33
|
import {
|
|
34
34
|
telemetry
|
|
35
|
-
} from "./index-
|
|
35
|
+
} from "./index-jtncfvhe.js";
|
|
36
36
|
import {
|
|
37
37
|
canonicalRootKeyFresh,
|
|
38
38
|
sameProjectRoot
|
|
39
|
-
} from "./index-
|
|
39
|
+
} from "./index-fzpt2djt.js";
|
|
40
40
|
import {
|
|
41
41
|
exports_external,
|
|
42
42
|
init_zod
|
|
@@ -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-b9qx0732.js");
|
|
4739
4739
|
let transferred = 0;
|
|
4740
4740
|
for (const record of candidates) {
|
|
4741
4741
|
try {
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-bejxkee0.js";
|
|
5
5
|
import {
|
|
6
6
|
deleteCoordinationState,
|
|
7
7
|
importCoordinationOnce,
|
|
8
8
|
listCoordinationStates,
|
|
9
9
|
transitionCoordinationState,
|
|
10
10
|
withCoordinationTransaction
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-cc1vzq4m.js";
|
|
12
12
|
import {
|
|
13
13
|
getProjectDb,
|
|
14
14
|
projectDbExists
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-9hag235h.js";
|
|
16
16
|
import {
|
|
17
17
|
observeStoreHealth
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-c8ffgcvz.js";
|
|
19
19
|
import {
|
|
20
20
|
withEvidenceLock
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-0yj79yk1.js";
|
|
22
22
|
import {
|
|
23
23
|
telemetry
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-jtncfvhe.js";
|
|
25
25
|
import {
|
|
26
26
|
canonicalRootKey,
|
|
27
27
|
canonicalRootKeyFresh,
|
|
28
28
|
sameProjectRoot
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-fzpt2djt.js";
|
|
30
30
|
import {
|
|
31
31
|
atomicWriteSwarmFileSync
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-r6e8syr3.js";
|
|
33
33
|
import {
|
|
34
34
|
exports_external,
|
|
35
35
|
init_zod
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
detectWindowsWrites,
|
|
15
15
|
getSharedClassifierGuardrailBlock,
|
|
16
16
|
resolveWriteTargets
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-akt0arnt.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-b2je0z0t.js";
|
|
25
25
|
|
|
26
26
|
// src/services/guardrail-explain-service.ts
|
|
27
27
|
import path from "path";
|