opencode-swarm 7.164.13 → 7.165.0

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 (68) hide show
  1. package/.opencode/skills/durable-session-state/SKILL.md +1 -1
  2. package/.opencode/skills/issue-tracer/SKILL.md +140 -286
  3. package/.opencode/skills/issue-tracer/assets/pr-template.md +13 -7
  4. package/.opencode/skills/issue-tracer/references/acceptance-checks.md +66 -0
  5. package/.opencode/skills/issue-tracer/references/critic-gate.md +53 -11
  6. package/.opencode/skills/issue-tracer/references/evidence-artifacts.md +128 -23
  7. package/.opencode/skills/issue-tracer/references/full-resolution-contract.md +69 -0
  8. package/.opencode/skills/issue-tracer/references/install.md +31 -9
  9. package/.opencode/skills/issue-tracer/references/localization-playbook.md +26 -14
  10. package/.opencode/skills/issue-tracer/references/method-provenance.md +19 -3
  11. package/.opencode/skills/issue-tracer/references/phase-0-setup.md +90 -0
  12. package/.opencode/skills/issue-tracer/references/phase-1-intake.md +43 -0
  13. package/.opencode/skills/issue-tracer/references/untrusted-content.md +13 -5
  14. package/.opencode/skills/issue-tracer/scripts/repro-check.sh +416 -0
  15. package/.opencode/skills/issue-tracer/scripts/trace-check.sh +479 -0
  16. package/.opencode/skills/issue-tracer/scripts/trace-init.sh +96 -6
  17. package/dist/cli/{coder-settlement-em2fgg4p.js → coder-settlement-89nt4j7g.js} +3 -3
  18. package/dist/cli/{config-doctor-1m4mrybp.js → config-doctor-gm6f5chm.js} +2 -2
  19. package/dist/cli/{core-zbzdffha.js → core-91p43zwj.js} +1 -1
  20. package/dist/cli/{curator-tn3x5j02.js → curator-4bs2hmy9.js} +19 -19
  21. package/dist/cli/{curator-llm-factory-j76c96t7.js → curator-llm-factory-fhbjwar0.js} +19 -19
  22. package/dist/cli/{evidence-summary-service-7cn9z4sn.js → evidence-summary-service-g1xd8egd.js} +6 -6
  23. package/dist/cli/{gate-evidence-deyzt3hz.js → gate-evidence-gdmgsz7c.js} +2 -2
  24. package/dist/cli/{guardrail-explain-4k2pqj46.js → guardrail-explain-1nfbtpgg.js} +20 -20
  25. package/dist/cli/{guardrail-log-cnbv6vry.js → guardrail-log-nyggdv04.js} +3 -3
  26. package/dist/cli/{guardrail-reset-xhh61cax.js → guardrail-reset-rp9jq0gj.js} +19 -19
  27. package/dist/cli/{hive-promoter-1m8zpz4d.js → hive-promoter-39xb4tx2.js} +19 -19
  28. package/dist/cli/{index-asey3tb3.js → index-0e9jh9c7.js} +1 -1
  29. package/dist/cli/{index-y5hfk7ya.js → index-1v6vc90w.js} +3 -3
  30. package/dist/cli/{index-7z9zqxqt.js → index-2k53pfnc.js} +1 -1
  31. package/dist/cli/{index-s3k7xbqd.js → index-3xyjvx24.js} +2 -2
  32. package/dist/cli/{index-bvkd7at6.js → index-4gmt79q9.js} +1 -1
  33. package/dist/cli/{index-d224mhr9.js → index-58be2gtd.js} +2 -2
  34. package/dist/cli/{index-mpf1tvwf.js → index-5ythtd9t.js} +3 -3
  35. package/dist/cli/{index-7f2r3ysr.js → index-6be5caj8.js} +3 -3
  36. package/dist/cli/{index-fnyw5rzg.js → index-7h94rfem.js} +3 -3
  37. package/dist/cli/{index-hhzzyjm3.js → index-afpkqsdb.js} +1 -1
  38. package/dist/cli/{index-grn6tkbt.js → index-c4ddtrqg.js} +4 -4
  39. package/dist/cli/{index-74514zkh.js → index-e6n7cemz.js} +1 -1
  40. package/dist/cli/{index-g9weyhq6.js → index-g8wdekzz.js} +1 -1
  41. package/dist/cli/{index-qtxevgdx.js → index-gn6ybsc4.js} +3 -3
  42. package/dist/cli/{index-4fhcbe14.js → index-hdakb4n9.js} +1 -1
  43. package/dist/cli/{index-c98rjgjq.js → index-hwz46jj7.js} +50 -50
  44. package/dist/cli/{index-zb6gdym8.js → index-k1ntjzmf.js} +1 -1
  45. package/dist/cli/{index-g11h1qpk.js → index-n3pjcks8.js} +5 -5
  46. package/dist/cli/{index-5h60rtaa.js → index-p7hdp3rp.js} +1 -1
  47. package/dist/cli/{index-3c0z1jnc.js → index-qzvry1n1.js} +21 -21
  48. package/dist/cli/{index-f8jdar6q.js → index-r5hj3nfe.js} +2 -2
  49. package/dist/cli/{index-ndjjvxzz.js → index-y1zhpfk8.js} +1 -1
  50. package/dist/cli/{index-0mwjamha.js → index-zycp24b9.js} +1 -1
  51. package/dist/cli/index.js +19 -19
  52. package/dist/cli/{knowledge-escalator-3fax9y3s.js → knowledge-escalator-eq07pcj3.js} +6 -6
  53. package/dist/cli/{knowledge-events-9cpdyhmb.js → knowledge-events-rv9q9mkm.js} +4 -4
  54. package/dist/cli/{knowledge-store-y35rka0p.js → knowledge-store-cxcr0ttk.js} +1 -1
  55. package/dist/cli/{knowledge-validator-fd761gpx.js → knowledge-validator-8qtd9ys0.js} +2 -2
  56. package/dist/cli/{pending-delegations-t3y19j3n.js → pending-delegations-dp3g8e7k.js} +2 -2
  57. package/dist/cli/{pr-subscriptions-00zp69mt.js → pr-subscriptions-3vx06rar.js} +1 -1
  58. package/dist/cli/{pr-workflow-gate-2h0j8c92.js → pr-workflow-gate-bbet0apk.js} +19 -19
  59. package/dist/cli/{scan-cursor-wppe2gxw.js → scan-cursor-zwm0xng7.js} +2 -2
  60. package/dist/cli/{schema-sec49ppy.js → schema-ebfxgya0.js} +1 -1
  61. package/dist/cli/{scope-persistence-59eyqaz4.js → scope-persistence-6c55akfz.js} +5 -5
  62. package/dist/cli/{skill-generator-56rbmpj7.js → skill-generator-mv5jxzsh.js} +7 -7
  63. package/dist/cli/{snapshot-coordination-init-dnkdc7gx.js → snapshot-coordination-init-n556wa18.js} +19 -19
  64. package/dist/cli/{worktree-collision-ownership-fj9n4mhk.js → worktree-collision-ownership-pp4z4z8p.js} +2 -2
  65. package/dist/cli/{worktree-isolation-vd1s86ya.js → worktree-isolation-69hz9dgg.js} +19 -19
  66. package/dist/config/skill-mirrors.d.ts +3 -3
  67. package/dist/index.js +1 -1
  68. package/package.json +1 -1
@@ -713,7 +713,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
713
713
  const {
714
714
  readAuthoritativeKnowledgeCounterRollups,
715
715
  effectiveRetrievalOutcomes
716
- } = await import("./knowledge-events-9cpdyhmb.js");
716
+ } = await import("./knowledge-events-rv9q9mkm.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-fd761gpx.js");
784
- const { KnowledgeConfigSchema } = await import("./schema-sec49ppy.js");
783
+ const { quarantineEntry } = await import("./knowledge-validator-8qtd9ys0.js");
784
+ const { KnowledgeConfigSchema } = await import("./schema-ebfxgya0.js");
785
785
  let config;
786
786
  try {
787
- const { loadPluginConfigWithMeta } = await import("./index-y5hfk7ya.js");
787
+ const { loadPluginConfigWithMeta } = await import("./index-1v6vc90w.js");
788
788
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
789
789
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
790
790
  } catch {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  autoCommitDirty,
4
4
  cleanUntrackedFiles
5
- } from "./index-5h60rtaa.js";
5
+ } from "./index-p7hdp3rp.js";
6
6
  import {
7
7
  validateSwarmPath
8
8
  } from "./index-anxs69ad.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-grn6tkbt.js";
5
+ } from "./index-c4ddtrqg.js";
6
6
  import {
7
7
  resolveKnowledgeStoreDir
8
8
  } from "./index-6rx1rdaq.js";
@@ -26,11 +26,11 @@ import {
26
26
  } from "./index-7g4c7s5r.js";
27
27
  import {
28
28
  loadPluginConfigWithMeta
29
- } from "./index-0mwjamha.js";
29
+ } from "./index-zycp24b9.js";
30
30
  import {
31
31
  KnowledgeConfigSchema,
32
32
  init_schema
33
- } from "./index-asey3tb3.js";
33
+ } from "./index-0e9jh9c7.js";
34
34
  import {
35
35
  init_logger,
36
36
  warn
@@ -2813,7 +2813,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
2813
2813
  }
2814
2814
  let bumps = 0;
2815
2815
  if (deltas.length > 0) {
2816
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-y35rka0p.js");
2816
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-cxcr0ttk.js");
2817
2817
  bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
2818
2818
  }
2819
2819
  return {
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  init_schema,
19
19
  stripKnownSwarmPrefix
20
- } from "./index-asey3tb3.js";
20
+ } from "./index-0e9jh9c7.js";
21
21
  import {
22
22
  init_constants
23
23
  } from "./index-a0d4fp6r.js";
@@ -25,13 +25,13 @@ import {
25
25
  protectedRoots,
26
26
  redactDecisionLineForArchive,
27
27
  stableCanonicalStringify
28
- } from "./index-4fhcbe14.js";
28
+ } from "./index-hdakb4n9.js";
29
29
  import {
30
30
  detectStraySwarmDirs,
31
31
  readDoctorArtifact,
32
32
  removeStraySwarmDir,
33
33
  runConfigDoctor
34
- } from "./index-zb6gdym8.js";
34
+ } from "./index-k1ntjzmf.js";
35
35
  import {
36
36
  MAX_TRANSIENT_RETRIES,
37
37
  archiveEvidence,
@@ -71,7 +71,7 @@ import {
71
71
  updateTaskCheckpointReceipt,
72
72
  updateTaskStatus,
73
73
  validateProjectRoot
74
- } from "./index-mpf1tvwf.js";
74
+ } from "./index-5ythtd9t.js";
75
75
  import {
76
76
  EvaluationTaskV1Schema,
77
77
  GateAuditManifestV1Schema,
@@ -127,15 +127,15 @@ import {
127
127
  retireSkill,
128
128
  selectCandidateEntries,
129
129
  syncBundledProjectSkillsIfMissingAsync
130
- } from "./index-7f2r3ysr.js";
130
+ } from "./index-6be5caj8.js";
131
131
  import {
132
132
  readRecentEscalations
133
- } from "./index-g11h1qpk.js";
133
+ } from "./index-n3pjcks8.js";
134
134
  import {
135
135
  alreadyCuratedThisGeneration,
136
136
  claimNextScanBatch,
137
137
  resolveCohortId
138
- } from "./index-g9weyhq6.js";
138
+ } from "./index-g8wdekzz.js";
139
139
  import {
140
140
  CURATOR_INIT_PROMPT,
141
141
  CURATOR_PHASE_PROMPT,
@@ -175,7 +175,7 @@ import {
175
175
  listCoderSettlementWalStates,
176
176
  recoverCoderSettlement,
177
177
  recoverStaleCoderSettlements
178
- } from "./index-fnyw5rzg.js";
178
+ } from "./index-7h94rfem.js";
179
179
  import {
180
180
  parsePorcelainV2Snapshot,
181
181
  resolveCommitCountSince,
@@ -244,13 +244,13 @@ import {
244
244
  transitionTaskWorkflowEvidence,
245
245
  withTaskEvidenceTransaction,
246
246
  writeWorkflowWalFile
247
- } from "./index-74514zkh.js";
247
+ } from "./index-e6n7cemz.js";
248
248
  import {
249
249
  isPathUnderSwarmWorktreeBase,
250
250
  makeWorktreeBranchName,
251
251
  provisionWorktree,
252
252
  removeWorktree
253
- } from "./index-5h60rtaa.js";
253
+ } from "./index-p7hdp3rp.js";
254
254
  import {
255
255
  DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
256
256
  DELEGATION_COMPACTION_HIGH_WATER_BYTES,
@@ -284,7 +284,7 @@ import {
284
284
  scanBackgroundCoderReservationsForAdmission,
285
285
  scanDelegationsForRecovery,
286
286
  sweepStaleDelegations
287
- } from "./index-hhzzyjm3.js";
287
+ } from "./index-afpkqsdb.js";
288
288
  import {
289
289
  MAX_EVENT_LOG_ENTRIES,
290
290
  _internals,
@@ -300,7 +300,7 @@ import {
300
300
  recordKnowledgeEvent,
301
301
  recordPhaseCloseIntent,
302
302
  resolveKnowledgeEventsPath
303
- } from "./index-qtxevgdx.js";
303
+ } from "./index-gn6ybsc4.js";
304
304
  import {
305
305
  estimateTokens,
306
306
  readSwarmFileAsync,
@@ -326,7 +326,7 @@ import {
326
326
  validateActionableFields,
327
327
  validateLesson,
328
328
  validateSkillPath
329
- } from "./index-7z9zqxqt.js";
329
+ } from "./index-2k53pfnc.js";
330
330
  import {
331
331
  authorizeCuration,
332
332
  buildConfigFingerprintInput
@@ -336,7 +336,7 @@ import {
336
336
  } from "./index-rtry5xyf.js";
337
337
  import {
338
338
  resolveWorktreeIsolationConfig
339
- } from "./index-d224mhr9.js";
339
+ } from "./index-58be2gtd.js";
340
340
  import {
341
341
  RetrospectiveEvidenceSchema
342
342
  } from "./index-3qf1vxtb.js";
@@ -346,7 +346,7 @@ import {
346
346
  clearAllScopes,
347
347
  clearScopeBindingFromDisk,
348
348
  clearScopeBindings
349
- } from "./index-s3k7xbqd.js";
349
+ } from "./index-3xyjvx24.js";
350
350
  import {
351
351
  appendLedgerEvent,
352
352
  computePlanLedgerHash,
@@ -359,7 +359,7 @@ import {
359
359
  readPlanEpochIdentity,
360
360
  replayFromLedgerWithStatus,
361
361
  takeSnapshotEvent
362
- } from "./index-ndjjvxzz.js";
362
+ } from "./index-y1zhpfk8.js";
363
363
  import {
364
364
  CORE_EVENT_LOCKED,
365
365
  appendCoreEventSync,
@@ -445,7 +445,7 @@ import {
445
445
  transactFile,
446
446
  transactKnowledge,
447
447
  wordBigrams
448
- } from "./index-grn6tkbt.js";
448
+ } from "./index-c4ddtrqg.js";
449
449
  import {
450
450
  resolveHiveDataDir,
451
451
  resolveHiveEventsPath,
@@ -501,7 +501,7 @@ import {
501
501
  loadGateOverrides,
502
502
  loadPluginConfig,
503
503
  loadPluginConfigWithMeta
504
- } from "./index-0mwjamha.js";
504
+ } from "./index-zycp24b9.js";
505
505
  import {
506
506
  init_git_executable,
507
507
  resolveGitExecutable,
@@ -528,7 +528,7 @@ import {
528
528
  resolveAutoReviewConfig,
529
529
  resolveGeneratedAgentRole,
530
530
  stripKnownSwarmPrefix
531
- } from "./index-asey3tb3.js";
531
+ } from "./index-0e9jh9c7.js";
532
532
  import {
533
533
  AGENT_TOOL_MAP,
534
534
  ALL_AGENT_NAMES,
@@ -9415,7 +9415,7 @@ async function importLegacyPrWorkflowGateStateIfNeeded(directory, sessionID, all
9415
9415
  return null;
9416
9416
  throw error2;
9417
9417
  }
9418
- const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-2h0j8c92.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
9418
+ const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-bbet0apk.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
9419
9419
  if (!legacy)
9420
9420
  return null;
9421
9421
  const namespace = workflowGateStateCoordinationNamespace(sessionID);
@@ -9485,7 +9485,7 @@ async function deleteStateWhileLocked(directory, sessionID, options = {}) {
9485
9485
  let recoveryState = null;
9486
9486
  if (!currentAuthoritative) {
9487
9487
  if (options.allowSalvagedRead) {
9488
- const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-2h0j8c92.js");
9488
+ const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-bbet0apk.js");
9489
9489
  recoveryState = (await readPrWorkflowGateStateForRecovery(directory, normalizedSessionID))?.state ?? null;
9490
9490
  }
9491
9491
  if (!recoveryState) {
@@ -26212,7 +26212,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
26212
26212
  };
26213
26213
  }
26214
26214
  async function sweepActiveNearDuplicates(directory, options = {}) {
26215
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-y5hfk7ya.js");
26215
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-1v6vc90w.js");
26216
26216
  const { config } = loadPluginConfigWithMeta2(directory);
26217
26217
  const sweepConfig = config.learning?.dedup_sweep;
26218
26218
  if (sweepConfig?.enabled === false)
@@ -27336,7 +27336,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
27336
27336
  }
27337
27337
  if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
27338
27338
  try {
27339
- const skillModule = await import("./skill-generator-56rbmpj7.js");
27339
+ const skillModule = await import("./skill-generator-mv5jxzsh.js");
27340
27340
  for (const cand of skillCandidates) {
27341
27341
  if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
27342
27342
  continue;
@@ -27808,7 +27808,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
27808
27808
  } catch {}
27809
27809
  }
27810
27810
  if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
27811
- const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-3fax9y3s.js");
27811
+ const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-eq07pcj3.js");
27812
27812
  for (const { id } of contradictedEntries) {
27813
27813
  try {
27814
27814
  await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
@@ -28640,7 +28640,7 @@ async function runCuratorPostMortem(directory, options = {}) {
28640
28640
  warnings.push("Failed to collect knowledge summary.");
28641
28641
  }
28642
28642
  try {
28643
- const { getScanStatus } = await import("./scan-cursor-wppe2gxw.js");
28643
+ const { getScanStatus } = await import("./scan-cursor-zwm0xng7.js");
28644
28644
  const scanStatus = await getScanStatus(directory);
28645
28645
  if (scanStatus.remaining_estimate > 0) {
28646
28646
  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.`);
@@ -28812,9 +28812,9 @@ var _internals27 = {
28812
28812
  verifyPostMortemKnowledgeActions,
28813
28813
  repairPostMortemActions,
28814
28814
  loadDefaultKnowledgeConfig: async (directory) => {
28815
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-sec49ppy.js");
28815
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-ebfxgya0.js");
28816
28816
  try {
28817
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-y5hfk7ya.js");
28817
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-1v6vc90w.js");
28818
28818
  const loaded = loadPluginConfigWithMeta2(directory);
28819
28819
  return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
28820
28820
  } catch {
@@ -28822,11 +28822,11 @@ var _internals27 = {
28822
28822
  }
28823
28823
  },
28824
28824
  applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
28825
- const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-tn3x5j02.js");
28825
+ const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-4bs2hmy9.js");
28826
28826
  return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
28827
28827
  },
28828
28828
  checkHivePromotions: async (entries, knowledgeConfig, directory) => {
28829
- const { checkHivePromotions } = await import("./hive-promoter-1m8zpz4d.js");
28829
+ const { checkHivePromotions } = await import("./hive-promoter-39xb4tx2.js");
28830
28830
  return checkHivePromotions(entries, knowledgeConfig, directory);
28831
28831
  },
28832
28832
  applyProposalTriage: async (directory, triage) => {
@@ -28835,7 +28835,7 @@ var _internals27 = {
28835
28835
  activateProposal,
28836
28836
  listSkills: listSkills2,
28837
28837
  sanitizeSlug
28838
- } = await import("./skill-generator-56rbmpj7.js");
28838
+ } = await import("./skill-generator-mv5jxzsh.js");
28839
28839
  const result = {
28840
28840
  approved: [],
28841
28841
  rejected: [],
@@ -30164,9 +30164,9 @@ function hashContent(content) {
30164
30164
  return createHash17("sha1").update(content).digest("hex");
30165
30165
  }
30166
30166
  async function loadConfigForPolicyCurator(directory) {
30167
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-sec49ppy.js");
30167
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-ebfxgya0.js");
30168
30168
  try {
30169
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-y5hfk7ya.js");
30169
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-1v6vc90w.js");
30170
30170
  const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
30171
30171
  return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
30172
30172
  } catch {
@@ -31649,7 +31649,7 @@ function serializeAgentSession(s) {
31649
31649
  }
31650
31650
  async function writeSnapshot(directory, state) {
31651
31651
  try {
31652
- const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-dnkdc7gx.js");
31652
+ const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-n556wa18.js");
31653
31653
  await ensureSnapshotCoordinationReady(directory);
31654
31654
  const snapshot = {
31655
31655
  version: 3,
@@ -43875,7 +43875,7 @@ async function runFinalizeStage(ctx) {
43875
43875
  }
43876
43876
  }
43877
43877
  try {
43878
- const { CuratorConfigSchema: CCS } = await import("./schema-sec49ppy.js");
43878
+ const { CuratorConfigSchema: CCS } = await import("./schema-ebfxgya0.js");
43879
43879
  const { config: pmLoadedConfig } = _internals42.loadPluginConfigWithMeta(ctx.directory);
43880
43880
  const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
43881
43881
  if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
@@ -46134,9 +46134,9 @@ var _internals46 = {
46134
46134
  loadPluginConfigWithMeta,
46135
46135
  loadCuratorDeps: async () => {
46136
46136
  const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
46137
- import("./schema-sec49ppy.js"),
46138
- import("./curator-tn3x5j02.js"),
46139
- import("./curator-llm-factory-j76c96t7.js")
46137
+ import("./schema-ebfxgya0.js"),
46138
+ import("./curator-4bs2hmy9.js"),
46139
+ import("./curator-llm-factory-fhbjwar0.js")
46140
46140
  ]);
46141
46141
  return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
46142
46142
  }
@@ -47185,7 +47185,7 @@ async function computeCurationDiagnostics(directory, entries2) {
47185
47185
  let scanCompleted = false;
47186
47186
  let scanRemaining = 0;
47187
47187
  try {
47188
- const { getScanStatus } = await import("./scan-cursor-wppe2gxw.js");
47188
+ const { getScanStatus } = await import("./scan-cursor-zwm0xng7.js");
47189
47189
  const status = await getScanStatus(directory);
47190
47190
  scanGeneration = status.generation;
47191
47191
  scanCompleted = status.completed;
@@ -47195,10 +47195,10 @@ async function computeCurationDiagnostics(directory, entries2) {
47195
47195
  try {
47196
47196
  const { isLinked: isLinked2 } = await import("./knowledge-link-dgvbqjqg.js");
47197
47197
  if (isLinked2(directory)) {
47198
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-sec49ppy.js");
47198
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-ebfxgya0.js");
47199
47199
  let config;
47200
47200
  try {
47201
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-y5hfk7ya.js");
47201
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-1v6vc90w.js");
47202
47202
  const loaded = loadPluginConfigWithMeta2(directory);
47203
47203
  config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
47204
47204
  } catch {
@@ -48594,7 +48594,7 @@ async function handleDoctorCommand(directory, args) {
48594
48594
  const result = runConfigDoctor(config, directory);
48595
48595
  let output;
48596
48596
  if (enableAutoFix && result.hasAutoFixableIssues) {
48597
- const { runConfigDoctorWithFixes } = await import("./config-doctor-1m4mrybp.js");
48597
+ const { runConfigDoctorWithFixes } = await import("./config-doctor-gm6f5chm.js");
48598
48598
  const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
48599
48599
  applyLossy: true
48600
48600
  });
@@ -49537,7 +49537,7 @@ async function handleEvidenceCommand(directory, args) {
49537
49537
  return formatTaskEvidenceMarkdown(evidenceData);
49538
49538
  }
49539
49539
  async function handleEvidenceSummaryCommand(directory) {
49540
- const { buildEvidenceSummary } = await import("./evidence-summary-service-7cn9z4sn.js");
49540
+ const { buildEvidenceSummary } = await import("./evidence-summary-service-g1xd8egd.js");
49541
49541
  const artifact = await buildEvidenceSummary(directory);
49542
49542
  if (!artifact) {
49543
49543
  return "No plan found. Run `/swarm plan` to check plan status.";
@@ -87531,7 +87531,7 @@ function buildDetailedHelp(commandName, entry) {
87531
87531
  async function handleHelpCommand(ctx) {
87532
87532
  const targetCommand = ctx.args.join(" ");
87533
87533
  if (!targetCommand) {
87534
- const { buildHelpText } = await import("./index-3c0z1jnc.js");
87534
+ const { buildHelpText } = await import("./index-qzvry1n1.js");
87535
87535
  return buildHelpText();
87536
87536
  }
87537
87537
  const tokens = targetCommand.split(/\s+/);
@@ -87545,7 +87545,7 @@ async function handleHelpCommand(ctx) {
87545
87545
  > Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
87546
87546
  }
87547
87547
  const similar = _internals102.findSimilarCommands(targetCommand);
87548
- const { buildHelpText: fullHelp } = await import("./index-3c0z1jnc.js");
87548
+ const { buildHelpText: fullHelp } = await import("./index-qzvry1n1.js");
87549
87549
  if (similar.length > 0) {
87550
87550
  return `Command '/swarm ${targetCommand}' not found.
87551
87551
 
@@ -87850,7 +87850,7 @@ var COMMAND_REGISTRY = {
87850
87850
  },
87851
87851
  "guardrail explain": {
87852
87852
  handler: async (ctx) => {
87853
- const { handleGuardrailExplain } = await import("./guardrail-explain-4k2pqj46.js");
87853
+ const { handleGuardrailExplain } = await import("./guardrail-explain-1nfbtpgg.js");
87854
87854
  return handleGuardrailExplain(ctx.directory, ctx.args);
87855
87855
  },
87856
87856
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -87860,7 +87860,7 @@ var COMMAND_REGISTRY = {
87860
87860
  },
87861
87861
  "guardrail reset": {
87862
87862
  handler: async (ctx) => {
87863
- const { handleGuardrailReset } = await import("./guardrail-reset-xhh61cax.js");
87863
+ const { handleGuardrailReset } = await import("./guardrail-reset-rp9jq0gj.js");
87864
87864
  return handleGuardrailReset(ctx.args, ctx.sessionID);
87865
87865
  },
87866
87866
  description: "Reset one exact active invocation/action circuit after repair",
@@ -87881,7 +87881,7 @@ var COMMAND_REGISTRY = {
87881
87881
  },
87882
87882
  "guardrail-log": {
87883
87883
  handler: async (ctx) => {
87884
- const { handleGuardrailLog } = await import("./guardrail-log-cnbv6vry.js");
87884
+ const { handleGuardrailLog } = await import("./guardrail-log-nyggdv04.js");
87885
87885
  return handleGuardrailLog(ctx.directory, ctx.args);
87886
87886
  },
87887
87887
  description: "Read the guardrail decision log (use --blocks-only for blocks)",
@@ -93907,7 +93907,7 @@ function getDisplayFinalPromptPressure() {
93907
93907
  async function rehydratePrSubscriptions(sessionID, directory) {
93908
93908
  const map = new Map;
93909
93909
  try {
93910
- const { listActive: listActive2 } = await import("./pr-subscriptions-00zp69mt.js");
93910
+ const { listActive: listActive2 } = await import("./pr-subscriptions-3vx06rar.js");
93911
93911
  const records = await listActive2(directory);
93912
93912
  for (const record of records) {
93913
93913
  if (record.sessionID !== sessionID)
@@ -94353,7 +94353,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
94353
94353
  return extracted === expectedSessionId;
94354
94354
  }
94355
94355
  async function inspectStandardWorktreeCollisionOwnership(identity) {
94356
- const collisionOwnership = await import("./worktree-collision-ownership-fj9n4mhk.js");
94356
+ const collisionOwnership = await import("./worktree-collision-ownership-pp4z4z8p.js");
94357
94357
  return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
94358
94358
  }
94359
94359
  async function runRecoveryGit(directory, args, timeoutMs = 15000) {
@@ -94766,7 +94766,7 @@ async function precreateStandardWorktreeSession(args) {
94766
94766
  const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
94767
94767
  if (laneProfile) {
94768
94768
  try {
94769
- const { writeLaneProfileToDiskReal } = await import("./core-zbzdffha.js");
94769
+ const { writeLaneProfileToDiskReal } = await import("./core-91p43zwj.js");
94770
94770
  await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
94771
94771
  } catch {}
94772
94772
  }
@@ -95700,7 +95700,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
95700
95700
  }
95701
95701
  clearWorktreeMergeStatus(statusKey);
95702
95702
  try {
95703
- const { removeLaneProfileFromDiskReal } = await import("./core-zbzdffha.js");
95703
+ const { removeLaneProfileFromDiskReal } = await import("./core-91p43zwj.js");
95704
95704
  await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
95705
95705
  } catch {}
95706
95706
  const state = serializationStateBySessionID.get(dispatch.parentSessionID);
@@ -12,7 +12,7 @@ import {
12
12
  PluginConfigSchema,
13
13
  init_schema,
14
14
  stripKnownSwarmPrefix
15
- } from "./index-asey3tb3.js";
15
+ } from "./index-0e9jh9c7.js";
16
16
  import {
17
17
  ALL_AGENT_NAMES,
18
18
  TOOL_NAME_SET,
@@ -3,7 +3,7 @@ import {
3
3
  queryHistoricalOutcomes,
4
4
  readKnowledgeEvents,
5
5
  recordKnowledgeEvent
6
- } from "./index-qtxevgdx.js";
6
+ } from "./index-gn6ybsc4.js";
7
7
  import {
8
8
  jaccardBigram,
9
9
  readKnowledge,
@@ -11,7 +11,7 @@ import {
11
11
  resolveSwarmKnowledgePath,
12
12
  transactKnowledge,
13
13
  wordBigrams
14
- } from "./index-grn6tkbt.js";
14
+ } from "./index-c4ddtrqg.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-fd761gpx.js");
227
+ const { quarantineEntry } = await import("./knowledge-validator-8qtd9ys0.js");
228
228
  let policyConfig;
229
229
  try {
230
- const { KnowledgeConfigSchema } = await import("./schema-sec49ppy.js");
231
- const { loadPluginConfigWithMeta } = await import("./index-y5hfk7ya.js");
230
+ const { KnowledgeConfigSchema } = await import("./schema-ebfxgya0.js");
231
+ const { loadPluginConfigWithMeta } = await import("./index-1v6vc90w.js");
232
232
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
233
233
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
234
234
  } 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-59eyqaz4.js");
95
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-6c55akfz.js");
96
96
  return realWrite(directory, taskId, files);
97
97
  },
98
98
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-f8jdar6q.js";
4
+ } from "./index-r5hj3nfe.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-bvkd7at6.js";
7
+ } from "./index-4gmt79q9.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -94,43 +94,43 @@ import {
94
94
  handleWriteRetroCommand,
95
95
  normalizeSwarmCommandInput,
96
96
  resolveCommand
97
- } from "./index-c98rjgjq.js";
97
+ } from "./index-hwz46jj7.js";
98
98
  import"./index-8d90gzaz.js";
99
99
  import"./index-f36hy1x4.js";
100
- import"./index-4fhcbe14.js";
101
- import"./index-zb6gdym8.js";
102
- import"./index-mpf1tvwf.js";
100
+ import"./index-hdakb4n9.js";
101
+ import"./index-k1ntjzmf.js";
102
+ import"./index-5ythtd9t.js";
103
103
  import"./index-tqw8w2n5.js";
104
104
  import"./index-txdagbh7.js";
105
105
  import"./index-cw912re7.js";
106
- import"./index-7f2r3ysr.js";
107
- import"./index-g11h1qpk.js";
108
- import"./index-g9weyhq6.js";
106
+ import"./index-6be5caj8.js";
107
+ import"./index-n3pjcks8.js";
108
+ import"./index-g8wdekzz.js";
109
109
  import"./index-70ha9e09.js";
110
110
  import"./index-dh5th4jn.js";
111
111
  import"./index-9ss2m4rs.js";
112
112
  import"./index-ptsqnxwd.js";
113
113
  import"./index-zsrtt42s.js";
114
- import"./index-fnyw5rzg.js";
114
+ import"./index-7h94rfem.js";
115
115
  import"./index-6chhqq2n.js";
116
116
  import"./index-8bdk7124.js";
117
117
  import"./index-b43rt5ph.js";
118
118
  import"./index-q7sjgr1y.js";
119
- import"./index-74514zkh.js";
120
- import"./index-5h60rtaa.js";
121
- import"./index-hhzzyjm3.js";
122
- import"./index-qtxevgdx.js";
119
+ import"./index-e6n7cemz.js";
120
+ import"./index-p7hdp3rp.js";
121
+ import"./index-afpkqsdb.js";
122
+ import"./index-gn6ybsc4.js";
123
123
  import"./index-anxs69ad.js";
124
124
  import"./index-z6xqpmqg.js";
125
125
  import"./index-p612v1mv.js";
126
- import"./index-7z9zqxqt.js";
126
+ import"./index-2k53pfnc.js";
127
127
  import"./index-ajknebrc.js";
128
128
  import"./index-rtry5xyf.js";
129
- import"./index-d224mhr9.js";
129
+ import"./index-58be2gtd.js";
130
130
  import"./index-3qf1vxtb.js";
131
131
  import"./index-n832052r.js";
132
- import"./index-s3k7xbqd.js";
133
- import"./index-ndjjvxzz.js";
132
+ import"./index-3xyjvx24.js";
133
+ import"./index-y1zhpfk8.js";
134
134
  import"./index-xwbn7c8m.js";
135
135
  import"./index-556ja8an.js";
136
136
  import"./index-6m24v15v.js";
@@ -139,7 +139,7 @@ import"./index-w6988bbc.js";
139
139
  import"./index-ry16d01s.js";
140
140
  import"./index-n4fzmqz8.js";
141
141
  import"./index-j2svfhzk.js";
142
- import"./index-grn6tkbt.js";
142
+ import"./index-c4ddtrqg.js";
143
143
  import"./index-ae75rja9.js";
144
144
  import"./index-6rx1rdaq.js";
145
145
  import"./index-7qefgq4j.js";
@@ -147,13 +147,13 @@ import"./index-jre6tm3v.js";
147
147
  import"./index-gy0nyfbw.js";
148
148
  import"./index-5ebgzb5a.js";
149
149
  import"./index-7g4c7s5r.js";
150
- import"./index-0mwjamha.js";
150
+ import"./index-zycp24b9.js";
151
151
  import"./index-9e6fdz2h.js";
152
152
  import"./index-4rhhvd1a.js";
153
153
  import {
154
154
  init_schema,
155
155
  stripKnownSwarmPrefix
156
- } from "./index-asey3tb3.js";
156
+ } from "./index-0e9jh9c7.js";
157
157
  import {
158
158
  AGENT_TOOL_MAP,
159
159
  ORCHESTRATOR_NAME,
@@ -14,14 +14,14 @@ import {
14
14
  detectWindowsWrites,
15
15
  getSharedClassifierGuardrailBlock,
16
16
  resolveWriteTargets
17
- } from "./index-c98rjgjq.js";
17
+ } from "./index-hwz46jj7.js";
18
18
  import {
19
19
  checkFileAuthority,
20
20
  classifyFile,
21
21
  isInDeclaredScope,
22
22
  redactPath,
23
23
  redactShellCommand
24
- } from "./index-4fhcbe14.js";
24
+ } from "./index-hdakb4n9.js";
25
25
 
26
26
  // src/services/guardrail-explain-service.ts
27
27
  import path from "path";
@@ -15,7 +15,7 @@ import {
15
15
  PlanSchema,
16
16
  TaskStatusSchema,
17
17
  init_loader
18
- } from "./index-0mwjamha.js";
18
+ } from "./index-zycp24b9.js";
19
19
  import {
20
20
  criticalWarn,
21
21
  init_logger,
@@ -14,7 +14,7 @@ import {
14
14
  PluginConfigSchema,
15
15
  init_schema,
16
16
  resolveExternalSkillsConfig
17
- } from "./index-asey3tb3.js";
17
+ } from "./index-0e9jh9c7.js";
18
18
  import {
19
19
  MAX_MERGE_DEPTH,
20
20
  deepMerge,