opencode-swarm 7.164.2 → 7.164.4

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 (78) hide show
  1. package/dist/cli/{coder-settlement-kv1x94w6.js → coder-settlement-zzy2egsx.js} +11 -11
  2. package/dist/cli/{config-doctor-8d7ydxck.js → config-doctor-62xd5far.js} +2 -2
  3. package/dist/cli/{core-7jjgxczp.js → core-7kdmc7h9.js} +1 -1
  4. package/dist/cli/{curation-policy-7pnmnfct.js → curation-policy-913dnxqq.js} +6 -6
  5. package/dist/cli/{curator-5nyth2rj.js → curator-4s6ekk85.js} +34 -34
  6. package/dist/cli/{curator-drift-ykrdf08r.js → curator-drift-3s3q4wsy.js} +4 -4
  7. package/dist/cli/curator-llm-factory-q3t3r632.js +66 -0
  8. package/dist/cli/{evidence-summary-service-aebn7nb9.js → evidence-summary-service-gw936xgz.js} +15 -15
  9. package/dist/cli/{gate-evidence-es59pysy.js → gate-evidence-4we18rhr.js} +7 -7
  10. package/dist/cli/guardrail-explain-jjbnrcqn.js +67 -0
  11. package/dist/cli/{guardrail-log-fd3c5rks.js → guardrail-log-9d4f09qt.js} +7 -7
  12. package/dist/cli/{guardrail-reset-r49rvptv.js → guardrail-reset-1hpd6bkj.js} +34 -34
  13. package/dist/cli/{hive-promoter-qp2kjhhp.js → hive-promoter-nr8dsxhe.js} +34 -34
  14. package/dist/cli/{index-92q98ry8.js → index-08e6x59x.js} +7 -7
  15. package/dist/cli/{index-h9wnkr2e.js → index-0m94jsss.js} +5 -5
  16. package/dist/cli/{index-hcn69kp0.js → index-0zbze3n6.js} +1 -1
  17. package/dist/cli/{index-y2f5s2cf.js → index-1f4nandk.js} +1 -1
  18. package/dist/cli/{index-kwd09y5a.js → index-4tgtbptw.js} +4 -4
  19. package/dist/cli/{index-zs1jrsta.js → index-5k226hxp.js} +2 -2
  20. package/dist/cli/{index-gz5rn6w6.js → index-7zbk1e24.js} +9 -9
  21. package/dist/cli/{index-zgeqwbhw.js → index-8fjx6k2s.js} +1 -1
  22. package/dist/cli/{index-1r6p1wpa.js → index-a0jhxx5q.js} +3 -3
  23. package/dist/cli/{index-hnwg5gt6.js → index-cf54ftj1.js} +4 -4
  24. package/dist/cli/{index-br7q79t2.js → index-eh2k07pp.js} +7 -7
  25. package/dist/cli/{index-jw9wbwdh.js → index-et9y4ga8.js} +36 -36
  26. package/dist/cli/{index-yep24wn4.js → index-gt6p21cs.js} +1 -1
  27. package/dist/cli/{index-w5jpjaqe.js → index-jba9jgse.js} +2 -2
  28. package/dist/cli/{index-bzd67m2j.js → index-k1m9214q.js} +1 -1
  29. package/dist/cli/{index-34exj2e3.js → index-k8vy89vm.js} +1 -1
  30. package/dist/cli/{index-pcnhh2vt.js → index-ne38vr77.js} +2 -2
  31. package/dist/cli/{index-cm4r8gh2.js → index-nwpg81ke.js} +1 -1
  32. package/dist/cli/{index-sb4eanpv.js → index-prammvxb.js} +1 -1
  33. package/dist/cli/{index-qmeewt3g.js → index-pztdbtgw.js} +3 -3
  34. package/dist/cli/{index-axtnc0xf.js → index-q9yz8da4.js} +5 -5
  35. package/dist/cli/{index-5d7bzpfn.js → index-qfrrcdhj.js} +1 -1
  36. package/dist/cli/{index-yjftcanv.js → index-qkwx4rrc.js} +71 -71
  37. package/dist/cli/{index-v56mhyhs.js → index-rz87mx1c.js} +1 -1
  38. package/dist/cli/{index-ac39znep.js → index-stj85yx1.js} +2 -2
  39. package/dist/cli/{index-q3xn3m3g.js → index-t2tqbq62.js} +4 -4
  40. package/dist/cli/{index-f9nfknjg.js → index-tfa2p4y4.js} +3 -3
  41. package/dist/cli/{index-c8k4cs94.js → index-tme2kjvq.js} +5 -5
  42. package/dist/cli/{index-fyt5byhd.js → index-v7a8e7rv.js} +2 -2
  43. package/dist/cli/{index-xm6c1tnf.js → index-vx28633q.js} +1 -1
  44. package/dist/cli/{index-6vtm4rd0.js → index-vzs3st30.js} +21 -21
  45. package/dist/cli/{index-3704v4e6.js → index-wzmchqry.js} +1 -1
  46. package/dist/cli/{index-b85jnfp4.js → index-x63jqvj3.js} +2 -2
  47. package/dist/cli/{index-2xj34nkh.js → index-x9ayhkkx.js} +1 -1
  48. package/dist/cli/{index-qbr05tbw.js → index-xj4kbtdw.js} +2 -2
  49. package/dist/cli/{index-yqhwrjw9.js → index-xjw7j7et.js} +5 -5
  50. package/dist/cli/{index-w8qt2612.js → index-yx3xqb0w.js} +13 -13
  51. package/dist/cli/{index-0145kpjr.js → index-z408nj03.js} +2 -2
  52. package/dist/cli/index.js +34 -34
  53. package/dist/cli/{knowledge-escalator-439jajb3.js → knowledge-escalator-hp1ctjpe.js} +13 -13
  54. package/dist/cli/{knowledge-events-wz3h98kk.js → knowledge-events-0qrenmng.js} +11 -11
  55. package/dist/cli/{knowledge-link-2gh1cnk3.js → knowledge-link-f5g5d171.js} +5 -5
  56. package/dist/cli/{knowledge-store-y1cwe80n.js → knowledge-store-8er824g9.js} +6 -6
  57. package/dist/cli/{knowledge-validator-bk2qfqe2.js → knowledge-validator-0jd3htcj.js} +8 -8
  58. package/dist/cli/{pending-delegations-kh4mkvzb.js → pending-delegations-d1n5faxg.js} +6 -6
  59. package/dist/cli/{pr-subscriptions-sdv0n59c.js → pr-subscriptions-s2b2yvbd.js} +6 -6
  60. package/dist/cli/{pr-workflow-gate-a9vj11e5.js → pr-workflow-gate-51s842yy.js} +34 -34
  61. package/dist/cli/{runner-m95v9d47.js → runner-nkh65pcm.js} +6 -6
  62. package/dist/cli/{scan-cursor-pjek24k7.js → scan-cursor-gt55f3d6.js} +7 -7
  63. package/dist/cli/{schema-674qw3aj.js → schema-rpdz901j.js} +1 -1
  64. package/dist/cli/{scope-persistence-sq331eqh.js → scope-persistence-js1ywq04.js} +9 -9
  65. package/dist/cli/{skill-generator-pcw7c50r.js → skill-generator-xsxes2w0.js} +15 -15
  66. package/dist/cli/{telemetry-c4j18da8.js → telemetry-9tfts5q2.js} +1 -1
  67. package/dist/cli/{worktree-collision-ownership-vnj31rgc.js → worktree-collision-ownership-54ca6mb8.js} +7 -7
  68. package/dist/cli/{worktree-isolation-tje6p4zt.js → worktree-isolation-haesnft8.js} +34 -34
  69. package/dist/config/plan-schema.d.ts +1 -1
  70. package/dist/council/council-review-identity.d.ts +1 -1
  71. package/dist/index.js +15 -15
  72. package/dist/plan/ledger.d.ts +56 -29
  73. package/dist/services/skill-optimizer/store.d.ts +1 -1
  74. package/dist/services/tool-doctor.d.ts +3 -2
  75. package/dist/tools/tool-metadata.d.ts +5 -4
  76. package/package.json +1 -1
  77. package/dist/cli/curator-llm-factory-d415s169.js +0 -66
  78. package/dist/cli/guardrail-explain-mn2x7w2y.js +0 -67
@@ -6,7 +6,7 @@ import {
6
6
  resolveExecutableFromPath,
7
7
  runEvaluation,
8
8
  runExternalTool
9
- } from "./index-2xj34nkh.js";
9
+ } from "./index-x9ayhkkx.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-qmeewt3g.js";
18
+ } from "./index-pztdbtgw.js";
19
19
  import {
20
20
  detectStraySwarmDirs,
21
21
  readDoctorArtifact,
22
22
  removeStraySwarmDir,
23
23
  runConfigDoctor
24
- } from "./index-34exj2e3.js";
24
+ } from "./index-k8vy89vm.js";
25
25
  import {
26
26
  MAX_TRANSIENT_RETRIES,
27
27
  archiveEvidence,
@@ -65,7 +65,7 @@ import {
65
65
  validateProjectRoot,
66
66
  validateSymlinkBoundary,
67
67
  validateTargetWithinRoot
68
- } from "./index-6vtm4rd0.js";
68
+ } from "./index-vzs3st30.js";
69
69
  import {
70
70
  EvaluationTaskV1Schema,
71
71
  GateAuditManifestV1Schema,
@@ -82,7 +82,7 @@ import {
82
82
  saveGateAuditResult,
83
83
  savePromotionDecision,
84
84
  saveTaskSetSnapshot
85
- } from "./index-w5jpjaqe.js";
85
+ } from "./index-jba9jgse.js";
86
86
  import {
87
87
  canonicalHash,
88
88
  canonicalJson,
@@ -124,15 +124,15 @@ import {
124
124
  retireSkill,
125
125
  selectCandidateEntries,
126
126
  syncBundledProjectSkillsIfMissingAsync
127
- } from "./index-kwd09y5a.js";
127
+ } from "./index-4tgtbptw.js";
128
128
  import {
129
129
  readRecentEscalations
130
- } from "./index-yqhwrjw9.js";
130
+ } from "./index-xjw7j7et.js";
131
131
  import {
132
132
  alreadyCuratedThisGeneration,
133
133
  claimNextScanBatch,
134
134
  resolveCohortId
135
- } from "./index-b85jnfp4.js";
135
+ } from "./index-x63jqvj3.js";
136
136
  import {
137
137
  CURATOR_INIT_PROMPT,
138
138
  CURATOR_PHASE_PROMPT,
@@ -143,7 +143,7 @@ import {
143
143
  getGlobalEventBus,
144
144
  getGroupCommitWriter,
145
145
  importLegacyJsonl
146
- } from "./index-y2f5s2cf.js";
146
+ } from "./index-1f4nandk.js";
147
147
  import {
148
148
  DURABILITY_CLASSES,
149
149
  applySynchronousForClass,
@@ -159,7 +159,7 @@ import {
159
159
  resolveSpeckitProjection,
160
160
  validateSpeckit,
161
161
  writeProjectedSpecSync
162
- } from "./index-hcn69kp0.js";
162
+ } from "./index-0zbze3n6.js";
163
163
  import {
164
164
  loadDatabaseCtor
165
165
  } from "./index-zaab1wz9.js";
@@ -169,7 +169,7 @@ import {
169
169
  listActive,
170
170
  subscribe,
171
171
  unsubscribe
172
- } from "./index-c8k4cs94.js";
172
+ } from "./index-tme2kjvq.js";
173
173
  import {
174
174
  clearWorktreeMergeStatus,
175
175
  getAllWorktreeMergeFailures,
@@ -181,7 +181,7 @@ import {
181
181
  listCoderSettlementWalStates,
182
182
  recoverCoderSettlement,
183
183
  recoverStaleCoderSettlements
184
- } from "./index-92q98ry8.js";
184
+ } from "./index-08e6x59x.js";
185
185
  import {
186
186
  parsePorcelainV2Snapshot,
187
187
  resolveCommitCountSince,
@@ -214,7 +214,7 @@ import {
214
214
  WORKTREE_LIFECYCLE_LOCK_FILE,
215
215
  recordWorktreeProvisioningOwner,
216
216
  removeWorktreeProvisioningOwner
217
- } from "./index-qbr05tbw.js";
217
+ } from "./index-xj4kbtdw.js";
218
218
  import {
219
219
  appendUnactionable,
220
220
  quarantineEntry,
@@ -225,11 +225,11 @@ import {
225
225
  validateActionableFields,
226
226
  validateLesson,
227
227
  validateSkillPath
228
- } from "./index-q3xn3m3g.js";
228
+ } from "./index-t2tqbq62.js";
229
229
  import {
230
230
  authorizeCuration,
231
231
  buildConfigFingerprintInput
232
- } from "./index-sb4eanpv.js";
232
+ } from "./index-prammvxb.js";
233
233
  import {
234
234
  cohortConfigFingerprint
235
235
  } from "./index-rtry5xyf.js";
@@ -260,12 +260,12 @@ import {
260
260
  transitionTaskWorkflowEvidence,
261
261
  withTaskEvidenceTransaction,
262
262
  writeWorkflowWalFile
263
- } from "./index-h9wnkr2e.js";
263
+ } from "./index-0m94jsss.js";
264
264
  import {
265
265
  makeWorktreeBranchName,
266
266
  provisionWorktree,
267
267
  removeWorktree
268
- } from "./index-zgeqwbhw.js";
268
+ } from "./index-8fjx6k2s.js";
269
269
  import {
270
270
  DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
271
271
  DELEGATION_COMPACTION_HIGH_WATER_BYTES,
@@ -298,7 +298,7 @@ import {
298
298
  scanBackgroundCoderReservationsForAdmission,
299
299
  scanDelegationsForRecovery,
300
300
  sweepStaleDelegations
301
- } from "./index-hnwg5gt6.js";
301
+ } from "./index-cf54ftj1.js";
302
302
  import {
303
303
  compositeSessionKey,
304
304
  sessionKeySuffix
@@ -309,10 +309,10 @@ import {
309
309
  clearAllScopes,
310
310
  clearScopeBindingFromDisk,
311
311
  clearScopeBindings
312
- } from "./index-axtnc0xf.js";
312
+ } from "./index-q9yz8da4.js";
313
313
  import {
314
314
  appendLedgerEvent,
315
- computePlanHash,
315
+ computePlanLedgerHash,
316
316
  computePlanStructureHash,
317
317
  derivePlanId,
318
318
  derivePlanIdentityHash,
@@ -324,7 +324,7 @@ import {
324
324
  readPlanEpochIdentity,
325
325
  replayFromLedgerWithStatus,
326
326
  takeSnapshotEvent
327
- } from "./index-w8qt2612.js";
327
+ } from "./index-yx3xqb0w.js";
328
328
  import {
329
329
  CORE_EVENT_LOCKED,
330
330
  appendCoreEventSync,
@@ -334,7 +334,7 @@ import {
334
334
  hasSpecDriftAuditEvent,
335
335
  hasTaskRepairAuditEvent,
336
336
  readCoreEvents
337
- } from "./index-0145kpjr.js";
337
+ } from "./index-z408nj03.js";
338
338
  import {
339
339
  sanitizeDiagnosticText
340
340
  } from "./index-556ja8an.js";
@@ -383,7 +383,7 @@ import {
383
383
  transactFile,
384
384
  transactKnowledge,
385
385
  wordBigrams
386
- } from "./index-br7q79t2.js";
386
+ } from "./index-eh2k07pp.js";
387
387
  import {
388
388
  MAX_EVENT_LOG_ENTRIES,
389
389
  _internals as _internals2,
@@ -399,10 +399,10 @@ import {
399
399
  recordKnowledgeEvent,
400
400
  recordPhaseCloseIntent,
401
401
  resolveKnowledgeEventsPath
402
- } from "./index-gz5rn6w6.js";
402
+ } from "./index-7zbk1e24.js";
403
403
  import {
404
404
  resolveWorktreeIsolationConfig
405
- } from "./index-fyt5byhd.js";
405
+ } from "./index-v7a8e7rv.js";
406
406
  import {
407
407
  RetrospectiveEvidenceSchema
408
408
  } from "./index-zg9d392c.js";
@@ -411,7 +411,7 @@ import {
411
411
  readSwarmFileAsync,
412
412
  safeHook,
413
413
  validateSwarmPath
414
- } from "./index-v56mhyhs.js";
414
+ } from "./index-rz87mx1c.js";
415
415
  import {
416
416
  bunSpawn,
417
417
  bunSpawnSync,
@@ -425,7 +425,7 @@ import {
425
425
  init_loader,
426
426
  loadPluginConfig,
427
427
  loadPluginConfigWithMeta
428
- } from "./index-xm6c1tnf.js";
428
+ } from "./index-vx28633q.js";
429
429
  import {
430
430
  DEFAULT_HARNESS_EVOLUTION_CONFIG,
431
431
  DEFAULT_PR_REVIEW_RESILIENCE_CONFIG,
@@ -442,7 +442,7 @@ import {
442
442
  resolveAutoReviewConfig,
443
443
  resolveGeneratedAgentRole,
444
444
  stripKnownSwarmPrefix
445
- } from "./index-3704v4e6.js";
445
+ } from "./index-wzmchqry.js";
446
446
  import {
447
447
  init_git_executable,
448
448
  resolveGitExecutable,
@@ -458,7 +458,7 @@ import {
458
458
  observeCuratorCompliance,
459
459
  observeStoreHealth,
460
460
  readLearningHealth
461
- } from "./index-ac39znep.js";
461
+ } from "./index-stj85yx1.js";
462
462
  import {
463
463
  AGENT_TOOL_MAP,
464
464
  ALL_AGENT_NAMES,
@@ -489,10 +489,10 @@ import {
489
489
  resolveLinkDir,
490
490
  sanitizeLinkId,
491
491
  writeLinkPointer
492
- } from "./index-5d7bzpfn.js";
492
+ } from "./index-qfrrcdhj.js";
493
493
  import {
494
494
  atomicWriteFile
495
- } from "./index-zs1jrsta.js";
495
+ } from "./index-5k226hxp.js";
496
496
  import {
497
497
  KNOWLEDGE_SCHEMA_VERSION,
498
498
  OUTCOME_BLOCK_THRESHOLD,
@@ -506,7 +506,7 @@ import {
506
506
  listActiveLocks,
507
507
  tryAcquireLock,
508
508
  withEvidenceLock
509
- } from "./index-yep24wn4.js";
509
+ } from "./index-gt6p21cs.js";
510
510
  import {
511
511
  atomicWriteSwarmFile,
512
512
  atomicWriteSwarmFileSync,
@@ -514,12 +514,12 @@ import {
514
514
  matchTempGrammar,
515
515
  parseTargetBasename,
516
516
  resetSwarmArtifactCache
517
- } from "./index-f9nfknjg.js";
517
+ } from "./index-tfa2p4y4.js";
518
518
  import {
519
519
  emit,
520
520
  getLastHeartbeat,
521
521
  telemetry
522
- } from "./index-bzd67m2j.js";
522
+ } from "./index-k1m9214q.js";
523
523
  import {
524
524
  require_proper_lockfile
525
525
  } from "./index-7g4c7s5r.js";
@@ -26104,7 +26104,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
26104
26104
  };
26105
26105
  }
26106
26106
  async function sweepActiveNearDuplicates(directory, options = {}) {
26107
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-1r6p1wpa.js");
26107
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-a0jhxx5q.js");
26108
26108
  const { config } = loadPluginConfigWithMeta2(directory);
26109
26109
  const sweepConfig = config.learning?.dedup_sweep;
26110
26110
  if (sweepConfig?.enabled === false)
@@ -27241,7 +27241,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
27241
27241
  }
27242
27242
  if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
27243
27243
  try {
27244
- const skillModule = await import("./skill-generator-pcw7c50r.js");
27244
+ const skillModule = await import("./skill-generator-xsxes2w0.js");
27245
27245
  for (const cand of skillCandidates) {
27246
27246
  if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
27247
27247
  continue;
@@ -27713,7 +27713,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
27713
27713
  } catch {}
27714
27714
  }
27715
27715
  if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
27716
- const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-439jajb3.js");
27716
+ const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-hp1ctjpe.js");
27717
27717
  for (const { id } of contradictedEntries) {
27718
27718
  try {
27719
27719
  await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
@@ -28545,7 +28545,7 @@ async function runCuratorPostMortem(directory, options = {}) {
28545
28545
  warnings.push("Failed to collect knowledge summary.");
28546
28546
  }
28547
28547
  try {
28548
- const { getScanStatus } = await import("./scan-cursor-pjek24k7.js");
28548
+ const { getScanStatus } = await import("./scan-cursor-gt55f3d6.js");
28549
28549
  const scanStatus = await getScanStatus(directory);
28550
28550
  if (scanStatus.remaining_estimate > 0) {
28551
28551
  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.`);
@@ -28717,9 +28717,9 @@ var _internals28 = {
28717
28717
  verifyPostMortemKnowledgeActions,
28718
28718
  repairPostMortemActions,
28719
28719
  loadDefaultKnowledgeConfig: async (directory) => {
28720
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-674qw3aj.js");
28720
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-rpdz901j.js");
28721
28721
  try {
28722
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-1r6p1wpa.js");
28722
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-a0jhxx5q.js");
28723
28723
  const loaded = loadPluginConfigWithMeta2(directory);
28724
28724
  return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
28725
28725
  } catch {
@@ -28727,11 +28727,11 @@ var _internals28 = {
28727
28727
  }
28728
28728
  },
28729
28729
  applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
28730
- const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-5nyth2rj.js");
28730
+ const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-4s6ekk85.js");
28731
28731
  return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
28732
28732
  },
28733
28733
  checkHivePromotions: async (entries, knowledgeConfig, directory) => {
28734
- const { checkHivePromotions } = await import("./hive-promoter-qp2kjhhp.js");
28734
+ const { checkHivePromotions } = await import("./hive-promoter-nr8dsxhe.js");
28735
28735
  return checkHivePromotions(entries, knowledgeConfig, directory);
28736
28736
  },
28737
28737
  applyProposalTriage: async (directory, triage) => {
@@ -28740,7 +28740,7 @@ var _internals28 = {
28740
28740
  activateProposal,
28741
28741
  listSkills: listSkills2,
28742
28742
  sanitizeSlug
28743
- } = await import("./skill-generator-pcw7c50r.js");
28743
+ } = await import("./skill-generator-xsxes2w0.js");
28744
28744
  const result = {
28745
28745
  approved: [],
28746
28746
  rejected: [],
@@ -28782,7 +28782,7 @@ var _internals28 = {
28782
28782
  return result;
28783
28783
  },
28784
28784
  readPriorDriftReports: async (directory) => {
28785
- const { readPriorDriftReports } = await import("./curator-drift-ykrdf08r.js");
28785
+ const { readPriorDriftReports } = await import("./curator-drift-3s3q4wsy.js");
28786
28786
  return readPriorDriftReports(directory);
28787
28787
  },
28788
28788
  readSwarmKnowledge: (directory) => readKnowledge(resolveSwarmKnowledgePath(directory))
@@ -30069,9 +30069,9 @@ function hashContent(content) {
30069
30069
  return createHash17("sha1").update(content).digest("hex");
30070
30070
  }
30071
30071
  async function loadConfigForPolicyCurator(directory) {
30072
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-674qw3aj.js");
30072
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-rpdz901j.js");
30073
30073
  try {
30074
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-1r6p1wpa.js");
30074
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-a0jhxx5q.js");
30075
30075
  const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
30076
30076
  return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
30077
30077
  } catch {
@@ -42734,7 +42734,7 @@ async function runFinalizeStage(ctx) {
42734
42734
  }
42735
42735
  }
42736
42736
  try {
42737
- const { CuratorConfigSchema: CCS } = await import("./schema-674qw3aj.js");
42737
+ const { CuratorConfigSchema: CCS } = await import("./schema-rpdz901j.js");
42738
42738
  const { config: pmLoadedConfig } = _internals42.loadPluginConfigWithMeta(ctx.directory);
42739
42739
  const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
42740
42740
  if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
@@ -43623,7 +43623,7 @@ var _internals42 = {
43623
43623
  closePlanTerminalState: reconcileCloseTerminalStateForPlan,
43624
43624
  endAgentSession,
43625
43625
  flushAndDrainTelemetry: async () => {
43626
- const { flushAndDrainTelemetry } = await import("./telemetry-c4j18da8.js");
43626
+ const { flushAndDrainTelemetry } = await import("./telemetry-9tfts5q2.js");
43627
43627
  return flushAndDrainTelemetry();
43628
43628
  },
43629
43629
  finalizeContextTelemetry: (directory) => {
@@ -44961,9 +44961,9 @@ var _internals46 = {
44961
44961
  loadPluginConfigWithMeta,
44962
44962
  loadCuratorDeps: async () => {
44963
44963
  const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
44964
- import("./schema-674qw3aj.js"),
44965
- import("./curator-5nyth2rj.js"),
44966
- import("./curator-llm-factory-d415s169.js")
44964
+ import("./schema-rpdz901j.js"),
44965
+ import("./curator-4s6ekk85.js"),
44966
+ import("./curator-llm-factory-q3t3r632.js")
44967
44967
  ]);
44968
44968
  return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
44969
44969
  }
@@ -46006,7 +46006,7 @@ async function computeCurationDiagnostics(directory, entries) {
46006
46006
  let scanCompleted = false;
46007
46007
  let scanRemaining = 0;
46008
46008
  try {
46009
- const { getScanStatus } = await import("./scan-cursor-pjek24k7.js");
46009
+ const { getScanStatus } = await import("./scan-cursor-gt55f3d6.js");
46010
46010
  const status = await getScanStatus(directory);
46011
46011
  scanGeneration = status.generation;
46012
46012
  scanCompleted = status.completed;
@@ -46014,19 +46014,19 @@ async function computeCurationDiagnostics(directory, entries) {
46014
46014
  } catch {}
46015
46015
  let configMatch = null;
46016
46016
  try {
46017
- const { isLinked: isLinked2 } = await import("./knowledge-link-2gh1cnk3.js");
46017
+ const { isLinked: isLinked2 } = await import("./knowledge-link-f5g5d171.js");
46018
46018
  if (isLinked2(directory)) {
46019
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-674qw3aj.js");
46019
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-rpdz901j.js");
46020
46020
  let config;
46021
46021
  try {
46022
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-1r6p1wpa.js");
46022
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-a0jhxx5q.js");
46023
46023
  const loaded = loadPluginConfigWithMeta2(directory);
46024
46024
  config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
46025
46025
  } catch {
46026
46026
  config = KnowledgeConfigSchema2.parse({});
46027
46027
  }
46028
46028
  const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
46029
- const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-7pnmnfct.js");
46029
+ const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-913dnxqq.js");
46030
46030
  const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
46031
46031
  const cohortFp = await readCohortConfigFingerprint(directory);
46032
46032
  configMatch = cohortFp === null ? null : currentFp === cohortFp;
@@ -47415,7 +47415,7 @@ async function handleDoctorCommand(directory, args) {
47415
47415
  const result = runConfigDoctor(config, directory);
47416
47416
  let output;
47417
47417
  if (enableAutoFix && result.hasAutoFixableIssues) {
47418
- const { runConfigDoctorWithFixes } = await import("./config-doctor-8d7ydxck.js");
47418
+ const { runConfigDoctorWithFixes } = await import("./config-doctor-62xd5far.js");
47419
47419
  const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
47420
47420
  applyLossy: true
47421
47421
  });
@@ -48355,7 +48355,7 @@ async function handleEvidenceCommand(directory, args) {
48355
48355
  return formatTaskEvidenceMarkdown(evidenceData);
48356
48356
  }
48357
48357
  async function handleEvidenceSummaryCommand(directory) {
48358
- const { buildEvidenceSummary } = await import("./evidence-summary-service-aebn7nb9.js");
48358
+ const { buildEvidenceSummary } = await import("./evidence-summary-service-gw936xgz.js");
48359
48359
  const artifact = await buildEvidenceSummary(directory);
48360
48360
  if (!artifact) {
48361
48361
  return "No plan found. Run `/swarm plan` to check plan status.";
@@ -81593,7 +81593,7 @@ async function handleRollbackCommand(directory, args) {
81593
81593
  const planRaw = fs49.readFileSync(planJsonPath, "utf-8");
81594
81594
  const plan = PlanSchema.parse(JSON.parse(planRaw));
81595
81595
  const planId = derivePlanId(plan);
81596
- const planHash = computePlanHash(plan);
81596
+ const planHash = computePlanLedgerHash(plan);
81597
81597
  await initLedger(directory, planId, planHash, plan);
81598
81598
  await appendLedgerEvent(directory, {
81599
81599
  event_type: "plan_rebuilt",
@@ -83734,7 +83734,7 @@ async function runValidationWithTransientRetry(input, candidateContent, baseline
83734
83734
  if (!input.dispatcher) {
83735
83735
  throw new Error("no evaluation dispatcher available (cannot run validation)");
83736
83736
  }
83737
- const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-m95v9d47.js");
83737
+ const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-nkh65pcm.js");
83738
83738
  const executor = createModelEvaluationExecutor2(input.dispatcher, input.sessionId);
83739
83739
  const result = await withProtectedSetIntegrity([evalInputRoot, ...protectedRoots(input.directory)], () => _internals99.evaluateCandidateV1({
83740
83740
  projectRoot: input.directory,
@@ -85869,7 +85869,7 @@ function buildDetailedHelp(commandName, entry) {
85869
85869
  async function handleHelpCommand(ctx) {
85870
85870
  const targetCommand = ctx.args.join(" ");
85871
85871
  if (!targetCommand) {
85872
- const { buildHelpText } = await import("./index-jw9wbwdh.js");
85872
+ const { buildHelpText } = await import("./index-et9y4ga8.js");
85873
85873
  return buildHelpText();
85874
85874
  }
85875
85875
  const tokens = targetCommand.split(/\s+/);
@@ -85878,7 +85878,7 @@ async function handleHelpCommand(ctx) {
85878
85878
  return _internals102.buildDetailedHelp(resolved.key, resolved.entry);
85879
85879
  }
85880
85880
  const similar = _internals102.findSimilarCommands(targetCommand);
85881
- const { buildHelpText: fullHelp } = await import("./index-jw9wbwdh.js");
85881
+ const { buildHelpText: fullHelp } = await import("./index-et9y4ga8.js");
85882
85882
  if (similar.length > 0) {
85883
85883
  return `Command '/swarm ${targetCommand}' not found.
85884
85884
 
@@ -86209,7 +86209,7 @@ var COMMAND_REGISTRY = {
86209
86209
  },
86210
86210
  "guardrail explain": {
86211
86211
  handler: async (ctx) => {
86212
- const { handleGuardrailExplain } = await import("./guardrail-explain-mn2x7w2y.js");
86212
+ const { handleGuardrailExplain } = await import("./guardrail-explain-jjbnrcqn.js");
86213
86213
  return handleGuardrailExplain(ctx.directory, ctx.args);
86214
86214
  },
86215
86215
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -86219,7 +86219,7 @@ var COMMAND_REGISTRY = {
86219
86219
  },
86220
86220
  "guardrail reset": {
86221
86221
  handler: async (ctx) => {
86222
- const { handleGuardrailReset } = await import("./guardrail-reset-r49rvptv.js");
86222
+ const { handleGuardrailReset } = await import("./guardrail-reset-1hpd6bkj.js");
86223
86223
  return handleGuardrailReset(ctx.args, ctx.sessionID);
86224
86224
  },
86225
86225
  description: "Reset one exact active invocation/action circuit after repair",
@@ -86228,7 +86228,7 @@ var COMMAND_REGISTRY = {
86228
86228
  },
86229
86229
  "guardrail-explain": {
86230
86230
  handler: async (ctx) => {
86231
- const { handleGuardrailExplain } = await import("./guardrail-explain-mn2x7w2y.js");
86231
+ const { handleGuardrailExplain } = await import("./guardrail-explain-jjbnrcqn.js");
86232
86232
  return handleGuardrailExplain(ctx.directory, ctx.args);
86233
86233
  },
86234
86234
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -86238,7 +86238,7 @@ var COMMAND_REGISTRY = {
86238
86238
  },
86239
86239
  "guardrail-reset": {
86240
86240
  handler: async (ctx) => {
86241
- const { handleGuardrailReset } = await import("./guardrail-reset-r49rvptv.js");
86241
+ const { handleGuardrailReset } = await import("./guardrail-reset-1hpd6bkj.js");
86242
86242
  return handleGuardrailReset(ctx.args, ctx.sessionID);
86243
86243
  },
86244
86244
  description: "Reset one exact active invocation/action circuit after repair",
@@ -86248,7 +86248,7 @@ var COMMAND_REGISTRY = {
86248
86248
  },
86249
86249
  "guardrail-log": {
86250
86250
  handler: async (ctx) => {
86251
- const { handleGuardrailLog } = await import("./guardrail-log-fd3c5rks.js");
86251
+ const { handleGuardrailLog } = await import("./guardrail-log-9d4f09qt.js");
86252
86252
  return handleGuardrailLog(ctx.directory, ctx.args);
86253
86253
  },
86254
86254
  description: "Read the guardrail decision log (use --blocks-only for blocks)",
@@ -92247,7 +92247,7 @@ function getDisplayFinalPromptPressure() {
92247
92247
  async function rehydratePrSubscriptions(sessionID, directory) {
92248
92248
  const map = new Map;
92249
92249
  try {
92250
- const { listActive: listActive2 } = await import("./pr-subscriptions-sdv0n59c.js");
92250
+ const { listActive: listActive2 } = await import("./pr-subscriptions-s2b2yvbd.js");
92251
92251
  const records = await listActive2(directory);
92252
92252
  for (const record of records) {
92253
92253
  if (record.sessionID !== sessionID)
@@ -92693,7 +92693,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
92693
92693
  return extracted === expectedSessionId;
92694
92694
  }
92695
92695
  async function inspectStandardWorktreeCollisionOwnership(identity) {
92696
- const collisionOwnership = await import("./worktree-collision-ownership-vnj31rgc.js");
92696
+ const collisionOwnership = await import("./worktree-collision-ownership-54ca6mb8.js");
92697
92697
  return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
92698
92698
  }
92699
92699
  async function runRecoveryGit(directory, args, timeoutMs = 15000) {
@@ -93102,7 +93102,7 @@ async function precreateStandardWorktreeSession(args) {
93102
93102
  const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
93103
93103
  if (laneProfile) {
93104
93104
  try {
93105
- const { writeLaneProfileToDiskReal } = await import("./core-7jjgxczp.js");
93105
+ const { writeLaneProfileToDiskReal } = await import("./core-7kdmc7h9.js");
93106
93106
  await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
93107
93107
  } catch {}
93108
93108
  }
@@ -94027,7 +94027,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
94027
94027
  }
94028
94028
  clearWorktreeMergeStatus(statusKey);
94029
94029
  try {
94030
- const { removeLaneProfileFromDiskReal } = await import("./core-7jjgxczp.js");
94030
+ const { removeLaneProfileFromDiskReal } = await import("./core-7kdmc7h9.js");
94031
94031
  await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
94032
94032
  } catch {}
94033
94033
  const state = serializationStateBySessionID.get(dispatch.parentSessionID);
@@ -7,7 +7,7 @@ import {
7
7
  } from "./index-r3mvsbtq.js";
8
8
  import {
9
9
  readCachedTextFile
10
- } from "./index-f9nfknjg.js";
10
+ } from "./index-tfa2p4y4.js";
11
11
  import {
12
12
  warn
13
13
  } from "./index-zgwm4ryv.js";
@@ -1,12 +1,12 @@
1
1
  // @bun
2
2
  import {
3
3
  atomicWriteSwarmFile
4
- } from "./index-f9nfknjg.js";
4
+ } from "./index-tfa2p4y4.js";
5
5
  import {
6
6
  pseudonymousRef,
7
7
  resolveLineageSalt,
8
8
  telemetry
9
- } from "./index-bzd67m2j.js";
9
+ } from "./index-k1m9214q.js";
10
10
 
11
11
  // src/health/learning-health.ts
12
12
  import { promises as fs } from "fs";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-sb4eanpv.js";
4
+ } from "./index-prammvxb.js";
5
5
  import {
6
6
  findNearDuplicate,
7
7
  inferTags,
@@ -9,13 +9,13 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-br7q79t2.js";
12
+ } from "./index-eh2k07pp.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
- } from "./index-5d7bzpfn.js";
15
+ } from "./index-qfrrcdhj.js";
16
16
  import {
17
17
  atomicWriteFile
18
- } from "./index-zs1jrsta.js";
18
+ } from "./index-5k226hxp.js";
19
19
  import {
20
20
  require_proper_lockfile
21
21
  } from "./index-7g4c7s5r.js";
@@ -231,7 +231,7 @@ var SWARM_TEMP_GRAMMARS = [
231
231
  "src/evidence/phase-participation.ts:303 (pre-#2035)",
232
232
  "src/turbo/lean/integration.ts:426",
233
233
  "src/turbo/lean/reviewer.ts:403",
234
- "src/plan/ledger.ts:713",
234
+ "src/plan/ledger.ts:737",
235
235
  "src/services/synonym-map.ts:389",
236
236
  "src/services/skill-optimizer/store.ts:340",
237
237
  "src/services/skill-optimizer/store.ts:503",
@@ -402,8 +402,8 @@ var SWARM_TEMP_GRAMMARS = [
402
402
  "src/hooks/skill-usage-log.ts:1675",
403
403
  "src/hooks/skill-usage-pending.ts:817",
404
404
  "src/parallel/file-locks.ts:113",
405
- "src/plan/ledger.ts:1302",
406
- "src/plan/ledger.ts:1303"
405
+ "src/plan/ledger.ts:1333",
406
+ "src/plan/ledger.ts:1334"
407
407
  ],
408
408
  note: "constant-name temps: reported when stale, never auto-quarantined. file-locks meta sidecars live under the scanner-skipped .swarm/locks/ subtree; the ledger reconcile temp embeds instance tokens but its .tmp-suffix shape maps here (conservatively report-only)"
409
409
  }
@@ -1,19 +1,19 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-v56mhyhs.js";
4
+ } from "./index-rz87mx1c.js";
5
5
  import {
6
6
  observeStoreHealth
7
- } from "./index-ac39znep.js";
7
+ } from "./index-stj85yx1.js";
8
8
  import {
9
9
  withEvidenceLock
10
- } from "./index-yep24wn4.js";
10
+ } from "./index-gt6p21cs.js";
11
11
  import {
12
12
  atomicWriteSwarmFileSync
13
- } from "./index-f9nfknjg.js";
13
+ } from "./index-tfa2p4y4.js";
14
14
  import {
15
15
  telemetry
16
- } from "./index-bzd67m2j.js";
16
+ } from "./index-k1m9214q.js";
17
17
  import {
18
18
  exports_external,
19
19
  init_zod
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  init_loader,
4
4
  loadPluginConfigWithMeta
5
- } from "./index-xm6c1tnf.js";
5
+ } from "./index-vx28633q.js";
6
6
  import {
7
7
  init_schema
8
- } from "./index-3704v4e6.js";
8
+ } from "./index-wzmchqry.js";
9
9
  import {
10
10
  DEFAULT_WORKTREE_ISOLATION_CONFIG,
11
11
  init_constants
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  resolveExternalSkillsConfig
9
- } from "./index-3704v4e6.js";
9
+ } from "./index-wzmchqry.js";
10
10
  import {
11
11
  GIT_BINARY_ENV_VAR,
12
12
  init_git_executable