opencode-swarm 7.176.1 → 7.176.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/{coder-settlement-cctwqn8q.js → coder-settlement-q81p8cdw.js} +3 -3
- package/dist/cli/{config-doctor-f2j4t2qg.js → config-doctor-g8yj2ax5.js} +2 -2
- package/dist/cli/{core-j1wef1b1.js → core-qhsd6kh4.js} +1 -1
- package/dist/cli/{curator-9bkavyx7.js → curator-33h6tpkm.js} +19 -19
- package/dist/cli/{curator-llm-factory-rdmbyw36.js → curator-llm-factory-bvck3388.js} +19 -19
- package/dist/cli/{evidence-summary-service-vp1gnmw8.js → evidence-summary-service-h58msp28.js} +6 -6
- package/dist/cli/{gate-evidence-wfc2ypwe.js → gate-evidence-2mzqng35.js} +2 -2
- package/dist/cli/{guardrail-explain-271bxeve.js → guardrail-explain-vs575z3y.js} +20 -20
- package/dist/cli/{guardrail-log-cw6kst05.js → guardrail-log-8pm5hfaf.js} +3 -3
- package/dist/cli/{guardrail-reset-vs77rj7q.js → guardrail-reset-qygfp430.js} +19 -19
- package/dist/cli/{hive-promoter-f9zx73na.js → hive-promoter-1921z8af.js} +19 -19
- package/dist/cli/{index-zwvrrwwb.js → index-1d28c88a.js} +1 -1
- package/dist/cli/{index-wa6ryk62.js → index-30dx8h76.js} +1 -1
- package/dist/cli/{index-qr5ryazn.js → index-3gmfzg4w.js} +2 -2
- package/dist/cli/{index-9rpw0edg.js → index-6kn88mce.js} +2 -2
- package/dist/cli/{index-dzqarb47.js → index-7yms2y29.js} +3 -3
- package/dist/cli/{index-axzmpwsp.js → index-bsw3v6fa.js} +3 -3
- package/dist/cli/{index-39g9ktkw.js → index-d3mzw88v.js} +5 -5
- package/dist/cli/{index-faqr1jkr.js → index-dp0zm7mj.js} +2 -2
- package/dist/cli/{index-r7fz80tj.js → index-g364gm8a.js} +1 -1
- package/dist/cli/{index-cj66fbmz.js → index-gq1qbzsw.js} +4 -4
- package/dist/cli/{index-drdcsxdc.js → index-hc00tn5a.js} +2 -2
- package/dist/cli/{index-3ac47c51.js → index-kc9jbsxh.js} +52 -52
- package/dist/cli/{index-85qk65a0.js → index-mezy2tc7.js} +1 -1
- package/dist/cli/{index-3mrdcdsw.js → index-nmrcgs2v.js} +1 -1
- package/dist/cli/{index-bmzmxewc.js → index-pa9gk6qe.js} +19 -19
- package/dist/cli/{index-9kqtzj67.js → index-pedvpj59.js} +1 -1
- package/dist/cli/{index-sdcybkes.js → index-pgtrsc2t.js} +1 -1
- package/dist/cli/{index-8q6ax18j.js → index-psvgm17t.js} +1 -1
- package/dist/cli/{index-ekw3p6a9.js → index-tfvtf8z5.js} +3 -3
- package/dist/cli/{index-xj3j4v3r.js → index-vqhpemaw.js} +1 -1
- package/dist/cli/{index-9xp8cgh3.js → index-ycb3h9gp.js} +3 -3
- package/dist/cli/{index-af37hks1.js → index-yg3aqync.js} +3 -3
- package/dist/cli/{index-k4r7m6vz.js → index-ytg10jza.js} +21 -21
- package/dist/cli/{index-stz507bw.js → index-z7f3z7t0.js} +1 -1
- package/dist/cli/index.js +20 -20
- package/dist/cli/{knowledge-escalator-znzksqjb.js → knowledge-escalator-m88njezt.js} +6 -6
- package/dist/cli/{knowledge-events-n77sysfe.js → knowledge-events-ncwzpmne.js} +4 -4
- package/dist/cli/{knowledge-store-qv2n3q7j.js → knowledge-store-qsebf29s.js} +1 -1
- package/dist/cli/{knowledge-validator-ed7y0c3r.js → knowledge-validator-c345kv1x.js} +2 -2
- package/dist/cli/{mcp-xpxfwpjq.js → mcp-0wqnyca5.js} +1 -1
- package/dist/cli/{pending-delegations-d1m7ebsd.js → pending-delegations-fry2r78r.js} +2 -2
- package/dist/cli/{pr-subscriptions-8v66558d.js → pr-subscriptions-sd3fyt8p.js} +1 -1
- package/dist/cli/{pr-workflow-gate-bx7x5cyh.js → pr-workflow-gate-c84n5x8x.js} +19 -19
- package/dist/cli/{scan-cursor-9vp5c7dk.js → scan-cursor-ptg9wsmv.js} +2 -2
- package/dist/cli/{schema-e0b6nwh6.js → schema-dwxscxbv.js} +1 -1
- package/dist/cli/{scope-persistence-dd6cwhhc.js → scope-persistence-effvw96s.js} +5 -5
- package/dist/cli/{server-6xqhb2xr.js → server-91c44cv8.js} +19 -19
- package/dist/cli/{skill-generator-k9gvpdq5.js → skill-generator-kv7b5ync.js} +7 -7
- package/dist/cli/{snapshot-coordination-init-8a0cqgzy.js → snapshot-coordination-init-1kxmhy02.js} +19 -19
- package/dist/cli/{worktree-collision-ownership-msxze6pq.js → worktree-collision-ownership-esshj9p9.js} +2 -2
- package/dist/cli/{worktree-isolation-1fxsq65k.js → worktree-isolation-gvy7b6nq.js} +19 -19
- package/dist/evidence/phase-participation.d.ts +17 -0
- package/dist/index.js +3 -3
- package/dist/tools/phase-complete.d.ts +40 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
queryHistoricalOutcomes,
|
|
4
4
|
readKnowledgeEvents,
|
|
5
5
|
recordKnowledgeEvent
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-yg3aqync.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-gq1qbzsw.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-c345kv1x.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-dwxscxbv.js");
|
|
231
|
+
const { loadPluginConfigWithMeta } = await import("./index-bsw3v6fa.js");
|
|
232
232
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
233
233
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
234
234
|
} catch {
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
detectWindowsWrites,
|
|
15
15
|
getSharedClassifierGuardrailBlock,
|
|
16
16
|
resolveWriteTargets
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-kc9jbsxh.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-vqhpemaw.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-ncwzpmne.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-c345kv1x.js");
|
|
810
|
+
const { KnowledgeConfigSchema } = await import("./schema-dwxscxbv.js");
|
|
811
811
|
let config;
|
|
812
812
|
try {
|
|
813
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
813
|
+
const { loadPluginConfigWithMeta } = await import("./index-bsw3v6fa.js");
|
|
814
814
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
815
815
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
816
816
|
} catch {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
computePlanStructureHash
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-6kn88mce.js";
|
|
5
5
|
import {
|
|
6
6
|
appendCoreEventSync
|
|
7
7
|
} from "./index-fwjenx4w.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "./index-g4m0t1y4.js";
|
|
34
34
|
import {
|
|
35
35
|
PlanSchema
|
|
36
|
-
} from "./index-
|
|
36
|
+
} from "./index-pedvpj59.js";
|
|
37
37
|
import {
|
|
38
38
|
init_path_identity,
|
|
39
39
|
unsafePathTextReason
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
protectedRoots,
|
|
27
27
|
redactDecisionLineForArchive,
|
|
28
28
|
stableCanonicalStringify
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-vqhpemaw.js";
|
|
30
30
|
import {
|
|
31
31
|
canonicalProjectKey,
|
|
32
32
|
closeGroupCommitWriter,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
readDoctorArtifact,
|
|
40
40
|
removeStraySwarmDir,
|
|
41
41
|
runConfigDoctor
|
|
42
|
-
} from "./index-
|
|
42
|
+
} from "./index-30dx8h76.js";
|
|
43
43
|
import {
|
|
44
44
|
MAX_TRANSIENT_RETRIES,
|
|
45
45
|
archiveEvidence,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
updateTaskStatus,
|
|
82
82
|
validateProjectRoot,
|
|
83
83
|
withPlanLifecycleLock
|
|
84
|
-
} from "./index-
|
|
84
|
+
} from "./index-tfvtf8z5.js";
|
|
85
85
|
import {
|
|
86
86
|
EvaluationTaskV1Schema,
|
|
87
87
|
GateAuditManifestV1Schema,
|
|
@@ -146,15 +146,15 @@ import {
|
|
|
146
146
|
retireSkill,
|
|
147
147
|
selectCandidateEntries,
|
|
148
148
|
syncBundledProjectSkillsIfMissingAsync
|
|
149
|
-
} from "./index-
|
|
149
|
+
} from "./index-7yms2y29.js";
|
|
150
150
|
import {
|
|
151
151
|
readRecentEscalations
|
|
152
|
-
} from "./index-
|
|
152
|
+
} from "./index-d3mzw88v.js";
|
|
153
153
|
import {
|
|
154
154
|
alreadyCuratedThisGeneration,
|
|
155
155
|
claimNextScanBatch,
|
|
156
156
|
resolveCohortId
|
|
157
|
-
} from "./index-
|
|
157
|
+
} from "./index-nmrcgs2v.js";
|
|
158
158
|
import {
|
|
159
159
|
CURATOR_CONSOLIDATION_PROMPT,
|
|
160
160
|
CURATOR_INIT_PROMPT,
|
|
@@ -186,7 +186,7 @@ import {
|
|
|
186
186
|
listCoderSettlementWalStates,
|
|
187
187
|
recoverCoderSettlement,
|
|
188
188
|
recoverStaleCoderSettlements
|
|
189
|
-
} from "./index-
|
|
189
|
+
} from "./index-ycb3h9gp.js";
|
|
190
190
|
import {
|
|
191
191
|
parsePorcelainV2Snapshot,
|
|
192
192
|
resolveCommitCountSince,
|
|
@@ -257,7 +257,7 @@ import {
|
|
|
257
257
|
transitionTaskWorkflowEvidence,
|
|
258
258
|
withTaskEvidenceTransaction,
|
|
259
259
|
writeWorkflowWalFile
|
|
260
|
-
} from "./index-
|
|
260
|
+
} from "./index-g364gm8a.js";
|
|
261
261
|
import {
|
|
262
262
|
isPathUnderSwarmWorktreeBase,
|
|
263
263
|
listLiveLaneOwners,
|
|
@@ -266,7 +266,7 @@ import {
|
|
|
266
266
|
recordLiveLaneOwner,
|
|
267
267
|
removeWorktree,
|
|
268
268
|
resolveWorktreeBaseDir
|
|
269
|
-
} from "./index-
|
|
269
|
+
} from "./index-mezy2tc7.js";
|
|
270
270
|
import {
|
|
271
271
|
DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
|
|
272
272
|
DELEGATION_COMPACTION_HIGH_WATER_BYTES,
|
|
@@ -300,7 +300,7 @@ import {
|
|
|
300
300
|
scanBackgroundCoderReservationsForAdmission,
|
|
301
301
|
scanDelegationsForRecovery,
|
|
302
302
|
sweepStaleDelegations
|
|
303
|
-
} from "./index-
|
|
303
|
+
} from "./index-pgtrsc2t.js";
|
|
304
304
|
import {
|
|
305
305
|
MAX_EVENT_LOG_ENTRIES,
|
|
306
306
|
_internals,
|
|
@@ -316,7 +316,7 @@ import {
|
|
|
316
316
|
recordKnowledgeEvent,
|
|
317
317
|
recordPhaseCloseIntent,
|
|
318
318
|
resolveKnowledgeEventsPath
|
|
319
|
-
} from "./index-
|
|
319
|
+
} from "./index-yg3aqync.js";
|
|
320
320
|
import {
|
|
321
321
|
estimateTokens,
|
|
322
322
|
readSwarmFileAsync,
|
|
@@ -342,7 +342,7 @@ import {
|
|
|
342
342
|
validateActionableFields,
|
|
343
343
|
validateLesson,
|
|
344
344
|
validateSkillPath
|
|
345
|
-
} from "./index-
|
|
345
|
+
} from "./index-z7f3z7t0.js";
|
|
346
346
|
import {
|
|
347
347
|
MAX_CURATION_PROPOSALS,
|
|
348
348
|
authorizeCuration,
|
|
@@ -353,7 +353,7 @@ import {
|
|
|
353
353
|
} from "./index-rtry5xyf.js";
|
|
354
354
|
import {
|
|
355
355
|
resolveWorktreeIsolationConfig
|
|
356
|
-
} from "./index-
|
|
356
|
+
} from "./index-3gmfzg4w.js";
|
|
357
357
|
import {
|
|
358
358
|
RetrospectiveEvidenceSchema
|
|
359
359
|
} from "./index-frcemc0b.js";
|
|
@@ -364,7 +364,7 @@ import {
|
|
|
364
364
|
clearScopeBindingFromDisk,
|
|
365
365
|
clearScopeBindings,
|
|
366
366
|
readScopeFromDisk
|
|
367
|
-
} from "./index-
|
|
367
|
+
} from "./index-hc00tn5a.js";
|
|
368
368
|
import {
|
|
369
369
|
clearPlanLedgerForReset,
|
|
370
370
|
computePlanStructureHash,
|
|
@@ -380,7 +380,7 @@ import {
|
|
|
380
380
|
replayFromLedgerWithStatus,
|
|
381
381
|
resolvePlanningProfile,
|
|
382
382
|
takeSnapshotEvent
|
|
383
|
-
} from "./index-
|
|
383
|
+
} from "./index-6kn88mce.js";
|
|
384
384
|
import {
|
|
385
385
|
CORE_EVENT_LOCKED,
|
|
386
386
|
appendCoreEventSync,
|
|
@@ -463,7 +463,7 @@ import {
|
|
|
463
463
|
transactFile,
|
|
464
464
|
transactKnowledge,
|
|
465
465
|
wordBigrams
|
|
466
|
-
} from "./index-
|
|
466
|
+
} from "./index-gq1qbzsw.js";
|
|
467
467
|
import {
|
|
468
468
|
readTailJsonl,
|
|
469
469
|
readTailJsonlDetailed,
|
|
@@ -532,7 +532,7 @@ import {
|
|
|
532
532
|
loadGateOverrides,
|
|
533
533
|
loadPluginConfig,
|
|
534
534
|
loadPluginConfigWithMeta
|
|
535
|
-
} from "./index-
|
|
535
|
+
} from "./index-pedvpj59.js";
|
|
536
536
|
import {
|
|
537
537
|
init_git_executable,
|
|
538
538
|
resolveGitExecutable,
|
|
@@ -561,7 +561,7 @@ import {
|
|
|
561
561
|
resolveAutoReviewConfig,
|
|
562
562
|
resolveGeneratedAgentRole,
|
|
563
563
|
stripKnownSwarmPrefix
|
|
564
|
-
} from "./index-
|
|
564
|
+
} from "./index-1d28c88a.js";
|
|
565
565
|
import {
|
|
566
566
|
AGENT_TOOL_MAP,
|
|
567
567
|
ALL_AGENT_NAMES,
|
|
@@ -3175,7 +3175,7 @@ async function importLegacyPrWorkflowGateStateIfNeeded(directory, sessionID, all
|
|
|
3175
3175
|
return null;
|
|
3176
3176
|
throw error2;
|
|
3177
3177
|
}
|
|
3178
|
-
const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-
|
|
3178
|
+
const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-c84n5x8x.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
|
|
3179
3179
|
if (!legacy)
|
|
3180
3180
|
return null;
|
|
3181
3181
|
const namespace = workflowGateStateCoordinationNamespace(sessionID);
|
|
@@ -3245,7 +3245,7 @@ async function deleteStateWhileLocked(directory, sessionID, options = {}) {
|
|
|
3245
3245
|
let recoveryState = null;
|
|
3246
3246
|
if (!currentAuthoritative) {
|
|
3247
3247
|
if (options.allowSalvagedRead) {
|
|
3248
|
-
const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-
|
|
3248
|
+
const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-c84n5x8x.js");
|
|
3249
3249
|
recoveryState = (await readPrWorkflowGateStateForRecovery(directory, normalizedSessionID))?.state ?? null;
|
|
3250
3250
|
}
|
|
3251
3251
|
if (!recoveryState) {
|
|
@@ -14210,7 +14210,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
|
|
|
14210
14210
|
return extracted === expectedSessionId;
|
|
14211
14211
|
}
|
|
14212
14212
|
async function inspectStandardWorktreeCollisionOwnership(identity) {
|
|
14213
|
-
const collisionOwnership = await import("./worktree-collision-ownership-
|
|
14213
|
+
const collisionOwnership = await import("./worktree-collision-ownership-esshj9p9.js");
|
|
14214
14214
|
return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
|
|
14215
14215
|
}
|
|
14216
14216
|
async function runRecoveryGit(directory, args, timeoutMs = 15000) {
|
|
@@ -14636,7 +14636,7 @@ async function precreateStandardWorktreeSession(args) {
|
|
|
14636
14636
|
const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
|
|
14637
14637
|
if (laneProfile) {
|
|
14638
14638
|
try {
|
|
14639
|
-
const { writeLaneProfileToDiskReal } = await import("./core-
|
|
14639
|
+
const { writeLaneProfileToDiskReal } = await import("./core-qhsd6kh4.js");
|
|
14640
14640
|
await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
|
|
14641
14641
|
} catch {}
|
|
14642
14642
|
}
|
|
@@ -15615,7 +15615,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
|
|
|
15615
15615
|
}
|
|
15616
15616
|
clearWorktreeMergeStatus(statusKey);
|
|
15617
15617
|
try {
|
|
15618
|
-
const { removeLaneProfileFromDiskReal } = await import("./core-
|
|
15618
|
+
const { removeLaneProfileFromDiskReal } = await import("./core-qhsd6kh4.js");
|
|
15619
15619
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
15620
15620
|
} catch {}
|
|
15621
15621
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -22232,7 +22232,7 @@ function getDisplayFinalPromptPressure() {
|
|
|
22232
22232
|
async function rehydratePrSubscriptions(sessionID, directory) {
|
|
22233
22233
|
const map = new Map;
|
|
22234
22234
|
try {
|
|
22235
|
-
const { listActive: listActive2 } = await import("./pr-subscriptions-
|
|
22235
|
+
const { listActive: listActive2 } = await import("./pr-subscriptions-sd3fyt8p.js");
|
|
22236
22236
|
const records = await listActive2(directory);
|
|
22237
22237
|
for (const record of records) {
|
|
22238
22238
|
if (record.sessionID !== sessionID)
|
|
@@ -39107,9 +39107,9 @@ function hashContent(content) {
|
|
|
39107
39107
|
return createHash24("sha1").update(content).digest("hex");
|
|
39108
39108
|
}
|
|
39109
39109
|
async function loadConfigForPolicyCurator(directory) {
|
|
39110
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
39110
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-dwxscxbv.js");
|
|
39111
39111
|
try {
|
|
39112
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
39112
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-bsw3v6fa.js");
|
|
39113
39113
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
39114
39114
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
39115
39115
|
} catch {
|
|
@@ -42167,7 +42167,7 @@ async function resolveCuratorLLMDelegate(directory, mode, sessionId) {
|
|
|
42167
42167
|
const seam = _internals36.createCuratorLLMDelegate;
|
|
42168
42168
|
if (seam)
|
|
42169
42169
|
return seam(directory, mode, sessionId);
|
|
42170
|
-
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-
|
|
42170
|
+
const { createCuratorLLMDelegate } = await import("./curator-llm-factory-bvck3388.js");
|
|
42171
42171
|
return createCuratorLLMDelegate(directory, mode, sessionId);
|
|
42172
42172
|
}
|
|
42173
42173
|
async function reconcileCloseTerminalStateForPlan(directory, targetPlan, options) {
|
|
@@ -42562,7 +42562,7 @@ async function runFinalizeStage(ctx) {
|
|
|
42562
42562
|
}
|
|
42563
42563
|
}
|
|
42564
42564
|
try {
|
|
42565
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
42565
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-dwxscxbv.js");
|
|
42566
42566
|
const { config: pmLoadedConfig } = _internals36.loadPluginConfigWithMeta(ctx.directory);
|
|
42567
42567
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
42568
42568
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -44406,7 +44406,7 @@ function serializeAgentSession(s) {
|
|
|
44406
44406
|
}
|
|
44407
44407
|
async function writeSnapshot(directory, state) {
|
|
44408
44408
|
try {
|
|
44409
|
-
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-
|
|
44409
|
+
const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-1kxmhy02.js");
|
|
44410
44410
|
await ensureSnapshotCoordinationReady(directory);
|
|
44411
44411
|
const snapshot = {
|
|
44412
44412
|
version: 3,
|
|
@@ -47332,7 +47332,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
47332
47332
|
};
|
|
47333
47333
|
}
|
|
47334
47334
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
47335
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
47335
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-bsw3v6fa.js");
|
|
47336
47336
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
47337
47337
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
47338
47338
|
if (sweepConfig?.enabled === false)
|
|
@@ -48456,7 +48456,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
48456
48456
|
}
|
|
48457
48457
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
48458
48458
|
try {
|
|
48459
|
-
const skillModule = await import("./skill-generator-
|
|
48459
|
+
const skillModule = await import("./skill-generator-kv7b5ync.js");
|
|
48460
48460
|
for (const cand of skillCandidates) {
|
|
48461
48461
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
48462
48462
|
continue;
|
|
@@ -48928,7 +48928,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
48928
48928
|
} catch {}
|
|
48929
48929
|
}
|
|
48930
48930
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
48931
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
48931
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-m88njezt.js");
|
|
48932
48932
|
for (const { id } of contradictedEntries) {
|
|
48933
48933
|
try {
|
|
48934
48934
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -49760,7 +49760,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
49760
49760
|
warnings.push("Failed to collect knowledge summary.");
|
|
49761
49761
|
}
|
|
49762
49762
|
try {
|
|
49763
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
49763
|
+
const { getScanStatus } = await import("./scan-cursor-ptg9wsmv.js");
|
|
49764
49764
|
const scanStatus = await getScanStatus(directory);
|
|
49765
49765
|
if (scanStatus.remaining_estimate > 0) {
|
|
49766
49766
|
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.`);
|
|
@@ -49932,9 +49932,9 @@ var _internals53 = {
|
|
|
49932
49932
|
verifyPostMortemKnowledgeActions,
|
|
49933
49933
|
repairPostMortemActions,
|
|
49934
49934
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
49935
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
49935
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-dwxscxbv.js");
|
|
49936
49936
|
try {
|
|
49937
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
49937
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-bsw3v6fa.js");
|
|
49938
49938
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
49939
49939
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
49940
49940
|
} catch {
|
|
@@ -49942,11 +49942,11 @@ var _internals53 = {
|
|
|
49942
49942
|
}
|
|
49943
49943
|
},
|
|
49944
49944
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
49945
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
49945
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-33h6tpkm.js");
|
|
49946
49946
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
49947
49947
|
},
|
|
49948
49948
|
checkHivePromotions: async (entries2, knowledgeConfig, directory) => {
|
|
49949
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
49949
|
+
const { checkHivePromotions } = await import("./hive-promoter-1921z8af.js");
|
|
49950
49950
|
return checkHivePromotions(entries2, knowledgeConfig, directory);
|
|
49951
49951
|
},
|
|
49952
49952
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -49955,7 +49955,7 @@ var _internals53 = {
|
|
|
49955
49955
|
activateProposal,
|
|
49956
49956
|
listSkills: listSkills2,
|
|
49957
49957
|
sanitizeSlug
|
|
49958
|
-
} = await import("./skill-generator-
|
|
49958
|
+
} = await import("./skill-generator-kv7b5ync.js");
|
|
49959
49959
|
const result = {
|
|
49960
49960
|
approved: [],
|
|
49961
49961
|
rejected: [],
|
|
@@ -59793,9 +59793,9 @@ var _internals63 = {
|
|
|
59793
59793
|
loadPluginConfigWithMeta,
|
|
59794
59794
|
loadCuratorDeps: async () => {
|
|
59795
59795
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate }] = await Promise.all([
|
|
59796
|
-
import("./schema-
|
|
59797
|
-
import("./curator-
|
|
59798
|
-
import("./curator-llm-factory-
|
|
59796
|
+
import("./schema-dwxscxbv.js"),
|
|
59797
|
+
import("./curator-33h6tpkm.js"),
|
|
59798
|
+
import("./curator-llm-factory-bvck3388.js")
|
|
59799
59799
|
]);
|
|
59800
59800
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate };
|
|
59801
59801
|
}
|
|
@@ -62047,7 +62047,7 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
62047
62047
|
let scanCompleted = false;
|
|
62048
62048
|
let scanRemaining = 0;
|
|
62049
62049
|
try {
|
|
62050
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
62050
|
+
const { getScanStatus } = await import("./scan-cursor-ptg9wsmv.js");
|
|
62051
62051
|
const status = await getScanStatus(directory);
|
|
62052
62052
|
scanGeneration = status.generation;
|
|
62053
62053
|
scanCompleted = status.completed;
|
|
@@ -62057,10 +62057,10 @@ async function computeCurationDiagnostics(directory, entries2) {
|
|
|
62057
62057
|
try {
|
|
62058
62058
|
const { isLinked: isLinked2 } = await import("./knowledge-link-1n4kjc0c.js");
|
|
62059
62059
|
if (isLinked2(directory)) {
|
|
62060
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
62060
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-dwxscxbv.js");
|
|
62061
62061
|
let config;
|
|
62062
62062
|
try {
|
|
62063
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
62063
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-bsw3v6fa.js");
|
|
62064
62064
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
62065
62065
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
62066
62066
|
} catch {
|
|
@@ -63503,7 +63503,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
63503
63503
|
const result = runConfigDoctor(config, directory);
|
|
63504
63504
|
let output;
|
|
63505
63505
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
63506
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
63506
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-g8yj2ax5.js");
|
|
63507
63507
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
63508
63508
|
applyLossy: true
|
|
63509
63509
|
});
|
|
@@ -64457,7 +64457,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
64457
64457
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
64458
64458
|
}
|
|
64459
64459
|
async function handleEvidenceSummaryCommand(directory) {
|
|
64460
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
64460
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-h58msp28.js");
|
|
64461
64461
|
const artifact = await buildEvidenceSummary(directory);
|
|
64462
64462
|
if (!artifact) {
|
|
64463
64463
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -84505,7 +84505,7 @@ function createCuratorLLMDelegate(directory, mode = "init", sessionId) {
|
|
|
84505
84505
|
}
|
|
84506
84506
|
const sdkOpts = signal ? { signal } : {};
|
|
84507
84507
|
try {
|
|
84508
|
-
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-
|
|
84508
|
+
const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-pa9gk6qe.js");
|
|
84509
84509
|
const createResult = await client.session.create({
|
|
84510
84510
|
...sessionId ? {
|
|
84511
84511
|
body: {
|
|
@@ -101052,7 +101052,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
101052
101052
|
async function handleHelpCommand(ctx) {
|
|
101053
101053
|
const targetCommand = ctx.args.join(" ");
|
|
101054
101054
|
if (!targetCommand) {
|
|
101055
|
-
const { buildHelpText } = await import("./index-
|
|
101055
|
+
const { buildHelpText } = await import("./index-ytg10jza.js");
|
|
101056
101056
|
return buildHelpText();
|
|
101057
101057
|
}
|
|
101058
101058
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -101066,7 +101066,7 @@ async function handleHelpCommand(ctx) {
|
|
|
101066
101066
|
> Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
|
|
101067
101067
|
}
|
|
101068
101068
|
const similar = _internals24.findSimilarCommands(targetCommand);
|
|
101069
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
101069
|
+
const { buildHelpText: fullHelp } = await import("./index-ytg10jza.js");
|
|
101070
101070
|
if (similar.length > 0) {
|
|
101071
101071
|
return `Command '/swarm ${targetCommand}' not found.
|
|
101072
101072
|
|
|
@@ -101381,7 +101381,7 @@ var COMMAND_REGISTRY = {
|
|
|
101381
101381
|
},
|
|
101382
101382
|
"guardrail explain": {
|
|
101383
101383
|
handler: async (ctx) => {
|
|
101384
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
101384
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-vs575z3y.js");
|
|
101385
101385
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
101386
101386
|
},
|
|
101387
101387
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -101391,7 +101391,7 @@ var COMMAND_REGISTRY = {
|
|
|
101391
101391
|
},
|
|
101392
101392
|
"guardrail reset": {
|
|
101393
101393
|
handler: async (ctx) => {
|
|
101394
|
-
const { handleGuardrailReset } = await import("./guardrail-reset-
|
|
101394
|
+
const { handleGuardrailReset } = await import("./guardrail-reset-qygfp430.js");
|
|
101395
101395
|
return handleGuardrailReset(ctx.args, ctx.sessionID);
|
|
101396
101396
|
},
|
|
101397
101397
|
description: "Reset one exact active invocation/action circuit after repair",
|
|
@@ -101412,7 +101412,7 @@ var COMMAND_REGISTRY = {
|
|
|
101412
101412
|
},
|
|
101413
101413
|
"guardrail-log": {
|
|
101414
101414
|
handler: async (ctx) => {
|
|
101415
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
101415
|
+
const { handleGuardrailLog } = await import("./guardrail-log-8pm5hfaf.js");
|
|
101416
101416
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
101417
101417
|
},
|
|
101418
101418
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -244,7 +244,7 @@ var _internals2 = {
|
|
|
244
244
|
symlinkSync: fs2.symlinkSync
|
|
245
245
|
},
|
|
246
246
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
247
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
247
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-effvw96s.js");
|
|
248
248
|
return realWrite(directory, taskId, files);
|
|
249
249
|
},
|
|
250
250
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -22,45 +22,45 @@ import {
|
|
|
22
22
|
resolveFallbackModel,
|
|
23
23
|
resolvePrimaryAgentNames,
|
|
24
24
|
stripSwarmPrefix
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-kc9jbsxh.js";
|
|
26
26
|
import"./index-hnvmj9wx.js";
|
|
27
27
|
import"./index-02sbqp2j.js";
|
|
28
|
-
import"./index-
|
|
28
|
+
import"./index-vqhpemaw.js";
|
|
29
29
|
import"./index-fsrfamds.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
30
|
+
import"./index-30dx8h76.js";
|
|
31
|
+
import"./index-tfvtf8z5.js";
|
|
32
32
|
import"./index-36gm5wzh.js";
|
|
33
33
|
import"./index-txdagbh7.js";
|
|
34
34
|
import"./index-n1tcj1q7.js";
|
|
35
35
|
import"./index-fpbcxykc.js";
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
36
|
+
import"./index-7yms2y29.js";
|
|
37
|
+
import"./index-d3mzw88v.js";
|
|
38
|
+
import"./index-nmrcgs2v.js";
|
|
39
39
|
import {
|
|
40
40
|
createExplorerAgent
|
|
41
41
|
} from "./index-fyfbpz4f.js";
|
|
42
42
|
import"./index-yj8hn89a.js";
|
|
43
43
|
import"./index-549wxbe1.js";
|
|
44
44
|
import"./index-zsrtt42s.js";
|
|
45
|
-
import"./index-
|
|
45
|
+
import"./index-ycb3h9gp.js";
|
|
46
46
|
import"./index-yss54mb9.js";
|
|
47
47
|
import"./index-b6xgqf81.js";
|
|
48
48
|
import"./index-pt7h91zc.js";
|
|
49
49
|
import"./index-q7sjgr1y.js";
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
52
|
-
import"./index-
|
|
53
|
-
import"./index-
|
|
50
|
+
import"./index-g364gm8a.js";
|
|
51
|
+
import"./index-mezy2tc7.js";
|
|
52
|
+
import"./index-pgtrsc2t.js";
|
|
53
|
+
import"./index-yg3aqync.js";
|
|
54
54
|
import"./index-gaa1h7rv.js";
|
|
55
55
|
import"./index-2s7dvzff.js";
|
|
56
|
-
import"./index-
|
|
56
|
+
import"./index-z7f3z7t0.js";
|
|
57
57
|
import"./index-agwajtws.js";
|
|
58
58
|
import"./index-rtry5xyf.js";
|
|
59
|
-
import"./index-
|
|
59
|
+
import"./index-3gmfzg4w.js";
|
|
60
60
|
import"./index-frcemc0b.js";
|
|
61
61
|
import"./index-wrt875kh.js";
|
|
62
|
-
import"./index-
|
|
63
|
-
import"./index-
|
|
62
|
+
import"./index-hc00tn5a.js";
|
|
63
|
+
import"./index-6kn88mce.js";
|
|
64
64
|
import"./index-fwjenx4w.js";
|
|
65
65
|
import"./index-mw5k6s43.js";
|
|
66
66
|
import"./index-p2r8cejw.js";
|
|
@@ -68,7 +68,7 @@ import"./index-nxgbfgmc.js";
|
|
|
68
68
|
import"./index-rdm3px0g.js";
|
|
69
69
|
import"./index-ry16d01s.js";
|
|
70
70
|
import"./index-swhxs3n7.js";
|
|
71
|
-
import"./index-
|
|
71
|
+
import"./index-gq1qbzsw.js";
|
|
72
72
|
import"./index-vzm6zre7.js";
|
|
73
73
|
import"./index-ae75rja9.js";
|
|
74
74
|
import"./index-bh07vpsw.js";
|
|
@@ -78,10 +78,10 @@ import"./index-68nc7zev.js";
|
|
|
78
78
|
import"./index-g4m0t1y4.js";
|
|
79
79
|
import"./index-1xnse449.js";
|
|
80
80
|
import"./index-c1ggtmpm.js";
|
|
81
|
-
import"./index-
|
|
81
|
+
import"./index-pedvpj59.js";
|
|
82
82
|
import"./index-zz7gzw57.js";
|
|
83
83
|
import"./index-4ddpvd5c.js";
|
|
84
|
-
import"./index-
|
|
84
|
+
import"./index-1d28c88a.js";
|
|
85
85
|
import"./index-5frh43fj.js";
|
|
86
86
|
import"./index-bk5tah7q.js";
|
|
87
87
|
import"./index-gknz3bv1.js";
|
|
@@ -4660,7 +4660,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
|
|
|
4660
4660
|
const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
|
|
4661
4661
|
if (candidates.length === 0)
|
|
4662
4662
|
return 0;
|
|
4663
|
-
const { transferCoderSettlementToBackground } = await import("./coder-settlement-
|
|
4663
|
+
const { transferCoderSettlementToBackground } = await import("./coder-settlement-q81p8cdw.js");
|
|
4664
4664
|
let transferred = 0;
|
|
4665
4665
|
for (const record of candidates) {
|
|
4666
4666
|
try {
|