opencode-swarm 7.167.1 → 7.168.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/project-context.d.ts +12 -8
- package/dist/cli/{coder-settlement-2ye4s5xr.js → coder-settlement-a35acvj1.js} +16 -16
- package/dist/cli/{config-doctor-b0k8eyd6.js → config-doctor-9csx775x.js} +3 -3
- package/dist/cli/{core-xgzgjk8s.js → core-agk5s7dm.js} +4 -4
- package/dist/cli/{curation-policy-bvxf5pxv.js → curation-policy-mgwv8h2k.js} +7 -7
- package/dist/cli/{curator-jpvzrxcv.js → curator-2fcagjyk.js} +45 -45
- package/dist/cli/{curator-drift-20m2ab5w.js → curator-drift-k0zrnm09.js} +8 -8
- package/dist/cli/curator-llm-factory-qaxmyy46.js +71 -0
- package/dist/cli/{dispatch-tmb929w8.js → dispatch-8ks9dyk5.js} +244 -70
- package/dist/cli/{evidence-summary-service-74az43cb.js → evidence-summary-service-4s6cje60.js} +22 -22
- package/dist/cli/{explorer-zvk5kbcb.js → explorer-2cv64zfj.js} +1 -1
- package/dist/cli/{gate-evidence-f26h2gn3.js → gate-evidence-saja4dan.js} +11 -11
- package/dist/cli/guardrail-explain-z41q6sf0.js +72 -0
- package/dist/cli/{guardrail-log-pnye3xw8.js → guardrail-log-0h24spq0.js} +9 -9
- package/dist/cli/{guardrail-reset-0da7q8ap.js → guardrail-reset-cwbe47k5.js} +44 -44
- package/dist/cli/hive-promoter-esxtcvr1.js +86 -0
- package/dist/cli/{index-bv8ha57q.js → index-00zx94vn.js} +6 -6
- package/dist/cli/{index-9e6fdz2h.js → index-0mhftbpp.js} +1 -1
- package/dist/cli/{index-7qefgq4j.js → index-1xnse449.js} +11 -1
- package/dist/cli/{index-qyr17fbz.js → index-21ree67h.js} +62 -106
- package/dist/cli/{index-q265ytw6.js → index-30h1pk05.js} +4 -4
- package/dist/cli/{index-f8xk5q5j.js → index-3dywbkyr.js} +4 -4
- package/dist/cli/{index-2w0beg3s.js → index-4r5pmtvk.js} +5 -5
- package/dist/cli/{index-69y9p6dh.js → index-54w1564x.js} +2 -2
- package/dist/cli/{index-251vrmge.js → index-5zqakgp4.js} +4 -4
- package/dist/cli/{index-bzdc4b7t.js → index-64phnth4.js} +6 -6
- package/dist/cli/{index-fmzz6aw7.js → index-8f0kscpg.js} +4 -4
- package/dist/cli/{index-t8tw1bhs.js → index-8ybjqg51.js} +2 -2
- package/dist/cli/{index-9ss2m4rs.js → index-9br68j86.js} +1 -1
- package/dist/cli/{index-4rhhvd1a.js → index-a1w58b47.js} +1 -1
- package/dist/cli/{index-qd619x3r.js → index-a8xbvsse.js} +2 -2
- package/dist/cli/{index-mgc3c483.js → index-an8b5gda.js} +10 -10
- package/dist/cli/{index-9wv6a3jx.js → index-bvqqwx84.js} +2 -2
- package/dist/cli/{index-bf6zx8cq.js → index-cyenn3pf.js} +6 -2
- package/dist/cli/{index-8x4zwk0t.js → index-ddr97ram.js} +47 -47
- package/dist/cli/{index-3nm1b3t2.js → index-dfyv3xkd.js} +8 -8
- package/dist/cli/{index-87agfprq.js → index-exatbqwj.js} +13 -4
- package/dist/cli/{index-70ha9e09.js → index-fyfbpz4f.js} +1 -1
- package/dist/cli/{index-5bd84nxc.js → index-gp9yzr1v.js} +1 -1
- package/dist/cli/{index-es13aqdb.js → index-h0e2e3h1.js} +1 -1
- package/dist/cli/{index-6d4dc99f.js → index-h439y187.js} +1 -1
- package/dist/cli/{index-9bhzbwa4.js → index-j950hqmq.js} +9 -9
- package/dist/cli/{index-sahf5yz3.js → index-kear8gb7.js} +11 -6
- package/dist/cli/{index-qww0h314.js → index-m35hybf0.js} +1 -1
- package/dist/cli/{index-qtd3hrk8.js → index-mr0wn36f.js} +5 -5
- package/dist/cli/{index-zwsbegc1.js → index-nprngf8p.js} +7 -7
- package/dist/cli/{index-z5gdgdkp.js → index-nsyxj57e.js} +12 -12
- package/dist/cli/{index-1aex5zd9.js → index-nwwk3dej.js} +2 -2
- package/dist/cli/{index-75f9jj3h.js → index-pyf517sz.js} +2 -2
- package/dist/cli/{index-m3tx1q9v.js → index-qhey6vc3.js} +1 -1
- package/dist/cli/{index-qd726agw.js → index-qwsh0h2g.js} +3 -3
- package/dist/cli/{index-n4fzmqz8.js → index-rdm3px0g.js} +4 -2
- package/dist/cli/index-rxcgrgkc.js +116 -0
- package/dist/cli/{index-54vzqy47.js → index-s0d5xter.js} +6 -6
- package/dist/cli/{index-emwezg3y.js → index-seetnhpx.js} +3 -3
- package/dist/cli/{index-0tc0pcmh.js → index-sxt7fgcw.js} +38 -2
- package/dist/cli/{index-m21x1bkx.js → index-v3xc4sde.js} +11 -8
- package/dist/cli/{index-79wnzc8q.js → index-wnzxcr0z.js} +3 -3
- package/dist/cli/{index-rk10x4zr.js → index-wst6n478.js} +106 -6
- package/dist/cli/{index-hdsg7yf6.js → index-x7k3dps5.js} +4 -3
- package/dist/cli/{index-32bxwzw0.js → index-yevn4jpe.js} +92908 -90093
- package/dist/cli/index-yv76j77m.js +2008 -0
- package/dist/cli/{index-f6zgz02s.js → index-z6qreakh.js} +7 -7
- package/dist/cli/{index-eretcr6t.js → index-ze520xw1.js} +11 -11
- package/dist/cli/index.js +44 -44
- package/dist/cli/{knowledge-escalator-p2a8xh8x.js → knowledge-escalator-b2tf3sd1.js} +17 -17
- package/dist/cli/{knowledge-events-jmh28m8d.js → knowledge-events-bgs2kxe0.js} +15 -15
- package/dist/cli/{knowledge-link-w1fwqts4.js → knowledge-link-dr3xnwyd.js} +6 -6
- package/dist/cli/{knowledge-store-8gmabtsn.js → knowledge-store-stbmb1b9.js} +7 -7
- package/dist/cli/{knowledge-validator-yk579vs4.js → knowledge-validator-zykgnsag.js} +9 -9
- package/dist/cli/{model-preflight-b3b5pgsc.js → model-preflight-1ycat9jz.js} +1 -1
- package/dist/cli/{pending-delegations-nw7ph53z.js → pending-delegations-n5qavj20.js} +14 -14
- package/dist/cli/{pr-subscriptions-9815fxbc.js → pr-subscriptions-gnvmyrng.js} +14 -14
- package/dist/cli/{pr-workflow-gate-98a7b6py.js → pr-workflow-gate-cf3ybrws.js} +44 -44
- package/dist/cli/{runner-nmrjv7te.js → runner-k0ycgv8x.js} +7 -7
- package/dist/cli/{scan-cursor-6zcs0frg.js → scan-cursor-b3mcrx23.js} +10 -10
- package/dist/cli/{schema-warvhy9h.js → schema-08049cjb.js} +4 -2
- package/dist/cli/{scope-persistence-c2ck77cv.js → scope-persistence-a493gv51.js} +20 -20
- package/dist/cli/{skill-generator-jamm1cna.js → skill-generator-2qqzkdpv.js} +19 -19
- package/dist/cli/{snapshot-coordination-init-st0xsn3f.js → snapshot-coordination-init-8yt8p7q0.js} +44 -44
- package/dist/cli/{sqlite-loader-xrnf6bq8.js → sqlite-loader-amp9z7ty.js} +1 -1
- package/dist/cli/{telemetry-ce0tx41h.js → telemetry-2wzapf11.js} +2 -2
- package/dist/cli/{workspace-snapshot-0kxj2grt.js → workspace-snapshot-rkgxhj9b.js} +6 -6
- package/dist/cli/{worktree-collision-ownership-qra7r8pw.js → worktree-collision-ownership-xttafc4h.js} +17 -17
- package/dist/cli/{worktree-isolation-yr9gnf64.js → worktree-isolation-e5q5rewk.js} +45 -45
- package/dist/commands/close/align-stage.d.ts +10 -0
- package/dist/commands/close/archive-stage.d.ts +34 -0
- package/dist/commands/close/clean-stage.d.ts +2 -0
- package/dist/commands/close/constants.d.ts +122 -0
- package/dist/commands/close/context.d.ts +129 -0
- package/dist/commands/close/db-helpers.d.ts +10 -0
- package/dist/commands/close/dry-run.d.ts +12 -0
- package/dist/commands/close/finalize-stage.d.ts +44 -0
- package/dist/commands/close/fs-helpers.d.ts +17 -0
- package/dist/commands/close/internals.d.ts +55 -0
- package/dist/commands/close/orchestrator.d.ts +32 -0
- package/dist/commands/close/wiring.d.ts +2 -0
- package/dist/commands/close.d.ts +10 -402
- package/dist/commands/reset.d.ts +10 -0
- package/dist/commands/rollback.d.ts +9 -0
- package/dist/config/schema.d.ts +29 -0
- package/dist/db/project-db.d.ts +8 -0
- package/dist/db/sqlite-loader.d.ts +2 -1
- package/dist/dispatch/spawn-circuit.d.ts +121 -0
- package/dist/dispatch/token-bucket.d.ts +46 -0
- package/dist/hooks/delegation-gate/dead-lane-reclaim.d.ts +61 -0
- package/dist/hooks/delegation-gate/worktree-isolation.d.ts +22 -0
- package/dist/hooks/issue-trace.d.ts +3 -0
- package/dist/hooks/utils.d.ts +1 -1
- package/dist/index.js +811 -726
- package/dist/lang/dispatch.d.ts +6 -6
- package/dist/plan/ledger-sqlite.d.ts +226 -0
- package/dist/plan/ledger.d.ts +24 -0
- package/dist/plan/manager.d.ts +19 -0
- package/dist/retention/sweep.d.ts +2 -0
- package/dist/services/spec-drift-recovery.d.ts +2 -1
- package/dist/utils/canonical-root.d.ts +19 -0
- package/dist/utils/ephemeral-session-teardown.d.ts +55 -2
- package/opencode-swarm.schema.json +41 -0
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-zeb0pe2j.js +0 -71
- package/dist/cli/guardrail-explain-5vhveypz.js +0 -72
- package/dist/cli/hive-promoter-2vj54xc4.js +0 -86
- package/dist/cli/index-fenasyvr.js +0 -967
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
queryHistoricalOutcomes,
|
|
4
4
|
readKnowledgeEvents,
|
|
5
5
|
recordKnowledgeEvent
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-nsyxj57e.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-j950hqmq.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-zykgnsag.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-08049cjb.js");
|
|
231
|
+
const { loadPluginConfigWithMeta } = await import("./index-s0d5xter.js");
|
|
232
232
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
233
233
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
234
234
|
} catch {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-kear8gb7.js";
|
|
5
5
|
import {
|
|
6
6
|
bunWrite
|
|
7
7
|
} from "./index-p612v1mv.js";
|
|
@@ -18,22 +18,22 @@ import {
|
|
|
18
18
|
releaseCoordinationLease,
|
|
19
19
|
transitionCoordinationState,
|
|
20
20
|
withCoordinationTransaction
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-h439y187.js";
|
|
22
22
|
import {
|
|
23
23
|
getProjectDb,
|
|
24
24
|
projectDbExists
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-wst6n478.js";
|
|
26
26
|
import {
|
|
27
27
|
observeDelegationLedgerPressure
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-qwsh0h2g.js";
|
|
29
29
|
import {
|
|
30
30
|
EvidenceLockTimeoutError,
|
|
31
31
|
withEvidenceLock
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-4r5pmtvk.js";
|
|
33
33
|
import {
|
|
34
34
|
canonicalRootKeyFresh,
|
|
35
35
|
sameProjectRoot
|
|
36
|
-
} from "./index-
|
|
36
|
+
} from "./index-1xnse449.js";
|
|
37
37
|
import {
|
|
38
38
|
exports_external,
|
|
39
39
|
init_zod
|
|
@@ -4524,7 +4524,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
|
|
|
4524
4524
|
const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
|
|
4525
4525
|
if (candidates.length === 0)
|
|
4526
4526
|
return 0;
|
|
4527
|
-
const { transferCoderSettlementToBackground } = await import("./coder-settlement-
|
|
4527
|
+
const { transferCoderSettlementToBackground } = await import("./coder-settlement-a35acvj1.js");
|
|
4528
4528
|
let transferred = 0;
|
|
4529
4529
|
for (const record of candidates) {
|
|
4530
4530
|
try {
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-kear8gb7.js";
|
|
5
5
|
import {
|
|
6
6
|
observeReceiptTransition
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-qwsh0h2g.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveHiveEventsPath
|
|
10
10
|
} from "./index-ae75rja9.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveKnowledgeStoreDir
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-8ybjqg51.js";
|
|
14
14
|
import {
|
|
15
15
|
assertProjectRoot,
|
|
16
16
|
atomicWriteFile
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-4r5pmtvk.js";
|
|
18
|
+
import {
|
|
19
|
+
require_proper_lockfile
|
|
20
|
+
} from "./index-7g4c7s5r.js";
|
|
18
21
|
import {
|
|
19
22
|
emit
|
|
20
|
-
} from "./index-
|
|
23
|
+
} from "./index-z6qreakh.js";
|
|
21
24
|
import {
|
|
22
25
|
canonicalRootKey
|
|
23
|
-
} from "./index-
|
|
24
|
-
import {
|
|
25
|
-
require_proper_lockfile
|
|
26
|
-
} from "./index-7g4c7s5r.js";
|
|
26
|
+
} from "./index-1xnse449.js";
|
|
27
27
|
import {
|
|
28
28
|
loadPluginConfigWithMeta
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-seetnhpx.js";
|
|
30
30
|
import {
|
|
31
31
|
KnowledgeConfigSchema,
|
|
32
32
|
init_schema
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-exatbqwj.js";
|
|
34
34
|
import {
|
|
35
35
|
init_logger,
|
|
36
36
|
warn
|
|
@@ -2813,7 +2813,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
2813
2813
|
}
|
|
2814
2814
|
let bumps = 0;
|
|
2815
2815
|
if (deltas.length > 0) {
|
|
2816
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
2816
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-stbmb1b9.js");
|
|
2817
2817
|
bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
2818
2818
|
}
|
|
2819
2819
|
return {
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
batchDurabilityClass,
|
|
6
6
|
classifyDbWriteError,
|
|
7
7
|
getProjectDb
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-wst6n478.js";
|
|
9
9
|
import {
|
|
10
10
|
_internals,
|
|
11
11
|
canonicalRootKeyFresh
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-1xnse449.js";
|
|
13
13
|
import {
|
|
14
14
|
init_logger,
|
|
15
15
|
log,
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
derivePlanId,
|
|
4
4
|
derivePlanIdentityHash
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-h439y187.js";
|
|
6
6
|
import {
|
|
7
7
|
DURABILITY_CLASSES,
|
|
8
8
|
getProjectDb,
|
|
9
9
|
projectDbExists,
|
|
10
10
|
withImmediateTransaction
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-wst6n478.js";
|
|
12
12
|
import {
|
|
13
13
|
init_logger,
|
|
14
14
|
warn
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
atomicWriteSwarmFile
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-v3xc4sde.js";
|
|
5
5
|
import {
|
|
6
6
|
pseudonymousRef,
|
|
7
7
|
resolveLineageSalt,
|
|
8
8
|
telemetry
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-z6qreakh.js";
|
|
10
10
|
import {
|
|
11
11
|
canonicalRootKeyFresh
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-1xnse449.js";
|
|
13
13
|
|
|
14
14
|
// src/health/learning-health.ts
|
|
15
15
|
import { promises as fs } from "fs";
|
|
@@ -7,8 +7,10 @@ function createNodeDatabaseCtor(DatabaseSyncCtor) {
|
|
|
7
7
|
raw;
|
|
8
8
|
stmts = new Map;
|
|
9
9
|
savepointCounter = 0;
|
|
10
|
-
constructor(filename) {
|
|
11
|
-
|
|
10
|
+
constructor(filename, options) {
|
|
11
|
+
const immutableReadOnly = typeof options === "number" && (options & 1) !== 0 && (options & 64) !== 0 && filename.startsWith("file:");
|
|
12
|
+
const readOnly = immutableReadOnly || typeof options === "object" && options?.readonly === true;
|
|
13
|
+
this.raw = new DatabaseSyncCtor(immutableReadOnly ? new URL(filename) : filename, readOnly ? { allowExtension: false, readOnly: true } : { allowExtension: true });
|
|
12
14
|
}
|
|
13
15
|
statement(sql) {
|
|
14
16
|
let stmt = this.stmts.get(sql);
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
DOMAIN_EXPERT_COUNCIL_PROMPT,
|
|
4
|
+
GENERALIST_COUNCIL_PROMPT,
|
|
5
|
+
SECURITY_CATEGORIES,
|
|
6
|
+
SKEPTIC_COUNCIL_PROMPT,
|
|
7
|
+
_internals,
|
|
8
|
+
createAgents,
|
|
9
|
+
createArchitectAgent,
|
|
10
|
+
createCoderAgent,
|
|
11
|
+
createCriticAgent,
|
|
12
|
+
createCuratorAgent,
|
|
13
|
+
createDesignerAgent,
|
|
14
|
+
createDocsAgent,
|
|
15
|
+
createResearcherAgent,
|
|
16
|
+
createReviewerAgent,
|
|
17
|
+
createSMEAgent,
|
|
18
|
+
createTestEngineerAgent,
|
|
19
|
+
extractSwarmIdFromAgentName,
|
|
20
|
+
getAgentConfigs,
|
|
21
|
+
getSwarmAgents,
|
|
22
|
+
resolveFallbackModel,
|
|
23
|
+
resolvePrimaryAgentNames,
|
|
24
|
+
stripSwarmPrefix
|
|
25
|
+
} from "./index-yevn4jpe.js";
|
|
26
|
+
import"./index-d5qf7hvh.js";
|
|
27
|
+
import"./index-qhey6vc3.js";
|
|
28
|
+
import"./index-30h1pk05.js";
|
|
29
|
+
import"./index-nwwk3dej.js";
|
|
30
|
+
import"./index-cyenn3pf.js";
|
|
31
|
+
import"./index-21ree67h.js";
|
|
32
|
+
import"./index-gp9yzr1v.js";
|
|
33
|
+
import"./index-txdagbh7.js";
|
|
34
|
+
import"./index-9br68j86.js";
|
|
35
|
+
import"./index-cw912re7.js";
|
|
36
|
+
import"./index-64phnth4.js";
|
|
37
|
+
import"./index-mr0wn36f.js";
|
|
38
|
+
import"./index-wnzxcr0z.js";
|
|
39
|
+
import {
|
|
40
|
+
createExplorerAgent
|
|
41
|
+
} from "./index-fyfbpz4f.js";
|
|
42
|
+
import"./index-dfyv3xkd.js";
|
|
43
|
+
import"./index-zsrtt42s.js";
|
|
44
|
+
import"./index-ze520xw1.js";
|
|
45
|
+
import"./index-5zqakgp4.js";
|
|
46
|
+
import"./index-bvqqwx84.js";
|
|
47
|
+
import"./index-b43rt5ph.js";
|
|
48
|
+
import"./index-q7sjgr1y.js";
|
|
49
|
+
import"./index-00zx94vn.js";
|
|
50
|
+
import"./index-8f0kscpg.js";
|
|
51
|
+
import"./index-nprngf8p.js";
|
|
52
|
+
import"./index-nsyxj57e.js";
|
|
53
|
+
import"./index-kear8gb7.js";
|
|
54
|
+
import"./index-p612v1mv.js";
|
|
55
|
+
import"./index-3dywbkyr.js";
|
|
56
|
+
import"./index-m35hybf0.js";
|
|
57
|
+
import"./index-rtry5xyf.js";
|
|
58
|
+
import"./index-x7k3dps5.js";
|
|
59
|
+
import"./index-3qf1vxtb.js";
|
|
60
|
+
import"./index-n832052r.js";
|
|
61
|
+
import"./index-an8b5gda.js";
|
|
62
|
+
import"./index-yv76j77m.js";
|
|
63
|
+
import"./index-a8xbvsse.js";
|
|
64
|
+
import"./index-pyf517sz.js";
|
|
65
|
+
import"./index-h439y187.js";
|
|
66
|
+
import"./index-wst6n478.js";
|
|
67
|
+
import"./index-rdm3px0g.js";
|
|
68
|
+
import"./index-ry16d01s.js";
|
|
69
|
+
import"./index-qwsh0h2g.js";
|
|
70
|
+
import"./index-j950hqmq.js";
|
|
71
|
+
import"./index-vzm6zre7.js";
|
|
72
|
+
import"./index-ae75rja9.js";
|
|
73
|
+
import"./index-8ybjqg51.js";
|
|
74
|
+
import"./index-4r5pmtvk.js";
|
|
75
|
+
import"./index-7g4c7s5r.js";
|
|
76
|
+
import"./index-v3xc4sde.js";
|
|
77
|
+
import"./index-z6qreakh.js";
|
|
78
|
+
import"./index-1xnse449.js";
|
|
79
|
+
import"./index-ee6ydtfe.js";
|
|
80
|
+
import"./index-seetnhpx.js";
|
|
81
|
+
import"./index-0mhftbpp.js";
|
|
82
|
+
import"./index-a1w58b47.js";
|
|
83
|
+
import"./index-exatbqwj.js";
|
|
84
|
+
import"./index-sxt7fgcw.js";
|
|
85
|
+
import"./index-bk5tah7q.js";
|
|
86
|
+
import"./index-bpmtbmy9.js";
|
|
87
|
+
import"./index-zpsr8rpc.js";
|
|
88
|
+
import"./index-q1r1cfww.js";
|
|
89
|
+
import"./index-yzjaj53h.js";
|
|
90
|
+
import"./index-zgwm4ryv.js";
|
|
91
|
+
import"./index-a76rekgs.js";
|
|
92
|
+
export {
|
|
93
|
+
stripSwarmPrefix,
|
|
94
|
+
resolvePrimaryAgentNames,
|
|
95
|
+
resolveFallbackModel,
|
|
96
|
+
getSwarmAgents,
|
|
97
|
+
getAgentConfigs,
|
|
98
|
+
extractSwarmIdFromAgentName,
|
|
99
|
+
createTestEngineerAgent,
|
|
100
|
+
createSMEAgent,
|
|
101
|
+
createReviewerAgent,
|
|
102
|
+
createResearcherAgent,
|
|
103
|
+
createExplorerAgent,
|
|
104
|
+
createDocsAgent,
|
|
105
|
+
createDesignerAgent,
|
|
106
|
+
createCuratorAgent,
|
|
107
|
+
createCriticAgent,
|
|
108
|
+
createCoderAgent,
|
|
109
|
+
createArchitectAgent,
|
|
110
|
+
createAgents,
|
|
111
|
+
_internals,
|
|
112
|
+
SKEPTIC_COUNCIL_PROMPT,
|
|
113
|
+
SECURITY_CATEGORIES,
|
|
114
|
+
GENERALIST_COUNCIL_PROMPT,
|
|
115
|
+
DOMAIN_EXPERT_COUNCIL_PROMPT
|
|
116
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
_internals,
|
|
4
4
|
resolveWorktreeIsolationConfig
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-x7k3dps5.js";
|
|
6
6
|
import {
|
|
7
7
|
ApprovalEvidenceSchema,
|
|
8
8
|
BaseEvidenceSchema,
|
|
@@ -44,9 +44,9 @@ import {
|
|
|
44
44
|
loadPluginConfigWithMeta,
|
|
45
45
|
loadPluginConfigWithMetaAsync,
|
|
46
46
|
resetConfigAdvisoryDedup
|
|
47
|
-
} from "./index-
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
47
|
+
} from "./index-seetnhpx.js";
|
|
48
|
+
import"./index-0mhftbpp.js";
|
|
49
|
+
import"./index-a1w58b47.js";
|
|
50
50
|
import {
|
|
51
51
|
AUTO_REVIEW_V8_BURN_IN_DECISION,
|
|
52
52
|
AgentOverrideConfigSchema,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
TurboConfigSchema,
|
|
71
71
|
WorktreeIsolationConfigSchema,
|
|
72
72
|
resolveAutoReviewConfig
|
|
73
|
-
} from "./index-
|
|
73
|
+
} from "./index-exatbqwj.js";
|
|
74
74
|
import {
|
|
75
75
|
ALL_AGENT_NAMES,
|
|
76
76
|
ALL_SUBAGENT_NAMES,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
QA_AGENTS,
|
|
81
81
|
isQAAgent,
|
|
82
82
|
isSubagent
|
|
83
|
-
} from "./index-
|
|
83
|
+
} from "./index-sxt7fgcw.js";
|
|
84
84
|
import"./index-bk5tah7q.js";
|
|
85
85
|
import"./index-bpmtbmy9.js";
|
|
86
86
|
import"./index-zpsr8rpc.js";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
GIT_BINARY_ENV_VAR,
|
|
4
4
|
init_git_executable
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-0mhftbpp.js";
|
|
6
6
|
import {
|
|
7
7
|
advisoryWarn,
|
|
8
8
|
init_warning_buffer
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-a1w58b47.js";
|
|
10
10
|
import {
|
|
11
11
|
ExternalSkillsConfigSchema,
|
|
12
12
|
GATE_CONFIG_KNOWN_SECTION_KEYS,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
PluginConfigSchema,
|
|
15
15
|
init_schema,
|
|
16
16
|
resolveExternalSkillsConfig
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-exatbqwj.js";
|
|
18
18
|
import {
|
|
19
19
|
exports_external,
|
|
20
20
|
init_zod
|
|
@@ -966,7 +966,7 @@ function isQAAgent(name) {
|
|
|
966
966
|
function isSubagent(name) {
|
|
967
967
|
return ALL_SUBAGENT_NAMES.includes(name);
|
|
968
968
|
}
|
|
969
|
-
var OPENCODE_NATIVE_AGENTS, CLAUDE_CODE_NATIVE_COMMANDS, OPENCODE_NATIVE_COMMANDS, EXTERNAL_SKILL_TOOL_NAMES, EXTERNAL_SKILL_AGENT_TOOL_MAP, COUNCIL_TOOL_NAMES, COUNCIL_AGENT_TOOL_MAP, GENERAL_COUNCIL_TOOL_NAMES, GENERAL_COUNCIL_AGENT_TOOL_MAP, TURBO_TOOL_NAMES, TURBO_AGENT_TOOL_MAP, SKILL_TOOL_NAMES, SKILL_AGENT_TOOL_MAP, PR_REVIEW_CHILD_TOOL_NAMES, PR_REVIEW_CHILD_AGENT_TOOL_MAP, WRITE_TOOL_NAMES, SUMMARIZER_EXEMPT_TOOL_NAMES, DEFAULT_MODELS, DEFAULT_AGENT_CONFIGS, SWARM_WORKTREE_DIR_NAME = ".swarm-worktrees", DEFAULT_WORKTREE_ISOLATION_CONFIG;
|
|
969
|
+
var OPENCODE_NATIVE_AGENTS, CLAUDE_CODE_NATIVE_COMMANDS, OPENCODE_NATIVE_COMMANDS, MEMORY_AGENT_TOOL_MAP, EXTERNAL_SKILL_TOOL_NAMES, EXTERNAL_SKILL_AGENT_TOOL_MAP, COUNCIL_TOOL_NAMES, COUNCIL_AGENT_TOOL_MAP, GENERAL_COUNCIL_TOOL_NAMES, GENERAL_COUNCIL_AGENT_TOOL_MAP, TURBO_TOOL_NAMES, TURBO_AGENT_TOOL_MAP, SKILL_TOOL_NAMES, SKILL_AGENT_TOOL_MAP, PR_REVIEW_CHILD_TOOL_NAMES, PR_REVIEW_CHILD_AGENT_TOOL_MAP, WRITE_TOOL_NAMES, SUMMARIZER_EXEMPT_TOOL_NAMES, DEFAULT_MODELS, DEFAULT_AGENT_CONFIGS, SWARM_WORKTREE_DIR_NAME = ".swarm-worktrees", DEFAULT_WORKTREE_ISOLATION_CONFIG;
|
|
970
970
|
var init_constants = __esm(() => {
|
|
971
971
|
init_agent_names();
|
|
972
972
|
init_tool_metadata();
|
|
@@ -1110,6 +1110,41 @@ var init_constants = __esm(() => {
|
|
|
1110
1110
|
"tree",
|
|
1111
1111
|
"session"
|
|
1112
1112
|
], "OPENCODE_NATIVE_COMMANDS");
|
|
1113
|
+
MEMORY_AGENT_TOOL_MAP = {
|
|
1114
|
+
architect: [
|
|
1115
|
+
"swarm_memory_recall",
|
|
1116
|
+
"swarm_memory_propose",
|
|
1117
|
+
"swarm_memory_outcome"
|
|
1118
|
+
],
|
|
1119
|
+
explorer: [
|
|
1120
|
+
"swarm_memory_recall",
|
|
1121
|
+
"swarm_memory_propose",
|
|
1122
|
+
"swarm_memory_outcome"
|
|
1123
|
+
],
|
|
1124
|
+
coder: [
|
|
1125
|
+
"swarm_memory_recall",
|
|
1126
|
+
"swarm_memory_propose",
|
|
1127
|
+
"swarm_memory_outcome"
|
|
1128
|
+
],
|
|
1129
|
+
reviewer: ["swarm_memory_recall", "swarm_memory_outcome"],
|
|
1130
|
+
test_engineer: ["swarm_memory_recall", "swarm_memory_propose"],
|
|
1131
|
+
sme: ["swarm_memory_recall", "swarm_memory_propose"],
|
|
1132
|
+
critic: ["swarm_memory_recall", "swarm_memory_outcome"],
|
|
1133
|
+
critic_sounding_board: ["swarm_memory_recall"],
|
|
1134
|
+
critic_drift_verifier: ["swarm_memory_recall"],
|
|
1135
|
+
critic_hallucination_verifier: ["swarm_memory_recall"],
|
|
1136
|
+
critic_architecture_supervisor: ["swarm_memory_recall"],
|
|
1137
|
+
critic_finding_validator: ["swarm_memory_recall"],
|
|
1138
|
+
docs: ["swarm_memory_recall", "swarm_memory_propose"],
|
|
1139
|
+
docs_design: ["swarm_memory_recall", "swarm_memory_propose"],
|
|
1140
|
+
designer: ["swarm_memory_recall", "swarm_memory_propose"],
|
|
1141
|
+
curator_init: ["swarm_memory_recall"],
|
|
1142
|
+
curator_phase: ["swarm_memory_recall"],
|
|
1143
|
+
curator_postmortem: ["swarm_memory_recall"],
|
|
1144
|
+
curator_consolidation: ["swarm_memory_recall"],
|
|
1145
|
+
skill_improver: ["swarm_memory_recall", "swarm_memory_propose"],
|
|
1146
|
+
spec_writer: ["swarm_memory_recall", "swarm_memory_propose"]
|
|
1147
|
+
};
|
|
1113
1148
|
EXTERNAL_SKILL_TOOL_NAMES = [
|
|
1114
1149
|
"external_skill_discover",
|
|
1115
1150
|
"external_skill_list",
|
|
@@ -1315,6 +1350,7 @@ var init_constants = __esm(() => {
|
|
|
1315
1350
|
lane_permissions: "scoped_allow",
|
|
1316
1351
|
serialization_release_after_dispatches: 5,
|
|
1317
1352
|
serialization_release_after_ms: 60000,
|
|
1353
|
+
session_create_timeout_ms: 30000,
|
|
1318
1354
|
runtime_isolation: {
|
|
1319
1355
|
enabled: false,
|
|
1320
1356
|
port_stride: 1
|
|
@@ -1322,4 +1358,4 @@ var init_constants = __esm(() => {
|
|
|
1322
1358
|
};
|
|
1323
1359
|
});
|
|
1324
1360
|
|
|
1325
|
-
export { QA_AGENTS, PIPELINE_AGENTS, ORCHESTRATOR_NAME, ALL_SUBAGENT_NAMES, ALL_AGENT_NAMES, init_agent_names, TOOL_NAMES, TOOL_NAME_SET, getPrWorkflowToolCapability, AGENT_TOOL_MAP, init_tool_metadata, WRITE_TOOL_NAMES, SUMMARIZER_EXEMPT_TOOL_NAMES, DEFAULT_MODELS, DEFAULT_AGENT_CONFIGS, isQAAgent, isSubagent, SWARM_WORKTREE_DIR_NAME, DEFAULT_WORKTREE_ISOLATION_CONFIG, init_constants };
|
|
1361
|
+
export { QA_AGENTS, PIPELINE_AGENTS, ORCHESTRATOR_NAME, ALL_SUBAGENT_NAMES, ALL_AGENT_NAMES, init_agent_names, TOOL_NAMES, TOOL_NAME_SET, getPrWorkflowToolCapability, TOOL_DESCRIPTIONS, AGENT_TOOL_MAP, init_tool_metadata, MEMORY_AGENT_TOOL_MAP, EXTERNAL_SKILL_AGENT_TOOL_MAP, COUNCIL_AGENT_TOOL_MAP, GENERAL_COUNCIL_AGENT_TOOL_MAP, TURBO_AGENT_TOOL_MAP, SKILL_TOOL_NAMES, SKILL_AGENT_TOOL_MAP, WRITE_TOOL_NAMES, SUMMARIZER_EXEMPT_TOOL_NAMES, DEFAULT_MODELS, DEFAULT_AGENT_CONFIGS, isQAAgent, isSubagent, SWARM_WORKTREE_DIR_NAME, DEFAULT_WORKTREE_ISOLATION_CONFIG, init_constants };
|
|
@@ -229,9 +229,9 @@ var SWARM_TEMP_GRAMMARS = [
|
|
|
229
229
|
"src/evidence/task-file.ts (pre-#2035; migrated-to=src/evidence/task-file.ts:atomicWriteFile)",
|
|
230
230
|
"src/scope/scope-persistence.ts (pre-#2035; migrated-to=src/scope/scope-persistence.ts:atomicWrite)",
|
|
231
231
|
"src/scope/scope-persistence.ts (pre-#2035; migrated-to=src/scope/scope-persistence.ts:atomicWriteSync)",
|
|
232
|
-
"src/plan/manager.ts:
|
|
233
|
-
"src/plan/manager.ts:
|
|
234
|
-
"src/plan/manager.ts:
|
|
232
|
+
"src/plan/manager.ts:651",
|
|
233
|
+
"src/plan/manager.ts:1715",
|
|
234
|
+
"src/plan/manager.ts:1761",
|
|
235
235
|
"src/review/evidence.ts:175",
|
|
236
236
|
"src/turbo/lean/evidence.ts:182",
|
|
237
237
|
"src/summaries/manager.ts:123",
|
|
@@ -247,7 +247,7 @@ var SWARM_TEMP_GRAMMARS = [
|
|
|
247
247
|
"src/evidence/phase-participation.ts (pre-#2035; migrated-to=src/evidence/phase-participation.ts:atomicWriteBytes)",
|
|
248
248
|
"src/turbo/lean/integration.ts:428",
|
|
249
249
|
"src/turbo/lean/reviewer.ts:403",
|
|
250
|
-
"src/plan/ledger.ts:
|
|
250
|
+
"src/plan/ledger.ts:1077",
|
|
251
251
|
"src/services/synonym-map.ts:389",
|
|
252
252
|
"src/services/skill-optimizer/store.ts:340",
|
|
253
253
|
"src/services/skill-optimizer/store.ts:503",
|
|
@@ -267,7 +267,8 @@ var SWARM_TEMP_GRAMMARS = [
|
|
|
267
267
|
producers: [
|
|
268
268
|
"src/turbo/lean/state.ts:129",
|
|
269
269
|
"src/turbo/lean/recovery.ts:175",
|
|
270
|
-
"src/hooks/delegation-gate/worktree-merge-status.ts:110"
|
|
270
|
+
"src/hooks/delegation-gate/worktree-merge-status.ts:110",
|
|
271
|
+
"src/plan/ledger.ts:606"
|
|
271
272
|
]
|
|
272
273
|
},
|
|
273
274
|
{
|
|
@@ -360,7 +361,7 @@ var SWARM_TEMP_GRAMMARS = [
|
|
|
360
361
|
token: "instance",
|
|
361
362
|
quarantineEligible: true,
|
|
362
363
|
parsesTarget: true,
|
|
363
|
-
producers: ["src/plan/manager.ts:
|
|
364
|
+
producers: ["src/plan/manager.ts:1901", "src/plan/manager.ts:2090"],
|
|
364
365
|
note: "plan-durability (invariant 5) fd-write paths; grammars registered, writers unchanged in this PR"
|
|
365
366
|
},
|
|
366
367
|
{
|
|
@@ -426,8 +427,8 @@ var SWARM_TEMP_GRAMMARS = [
|
|
|
426
427
|
"src/hooks/skill-usage-log.ts:1675",
|
|
427
428
|
"src/hooks/skill-usage-pending.ts:817",
|
|
428
429
|
"src/parallel/file-locks.ts:113",
|
|
429
|
-
"src/plan/ledger.ts:
|
|
430
|
-
"src/plan/ledger.ts:
|
|
430
|
+
"src/plan/ledger.ts:578",
|
|
431
|
+
"src/plan/ledger.ts:1756"
|
|
431
432
|
],
|
|
432
433
|
note: "constant-name temps: reported when stale, never auto-quarantined. file-locks meta sidecars live under the scanner-skipped .swarm/locks/ subtree; the ledger reconcile temp embeds instance tokens but its .tmp-suffix shape maps here (conservatively report-only)"
|
|
433
434
|
}
|
|
@@ -447,6 +448,8 @@ function parseTargetBasename(basename) {
|
|
|
447
448
|
}
|
|
448
449
|
var WRITER_CLASSIFICATION = Object.freeze({
|
|
449
450
|
"src/commands/close.ts": "migrated",
|
|
451
|
+
"src/commands/close/context.ts": "reader-only",
|
|
452
|
+
"src/commands/close/clean-stage.ts": "reader-only",
|
|
450
453
|
"src/commands/handoff.ts": "migrated",
|
|
451
454
|
"src/commands/simulate.ts": "migrated",
|
|
452
455
|
"src/commands/coupling.ts": "migrated",
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readKnowledge,
|
|
4
4
|
transactKnowledge
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-j950hqmq.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveKnowledgeStoreDir
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-8ybjqg51.js";
|
|
9
9
|
import {
|
|
10
10
|
init_git_executable,
|
|
11
11
|
resolveGitExecutableAsync
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-0mhftbpp.js";
|
|
13
13
|
import {
|
|
14
14
|
init_knowledge_types,
|
|
15
15
|
isActiveStatus
|