opencode-swarm 7.164.8 → 7.164.9

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/README.md +2 -2
  2. package/dist/cli/{coder-settlement-qrtjv4jk.js → coder-settlement-8wxdx3ge.js} +8 -8
  3. package/dist/cli/{config-doctor-hp9dj0fg.js → config-doctor-zqbzjqsk.js} +2 -2
  4. package/dist/cli/{core-bmmrm36k.js → core-6b997gee.js} +1 -1
  5. package/dist/cli/{curation-policy-de7emfqc.js → curation-policy-w829da9a.js} +5 -5
  6. package/dist/cli/{curator-k8xdr1mn.js → curator-hvet3ccp.js} +29 -29
  7. package/dist/cli/{curator-llm-factory-pe61p0r6.js → curator-llm-factory-mqyj4d2w.js} +29 -29
  8. package/dist/cli/{evidence-summary-service-qzpkdv7a.js → evidence-summary-service-zefetqqa.js} +12 -12
  9. package/dist/cli/{gate-evidence-jmns4e76.js → gate-evidence-8ex11125.js} +5 -5
  10. package/dist/cli/{guardrail-explain-vzwbmvyf.js → guardrail-explain-mk9z5n76.js} +30 -30
  11. package/dist/cli/{guardrail-log-kckc7cg4.js → guardrail-log-jf1sj1zc.js} +6 -6
  12. package/dist/cli/{guardrail-reset-acndbsv9.js → guardrail-reset-0062066m.js} +29 -29
  13. package/dist/cli/{hive-promoter-wvt5kk99.js → hive-promoter-8nr61bhn.js} +29 -29
  14. package/dist/cli/{index-wgqeqy68.js → index-0rpfwzkw.js} +2 -2
  15. package/dist/cli/{index-29w778rw.js → index-18z6gf3a.js} +7 -7
  16. package/dist/cli/{index-bzesypf5.js → index-1afqzpj4.js} +5 -5
  17. package/dist/cli/{index-9ydhzegh.js → index-1anz3srx.js} +1 -1
  18. package/dist/cli/{index-2czt53wz.js → index-2bgr671r.js} +1 -1
  19. package/dist/cli/{index-4v28t7jh.js → index-3qeznjj9.js} +4 -4
  20. package/dist/cli/{index-b10yvv6h.js → index-41m7f0xj.js} +3 -3
  21. package/dist/cli/{index-9ek9d96g.js → index-5kstr2ga.js} +2 -2
  22. package/dist/cli/{index-93znbdam.js → index-7fyjv3f2.js} +1 -1
  23. package/dist/cli/{index-bz8vsc8r.js → index-7tme4v2x.js} +5 -5
  24. package/dist/cli/{index-8ntf8jnj.js → index-83bewmqd.js} +3 -3
  25. package/dist/cli/{index-ypjffdrg.js → index-8m3w7sr7.js} +3 -3
  26. package/dist/cli/{index-4pm3v7yc.js → index-8nsknkgs.js} +1 -1
  27. package/dist/cli/{index-yscwyq3t.js → index-g1rnq3pg.js} +3 -3
  28. package/dist/cli/{index-g2e8b3wm.js → index-h933exaw.js} +8 -8
  29. package/dist/cli/{index-whz6am0v.js → index-hwqxp3kr.js} +36 -32
  30. package/dist/cli/{index-apdp9bc1.js → index-jpfktfb7.js} +1 -1
  31. package/dist/cli/{index-52m9kter.js → index-mh57gjsd.js} +64 -63
  32. package/dist/cli/{index-ghnbpez3.js → index-nj2gap5p.js} +6 -6
  33. package/dist/cli/{index-wtnx33hz.js → index-nnetagj1.js} +2 -2
  34. package/dist/cli/{index-mr3h3sm5.js → index-pkga8b4j.js} +1 -1
  35. package/dist/cli/{index-chcv8c7n.js → index-prmwcpqn.js} +1 -1
  36. package/dist/cli/{index-gkqrk8dd.js → index-pxzx4wxb.js} +1 -1
  37. package/dist/cli/{index-s3z936wh.js → index-qkzyfnmc.js} +4 -4
  38. package/dist/cli/{index-z39vxvdx.js → index-qxvdwx79.js} +3 -3
  39. package/dist/cli/{index-px4a2ve0.js → index-rgj5zmms.js} +4 -4
  40. package/dist/cli/{index-0zjwnbze.js → index-sdhshera.js} +1 -1
  41. package/dist/cli/{index-3sv8t7ca.js → index-sf24zdbp.js} +2 -2
  42. package/dist/cli/{index-ya4ta1pd.js → index-teq4xzkh.js} +2 -2
  43. package/dist/cli/{index-yzn1fm9a.js → index-vjef4fy9.js} +1 -1
  44. package/dist/cli/{index-espcjyrx.js → index-vsxq8b54.js} +3 -3
  45. package/dist/cli/{index-y6s0gpn3.js → index-wnw2rt73.js} +3 -3
  46. package/dist/cli/{index-kvq1e82k.js → index-ww6zm5hr.js} +3 -3
  47. package/dist/cli/index.js +29 -29
  48. package/dist/cli/{knowledge-escalator-h9834mrp.js → knowledge-escalator-p60t5809.js} +11 -11
  49. package/dist/cli/{knowledge-events-e8hrmjf0.js → knowledge-events-90k35k0w.js} +9 -9
  50. package/dist/cli/{knowledge-link-hhnmc4g1.js → knowledge-link-kbbp0rhh.js} +4 -4
  51. package/dist/cli/{knowledge-store-w3w9gchr.js → knowledge-store-rqkyw5zp.js} +5 -5
  52. package/dist/cli/{knowledge-validator-exd900vc.js → knowledge-validator-5zqwvnvr.js} +7 -7
  53. package/dist/cli/{pending-delegations-p4ak2e86.js → pending-delegations-jdztm7v1.js} +4 -4
  54. package/dist/cli/{pr-subscriptions-73fs8y3n.js → pr-subscriptions-7am85psn.js} +4 -4
  55. package/dist/cli/{pr-workflow-gate-pvt2ra6e.js → pr-workflow-gate-2rqn6eat.js} +29 -29
  56. package/dist/cli/{runner-5qqh83e2.js → runner-59cbgcdy.js} +5 -5
  57. package/dist/cli/{scan-cursor-ysd8b563.js → scan-cursor-9bm4zfx2.js} +6 -6
  58. package/dist/cli/{schema-mbb9g4w4.js → schema-4yjk7z24.js} +1 -1
  59. package/dist/cli/{scope-persistence-jrbnhxvx.js → scope-persistence-s2ayj1c3.js} +8 -8
  60. package/dist/cli/{skill-generator-b4ng5xky.js → skill-generator-bddg7mx1.js} +13 -13
  61. package/dist/cli/{telemetry-85gxedng.js → telemetry-mbqqamsj.js} +1 -1
  62. package/dist/cli/{worktree-collision-ownership-ns8p2fks.js → worktree-collision-ownership-84j7w373.js} +4 -4
  63. package/dist/cli/{worktree-isolation-j6zxhjab.js → worktree-isolation-s0d3qtpv.js} +29 -29
  64. package/dist/commands/index.d.ts +1 -0
  65. package/dist/full-auto/policy.d.ts +12 -0
  66. package/dist/index.js +6 -6
  67. package/opencode-swarm.schema.json +2 -2
  68. package/package.json +1 -1
@@ -6,7 +6,7 @@ import {
6
6
  resolveExecutableFromPath,
7
7
  runEvaluation,
8
8
  runExternalTool
9
- } from "./index-yzn1fm9a.js";
9
+ } from "./index-vjef4fy9.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-b10yvv6h.js";
18
+ } from "./index-41m7f0xj.js";
19
19
  import {
20
20
  detectStraySwarmDirs,
21
21
  readDoctorArtifact,
22
22
  removeStraySwarmDir,
23
23
  runConfigDoctor
24
- } from "./index-4pm3v7yc.js";
24
+ } from "./index-8nsknkgs.js";
25
25
  import {
26
26
  MAX_TRANSIENT_RETRIES,
27
27
  archiveEvidence,
@@ -61,7 +61,7 @@ import {
61
61
  updateTaskCheckpointReceipt,
62
62
  updateTaskStatus,
63
63
  validateProjectRoot
64
- } from "./index-29w778rw.js";
64
+ } from "./index-18z6gf3a.js";
65
65
  import {
66
66
  EvaluationTaskV1Schema,
67
67
  GateAuditManifestV1Schema,
@@ -78,7 +78,7 @@ import {
78
78
  saveGateAuditResult,
79
79
  savePromotionDecision,
80
80
  saveTaskSetSnapshot
81
- } from "./index-wgqeqy68.js";
81
+ } from "./index-0rpfwzkw.js";
82
82
  import {
83
83
  canonicalHash,
84
84
  canonicalJson,
@@ -127,15 +127,15 @@ import {
127
127
  retireSkill,
128
128
  selectCandidateEntries,
129
129
  syncBundledProjectSkillsIfMissingAsync
130
- } from "./index-yscwyq3t.js";
130
+ } from "./index-g1rnq3pg.js";
131
131
  import {
132
132
  readRecentEscalations
133
- } from "./index-bz8vsc8r.js";
133
+ } from "./index-7tme4v2x.js";
134
134
  import {
135
135
  alreadyCuratedThisGeneration,
136
136
  claimNextScanBatch,
137
137
  resolveCohortId
138
- } from "./index-ya4ta1pd.js";
138
+ } from "./index-teq4xzkh.js";
139
139
  import {
140
140
  CURATOR_INIT_PROMPT,
141
141
  CURATOR_PHASE_PROMPT,
@@ -172,7 +172,7 @@ import {
172
172
  listActive,
173
173
  subscribe,
174
174
  unsubscribe
175
- } from "./index-8ntf8jnj.js";
175
+ } from "./index-83bewmqd.js";
176
176
  import {
177
177
  clearWorktreeMergeStatus,
178
178
  getAllWorktreeMergeFailures,
@@ -184,7 +184,7 @@ import {
184
184
  listCoderSettlementWalStates,
185
185
  recoverCoderSettlement,
186
186
  recoverStaleCoderSettlements
187
- } from "./index-bzesypf5.js";
187
+ } from "./index-1afqzpj4.js";
188
188
  import {
189
189
  parsePorcelainV2Snapshot,
190
190
  resolveCommitCountSince,
@@ -228,11 +228,11 @@ import {
228
228
  validateActionableFields,
229
229
  validateLesson,
230
230
  validateSkillPath
231
- } from "./index-4v28t7jh.js";
231
+ } from "./index-3qeznjj9.js";
232
232
  import {
233
233
  authorizeCuration,
234
234
  buildConfigFingerprintInput
235
- } from "./index-0zjwnbze.js";
235
+ } from "./index-sdhshera.js";
236
236
  import {
237
237
  cohortConfigFingerprint
238
238
  } from "./index-rtry5xyf.js";
@@ -263,12 +263,12 @@ import {
263
263
  transitionTaskWorkflowEvidence,
264
264
  withTaskEvidenceTransaction,
265
265
  writeWorkflowWalFile
266
- } from "./index-px4a2ve0.js";
266
+ } from "./index-rgj5zmms.js";
267
267
  import {
268
268
  makeWorktreeBranchName,
269
269
  provisionWorktree,
270
270
  removeWorktree
271
- } from "./index-gkqrk8dd.js";
271
+ } from "./index-pxzx4wxb.js";
272
272
  import {
273
273
  DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
274
274
  DELEGATION_COMPACTION_HIGH_WATER_BYTES,
@@ -302,14 +302,14 @@ import {
302
302
  scanBackgroundCoderReservationsForAdmission,
303
303
  scanDelegationsForRecovery,
304
304
  sweepStaleDelegations
305
- } from "./index-z39vxvdx.js";
305
+ } from "./index-qxvdwx79.js";
306
306
  import {
307
307
  MAX_PENDING_SCOPE_BINDINGS,
308
308
  canonicalWorkspaceIdentity,
309
309
  clearAllScopes,
310
310
  clearScopeBindingFromDisk,
311
311
  clearScopeBindings
312
- } from "./index-s3z936wh.js";
312
+ } from "./index-qkzyfnmc.js";
313
313
  import {
314
314
  appendLedgerEvent,
315
315
  computePlanLedgerHash,
@@ -324,7 +324,7 @@ import {
324
324
  readPlanEpochIdentity,
325
325
  replayFromLedgerWithStatus,
326
326
  takeSnapshotEvent
327
- } from "./index-y6s0gpn3.js";
327
+ } from "./index-wnw2rt73.js";
328
328
  import {
329
329
  canonicalExistingFilesystemPath,
330
330
  canonicalPathForFutureIo,
@@ -340,7 +340,7 @@ import {
340
340
  hasSpecDriftAuditEvent,
341
341
  hasTaskRepairAuditEvent,
342
342
  readCoreEvents
343
- } from "./index-3sv8t7ca.js";
343
+ } from "./index-sf24zdbp.js";
344
344
  import {
345
345
  sanitizeDiagnosticText
346
346
  } from "./index-556ja8an.js";
@@ -389,7 +389,7 @@ import {
389
389
  transactFile,
390
390
  transactKnowledge,
391
391
  wordBigrams
392
- } from "./index-ghnbpez3.js";
392
+ } from "./index-nj2gap5p.js";
393
393
  import {
394
394
  MAX_EVENT_LOG_ENTRIES,
395
395
  _internals as _internals2,
@@ -405,10 +405,10 @@ import {
405
405
  recordKnowledgeEvent,
406
406
  recordPhaseCloseIntent,
407
407
  resolveKnowledgeEventsPath
408
- } from "./index-g2e8b3wm.js";
408
+ } from "./index-h933exaw.js";
409
409
  import {
410
410
  resolveWorktreeIsolationConfig
411
- } from "./index-9ek9d96g.js";
411
+ } from "./index-5kstr2ga.js";
412
412
  import {
413
413
  RetrospectiveEvidenceSchema
414
414
  } from "./index-zg9d392c.js";
@@ -432,7 +432,7 @@ import {
432
432
  loadGateOverrides,
433
433
  loadPluginConfig,
434
434
  loadPluginConfigWithMeta
435
- } from "./index-apdp9bc1.js";
435
+ } from "./index-jpfktfb7.js";
436
436
  import {
437
437
  DEFAULT_HARNESS_EVOLUTION_CONFIG,
438
438
  DEFAULT_PR_REVIEW_RESILIENCE_CONFIG,
@@ -449,7 +449,7 @@ import {
449
449
  resolveAutoReviewConfig,
450
450
  resolveGeneratedAgentRole,
451
451
  stripKnownSwarmPrefix
452
- } from "./index-ypjffdrg.js";
452
+ } from "./index-8m3w7sr7.js";
453
453
  import {
454
454
  init_git_executable,
455
455
  resolveGitExecutable,
@@ -465,7 +465,7 @@ import {
465
465
  observeCuratorCompliance,
466
466
  observeStoreHealth,
467
467
  readLearningHealth
468
- } from "./index-9ydhzegh.js";
468
+ } from "./index-1anz3srx.js";
469
469
  import {
470
470
  AGENT_TOOL_MAP,
471
471
  ALL_AGENT_NAMES,
@@ -496,10 +496,10 @@ import {
496
496
  resolveLinkDir,
497
497
  sanitizeLinkId,
498
498
  writeLinkPointer
499
- } from "./index-93znbdam.js";
499
+ } from "./index-7fyjv3f2.js";
500
500
  import {
501
501
  atomicWriteFile
502
- } from "./index-mr3h3sm5.js";
502
+ } from "./index-pkga8b4j.js";
503
503
  import {
504
504
  KNOWLEDGE_SCHEMA_VERSION,
505
505
  OUTCOME_BLOCK_THRESHOLD,
@@ -520,7 +520,7 @@ import {
520
520
  listActiveLocks,
521
521
  tryAcquireLock,
522
522
  withEvidenceLock
523
- } from "./index-2czt53wz.js";
523
+ } from "./index-2bgr671r.js";
524
524
  import {
525
525
  atomicWriteSwarmFile,
526
526
  atomicWriteSwarmFileSync,
@@ -533,7 +533,7 @@ import {
533
533
  emit,
534
534
  getLastHeartbeat,
535
535
  telemetry
536
- } from "./index-kvq1e82k.js";
536
+ } from "./index-ww6zm5hr.js";
537
537
  import {
538
538
  require_proper_lockfile
539
539
  } from "./index-7g4c7s5r.js";
@@ -19077,6 +19077,7 @@ async function readPrWorkflowGateStateForRecovery(directory, sessionID) {
19077
19077
  init_constants();
19078
19078
  init_schema();
19079
19079
  init_warning_buffer();
19080
+ init_tool_metadata();
19080
19081
  init_logger();
19081
19082
 
19082
19083
  // src/commands/registry.ts
@@ -26187,7 +26188,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
26187
26188
  };
26188
26189
  }
26189
26190
  async function sweepActiveNearDuplicates(directory, options = {}) {
26190
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-espcjyrx.js");
26191
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-vsxq8b54.js");
26191
26192
  const { config } = loadPluginConfigWithMeta2(directory);
26192
26193
  const sweepConfig = config.learning?.dedup_sweep;
26193
26194
  if (sweepConfig?.enabled === false)
@@ -27324,7 +27325,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
27324
27325
  }
27325
27326
  if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
27326
27327
  try {
27327
- const skillModule = await import("./skill-generator-b4ng5xky.js");
27328
+ const skillModule = await import("./skill-generator-bddg7mx1.js");
27328
27329
  for (const cand of skillCandidates) {
27329
27330
  if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
27330
27331
  continue;
@@ -27796,7 +27797,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
27796
27797
  } catch {}
27797
27798
  }
27798
27799
  if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
27799
- const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-h9834mrp.js");
27800
+ const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-p60t5809.js");
27800
27801
  for (const { id } of contradictedEntries) {
27801
27802
  try {
27802
27803
  await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
@@ -28628,7 +28629,7 @@ async function runCuratorPostMortem(directory, options = {}) {
28628
28629
  warnings.push("Failed to collect knowledge summary.");
28629
28630
  }
28630
28631
  try {
28631
- const { getScanStatus } = await import("./scan-cursor-ysd8b563.js");
28632
+ const { getScanStatus } = await import("./scan-cursor-9bm4zfx2.js");
28632
28633
  const scanStatus = await getScanStatus(directory);
28633
28634
  if (scanStatus.remaining_estimate > 0) {
28634
28635
  warnings.push(`Fair scan: reviewed ${knowledgeSummary.length} entries this sweep (generation ${scanStatus.generation}); ${scanStatus.remaining_estimate} more eligible entries will be visited in future curation sweeps.`);
@@ -28800,9 +28801,9 @@ var _internals28 = {
28800
28801
  verifyPostMortemKnowledgeActions,
28801
28802
  repairPostMortemActions,
28802
28803
  loadDefaultKnowledgeConfig: async (directory) => {
28803
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-mbb9g4w4.js");
28804
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-4yjk7z24.js");
28804
28805
  try {
28805
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-espcjyrx.js");
28806
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-vsxq8b54.js");
28806
28807
  const loaded = loadPluginConfigWithMeta2(directory);
28807
28808
  return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
28808
28809
  } catch {
@@ -28810,11 +28811,11 @@ var _internals28 = {
28810
28811
  }
28811
28812
  },
28812
28813
  applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
28813
- const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-k8xdr1mn.js");
28814
+ const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-hvet3ccp.js");
28814
28815
  return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
28815
28816
  },
28816
28817
  checkHivePromotions: async (entries, knowledgeConfig, directory) => {
28817
- const { checkHivePromotions } = await import("./hive-promoter-wvt5kk99.js");
28818
+ const { checkHivePromotions } = await import("./hive-promoter-8nr61bhn.js");
28818
28819
  return checkHivePromotions(entries, knowledgeConfig, directory);
28819
28820
  },
28820
28821
  applyProposalTriage: async (directory, triage) => {
@@ -28823,7 +28824,7 @@ var _internals28 = {
28823
28824
  activateProposal,
28824
28825
  listSkills: listSkills2,
28825
28826
  sanitizeSlug
28826
- } = await import("./skill-generator-b4ng5xky.js");
28827
+ } = await import("./skill-generator-bddg7mx1.js");
28827
28828
  const result = {
28828
28829
  approved: [],
28829
28830
  rejected: [],
@@ -30152,9 +30153,9 @@ function hashContent(content) {
30152
30153
  return createHash17("sha1").update(content).digest("hex");
30153
30154
  }
30154
30155
  async function loadConfigForPolicyCurator(directory) {
30155
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-mbb9g4w4.js");
30156
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-4yjk7z24.js");
30156
30157
  try {
30157
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-espcjyrx.js");
30158
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-vsxq8b54.js");
30158
30159
  const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
30159
30160
  return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
30160
30161
  } catch {
@@ -42850,7 +42851,7 @@ async function runFinalizeStage(ctx) {
42850
42851
  }
42851
42852
  }
42852
42853
  try {
42853
- const { CuratorConfigSchema: CCS } = await import("./schema-mbb9g4w4.js");
42854
+ const { CuratorConfigSchema: CCS } = await import("./schema-4yjk7z24.js");
42854
42855
  const { config: pmLoadedConfig } = _internals42.loadPluginConfigWithMeta(ctx.directory);
42855
42856
  const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
42856
42857
  if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
@@ -43739,7 +43740,7 @@ var _internals42 = {
43739
43740
  closePlanTerminalState: reconcileCloseTerminalStateForPlan,
43740
43741
  endAgentSession,
43741
43742
  flushAndDrainTelemetry: async () => {
43742
- const { flushAndDrainTelemetry } = await import("./telemetry-85gxedng.js");
43743
+ const { flushAndDrainTelemetry } = await import("./telemetry-mbqqamsj.js");
43743
43744
  return flushAndDrainTelemetry();
43744
43745
  },
43745
43746
  finalizeContextTelemetry: (directory) => {
@@ -45078,9 +45079,9 @@ var _internals46 = {
45078
45079
  loadPluginConfigWithMeta,
45079
45080
  loadCuratorDeps: async () => {
45080
45081
  const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
45081
- import("./schema-mbb9g4w4.js"),
45082
- import("./curator-k8xdr1mn.js"),
45083
- import("./curator-llm-factory-pe61p0r6.js")
45082
+ import("./schema-4yjk7z24.js"),
45083
+ import("./curator-hvet3ccp.js"),
45084
+ import("./curator-llm-factory-mqyj4d2w.js")
45084
45085
  ]);
45085
45086
  return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
45086
45087
  }
@@ -46123,7 +46124,7 @@ async function computeCurationDiagnostics(directory, entries) {
46123
46124
  let scanCompleted = false;
46124
46125
  let scanRemaining = 0;
46125
46126
  try {
46126
- const { getScanStatus } = await import("./scan-cursor-ysd8b563.js");
46127
+ const { getScanStatus } = await import("./scan-cursor-9bm4zfx2.js");
46127
46128
  const status = await getScanStatus(directory);
46128
46129
  scanGeneration = status.generation;
46129
46130
  scanCompleted = status.completed;
@@ -46131,19 +46132,19 @@ async function computeCurationDiagnostics(directory, entries) {
46131
46132
  } catch {}
46132
46133
  let configMatch = null;
46133
46134
  try {
46134
- const { isLinked: isLinked2 } = await import("./knowledge-link-hhnmc4g1.js");
46135
+ const { isLinked: isLinked2 } = await import("./knowledge-link-kbbp0rhh.js");
46135
46136
  if (isLinked2(directory)) {
46136
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-mbb9g4w4.js");
46137
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-4yjk7z24.js");
46137
46138
  let config;
46138
46139
  try {
46139
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-espcjyrx.js");
46140
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-vsxq8b54.js");
46140
46141
  const loaded = loadPluginConfigWithMeta2(directory);
46141
46142
  config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
46142
46143
  } catch {
46143
46144
  config = KnowledgeConfigSchema2.parse({});
46144
46145
  }
46145
46146
  const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
46146
- const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-de7emfqc.js");
46147
+ const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-w829da9a.js");
46147
46148
  const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
46148
46149
  const cohortFp = await readCohortConfigFingerprint(directory);
46149
46150
  configMatch = cohortFp === null ? null : currentFp === cohortFp;
@@ -47532,7 +47533,7 @@ async function handleDoctorCommand(directory, args) {
47532
47533
  const result = runConfigDoctor(config, directory);
47533
47534
  let output;
47534
47535
  if (enableAutoFix && result.hasAutoFixableIssues) {
47535
- const { runConfigDoctorWithFixes } = await import("./config-doctor-hp9dj0fg.js");
47536
+ const { runConfigDoctorWithFixes } = await import("./config-doctor-zqbzjqsk.js");
47536
47537
  const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
47537
47538
  applyLossy: true
47538
47539
  });
@@ -48475,7 +48476,7 @@ async function handleEvidenceCommand(directory, args) {
48475
48476
  return formatTaskEvidenceMarkdown(evidenceData);
48476
48477
  }
48477
48478
  async function handleEvidenceSummaryCommand(directory) {
48478
- const { buildEvidenceSummary } = await import("./evidence-summary-service-qzpkdv7a.js");
48479
+ const { buildEvidenceSummary } = await import("./evidence-summary-service-zefetqqa.js");
48479
48480
  const artifact = await buildEvidenceSummary(directory);
48480
48481
  if (!artifact) {
48481
48482
  return "No plan found. Run `/swarm plan` to check plan status.";
@@ -83860,7 +83861,7 @@ async function runValidationWithTransientRetry(input, candidateContent, baseline
83860
83861
  if (!input.dispatcher) {
83861
83862
  throw new Error("no evaluation dispatcher available (cannot run validation)");
83862
83863
  }
83863
- const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-5qqh83e2.js");
83864
+ const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-59cbgcdy.js");
83864
83865
  const executor = createModelEvaluationExecutor2(input.dispatcher, input.sessionId);
83865
83866
  const result = await withProtectedSetIntegrity([evalInputRoot, ...protectedRoots(input.directory)], () => _internals99.evaluateCandidateV1({
83866
83867
  projectRoot: input.directory,
@@ -85999,7 +86000,7 @@ function buildDetailedHelp(commandName, entry) {
85999
86000
  async function handleHelpCommand(ctx) {
86000
86001
  const targetCommand = ctx.args.join(" ");
86001
86002
  if (!targetCommand) {
86002
- const { buildHelpText } = await import("./index-whz6am0v.js");
86003
+ const { buildHelpText } = await import("./index-hwqxp3kr.js");
86003
86004
  return buildHelpText();
86004
86005
  }
86005
86006
  const tokens = targetCommand.split(/\s+/);
@@ -86008,7 +86009,7 @@ async function handleHelpCommand(ctx) {
86008
86009
  return _internals102.buildDetailedHelp(resolved.key, resolved.entry);
86009
86010
  }
86010
86011
  const similar = _internals102.findSimilarCommands(targetCommand);
86011
- const { buildHelpText: fullHelp } = await import("./index-whz6am0v.js");
86012
+ const { buildHelpText: fullHelp } = await import("./index-hwqxp3kr.js");
86012
86013
  if (similar.length > 0) {
86013
86014
  return `Command '/swarm ${targetCommand}' not found.
86014
86015
 
@@ -86339,7 +86340,7 @@ var COMMAND_REGISTRY = {
86339
86340
  },
86340
86341
  "guardrail explain": {
86341
86342
  handler: async (ctx) => {
86342
- const { handleGuardrailExplain } = await import("./guardrail-explain-vzwbmvyf.js");
86343
+ const { handleGuardrailExplain } = await import("./guardrail-explain-mk9z5n76.js");
86343
86344
  return handleGuardrailExplain(ctx.directory, ctx.args);
86344
86345
  },
86345
86346
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -86349,7 +86350,7 @@ var COMMAND_REGISTRY = {
86349
86350
  },
86350
86351
  "guardrail reset": {
86351
86352
  handler: async (ctx) => {
86352
- const { handleGuardrailReset } = await import("./guardrail-reset-acndbsv9.js");
86353
+ const { handleGuardrailReset } = await import("./guardrail-reset-0062066m.js");
86353
86354
  return handleGuardrailReset(ctx.args, ctx.sessionID);
86354
86355
  },
86355
86356
  description: "Reset one exact active invocation/action circuit after repair",
@@ -86358,7 +86359,7 @@ var COMMAND_REGISTRY = {
86358
86359
  },
86359
86360
  "guardrail-explain": {
86360
86361
  handler: async (ctx) => {
86361
- const { handleGuardrailExplain } = await import("./guardrail-explain-vzwbmvyf.js");
86362
+ const { handleGuardrailExplain } = await import("./guardrail-explain-mk9z5n76.js");
86362
86363
  return handleGuardrailExplain(ctx.directory, ctx.args);
86363
86364
  },
86364
86365
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -86368,7 +86369,7 @@ var COMMAND_REGISTRY = {
86368
86369
  },
86369
86370
  "guardrail-reset": {
86370
86371
  handler: async (ctx) => {
86371
- const { handleGuardrailReset } = await import("./guardrail-reset-acndbsv9.js");
86372
+ const { handleGuardrailReset } = await import("./guardrail-reset-0062066m.js");
86372
86373
  return handleGuardrailReset(ctx.args, ctx.sessionID);
86373
86374
  },
86374
86375
  description: "Reset one exact active invocation/action circuit after repair",
@@ -86378,7 +86379,7 @@ var COMMAND_REGISTRY = {
86378
86379
  },
86379
86380
  "guardrail-log": {
86380
86381
  handler: async (ctx) => {
86381
- const { handleGuardrailLog } = await import("./guardrail-log-kckc7cg4.js");
86382
+ const { handleGuardrailLog } = await import("./guardrail-log-jf1sj1zc.js");
86382
86383
  return handleGuardrailLog(ctx.directory, ctx.args);
86383
86384
  },
86384
86385
  description: "Read the guardrail decision log (use --blocks-only for blocks)",
@@ -92377,7 +92378,7 @@ function getDisplayFinalPromptPressure() {
92377
92378
  async function rehydratePrSubscriptions(sessionID, directory) {
92378
92379
  const map = new Map;
92379
92380
  try {
92380
- const { listActive: listActive2 } = await import("./pr-subscriptions-73fs8y3n.js");
92381
+ const { listActive: listActive2 } = await import("./pr-subscriptions-7am85psn.js");
92381
92382
  const records = await listActive2(directory);
92382
92383
  for (const record of records) {
92383
92384
  if (record.sessionID !== sessionID)
@@ -92823,7 +92824,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
92823
92824
  return extracted === expectedSessionId;
92824
92825
  }
92825
92826
  async function inspectStandardWorktreeCollisionOwnership(identity) {
92826
- const collisionOwnership = await import("./worktree-collision-ownership-ns8p2fks.js");
92827
+ const collisionOwnership = await import("./worktree-collision-ownership-84j7w373.js");
92827
92828
  return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
92828
92829
  }
92829
92830
  async function runRecoveryGit(directory, args, timeoutMs = 15000) {
@@ -93228,7 +93229,7 @@ async function precreateStandardWorktreeSession(args) {
93228
93229
  const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
93229
93230
  if (laneProfile) {
93230
93231
  try {
93231
- const { writeLaneProfileToDiskReal } = await import("./core-bmmrm36k.js");
93232
+ const { writeLaneProfileToDiskReal } = await import("./core-6b997gee.js");
93232
93233
  await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
93233
93234
  } catch {}
93234
93235
  }
@@ -94153,7 +94154,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
94153
94154
  }
94154
94155
  clearWorktreeMergeStatus(statusKey);
94155
94156
  try {
94156
- const { removeLaneProfileFromDiskReal } = await import("./core-bmmrm36k.js");
94157
+ const { removeLaneProfileFromDiskReal } = await import("./core-6b997gee.js");
94157
94158
  await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
94158
94159
  } catch {}
94159
94160
  const state = serializationStateBySessionID.get(dispatch.parentSessionID);
@@ -6,10 +6,10 @@ import {
6
6
  } from "./index-ae75rja9.js";
7
7
  import {
8
8
  resolveKnowledgeStoreDir
9
- } from "./index-93znbdam.js";
9
+ } from "./index-7fyjv3f2.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-mr3h3sm5.js";
12
+ } from "./index-pkga8b4j.js";
13
13
  import {
14
14
  init_knowledge_types,
15
15
  isActiveStatus
@@ -713,7 +713,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
713
713
  const {
714
714
  readAuthoritativeKnowledgeCounterRollups,
715
715
  effectiveRetrievalOutcomes
716
- } = await import("./knowledge-events-e8hrmjf0.js");
716
+ } = await import("./knowledge-events-90k35k0w.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-exd900vc.js");
784
- const { KnowledgeConfigSchema } = await import("./schema-mbb9g4w4.js");
783
+ const { quarantineEntry } = await import("./knowledge-validator-5zqwvnvr.js");
784
+ const { KnowledgeConfigSchema } = await import("./schema-4yjk7z24.js");
785
785
  let config;
786
786
  try {
787
- const { loadPluginConfigWithMeta } = await import("./index-espcjyrx.js");
787
+ const { loadPluginConfigWithMeta } = await import("./index-vsxq8b54.js");
788
788
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
789
789
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
790
790
  } catch {
@@ -14,14 +14,14 @@ import {
14
14
  detectWindowsWrites,
15
15
  getSharedClassifierGuardrailBlock,
16
16
  resolveWriteTargets
17
- } from "./index-52m9kter.js";
17
+ } from "./index-mh57gjsd.js";
18
18
  import {
19
19
  checkFileAuthority,
20
20
  classifyFile,
21
21
  isInDeclaredScope,
22
22
  redactPath,
23
23
  redactShellCommand
24
- } from "./index-b10yvv6h.js";
24
+ } from "./index-41m7f0xj.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
  withEvidenceLock
4
- } from "./index-2czt53wz.js";
4
+ } from "./index-2bgr671r.js";
5
5
  import {
6
6
  atomicWriteFileAnyRoot
7
7
  } from "./index-t1qzjhnj.js";
@@ -4,7 +4,7 @@ import {
4
4
  readShellAuditTail,
5
5
  redactPath,
6
6
  redactShellCommand
7
- } from "./index-b10yvv6h.js";
7
+ } from "./index-41m7f0xj.js";
8
8
 
9
9
  // src/services/guardrail-log-service.ts
10
10
  var BLOCK_TYPES = new Set([
@@ -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-jrbnhxvx.js");
95
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-s2ayj1c3.js");
96
96
  return realWrite(directory, taskId, files);
97
97
  },
98
98
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -2,23 +2,23 @@
2
2
  import {
3
3
  computePlanStructureHash,
4
4
  derivePlanId
5
- } from "./index-y6s0gpn3.js";
5
+ } from "./index-wnw2rt73.js";
6
6
  import {
7
7
  canonicalExistingFilesystemPath,
8
8
  legacyCanonicalExistingFilesystemPath
9
9
  } from "./index-ry16d01s.js";
10
10
  import {
11
11
  appendCoreEventSync
12
- } from "./index-3sv8t7ca.js";
12
+ } from "./index-sf24zdbp.js";
13
13
  import {
14
14
  unsafePathTextReason
15
15
  } from "./index-556ja8an.js";
16
16
  import {
17
17
  PlanSchema
18
- } from "./index-apdp9bc1.js";
18
+ } from "./index-jpfktfb7.js";
19
19
  import {
20
20
  assertProjectRoot
21
- } from "./index-2czt53wz.js";
21
+ } from "./index-2bgr671r.js";
22
22
  import {
23
23
  atomicWriteSwarmFile,
24
24
  atomicWriteSwarmFileSync
@@ -7,7 +7,7 @@ import {
7
7
  } from "./index-r3mvsbtq.js";
8
8
  import {
9
9
  observeDelegationLedgerPressure
10
- } from "./index-9ydhzegh.js";
10
+ } from "./index-1anz3srx.js";
11
11
  import {
12
12
  canonicalRootKeyFresh,
13
13
  sameProjectRoot
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  EvidenceLockTimeoutError,
17
17
  withEvidenceLock
18
- } from "./index-2czt53wz.js";
18
+ } from "./index-2bgr671r.js";
19
19
  import {
20
20
  exports_external,
21
21
  init_zod
@@ -3988,7 +3988,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
3988
3988
  const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
3989
3989
  if (candidates.length === 0)
3990
3990
  return 0;
3991
- const { transferCoderSettlementToBackground } = await import("./coder-settlement-qrtjv4jk.js");
3991
+ const { transferCoderSettlementToBackground } = await import("./coder-settlement-8wxdx3ge.js");
3992
3992
  let transferred = 0;
3993
3993
  for (const record of candidates) {
3994
3994
  try {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  autoCommitDirty,
4
4
  cleanUntrackedFiles
5
- } from "./index-gkqrk8dd.js";
5
+ } from "./index-pxzx4wxb.js";
6
6
  import {
7
7
  isPathWithinDeclaredScope,
8
8
  unsafePathTextReason
@@ -26,13 +26,13 @@ import {
26
26
  atomicWriteFile,
27
27
  taskEvidencePath,
28
28
  withTaskEvidenceLock
29
- } from "./index-mr3h3sm5.js";
29
+ } from "./index-pkga8b4j.js";
30
30
  import {
31
31
  assertProjectRoot
32
- } from "./index-2czt53wz.js";
32
+ } from "./index-2bgr671r.js";
33
33
  import {
34
34
  telemetry
35
- } from "./index-kvq1e82k.js";
35
+ } from "./index-ww6zm5hr.js";
36
36
  import {
37
37
  exports_external,
38
38
  init_zod
@@ -7,7 +7,7 @@ import {
7
7
  readLinkPointer,
8
8
  resolveKnowledgeStoreDir,
9
9
  resolveLinkDir
10
- } from "./index-93znbdam.js";
10
+ } from "./index-7fyjv3f2.js";
11
11
 
12
12
  // src/knowledge/curation-policy.ts
13
13
  import { appendFile, mkdir as mkdir2, readFile as readFile2 } from "fs/promises";