opencode-swarm 7.166.3 → 7.166.4
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/council/SKILL.md +4 -1
- package/.opencode/skills/deep-dive/SKILL.md +1 -1
- package/.opencode/skills/deep-research/SKILL.md +4 -1
- package/.opencode/skills/gate-attribution/SKILL.md +3 -0
- package/.opencode/skills/pre-phase-briefing/SKILL.md +8 -0
- package/.opencode/skills/swarm-pr-review/SKILL.md +30 -30
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/cli/{coder-settlement-nx8ff9k1.js → coder-settlement-yynntj5j.js} +3 -3
- package/dist/cli/{config-doctor-n9cjh11e.js → config-doctor-8asc35km.js} +2 -2
- package/dist/cli/{core-cbwrwhcz.js → core-qrbhs2q4.js} +1 -1
- package/dist/cli/{curator-llm-factory-2gv6kt1v.js → curator-llm-factory-rs4921ks.js} +19 -19
- package/dist/cli/{curator-c7amtass.js → curator-qk4xmkv4.js} +19 -19
- package/dist/cli/{evidence-summary-service-5th3zm9c.js → evidence-summary-service-rktcp3s4.js} +6 -6
- package/dist/cli/{gate-evidence-py8v0w28.js → gate-evidence-k6nzqca1.js} +2 -2
- package/dist/cli/{guardrail-explain-qzhjhtyk.js → guardrail-explain-jdspxzjr.js} +20 -20
- package/dist/cli/{guardrail-log-rtdpk545.js → guardrail-log-962pzjev.js} +3 -3
- package/dist/cli/{guardrail-reset-s27fehv6.js → guardrail-reset-dv02t0bm.js} +19 -19
- package/dist/cli/{hive-promoter-56mfysq6.js → hive-promoter-9zzr28p2.js} +19 -19
- package/dist/cli/{index-d5gvr6z4.js → index-0v6bf0j9.js} +1 -1
- package/dist/cli/{index-2c7eabkr.js → index-3ct7fd75.js} +1 -1
- package/dist/cli/{index-8cky7ksv.js → index-3s194swm.js} +4 -4
- package/dist/cli/{index-dvhecfa9.js → index-5qws47d4.js} +50 -50
- package/dist/cli/{index-87wqes24.js → index-7g5kdtvw.js} +1 -1
- package/dist/cli/{index-b7ra4hwj.js → index-8ewgab6z.js} +1 -1
- package/dist/cli/{index-0jpv5z94.js → index-9eswrdp5.js} +1 -1
- package/dist/cli/{index-xn16akay.js → index-bxrxqwce.js} +1 -1
- package/dist/cli/{index-gk1w1h9k.js → index-gccxen4x.js} +1 -1
- package/dist/cli/{index-ms16gaa4.js → index-gr5wg0nj.js} +2 -2
- package/dist/cli/{index-ch293kd3.js → index-gsftf6c8.js} +3 -3
- package/dist/cli/{index-t9kjxzdr.js → index-kwervbv6.js} +3 -3
- package/dist/cli/{index-tzq6t9wc.js → index-kz44j3qe.js} +3 -3
- package/dist/cli/{index-gbv76wf7.js → index-m9q6f3ty.js} +2 -2
- package/dist/cli/{index-4c50tm9j.js → index-n189w64j.js} +1 -1
- package/dist/cli/{index-h92cqbqa.js → index-n65x6e1y.js} +5 -5
- package/dist/cli/{index-qa7t42e7.js → index-qv4byzwp.js} +3 -3
- package/dist/cli/{index-4mgggb8x.js → index-shqhq68n.js} +1 -1
- package/dist/cli/{index-3a2xznmd.js → index-st1zw5ps.js} +2 -2
- package/dist/cli/{index-3f1tr4ha.js → index-v5wanchr.js} +1 -1
- package/dist/cli/{index-bwvbj3fp.js → index-wd86yj53.js} +1 -1
- package/dist/cli/{index-w50dk71y.js → index-x8c42y8s.js} +21 -21
- package/dist/cli/{index-hfrb77tj.js → index-z62gdhkd.js} +3 -3
- package/dist/cli/index.js +19 -19
- package/dist/cli/{knowledge-escalator-stnveccq.js → knowledge-escalator-w4bfnks3.js} +6 -6
- package/dist/cli/{knowledge-events-ph6txm8h.js → knowledge-events-wmnx8m6b.js} +4 -4
- package/dist/cli/{knowledge-store-tgyhr9nf.js → knowledge-store-5442ph4m.js} +1 -1
- package/dist/cli/{knowledge-validator-2g547bcn.js → knowledge-validator-5rmardr4.js} +2 -2
- package/dist/cli/{pending-delegations-873dtyw6.js → pending-delegations-ea6zpqw2.js} +2 -2
- package/dist/cli/{pr-subscriptions-xmxdrj1z.js → pr-subscriptions-yqxt0avv.js} +1 -1
- package/dist/cli/{pr-workflow-gate-h7644byf.js → pr-workflow-gate-px36rczj.js} +19 -19
- package/dist/cli/{scan-cursor-tx72gxp0.js → scan-cursor-efrage98.js} +2 -2
- package/dist/cli/{schema-cpc92vq0.js → schema-w2sds948.js} +1 -1
- package/dist/cli/{scope-persistence-xy3xs55f.js → scope-persistence-dd7p3tdv.js} +5 -5
- package/dist/cli/{skill-generator-4f1v5zwx.js → skill-generator-c0720k51.js} +7 -7
- package/dist/cli/{snapshot-coordination-init-w2nw33pn.js → snapshot-coordination-init-dp42vvme.js} +19 -19
- package/dist/cli/{worktree-collision-ownership-1g1qz8wc.js → worktree-collision-ownership-emh2yhpx.js} +2 -2
- package/dist/cli/{worktree-isolation-jwxtrh3z.js → worktree-isolation-a8f1yahq.js} +19 -19
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -7,42 +7,42 @@ import {
|
|
|
7
7
|
isHiveEligible,
|
|
8
8
|
promoteFromSwarm,
|
|
9
9
|
promoteToHive
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-5qws47d4.js";
|
|
11
11
|
import"./index-d5qf7hvh.js";
|
|
12
12
|
import"./index-m3tx1q9v.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
13
|
+
import"./index-n189w64j.js";
|
|
14
|
+
import"./index-gccxen4x.js";
|
|
15
|
+
import"./index-kwervbv6.js";
|
|
16
16
|
import"./index-5bd84nxc.js";
|
|
17
17
|
import"./index-txdagbh7.js";
|
|
18
18
|
import"./index-cw912re7.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
19
|
+
import"./index-qv4byzwp.js";
|
|
20
|
+
import"./index-n65x6e1y.js";
|
|
21
|
+
import"./index-7g5kdtvw.js";
|
|
22
22
|
import"./index-70ha9e09.js";
|
|
23
23
|
import"./index-1aex5zd9.js";
|
|
24
24
|
import"./index-9ss2m4rs.js";
|
|
25
25
|
import"./index-3nm1b3t2.js";
|
|
26
26
|
import"./index-zsrtt42s.js";
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-z62gdhkd.js";
|
|
28
28
|
import"./index-251vrmge.js";
|
|
29
29
|
import"./index-9wv6a3jx.js";
|
|
30
30
|
import"./index-b43rt5ph.js";
|
|
31
31
|
import"./index-q7sjgr1y.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
32
|
+
import"./index-bxrxqwce.js";
|
|
33
|
+
import"./index-8ewgab6z.js";
|
|
34
|
+
import"./index-3ct7fd75.js";
|
|
35
|
+
import"./index-kz44j3qe.js";
|
|
36
36
|
import"./index-sahf5yz3.js";
|
|
37
37
|
import"./index-p612v1mv.js";
|
|
38
|
-
import"./index-
|
|
38
|
+
import"./index-wd86yj53.js";
|
|
39
39
|
import"./index-qww0h314.js";
|
|
40
40
|
import"./index-rtry5xyf.js";
|
|
41
|
-
import"./index-
|
|
41
|
+
import"./index-st1zw5ps.js";
|
|
42
42
|
import"./index-3qf1vxtb.js";
|
|
43
43
|
import"./index-n832052r.js";
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
44
|
+
import"./index-gr5wg0nj.js";
|
|
45
|
+
import"./index-v5wanchr.js";
|
|
46
46
|
import"./index-qd619x3r.js";
|
|
47
47
|
import"./index-75f9jj3h.js";
|
|
48
48
|
import"./index-6d4dc99f.js";
|
|
@@ -52,7 +52,7 @@ import"./index-n4fzmqz8.js";
|
|
|
52
52
|
import"./index-qd726agw.js";
|
|
53
53
|
import {
|
|
54
54
|
resolveHiveKnowledgePath
|
|
55
|
-
} from "./index-
|
|
55
|
+
} from "./index-3s194swm.js";
|
|
56
56
|
import"./index-vzm6zre7.js";
|
|
57
57
|
import"./index-ae75rja9.js";
|
|
58
58
|
import"./index-t8tw1bhs.js";
|
|
@@ -62,10 +62,10 @@ import"./index-f6zgz02s.js";
|
|
|
62
62
|
import"./index-7qefgq4j.js";
|
|
63
63
|
import"./index-ee6ydtfe.js";
|
|
64
64
|
import"./index-7g4c7s5r.js";
|
|
65
|
-
import"./index-
|
|
65
|
+
import"./index-9eswrdp5.js";
|
|
66
66
|
import"./index-9e6fdz2h.js";
|
|
67
67
|
import"./index-4rhhvd1a.js";
|
|
68
|
-
import"./index-
|
|
68
|
+
import"./index-shqhq68n.js";
|
|
69
69
|
import"./index-0tc0pcmh.js";
|
|
70
70
|
import"./index-bk5tah7q.js";
|
|
71
71
|
import"./index-bpmtbmy9.js";
|
|
@@ -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-yynntj5j.js");
|
|
4528
4528
|
let transferred = 0;
|
|
4529
4529
|
for (const record of candidates) {
|
|
4530
4530
|
try {
|
|
@@ -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-wmnx8m6b.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-5rmardr4.js");
|
|
810
|
+
const { KnowledgeConfigSchema } = await import("./schema-w2sds948.js");
|
|
811
811
|
let config;
|
|
812
812
|
try {
|
|
813
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
813
|
+
const { loadPluginConfigWithMeta } = await import("./index-gsftf6c8.js");
|
|
814
814
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
815
815
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
816
816
|
} catch {
|
|
@@ -25,13 +25,13 @@ import {
|
|
|
25
25
|
protectedRoots,
|
|
26
26
|
redactDecisionLineForArchive,
|
|
27
27
|
stableCanonicalStringify
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-n189w64j.js";
|
|
29
29
|
import {
|
|
30
30
|
detectStraySwarmDirs,
|
|
31
31
|
readDoctorArtifact,
|
|
32
32
|
removeStraySwarmDir,
|
|
33
33
|
runConfigDoctor
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-gccxen4x.js";
|
|
35
35
|
import {
|
|
36
36
|
MAX_TRANSIENT_RETRIES,
|
|
37
37
|
archiveEvidence,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
updateTaskCheckpointReceipt,
|
|
73
73
|
updateTaskStatus,
|
|
74
74
|
validateProjectRoot
|
|
75
|
-
} from "./index-
|
|
75
|
+
} from "./index-kwervbv6.js";
|
|
76
76
|
import {
|
|
77
77
|
EvaluationTaskV1Schema,
|
|
78
78
|
GateAuditManifestV1Schema,
|
|
@@ -128,15 +128,15 @@ import {
|
|
|
128
128
|
retireSkill,
|
|
129
129
|
selectCandidateEntries,
|
|
130
130
|
syncBundledProjectSkillsIfMissingAsync
|
|
131
|
-
} from "./index-
|
|
131
|
+
} from "./index-qv4byzwp.js";
|
|
132
132
|
import {
|
|
133
133
|
readRecentEscalations
|
|
134
|
-
} from "./index-
|
|
134
|
+
} from "./index-n65x6e1y.js";
|
|
135
135
|
import {
|
|
136
136
|
alreadyCuratedThisGeneration,
|
|
137
137
|
claimNextScanBatch,
|
|
138
138
|
resolveCohortId
|
|
139
|
-
} from "./index-
|
|
139
|
+
} from "./index-7g5kdtvw.js";
|
|
140
140
|
import {
|
|
141
141
|
CURATOR_INIT_PROMPT,
|
|
142
142
|
CURATOR_PHASE_PROMPT,
|
|
@@ -179,7 +179,7 @@ import {
|
|
|
179
179
|
listCoderSettlementWalStates,
|
|
180
180
|
recoverCoderSettlement,
|
|
181
181
|
recoverStaleCoderSettlements
|
|
182
|
-
} from "./index-
|
|
182
|
+
} from "./index-z62gdhkd.js";
|
|
183
183
|
import {
|
|
184
184
|
parsePorcelainV2Snapshot,
|
|
185
185
|
resolveCommitCountSince,
|
|
@@ -248,13 +248,13 @@ import {
|
|
|
248
248
|
transitionTaskWorkflowEvidence,
|
|
249
249
|
withTaskEvidenceTransaction,
|
|
250
250
|
writeWorkflowWalFile
|
|
251
|
-
} from "./index-
|
|
251
|
+
} from "./index-bxrxqwce.js";
|
|
252
252
|
import {
|
|
253
253
|
isPathUnderSwarmWorktreeBase,
|
|
254
254
|
makeWorktreeBranchName,
|
|
255
255
|
provisionWorktree,
|
|
256
256
|
removeWorktree
|
|
257
|
-
} from "./index-
|
|
257
|
+
} from "./index-8ewgab6z.js";
|
|
258
258
|
import {
|
|
259
259
|
DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
|
|
260
260
|
DELEGATION_COMPACTION_HIGH_WATER_BYTES,
|
|
@@ -288,7 +288,7 @@ import {
|
|
|
288
288
|
scanBackgroundCoderReservationsForAdmission,
|
|
289
289
|
scanDelegationsForRecovery,
|
|
290
290
|
sweepStaleDelegations
|
|
291
|
-
} from "./index-
|
|
291
|
+
} from "./index-3ct7fd75.js";
|
|
292
292
|
import {
|
|
293
293
|
MAX_EVENT_LOG_ENTRIES,
|
|
294
294
|
_internals,
|
|
@@ -304,7 +304,7 @@ import {
|
|
|
304
304
|
recordKnowledgeEvent,
|
|
305
305
|
recordPhaseCloseIntent,
|
|
306
306
|
resolveKnowledgeEventsPath
|
|
307
|
-
} from "./index-
|
|
307
|
+
} from "./index-kz44j3qe.js";
|
|
308
308
|
import {
|
|
309
309
|
estimateTokens,
|
|
310
310
|
readSwarmFileAsync,
|
|
@@ -330,7 +330,7 @@ import {
|
|
|
330
330
|
validateActionableFields,
|
|
331
331
|
validateLesson,
|
|
332
332
|
validateSkillPath
|
|
333
|
-
} from "./index-
|
|
333
|
+
} from "./index-wd86yj53.js";
|
|
334
334
|
import {
|
|
335
335
|
MAX_CURATION_PROPOSALS,
|
|
336
336
|
authorizeCuration,
|
|
@@ -341,7 +341,7 @@ import {
|
|
|
341
341
|
} from "./index-rtry5xyf.js";
|
|
342
342
|
import {
|
|
343
343
|
resolveWorktreeIsolationConfig
|
|
344
|
-
} from "./index-
|
|
344
|
+
} from "./index-st1zw5ps.js";
|
|
345
345
|
import {
|
|
346
346
|
RetrospectiveEvidenceSchema
|
|
347
347
|
} from "./index-3qf1vxtb.js";
|
|
@@ -351,7 +351,7 @@ import {
|
|
|
351
351
|
clearAllScopes,
|
|
352
352
|
clearScopeBindingFromDisk,
|
|
353
353
|
clearScopeBindings
|
|
354
|
-
} from "./index-
|
|
354
|
+
} from "./index-gr5wg0nj.js";
|
|
355
355
|
import {
|
|
356
356
|
appendLedgerEvent,
|
|
357
357
|
computePlanLedgerHash,
|
|
@@ -364,7 +364,7 @@ import {
|
|
|
364
364
|
readPlanEpochIdentity,
|
|
365
365
|
replayFromLedgerWithStatus,
|
|
366
366
|
takeSnapshotEvent
|
|
367
|
-
} from "./index-
|
|
367
|
+
} from "./index-v5wanchr.js";
|
|
368
368
|
import {
|
|
369
369
|
CORE_EVENT_LOCKED,
|
|
370
370
|
appendCoreEventSync,
|
|
@@ -447,7 +447,7 @@ import {
|
|
|
447
447
|
transactFile,
|
|
448
448
|
transactKnowledge,
|
|
449
449
|
wordBigrams
|
|
450
|
-
} from "./index-
|
|
450
|
+
} from "./index-3s194swm.js";
|
|
451
451
|
import {
|
|
452
452
|
readTailJsonl,
|
|
453
453
|
readTailJsonlDetailed,
|
|
@@ -510,7 +510,7 @@ import {
|
|
|
510
510
|
loadGateOverrides,
|
|
511
511
|
loadPluginConfig,
|
|
512
512
|
loadPluginConfigWithMeta
|
|
513
|
-
} from "./index-
|
|
513
|
+
} from "./index-9eswrdp5.js";
|
|
514
514
|
import {
|
|
515
515
|
init_git_executable,
|
|
516
516
|
resolveGitExecutable,
|
|
@@ -537,7 +537,7 @@ import {
|
|
|
537
537
|
resolveAutoReviewConfig,
|
|
538
538
|
resolveGeneratedAgentRole,
|
|
539
539
|
stripKnownSwarmPrefix
|
|
540
|
-
} from "./index-
|
|
540
|
+
} from "./index-shqhq68n.js";
|
|
541
541
|
import {
|
|
542
542
|
AGENT_TOOL_MAP,
|
|
543
543
|
ALL_AGENT_NAMES,
|
|
@@ -9488,7 +9488,7 @@ async function importLegacyPrWorkflowGateStateIfNeeded(directory, sessionID, all
|
|
|
9488
9488
|
return null;
|
|
9489
9489
|
throw error2;
|
|
9490
9490
|
}
|
|
9491
|
-
const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-
|
|
9491
|
+
const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-px36rczj.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
|
|
9492
9492
|
if (!legacy)
|
|
9493
9493
|
return null;
|
|
9494
9494
|
const namespace = workflowGateStateCoordinationNamespace(sessionID);
|
|
@@ -9558,7 +9558,7 @@ async function deleteStateWhileLocked(directory, sessionID, options = {}) {
|
|
|
9558
9558
|
let recoveryState = null;
|
|
9559
9559
|
if (!currentAuthoritative) {
|
|
9560
9560
|
if (options.allowSalvagedRead) {
|
|
9561
|
-
const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-
|
|
9561
|
+
const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-px36rczj.js");
|
|
9562
9562
|
recoveryState = (await readPrWorkflowGateStateForRecovery(directory, normalizedSessionID))?.state ?? null;
|
|
9563
9563
|
}
|
|
9564
9564
|
if (!recoveryState) {
|
|
@@ -26291,7 +26291,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
26291
26291
|
};
|
|
26292
26292
|
}
|
|
26293
26293
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
26294
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
26294
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-gsftf6c8.js");
|
|
26295
26295
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
26296
26296
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
26297
26297
|
if (sweepConfig?.enabled === false)
|
|
@@ -27415,7 +27415,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
27415
27415
|
}
|
|
27416
27416
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
27417
27417
|
try {
|
|
27418
|
-
const skillModule = await import("./skill-generator-
|
|
27418
|
+
const skillModule = await import("./skill-generator-c0720k51.js");
|
|
27419
27419
|
for (const cand of skillCandidates) {
|
|
27420
27420
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
27421
27421
|
continue;
|
|
@@ -27887,7 +27887,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
27887
27887
|
} catch {}
|
|
27888
27888
|
}
|
|
27889
27889
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
27890
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
27890
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-w4bfnks3.js");
|
|
27891
27891
|
for (const { id } of contradictedEntries) {
|
|
27892
27892
|
try {
|
|
27893
27893
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -28719,7 +28719,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
28719
28719
|
warnings.push("Failed to collect knowledge summary.");
|
|
28720
28720
|
}
|
|
28721
28721
|
try {
|
|
28722
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
28722
|
+
const { getScanStatus } = await import("./scan-cursor-efrage98.js");
|
|
28723
28723
|
const scanStatus = await getScanStatus(directory);
|
|
28724
28724
|
if (scanStatus.remaining_estimate > 0) {
|
|
28725
28725
|
warnings.push(`Fair scan: reviewed ${knowledgeSummary.length} entries this sweep (generation ${scanStatus.generation}); ${scanStatus.remaining_estimate} more eligible entries will be visited in future curation sweeps.`);
|
|
@@ -28891,9 +28891,9 @@ var _internals27 = {
|
|
|
28891
28891
|
verifyPostMortemKnowledgeActions,
|
|
28892
28892
|
repairPostMortemActions,
|
|
28893
28893
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
28894
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
28894
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-w2sds948.js");
|
|
28895
28895
|
try {
|
|
28896
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
28896
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-gsftf6c8.js");
|
|
28897
28897
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
28898
28898
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
28899
28899
|
} catch {
|
|
@@ -28901,11 +28901,11 @@ var _internals27 = {
|
|
|
28901
28901
|
}
|
|
28902
28902
|
},
|
|
28903
28903
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
28904
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
28904
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-qk4xmkv4.js");
|
|
28905
28905
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
28906
28906
|
},
|
|
28907
28907
|
checkHivePromotions: async (entries, knowledgeConfig, directory) => {
|
|
28908
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
28908
|
+
const { checkHivePromotions } = await import("./hive-promoter-9zzr28p2.js");
|
|
28909
28909
|
return checkHivePromotions(entries, knowledgeConfig, directory);
|
|
28910
28910
|
},
|
|
28911
28911
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -28914,7 +28914,7 @@ var _internals27 = {
|
|
|
28914
28914
|
activateProposal,
|
|
28915
28915
|
listSkills: listSkills2,
|
|
28916
28916
|
sanitizeSlug
|
|
28917
|
-
} = await import("./skill-generator-
|
|
28917
|
+
} = await import("./skill-generator-c0720k51.js");
|
|
28918
28918
|
const result = {
|
|
28919
28919
|
approved: [],
|
|
28920
28920
|
rejected: [],
|
|
@@ -30322,9 +30322,9 @@ function hashContent(content) {
|
|
|
30322
30322
|
return createHash18("sha1").update(content).digest("hex");
|
|
30323
30323
|
}
|
|
30324
30324
|
async function loadConfigForPolicyCurator(directory) {
|
|
30325
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
30325
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-w2sds948.js");
|
|
30326
30326
|
try {
|
|
30327
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
30327
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-gsftf6c8.js");
|
|
30328
30328
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
30329
30329
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
30330
30330
|
} catch {
|
|
@@ -31807,7 +31807,7 @@ function serializeAgentSession(s) {
|
|
|
31807
31807
|
}
|
|
31808
31808
|
async function writeSnapshot(directory, state) {
|
|
31809
31809
|
try {
|
|
31810
|
-
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-
|
|
31810
|
+
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-dp42vvme.js");
|
|
31811
31811
|
await ensureSnapshotCoordinationReady(directory);
|
|
31812
31812
|
const snapshot = {
|
|
31813
31813
|
version: 3,
|
|
@@ -45316,7 +45316,7 @@ async function runFinalizeStage(ctx) {
|
|
|
45316
45316
|
}
|
|
45317
45317
|
}
|
|
45318
45318
|
try {
|
|
45319
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
45319
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-w2sds948.js");
|
|
45320
45320
|
const { config: pmLoadedConfig } = _internals44.loadPluginConfigWithMeta(ctx.directory);
|
|
45321
45321
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
45322
45322
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -47604,9 +47604,9 @@ var _internals48 = {
|
|
|
47604
47604
|
loadPluginConfigWithMeta,
|
|
47605
47605
|
loadCuratorDeps: async () => {
|
|
47606
47606
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
|
|
47607
|
-
import("./schema-
|
|
47608
|
-
import("./curator-
|
|
47609
|
-
import("./curator-llm-factory-
|
|
47607
|
+
import("./schema-w2sds948.js"),
|
|
47608
|
+
import("./curator-qk4xmkv4.js"),
|
|
47609
|
+
import("./curator-llm-factory-rs4921ks.js")
|
|
47610
47610
|
]);
|
|
47611
47611
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
|
|
47612
47612
|
}
|
|
@@ -48657,7 +48657,7 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
48657
48657
|
let scanCompleted = false;
|
|
48658
48658
|
let scanRemaining = 0;
|
|
48659
48659
|
try {
|
|
48660
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
48660
|
+
const { getScanStatus } = await import("./scan-cursor-efrage98.js");
|
|
48661
48661
|
const status = await getScanStatus(directory);
|
|
48662
48662
|
scanGeneration = status.generation;
|
|
48663
48663
|
scanCompleted = status.completed;
|
|
@@ -48667,10 +48667,10 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
48667
48667
|
try {
|
|
48668
48668
|
const { isLinked: isLinked2 } = await import("./knowledge-link-w1fwqts4.js");
|
|
48669
48669
|
if (isLinked2(directory)) {
|
|
48670
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
48670
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-w2sds948.js");
|
|
48671
48671
|
let config;
|
|
48672
48672
|
try {
|
|
48673
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
48673
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-gsftf6c8.js");
|
|
48674
48674
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
48675
48675
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
48676
48676
|
} catch {
|
|
@@ -50068,7 +50068,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
50068
50068
|
const result = runConfigDoctor(config, directory);
|
|
50069
50069
|
let output;
|
|
50070
50070
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
50071
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
50071
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-8asc35km.js");
|
|
50072
50072
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
50073
50073
|
applyLossy: true
|
|
50074
50074
|
});
|
|
@@ -51022,7 +51022,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
51022
51022
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
51023
51023
|
}
|
|
51024
51024
|
async function handleEvidenceSummaryCommand(directory) {
|
|
51025
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
51025
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-rktcp3s4.js");
|
|
51026
51026
|
const artifact = await buildEvidenceSummary(directory);
|
|
51027
51027
|
if (!artifact) {
|
|
51028
51028
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -89583,7 +89583,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
89583
89583
|
async function handleHelpCommand(ctx) {
|
|
89584
89584
|
const targetCommand = ctx.args.join(" ");
|
|
89585
89585
|
if (!targetCommand) {
|
|
89586
|
-
const { buildHelpText } = await import("./index-
|
|
89586
|
+
const { buildHelpText } = await import("./index-x8c42y8s.js");
|
|
89587
89587
|
return buildHelpText();
|
|
89588
89588
|
}
|
|
89589
89589
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -89597,7 +89597,7 @@ async function handleHelpCommand(ctx) {
|
|
|
89597
89597
|
> Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
|
|
89598
89598
|
}
|
|
89599
89599
|
const similar = _internals105.findSimilarCommands(targetCommand);
|
|
89600
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
89600
|
+
const { buildHelpText: fullHelp } = await import("./index-x8c42y8s.js");
|
|
89601
89601
|
if (similar.length > 0) {
|
|
89602
89602
|
return `Command '/swarm ${targetCommand}' not found.
|
|
89603
89603
|
|
|
@@ -89902,7 +89902,7 @@ var COMMAND_REGISTRY = {
|
|
|
89902
89902
|
},
|
|
89903
89903
|
"guardrail explain": {
|
|
89904
89904
|
handler: async (ctx) => {
|
|
89905
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
89905
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-jdspxzjr.js");
|
|
89906
89906
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
89907
89907
|
},
|
|
89908
89908
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -89912,7 +89912,7 @@ var COMMAND_REGISTRY = {
|
|
|
89912
89912
|
},
|
|
89913
89913
|
"guardrail reset": {
|
|
89914
89914
|
handler: async (ctx) => {
|
|
89915
|
-
const { handleGuardrailReset } = await import("./guardrail-reset-
|
|
89915
|
+
const { handleGuardrailReset } = await import("./guardrail-reset-dv02t0bm.js");
|
|
89916
89916
|
return handleGuardrailReset(ctx.args, ctx.sessionID);
|
|
89917
89917
|
},
|
|
89918
89918
|
description: "Reset one exact active invocation/action circuit after repair",
|
|
@@ -89933,7 +89933,7 @@ var COMMAND_REGISTRY = {
|
|
|
89933
89933
|
},
|
|
89934
89934
|
"guardrail-log": {
|
|
89935
89935
|
handler: async (ctx) => {
|
|
89936
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
89936
|
+
const { handleGuardrailLog } = await import("./guardrail-log-962pzjev.js");
|
|
89937
89937
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
89938
89938
|
},
|
|
89939
89939
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -95979,7 +95979,7 @@ function getDisplayFinalPromptPressure() {
|
|
|
95979
95979
|
async function rehydratePrSubscriptions(sessionID, directory) {
|
|
95980
95980
|
const map = new Map;
|
|
95981
95981
|
try {
|
|
95982
|
-
const { listActive: listActive2 } = await import("./pr-subscriptions-
|
|
95982
|
+
const { listActive: listActive2 } = await import("./pr-subscriptions-yqxt0avv.js");
|
|
95983
95983
|
const records = await listActive2(directory);
|
|
95984
95984
|
for (const record of records) {
|
|
95985
95985
|
if (record.sessionID !== sessionID)
|
|
@@ -96425,7 +96425,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
|
|
|
96425
96425
|
return extracted === expectedSessionId;
|
|
96426
96426
|
}
|
|
96427
96427
|
async function inspectStandardWorktreeCollisionOwnership(identity) {
|
|
96428
|
-
const collisionOwnership = await import("./worktree-collision-ownership-
|
|
96428
|
+
const collisionOwnership = await import("./worktree-collision-ownership-emh2yhpx.js");
|
|
96429
96429
|
return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
|
|
96430
96430
|
}
|
|
96431
96431
|
async function runRecoveryGit(directory, args, timeoutMs = 15000) {
|
|
@@ -96838,7 +96838,7 @@ async function precreateStandardWorktreeSession(args) {
|
|
|
96838
96838
|
const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
|
|
96839
96839
|
if (laneProfile) {
|
|
96840
96840
|
try {
|
|
96841
|
-
const { writeLaneProfileToDiskReal } = await import("./core-
|
|
96841
|
+
const { writeLaneProfileToDiskReal } = await import("./core-qrbhs2q4.js");
|
|
96842
96842
|
await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
|
|
96843
96843
|
} catch {}
|
|
96844
96844
|
}
|
|
@@ -97772,7 +97772,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
|
|
|
97772
97772
|
}
|
|
97773
97773
|
clearWorktreeMergeStatus(statusKey);
|
|
97774
97774
|
try {
|
|
97775
|
-
const { removeLaneProfileFromDiskReal } = await import("./core-
|
|
97775
|
+
const { removeLaneProfileFromDiskReal } = await import("./core-qrbhs2q4.js");
|
|
97776
97776
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
97777
97777
|
} catch {}
|
|
97778
97778
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -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-dd7p3tdv.js");
|
|
96
96
|
return realWrite(directory, taskId, files);
|
|
97
97
|
},
|
|
98
98
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
computePlanStructureHash
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-v5wanchr.js";
|
|
5
5
|
import {
|
|
6
6
|
appendCoreEventSync
|
|
7
7
|
} from "./index-qd619x3r.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "./index-7g4c7s5r.js";
|
|
34
34
|
import {
|
|
35
35
|
PlanSchema
|
|
36
|
-
} from "./index-
|
|
36
|
+
} from "./index-9eswrdp5.js";
|
|
37
37
|
import {
|
|
38
38
|
init_path_identity,
|
|
39
39
|
unsafePathTextReason
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
_internals,
|
|
4
4
|
resolveWorktreeIsolationConfig
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-st1zw5ps.js";
|
|
6
6
|
import {
|
|
7
7
|
ApprovalEvidenceSchema,
|
|
8
8
|
BaseEvidenceSchema,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
loadPluginConfigWithMeta,
|
|
45
45
|
loadPluginConfigWithMetaAsync,
|
|
46
46
|
resetConfigAdvisoryDedup
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-9eswrdp5.js";
|
|
48
48
|
import"./index-9e6fdz2h.js";
|
|
49
49
|
import"./index-4rhhvd1a.js";
|
|
50
50
|
import {
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
TurboConfigSchema,
|
|
71
71
|
WorktreeIsolationConfigSchema,
|
|
72
72
|
resolveAutoReviewConfig
|
|
73
|
-
} from "./index-
|
|
73
|
+
} from "./index-shqhq68n.js";
|
|
74
74
|
import {
|
|
75
75
|
ALL_AGENT_NAMES,
|
|
76
76
|
ALL_SUBAGENT_NAMES,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
readTaskEvidence,
|
|
24
24
|
readTaskEvidenceRaw,
|
|
25
25
|
sanitizeTaskId
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-bxrxqwce.js";
|
|
27
27
|
import {
|
|
28
28
|
estimateCharsForTokens,
|
|
29
29
|
estimateTokens,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
replayFromLedgerWithStatus,
|
|
58
58
|
takeSnapshotEvent,
|
|
59
59
|
takeSnapshotWithRetry
|
|
60
|
-
} from "./index-
|
|
60
|
+
} from "./index-v5wanchr.js";
|
|
61
61
|
import {
|
|
62
62
|
appendCoreEventSync
|
|
63
63
|
} from "./index-qd619x3r.js";
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
} from "./index-7qefgq4j.js";
|
|
94
94
|
import {
|
|
95
95
|
PlanSchema
|
|
96
|
-
} from "./index-
|
|
96
|
+
} from "./index-9eswrdp5.js";
|
|
97
97
|
import {
|
|
98
98
|
GIT_BINARY_ENV_VAR,
|
|
99
99
|
describeGitResolution,
|
|
@@ -26,11 +26,11 @@ import {
|
|
|
26
26
|
} from "./index-7g4c7s5r.js";
|
|
27
27
|
import {
|
|
28
28
|
loadPluginConfigWithMeta
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-9eswrdp5.js";
|
|
30
30
|
import {
|
|
31
31
|
KnowledgeConfigSchema,
|
|
32
32
|
init_schema
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-shqhq68n.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-5442ph4m.js");
|
|
2817
2817
|
bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
2818
2818
|
}
|
|
2819
2819
|
return {
|