opencode-swarm 7.152.0 → 7.152.1
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/{resume → swarm-resume}/SKILL.md +1 -1
- package/dist/cli/{config-doctor-4hctd61b.js → config-doctor-bbqmye7a.js} +2 -2
- package/dist/cli/{core-ea8xgnwy.js → core-fh4e6ex0.js} +1 -1
- package/dist/cli/{curation-policy-vb2f0vm7.js → curation-policy-nem98yc9.js} +4 -4
- package/dist/cli/{curator-krg3abzq.js → curator-909s9dvs.js} +23 -23
- package/dist/cli/{curator-llm-factory-6xnnfpt4.js → curator-llm-factory-462rysph.js} +23 -23
- package/dist/cli/{evidence-summary-service-dtjr30pg.js → evidence-summary-service-kqw4y0yr.js} +9 -9
- package/dist/cli/{gate-evidence-msnd1tda.js → gate-evidence-ycts62pj.js} +4 -4
- package/dist/cli/{guardrail-explain-nbgds0g0.js → guardrail-explain-7620hasq.js} +24 -24
- package/dist/cli/{guardrail-log-emgfqa5s.js → guardrail-log-e1tmdxxa.js} +3 -3
- package/dist/cli/{guardrail-reset-95jhw7rg.js → guardrail-reset-gdnaxxvb.js} +23 -23
- package/dist/cli/{hive-promoter-ch6h94j3.js → hive-promoter-d0xydg6r.js} +23 -23
- package/dist/cli/{index-h6tvj6nr.js → index-02ajc6d1.js} +2 -2
- package/dist/cli/{index-qdnj3nwt.js → index-0tfgn5x0.js} +6 -6
- package/dist/cli/{index-19tznm6x.js → index-26vyr198.js} +4 -4
- package/dist/cli/{index-cxt62pxj.js → index-29vd7v3e.js} +1 -1
- package/dist/cli/{index-h9tcawtm.js → index-2e1294d1.js} +42 -5
- package/dist/cli/{index-7afvf50d.js → index-3djxegsc.js} +1 -1
- package/dist/cli/{index-s85abenr.js → index-44xdtqz8.js} +1 -1
- package/dist/cli/{index-ngzc8db3.js → index-4tvvh7pn.js} +25 -25
- package/dist/cli/{index-ek6t1e9h.js → index-73pmnsjg.js} +1 -1
- package/dist/cli/{index-5th6khpe.js → index-79g6edht.js} +1 -1
- package/dist/cli/{index-30gf3exm.js → index-7fh82sm1.js} +1 -1
- package/dist/cli/{index-n8yastrw.js → index-96m8ckpq.js} +3 -3
- package/dist/cli/{index-sgdqbhkv.js → index-dn6yt0xg.js} +5 -5
- package/dist/cli/{index-nwpbfh8x.js → index-k3d919yf.js} +1 -1
- package/dist/cli/{index-kca6ng28.js → index-mken64yj.js} +1 -1
- package/dist/cli/{index-cgfjvkps.js → index-n0vc5b5t.js} +2 -2
- package/dist/cli/{index-rqc83msp.js → index-nd8tkb3g.js} +5 -5
- package/dist/cli/{index-r0bwks42.js → index-pvrap7xg.js} +1 -1
- package/dist/cli/{index-dsg5aqtj.js → index-q77e475x.js} +3 -3
- package/dist/cli/{index-n1j0cmj3.js → index-qqrdmaxq.js} +1 -1
- package/dist/cli/{index-trj11few.js → index-rq6aetkv.js} +4 -4
- package/dist/cli/{index-93rgk3ax.js → index-ryecg2st.js} +2 -2
- package/dist/cli/{index-9hc6ytb1.js → index-sg2sx2q7.js} +57 -57
- package/dist/cli/{index-dc7hh4d9.js → index-x6803sxh.js} +1 -1
- package/dist/cli/{index-fk3msss3.js → index-xyfdmrv7.js} +1 -1
- package/dist/cli/{index-1hbmy0ny.js → index-z8s2asdk.js} +2 -2
- package/dist/cli/{index-8nzqtv6b.js → index-z9fyd0d6.js} +2 -2
- package/dist/cli/index.js +23 -23
- package/dist/cli/{knowledge-escalator-n4nx4veq.js → knowledge-escalator-4egcr928.js} +9 -9
- package/dist/cli/{knowledge-events-t77r3zhe.js → knowledge-events-kdyv4jzn.js} +7 -7
- package/dist/cli/{knowledge-link-r6hfj2ep.js → knowledge-link-h8cwj7af.js} +3 -3
- package/dist/cli/{knowledge-store-w1v0041d.js → knowledge-store-dq3cvg53.js} +4 -4
- package/dist/cli/{knowledge-validator-6fcx0xdb.js → knowledge-validator-4bhtden9.js} +6 -6
- package/dist/cli/{runner-cmvgkbtp.js → runner-w81n9js3.js} +4 -4
- package/dist/cli/{scan-cursor-936pmv37.js → scan-cursor-2eezv81a.js} +5 -5
- package/dist/cli/{schema-exk5afyz.js → schema-v4qcqhek.js} +1 -1
- package/dist/cli/{scope-persistence-0ddz95ke.js → scope-persistence-y2r227r0.js} +5 -5
- package/dist/cli/{skill-generator-qk0mf7da.js → skill-generator-hhzxvb3h.js} +11 -11
- package/dist/cli/{worktree-isolation-2jvaebns.js → worktree-isolation-ve338ez6.js} +23 -23
- package/dist/config/bundled-skills.d.ts +10 -1
- package/dist/index.js +4 -4
- package/package.json +2 -2
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
resolveExecutableFromPath,
|
|
7
7
|
runEvaluation,
|
|
8
8
|
runExternalTool
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-44xdtqz8.js";
|
|
10
10
|
import {
|
|
11
11
|
finalizeShellAuditForClose,
|
|
12
12
|
normalizeToolNameLowerCase,
|
|
13
13
|
redactDecisionLineForArchive,
|
|
14
14
|
stableCanonicalStringify
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-k3d919yf.js";
|
|
16
16
|
import {
|
|
17
17
|
detectStraySwarmDirs,
|
|
18
18
|
readDoctorArtifact,
|
|
19
19
|
removeStraySwarmDir,
|
|
20
20
|
runConfigDoctor
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-x6803sxh.js";
|
|
22
22
|
import {
|
|
23
23
|
MAX_TRANSIENT_RETRIES,
|
|
24
24
|
archiveEvidence,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
updateTaskStatus,
|
|
65
65
|
validateProjectRoot,
|
|
66
66
|
validateSymlinkBoundary
|
|
67
|
-
} from "./index-
|
|
67
|
+
} from "./index-26vyr198.js";
|
|
68
68
|
import {
|
|
69
69
|
EvaluationTaskV1Schema,
|
|
70
70
|
GateAuditManifestV1Schema,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
saveGateAuditResult,
|
|
82
82
|
savePromotionDecision,
|
|
83
83
|
saveTaskSetSnapshot
|
|
84
|
-
} from "./index-
|
|
84
|
+
} from "./index-73pmnsjg.js";
|
|
85
85
|
import {
|
|
86
86
|
loadDatabaseCtor
|
|
87
87
|
} from "./index-134d35c1.js";
|
|
@@ -107,12 +107,12 @@ import {
|
|
|
107
107
|
} from "./index-y8552snf.js";
|
|
108
108
|
import {
|
|
109
109
|
readRecentEscalations
|
|
110
|
-
} from "./index-
|
|
110
|
+
} from "./index-nd8tkb3g.js";
|
|
111
111
|
import {
|
|
112
112
|
alreadyCuratedThisGeneration,
|
|
113
113
|
claimNextScanBatch,
|
|
114
114
|
resolveCohortId
|
|
115
|
-
} from "./index-
|
|
115
|
+
} from "./index-02ajc6d1.js";
|
|
116
116
|
import {
|
|
117
117
|
CURATOR_INIT_PROMPT,
|
|
118
118
|
CURATOR_PHASE_PROMPT,
|
|
@@ -182,7 +182,7 @@ import {
|
|
|
182
182
|
retireSkill,
|
|
183
183
|
selectCandidateEntries,
|
|
184
184
|
syncBundledProjectSkillsIfMissingAsync
|
|
185
|
-
} from "./index-
|
|
185
|
+
} from "./index-2e1294d1.js";
|
|
186
186
|
import {
|
|
187
187
|
appendUnactionable,
|
|
188
188
|
quarantineEntry,
|
|
@@ -193,11 +193,11 @@ import {
|
|
|
193
193
|
validateActionableFields,
|
|
194
194
|
validateLesson,
|
|
195
195
|
validateSkillPath
|
|
196
|
-
} from "./index-
|
|
196
|
+
} from "./index-rq6aetkv.js";
|
|
197
197
|
import {
|
|
198
198
|
authorizeCuration,
|
|
199
199
|
buildConfigFingerprintInput
|
|
200
|
-
} from "./index-
|
|
200
|
+
} from "./index-pvrap7xg.js";
|
|
201
201
|
import {
|
|
202
202
|
cohortConfigFingerprint
|
|
203
203
|
} from "./index-rtry5xyf.js";
|
|
@@ -254,18 +254,18 @@ import {
|
|
|
254
254
|
transitionTaskWorkflowEvidence,
|
|
255
255
|
withTaskEvidenceTransaction,
|
|
256
256
|
writeWorkflowWalFile
|
|
257
|
-
} from "./index-
|
|
257
|
+
} from "./index-z9fyd0d6.js";
|
|
258
258
|
import {
|
|
259
259
|
provisionWorktree,
|
|
260
260
|
removeWorktree
|
|
261
|
-
} from "./index-
|
|
261
|
+
} from "./index-qqrdmaxq.js";
|
|
262
262
|
import {
|
|
263
263
|
MAX_PENDING_SCOPE_BINDINGS,
|
|
264
264
|
canonicalWorkspaceIdentity,
|
|
265
265
|
clearAllScopes,
|
|
266
266
|
clearScopeBindingFromDisk,
|
|
267
267
|
clearScopeBindings
|
|
268
|
-
} from "./index-
|
|
268
|
+
} from "./index-q77e475x.js";
|
|
269
269
|
import {
|
|
270
270
|
appendLedgerEvent,
|
|
271
271
|
computePlanHash,
|
|
@@ -280,7 +280,7 @@ import {
|
|
|
280
280
|
readPlanEpochIdentity,
|
|
281
281
|
replayFromLedgerWithStatus,
|
|
282
282
|
takeSnapshotEvent
|
|
283
|
-
} from "./index-
|
|
283
|
+
} from "./index-xyfdmrv7.js";
|
|
284
284
|
import {
|
|
285
285
|
CORE_EVENT_LOCKED,
|
|
286
286
|
appendCoreEventSync,
|
|
@@ -342,7 +342,7 @@ import {
|
|
|
342
342
|
transactFile,
|
|
343
343
|
transactKnowledge,
|
|
344
344
|
wordBigrams
|
|
345
|
-
} from "./index-
|
|
345
|
+
} from "./index-0tfgn5x0.js";
|
|
346
346
|
import {
|
|
347
347
|
MAX_EVENT_LOG_ENTRIES,
|
|
348
348
|
_internals as _internals2,
|
|
@@ -356,10 +356,10 @@ import {
|
|
|
356
356
|
recordKnowledgeEvent,
|
|
357
357
|
recordPhaseCloseIntent,
|
|
358
358
|
resolveKnowledgeEventsPath
|
|
359
|
-
} from "./index-
|
|
359
|
+
} from "./index-dn6yt0xg.js";
|
|
360
360
|
import {
|
|
361
361
|
resolveWorktreeIsolationConfig
|
|
362
|
-
} from "./index-
|
|
362
|
+
} from "./index-ryecg2st.js";
|
|
363
363
|
import {
|
|
364
364
|
RetrospectiveEvidenceSchema
|
|
365
365
|
} from "./index-gprxjmm7.js";
|
|
@@ -381,7 +381,7 @@ import {
|
|
|
381
381
|
init_loader,
|
|
382
382
|
loadPluginConfig,
|
|
383
383
|
loadPluginConfigWithMeta
|
|
384
|
-
} from "./index-
|
|
384
|
+
} from "./index-3djxegsc.js";
|
|
385
385
|
import {
|
|
386
386
|
DEFAULT_SKILL_OPT_CONFIG,
|
|
387
387
|
FALLBACK_MODELS_MAX,
|
|
@@ -395,7 +395,7 @@ import {
|
|
|
395
395
|
package_default,
|
|
396
396
|
resolveAutoReviewConfig,
|
|
397
397
|
stripKnownSwarmPrefix
|
|
398
|
-
} from "./index-
|
|
398
|
+
} from "./index-n0vc5b5t.js";
|
|
399
399
|
import {
|
|
400
400
|
AGENT_TOOL_MAP,
|
|
401
401
|
ALL_AGENT_NAMES,
|
|
@@ -435,10 +435,10 @@ import {
|
|
|
435
435
|
resolveLinkDir,
|
|
436
436
|
sanitizeLinkId,
|
|
437
437
|
writeLinkPointer
|
|
438
|
-
} from "./index-
|
|
438
|
+
} from "./index-79g6edht.js";
|
|
439
439
|
import {
|
|
440
440
|
atomicWriteFile
|
|
441
|
-
} from "./index-
|
|
441
|
+
} from "./index-mken64yj.js";
|
|
442
442
|
import {
|
|
443
443
|
KNOWLEDGE_SCHEMA_VERSION,
|
|
444
444
|
OUTCOME_BLOCK_THRESHOLD,
|
|
@@ -450,7 +450,7 @@ import {
|
|
|
450
450
|
atomicWriteSwarmFileSync,
|
|
451
451
|
matchTempGrammar,
|
|
452
452
|
parseTargetBasename
|
|
453
|
-
} from "./index-
|
|
453
|
+
} from "./index-7fh82sm1.js";
|
|
454
454
|
import {
|
|
455
455
|
assertProjectRoot,
|
|
456
456
|
hasExplicitProjectBoundary,
|
|
@@ -5601,7 +5601,7 @@ async function cleanupRecoveredWorktree(directory, descriptor) {
|
|
|
5601
5601
|
awaitingMergeByCallID,
|
|
5602
5602
|
cleanupStandardWorktreeForCallId,
|
|
5603
5603
|
standardWorktreeByCallID
|
|
5604
|
-
} = await import("./worktree-isolation-
|
|
5604
|
+
} = await import("./worktree-isolation-ve338ez6.js");
|
|
5605
5605
|
standardWorktreeByCallID.delete(descriptor.callID);
|
|
5606
5606
|
if (hasResidue)
|
|
5607
5607
|
awaitingMergeByCallID.set(descriptor.callID, {
|
|
@@ -5703,7 +5703,7 @@ async function recoverCoderSettlement(directory, taskId) {
|
|
|
5703
5703
|
awaitingMergeByCallID,
|
|
5704
5704
|
finishStandardWorktreeDispatch,
|
|
5705
5705
|
standardWorktreeByCallID
|
|
5706
|
-
} = await import("./worktree-isolation-
|
|
5706
|
+
} = await import("./worktree-isolation-ve338ez6.js");
|
|
5707
5707
|
const descriptor = wal.worktree;
|
|
5708
5708
|
const reconstructedDispatch = {
|
|
5709
5709
|
callID: descriptor.callID,
|
|
@@ -18505,7 +18505,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
18505
18505
|
};
|
|
18506
18506
|
}
|
|
18507
18507
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
18508
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
18508
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-96m8ckpq.js");
|
|
18509
18509
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
18510
18510
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
18511
18511
|
if (sweepConfig?.enabled === false)
|
|
@@ -19635,7 +19635,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
19635
19635
|
}
|
|
19636
19636
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
19637
19637
|
try {
|
|
19638
|
-
const skillModule = await import("./skill-generator-
|
|
19638
|
+
const skillModule = await import("./skill-generator-hhzxvb3h.js");
|
|
19639
19639
|
for (const cand of skillCandidates) {
|
|
19640
19640
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
19641
19641
|
continue;
|
|
@@ -20107,7 +20107,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
20107
20107
|
} catch {}
|
|
20108
20108
|
}
|
|
20109
20109
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
20110
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
20110
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-4egcr928.js");
|
|
20111
20111
|
for (const { id } of contradictedEntries) {
|
|
20112
20112
|
try {
|
|
20113
20113
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -20926,7 +20926,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
20926
20926
|
warnings.push("Failed to collect knowledge summary.");
|
|
20927
20927
|
}
|
|
20928
20928
|
try {
|
|
20929
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
20929
|
+
const { getScanStatus } = await import("./scan-cursor-2eezv81a.js");
|
|
20930
20930
|
const scanStatus = await getScanStatus(directory);
|
|
20931
20931
|
if (scanStatus.remaining_estimate > 0) {
|
|
20932
20932
|
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.`);
|
|
@@ -21098,9 +21098,9 @@ var _internals26 = {
|
|
|
21098
21098
|
verifyPostMortemKnowledgeActions,
|
|
21099
21099
|
repairPostMortemActions,
|
|
21100
21100
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
21101
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
21101
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-v4qcqhek.js");
|
|
21102
21102
|
try {
|
|
21103
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
21103
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-96m8ckpq.js");
|
|
21104
21104
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
21105
21105
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
21106
21106
|
} catch {
|
|
@@ -21108,11 +21108,11 @@ var _internals26 = {
|
|
|
21108
21108
|
}
|
|
21109
21109
|
},
|
|
21110
21110
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
21111
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
21111
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-909s9dvs.js");
|
|
21112
21112
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
21113
21113
|
},
|
|
21114
21114
|
checkHivePromotions: async (entries, knowledgeConfig, directory) => {
|
|
21115
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
21115
|
+
const { checkHivePromotions } = await import("./hive-promoter-d0xydg6r.js");
|
|
21116
21116
|
return checkHivePromotions(entries, knowledgeConfig, directory);
|
|
21117
21117
|
},
|
|
21118
21118
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -21121,7 +21121,7 @@ var _internals26 = {
|
|
|
21121
21121
|
activateProposal,
|
|
21122
21122
|
listSkills: listSkills2,
|
|
21123
21123
|
sanitizeSlug
|
|
21124
|
-
} = await import("./skill-generator-
|
|
21124
|
+
} = await import("./skill-generator-hhzxvb3h.js");
|
|
21125
21125
|
const result = {
|
|
21126
21126
|
approved: [],
|
|
21127
21127
|
rejected: [],
|
|
@@ -22451,9 +22451,9 @@ function hashContent(content) {
|
|
|
22451
22451
|
return createHash10("sha1").update(content).digest("hex");
|
|
22452
22452
|
}
|
|
22453
22453
|
async function loadConfigForPolicyCurator(directory) {
|
|
22454
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
22454
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-v4qcqhek.js");
|
|
22455
22455
|
try {
|
|
22456
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
22456
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-96m8ckpq.js");
|
|
22457
22457
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
22458
22458
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
22459
22459
|
} catch {
|
|
@@ -33660,7 +33660,7 @@ async function runFinalizeStage(ctx) {
|
|
|
33660
33660
|
}
|
|
33661
33661
|
}
|
|
33662
33662
|
try {
|
|
33663
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
33663
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-v4qcqhek.js");
|
|
33664
33664
|
const { config: pmLoadedConfig } = _internals41.loadPluginConfigWithMeta(ctx.directory);
|
|
33665
33665
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
33666
33666
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -35873,9 +35873,9 @@ var _internals45 = {
|
|
|
35873
35873
|
loadPluginConfigWithMeta,
|
|
35874
35874
|
loadCuratorDeps: async () => {
|
|
35875
35875
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
|
|
35876
|
-
import("./schema-
|
|
35877
|
-
import("./curator-
|
|
35878
|
-
import("./curator-llm-factory-
|
|
35876
|
+
import("./schema-v4qcqhek.js"),
|
|
35877
|
+
import("./curator-909s9dvs.js"),
|
|
35878
|
+
import("./curator-llm-factory-462rysph.js")
|
|
35879
35879
|
]);
|
|
35880
35880
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
|
|
35881
35881
|
}
|
|
@@ -36865,7 +36865,7 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
36865
36865
|
let scanCompleted = false;
|
|
36866
36866
|
let scanRemaining = 0;
|
|
36867
36867
|
try {
|
|
36868
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
36868
|
+
const { getScanStatus } = await import("./scan-cursor-2eezv81a.js");
|
|
36869
36869
|
const status = await getScanStatus(directory);
|
|
36870
36870
|
scanGeneration = status.generation;
|
|
36871
36871
|
scanCompleted = status.completed;
|
|
@@ -36873,19 +36873,19 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
36873
36873
|
} catch {}
|
|
36874
36874
|
let configMatch = null;
|
|
36875
36875
|
try {
|
|
36876
|
-
const { isLinked: isLinked2 } = await import("./knowledge-link-
|
|
36876
|
+
const { isLinked: isLinked2 } = await import("./knowledge-link-h8cwj7af.js");
|
|
36877
36877
|
if (isLinked2(directory)) {
|
|
36878
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
36878
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-v4qcqhek.js");
|
|
36879
36879
|
let config;
|
|
36880
36880
|
try {
|
|
36881
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
36881
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-96m8ckpq.js");
|
|
36882
36882
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
36883
36883
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
36884
36884
|
} catch {
|
|
36885
36885
|
config = KnowledgeConfigSchema2.parse({});
|
|
36886
36886
|
}
|
|
36887
36887
|
const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
|
|
36888
|
-
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-
|
|
36888
|
+
const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-nem98yc9.js");
|
|
36889
36889
|
const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
|
|
36890
36890
|
const cohortFp = await readCohortConfigFingerprint(directory);
|
|
36891
36891
|
configMatch = cohortFp === null ? null : currentFp === cohortFp;
|
|
@@ -38189,7 +38189,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
38189
38189
|
const result = runConfigDoctor(config, directory);
|
|
38190
38190
|
let output;
|
|
38191
38191
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
38192
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
38192
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-bbqmye7a.js");
|
|
38193
38193
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
38194
38194
|
applyLossy: true
|
|
38195
38195
|
});
|
|
@@ -39129,7 +39129,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
39129
39129
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
39130
39130
|
}
|
|
39131
39131
|
async function handleEvidenceSummaryCommand(directory) {
|
|
39132
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
39132
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-kqw4y0yr.js");
|
|
39133
39133
|
const artifact = await buildEvidenceSummary(directory);
|
|
39134
39134
|
if (!artifact) {
|
|
39135
39135
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -70420,7 +70420,7 @@ async function runValidationWithTransientRetry(input, candidateContent, baseline
|
|
|
70420
70420
|
if (!input.dispatcher) {
|
|
70421
70421
|
throw new Error("no evaluation dispatcher available (cannot run validation)");
|
|
70422
70422
|
}
|
|
70423
|
-
const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-
|
|
70423
|
+
const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-w81n9js3.js");
|
|
70424
70424
|
const executor = createModelEvaluationExecutor2(input.dispatcher, input.sessionId);
|
|
70425
70425
|
const result = await _internals96.evaluateCandidateV1({
|
|
70426
70426
|
projectRoot: input.directory,
|
|
@@ -72455,7 +72455,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
72455
72455
|
async function handleHelpCommand(ctx) {
|
|
72456
72456
|
const targetCommand = ctx.args.join(" ");
|
|
72457
72457
|
if (!targetCommand) {
|
|
72458
|
-
const { buildHelpText } = await import("./index-
|
|
72458
|
+
const { buildHelpText } = await import("./index-4tvvh7pn.js");
|
|
72459
72459
|
return buildHelpText();
|
|
72460
72460
|
}
|
|
72461
72461
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -72464,7 +72464,7 @@ async function handleHelpCommand(ctx) {
|
|
|
72464
72464
|
return _internals99.buildDetailedHelp(resolved.key, resolved.entry);
|
|
72465
72465
|
}
|
|
72466
72466
|
const similar = _internals99.findSimilarCommands(targetCommand);
|
|
72467
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
72467
|
+
const { buildHelpText: fullHelp } = await import("./index-4tvvh7pn.js");
|
|
72468
72468
|
if (similar.length > 0) {
|
|
72469
72469
|
return `Command '/swarm ${targetCommand}' not found.
|
|
72470
72470
|
|
|
@@ -72644,7 +72644,7 @@ var COMMAND_REGISTRY = {
|
|
|
72644
72644
|
},
|
|
72645
72645
|
"guardrail explain": {
|
|
72646
72646
|
handler: async (ctx) => {
|
|
72647
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
72647
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-7620hasq.js");
|
|
72648
72648
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
72649
72649
|
},
|
|
72650
72650
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -72654,7 +72654,7 @@ var COMMAND_REGISTRY = {
|
|
|
72654
72654
|
},
|
|
72655
72655
|
"guardrail reset": {
|
|
72656
72656
|
handler: async (ctx) => {
|
|
72657
|
-
const { handleGuardrailReset } = await import("./guardrail-reset-
|
|
72657
|
+
const { handleGuardrailReset } = await import("./guardrail-reset-gdnaxxvb.js");
|
|
72658
72658
|
return handleGuardrailReset(ctx.args, ctx.sessionID);
|
|
72659
72659
|
},
|
|
72660
72660
|
description: "Reset one exact active invocation/action circuit after repair",
|
|
@@ -72663,7 +72663,7 @@ var COMMAND_REGISTRY = {
|
|
|
72663
72663
|
},
|
|
72664
72664
|
"guardrail-explain": {
|
|
72665
72665
|
handler: async (ctx) => {
|
|
72666
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
72666
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-7620hasq.js");
|
|
72667
72667
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
72668
72668
|
},
|
|
72669
72669
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -72673,7 +72673,7 @@ var COMMAND_REGISTRY = {
|
|
|
72673
72673
|
},
|
|
72674
72674
|
"guardrail-reset": {
|
|
72675
72675
|
handler: async (ctx) => {
|
|
72676
|
-
const { handleGuardrailReset } = await import("./guardrail-reset-
|
|
72676
|
+
const { handleGuardrailReset } = await import("./guardrail-reset-gdnaxxvb.js");
|
|
72677
72677
|
return handleGuardrailReset(ctx.args, ctx.sessionID);
|
|
72678
72678
|
},
|
|
72679
72679
|
description: "Reset one exact active invocation/action circuit after repair",
|
|
@@ -72683,7 +72683,7 @@ var COMMAND_REGISTRY = {
|
|
|
72683
72683
|
},
|
|
72684
72684
|
"guardrail-log": {
|
|
72685
72685
|
handler: async (ctx) => {
|
|
72686
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
72686
|
+
const { handleGuardrailLog } = await import("./guardrail-log-e1tmdxxa.js");
|
|
72687
72687
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
72688
72688
|
},
|
|
72689
72689
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -74452,7 +74452,7 @@ Activates when an existing .swarm/plan.md or .swarm/spec.md must be resumed.
|
|
|
74452
74452
|
|
|
74453
74453
|
Purpose: Reconcile saved workflow state with the current swarm and continue without corrupting ownership.
|
|
74454
74454
|
|
|
74455
|
-
ACTION: Load skill ${bundledProjectSkillFileReference("resume")} immediately. Follow the protocol defined there.
|
|
74455
|
+
ACTION: Load skill ${bundledProjectSkillFileReference("swarm-resume")} immediately. Follow the protocol defined there.
|
|
74456
74456
|
|
|
74457
74457
|
HARD CONSTRAINTS:
|
|
74458
74458
|
- Preserve existing plan/spec state and reconcile swarm ownership before continuing work.
|
|
@@ -79673,7 +79673,7 @@ async function precreateStandardWorktreeSession(args) {
|
|
|
79673
79673
|
const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, provisionResult.worktreePath);
|
|
79674
79674
|
if (laneProfile) {
|
|
79675
79675
|
try {
|
|
79676
|
-
const { writeLaneProfileToDiskReal } = await import("./core-
|
|
79676
|
+
const { writeLaneProfileToDiskReal } = await import("./core-fh4e6ex0.js");
|
|
79677
79677
|
await writeLaneProfileToDiskReal(provisionResult.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
|
|
79678
79678
|
} catch {}
|
|
79679
79679
|
}
|
|
@@ -80331,7 +80331,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
|
|
|
80331
80331
|
}
|
|
80332
80332
|
clearWorktreeMergeStatus(statusKey);
|
|
80333
80333
|
try {
|
|
80334
|
-
const { removeLaneProfileFromDiskReal } = await import("./core-
|
|
80334
|
+
const { removeLaneProfileFromDiskReal } = await import("./core-fh4e6ex0.js");
|
|
80335
80335
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
80336
80336
|
} catch {}
|
|
80337
80337
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
detectPosixWrites,
|
|
13
13
|
detectWindowsWrites,
|
|
14
14
|
resolveWriteTargets
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-sg2sx2q7.js";
|
|
16
16
|
import {
|
|
17
17
|
checkFileAuthority,
|
|
18
18
|
classifyFile,
|
|
19
19
|
isInDeclaredScope,
|
|
20
20
|
redactPath,
|
|
21
21
|
redactShellCommand
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-k3d919yf.js";
|
|
23
23
|
|
|
24
24
|
// src/services/guardrail-explain-service.ts
|
|
25
25
|
import path from "path";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
autoCommitDirty,
|
|
4
4
|
cleanUntrackedFiles
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-qqrdmaxq.js";
|
|
6
6
|
import {
|
|
7
7
|
isPathWithinDeclaredScope,
|
|
8
8
|
unsafePathTextReason
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
atomicWriteFile,
|
|
27
27
|
taskEvidencePath,
|
|
28
28
|
withTaskEvidenceLock
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-mken64yj.js";
|
|
30
30
|
import {
|
|
31
31
|
assertProjectRoot
|
|
32
32
|
} from "./index-txbd25bc.js";
|
package/dist/cli/index.js
CHANGED
|
@@ -11,52 +11,52 @@ import {
|
|
|
11
11
|
readCachePackageVersion,
|
|
12
12
|
resolveCommand,
|
|
13
13
|
safeRealpathSync
|
|
14
|
-
} from "./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
14
|
+
} from "./index-sg2sx2q7.js";
|
|
15
|
+
import"./index-44xdtqz8.js";
|
|
16
|
+
import"./index-k3d919yf.js";
|
|
17
|
+
import"./index-x6803sxh.js";
|
|
18
|
+
import"./index-26vyr198.js";
|
|
19
|
+
import"./index-73pmnsjg.js";
|
|
20
20
|
import"./index-134d35c1.js";
|
|
21
21
|
import"./index-nj6rmyeh.js";
|
|
22
22
|
import"./index-y8552snf.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
23
|
+
import"./index-nd8tkb3g.js";
|
|
24
|
+
import"./index-02ajc6d1.js";
|
|
25
25
|
import"./index-70ha9e09.js";
|
|
26
26
|
import"./index-c8s9a3zh.js";
|
|
27
27
|
import"./index-9ss2m4rs.js";
|
|
28
28
|
import"./index-vnn7qq8c.js";
|
|
29
29
|
import"./index-0q2mjxp2.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
30
|
+
import"./index-2e1294d1.js";
|
|
31
|
+
import"./index-rq6aetkv.js";
|
|
32
|
+
import"./index-pvrap7xg.js";
|
|
33
33
|
import"./index-rtry5xyf.js";
|
|
34
34
|
import"./index-zsrtt42s.js";
|
|
35
35
|
import"./index-z4bg1hv8.js";
|
|
36
36
|
import"./index-fxvgaeq4.js";
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
37
|
+
import"./index-z9fyd0d6.js";
|
|
38
|
+
import"./index-qqrdmaxq.js";
|
|
39
|
+
import"./index-q77e475x.js";
|
|
40
|
+
import"./index-xyfdmrv7.js";
|
|
41
41
|
import"./index-6zkm4p7p.js";
|
|
42
42
|
import"./index-556ja8an.js";
|
|
43
43
|
import"./index-b43rt5ph.js";
|
|
44
44
|
import"./index-q7sjgr1y.js";
|
|
45
45
|
import"./index-3g0xk6tk.js";
|
|
46
46
|
import"./index-85gkedsf.js";
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
47
|
+
import"./index-0tfgn5x0.js";
|
|
48
|
+
import"./index-dn6yt0xg.js";
|
|
49
|
+
import"./index-ryecg2st.js";
|
|
50
50
|
import"./index-gprxjmm7.js";
|
|
51
51
|
import"./index-n832052r.js";
|
|
52
52
|
import"./index-4cgee5vh.js";
|
|
53
53
|
import"./index-z6xqpmqg.js";
|
|
54
54
|
import"./index-r3mvsbtq.js";
|
|
55
|
-
import"./index-
|
|
55
|
+
import"./index-3djxegsc.js";
|
|
56
56
|
import {
|
|
57
57
|
init_package,
|
|
58
58
|
package_default
|
|
59
|
-
} from "./index-
|
|
59
|
+
} from "./index-n0vc5b5t.js";
|
|
60
60
|
import {
|
|
61
61
|
DEFAULT_AGENT_CONFIGS,
|
|
62
62
|
init_constants
|
|
@@ -65,10 +65,10 @@ import"./index-9e6fdz2h.js";
|
|
|
65
65
|
import"./index-4rhhvd1a.js";
|
|
66
66
|
import"./index-zjygnfay.js";
|
|
67
67
|
import"./index-ae75rja9.js";
|
|
68
|
-
import"./index-
|
|
69
|
-
import"./index-
|
|
68
|
+
import"./index-79g6edht.js";
|
|
69
|
+
import"./index-mken64yj.js";
|
|
70
70
|
import"./index-bk5tah7q.js";
|
|
71
|
-
import"./index-
|
|
71
|
+
import"./index-7fh82sm1.js";
|
|
72
72
|
import"./index-txbd25bc.js";
|
|
73
73
|
import"./index-aw492hpn.js";
|
|
74
74
|
import"./index-7g4c7s5r.js";
|
|
@@ -9,26 +9,26 @@ import {
|
|
|
9
9
|
maybeEscalateOnViolation,
|
|
10
10
|
maybeQuarantineOnContradiction,
|
|
11
11
|
readRecentEscalations
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
12
|
+
} from "./index-nd8tkb3g.js";
|
|
13
|
+
import"./index-0tfgn5x0.js";
|
|
14
|
+
import"./index-dn6yt0xg.js";
|
|
15
|
+
import"./index-ryecg2st.js";
|
|
16
16
|
import"./index-gprxjmm7.js";
|
|
17
17
|
import"./index-n832052r.js";
|
|
18
18
|
import"./index-4cgee5vh.js";
|
|
19
19
|
import"./index-z6xqpmqg.js";
|
|
20
20
|
import"./index-r3mvsbtq.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
import"./index-3djxegsc.js";
|
|
22
|
+
import"./index-n0vc5b5t.js";
|
|
23
23
|
import"./index-cpg98bh1.js";
|
|
24
24
|
import"./index-9e6fdz2h.js";
|
|
25
25
|
import"./index-4rhhvd1a.js";
|
|
26
26
|
import"./index-zjygnfay.js";
|
|
27
27
|
import"./index-ae75rja9.js";
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
28
|
+
import"./index-79g6edht.js";
|
|
29
|
+
import"./index-mken64yj.js";
|
|
30
30
|
import"./index-bk5tah7q.js";
|
|
31
|
-
import"./index-
|
|
31
|
+
import"./index-7fh82sm1.js";
|
|
32
32
|
import"./index-txbd25bc.js";
|
|
33
33
|
import"./index-aw492hpn.js";
|
|
34
34
|
import"./index-7g4c7s5r.js";
|
|
@@ -29,24 +29,24 @@ import {
|
|
|
29
29
|
resolveKnowledgeCounterBaselinePath,
|
|
30
30
|
resolveKnowledgeEventsPath,
|
|
31
31
|
resolveLegacyApplicationLogPath
|
|
32
|
-
} from "./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
} from "./index-dn6yt0xg.js";
|
|
33
|
+
import"./index-ryecg2st.js";
|
|
34
34
|
import"./index-gprxjmm7.js";
|
|
35
35
|
import"./index-n832052r.js";
|
|
36
36
|
import"./index-4cgee5vh.js";
|
|
37
37
|
import"./index-z6xqpmqg.js";
|
|
38
38
|
import"./index-r3mvsbtq.js";
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
39
|
+
import"./index-3djxegsc.js";
|
|
40
|
+
import"./index-n0vc5b5t.js";
|
|
41
41
|
import"./index-cpg98bh1.js";
|
|
42
42
|
import"./index-9e6fdz2h.js";
|
|
43
43
|
import"./index-4rhhvd1a.js";
|
|
44
44
|
import"./index-zjygnfay.js";
|
|
45
45
|
import"./index-ae75rja9.js";
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
46
|
+
import"./index-79g6edht.js";
|
|
47
|
+
import"./index-mken64yj.js";
|
|
48
48
|
import"./index-bk5tah7q.js";
|
|
49
|
-
import"./index-
|
|
49
|
+
import"./index-7fh82sm1.js";
|
|
50
50
|
import"./index-txbd25bc.js";
|
|
51
51
|
import"./index-aw492hpn.js";
|
|
52
52
|
import"./index-7g4c7s5r.js";
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
resolveLinkDir,
|
|
13
13
|
sanitizeLinkId,
|
|
14
14
|
writeLinkPointer
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
15
|
+
} from "./index-79g6edht.js";
|
|
16
|
+
import"./index-mken64yj.js";
|
|
17
|
+
import"./index-7fh82sm1.js";
|
|
18
18
|
import"./index-txbd25bc.js";
|
|
19
19
|
import"./index-aw492hpn.js";
|
|
20
20
|
import"./index-7g4c7s5r.js";
|