opencode-swarm 7.157.0 → 7.157.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/cli/{coder-settlement-dz2x352d.js → coder-settlement-tqh28pr3.js} +3 -3
  2. package/dist/cli/{config-doctor-4jxf9w9e.js → config-doctor-9rsk8ags.js} +2 -2
  3. package/dist/cli/{core-xf2f087t.js → core-7zwdc0sk.js} +1 -1
  4. package/dist/cli/{curator-pjjw3ja4.js → curator-fdj5ftfz.js} +19 -19
  5. package/dist/cli/{curator-llm-factory-7mfvey3x.js → curator-llm-factory-rtkeb1y1.js} +19 -19
  6. package/dist/cli/{evidence-summary-service-5ffkbs50.js → evidence-summary-service-bhqvx9qe.js} +6 -6
  7. package/dist/cli/{gate-evidence-ne9rbdtb.js → gate-evidence-rp0r5phx.js} +2 -2
  8. package/dist/cli/{guardrail-explain-b9vr4ta3.js → guardrail-explain-17me709w.js} +20 -20
  9. package/dist/cli/{guardrail-log-hrt36jz5.js → guardrail-log-te4a5fmn.js} +3 -3
  10. package/dist/cli/{guardrail-reset-pggm9hx4.js → guardrail-reset-5n76tj7e.js} +19 -19
  11. package/dist/cli/{hive-promoter-7vxm11sm.js → hive-promoter-e0zrkgns.js} +19 -19
  12. package/dist/cli/{index-4w20thrc.js → index-14awxpgt.js} +1 -1
  13. package/dist/cli/{index-zq7pw6qg.js → index-1gk7ctgp.js} +2 -2
  14. package/dist/cli/{index-tvtvhjh0.js → index-1vjjh2gp.js} +1 -1
  15. package/dist/cli/{index-n7gv8m7v.js → index-80qxscrc.js} +2 -2
  16. package/dist/cli/{index-12e2hztp.js → index-az2sga91.js} +1 -1
  17. package/dist/cli/{index-nd22bsnt.js → index-b3cwazk2.js} +1 -1
  18. package/dist/cli/{index-p0by16z8.js → index-e7m7g2f9.js} +1 -1
  19. package/dist/cli/{index-2e60kmzg.js → index-gg70afs7.js} +1 -1
  20. package/dist/cli/{index-1dzy1j4v.js → index-hq3m47kh.js} +1 -1
  21. package/dist/cli/{index-q94gt4n9.js → index-n3362zjr.js} +2 -2
  22. package/dist/cli/{index-n6ayyadp.js → index-n9hecanw.js} +3 -3
  23. package/dist/cli/{index-93ymj3j5.js → index-pbh1rmb9.js} +3 -3
  24. package/dist/cli/{index-79k7p589.js → index-pr6a7669.js} +1 -1
  25. package/dist/cli/{index-j3egsxa1.js → index-q24ffxx6.js} +4 -4
  26. package/dist/cli/{index-8n602qc2.js → index-qy6rcnjg.js} +3 -3
  27. package/dist/cli/{index-vbqssmbs.js → index-r4qxngnx.js} +3 -3
  28. package/dist/cli/{index-4kd1nqd2.js → index-r98wqjw4.js} +1 -1
  29. package/dist/cli/{index-ebratyzr.js → index-rgkwg6d7.js} +1 -1
  30. package/dist/cli/{index-3vqdt1sx.js → index-sdde1nvx.js} +3 -3
  31. package/dist/cli/{index-gk6wpq41.js → index-tt350s4g.js} +51 -50
  32. package/dist/cli/{index-3qpr16k2.js → index-w7s5vgb6.js} +21 -21
  33. package/dist/cli/{index-g0j2hnse.js → index-xttdbb6d.js} +5 -5
  34. package/dist/cli/{index-61nkp124.js → index-ybvtfthv.js} +1 -1
  35. package/dist/cli/index.js +19 -19
  36. package/dist/cli/{knowledge-escalator-d65mctqy.js → knowledge-escalator-wrpk82b9.js} +6 -6
  37. package/dist/cli/{knowledge-events-6aet71sp.js → knowledge-events-4z6yzntf.js} +4 -4
  38. package/dist/cli/{knowledge-store-vvgxbakx.js → knowledge-store-z9686tpv.js} +1 -1
  39. package/dist/cli/{knowledge-validator-4fb6pbpn.js → knowledge-validator-rqb0b436.js} +2 -2
  40. package/dist/cli/{pending-delegations-f52jtanf.js → pending-delegations-g10v5k22.js} +1 -1
  41. package/dist/cli/{scan-cursor-q3530gc8.js → scan-cursor-7s1bz7ew.js} +2 -2
  42. package/dist/cli/{schema-5zc62306.js → schema-78pdxc8f.js} +1 -1
  43. package/dist/cli/{scope-persistence-fzqf115q.js → scope-persistence-7ad69qmq.js} +4 -4
  44. package/dist/cli/{skill-generator-kh1z90tm.js → skill-generator-7cxf53ye.js} +7 -7
  45. package/dist/cli/{worktree-collision-ownership-2qxjtxt6.js → worktree-collision-ownership-ry7xnaae.js} +1 -1
  46. package/dist/cli/{worktree-isolation-40v34p0s.js → worktree-isolation-1jcc8ynj.js} +19 -19
  47. package/dist/index.js +15 -15
  48. package/dist/tools/repo-graph/types.d.ts +9 -0
  49. package/dist/tools/repo-graph.d.ts +1 -1
  50. 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-6aet71sp.js");
716
+ } = await import("./knowledge-events-4z6yzntf.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-4fb6pbpn.js");
784
- const { KnowledgeConfigSchema } = await import("./schema-5zc62306.js");
783
+ const { quarantineEntry } = await import("./knowledge-validator-rqb0b436.js");
784
+ const { KnowledgeConfigSchema } = await import("./schema-78pdxc8f.js");
785
785
  let config;
786
786
  try {
787
- const { loadPluginConfigWithMeta } = await import("./index-8n602qc2.js");
787
+ const { loadPluginConfigWithMeta } = await import("./index-qy6rcnjg.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
  _internals,
4
4
  resolveWorktreeIsolationConfig
5
- } from "./index-q94gt4n9.js";
5
+ } from "./index-n3362zjr.js";
6
6
  import {
7
7
  ApprovalEvidenceSchema,
8
8
  BaseEvidenceSchema,
@@ -42,7 +42,7 @@ import {
42
42
  loadPluginConfig,
43
43
  loadPluginConfigWithMeta,
44
44
  loadPluginConfigWithMetaAsync
45
- } from "./index-2e60kmzg.js";
45
+ } from "./index-gg70afs7.js";
46
46
  import {
47
47
  AUTO_REVIEW_V8_BURN_IN_DECISION,
48
48
  AgentOverrideConfigSchema,
@@ -64,7 +64,7 @@ import {
64
64
  TurboConfigSchema,
65
65
  WorktreeIsolationConfigSchema,
66
66
  resolveAutoReviewConfig
67
- } from "./index-4w20thrc.js";
67
+ } from "./index-14awxpgt.js";
68
68
  import {
69
69
  ALL_AGENT_NAMES,
70
70
  ALL_SUBAGENT_NAMES,
@@ -9,7 +9,7 @@ import {
9
9
  reconcileLandedMerge,
10
10
  withTaskEvidenceTransaction,
11
11
  writeWorkflowWalFile
12
- } from "./index-61nkp124.js";
12
+ } from "./index-ybvtfthv.js";
13
13
  import {
14
14
  canonicalRootKeyFresh
15
15
  } from "./index-ddszzne4.js";
@@ -478,7 +478,7 @@ async function cleanupRecoveredWorktree(directory, descriptor) {
478
478
  awaitingMergeByCallID,
479
479
  cleanupStandardWorktreeForCallId,
480
480
  standardWorktreeByCallID
481
- } = await import("./worktree-isolation-40v34p0s.js");
481
+ } = await import("./worktree-isolation-1jcc8ynj.js");
482
482
  standardWorktreeByCallID.delete(descriptor.callID);
483
483
  if (hasResidue)
484
484
  awaitingMergeByCallID.set(descriptor.callID, {
@@ -602,7 +602,7 @@ async function recoverCoderSettlement(directory, taskId) {
602
602
  awaitingMergeByCallID,
603
603
  finishStandardWorktreeDispatch,
604
604
  standardWorktreeByCallID
605
- } = await import("./worktree-isolation-40v34p0s.js");
605
+ } = await import("./worktree-isolation-1jcc8ynj.js");
606
606
  const descriptor = wal.worktree;
607
607
  const reconstructedDispatch = {
608
608
  callID: descriptor.callID,
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  init_schema,
13
13
  stripKnownSwarmPrefix
14
- } from "./index-4w20thrc.js";
14
+ } from "./index-14awxpgt.js";
15
15
  import {
16
16
  init_constants
17
17
  } from "./index-9r7gp6cp.js";
@@ -4,7 +4,7 @@ import {
4
4
  readShellAuditTail,
5
5
  redactPath,
6
6
  redactShellCommand
7
- } from "./index-4kd1nqd2.js";
7
+ } from "./index-r98wqjw4.js";
8
8
 
9
9
  // src/services/guardrail-log-service.ts
10
10
  var BLOCK_TYPES = new Set([
@@ -4,11 +4,11 @@ import {
4
4
  } from "./index-dtn0pne5.js";
5
5
  import {
6
6
  loadPluginConfigWithMeta
7
- } from "./index-2e60kmzg.js";
7
+ } from "./index-gg70afs7.js";
8
8
  import {
9
9
  KnowledgeConfigSchema,
10
10
  init_schema
11
- } from "./index-4w20thrc.js";
11
+ } from "./index-14awxpgt.js";
12
12
  import {
13
13
  resolveHiveEventsPath
14
14
  } from "./index-ae75rja9.js";
@@ -2793,7 +2793,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
2793
2793
  }
2794
2794
  let bumps = 0;
2795
2795
  if (deltas.length > 0) {
2796
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-vvgxbakx.js");
2796
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-z9686tpv.js");
2797
2797
  bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
2798
2798
  }
2799
2799
  return {
@@ -15,13 +15,13 @@ import {
15
15
  protectedRoots,
16
16
  redactDecisionLineForArchive,
17
17
  stableCanonicalStringify
18
- } from "./index-4kd1nqd2.js";
18
+ } from "./index-r98wqjw4.js";
19
19
  import {
20
20
  detectStraySwarmDirs,
21
21
  readDoctorArtifact,
22
22
  removeStraySwarmDir,
23
23
  runConfigDoctor
24
- } from "./index-nd22bsnt.js";
24
+ } from "./index-b3cwazk2.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-93ymj3j5.js";
71
+ } from "./index-pbh1rmb9.js";
72
72
  import {
73
73
  EvaluationTaskV1Schema,
74
74
  GateAuditManifestV1Schema,
@@ -111,12 +111,12 @@ import {
111
111
  } from "./index-txdagbh7.js";
112
112
  import {
113
113
  readRecentEscalations
114
- } from "./index-g0j2hnse.js";
114
+ } from "./index-xttdbb6d.js";
115
115
  import {
116
116
  alreadyCuratedThisGeneration,
117
117
  claimNextScanBatch,
118
118
  resolveCohortId
119
- } from "./index-1dzy1j4v.js";
119
+ } from "./index-hq3m47kh.js";
120
120
  import {
121
121
  CURATOR_INIT_PROMPT,
122
122
  CURATOR_PHASE_PROMPT,
@@ -152,7 +152,7 @@ import {
152
152
  listCoderSettlementWalStates,
153
153
  recoverCoderSettlement,
154
154
  recoverStaleCoderSettlements
155
- } from "./index-vbqssmbs.js";
155
+ } from "./index-r4qxngnx.js";
156
156
  import {
157
157
  WORKTREE_LIFECYCLE_LOCK_FILE,
158
158
  recordWorktreeProvisioningOwner,
@@ -178,7 +178,7 @@ import {
178
178
  retireSkill,
179
179
  selectCandidateEntries,
180
180
  syncBundledProjectSkillsIfMissingAsync
181
- } from "./index-n6ayyadp.js";
181
+ } from "./index-n9hecanw.js";
182
182
  import {
183
183
  appendUnactionable,
184
184
  quarantineEntry,
@@ -189,7 +189,7 @@ import {
189
189
  validateActionableFields,
190
190
  validateLesson,
191
191
  validateSkillPath
192
- } from "./index-tvtvhjh0.js";
192
+ } from "./index-1vjjh2gp.js";
193
193
  import {
194
194
  authorizeCuration,
195
195
  buildConfigFingerprintInput
@@ -224,12 +224,12 @@ import {
224
224
  transitionTaskWorkflowEvidence,
225
225
  withTaskEvidenceTransaction,
226
226
  writeWorkflowWalFile
227
- } from "./index-61nkp124.js";
227
+ } from "./index-ybvtfthv.js";
228
228
  import {
229
229
  makeWorktreeBranchName,
230
230
  provisionWorktree,
231
231
  removeWorktree
232
- } from "./index-p0by16z8.js";
232
+ } from "./index-e7m7g2f9.js";
233
233
  import {
234
234
  DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
235
235
  DELEGATION_COMPACTION_HIGH_WATER_BYTES,
@@ -244,7 +244,7 @@ import {
244
244
  scanBackgroundCoderReservationsForAdmission,
245
245
  scanDelegationsForRecovery,
246
246
  sweepStaleDelegations
247
- } from "./index-12e2hztp.js";
247
+ } from "./index-az2sga91.js";
248
248
  import {
249
249
  compositeSessionKey,
250
250
  sessionKeySuffix
@@ -283,7 +283,7 @@ import {
283
283
  clearAllScopes,
284
284
  clearScopeBindingFromDisk,
285
285
  clearScopeBindings
286
- } from "./index-n7gv8m7v.js";
286
+ } from "./index-80qxscrc.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-79k7p589.js";
301
+ } from "./index-pr6a7669.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-j3egsxa1.js";
360
+ } from "./index-q24ffxx6.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-3vqdt1sx.js";
376
+ } from "./index-sdde1nvx.js";
377
377
  import {
378
378
  resolveWorktreeIsolationConfig
379
- } from "./index-q94gt4n9.js";
379
+ } from "./index-n3362zjr.js";
380
380
  import {
381
381
  RetrospectiveEvidenceSchema
382
382
  } from "./index-gprxjmm7.js";
@@ -399,7 +399,7 @@ import {
399
399
  init_loader,
400
400
  loadPluginConfig,
401
401
  loadPluginConfigWithMeta
402
- } from "./index-2e60kmzg.js";
402
+ } from "./index-gg70afs7.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-4w20thrc.js";
418
+ } from "./index-14awxpgt.js";
419
419
  import {
420
420
  AGENT_TOOL_MAP,
421
421
  ALL_AGENT_NAMES,
@@ -20646,7 +20646,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
20646
20646
  };
20647
20647
  }
20648
20648
  async function sweepActiveNearDuplicates(directory, options = {}) {
20649
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-8n602qc2.js");
20649
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-qy6rcnjg.js");
20650
20650
  const { config } = loadPluginConfigWithMeta2(directory);
20651
20651
  const sweepConfig = config.learning?.dedup_sweep;
20652
20652
  if (sweepConfig?.enabled === false)
@@ -21776,7 +21776,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
21776
21776
  }
21777
21777
  if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
21778
21778
  try {
21779
- const skillModule = await import("./skill-generator-kh1z90tm.js");
21779
+ const skillModule = await import("./skill-generator-7cxf53ye.js");
21780
21780
  for (const cand of skillCandidates) {
21781
21781
  if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
21782
21782
  continue;
@@ -22248,7 +22248,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
22248
22248
  } catch {}
22249
22249
  }
22250
22250
  if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
22251
- const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-d65mctqy.js");
22251
+ const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-wrpk82b9.js");
22252
22252
  for (const { id } of contradictedEntries) {
22253
22253
  try {
22254
22254
  await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
@@ -23067,7 +23067,7 @@ async function runCuratorPostMortem(directory, options = {}) {
23067
23067
  warnings.push("Failed to collect knowledge summary.");
23068
23068
  }
23069
23069
  try {
23070
- const { getScanStatus } = await import("./scan-cursor-q3530gc8.js");
23070
+ const { getScanStatus } = await import("./scan-cursor-7s1bz7ew.js");
23071
23071
  const scanStatus = await getScanStatus(directory);
23072
23072
  if (scanStatus.remaining_estimate > 0) {
23073
23073
  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.`);
@@ -23239,9 +23239,9 @@ var _internals27 = {
23239
23239
  verifyPostMortemKnowledgeActions,
23240
23240
  repairPostMortemActions,
23241
23241
  loadDefaultKnowledgeConfig: async (directory) => {
23242
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-5zc62306.js");
23242
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-78pdxc8f.js");
23243
23243
  try {
23244
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-8n602qc2.js");
23244
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-qy6rcnjg.js");
23245
23245
  const loaded = loadPluginConfigWithMeta2(directory);
23246
23246
  return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
23247
23247
  } catch {
@@ -23249,11 +23249,11 @@ var _internals27 = {
23249
23249
  }
23250
23250
  },
23251
23251
  applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
23252
- const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-pjjw3ja4.js");
23252
+ const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-fdj5ftfz.js");
23253
23253
  return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
23254
23254
  },
23255
23255
  checkHivePromotions: async (entries, knowledgeConfig, directory) => {
23256
- const { checkHivePromotions } = await import("./hive-promoter-7vxm11sm.js");
23256
+ const { checkHivePromotions } = await import("./hive-promoter-e0zrkgns.js");
23257
23257
  return checkHivePromotions(entries, knowledgeConfig, directory);
23258
23258
  },
23259
23259
  applyProposalTriage: async (directory, triage) => {
@@ -23262,7 +23262,7 @@ var _internals27 = {
23262
23262
  activateProposal,
23263
23263
  listSkills: listSkills2,
23264
23264
  sanitizeSlug
23265
- } = await import("./skill-generator-kh1z90tm.js");
23265
+ } = await import("./skill-generator-7cxf53ye.js");
23266
23266
  const result = {
23267
23267
  approved: [],
23268
23268
  rejected: [],
@@ -24592,9 +24592,9 @@ function hashContent(content) {
24592
24592
  return createHash13("sha1").update(content).digest("hex");
24593
24593
  }
24594
24594
  async function loadConfigForPolicyCurator(directory) {
24595
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-5zc62306.js");
24595
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-78pdxc8f.js");
24596
24596
  try {
24597
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-8n602qc2.js");
24597
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-qy6rcnjg.js");
24598
24598
  const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
24599
24599
  return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
24600
24600
  } catch {
@@ -25629,6 +25629,7 @@ function safeRealpathSync(targetPath, fallback, realpathResolver = realpathSync3
25629
25629
 
25630
25630
  // src/tools/repo-graph/types.ts
25631
25631
  var GRAPH_SCHEMA_VERSION = "1.5.0";
25632
+ var DEFAULT_MAX_SOURCE_BYTES = 1024 * 1024;
25632
25633
  var FILE_ROLE_VALUES = [
25633
25634
  "api_route",
25634
25635
  "middleware",
@@ -35992,7 +35993,7 @@ async function reconcileCloseTerminalState(directory, targetPlan, options) {
35992
35993
  // src/commands/archive-sqlite.ts
35993
35994
  import * as fsSync2 from "fs";
35994
35995
  import path46 from "path";
35995
- var DEFAULT_MAX_SOURCE_BYTES = 2 * 1024 * 1024 * 1024;
35996
+ var DEFAULT_MAX_SOURCE_BYTES2 = 2 * 1024 * 1024 * 1024;
35996
35997
  var DEFAULT_BUSY_TIMEOUT_MS = 5000;
35997
35998
  var _internals40 = {
35998
35999
  existsSync: fsSync2.existsSync,
@@ -36062,7 +36063,7 @@ function captureRowCounts(db) {
36062
36063
  };
36063
36064
  }
36064
36065
  async function archiveSqliteSnapshot(opts) {
36065
- const maxSourceBytes = opts.maxSourceBytes ?? DEFAULT_MAX_SOURCE_BYTES;
36066
+ const maxSourceBytes = opts.maxSourceBytes ?? DEFAULT_MAX_SOURCE_BYTES2;
36066
36067
  const busyTimeoutMs = opts.busyTimeoutMs ?? DEFAULT_BUSY_TIMEOUT_MS;
36067
36068
  if (!_internals40.existsSync(opts.sourcePath)) {
36068
36069
  return {
@@ -36781,7 +36782,7 @@ async function runFinalizeStage(ctx) {
36781
36782
  }
36782
36783
  }
36783
36784
  try {
36784
- const { CuratorConfigSchema: CCS } = await import("./schema-5zc62306.js");
36785
+ const { CuratorConfigSchema: CCS } = await import("./schema-78pdxc8f.js");
36785
36786
  const { config: pmLoadedConfig } = _internals41.loadPluginConfigWithMeta(ctx.directory);
36786
36787
  const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
36787
36788
  if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
@@ -39000,9 +39001,9 @@ var _internals45 = {
39000
39001
  loadPluginConfigWithMeta,
39001
39002
  loadCuratorDeps: async () => {
39002
39003
  const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
39003
- import("./schema-5zc62306.js"),
39004
- import("./curator-pjjw3ja4.js"),
39005
- import("./curator-llm-factory-7mfvey3x.js")
39004
+ import("./schema-78pdxc8f.js"),
39005
+ import("./curator-fdj5ftfz.js"),
39006
+ import("./curator-llm-factory-rtkeb1y1.js")
39006
39007
  ]);
39007
39008
  return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
39008
39009
  }
@@ -40011,7 +40012,7 @@ async function computeCurationDiagnostics(directory, entries) {
40011
40012
  let scanCompleted = false;
40012
40013
  let scanRemaining = 0;
40013
40014
  try {
40014
- const { getScanStatus } = await import("./scan-cursor-q3530gc8.js");
40015
+ const { getScanStatus } = await import("./scan-cursor-7s1bz7ew.js");
40015
40016
  const status = await getScanStatus(directory);
40016
40017
  scanGeneration = status.generation;
40017
40018
  scanCompleted = status.completed;
@@ -40021,10 +40022,10 @@ async function computeCurationDiagnostics(directory, entries) {
40021
40022
  try {
40022
40023
  const { isLinked: isLinked2 } = await import("./knowledge-link-z9cchqdj.js");
40023
40024
  if (isLinked2(directory)) {
40024
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-5zc62306.js");
40025
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-78pdxc8f.js");
40025
40026
  let config;
40026
40027
  try {
40027
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-8n602qc2.js");
40028
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-qy6rcnjg.js");
40028
40029
  const loaded = loadPluginConfigWithMeta2(directory);
40029
40030
  config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
40030
40031
  } catch {
@@ -41344,7 +41345,7 @@ async function handleDoctorCommand(directory, args) {
41344
41345
  const result = runConfigDoctor(config, directory);
41345
41346
  let output;
41346
41347
  if (enableAutoFix && result.hasAutoFixableIssues) {
41347
- const { runConfigDoctorWithFixes } = await import("./config-doctor-4jxf9w9e.js");
41348
+ const { runConfigDoctorWithFixes } = await import("./config-doctor-9rsk8ags.js");
41348
41349
  const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
41349
41350
  applyLossy: true
41350
41351
  });
@@ -42284,7 +42285,7 @@ async function handleEvidenceCommand(directory, args) {
42284
42285
  return formatTaskEvidenceMarkdown(evidenceData);
42285
42286
  }
42286
42287
  async function handleEvidenceSummaryCommand(directory) {
42287
- const { buildEvidenceSummary } = await import("./evidence-summary-service-5ffkbs50.js");
42288
+ const { buildEvidenceSummary } = await import("./evidence-summary-service-bhqvx9qe.js");
42288
42289
  const artifact = await buildEvidenceSummary(directory);
42289
42290
  if (!artifact) {
42290
42291
  return "No plan found. Run `/swarm plan` to check plan status.";
@@ -79391,7 +79392,7 @@ function buildDetailedHelp(commandName, entry) {
79391
79392
  async function handleHelpCommand(ctx) {
79392
79393
  const targetCommand = ctx.args.join(" ");
79393
79394
  if (!targetCommand) {
79394
- const { buildHelpText } = await import("./index-3qpr16k2.js");
79395
+ const { buildHelpText } = await import("./index-w7s5vgb6.js");
79395
79396
  return buildHelpText();
79396
79397
  }
79397
79398
  const tokens = targetCommand.split(/\s+/);
@@ -79400,7 +79401,7 @@ async function handleHelpCommand(ctx) {
79400
79401
  return _internals100.buildDetailedHelp(resolved.key, resolved.entry);
79401
79402
  }
79402
79403
  const similar = _internals100.findSimilarCommands(targetCommand);
79403
- const { buildHelpText: fullHelp } = await import("./index-3qpr16k2.js");
79404
+ const { buildHelpText: fullHelp } = await import("./index-w7s5vgb6.js");
79404
79405
  if (similar.length > 0) {
79405
79406
  return `Command '/swarm ${targetCommand}' not found.
79406
79407
 
@@ -79731,7 +79732,7 @@ var COMMAND_REGISTRY = {
79731
79732
  },
79732
79733
  "guardrail explain": {
79733
79734
  handler: async (ctx) => {
79734
- const { handleGuardrailExplain } = await import("./guardrail-explain-b9vr4ta3.js");
79735
+ const { handleGuardrailExplain } = await import("./guardrail-explain-17me709w.js");
79735
79736
  return handleGuardrailExplain(ctx.directory, ctx.args);
79736
79737
  },
79737
79738
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -79741,7 +79742,7 @@ var COMMAND_REGISTRY = {
79741
79742
  },
79742
79743
  "guardrail reset": {
79743
79744
  handler: async (ctx) => {
79744
- const { handleGuardrailReset } = await import("./guardrail-reset-pggm9hx4.js");
79745
+ const { handleGuardrailReset } = await import("./guardrail-reset-5n76tj7e.js");
79745
79746
  return handleGuardrailReset(ctx.args, ctx.sessionID);
79746
79747
  },
79747
79748
  description: "Reset one exact active invocation/action circuit after repair",
@@ -79750,7 +79751,7 @@ var COMMAND_REGISTRY = {
79750
79751
  },
79751
79752
  "guardrail-explain": {
79752
79753
  handler: async (ctx) => {
79753
- const { handleGuardrailExplain } = await import("./guardrail-explain-b9vr4ta3.js");
79754
+ const { handleGuardrailExplain } = await import("./guardrail-explain-17me709w.js");
79754
79755
  return handleGuardrailExplain(ctx.directory, ctx.args);
79755
79756
  },
79756
79757
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -79760,7 +79761,7 @@ var COMMAND_REGISTRY = {
79760
79761
  },
79761
79762
  "guardrail-reset": {
79762
79763
  handler: async (ctx) => {
79763
- const { handleGuardrailReset } = await import("./guardrail-reset-pggm9hx4.js");
79764
+ const { handleGuardrailReset } = await import("./guardrail-reset-5n76tj7e.js");
79764
79765
  return handleGuardrailReset(ctx.args, ctx.sessionID);
79765
79766
  },
79766
79767
  description: "Reset one exact active invocation/action circuit after repair",
@@ -79770,7 +79771,7 @@ var COMMAND_REGISTRY = {
79770
79771
  },
79771
79772
  "guardrail-log": {
79772
79773
  handler: async (ctx) => {
79773
- const { handleGuardrailLog } = await import("./guardrail-log-hrt36jz5.js");
79774
+ const { handleGuardrailLog } = await import("./guardrail-log-te4a5fmn.js");
79774
79775
  return handleGuardrailLog(ctx.directory, ctx.args);
79775
79776
  },
79776
79777
  description: "Read the guardrail decision log (use --blocks-only for blocks)",
@@ -86203,7 +86204,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
86203
86204
  return extracted === expectedSessionId;
86204
86205
  }
86205
86206
  async function inspectStandardWorktreeCollisionOwnership(identity) {
86206
- const collisionOwnership = await import("./worktree-collision-ownership-2qxjtxt6.js");
86207
+ const collisionOwnership = await import("./worktree-collision-ownership-ry7xnaae.js");
86207
86208
  return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
86208
86209
  }
86209
86210
  async function runRecoveryGit(directory, args, timeoutMs = 15000) {
@@ -86612,7 +86613,7 @@ async function precreateStandardWorktreeSession(args) {
86612
86613
  const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
86613
86614
  if (laneProfile) {
86614
86615
  try {
86615
- const { writeLaneProfileToDiskReal } = await import("./core-xf2f087t.js");
86616
+ const { writeLaneProfileToDiskReal } = await import("./core-7zwdc0sk.js");
86616
86617
  await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
86617
86618
  } catch {}
86618
86619
  }
@@ -87537,7 +87538,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
87537
87538
  }
87538
87539
  clearWorktreeMergeStatus(statusKey);
87539
87540
  try {
87540
- const { removeLaneProfileFromDiskReal } = await import("./core-xf2f087t.js");
87541
+ const { removeLaneProfileFromDiskReal } = await import("./core-7zwdc0sk.js");
87541
87542
  await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
87542
87543
  } catch {}
87543
87544
  const state = serializationStateBySessionID.get(dispatch.parentSessionID);
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-zq7pw6qg.js";
4
+ } from "./index-1gk7ctgp.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-ebratyzr.js";
7
+ } from "./index-rgkwg6d7.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -94,53 +94,53 @@ import {
94
94
  handleWriteRetroCommand,
95
95
  normalizeSwarmCommandInput,
96
96
  resolveCommand
97
- } from "./index-gk6wpq41.js";
97
+ } from "./index-tt350s4g.js";
98
98
  import"./index-t0kxka8n.js";
99
- import"./index-4kd1nqd2.js";
100
- import"./index-nd22bsnt.js";
101
- import"./index-93ymj3j5.js";
99
+ import"./index-r98wqjw4.js";
100
+ import"./index-b3cwazk2.js";
101
+ import"./index-pbh1rmb9.js";
102
102
  import"./index-ngn6jmad.js";
103
103
  import"./index-134d35c1.js";
104
104
  import"./index-nj6rmyeh.js";
105
105
  import"./index-txdagbh7.js";
106
- import"./index-g0j2hnse.js";
107
- import"./index-1dzy1j4v.js";
106
+ import"./index-xttdbb6d.js";
107
+ import"./index-hq3m47kh.js";
108
108
  import"./index-70ha9e09.js";
109
109
  import"./index-c8s9a3zh.js";
110
110
  import"./index-9ss2m4rs.js";
111
111
  import"./index-91ybfvy2.js";
112
112
  import"./index-zsrtt42s.js";
113
- import"./index-vbqssmbs.js";
113
+ import"./index-r4qxngnx.js";
114
114
  import"./index-dwkrdpz2.js";
115
- import"./index-n6ayyadp.js";
116
- import"./index-tvtvhjh0.js";
115
+ import"./index-n9hecanw.js";
116
+ import"./index-1vjjh2gp.js";
117
117
  import"./index-gpf3cjre.js";
118
118
  import"./index-rtry5xyf.js";
119
- import"./index-61nkp124.js";
120
- import"./index-p0by16z8.js";
121
- import"./index-12e2hztp.js";
119
+ import"./index-ybvtfthv.js";
120
+ import"./index-e7m7g2f9.js";
121
+ import"./index-az2sga91.js";
122
122
  import"./index-ddszzne4.js";
123
123
  import"./index-3f7hqtgg.js";
124
- import"./index-n7gv8m7v.js";
125
- import"./index-79k7p589.js";
124
+ import"./index-80qxscrc.js";
125
+ import"./index-pr6a7669.js";
126
126
  import"./index-nwkr6tvv.js";
127
127
  import"./index-556ja8an.js";
128
128
  import"./index-4fwbbad3.js";
129
129
  import"./index-b43rt5ph.js";
130
130
  import"./index-q7sjgr1y.js";
131
- import"./index-j3egsxa1.js";
132
- import"./index-3vqdt1sx.js";
133
- import"./index-q94gt4n9.js";
131
+ import"./index-q24ffxx6.js";
132
+ import"./index-sdde1nvx.js";
133
+ import"./index-n3362zjr.js";
134
134
  import"./index-gprxjmm7.js";
135
135
  import"./index-n832052r.js";
136
136
  import"./index-dtn0pne5.js";
137
137
  import"./index-z6xqpmqg.js";
138
138
  import"./index-r3mvsbtq.js";
139
- import"./index-2e60kmzg.js";
139
+ import"./index-gg70afs7.js";
140
140
  import {
141
141
  init_schema,
142
142
  stripKnownSwarmPrefix
143
- } from "./index-4w20thrc.js";
143
+ } from "./index-14awxpgt.js";
144
144
  import {
145
145
  AGENT_TOOL_MAP,
146
146
  ORCHESTRATOR_NAME,
@@ -6,12 +6,12 @@ import {
6
6
  resolveSwarmKnowledgePath,
7
7
  transactKnowledge,
8
8
  wordBigrams
9
- } from "./index-j3egsxa1.js";
9
+ } from "./index-q24ffxx6.js";
10
10
  import {
11
11
  queryHistoricalOutcomes,
12
12
  readKnowledgeEvents,
13
13
  recordKnowledgeEvent
14
- } from "./index-3vqdt1sx.js";
14
+ } from "./index-sdde1nvx.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-4fb6pbpn.js");
227
+ const { quarantineEntry } = await import("./knowledge-validator-rqb0b436.js");
228
228
  let policyConfig;
229
229
  try {
230
- const { KnowledgeConfigSchema } = await import("./schema-5zc62306.js");
231
- const { loadPluginConfigWithMeta } = await import("./index-8n602qc2.js");
230
+ const { KnowledgeConfigSchema } = await import("./schema-78pdxc8f.js");
231
+ const { loadPluginConfigWithMeta } = await import("./index-qy6rcnjg.js");
232
232
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
233
233
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
234
234
  } catch {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  autoCommitDirty,
4
4
  cleanUntrackedFiles
5
- } from "./index-p0by16z8.js";
5
+ } from "./index-e7m7g2f9.js";
6
6
  import {
7
7
  isPathWithinDeclaredScope,
8
8
  unsafePathTextReason