opencode-swarm 7.164.7 → 7.164.8
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/dist/cli/{coder-settlement-p8wwmtnn.js → coder-settlement-qrtjv4jk.js} +3 -3
- package/dist/cli/{config-doctor-wxf488mw.js → config-doctor-hp9dj0fg.js} +2 -2
- package/dist/cli/{core-671ybpbt.js → core-bmmrm36k.js} +1 -1
- package/dist/cli/{curator-drift-nvxv8xkk.js → curator-drift-5sykmtf5.js} +3 -3
- package/dist/cli/{curator-eaz5rj6k.js → curator-k8xdr1mn.js} +22 -22
- package/dist/cli/{curator-llm-factory-swzyfnh6.js → curator-llm-factory-pe61p0r6.js} +22 -22
- package/dist/cli/{evidence-summary-service-deqsc8hj.js → evidence-summary-service-qzpkdv7a.js} +8 -8
- package/dist/cli/{gate-evidence-mafg71qb.js → gate-evidence-jmns4e76.js} +2 -2
- package/dist/cli/{guardrail-explain-ygq7cx9w.js → guardrail-explain-vzwbmvyf.js} +23 -23
- package/dist/cli/{guardrail-log-k3w9dq6x.js → guardrail-log-kckc7cg4.js} +3 -3
- package/dist/cli/{guardrail-reset-ae2step4.js → guardrail-reset-acndbsv9.js} +22 -22
- package/dist/cli/{hive-promoter-a4cs5sbr.js → hive-promoter-wvt5kk99.js} +22 -22
- package/dist/cli/{index-9qkytpwa.js → index-29w778rw.js} +4 -4
- package/dist/cli/{index-3kgg2n6z.js → index-4pm3v7yc.js} +1 -1
- package/dist/cli/{index-h3k3rgyr.js → index-4v28t7jh.js} +1 -1
- package/dist/cli/{index-bvjwmmdc.js → index-52m9kter.js} +54 -54
- package/dist/cli/{index-46yrz972.js → index-9ek9d96g.js} +2 -2
- package/dist/cli/{index-xy59dnvq.js → index-apdp9bc1.js} +1 -1
- package/dist/cli/{index-jkwfajh1.js → index-b10yvv6h.js} +1 -1
- package/dist/cli/{index-x3qzt684.js → index-bv90qkyw.js} +1 -1
- package/dist/cli/{index-4vx89ymn.js → index-bz8vsc8r.js} +5 -5
- package/dist/cli/{index-y75xd50f.js → index-bzesypf5.js} +3 -3
- package/dist/cli/{index-ry4mwbc2.js → index-chcv8c7n.js} +1 -1
- package/dist/cli/{index-c4j9sjcs.js → index-espcjyrx.js} +3 -3
- package/dist/cli/{index-63enf73z.js → index-g2e8b3wm.js} +3 -3
- package/dist/cli/{index-rey1tzcw.js → index-ghnbpez3.js} +4 -4
- package/dist/cli/{index-xc3q62ev.js → index-gkqrk8dd.js} +1 -1
- package/dist/cli/{index-zaab1wz9.js → index-n4fzmqz8.js} +3 -1
- package/dist/cli/{index-388sxv1b.js → index-px4a2ve0.js} +1 -1
- package/dist/cli/{index-fq1wfsmw.js → index-s3z936wh.js} +2 -2
- package/dist/cli/{index-zg34ngdf.js → index-s6ejwhew.js} +1 -1
- package/dist/cli/{index-zg8tvjb0.js → index-whz6am0v.js} +24 -24
- package/dist/cli/{index-x2t2tbm2.js → index-wtnx33hz.js} +2 -2
- package/dist/cli/{index-v1fj9exz.js → index-y6s0gpn3.js} +1 -1
- package/dist/cli/{index-581bcqp9.js → index-ya4ta1pd.js} +1 -1
- package/dist/cli/{index-8ck1jkhd.js → index-ypjffdrg.js} +1 -1
- package/dist/cli/{index-gm65h7bh.js → index-yscwyq3t.js} +3 -3
- package/dist/cli/{index-1ekzd5wf.js → index-z39vxvdx.js} +1 -1
- package/dist/cli/index.js +22 -22
- package/dist/cli/{knowledge-escalator-t532h2ym.js → knowledge-escalator-h9834mrp.js} +6 -6
- package/dist/cli/{knowledge-events-hdtc0cxe.js → knowledge-events-e8hrmjf0.js} +4 -4
- package/dist/cli/{knowledge-store-45jadhmb.js → knowledge-store-w3w9gchr.js} +1 -1
- package/dist/cli/{knowledge-validator-5e6qbq6h.js → knowledge-validator-exd900vc.js} +2 -2
- package/dist/cli/{pending-delegations-z0crvst3.js → pending-delegations-p4ak2e86.js} +1 -1
- package/dist/cli/{pr-workflow-gate-rpdts7wy.js → pr-workflow-gate-pvt2ra6e.js} +22 -22
- package/dist/cli/{scan-cursor-t75qznf3.js → scan-cursor-ysd8b563.js} +2 -2
- package/dist/cli/{schema-8dfjsrk6.js → schema-mbb9g4w4.js} +1 -1
- package/dist/cli/{scope-persistence-zfmz4sws.js → scope-persistence-jrbnhxvx.js} +4 -4
- package/dist/cli/{skill-generator-psdb10jw.js → skill-generator-b4ng5xky.js} +7 -7
- package/dist/cli/{sqlite-loader-8zefc142.js → sqlite-loader-xrnf6bq8.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-xrqssqzd.js → worktree-collision-ownership-ns8p2fks.js} +1 -1
- package/dist/cli/{worktree-isolation-s9m3bgah.js → worktree-isolation-j6zxhjab.js} +22 -22
- package/dist/db/driver-parity.d.ts +12 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
protectedRoots,
|
|
16
16
|
redactDecisionLineForArchive,
|
|
17
17
|
stableCanonicalStringify
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-b10yvv6h.js";
|
|
19
19
|
import {
|
|
20
20
|
detectStraySwarmDirs,
|
|
21
21
|
readDoctorArtifact,
|
|
22
22
|
removeStraySwarmDir,
|
|
23
23
|
runConfigDoctor
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-4pm3v7yc.js";
|
|
25
25
|
import {
|
|
26
26
|
MAX_TRANSIENT_RETRIES,
|
|
27
27
|
archiveEvidence,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
updateTaskCheckpointReceipt,
|
|
62
62
|
updateTaskStatus,
|
|
63
63
|
validateProjectRoot
|
|
64
|
-
} from "./index-
|
|
64
|
+
} from "./index-29w778rw.js";
|
|
65
65
|
import {
|
|
66
66
|
EvaluationTaskV1Schema,
|
|
67
67
|
GateAuditManifestV1Schema,
|
|
@@ -127,15 +127,15 @@ import {
|
|
|
127
127
|
retireSkill,
|
|
128
128
|
selectCandidateEntries,
|
|
129
129
|
syncBundledProjectSkillsIfMissingAsync
|
|
130
|
-
} from "./index-
|
|
130
|
+
} from "./index-yscwyq3t.js";
|
|
131
131
|
import {
|
|
132
132
|
readRecentEscalations
|
|
133
|
-
} from "./index-
|
|
133
|
+
} from "./index-bz8vsc8r.js";
|
|
134
134
|
import {
|
|
135
135
|
alreadyCuratedThisGeneration,
|
|
136
136
|
claimNextScanBatch,
|
|
137
137
|
resolveCohortId
|
|
138
|
-
} from "./index-
|
|
138
|
+
} from "./index-ya4ta1pd.js";
|
|
139
139
|
import {
|
|
140
140
|
CURATOR_INIT_PROMPT,
|
|
141
141
|
CURATOR_PHASE_PROMPT,
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
getGlobalEventBus,
|
|
148
148
|
getGroupCommitWriter,
|
|
149
149
|
importLegacyJsonl
|
|
150
|
-
} from "./index-
|
|
150
|
+
} from "./index-s6ejwhew.js";
|
|
151
151
|
import {
|
|
152
152
|
DURABILITY_CLASSES,
|
|
153
153
|
applySynchronousForClass,
|
|
@@ -162,10 +162,10 @@ import {
|
|
|
162
162
|
resolveSpeckitProjection,
|
|
163
163
|
validateSpeckit,
|
|
164
164
|
writeProjectedSpecSync
|
|
165
|
-
} from "./index-
|
|
165
|
+
} from "./index-bv90qkyw.js";
|
|
166
166
|
import {
|
|
167
167
|
loadDatabaseCtor
|
|
168
|
-
} from "./index-
|
|
168
|
+
} from "./index-n4fzmqz8.js";
|
|
169
169
|
import {
|
|
170
170
|
buildCorrelationId,
|
|
171
171
|
getPrSubscriptionHealth,
|
|
@@ -184,7 +184,7 @@ import {
|
|
|
184
184
|
listCoderSettlementWalStates,
|
|
185
185
|
recoverCoderSettlement,
|
|
186
186
|
recoverStaleCoderSettlements
|
|
187
|
-
} from "./index-
|
|
187
|
+
} from "./index-bzesypf5.js";
|
|
188
188
|
import {
|
|
189
189
|
parsePorcelainV2Snapshot,
|
|
190
190
|
resolveCommitCountSince,
|
|
@@ -228,7 +228,7 @@ import {
|
|
|
228
228
|
validateActionableFields,
|
|
229
229
|
validateLesson,
|
|
230
230
|
validateSkillPath
|
|
231
|
-
} from "./index-
|
|
231
|
+
} from "./index-4v28t7jh.js";
|
|
232
232
|
import {
|
|
233
233
|
authorizeCuration,
|
|
234
234
|
buildConfigFingerprintInput
|
|
@@ -263,12 +263,12 @@ import {
|
|
|
263
263
|
transitionTaskWorkflowEvidence,
|
|
264
264
|
withTaskEvidenceTransaction,
|
|
265
265
|
writeWorkflowWalFile
|
|
266
|
-
} from "./index-
|
|
266
|
+
} from "./index-px4a2ve0.js";
|
|
267
267
|
import {
|
|
268
268
|
makeWorktreeBranchName,
|
|
269
269
|
provisionWorktree,
|
|
270
270
|
removeWorktree
|
|
271
|
-
} from "./index-
|
|
271
|
+
} from "./index-gkqrk8dd.js";
|
|
272
272
|
import {
|
|
273
273
|
DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
|
|
274
274
|
DELEGATION_COMPACTION_HIGH_WATER_BYTES,
|
|
@@ -302,14 +302,14 @@ import {
|
|
|
302
302
|
scanBackgroundCoderReservationsForAdmission,
|
|
303
303
|
scanDelegationsForRecovery,
|
|
304
304
|
sweepStaleDelegations
|
|
305
|
-
} from "./index-
|
|
305
|
+
} from "./index-z39vxvdx.js";
|
|
306
306
|
import {
|
|
307
307
|
MAX_PENDING_SCOPE_BINDINGS,
|
|
308
308
|
canonicalWorkspaceIdentity,
|
|
309
309
|
clearAllScopes,
|
|
310
310
|
clearScopeBindingFromDisk,
|
|
311
311
|
clearScopeBindings
|
|
312
|
-
} from "./index-
|
|
312
|
+
} from "./index-s3z936wh.js";
|
|
313
313
|
import {
|
|
314
314
|
appendLedgerEvent,
|
|
315
315
|
computePlanLedgerHash,
|
|
@@ -324,7 +324,7 @@ import {
|
|
|
324
324
|
readPlanEpochIdentity,
|
|
325
325
|
replayFromLedgerWithStatus,
|
|
326
326
|
takeSnapshotEvent
|
|
327
|
-
} from "./index-
|
|
327
|
+
} from "./index-y6s0gpn3.js";
|
|
328
328
|
import {
|
|
329
329
|
canonicalExistingFilesystemPath,
|
|
330
330
|
canonicalPathForFutureIo,
|
|
@@ -389,7 +389,7 @@ import {
|
|
|
389
389
|
transactFile,
|
|
390
390
|
transactKnowledge,
|
|
391
391
|
wordBigrams
|
|
392
|
-
} from "./index-
|
|
392
|
+
} from "./index-ghnbpez3.js";
|
|
393
393
|
import {
|
|
394
394
|
MAX_EVENT_LOG_ENTRIES,
|
|
395
395
|
_internals as _internals2,
|
|
@@ -405,10 +405,10 @@ import {
|
|
|
405
405
|
recordKnowledgeEvent,
|
|
406
406
|
recordPhaseCloseIntent,
|
|
407
407
|
resolveKnowledgeEventsPath
|
|
408
|
-
} from "./index-
|
|
408
|
+
} from "./index-g2e8b3wm.js";
|
|
409
409
|
import {
|
|
410
410
|
resolveWorktreeIsolationConfig
|
|
411
|
-
} from "./index-
|
|
411
|
+
} from "./index-9ek9d96g.js";
|
|
412
412
|
import {
|
|
413
413
|
RetrospectiveEvidenceSchema
|
|
414
414
|
} from "./index-zg9d392c.js";
|
|
@@ -432,7 +432,7 @@ import {
|
|
|
432
432
|
loadGateOverrides,
|
|
433
433
|
loadPluginConfig,
|
|
434
434
|
loadPluginConfigWithMeta
|
|
435
|
-
} from "./index-
|
|
435
|
+
} from "./index-apdp9bc1.js";
|
|
436
436
|
import {
|
|
437
437
|
DEFAULT_HARNESS_EVOLUTION_CONFIG,
|
|
438
438
|
DEFAULT_PR_REVIEW_RESILIENCE_CONFIG,
|
|
@@ -449,7 +449,7 @@ import {
|
|
|
449
449
|
resolveAutoReviewConfig,
|
|
450
450
|
resolveGeneratedAgentRole,
|
|
451
451
|
stripKnownSwarmPrefix
|
|
452
|
-
} from "./index-
|
|
452
|
+
} from "./index-ypjffdrg.js";
|
|
453
453
|
import {
|
|
454
454
|
init_git_executable,
|
|
455
455
|
resolveGitExecutable,
|
|
@@ -26187,7 +26187,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
|
|
|
26187
26187
|
};
|
|
26188
26188
|
}
|
|
26189
26189
|
async function sweepActiveNearDuplicates(directory, options = {}) {
|
|
26190
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
26190
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-espcjyrx.js");
|
|
26191
26191
|
const { config } = loadPluginConfigWithMeta2(directory);
|
|
26192
26192
|
const sweepConfig = config.learning?.dedup_sweep;
|
|
26193
26193
|
if (sweepConfig?.enabled === false)
|
|
@@ -27324,7 +27324,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
|
|
|
27324
27324
|
}
|
|
27325
27325
|
if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
|
|
27326
27326
|
try {
|
|
27327
|
-
const skillModule = await import("./skill-generator-
|
|
27327
|
+
const skillModule = await import("./skill-generator-b4ng5xky.js");
|
|
27328
27328
|
for (const cand of skillCandidates) {
|
|
27329
27329
|
if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
|
|
27330
27330
|
continue;
|
|
@@ -27796,7 +27796,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
|
|
|
27796
27796
|
} catch {}
|
|
27797
27797
|
}
|
|
27798
27798
|
if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
|
|
27799
|
-
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-
|
|
27799
|
+
const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-h9834mrp.js");
|
|
27800
27800
|
for (const { id } of contradictedEntries) {
|
|
27801
27801
|
try {
|
|
27802
27802
|
await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
|
|
@@ -28628,7 +28628,7 @@ async function runCuratorPostMortem(directory, options = {}) {
|
|
|
28628
28628
|
warnings.push("Failed to collect knowledge summary.");
|
|
28629
28629
|
}
|
|
28630
28630
|
try {
|
|
28631
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
28631
|
+
const { getScanStatus } = await import("./scan-cursor-ysd8b563.js");
|
|
28632
28632
|
const scanStatus = await getScanStatus(directory);
|
|
28633
28633
|
if (scanStatus.remaining_estimate > 0) {
|
|
28634
28634
|
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.`);
|
|
@@ -28800,9 +28800,9 @@ var _internals28 = {
|
|
|
28800
28800
|
verifyPostMortemKnowledgeActions,
|
|
28801
28801
|
repairPostMortemActions,
|
|
28802
28802
|
loadDefaultKnowledgeConfig: async (directory) => {
|
|
28803
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
28803
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-mbb9g4w4.js");
|
|
28804
28804
|
try {
|
|
28805
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
28805
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-espcjyrx.js");
|
|
28806
28806
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
28807
28807
|
return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
28808
28808
|
} catch {
|
|
@@ -28810,11 +28810,11 @@ var _internals28 = {
|
|
|
28810
28810
|
}
|
|
28811
28811
|
},
|
|
28812
28812
|
applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
|
|
28813
|
-
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-
|
|
28813
|
+
const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-k8xdr1mn.js");
|
|
28814
28814
|
return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
|
|
28815
28815
|
},
|
|
28816
28816
|
checkHivePromotions: async (entries, knowledgeConfig, directory) => {
|
|
28817
|
-
const { checkHivePromotions } = await import("./hive-promoter-
|
|
28817
|
+
const { checkHivePromotions } = await import("./hive-promoter-wvt5kk99.js");
|
|
28818
28818
|
return checkHivePromotions(entries, knowledgeConfig, directory);
|
|
28819
28819
|
},
|
|
28820
28820
|
applyProposalTriage: async (directory, triage) => {
|
|
@@ -28823,7 +28823,7 @@ var _internals28 = {
|
|
|
28823
28823
|
activateProposal,
|
|
28824
28824
|
listSkills: listSkills2,
|
|
28825
28825
|
sanitizeSlug
|
|
28826
|
-
} = await import("./skill-generator-
|
|
28826
|
+
} = await import("./skill-generator-b4ng5xky.js");
|
|
28827
28827
|
const result = {
|
|
28828
28828
|
approved: [],
|
|
28829
28829
|
rejected: [],
|
|
@@ -28865,7 +28865,7 @@ var _internals28 = {
|
|
|
28865
28865
|
return result;
|
|
28866
28866
|
},
|
|
28867
28867
|
readPriorDriftReports: async (directory) => {
|
|
28868
|
-
const { readPriorDriftReports } = await import("./curator-drift-
|
|
28868
|
+
const { readPriorDriftReports } = await import("./curator-drift-5sykmtf5.js");
|
|
28869
28869
|
return readPriorDriftReports(directory);
|
|
28870
28870
|
},
|
|
28871
28871
|
readSwarmKnowledge: (directory) => readKnowledge(resolveSwarmKnowledgePath(directory))
|
|
@@ -30152,9 +30152,9 @@ function hashContent(content) {
|
|
|
30152
30152
|
return createHash17("sha1").update(content).digest("hex");
|
|
30153
30153
|
}
|
|
30154
30154
|
async function loadConfigForPolicyCurator(directory) {
|
|
30155
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
30155
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-mbb9g4w4.js");
|
|
30156
30156
|
try {
|
|
30157
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
30157
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-espcjyrx.js");
|
|
30158
30158
|
const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
|
|
30159
30159
|
return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
|
|
30160
30160
|
} catch {
|
|
@@ -42850,7 +42850,7 @@ async function runFinalizeStage(ctx) {
|
|
|
42850
42850
|
}
|
|
42851
42851
|
}
|
|
42852
42852
|
try {
|
|
42853
|
-
const { CuratorConfigSchema: CCS } = await import("./schema-
|
|
42853
|
+
const { CuratorConfigSchema: CCS } = await import("./schema-mbb9g4w4.js");
|
|
42854
42854
|
const { config: pmLoadedConfig } = _internals42.loadPluginConfigWithMeta(ctx.directory);
|
|
42855
42855
|
const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
|
|
42856
42856
|
if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
|
|
@@ -45078,9 +45078,9 @@ var _internals46 = {
|
|
|
45078
45078
|
loadPluginConfigWithMeta,
|
|
45079
45079
|
loadCuratorDeps: async () => {
|
|
45080
45080
|
const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
|
|
45081
|
-
import("./schema-
|
|
45082
|
-
import("./curator-
|
|
45083
|
-
import("./curator-llm-factory-
|
|
45081
|
+
import("./schema-mbb9g4w4.js"),
|
|
45082
|
+
import("./curator-k8xdr1mn.js"),
|
|
45083
|
+
import("./curator-llm-factory-pe61p0r6.js")
|
|
45084
45084
|
]);
|
|
45085
45085
|
return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
|
|
45086
45086
|
}
|
|
@@ -46123,7 +46123,7 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
46123
46123
|
let scanCompleted = false;
|
|
46124
46124
|
let scanRemaining = 0;
|
|
46125
46125
|
try {
|
|
46126
|
-
const { getScanStatus } = await import("./scan-cursor-
|
|
46126
|
+
const { getScanStatus } = await import("./scan-cursor-ysd8b563.js");
|
|
46127
46127
|
const status = await getScanStatus(directory);
|
|
46128
46128
|
scanGeneration = status.generation;
|
|
46129
46129
|
scanCompleted = status.completed;
|
|
@@ -46133,10 +46133,10 @@ async function computeCurationDiagnostics(directory, entries) {
|
|
|
46133
46133
|
try {
|
|
46134
46134
|
const { isLinked: isLinked2 } = await import("./knowledge-link-hhnmc4g1.js");
|
|
46135
46135
|
if (isLinked2(directory)) {
|
|
46136
|
-
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-
|
|
46136
|
+
const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-mbb9g4w4.js");
|
|
46137
46137
|
let config;
|
|
46138
46138
|
try {
|
|
46139
|
-
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-
|
|
46139
|
+
const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-espcjyrx.js");
|
|
46140
46140
|
const loaded = loadPluginConfigWithMeta2(directory);
|
|
46141
46141
|
config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
|
|
46142
46142
|
} catch {
|
|
@@ -47532,7 +47532,7 @@ async function handleDoctorCommand(directory, args) {
|
|
|
47532
47532
|
const result = runConfigDoctor(config, directory);
|
|
47533
47533
|
let output;
|
|
47534
47534
|
if (enableAutoFix && result.hasAutoFixableIssues) {
|
|
47535
|
-
const { runConfigDoctorWithFixes } = await import("./config-doctor-
|
|
47535
|
+
const { runConfigDoctorWithFixes } = await import("./config-doctor-hp9dj0fg.js");
|
|
47536
47536
|
const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
|
|
47537
47537
|
applyLossy: true
|
|
47538
47538
|
});
|
|
@@ -48475,7 +48475,7 @@ async function handleEvidenceCommand(directory, args) {
|
|
|
48475
48475
|
return formatTaskEvidenceMarkdown(evidenceData);
|
|
48476
48476
|
}
|
|
48477
48477
|
async function handleEvidenceSummaryCommand(directory) {
|
|
48478
|
-
const { buildEvidenceSummary } = await import("./evidence-summary-service-
|
|
48478
|
+
const { buildEvidenceSummary } = await import("./evidence-summary-service-qzpkdv7a.js");
|
|
48479
48479
|
const artifact = await buildEvidenceSummary(directory);
|
|
48480
48480
|
if (!artifact) {
|
|
48481
48481
|
return "No plan found. Run `/swarm plan` to check plan status.";
|
|
@@ -68414,7 +68414,7 @@ async function mergeStagedSqlite(destStoragePath, stagedPath) {
|
|
|
68414
68414
|
return { merged: await countRowsSafe(destDbPath), skipped: 0 };
|
|
68415
68415
|
}
|
|
68416
68416
|
try {
|
|
68417
|
-
const { loadDatabaseCtor: loadDatabaseCtor2 } = await import("./sqlite-loader-
|
|
68417
|
+
const { loadDatabaseCtor: loadDatabaseCtor2 } = await import("./sqlite-loader-xrnf6bq8.js");
|
|
68418
68418
|
const Db = loadDatabaseCtor2();
|
|
68419
68419
|
const db = new Db(destDbPath);
|
|
68420
68420
|
let attached = false;
|
|
@@ -68511,7 +68511,7 @@ async function mergeStagedSqlite(destStoragePath, stagedPath) {
|
|
|
68511
68511
|
}
|
|
68512
68512
|
async function countRowsSafe(dbPath) {
|
|
68513
68513
|
try {
|
|
68514
|
-
const { loadDatabaseCtor: loadDatabaseCtor2 } = await import("./sqlite-loader-
|
|
68514
|
+
const { loadDatabaseCtor: loadDatabaseCtor2 } = await import("./sqlite-loader-xrnf6bq8.js");
|
|
68515
68515
|
const Db = loadDatabaseCtor2();
|
|
68516
68516
|
const db = new Db(dbPath);
|
|
68517
68517
|
try {
|
|
@@ -85999,7 +85999,7 @@ function buildDetailedHelp(commandName, entry) {
|
|
|
85999
85999
|
async function handleHelpCommand(ctx) {
|
|
86000
86000
|
const targetCommand = ctx.args.join(" ");
|
|
86001
86001
|
if (!targetCommand) {
|
|
86002
|
-
const { buildHelpText } = await import("./index-
|
|
86002
|
+
const { buildHelpText } = await import("./index-whz6am0v.js");
|
|
86003
86003
|
return buildHelpText();
|
|
86004
86004
|
}
|
|
86005
86005
|
const tokens = targetCommand.split(/\s+/);
|
|
@@ -86008,7 +86008,7 @@ async function handleHelpCommand(ctx) {
|
|
|
86008
86008
|
return _internals102.buildDetailedHelp(resolved.key, resolved.entry);
|
|
86009
86009
|
}
|
|
86010
86010
|
const similar = _internals102.findSimilarCommands(targetCommand);
|
|
86011
|
-
const { buildHelpText: fullHelp } = await import("./index-
|
|
86011
|
+
const { buildHelpText: fullHelp } = await import("./index-whz6am0v.js");
|
|
86012
86012
|
if (similar.length > 0) {
|
|
86013
86013
|
return `Command '/swarm ${targetCommand}' not found.
|
|
86014
86014
|
|
|
@@ -86339,7 +86339,7 @@ var COMMAND_REGISTRY = {
|
|
|
86339
86339
|
},
|
|
86340
86340
|
"guardrail explain": {
|
|
86341
86341
|
handler: async (ctx) => {
|
|
86342
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
86342
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-vzwbmvyf.js");
|
|
86343
86343
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
86344
86344
|
},
|
|
86345
86345
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -86349,7 +86349,7 @@ var COMMAND_REGISTRY = {
|
|
|
86349
86349
|
},
|
|
86350
86350
|
"guardrail reset": {
|
|
86351
86351
|
handler: async (ctx) => {
|
|
86352
|
-
const { handleGuardrailReset } = await import("./guardrail-reset-
|
|
86352
|
+
const { handleGuardrailReset } = await import("./guardrail-reset-acndbsv9.js");
|
|
86353
86353
|
return handleGuardrailReset(ctx.args, ctx.sessionID);
|
|
86354
86354
|
},
|
|
86355
86355
|
description: "Reset one exact active invocation/action circuit after repair",
|
|
@@ -86358,7 +86358,7 @@ var COMMAND_REGISTRY = {
|
|
|
86358
86358
|
},
|
|
86359
86359
|
"guardrail-explain": {
|
|
86360
86360
|
handler: async (ctx) => {
|
|
86361
|
-
const { handleGuardrailExplain } = await import("./guardrail-explain-
|
|
86361
|
+
const { handleGuardrailExplain } = await import("./guardrail-explain-vzwbmvyf.js");
|
|
86362
86362
|
return handleGuardrailExplain(ctx.directory, ctx.args);
|
|
86363
86363
|
},
|
|
86364
86364
|
description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
|
|
@@ -86368,7 +86368,7 @@ var COMMAND_REGISTRY = {
|
|
|
86368
86368
|
},
|
|
86369
86369
|
"guardrail-reset": {
|
|
86370
86370
|
handler: async (ctx) => {
|
|
86371
|
-
const { handleGuardrailReset } = await import("./guardrail-reset-
|
|
86371
|
+
const { handleGuardrailReset } = await import("./guardrail-reset-acndbsv9.js");
|
|
86372
86372
|
return handleGuardrailReset(ctx.args, ctx.sessionID);
|
|
86373
86373
|
},
|
|
86374
86374
|
description: "Reset one exact active invocation/action circuit after repair",
|
|
@@ -86378,7 +86378,7 @@ var COMMAND_REGISTRY = {
|
|
|
86378
86378
|
},
|
|
86379
86379
|
"guardrail-log": {
|
|
86380
86380
|
handler: async (ctx) => {
|
|
86381
|
-
const { handleGuardrailLog } = await import("./guardrail-log-
|
|
86381
|
+
const { handleGuardrailLog } = await import("./guardrail-log-kckc7cg4.js");
|
|
86382
86382
|
return handleGuardrailLog(ctx.directory, ctx.args);
|
|
86383
86383
|
},
|
|
86384
86384
|
description: "Read the guardrail decision log (use --blocks-only for blocks)",
|
|
@@ -92823,7 +92823,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
|
|
|
92823
92823
|
return extracted === expectedSessionId;
|
|
92824
92824
|
}
|
|
92825
92825
|
async function inspectStandardWorktreeCollisionOwnership(identity) {
|
|
92826
|
-
const collisionOwnership = await import("./worktree-collision-ownership-
|
|
92826
|
+
const collisionOwnership = await import("./worktree-collision-ownership-ns8p2fks.js");
|
|
92827
92827
|
return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
|
|
92828
92828
|
}
|
|
92829
92829
|
async function runRecoveryGit(directory, args, timeoutMs = 15000) {
|
|
@@ -93228,7 +93228,7 @@ async function precreateStandardWorktreeSession(args) {
|
|
|
93228
93228
|
const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
|
|
93229
93229
|
if (laneProfile) {
|
|
93230
93230
|
try {
|
|
93231
|
-
const { writeLaneProfileToDiskReal } = await import("./core-
|
|
93231
|
+
const { writeLaneProfileToDiskReal } = await import("./core-bmmrm36k.js");
|
|
93232
93232
|
await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
|
|
93233
93233
|
} catch {}
|
|
93234
93234
|
}
|
|
@@ -94153,7 +94153,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
|
|
|
94153
94153
|
}
|
|
94154
94154
|
clearWorktreeMergeStatus(statusKey);
|
|
94155
94155
|
try {
|
|
94156
|
-
const { removeLaneProfileFromDiskReal } = await import("./core-
|
|
94156
|
+
const { removeLaneProfileFromDiskReal } = await import("./core-bmmrm36k.js");
|
|
94157
94157
|
await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
|
|
94158
94158
|
} catch {}
|
|
94159
94159
|
const state = serializationStateBySessionID.get(dispatch.parentSessionID);
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
init_loader,
|
|
4
4
|
loadPluginConfigWithMeta
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-apdp9bc1.js";
|
|
6
6
|
import {
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-ypjffdrg.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
11
11
|
init_constants
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
resolveSwarmKnowledgePath,
|
|
7
7
|
transactKnowledge,
|
|
8
8
|
wordBigrams
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-ghnbpez3.js";
|
|
10
10
|
import {
|
|
11
11
|
queryHistoricalOutcomes,
|
|
12
12
|
readKnowledgeEvents,
|
|
13
13
|
recordKnowledgeEvent
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-g2e8b3wm.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-exd900vc.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-mbb9g4w4.js");
|
|
231
|
+
const { loadPluginConfigWithMeta } = await import("./index-espcjyrx.js");
|
|
232
232
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
233
233
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
234
234
|
} catch {
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reconcileLandedMerge,
|
|
15
15
|
withTaskEvidenceTransaction,
|
|
16
16
|
writeWorkflowWalFile
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-px4a2ve0.js";
|
|
18
18
|
import {
|
|
19
19
|
appendCoreEventSync
|
|
20
20
|
} from "./index-3sv8t7ca.js";
|
|
@@ -487,7 +487,7 @@ async function cleanupRecoveredWorktree(directory, descriptor) {
|
|
|
487
487
|
awaitingMergeByCallID,
|
|
488
488
|
cleanupStandardWorktreeForCallId,
|
|
489
489
|
standardWorktreeByCallID
|
|
490
|
-
} = await import("./worktree-isolation-
|
|
490
|
+
} = await import("./worktree-isolation-j6zxhjab.js");
|
|
491
491
|
standardWorktreeByCallID.delete(descriptor.callID);
|
|
492
492
|
if (hasResidue)
|
|
493
493
|
awaitingMergeByCallID.set(descriptor.callID, {
|
|
@@ -611,7 +611,7 @@ async function recoverCoderSettlement(directory, taskId) {
|
|
|
611
611
|
awaitingMergeByCallID,
|
|
612
612
|
finishStandardWorktreeDispatch,
|
|
613
613
|
standardWorktreeByCallID
|
|
614
|
-
} = await import("./worktree-isolation-
|
|
614
|
+
} = await import("./worktree-isolation-j6zxhjab.js");
|
|
615
615
|
const descriptor = wal.worktree;
|
|
616
616
|
const reconstructedDispatch = {
|
|
617
617
|
callID: descriptor.callID,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
_internals,
|
|
4
4
|
resolveWorktreeIsolationConfig
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-9ek9d96g.js";
|
|
6
6
|
import {
|
|
7
7
|
ApprovalEvidenceSchema,
|
|
8
8
|
BaseEvidenceSchema,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
loadPluginConfigWithMeta,
|
|
45
45
|
loadPluginConfigWithMetaAsync,
|
|
46
46
|
resetConfigAdvisoryDedup
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-apdp9bc1.js";
|
|
48
48
|
import {
|
|
49
49
|
AUTO_REVIEW_V8_BURN_IN_DECISION,
|
|
50
50
|
AgentOverrideConfigSchema,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
TurboConfigSchema,
|
|
69
69
|
WorktreeIsolationConfigSchema,
|
|
70
70
|
resolveAutoReviewConfig
|
|
71
|
-
} from "./index-
|
|
71
|
+
} from "./index-ypjffdrg.js";
|
|
72
72
|
import"./index-9e6fdz2h.js";
|
|
73
73
|
import"./index-4rhhvd1a.js";
|
|
74
74
|
import {
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "./index-8tqqmsav.js";
|
|
5
5
|
import {
|
|
6
6
|
loadPluginConfigWithMeta
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-apdp9bc1.js";
|
|
8
8
|
import {
|
|
9
9
|
KnowledgeConfigSchema,
|
|
10
10
|
init_schema
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-ypjffdrg.js";
|
|
12
12
|
import {
|
|
13
13
|
observeReceiptTransition
|
|
14
14
|
} from "./index-9ydhzegh.js";
|
|
@@ -2815,7 +2815,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
2815
2815
|
}
|
|
2816
2816
|
let bumps = 0;
|
|
2817
2817
|
if (deltas.length > 0) {
|
|
2818
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
2818
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-w3w9gchr.js");
|
|
2819
2819
|
bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
2820
2820
|
}
|
|
2821
2821
|
return {
|
|
@@ -713,7 +713,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
713
713
|
const {
|
|
714
714
|
readAuthoritativeKnowledgeCounterRollups,
|
|
715
715
|
effectiveRetrievalOutcomes
|
|
716
|
-
} = await import("./knowledge-events-
|
|
716
|
+
} = await import("./knowledge-events-e8hrmjf0.js");
|
|
717
717
|
const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
|
|
718
718
|
const flagIds = new Set;
|
|
719
719
|
for (const e of atFloor) {
|
|
@@ -780,11 +780,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
780
780
|
});
|
|
781
781
|
}
|
|
782
782
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
783
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
784
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
783
|
+
const { quarantineEntry } = await import("./knowledge-validator-exd900vc.js");
|
|
784
|
+
const { KnowledgeConfigSchema } = await import("./schema-mbb9g4w4.js");
|
|
785
785
|
let config;
|
|
786
786
|
try {
|
|
787
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
787
|
+
const { loadPluginConfigWithMeta } = await import("./index-espcjyrx.js");
|
|
788
788
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
789
789
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
790
790
|
} catch {
|
|
@@ -92,7 +92,7 @@ var _internals = {
|
|
|
92
92
|
symlinkSync: fs.symlinkSync
|
|
93
93
|
},
|
|
94
94
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
95
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
95
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-jrbnhxvx.js");
|
|
96
96
|
return realWrite(directory, taskId, files);
|
|
97
97
|
},
|
|
98
98
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -18,10 +18,12 @@ function createNodeDatabaseCtor(DatabaseSyncCtor) {
|
|
|
18
18
|
}
|
|
19
19
|
return stmt;
|
|
20
20
|
}
|
|
21
|
+
static CHANGES_PROBE_SQL = "SELECT changes() AS c, last_insert_rowid() AS r";
|
|
21
22
|
run(sql, ...rest) {
|
|
22
23
|
if (rest.length === 0) {
|
|
23
24
|
this.raw.exec(sql);
|
|
24
|
-
|
|
25
|
+
const row = this.statement(NodeSqliteDatabase.CHANGES_PROBE_SQL).get();
|
|
26
|
+
return { changes: Number(row?.c ?? 0), lastInsertRowid: row?.r ?? 0 };
|
|
25
27
|
}
|
|
26
28
|
const params = rest.length === 1 && Array.isArray(rest[0]) ? rest[0] : rest;
|
|
27
29
|
return this.statement(sql).run(...params);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
computePlanStructureHash,
|
|
4
4
|
derivePlanId
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-y6s0gpn3.js";
|
|
6
6
|
import {
|
|
7
7
|
canonicalExistingFilesystemPath,
|
|
8
8
|
legacyCanonicalExistingFilesystemPath
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./index-556ja8an.js";
|
|
16
16
|
import {
|
|
17
17
|
PlanSchema
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-apdp9bc1.js";
|
|
19
19
|
import {
|
|
20
20
|
assertProjectRoot
|
|
21
21
|
} from "./index-2czt53wz.js";
|