opencode-swarm 7.187.1 → 7.187.2
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/cli/{auto-checkpoint-fcp7srhd.js → auto-checkpoint-2xmptd5t.js} +4 -4
- package/dist/cli/{checkpoint-69m1xg5q.js → checkpoint-2y7z19y5.js} +8 -8
- package/dist/cli/{coder-settlement-adx7vsa9.js → coder-settlement-s4d28fa6.js} +3 -3
- package/dist/cli/{config-doctor-eaqk3erw.js → config-doctor-312afzhr.js} +7 -7
- package/dist/cli/{core-fb33hf6w.js → core-2bywxc4w.js} +1 -1
- package/dist/cli/{curator-drift-kz0s2dk3.js → curator-drift-xx8pp4g9.js} +5 -5
- package/dist/cli/{curator-5xcy10z7.js → curator-dvhf6jex.js} +25 -25
- package/dist/cli/{curator-llm-factory-pc17p6kq.js → curator-llm-factory-4g2nvr76.js} +25 -25
- package/dist/cli/{doctor-knowledge-receipt-phase-id-dwtppe04.js → doctor-knowledge-receipt-phase-id-m239pgbz.js} +4 -4
- package/dist/cli/{evidence-summary-service-1k2syb6b.js → evidence-summary-service-9et04fjh.js} +9 -9
- package/dist/cli/{gate-evidence-4vvj9bhj.js → gate-evidence-73vj3bgm.js} +2 -2
- package/dist/cli/{guardrail-explain-rxsda43z.js → guardrail-explain-8n4fx9zv.js} +26 -26
- package/dist/cli/{guardrail-log-1619tcny.js → guardrail-log-9gmfvnd7.js} +3 -3
- package/dist/cli/{guardrail-reset-72zryht1.js → guardrail-reset-k3mrq25e.js} +25 -25
- package/dist/cli/{hive-promoter-yc3xvvq8.js → hive-promoter-bp3rz0q6.js} +25 -25
- package/dist/cli/{index-my8wgyqg.js → index-310h5192.js} +1 -1
- package/dist/cli/{index-2jxyzerw.js → index-33345434.js} +3 -3
- package/dist/cli/{index-thx02zpn.js → index-3ckfawjf.js} +3 -3
- package/dist/cli/{index-wy6wzwb3.js → index-3g3n9fjq.js} +1 -1
- package/dist/cli/{index-hjdeawyp.js → index-4g39nne8.js} +1 -1
- package/dist/cli/{index-qmmzyymt.js → index-7fxy1s86.js} +2 -2
- package/dist/cli/{index-t0xcsrsf.js → index-85cx1mmb.js} +3 -3
- package/dist/cli/{index-4pbp654j.js → index-9jafghwk.js} +25 -25
- package/dist/cli/{index-prqjveey.js → index-b308erem.js} +1 -1
- package/dist/cli/{index-zftyb94k.js → index-b5tthmy2.js} +1 -1
- package/dist/cli/{index-v51qveq8.js → index-dqberkr3.js} +3 -3
- package/dist/cli/{index-r7d49haj.js → index-efbhea00.js} +1 -1
- package/dist/cli/{index-868tmqy5.js → index-exj7czz9.js} +1 -1
- package/dist/cli/{index-m2xfxk4e.js → index-f6pft90q.js} +1 -1
- package/dist/cli/{index-kaf9mtpc.js → index-j5db3v56.js} +2 -2
- package/dist/cli/{index-z4c6bfd5.js → index-jh9nrshe.js} +1 -1
- package/dist/cli/{index-f1dxxa1n.js → index-kc635w60.js} +2 -2
- package/dist/cli/{index-p9xke6h7.js → index-m1vsqmyr.js} +1 -1
- package/dist/cli/{index-36y60mjx.js → index-pqffq9mm.js} +2 -2
- package/dist/cli/{index-1hg62y01.js → index-rtdxyjrg.js} +6 -6
- package/dist/cli/{index-319qcbg7.js → index-tkm2rj27.js} +1 -1
- package/dist/cli/{index-gathbynn.js → index-tmp07h7b.js} +27 -27
- package/dist/cli/{index-rcmgbtxf.js → index-tngc1erw.js} +2 -2
- package/dist/cli/{index-0cpa8rnc.js → index-tq6sbcys.js} +61 -61
- package/dist/cli/{index-r37b4crx.js → index-w0bvez8c.js} +1 -1
- package/dist/cli/{index-fgbm0x7d.js → index-wpxy7099.js} +1 -1
- package/dist/cli/{index-tv84mkce.js → index-xs070yr9.js} +2 -2
- package/dist/cli/{index-c44vm8tc.js → index-xv0t2sed.js} +1 -1
- package/dist/cli/{index-ywwreanf.js → index-y81jjedn.js} +4 -4
- package/dist/cli/{index-rs23yv3h.js → index-z04d01pv.js} +5 -5
- package/dist/cli/index.js +26 -26
- package/dist/cli/{knowledge-escalator-q60ghp3z.js → knowledge-escalator-fnqctvxz.js} +7 -7
- package/dist/cli/{knowledge-events-hadasxqm.js → knowledge-events-mr1vh3nb.js} +5 -5
- package/dist/cli/{knowledge-store-y7vvwa7p.js → knowledge-store-dxy4s9k6.js} +1 -1
- package/dist/cli/{knowledge-validator-3tqat3wm.js → knowledge-validator-gy39attk.js} +2 -2
- package/dist/cli/{mcp-ek3wf04s.js → mcp-bxb59wsq.js} +1 -1
- package/dist/cli/{model-preflight-gzcmdvs7.js → model-preflight-2kje0sp0.js} +25 -25
- package/dist/cli/{pending-delegations-54k1mysp.js → pending-delegations-fm2nx2k0.js} +2 -2
- package/dist/cli/{pr-subscriptions-sx9ch5ra.js → pr-subscriptions-g4f9rehb.js} +1 -1
- package/dist/cli/{pr-workflow-gate-yehzpb9x.js → pr-workflow-gate-qtq1wq95.js} +25 -25
- package/dist/cli/{scan-cursor-0ws87fe6.js → scan-cursor-8taj944f.js} +2 -2
- package/dist/cli/{schema-hns0x91t.js → schema-yxq3bjmd.js} +1 -1
- package/dist/cli/{scope-persistence-ct6etvdy.js → scope-persistence-jppvjncr.js} +5 -5
- package/dist/cli/{server-hh4vy28k.js → server-2s7wqg9e.js} +25 -25
- package/dist/cli/{skill-generator-9fy1nmhb.js → skill-generator-pyf95aqw.js} +8 -8
- package/dist/cli/{snapshot-coordination-init-xjdy80bq.js → snapshot-coordination-init-8gbxw9sa.js} +25 -25
- package/dist/cli/{speckit-checkoff-06104jte.js → speckit-checkoff-x2z0jamv.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-3jefgmkc.js → worktree-collision-ownership-455bdcnk.js} +2 -2
- package/dist/cli/{worktree-isolation-76wbgtpk.js → worktree-isolation-8x4p7tvm.js} +25 -25
- package/dist/index.js +426 -426
- package/dist/state.d.ts +26 -3
- package/dist/utils/path.d.ts +23 -0
- package/package.json +1 -1
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
protectedRoots,
|
|
9
9
|
redactDecisionLineForArchive,
|
|
10
10
|
stableCanonicalStringify
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-3g3n9fjq.js";
|
|
12
12
|
import {
|
|
13
13
|
detectStraySwarmDirs,
|
|
14
14
|
readDoctorArtifact,
|
|
15
15
|
removeStraySwarmDir,
|
|
16
16
|
resolvePlanParallelizationFlag,
|
|
17
17
|
runConfigDoctor
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-pqffq9mm.js";
|
|
19
19
|
import {
|
|
20
20
|
archiveEvidence,
|
|
21
21
|
checkRequirementCoverage,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
sanitizeTaskId,
|
|
28
28
|
saveEvidence,
|
|
29
29
|
validateProjectRoot
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-f6pft90q.js";
|
|
31
31
|
import {
|
|
32
32
|
JAVA_SYMBOL_GRAMMAR,
|
|
33
33
|
LANGUAGE_REGISTRY,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
alreadyCuratedThisGeneration,
|
|
82
82
|
claimNextScanBatch,
|
|
83
83
|
resolveCohortId
|
|
84
|
-
} from "./index-
|
|
84
|
+
} from "./index-4g39nne8.js";
|
|
85
85
|
import {
|
|
86
86
|
CURATOR_CONSOLIDATION_PROMPT,
|
|
87
87
|
CURATOR_INIT_PROMPT,
|
|
@@ -100,13 +100,13 @@ import {
|
|
|
100
100
|
getGroupCommitWriter,
|
|
101
101
|
importLegacyJsonl,
|
|
102
102
|
readPriorDriftReports
|
|
103
|
-
} from "./index-
|
|
103
|
+
} from "./index-tkm2rj27.js";
|
|
104
104
|
import {
|
|
105
105
|
assertNoUnsettledCoderDispatch,
|
|
106
106
|
listCoderSettlementWalStates,
|
|
107
107
|
recoverCoderSettlement,
|
|
108
108
|
recoverStaleCoderSettlements
|
|
109
|
-
} from "./index-
|
|
109
|
+
} from "./index-85cx1mmb.js";
|
|
110
110
|
import {
|
|
111
111
|
BUNDLED_PROJECT_SKILL_ROOT,
|
|
112
112
|
DEFAULT_SKILL_MIN_CONFIDENCE,
|
|
@@ -127,11 +127,11 @@ import {
|
|
|
127
127
|
retireSkill,
|
|
128
128
|
selectCandidateEntries,
|
|
129
129
|
syncBundledProjectSkillsIfMissingAsync
|
|
130
|
-
} from "./index-
|
|
130
|
+
} from "./index-3ckfawjf.js";
|
|
131
131
|
import {
|
|
132
132
|
buildEscalationBriefing,
|
|
133
133
|
readRecentEscalations
|
|
134
|
-
} from "./index-
|
|
134
|
+
} from "./index-rtdxyjrg.js";
|
|
135
135
|
import {
|
|
136
136
|
parsePorcelainV2Snapshot,
|
|
137
137
|
resolveCommitCountSince,
|
|
@@ -208,7 +208,7 @@ import {
|
|
|
208
208
|
resolveWorkingDirectory,
|
|
209
209
|
swarmOverwriteCandidates,
|
|
210
210
|
trackedDirtyCandidates
|
|
211
|
-
} from "./index-
|
|
211
|
+
} from "./index-dqberkr3.js";
|
|
212
212
|
import {
|
|
213
213
|
MAX_TRANSIENT_RETRIES,
|
|
214
214
|
PlanRecoverySupersededError,
|
|
@@ -235,7 +235,7 @@ import {
|
|
|
235
235
|
transientBackoff,
|
|
236
236
|
updateTaskStatus,
|
|
237
237
|
withPlanLifecycleLock
|
|
238
|
-
} from "./index-
|
|
238
|
+
} from "./index-z04d01pv.js";
|
|
239
239
|
import {
|
|
240
240
|
containsControlChars,
|
|
241
241
|
containsPathTraversal,
|
|
@@ -251,7 +251,7 @@ import {
|
|
|
251
251
|
resolveSpeckitProjection,
|
|
252
252
|
validateSpeckit,
|
|
253
253
|
writeProjectedSpecSync
|
|
254
|
-
} from "./index-
|
|
254
|
+
} from "./index-efbhea00.js";
|
|
255
255
|
import {
|
|
256
256
|
clearWorktreeMergeStatus,
|
|
257
257
|
getAllWorktreeMergeFailures,
|
|
@@ -282,7 +282,7 @@ import {
|
|
|
282
282
|
transitionTaskWorkflowEvidenceWithStatus,
|
|
283
283
|
withTaskEvidenceTransaction,
|
|
284
284
|
writeWorkflowWalFile
|
|
285
|
-
} from "./index-
|
|
285
|
+
} from "./index-b308erem.js";
|
|
286
286
|
import {
|
|
287
287
|
isPathUnderSwarmWorktreeBase,
|
|
288
288
|
listLiveLaneOwners,
|
|
@@ -291,7 +291,7 @@ import {
|
|
|
291
291
|
recordLiveLaneOwner,
|
|
292
292
|
removeWorktree,
|
|
293
293
|
resolveWorktreeBaseDir
|
|
294
|
-
} from "./index-
|
|
294
|
+
} from "./index-jh9nrshe.js";
|
|
295
295
|
import {
|
|
296
296
|
DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
|
|
297
297
|
DELEGATION_COMPACTION_HIGH_WATER_BYTES,
|
|
@@ -325,7 +325,7 @@ import {
|
|
|
325
325
|
scanBackgroundCoderReservationsForAdmission,
|
|
326
326
|
scanDelegationsForRecovery,
|
|
327
327
|
sweepStaleDelegations
|
|
328
|
-
} from "./index-
|
|
328
|
+
} from "./index-exj7czz9.js";
|
|
329
329
|
import {
|
|
330
330
|
MAX_EVENT_LOG_ENTRIES,
|
|
331
331
|
_internals,
|
|
@@ -337,7 +337,7 @@ import {
|
|
|
337
337
|
recordHiveKnowledgeEvent,
|
|
338
338
|
recordKnowledgeEvent,
|
|
339
339
|
resolveKnowledgeEventsPath
|
|
340
|
-
} from "./index-
|
|
340
|
+
} from "./index-kc635w60.js";
|
|
341
341
|
import {
|
|
342
342
|
commitDisplayedMembership,
|
|
343
343
|
commitEmptyRetrieval,
|
|
@@ -350,7 +350,7 @@ import {
|
|
|
350
350
|
queryLiveMemberships,
|
|
351
351
|
reconcilePhaseClose,
|
|
352
352
|
recordPhaseCloseIntent
|
|
353
|
-
} from "./index-
|
|
353
|
+
} from "./index-j5db3v56.js";
|
|
354
354
|
import {
|
|
355
355
|
sanitizeContextText
|
|
356
356
|
} from "./index-m9zzj4ee.js";
|
|
@@ -381,7 +381,7 @@ import {
|
|
|
381
381
|
validateActionableFields,
|
|
382
382
|
validateLesson,
|
|
383
383
|
validateSkillPath
|
|
384
|
-
} from "./index-
|
|
384
|
+
} from "./index-xv0t2sed.js";
|
|
385
385
|
import {
|
|
386
386
|
MAX_CURATION_PROPOSALS,
|
|
387
387
|
authorizeCuration,
|
|
@@ -392,7 +392,7 @@ import {
|
|
|
392
392
|
} from "./index-rtry5xyf.js";
|
|
393
393
|
import {
|
|
394
394
|
resolveWorktreeIsolationConfig
|
|
395
|
-
} from "./index-
|
|
395
|
+
} from "./index-tngc1erw.js";
|
|
396
396
|
import {
|
|
397
397
|
RetrospectiveEvidenceSchema
|
|
398
398
|
} from "./index-kbkk7vnh.js";
|
|
@@ -404,7 +404,7 @@ import {
|
|
|
404
404
|
clearScopeBindings,
|
|
405
405
|
readAuthoritativeScopeBindingSet,
|
|
406
406
|
readDeclaredScopeFilesFromBindings
|
|
407
|
-
} from "./index-
|
|
407
|
+
} from "./index-310h5192.js";
|
|
408
408
|
import {
|
|
409
409
|
clearPlanLedgerForReset,
|
|
410
410
|
computePlanStructureHash,
|
|
@@ -420,7 +420,7 @@ import {
|
|
|
420
420
|
replayFromLedgerWithStatus,
|
|
421
421
|
resolvePlanningProfile,
|
|
422
422
|
takeSnapshotEvent
|
|
423
|
-
} from "./index-
|
|
423
|
+
} from "./index-7fxy1s86.js";
|
|
424
424
|
import {
|
|
425
425
|
CORE_EVENT_LOCKED,
|
|
426
426
|
appendCoreEventSync,
|
|
@@ -509,7 +509,7 @@ import {
|
|
|
509
509
|
transactFile,
|
|
510
510
|
transactKnowledge,
|
|
511
511
|
wordBigrams
|
|
512
|
-
} from "./index-
|
|
512
|
+
} from "./index-y81jjedn.js";
|
|
513
513
|
import {
|
|
514
514
|
readTailJsonl,
|
|
515
515
|
readTailJsonlDetailed,
|
|
@@ -590,7 +590,7 @@ import {
|
|
|
590
590
|
loadGateOverrides,
|
|
591
591
|
loadPluginConfig,
|
|
592
592
|
loadPluginConfigWithMeta
|
|
593
|
-
} from "./index-
|
|
593
|
+
} from "./index-w0bvez8c.js";
|
|
594
594
|
import {
|
|
595
595
|
addDeferredWarning,
|
|
596
596
|
advisoryWarn,
|
|
@@ -622,7 +622,7 @@ import {
|
|
|
622
622
|
resolveContextWindow,
|
|
623
623
|
resolveGeneratedAgentRole,
|
|
624
624
|
stripKnownSwarmPrefix
|
|
625
|
-
} from "./index-
|
|
625
|
+
} from "./index-b5tthmy2.js";
|
|
626
626
|
import {
|
|
627
627
|
AGENT_TOOL_MAP,
|
|
628
628
|
ALL_AGENT_NAMES,
|
|
@@ -3411,7 +3411,7 @@ async function importLegacyPrWorkflowGateStateIfNeeded(directory, sessionID, all
|
|
|
3411
3411
|
return null;
|
|
3412
3412
|
throw error2;
|
|
3413
3413
|
}
|
|
3414
|
-
const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-
|
|
3414
|
+
const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-qtq1wq95.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
|
|
3415
3415
|
if (!legacy)
|
|
3416
3416
|
return null;
|
|
3417
3417
|
const namespace = workflowGateStateCoordinationNamespace(sessionID);
|
|
@@ -3498,7 +3498,7 @@ async function deleteStateWhileLocked(directory, sessionID, options = {}) {
|
|
|
3498
3498
|
let recoveryState = null;
|
|
3499
3499
|
if (!currentAuthoritative) {
|
|
3500
3500
|
if (options.allowSalvagedRead) {
|
|
3501
|
-
const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-
|
|
3501
|
+
const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-qtq1wq95.js");
|
|
3502
3502
|
recoveryState = (await readPrWorkflowGateStateForRecovery(directory, normalizedSessionID))?.state ?? null;
|
|
3503
3503
|
}
|
|
3504
3504
|
if (!recoveryState) {
|
|
@@ -15071,7 +15071,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
|
|
|
15071
15071
|
return extracted === expectedSessionId;
|
|
15072
15072
|
}
|
|
15073
15073
|
async function inspectStandardWorktreeCollisionOwnership(identity) {
|
|
15074
|
-
const collisionOwnership = await import("./worktree-collision-ownership-
|
|
15074
|
+
const collisionOwnership = await import("./worktree-collision-ownership-455bdcnk.js");
|
|
15075
15075
|
return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
|
|
15076
15076
|
}
|
|
15077
15077
|
async function runRecoveryGit(directory, args, timeoutMs = 15000) {
|
|
@@ -15497,7 +15497,7 @@ async function precreateStandardWorktreeSession(args) {
|
|
|
15497
15497
|
const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
|
|
15498
15498
|
if (laneProfile) {
|
|
15499
15499
|
try {
|
|
15500
|
-
const { writeLaneProfileToDiskReal } = await import("./core-
|
|
15500
|
+
const { writeLaneProfileToDiskReal } = await import("./core-2bywxc4w.js");
|
|
15501
15501
|
await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
|
|
15502
15502
|
} catch {}
|
|
15503
15503
|
}
|
|
@@ -16476,7 +16476,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
|
|
|
16476
16476
|
}
|
|
16477
16477
|
clearWorktreeMergeStatus(statusKey);
|
|
16478
16478
|
try {
|
|
16479
|
-
const { removeLaneProfileFromDiskReal } = await import("./core-
|
|
16479
|
+
const { removeLaneProfileFromDiskReal } = await import("./core-2bywxc4w.js");
|
|
16480
16480
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
16481
16481
|
} catch {}
|
|
16482
16482
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -24030,7 +24030,7 @@ function clearCriticalShownIds(sessionID) {
|
|
|
24030
24030
|
async function rehydratePrSubscriptions(sessionID, directory) {
|
|
24031
24031
|
const map = new Map;
|
|
24032
24032
|
try {
|
|
24033
|
-
const { listActive: listActive2 } = await import("./pr-subscriptions-
|
|
24033
|
+
const { listActive: listActive2 } = await import("./pr-subscriptions-g4f9rehb.js");
|
|
24034
24034
|
const records = await listActive2(directory);
|
|
24035
24035
|
for (const record of records) {
|
|
24036
24036
|
if (record.sessionID !== sessionID)
|
|
@@ -40538,9 +40538,9 @@ function hashContent(content) {
|
|
|
40538
40538
|
return createHash27("sha1").update(content).digest("hex");
|
|
40539
40539
|
}
|
|
40540
40540
|
async function loadConfigForPolicyCurator(directory) {
|
|
40541
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
40541
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-yxq3bjmd.js");
|
|
40542
40542
|
try {
|
|
40543
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
40543
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-33345434.js");
|
|
40544
40544
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
40545
40545
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
40546
40546
|
} catch {
|
|
@@ -43598,7 +43598,7 @@ async function resolveCuratorLLMDelegate(directory, mode, sessionId) {
|
|
|
43598
43598
|
const seam = _internals38.createCuratorLLMDelegate;
|
|
43599
43599
|
if (seam)
|
|
43600
43600
|
return seam(directory, mode, sessionId);
|
|
43601
|
-
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-
|
|
43601
|
+
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-4g2nvr76.js");
|
|
43602
43602
|
return createCuratorLLMDelegate(directory, mode, sessionId);
|
|
43603
43603
|
}
|
|
43604
43604
|
async function reconcileCloseTerminalStateForPlan(directory, targetPlan, options) {
|
|
@@ -43993,7 +43993,7 @@ async function runFinalizeStage(ctx) {
|
|
|
43993
43993
|
}
|
|
43994
43994
|
}
|
|
43995
43995
|
try {
|
|
43996
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
43996
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-yxq3bjmd.js");
|
|
43997
43997
|
const { config: pmLoadedConfig } = _internals38.loadPluginConfigWithMeta(ctx.directory);
|
|
43998
43998
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
43999
43999
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -46179,7 +46179,7 @@ function serializeAgentSession(s) {
|
|
|
46179
46179
|
}
|
|
46180
46180
|
async function writeSnapshot(directory, state) {
|
|
46181
46181
|
try {
|
|
46182
|
-
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-
|
|
46182
|
+
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-8gbxw9sa.js");
|
|
46183
46183
|
await ensureSnapshotCoordinationReady(directory);
|
|
46184
46184
|
const snapshot = {
|
|
46185
46185
|
version: 3,
|
|
@@ -49195,7 +49195,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
49195
49195
|
};
|
|
49196
49196
|
}
|
|
49197
49197
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
49198
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
49198
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-33345434.js");
|
|
49199
49199
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
49200
49200
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
49201
49201
|
if (sweepConfig?.enabled === false)
|
|
@@ -50319,7 +50319,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
50319
50319
|
}
|
|
50320
50320
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
50321
50321
|
try {
|
|
50322
|
-
const skillModule = await import("./skill-generator-
|
|
50322
|
+
const skillModule = await import("./skill-generator-pyf95aqw.js");
|
|
50323
50323
|
for (const cand of skillCandidates) {
|
|
50324
50324
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
50325
50325
|
continue;
|
|
@@ -50791,7 +50791,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
50791
50791
|
} catch {}
|
|
50792
50792
|
}
|
|
50793
50793
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
50794
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
50794
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-fnqctvxz.js");
|
|
50795
50795
|
for (const { id } of contradictedEntries) {
|
|
50796
50796
|
try {
|
|
50797
50797
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -51623,7 +51623,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
51623
51623
|
warnings.push("Failed to collect knowledge summary.");
|
|
51624
51624
|
}
|
|
51625
51625
|
try {
|
|
51626
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
51626
|
+
const { getScanStatus } = await import("./scan-cursor-8taj944f.js");
|
|
51627
51627
|
const scanStatus = await getScanStatus(directory);
|
|
51628
51628
|
if (scanStatus.remaining_estimate > 0) {
|
|
51629
51629
|
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.`);
|
|
@@ -51795,9 +51795,9 @@ var _internals56 = {
|
|
|
51795
51795
|
verifyPostMortemKnowledgeActions,
|
|
51796
51796
|
repairPostMortemActions,
|
|
51797
51797
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
51798
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
51798
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-yxq3bjmd.js");
|
|
51799
51799
|
try {
|
|
51800
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
51800
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-33345434.js");
|
|
51801
51801
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
51802
51802
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
51803
51803
|
} catch {
|
|
@@ -51805,11 +51805,11 @@ var _internals56 = {
|
|
|
51805
51805
|
}
|
|
51806
51806
|
},
|
|
51807
51807
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
51808
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
51808
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-dvhf6jex.js");
|
|
51809
51809
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
51810
51810
|
},
|
|
51811
51811
|
checkHivePromotions: async (entries2, knowledgeConfig, directory) => {
|
|
51812
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
51812
|
+
const { checkHivePromotions } = await import("./hive-promoter-bp3rz0q6.js");
|
|
51813
51813
|
return checkHivePromotions(entries2, knowledgeConfig, directory);
|
|
51814
51814
|
},
|
|
51815
51815
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -51818,7 +51818,7 @@ var _internals56 = {
|
|
|
51818
51818
|
activateProposal,
|
|
51819
51819
|
listSkills: listSkills2,
|
|
51820
51820
|
sanitizeSlug
|
|
51821
|
-
} = await import("./skill-generator-
|
|
51821
|
+
} = await import("./skill-generator-pyf95aqw.js");
|
|
51822
51822
|
const result = {
|
|
51823
51823
|
approved: [],
|
|
51824
51824
|
rejected: [],
|
|
@@ -51860,7 +51860,7 @@ var _internals56 = {
|
|
|
51860
51860
|
return result;
|
|
51861
51861
|
},
|
|
51862
51862
|
readPriorDriftReports: async (directory) => {
|
|
51863
|
-
const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-
|
|
51863
|
+
const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-xx8pp4g9.js");
|
|
51864
51864
|
return readPriorDriftReports2(directory);
|
|
51865
51865
|
},
|
|
51866
51866
|
readSwarmKnowledge: (directory) => readKnowledge(resolveSwarmKnowledgePath(directory))
|
|
@@ -61663,9 +61663,9 @@ var _internals66 = {
|
|
|
61663
61663
|
loadPluginConfigWithMeta,
|
|
61664
61664
|
loadCuratorDeps: async () => {
|
|
61665
61665
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate }] = await Promise.all([
|
|
61666
|
-
import("./schema-
|
|
61667
|
-
import("./curator-
|
|
61668
|
-
import("./curator-llm-factory-
|
|
61666
|
+
import("./schema-yxq3bjmd.js"),
|
|
61667
|
+
import("./curator-dvhf6jex.js"),
|
|
61668
|
+
import("./curator-llm-factory-4g2nvr76.js")
|
|
61669
61669
|
]);
|
|
61670
61670
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate };
|
|
61671
61671
|
}
|
|
@@ -64063,7 +64063,7 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
64063
64063
|
let scanCompleted = false;
|
|
64064
64064
|
let scanRemaining = 0;
|
|
64065
64065
|
try {
|
|
64066
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
64066
|
+
const { getScanStatus } = await import("./scan-cursor-8taj944f.js");
|
|
64067
64067
|
const status = await getScanStatus(directory);
|
|
64068
64068
|
scanGeneration = status.generation;
|
|
64069
64069
|
scanCompleted = status.completed;
|
|
@@ -64073,10 +64073,10 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
64073
64073
|
try {
|
|
64074
64074
|
const { isLinked: isLinked2 } = await import("./knowledge-link-93nzznwd.js");
|
|
64075
64075
|
if (isLinked2(directory)) {
|
|
64076
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
64076
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-yxq3bjmd.js");
|
|
64077
64077
|
let config;
|
|
64078
64078
|
try {
|
|
64079
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
64079
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-33345434.js");
|
|
64080
64080
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
64081
64081
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
64082
64082
|
} catch {
|
|
@@ -65532,7 +65532,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
65532
65532
|
const result = runConfigDoctor(config, directory, planParallelizationEnabled);
|
|
65533
65533
|
let output;
|
|
65534
65534
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
65535
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
65535
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-312afzhr.js");
|
|
65536
65536
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
65537
65537
|
applyLossy: true
|
|
65538
65538
|
});
|
|
@@ -65570,7 +65570,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
65570
65570
|
`;
|
|
65571
65571
|
}
|
|
65572
65572
|
try {
|
|
65573
|
-
const { runModelPreflight } = await import("./model-preflight-
|
|
65573
|
+
const { runModelPreflight } = await import("./model-preflight-2kje0sp0.js");
|
|
65574
65574
|
const preflight = await runModelPreflight(config, swarmState.opencodeClient, { generatedAgentNames: swarmState.generatedAgentNames });
|
|
65575
65575
|
const missingSelection = preflight.resolutions.filter((resolution) => resolution.status === "missing-selection");
|
|
65576
65576
|
const unresolved = preflight.catalogAvailable ? preflight.resolutions.filter((resolution) => resolution.status === "unresolved") : [];
|
|
@@ -65604,7 +65604,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
65604
65604
|
}
|
|
65605
65605
|
} catch {}
|
|
65606
65606
|
try {
|
|
65607
|
-
const { renderKnowledgeReceiptPhaseIdSection } = await import("./doctor-knowledge-receipt-phase-id-
|
|
65607
|
+
const { renderKnowledgeReceiptPhaseIdSection } = await import("./doctor-knowledge-receipt-phase-id-m239pgbz.js");
|
|
65608
65608
|
output += await renderKnowledgeReceiptPhaseIdSection(directory, enableAutoFix);
|
|
65609
65609
|
} catch {}
|
|
65610
65610
|
const strayDirs = detectStraySwarmDirs(directory);
|
|
@@ -66501,7 +66501,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
66501
66501
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
66502
66502
|
}
|
|
66503
66503
|
async function handleEvidenceSummaryCommand(directory) {
|
|
66504
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
66504
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-9et04fjh.js");
|
|
66505
66505
|
const artifact = await buildEvidenceSummary(directory);
|
|
66506
66506
|
if (!artifact) {
|
|
66507
66507
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -90952,7 +90952,7 @@ function createCuratorLLMDelegate(directory, mode = "init", sessionId) {
|
|
|
90952
90952
|
}
|
|
90953
90953
|
const sdkOpts = signal ? { signal } : {};
|
|
90954
90954
|
try {
|
|
90955
|
-
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-
|
|
90955
|
+
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-9jafghwk.js");
|
|
90956
90956
|
const createResult = await client.session.create({
|
|
90957
90957
|
...sessionId ? {
|
|
90958
90958
|
body: {
|
|
@@ -93289,7 +93289,7 @@ async function cancelPrFeedbackLoopUnlocked(directory, sessionID, reason) {
|
|
|
93289
93289
|
clearedEvents: []
|
|
93290
93290
|
};
|
|
93291
93291
|
try {
|
|
93292
|
-
const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-
|
|
93292
|
+
const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-qtq1wq95.js");
|
|
93293
93293
|
await cancelPrFeedbackPublication2(directory, sessionID, reason);
|
|
93294
93294
|
} catch (err) {
|
|
93295
93295
|
warn(`[pr-feedback-loop] cancelPrFeedbackPublication failed (fail-open): ${err instanceof Error ? err.message : String(err)}`);
|
|
@@ -109659,7 +109659,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
109659
109659
|
async function handleHelpCommand(ctx) {
|
|
109660
109660
|
const targetCommand = ctx.args.join(" ");
|
|
109661
109661
|
if (!targetCommand) {
|
|
109662
|
-
const { buildHelpText } = await import("./index-
|
|
109662
|
+
const { buildHelpText } = await import("./index-tmp07h7b.js");
|
|
109663
109663
|
return buildHelpText();
|
|
109664
109664
|
}
|
|
109665
109665
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -109673,7 +109673,7 @@ async function handleHelpCommand(ctx) {
|
|
|
109673
109673
|
> Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
|
|
109674
109674
|
}
|
|
109675
109675
|
const similar = _internals27.findSimilarCommands(targetCommand);
|
|
109676
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
109676
|
+
const { buildHelpText: fullHelp } = await import("./index-tmp07h7b.js");
|
|
109677
109677
|
if (similar.length > 0) {
|
|
109678
109678
|
return `Command '/swarm ${targetCommand}' not found.
|
|
109679
109679
|
|
|
@@ -110001,7 +110001,7 @@ var COMMAND_REGISTRY = {
|
|
|
110001
110001
|
},
|
|
110002
110002
|
"guardrail explain": {
|
|
110003
110003
|
handler: async (ctx) => {
|
|
110004
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
110004
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-8n4fx9zv.js");
|
|
110005
110005
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
110006
110006
|
},
|
|
110007
110007
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -110011,7 +110011,7 @@ var COMMAND_REGISTRY = {
|
|
|
110011
110011
|
},
|
|
110012
110012
|
"guardrail reset": {
|
|
110013
110013
|
handler: async (ctx) => {
|
|
110014
|
-
const { handleGuardrailReset } = await import("./guardrail-reset-
|
|
110014
|
+
const { handleGuardrailReset } = await import("./guardrail-reset-k3mrq25e.js");
|
|
110015
110015
|
return handleGuardrailReset(ctx.args, ctx.sessionID);
|
|
110016
110016
|
},
|
|
110017
110017
|
description: "Reset one exact active invocation/action circuit after repair",
|
|
@@ -110032,7 +110032,7 @@ var COMMAND_REGISTRY = {
|
|
|
110032
110032
|
},
|
|
110033
110033
|
"guardrail-log": {
|
|
110034
110034
|
handler: async (ctx) => {
|
|
110035
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
110035
|
+
const { handleGuardrailLog } = await import("./guardrail-log-9gmfvnd7.js");
|
|
110036
110036
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
110037
110037
|
},
|
|
110038
110038
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
detectWindowsWrites,
|
|
15
15
|
getSharedClassifierGuardrailBlock,
|
|
16
16
|
resolveWriteTargets
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-tq6sbcys.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-3g3n9fjq.js";
|
|
25
25
|
|
|
26
26
|
// src/services/guardrail-explain-service.ts
|
|
27
27
|
import path from "path";
|
|
@@ -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-mr1vh3nb.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-gy39attk.js");
|
|
810
|
+
const { KnowledgeConfigSchema } = await import("./schema-yxq3bjmd.js");
|
|
811
811
|
let config;
|
|
812
812
|
try {
|
|
813
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
813
|
+
const { loadPluginConfigWithMeta } = await import("./index-33345434.js");
|
|
814
814
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
815
815
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
816
816
|
} catch {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./index-6b295cas.js";
|
|
5
5
|
import {
|
|
6
6
|
readEffectiveSpecSync
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-efbhea00.js";
|
|
8
8
|
import {
|
|
9
9
|
getWorktreeMergeFailure
|
|
10
10
|
} from "./index-zsrtt42s.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
replayFromLedgerWithStatus,
|
|
48
48
|
takeSnapshotEvent,
|
|
49
49
|
takeSnapshotWithRetry
|
|
50
|
-
} from "./index-
|
|
50
|
+
} from "./index-7fxy1s86.js";
|
|
51
51
|
import {
|
|
52
52
|
appendCoreEventSync
|
|
53
53
|
} from "./index-e9ry78z5.js";
|
|
@@ -2997,7 +2997,7 @@ ${markdown}`;
|
|
|
2997
2997
|
}
|
|
2998
2998
|
}
|
|
2999
2999
|
async function defaultMaybeSaveAutoCheckpoint(directory, plan) {
|
|
3000
|
-
const { maybeSaveAutoCheckpoint } = await import("./auto-checkpoint-
|
|
3000
|
+
const { maybeSaveAutoCheckpoint } = await import("./auto-checkpoint-2xmptd5t.js");
|
|
3001
3001
|
return maybeSaveAutoCheckpoint(directory, plan);
|
|
3002
3002
|
}
|
|
3003
3003
|
async function updateTaskStatus(directory, taskId, status, options) {
|
|
@@ -3073,7 +3073,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
|
|
|
3073
3073
|
if (status === "completed") {
|
|
3074
3074
|
try {
|
|
3075
3075
|
const completedTask = updatedPlan.phases.flatMap((phase) => phase.tasks).find((candidate) => candidate.id === taskId);
|
|
3076
|
-
const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-
|
|
3076
|
+
const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-x2z0jamv.js");
|
|
3077
3077
|
await maybePropagateSpeckitCheckoff(directory, {
|
|
3078
3078
|
taskId,
|
|
3079
3079
|
frRefs: completedTask?.fr_refs ?? [],
|
|
@@ -3098,7 +3098,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
|
|
|
3098
3098
|
break;
|
|
3099
3099
|
}
|
|
3100
3100
|
}
|
|
3101
|
-
const { readDeclaredScopeFilesFromBindings } = await import("./scope-persistence-
|
|
3101
|
+
const { readDeclaredScopeFilesFromBindings } = await import("./scope-persistence-jppvjncr.js");
|
|
3102
3102
|
const canonicalScope = readDeclaredScopeFilesFromBindings({
|
|
3103
3103
|
directory,
|
|
3104
3104
|
taskId,
|