opencode-swarm 7.159.2 → 7.159.3

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.
Files changed (61) hide show
  1. package/dist/cli/{coder-settlement-hny3vh3e.js → coder-settlement-50p7dsya.js} +6 -6
  2. package/dist/cli/{config-doctor-00ex0s3k.js → config-doctor-a7drgs33.js} +2 -2
  3. package/dist/cli/{core-03tedwzg.js → core-madqgdsc.js} +1 -1
  4. package/dist/cli/{curation-policy-z0a5akng.js → curation-policy-ray8h55z.js} +4 -4
  5. package/dist/cli/{curator-n81nzdw8.js → curator-3sz7refy.js} +27 -27
  6. package/dist/cli/{curator-llm-factory-24bfn7h1.js → curator-llm-factory-pyp5kmra.js} +27 -27
  7. package/dist/cli/{evidence-summary-service-nz7y1w2a.js → evidence-summary-service-cwyjkdsa.js} +9 -9
  8. package/dist/cli/{gate-evidence-dxafmzrn.js → gate-evidence-95k5ap1z.js} +4 -4
  9. package/dist/cli/{guardrail-explain-b3k9xrx9.js → guardrail-explain-a13kbmrt.js} +28 -28
  10. package/dist/cli/{guardrail-log-t8c7acxg.js → guardrail-log-nerqk9qb.js} +3 -3
  11. package/dist/cli/{guardrail-reset-0ft2gf03.js → guardrail-reset-chbc0mep.js} +27 -27
  12. package/dist/cli/{hive-promoter-brq9cx7c.js → hive-promoter-4rtxhw7n.js} +27 -27
  13. package/dist/cli/{index-egc8d995.js → index-2fq4a3vk.js} +1 -1
  14. package/dist/cli/{index-bmst1sje.js → index-2jzmg2km.js} +6 -6
  15. package/dist/cli/{index-wzc6vzq6.js → index-40t6s98s.js} +2 -2
  16. package/dist/cli/{index-6sheh3yp.js → index-515nwvdp.js} +1 -1
  17. package/dist/cli/{index-qypnqmcj.js → index-5hfqc3h3.js} +5 -5
  18. package/dist/cli/{index-e1jcdpdg.js → index-6jp5yxye.js} +1 -1
  19. package/dist/cli/{index-w1rhyqw2.js → index-8fyebh3w.js} +1 -1
  20. package/dist/cli/{index-nmp47dmm.js → index-8zw60wya.js} +1 -1
  21. package/dist/cli/{index-q8yma345.js → index-9qw4sbg1.js} +2 -2
  22. package/dist/cli/{index-v7wm4mw8.js → index-bxpqq9th.js} +1 -1
  23. package/dist/cli/{index-1xcve0gc.js → index-ebxmfr4j.js} +1 -1
  24. package/dist/cli/{index-b2dh37cf.js → index-fnxmg8sz.js} +5 -5
  25. package/dist/cli/{index-ky2r092m.js → index-gk6gpe7r.js} +1 -1
  26. package/dist/cli/{index-caqjwnak.js → index-h96xp4t0.js} +1 -1
  27. package/dist/cli/{index-m0gfzxw1.js → index-m9m3emns.js} +2 -2
  28. package/dist/cli/{index-8gh97gkz.js → index-mqfs5f8a.js} +1 -1
  29. package/dist/cli/{index-vq4d1h7t.js → index-nhhek8yw.js} +1 -1
  30. package/dist/cli/{index-rq461prn.js → index-nvz4mp5w.js} +4 -4
  31. package/dist/cli/{index-8ahjx7vt.js → index-p3ym3y8b.js} +4 -4
  32. package/dist/cli/{index-mcan50mx.js → index-qxpfmryw.js} +3 -3
  33. package/dist/cli/{index-eh1gh043.js → index-rq4jcw64.js} +2 -2
  34. package/dist/cli/{index-k7kvrwbj.js → index-sn6mtxxc.js} +29 -29
  35. package/dist/cli/{index-dgt8z19x.js → index-t3wk7q51.js} +1 -1
  36. package/dist/cli/{index-9ev0bbqh.js → index-txwx9p21.js} +61 -61
  37. package/dist/cli/{index-200myvdx.js → index-v3ybemb1.js} +2 -2
  38. package/dist/cli/{index-1e9rzhmr.js → index-ve0xj03m.js} +1 -1
  39. package/dist/cli/{index-7tjamatf.js → index-wwpe4am7.js} +4 -4
  40. package/dist/cli/{index-y55hqgcj.js → index-xqjhbfbx.js} +4 -4
  41. package/dist/cli/{index-jd7mz4yg.js → index-xs32znyz.js} +1 -1
  42. package/dist/cli/{index-p2m1skjz.js → index-y2d381ce.js} +1 -1
  43. package/dist/cli/{index-b5s1n149.js → index-zswy6xgb.js} +3 -3
  44. package/dist/cli/index.js +27 -27
  45. package/dist/cli/{knowledge-escalator-rxagfxnk.js → knowledge-escalator-f80n84ch.js} +9 -9
  46. package/dist/cli/{knowledge-events-ymwdv799.js → knowledge-events-1d7v2krw.js} +7 -7
  47. package/dist/cli/{knowledge-link-n1825n09.js → knowledge-link-vm4caewt.js} +3 -3
  48. package/dist/cli/{knowledge-store-nxm4xvvq.js → knowledge-store-66yxeet7.js} +4 -4
  49. package/dist/cli/{knowledge-validator-gtmq35k8.js → knowledge-validator-p0xcx7jx.js} +6 -6
  50. package/dist/cli/{pending-delegations-zdgazhdf.js → pending-delegations-vad1z71d.js} +1 -1
  51. package/dist/cli/{pr-review-reentry-authorization-jgzb0pma.js → pr-review-reentry-authorization-kn3nny7h.js} +27 -27
  52. package/dist/cli/{pr-subscriptions-pxv24d5k.js → pr-subscriptions-482gzvt6.js} +2 -2
  53. package/dist/cli/{runner-fzgkhx6a.js → runner-sn7a6zd0.js} +4 -4
  54. package/dist/cli/{scan-cursor-fasdj7kj.js → scan-cursor-2v7995nb.js} +5 -5
  55. package/dist/cli/{schema-3x28z3rp.js → schema-dy8fqycb.js} +1 -1
  56. package/dist/cli/{scope-persistence-p8dnxfhx.js → scope-persistence-baty62vx.js} +5 -5
  57. package/dist/cli/{skill-generator-6tjyffgd.js → skill-generator-nwrvtqbz.js} +11 -11
  58. package/dist/cli/{worktree-collision-ownership-3bbn1n2r.js → worktree-collision-ownership-cy24p5mr.js} +3 -3
  59. package/dist/cli/{worktree-isolation-1470tnxc.js → worktree-isolation-8jbx0s8d.js} +27 -27
  60. package/dist/index.js +3 -3
  61. package/package.json +1 -1
@@ -6,7 +6,7 @@ import {
6
6
  resolveExecutableFromPath,
7
7
  runEvaluation,
8
8
  runExternalTool
9
- } from "./index-jd7mz4yg.js";
9
+ } from "./index-xs32znyz.js";
10
10
  import {
11
11
  finalizeShellAuditForClose,
12
12
  isPolicyProtectedPath,
@@ -15,13 +15,13 @@ import {
15
15
  protectedRoots,
16
16
  redactDecisionLineForArchive,
17
17
  stableCanonicalStringify
18
- } from "./index-nmp47dmm.js";
18
+ } from "./index-8zw60wya.js";
19
19
  import {
20
20
  detectStraySwarmDirs,
21
21
  readDoctorArtifact,
22
22
  removeStraySwarmDir,
23
23
  runConfigDoctor
24
- } from "./index-e1jcdpdg.js";
24
+ } from "./index-6jp5yxye.js";
25
25
  import {
26
26
  MAX_TRANSIENT_RETRIES,
27
27
  archiveEvidence,
@@ -68,7 +68,7 @@ import {
68
68
  validateProjectRoot,
69
69
  validateSymlinkBoundary,
70
70
  validateTargetWithinRoot
71
- } from "./index-7tjamatf.js";
71
+ } from "./index-wwpe4am7.js";
72
72
  import {
73
73
  EvaluationTaskV1Schema,
74
74
  GateAuditManifestV1Schema,
@@ -85,7 +85,7 @@ import {
85
85
  saveGateAuditResult,
86
86
  savePromotionDecision,
87
87
  saveTaskSetSnapshot
88
- } from "./index-ky2r092m.js";
88
+ } from "./index-gk6gpe7r.js";
89
89
  import {
90
90
  canonicalHash,
91
91
  canonicalJson,
@@ -129,15 +129,15 @@ import {
129
129
  retireSkill,
130
130
  selectCandidateEntries,
131
131
  syncBundledProjectSkillsIfMissingAsync
132
- } from "./index-y55hqgcj.js";
132
+ } from "./index-xqjhbfbx.js";
133
133
  import {
134
134
  readRecentEscalations
135
- } from "./index-b2dh37cf.js";
135
+ } from "./index-fnxmg8sz.js";
136
136
  import {
137
137
  alreadyCuratedThisGeneration,
138
138
  claimNextScanBatch,
139
139
  resolveCohortId
140
- } from "./index-m0gfzxw1.js";
140
+ } from "./index-m9m3emns.js";
141
141
  import {
142
142
  CURATOR_INIT_PROMPT,
143
143
  CURATOR_PHASE_PROMPT,
@@ -161,7 +161,7 @@ import {
161
161
  listActive,
162
162
  subscribe,
163
163
  unsubscribe
164
- } from "./index-6sheh3yp.js";
164
+ } from "./index-515nwvdp.js";
165
165
  import {
166
166
  clearWorktreeMergeStatus,
167
167
  getAllWorktreeMergeFailures,
@@ -173,7 +173,7 @@ import {
173
173
  listCoderSettlementWalStates,
174
174
  recoverCoderSettlement,
175
175
  recoverStaleCoderSettlements
176
- } from "./index-rq461prn.js";
176
+ } from "./index-nvz4mp5w.js";
177
177
  import {
178
178
  parsePorcelainV2Snapshot,
179
179
  resolveCommitCountSince,
@@ -206,7 +206,7 @@ import {
206
206
  WORKTREE_LIFECYCLE_LOCK_FILE,
207
207
  recordWorktreeProvisioningOwner,
208
208
  removeWorktreeProvisioningOwner
209
- } from "./index-w1rhyqw2.js";
209
+ } from "./index-8fyebh3w.js";
210
210
  import {
211
211
  appendUnactionable,
212
212
  quarantineEntry,
@@ -217,11 +217,11 @@ import {
217
217
  validateActionableFields,
218
218
  validateLesson,
219
219
  validateSkillPath
220
- } from "./index-8ahjx7vt.js";
220
+ } from "./index-p3ym3y8b.js";
221
221
  import {
222
222
  authorizeCuration,
223
223
  buildConfigFingerprintInput
224
- } from "./index-egc8d995.js";
224
+ } from "./index-2fq4a3vk.js";
225
225
  import {
226
226
  cohortConfigFingerprint
227
227
  } from "./index-rtry5xyf.js";
@@ -252,12 +252,12 @@ import {
252
252
  transitionTaskWorkflowEvidence,
253
253
  withTaskEvidenceTransaction,
254
254
  writeWorkflowWalFile
255
- } from "./index-eh1gh043.js";
255
+ } from "./index-rq4jcw64.js";
256
256
  import {
257
257
  makeWorktreeBranchName,
258
258
  provisionWorktree,
259
259
  removeWorktree
260
- } from "./index-8gh97gkz.js";
260
+ } from "./index-mqfs5f8a.js";
261
261
  import {
262
262
  DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
263
263
  DELEGATION_COMPACTION_HIGH_WATER_BYTES,
@@ -272,7 +272,7 @@ import {
272
272
  scanBackgroundCoderReservationsForAdmission,
273
273
  scanDelegationsForRecovery,
274
274
  sweepStaleDelegations
275
- } from "./index-caqjwnak.js";
275
+ } from "./index-h96xp4t0.js";
276
276
  import {
277
277
  compositeSessionKey,
278
278
  sessionKeySuffix
@@ -283,7 +283,7 @@ import {
283
283
  clearAllScopes,
284
284
  clearScopeBindingFromDisk,
285
285
  clearScopeBindings
286
- } from "./index-b5s1n149.js";
286
+ } from "./index-zswy6xgb.js";
287
287
  import {
288
288
  appendLedgerEvent,
289
289
  computePlanHash,
@@ -298,7 +298,7 @@ import {
298
298
  readPlanEpochIdentity,
299
299
  replayFromLedgerWithStatus,
300
300
  takeSnapshotEvent
301
- } from "./index-v7wm4mw8.js";
301
+ } from "./index-bxpqq9th.js";
302
302
  import {
303
303
  CORE_EVENT_LOCKED,
304
304
  appendCoreEventSync,
@@ -357,7 +357,7 @@ import {
357
357
  transactFile,
358
358
  transactKnowledge,
359
359
  wordBigrams
360
- } from "./index-bmst1sje.js";
360
+ } from "./index-2jzmg2km.js";
361
361
  import {
362
362
  MAX_EVENT_LOG_ENTRIES,
363
363
  _internals as _internals2,
@@ -373,10 +373,10 @@ import {
373
373
  recordKnowledgeEvent,
374
374
  recordPhaseCloseIntent,
375
375
  resolveKnowledgeEventsPath
376
- } from "./index-qypnqmcj.js";
376
+ } from "./index-5hfqc3h3.js";
377
377
  import {
378
378
  resolveWorktreeIsolationConfig
379
- } from "./index-wzc6vzq6.js";
379
+ } from "./index-40t6s98s.js";
380
380
  import {
381
381
  RetrospectiveEvidenceSchema
382
382
  } from "./index-ebz97mks.js";
@@ -399,7 +399,7 @@ import {
399
399
  init_loader,
400
400
  loadPluginConfig,
401
401
  loadPluginConfigWithMeta
402
- } from "./index-dgt8z19x.js";
402
+ } from "./index-t3wk7q51.js";
403
403
  import {
404
404
  DEFAULT_HARNESS_EVOLUTION_CONFIG,
405
405
  DEFAULT_PR_REVIEW_RESILIENCE_CONFIG,
@@ -415,7 +415,7 @@ import {
415
415
  package_default,
416
416
  resolveAutoReviewConfig,
417
417
  stripKnownSwarmPrefix
418
- } from "./index-1xcve0gc.js";
418
+ } from "./index-ebxmfr4j.js";
419
419
  import {
420
420
  init_git_executable,
421
421
  resolveGitExecutable,
@@ -455,10 +455,10 @@ import {
455
455
  resolveLinkDir,
456
456
  sanitizeLinkId,
457
457
  writeLinkPointer
458
- } from "./index-vq4d1h7t.js";
458
+ } from "./index-nhhek8yw.js";
459
459
  import {
460
460
  atomicWriteFile
461
- } from "./index-1e9rzhmr.js";
461
+ } from "./index-ve0xj03m.js";
462
462
  import {
463
463
  KNOWLEDGE_SCHEMA_VERSION,
464
464
  OUTCOME_BLOCK_THRESHOLD,
@@ -470,7 +470,7 @@ import {
470
470
  atomicWriteSwarmFileSync,
471
471
  matchTempGrammar,
472
472
  parseTargetBasename
473
- } from "./index-q8yma345.js";
473
+ } from "./index-9qw4sbg1.js";
474
474
  import {
475
475
  assertProjectRoot,
476
476
  hasExplicitProjectBoundary,
@@ -4014,7 +4014,7 @@ function applyRetention(entries, maxEntriesPerSkill) {
4014
4014
  }
4015
4015
  let aged = entries;
4016
4016
  if (newestMs !== Number.NEGATIVE_INFINITY) {
4017
- const cutoff = newestMs - SKILL_USAGE_LIMITS.maxAgeMs;
4017
+ const cutoff = Math.min(newestMs, Date.now()) - SKILL_USAGE_LIMITS.maxAgeMs;
4018
4018
  aged = entries.filter((entry) => {
4019
4019
  const ms = Date.parse(entry.timestamp);
4020
4020
  return Number.isNaN(ms) ? true : ms >= cutoff;
@@ -21454,7 +21454,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
21454
21454
  };
21455
21455
  }
21456
21456
  async function sweepActiveNearDuplicates(directory, options = {}) {
21457
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-mcan50mx.js");
21457
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-qxpfmryw.js");
21458
21458
  const { config } = loadPluginConfigWithMeta2(directory);
21459
21459
  const sweepConfig = config.learning?.dedup_sweep;
21460
21460
  if (sweepConfig?.enabled === false)
@@ -22584,7 +22584,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
22584
22584
  }
22585
22585
  if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
22586
22586
  try {
22587
- const skillModule = await import("./skill-generator-6tjyffgd.js");
22587
+ const skillModule = await import("./skill-generator-nwrvtqbz.js");
22588
22588
  for (const cand of skillCandidates) {
22589
22589
  if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
22590
22590
  continue;
@@ -23056,7 +23056,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
23056
23056
  } catch {}
23057
23057
  }
23058
23058
  if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
23059
- const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-rxagfxnk.js");
23059
+ const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-f80n84ch.js");
23060
23060
  for (const { id } of contradictedEntries) {
23061
23061
  try {
23062
23062
  await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
@@ -23875,7 +23875,7 @@ async function runCuratorPostMortem(directory, options = {}) {
23875
23875
  warnings.push("Failed to collect knowledge summary.");
23876
23876
  }
23877
23877
  try {
23878
- const { getScanStatus } = await import("./scan-cursor-fasdj7kj.js");
23878
+ const { getScanStatus } = await import("./scan-cursor-2v7995nb.js");
23879
23879
  const scanStatus = await getScanStatus(directory);
23880
23880
  if (scanStatus.remaining_estimate > 0) {
23881
23881
  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.`);
@@ -24047,9 +24047,9 @@ var _internals27 = {
24047
24047
  verifyPostMortemKnowledgeActions,
24048
24048
  repairPostMortemActions,
24049
24049
  loadDefaultKnowledgeConfig: async (directory) => {
24050
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-3x28z3rp.js");
24050
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-dy8fqycb.js");
24051
24051
  try {
24052
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-mcan50mx.js");
24052
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-qxpfmryw.js");
24053
24053
  const loaded = loadPluginConfigWithMeta2(directory);
24054
24054
  return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
24055
24055
  } catch {
@@ -24057,11 +24057,11 @@ var _internals27 = {
24057
24057
  }
24058
24058
  },
24059
24059
  applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
24060
- const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-n81nzdw8.js");
24060
+ const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-3sz7refy.js");
24061
24061
  return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
24062
24062
  },
24063
24063
  checkHivePromotions: async (entries, knowledgeConfig, directory) => {
24064
- const { checkHivePromotions } = await import("./hive-promoter-brq9cx7c.js");
24064
+ const { checkHivePromotions } = await import("./hive-promoter-4rtxhw7n.js");
24065
24065
  return checkHivePromotions(entries, knowledgeConfig, directory);
24066
24066
  },
24067
24067
  applyProposalTriage: async (directory, triage) => {
@@ -24070,7 +24070,7 @@ var _internals27 = {
24070
24070
  activateProposal,
24071
24071
  listSkills: listSkills2,
24072
24072
  sanitizeSlug
24073
- } = await import("./skill-generator-6tjyffgd.js");
24073
+ } = await import("./skill-generator-nwrvtqbz.js");
24074
24074
  const result = {
24075
24075
  approved: [],
24076
24076
  rejected: [],
@@ -25400,9 +25400,9 @@ function hashContent(content) {
25400
25400
  return createHash13("sha1").update(content).digest("hex");
25401
25401
  }
25402
25402
  async function loadConfigForPolicyCurator(directory) {
25403
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-3x28z3rp.js");
25403
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-dy8fqycb.js");
25404
25404
  try {
25405
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-mcan50mx.js");
25405
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-qxpfmryw.js");
25406
25406
  const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
25407
25407
  return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
25408
25408
  } catch {
@@ -37655,7 +37655,7 @@ async function runFinalizeStage(ctx) {
37655
37655
  }
37656
37656
  }
37657
37657
  try {
37658
- const { CuratorConfigSchema: CCS } = await import("./schema-3x28z3rp.js");
37658
+ const { CuratorConfigSchema: CCS } = await import("./schema-dy8fqycb.js");
37659
37659
  const { config: pmLoadedConfig } = _internals41.loadPluginConfigWithMeta(ctx.directory);
37660
37660
  const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
37661
37661
  if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
@@ -39879,9 +39879,9 @@ var _internals45 = {
39879
39879
  loadPluginConfigWithMeta,
39880
39880
  loadCuratorDeps: async () => {
39881
39881
  const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
39882
- import("./schema-3x28z3rp.js"),
39883
- import("./curator-n81nzdw8.js"),
39884
- import("./curator-llm-factory-24bfn7h1.js")
39882
+ import("./schema-dy8fqycb.js"),
39883
+ import("./curator-3sz7refy.js"),
39884
+ import("./curator-llm-factory-pyp5kmra.js")
39885
39885
  ]);
39886
39886
  return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
39887
39887
  }
@@ -40890,7 +40890,7 @@ async function computeCurationDiagnostics(directory, entries) {
40890
40890
  let scanCompleted = false;
40891
40891
  let scanRemaining = 0;
40892
40892
  try {
40893
- const { getScanStatus } = await import("./scan-cursor-fasdj7kj.js");
40893
+ const { getScanStatus } = await import("./scan-cursor-2v7995nb.js");
40894
40894
  const status = await getScanStatus(directory);
40895
40895
  scanGeneration = status.generation;
40896
40896
  scanCompleted = status.completed;
@@ -40898,19 +40898,19 @@ async function computeCurationDiagnostics(directory, entries) {
40898
40898
  } catch {}
40899
40899
  let configMatch = null;
40900
40900
  try {
40901
- const { isLinked: isLinked2 } = await import("./knowledge-link-n1825n09.js");
40901
+ const { isLinked: isLinked2 } = await import("./knowledge-link-vm4caewt.js");
40902
40902
  if (isLinked2(directory)) {
40903
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-3x28z3rp.js");
40903
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-dy8fqycb.js");
40904
40904
  let config;
40905
40905
  try {
40906
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-mcan50mx.js");
40906
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-qxpfmryw.js");
40907
40907
  const loaded = loadPluginConfigWithMeta2(directory);
40908
40908
  config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
40909
40909
  } catch {
40910
40910
  config = KnowledgeConfigSchema2.parse({});
40911
40911
  }
40912
40912
  const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
40913
- const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-z0a5akng.js");
40913
+ const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-ray8h55z.js");
40914
40914
  const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
40915
40915
  const cohortFp = await readCohortConfigFingerprint(directory);
40916
40916
  configMatch = cohortFp === null ? null : currentFp === cohortFp;
@@ -42223,7 +42223,7 @@ async function handleDoctorCommand(directory, args) {
42223
42223
  const result = runConfigDoctor(config, directory);
42224
42224
  let output;
42225
42225
  if (enableAutoFix && result.hasAutoFixableIssues) {
42226
- const { runConfigDoctorWithFixes } = await import("./config-doctor-00ex0s3k.js");
42226
+ const { runConfigDoctorWithFixes } = await import("./config-doctor-a7drgs33.js");
42227
42227
  const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
42228
42228
  applyLossy: true
42229
42229
  });
@@ -43163,7 +43163,7 @@ async function handleEvidenceCommand(directory, args) {
43163
43163
  return formatTaskEvidenceMarkdown(evidenceData);
43164
43164
  }
43165
43165
  async function handleEvidenceSummaryCommand(directory) {
43166
- const { buildEvidenceSummary } = await import("./evidence-summary-service-nz7y1w2a.js");
43166
+ const { buildEvidenceSummary } = await import("./evidence-summary-service-cwyjkdsa.js");
43167
43167
  const artifact = await buildEvidenceSummary(directory);
43168
43168
  if (!artifact) {
43169
43169
  return "No plan found. Run `/swarm plan` to check plan status.";
@@ -78391,7 +78391,7 @@ async function runValidationWithTransientRetry(input, candidateContent, baseline
78391
78391
  if (!input.dispatcher) {
78392
78392
  throw new Error("no evaluation dispatcher available (cannot run validation)");
78393
78393
  }
78394
- const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-fzgkhx6a.js");
78394
+ const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-sn7a6zd0.js");
78395
78395
  const executor = createModelEvaluationExecutor2(input.dispatcher, input.sessionId);
78396
78396
  const result = await withProtectedSetIntegrity([evalInputRoot, ...protectedRoots(input.directory)], () => _internals98.evaluateCandidateV1({
78397
78397
  projectRoot: input.directory,
@@ -80486,7 +80486,7 @@ function buildDetailedHelp(commandName, entry) {
80486
80486
  async function handleHelpCommand(ctx) {
80487
80487
  const targetCommand = ctx.args.join(" ");
80488
80488
  if (!targetCommand) {
80489
- const { buildHelpText } = await import("./index-k7kvrwbj.js");
80489
+ const { buildHelpText } = await import("./index-sn6mtxxc.js");
80490
80490
  return buildHelpText();
80491
80491
  }
80492
80492
  const tokens = targetCommand.split(/\s+/);
@@ -80495,7 +80495,7 @@ async function handleHelpCommand(ctx) {
80495
80495
  return _internals101.buildDetailedHelp(resolved.key, resolved.entry);
80496
80496
  }
80497
80497
  const similar = _internals101.findSimilarCommands(targetCommand);
80498
- const { buildHelpText: fullHelp } = await import("./index-k7kvrwbj.js");
80498
+ const { buildHelpText: fullHelp } = await import("./index-sn6mtxxc.js");
80499
80499
  if (similar.length > 0) {
80500
80500
  return `Command '/swarm ${targetCommand}' not found.
80501
80501
 
@@ -80826,7 +80826,7 @@ var COMMAND_REGISTRY = {
80826
80826
  },
80827
80827
  "guardrail explain": {
80828
80828
  handler: async (ctx) => {
80829
- const { handleGuardrailExplain } = await import("./guardrail-explain-b3k9xrx9.js");
80829
+ const { handleGuardrailExplain } = await import("./guardrail-explain-a13kbmrt.js");
80830
80830
  return handleGuardrailExplain(ctx.directory, ctx.args);
80831
80831
  },
80832
80832
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -80836,7 +80836,7 @@ var COMMAND_REGISTRY = {
80836
80836
  },
80837
80837
  "guardrail reset": {
80838
80838
  handler: async (ctx) => {
80839
- const { handleGuardrailReset } = await import("./guardrail-reset-0ft2gf03.js");
80839
+ const { handleGuardrailReset } = await import("./guardrail-reset-chbc0mep.js");
80840
80840
  return handleGuardrailReset(ctx.args, ctx.sessionID);
80841
80841
  },
80842
80842
  description: "Reset one exact active invocation/action circuit after repair",
@@ -80845,7 +80845,7 @@ var COMMAND_REGISTRY = {
80845
80845
  },
80846
80846
  "guardrail-explain": {
80847
80847
  handler: async (ctx) => {
80848
- const { handleGuardrailExplain } = await import("./guardrail-explain-b3k9xrx9.js");
80848
+ const { handleGuardrailExplain } = await import("./guardrail-explain-a13kbmrt.js");
80849
80849
  return handleGuardrailExplain(ctx.directory, ctx.args);
80850
80850
  },
80851
80851
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -80855,7 +80855,7 @@ var COMMAND_REGISTRY = {
80855
80855
  },
80856
80856
  "guardrail-reset": {
80857
80857
  handler: async (ctx) => {
80858
- const { handleGuardrailReset } = await import("./guardrail-reset-0ft2gf03.js");
80858
+ const { handleGuardrailReset } = await import("./guardrail-reset-chbc0mep.js");
80859
80859
  return handleGuardrailReset(ctx.args, ctx.sessionID);
80860
80860
  },
80861
80861
  description: "Reset one exact active invocation/action circuit after repair",
@@ -80865,7 +80865,7 @@ var COMMAND_REGISTRY = {
80865
80865
  },
80866
80866
  "guardrail-log": {
80867
80867
  handler: async (ctx) => {
80868
- const { handleGuardrailLog } = await import("./guardrail-log-t8c7acxg.js");
80868
+ const { handleGuardrailLog } = await import("./guardrail-log-nerqk9qb.js");
80869
80869
  return handleGuardrailLog(ctx.directory, ctx.args);
80870
80870
  },
80871
80871
  description: "Read the guardrail decision log (use --blocks-only for blocks)",
@@ -86858,7 +86858,7 @@ function getDisplayFinalPromptPressure() {
86858
86858
  async function rehydratePrSubscriptions(sessionID, directory) {
86859
86859
  const map = new Map;
86860
86860
  try {
86861
- const { listActive: listActive2 } = await import("./pr-subscriptions-pxv24d5k.js");
86861
+ const { listActive: listActive2 } = await import("./pr-subscriptions-482gzvt6.js");
86862
86862
  const records = await listActive2(directory);
86863
86863
  for (const record of records) {
86864
86864
  if (record.sessionID !== sessionID)
@@ -87304,7 +87304,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
87304
87304
  return extracted === expectedSessionId;
87305
87305
  }
87306
87306
  async function inspectStandardWorktreeCollisionOwnership(identity) {
87307
- const collisionOwnership = await import("./worktree-collision-ownership-3bbn1n2r.js");
87307
+ const collisionOwnership = await import("./worktree-collision-ownership-cy24p5mr.js");
87308
87308
  return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
87309
87309
  }
87310
87310
  async function runRecoveryGit(directory, args, timeoutMs = 15000) {
@@ -87713,7 +87713,7 @@ async function precreateStandardWorktreeSession(args) {
87713
87713
  const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
87714
87714
  if (laneProfile) {
87715
87715
  try {
87716
- const { writeLaneProfileToDiskReal } = await import("./core-03tedwzg.js");
87716
+ const { writeLaneProfileToDiskReal } = await import("./core-madqgdsc.js");
87717
87717
  await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
87718
87718
  } catch {}
87719
87719
  }
@@ -88638,7 +88638,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
88638
88638
  }
88639
88639
  clearWorktreeMergeStatus(statusKey);
88640
88640
  try {
88641
- const { removeLaneProfileFromDiskReal } = await import("./core-03tedwzg.js");
88641
+ const { removeLaneProfileFromDiskReal } = await import("./core-madqgdsc.js");
88642
88642
  await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
88643
88643
  } catch {}
88644
88644
  const state = serializationStateBySessionID.get(dispatch.parentSessionID);
@@ -14,14 +14,14 @@ import {
14
14
  detectWindowsWrites,
15
15
  getSharedClassifierGuardrailBlock,
16
16
  resolveWriteTargets
17
- } from "./index-9ev0bbqh.js";
17
+ } from "./index-txwx9p21.js";
18
18
  import {
19
19
  checkFileAuthority,
20
20
  classifyFile,
21
21
  isInDeclaredScope,
22
22
  redactPath,
23
23
  redactShellCommand
24
- } from "./index-nmp47dmm.js";
24
+ } from "./index-8zw60wya.js";
25
25
 
26
26
  // src/services/guardrail-explain-service.ts
27
27
  import path from "path";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  atomicWriteFileAnyRoot
4
- } from "./index-q8yma345.js";
4
+ } from "./index-9qw4sbg1.js";
5
5
  import {
6
6
  withEvidenceLock
7
7
  } from "./index-av3gnekk.js";
@@ -3,7 +3,7 @@ import {
3
3
  EvaluationRunV1Schema,
4
4
  GateAuditResultV1Schema,
5
5
  getProtectedEvaluationRunIds
6
- } from "./index-ky2r092m.js";
6
+ } from "./index-gk6gpe7r.js";
7
7
  import {
8
8
  loadDatabaseCtor
9
9
  } from "./index-134d35c1.js";
@@ -23,7 +23,7 @@ import {
23
23
  readTaskEvidence,
24
24
  readTaskEvidenceRaw,
25
25
  sanitizeTaskId
26
- } from "./index-eh1gh043.js";
26
+ } from "./index-rq4jcw64.js";
27
27
  import {
28
28
  LedgerStaleWriterError,
29
29
  appendLedgerEvent,
@@ -43,7 +43,7 @@ import {
43
43
  replayFromLedgerWithStatus,
44
44
  takeSnapshotEvent,
45
45
  takeSnapshotWithRetry
46
- } from "./index-v7wm4mw8.js";
46
+ } from "./index-bxpqq9th.js";
47
47
  import {
48
48
  appendCoreEventSync
49
49
  } from "./index-0zerbq1v.js";
@@ -70,7 +70,7 @@ import {
70
70
  } from "./index-r3mvsbtq.js";
71
71
  import {
72
72
  PlanSchema
73
- } from "./index-dgt8z19x.js";
73
+ } from "./index-t3wk7q51.js";
74
74
  import {
75
75
  GIT_BINARY_ENV_VAR,
76
76
  describeGitResolution,
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ALLOWED_SKILL_PATH_PREFIXES,
4
4
  validateSkillPath
5
- } from "./index-8ahjx7vt.js";
5
+ } from "./index-p3ym3y8b.js";
6
6
  import {
7
7
  withTimeoutSignal
8
8
  } from "./index-q7sjgr1y.js";
@@ -12,11 +12,11 @@ import {
12
12
  resolveHiveKnowledgePath,
13
13
  resolveSwarmKnowledgePath,
14
14
  transactKnowledge
15
- } from "./index-bmst1sje.js";
15
+ } from "./index-2jzmg2km.js";
16
16
  import {
17
17
  effectiveRetrievalOutcomes,
18
18
  readAuthoritativeKnowledgeCounterRollups
19
- } from "./index-qypnqmcj.js";
19
+ } from "./index-5hfqc3h3.js";
20
20
  import {
21
21
  advisoryWarn,
22
22
  init_warning_buffer
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  atomicWriteFileAnyRoot,
30
30
  atomicWriteSwarmFile
31
- } from "./index-q8yma345.js";
31
+ } from "./index-9qw4sbg1.js";
32
32
  import {
33
33
  init_logger,
34
34
  log,
@@ -9,7 +9,7 @@ import {
9
9
  readEvaluationRun,
10
10
  saveEvaluationRun,
11
11
  saveTaskSetSnapshot
12
- } from "./index-ky2r092m.js";
12
+ } from "./index-gk6gpe7r.js";
13
13
  import {
14
14
  canonicalHash,
15
15
  computeCandidateInputContentHash,
@@ -4,7 +4,7 @@ import {
4
4
  readShellAuditTail,
5
5
  redactPath,
6
6
  redactShellCommand
7
- } from "./index-nmp47dmm.js";
7
+ } from "./index-8zw60wya.js";
8
8
 
9
9
  // src/services/guardrail-log-service.ts
10
10
  var BLOCK_TYPES = new Set([
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  computePlanStructureHash,
4
4
  derivePlanId
5
- } from "./index-v7wm4mw8.js";
5
+ } from "./index-bxpqq9th.js";
6
6
  import {
7
7
  appendCoreEventSync
8
8
  } from "./index-0zerbq1v.js";
@@ -11,11 +11,11 @@ import {
11
11
  } from "./index-556ja8an.js";
12
12
  import {
13
13
  PlanSchema
14
- } from "./index-dgt8z19x.js";
14
+ } from "./index-t3wk7q51.js";
15
15
  import {
16
16
  atomicWriteSwarmFile,
17
17
  atomicWriteSwarmFileSync
18
- } from "./index-q8yma345.js";
18
+ } from "./index-9qw4sbg1.js";
19
19
  import {
20
20
  assertProjectRoot
21
21
  } from "./index-av3gnekk.js";