opencode-swarm 7.162.1 → 7.163.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/cli/{coder-settlement-zrda71k0.js → coder-settlement-g2g5kkv5.js} +8 -8
  2. package/dist/cli/{config-doctor-gjw4hdvt.js → config-doctor-p16xr78z.js} +2 -2
  3. package/dist/cli/{core-q5j5a7fh.js → core-g088v0zt.js} +1 -1
  4. package/dist/cli/{curation-policy-nv31cr6t.js → curation-policy-j12j2gvc.js} +5 -5
  5. package/dist/cli/{curator-njskp28b.js → curator-3m8a8qsn.js} +29 -29
  6. package/dist/cli/{curator-llm-factory-8d6kqsj1.js → curator-llm-factory-p00hks4v.js} +29 -29
  7. package/dist/cli/{evidence-summary-service-5rry81jm.js → evidence-summary-service-4ghqakhx.js} +12 -12
  8. package/dist/cli/{gate-evidence-b6k9wng8.js → gate-evidence-4v8apasx.js} +5 -5
  9. package/dist/cli/{guardrail-explain-5yw549sm.js → guardrail-explain-smqenqtm.js} +30 -30
  10. package/dist/cli/{guardrail-log-nrnx87ac.js → guardrail-log-mmh4b4k4.js} +6 -6
  11. package/dist/cli/{guardrail-reset-zm5an5bw.js → guardrail-reset-zge5hg4p.js} +29 -29
  12. package/dist/cli/{hive-promoter-zzgnfhxr.js → hive-promoter-vxez5s7m.js} +29 -29
  13. package/dist/cli/{index-1eqbnwm6.js → index-0103w5pf.js} +2 -2
  14. package/dist/cli/{index-fx3em0dr.js → index-2zgjcmmc.js} +139 -45
  15. package/dist/cli/{index-a1bh2e4f.js → index-3ab9tczn.js} +8 -8
  16. package/dist/cli/{index-m516tpxe.js → index-3rjxbe1p.js} +2 -2
  17. package/dist/cli/{index-9cvfa8p8.js → index-453tzvkg.js} +1 -1
  18. package/dist/cli/{index-wvfgkms6.js → index-4t68xs0p.js} +3 -3
  19. package/dist/cli/{index-z74stz9p.js → index-4xggfhge.js} +3 -3
  20. package/dist/cli/{index-7322jr05.js → index-5hgn302x.js} +7 -7
  21. package/dist/cli/{index-w1sfjffe.js → index-7n9jznv0.js} +3 -3
  22. package/dist/cli/{index-xtjvg1wx.js → index-7wb2v7jg.js} +63 -63
  23. package/dist/cli/{index-rkr19fdv.js → index-8ada7ag7.js} +2 -2
  24. package/dist/cli/{index-nqbqkx4c.js → index-9crtmnqg.js} +1 -1
  25. package/dist/cli/{index-gss86tj3.js → index-axx3t3k7.js} +2 -2
  26. package/dist/cli/{index-9m1ze4z4.js → index-cqgpvx2d.js} +1 -1
  27. package/dist/cli/{index-0myjf1y2.js → index-eqkdjfqa.js} +4 -4
  28. package/dist/cli/{index-5a8nk165.js → index-f7t5fn4z.js} +4 -4
  29. package/dist/cli/{index-j1gq4qm8.js → index-g4bvsapf.js} +5 -5
  30. package/dist/cli/{index-v0t8z5ab.js → index-hm239n1p.js} +1 -1
  31. package/dist/cli/{index-y3fgbx8g.js → index-m4nhy4fp.js} +1 -1
  32. package/dist/cli/{index-vcen0ne4.js → index-m7yt3xmk.js} +1 -1
  33. package/dist/cli/{index-3nsewz46.js → index-n2mhyect.js} +1 -1
  34. package/dist/cli/{index-63s6t3z4.js → index-n67vx5zw.js} +1 -1
  35. package/dist/cli/{index-xsv6zv7n.js → index-nwa7ctyf.js} +31 -31
  36. package/dist/cli/{index-3gym3fjj.js → index-ptsmms01.js} +6 -6
  37. package/dist/cli/{index-m24pv3f4.js → index-pykfqsk0.js} +4 -4
  38. package/dist/cli/{index-3fs3p6ck.js → index-qy2rm1f6.js} +5 -5
  39. package/dist/cli/{index-cjjcey0h.js → index-rqh25ns3.js} +1 -1
  40. package/dist/cli/{index-f18bqg18.js → index-s8c6f9rr.js} +3 -3
  41. package/dist/cli/{index-gwbxeh8j.js → index-t4hs3qk6.js} +3 -3
  42. package/dist/cli/{index-ttdjphep.js → index-w0yn4rmh.js} +3 -3
  43. package/dist/cli/{index-hq1gdz0g.js → index-w1mc7gcm.js} +2 -2
  44. package/dist/cli/{index-nbfpnb0w.js → index-xyhmt813.js} +1 -1
  45. package/dist/cli/{index-bgzdwkpe.js → index-zgz81a8x.js} +1 -1
  46. package/dist/cli/index.js +29 -29
  47. package/dist/cli/{knowledge-escalator-8y3adkn0.js → knowledge-escalator-91d1n291.js} +11 -11
  48. package/dist/cli/{knowledge-events-mnexhwe2.js → knowledge-events-xrd9es3p.js} +9 -9
  49. package/dist/cli/{knowledge-link-jr8rqr39.js → knowledge-link-vmdj5e5d.js} +4 -4
  50. package/dist/cli/{knowledge-store-cp42ccd1.js → knowledge-store-2brg88cx.js} +5 -5
  51. package/dist/cli/{knowledge-validator-hwp1t6x3.js → knowledge-validator-s1v7kry2.js} +7 -7
  52. package/dist/cli/{pending-delegations-jj5vaq9q.js → pending-delegations-b341397j.js} +4 -4
  53. package/dist/cli/{pr-subscriptions-mm6kyyv0.js → pr-subscriptions-2mkdt0ak.js} +4 -4
  54. package/dist/cli/{runner-d402vnq3.js → runner-3gw2njnx.js} +5 -5
  55. package/dist/cli/{scan-cursor-d75dh3hv.js → scan-cursor-jm7j3w1c.js} +6 -6
  56. package/dist/cli/{schema-djm1bhb8.js → schema-6cpgnq4s.js} +1 -1
  57. package/dist/cli/{scope-persistence-g0yc6dfa.js → scope-persistence-q713ck5n.js} +8 -8
  58. package/dist/cli/{skill-generator-9ppgxz4j.js → skill-generator-z9bs6vdt.js} +13 -13
  59. package/dist/cli/{telemetry-cmbjv240.js → telemetry-x4zggfd7.js} +1 -1
  60. package/dist/cli/{worktree-collision-ownership-061zmyyp.js → worktree-collision-ownership-drtv7jjp.js} +4 -4
  61. package/dist/cli/{worktree-isolation-vk82698z.js → worktree-isolation-534h3c2f.js} +29 -29
  62. package/dist/council/council-observability.d.ts +42 -0
  63. package/dist/index.js +6 -6
  64. package/dist/observability/catalog.d.ts +8 -4
  65. package/dist/observability/ids.d.ts +1 -1
  66. package/dist/observability/legacy.d.ts +6 -4
  67. package/dist/observability/observe.d.ts +1 -1
  68. package/dist/telemetry.d.ts +1 -1
  69. package/package.json +1 -1
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  stripKnownSwarmPrefix
9
- } from "./index-vcen0ne4.js";
9
+ } from "./index-m7yt3xmk.js";
10
10
  import {
11
11
  ALL_AGENT_NAMES,
12
12
  init_constants
@@ -4,14 +4,14 @@ import {
4
4
  PlanSchema,
5
5
  TaskStatusSchema,
6
6
  init_loader
7
- } from "./index-cjjcey0h.js";
7
+ } from "./index-rqh25ns3.js";
8
8
  import {
9
9
  assertProjectRoot,
10
10
  withEvidenceLock
11
- } from "./index-nqbqkx4c.js";
11
+ } from "./index-9crtmnqg.js";
12
12
  import {
13
13
  emit
14
- } from "./index-fx3em0dr.js";
14
+ } from "./index-2zgjcmmc.js";
15
15
  import {
16
16
  criticalWarn,
17
17
  init_logger,
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ALLOWED_SKILL_PATH_PREFIXES,
4
4
  validateSkillPath
5
- } from "./index-5a8nk165.js";
5
+ } from "./index-f7t5fn4z.js";
6
6
  import {
7
7
  withTimeoutSignal
8
8
  } from "./index-q7sjgr1y.js";
@@ -12,11 +12,11 @@ import {
12
12
  resolveHiveKnowledgePath,
13
13
  resolveSwarmKnowledgePath,
14
14
  transactKnowledge
15
- } from "./index-3gym3fjj.js";
15
+ } from "./index-ptsmms01.js";
16
16
  import {
17
17
  effectiveRetrievalOutcomes,
18
18
  readAuthoritativeKnowledgeCounterRollups
19
- } from "./index-a1bh2e4f.js";
19
+ } from "./index-3ab9tczn.js";
20
20
  import {
21
21
  advisoryWarn,
22
22
  init_warning_buffer
@@ -3,7 +3,7 @@ import {
3
3
  EvaluationRunV1Schema,
4
4
  GateAuditResultV1Schema,
5
5
  getProtectedEvaluationRunIds
6
- } from "./index-1eqbnwm6.js";
6
+ } from "./index-0103w5pf.js";
7
7
  import {
8
8
  loadDatabaseCtor
9
9
  } from "./index-n249fbw7.js";
@@ -23,7 +23,7 @@ import {
23
23
  readTaskEvidence,
24
24
  readTaskEvidenceRaw,
25
25
  sanitizeTaskId
26
- } from "./index-0myjf1y2.js";
26
+ } from "./index-eqkdjfqa.js";
27
27
  import {
28
28
  LedgerStaleWriterError,
29
29
  appendLedgerEvent,
@@ -43,10 +43,10 @@ import {
43
43
  replayFromLedgerWithStatus,
44
44
  takeSnapshotEvent,
45
45
  takeSnapshotWithRetry
46
- } from "./index-wvfgkms6.js";
46
+ } from "./index-4t68xs0p.js";
47
47
  import {
48
48
  appendCoreEventSync
49
- } from "./index-rkr19fdv.js";
49
+ } from "./index-8ada7ag7.js";
50
50
  import {
51
51
  init_executor,
52
52
  isUntrustedEnvKey,
@@ -70,7 +70,7 @@ import {
70
70
  } from "./index-r3mvsbtq.js";
71
71
  import {
72
72
  PlanSchema
73
- } from "./index-cjjcey0h.js";
73
+ } from "./index-rqh25ns3.js";
74
74
  import {
75
75
  GIT_BINARY_ENV_VAR,
76
76
  describeGitResolution,
@@ -81,10 +81,10 @@ import {
81
81
  assertProjectRoot,
82
82
  tryAcquireLock,
83
83
  withEvidenceLock
84
- } from "./index-nqbqkx4c.js";
84
+ } from "./index-9crtmnqg.js";
85
85
  import {
86
86
  emit
87
- } from "./index-fx3em0dr.js";
87
+ } from "./index-2zgjcmmc.js";
88
88
  import {
89
89
  invalidateCachedArtifact,
90
90
  readCachedParsedFile
@@ -4,16 +4,16 @@ import {
4
4
  } from "./index-dtn0pne5.js";
5
5
  import {
6
6
  observeStoreHealth
7
- } from "./index-9m1ze4z4.js";
7
+ } from "./index-cqgpvx2d.js";
8
8
  import {
9
9
  withEvidenceLock
10
- } from "./index-nqbqkx4c.js";
10
+ } from "./index-9crtmnqg.js";
11
11
  import {
12
12
  atomicWriteSwarmFileSync
13
13
  } from "./index-3b762978.js";
14
14
  import {
15
15
  telemetry
16
- } from "./index-fx3em0dr.js";
16
+ } from "./index-2zgjcmmc.js";
17
17
  import {
18
18
  exports_external,
19
19
  init_zod
@@ -6,7 +6,7 @@ import {
6
6
  resolveExecutableFromPath,
7
7
  runEvaluation,
8
8
  runExternalTool
9
- } from "./index-nbfpnb0w.js";
9
+ } from "./index-xyhmt813.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-f18bqg18.js";
18
+ } from "./index-s8c6f9rr.js";
19
19
  import {
20
20
  detectStraySwarmDirs,
21
21
  readDoctorArtifact,
22
22
  removeStraySwarmDir,
23
23
  runConfigDoctor
24
- } from "./index-9cvfa8p8.js";
24
+ } from "./index-453tzvkg.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-7322jr05.js";
71
+ } from "./index-5hgn302x.js";
72
72
  import {
73
73
  EvaluationTaskV1Schema,
74
74
  GateAuditManifestV1Schema,
@@ -85,7 +85,7 @@ import {
85
85
  saveGateAuditResult,
86
86
  savePromotionDecision,
87
87
  saveTaskSetSnapshot
88
- } from "./index-1eqbnwm6.js";
88
+ } from "./index-0103w5pf.js";
89
89
  import {
90
90
  canonicalHash,
91
91
  canonicalJson,
@@ -130,15 +130,15 @@ import {
130
130
  retireSkill,
131
131
  selectCandidateEntries,
132
132
  syncBundledProjectSkillsIfMissingAsync
133
- } from "./index-z74stz9p.js";
133
+ } from "./index-4xggfhge.js";
134
134
  import {
135
135
  readRecentEscalations
136
- } from "./index-j1gq4qm8.js";
136
+ } from "./index-g4bvsapf.js";
137
137
  import {
138
138
  alreadyCuratedThisGeneration,
139
139
  claimNextScanBatch,
140
140
  resolveCohortId
141
- } from "./index-gss86tj3.js";
141
+ } from "./index-axx3t3k7.js";
142
142
  import {
143
143
  CURATOR_INIT_PROMPT,
144
144
  CURATOR_PHASE_PROMPT,
@@ -162,7 +162,7 @@ import {
162
162
  listActive,
163
163
  subscribe,
164
164
  unsubscribe
165
- } from "./index-w1sfjffe.js";
165
+ } from "./index-7n9jznv0.js";
166
166
  import {
167
167
  clearWorktreeMergeStatus,
168
168
  getAllWorktreeMergeFailures,
@@ -174,7 +174,7 @@ import {
174
174
  listCoderSettlementWalStates,
175
175
  recoverCoderSettlement,
176
176
  recoverStaleCoderSettlements
177
- } from "./index-3fs3p6ck.js";
177
+ } from "./index-qy2rm1f6.js";
178
178
  import {
179
179
  parsePorcelainV2Snapshot,
180
180
  resolveCommitCountSince,
@@ -218,11 +218,11 @@ import {
218
218
  validateActionableFields,
219
219
  validateLesson,
220
220
  validateSkillPath
221
- } from "./index-5a8nk165.js";
221
+ } from "./index-f7t5fn4z.js";
222
222
  import {
223
223
  authorizeCuration,
224
224
  buildConfigFingerprintInput
225
- } from "./index-v0t8z5ab.js";
225
+ } from "./index-hm239n1p.js";
226
226
  import {
227
227
  cohortConfigFingerprint
228
228
  } from "./index-rtry5xyf.js";
@@ -253,12 +253,12 @@ import {
253
253
  transitionTaskWorkflowEvidence,
254
254
  withTaskEvidenceTransaction,
255
255
  writeWorkflowWalFile
256
- } from "./index-0myjf1y2.js";
256
+ } from "./index-eqkdjfqa.js";
257
257
  import {
258
258
  makeWorktreeBranchName,
259
259
  provisionWorktree,
260
260
  removeWorktree
261
- } from "./index-bgzdwkpe.js";
261
+ } from "./index-zgz81a8x.js";
262
262
  import {
263
263
  DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
264
264
  DELEGATION_COMPACTION_HIGH_WATER_BYTES,
@@ -273,7 +273,7 @@ import {
273
273
  scanBackgroundCoderReservationsForAdmission,
274
274
  scanDelegationsForRecovery,
275
275
  sweepStaleDelegations
276
- } from "./index-gwbxeh8j.js";
276
+ } from "./index-t4hs3qk6.js";
277
277
  import {
278
278
  compositeSessionKey,
279
279
  sessionKeySuffix
@@ -323,7 +323,7 @@ import {
323
323
  clearAllScopes,
324
324
  clearScopeBindingFromDisk,
325
325
  clearScopeBindings
326
- } from "./index-m24pv3f4.js";
326
+ } from "./index-pykfqsk0.js";
327
327
  import {
328
328
  appendLedgerEvent,
329
329
  computePlanHash,
@@ -338,7 +338,7 @@ import {
338
338
  readPlanEpochIdentity,
339
339
  replayFromLedgerWithStatus,
340
340
  takeSnapshotEvent
341
- } from "./index-wvfgkms6.js";
341
+ } from "./index-4t68xs0p.js";
342
342
  import {
343
343
  CORE_EVENT_LOCKED,
344
344
  appendCoreEventSync,
@@ -348,7 +348,7 @@ import {
348
348
  hasSpecDriftAuditEvent,
349
349
  hasTaskRepairAuditEvent,
350
350
  readCoreEvents
351
- } from "./index-rkr19fdv.js";
351
+ } from "./index-8ada7ag7.js";
352
352
  import {
353
353
  sanitizeDiagnosticText
354
354
  } from "./index-556ja8an.js";
@@ -397,7 +397,7 @@ import {
397
397
  transactFile,
398
398
  transactKnowledge,
399
399
  wordBigrams
400
- } from "./index-3gym3fjj.js";
400
+ } from "./index-ptsmms01.js";
401
401
  import {
402
402
  MAX_EVENT_LOG_ENTRIES,
403
403
  _internals as _internals2,
@@ -413,10 +413,10 @@ import {
413
413
  recordKnowledgeEvent,
414
414
  recordPhaseCloseIntent,
415
415
  resolveKnowledgeEventsPath
416
- } from "./index-a1bh2e4f.js";
416
+ } from "./index-3ab9tczn.js";
417
417
  import {
418
418
  resolveWorktreeIsolationConfig
419
- } from "./index-m516tpxe.js";
419
+ } from "./index-3rjxbe1p.js";
420
420
  import {
421
421
  RetrospectiveEvidenceSchema
422
422
  } from "./index-zg9d392c.js";
@@ -439,7 +439,7 @@ import {
439
439
  init_loader,
440
440
  loadPluginConfig,
441
441
  loadPluginConfigWithMeta
442
- } from "./index-cjjcey0h.js";
442
+ } from "./index-rqh25ns3.js";
443
443
  import {
444
444
  DEFAULT_HARNESS_EVOLUTION_CONFIG,
445
445
  DEFAULT_PR_REVIEW_RESILIENCE_CONFIG,
@@ -455,7 +455,7 @@ import {
455
455
  package_default,
456
456
  resolveAutoReviewConfig,
457
457
  stripKnownSwarmPrefix
458
- } from "./index-vcen0ne4.js";
458
+ } from "./index-m7yt3xmk.js";
459
459
  import {
460
460
  init_git_executable,
461
461
  resolveGitExecutable,
@@ -471,7 +471,7 @@ import {
471
471
  observeCuratorCompliance,
472
472
  observeStoreHealth,
473
473
  readLearningHealth
474
- } from "./index-9m1ze4z4.js";
474
+ } from "./index-cqgpvx2d.js";
475
475
  import {
476
476
  AGENT_TOOL_MAP,
477
477
  ALL_AGENT_NAMES,
@@ -501,10 +501,10 @@ import {
501
501
  resolveLinkDir,
502
502
  sanitizeLinkId,
503
503
  writeLinkPointer
504
- } from "./index-3nsewz46.js";
504
+ } from "./index-n2mhyect.js";
505
505
  import {
506
506
  atomicWriteFile
507
- } from "./index-63s6t3z4.js";
507
+ } from "./index-n67vx5zw.js";
508
508
  import {
509
509
  KNOWLEDGE_SCHEMA_VERSION,
510
510
  OUTCOME_BLOCK_THRESHOLD,
@@ -518,7 +518,7 @@ import {
518
518
  listActiveLocks,
519
519
  tryAcquireLock,
520
520
  withEvidenceLock
521
- } from "./index-nqbqkx4c.js";
521
+ } from "./index-9crtmnqg.js";
522
522
  import {
523
523
  atomicWriteSwarmFile,
524
524
  atomicWriteSwarmFileSync,
@@ -529,7 +529,7 @@ import {
529
529
  emit,
530
530
  getLastHeartbeat,
531
531
  telemetry
532
- } from "./index-fx3em0dr.js";
532
+ } from "./index-2zgjcmmc.js";
533
533
  import {
534
534
  invalidateCachedArtifact,
535
535
  resetSwarmArtifactCache
@@ -20856,7 +20856,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
20856
20856
  };
20857
20857
  }
20858
20858
  async function sweepActiveNearDuplicates(directory, options = {}) {
20859
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-ttdjphep.js");
20859
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-w0yn4rmh.js");
20860
20860
  const { config } = loadPluginConfigWithMeta2(directory);
20861
20861
  const sweepConfig = config.learning?.dedup_sweep;
20862
20862
  if (sweepConfig?.enabled === false)
@@ -21993,7 +21993,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
21993
21993
  }
21994
21994
  if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
21995
21995
  try {
21996
- const skillModule = await import("./skill-generator-9ppgxz4j.js");
21996
+ const skillModule = await import("./skill-generator-z9bs6vdt.js");
21997
21997
  for (const cand of skillCandidates) {
21998
21998
  if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
21999
21999
  continue;
@@ -22465,7 +22465,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
22465
22465
  } catch {}
22466
22466
  }
22467
22467
  if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
22468
- const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-8y3adkn0.js");
22468
+ const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-91d1n291.js");
22469
22469
  for (const { id } of contradictedEntries) {
22470
22470
  try {
22471
22471
  await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
@@ -23284,7 +23284,7 @@ async function runCuratorPostMortem(directory, options = {}) {
23284
23284
  warnings.push("Failed to collect knowledge summary.");
23285
23285
  }
23286
23286
  try {
23287
- const { getScanStatus } = await import("./scan-cursor-d75dh3hv.js");
23287
+ const { getScanStatus } = await import("./scan-cursor-jm7j3w1c.js");
23288
23288
  const scanStatus = await getScanStatus(directory);
23289
23289
  if (scanStatus.remaining_estimate > 0) {
23290
23290
  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.`);
@@ -23456,9 +23456,9 @@ var _internals27 = {
23456
23456
  verifyPostMortemKnowledgeActions,
23457
23457
  repairPostMortemActions,
23458
23458
  loadDefaultKnowledgeConfig: async (directory) => {
23459
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-djm1bhb8.js");
23459
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-6cpgnq4s.js");
23460
23460
  try {
23461
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-ttdjphep.js");
23461
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-w0yn4rmh.js");
23462
23462
  const loaded = loadPluginConfigWithMeta2(directory);
23463
23463
  return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
23464
23464
  } catch {
@@ -23466,11 +23466,11 @@ var _internals27 = {
23466
23466
  }
23467
23467
  },
23468
23468
  applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
23469
- const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-njskp28b.js");
23469
+ const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-3m8a8qsn.js");
23470
23470
  return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
23471
23471
  },
23472
23472
  checkHivePromotions: async (entries, knowledgeConfig, directory) => {
23473
- const { checkHivePromotions } = await import("./hive-promoter-zzgnfhxr.js");
23473
+ const { checkHivePromotions } = await import("./hive-promoter-vxez5s7m.js");
23474
23474
  return checkHivePromotions(entries, knowledgeConfig, directory);
23475
23475
  },
23476
23476
  applyProposalTriage: async (directory, triage) => {
@@ -23479,7 +23479,7 @@ var _internals27 = {
23479
23479
  activateProposal,
23480
23480
  listSkills: listSkills2,
23481
23481
  sanitizeSlug
23482
- } = await import("./skill-generator-9ppgxz4j.js");
23482
+ } = await import("./skill-generator-z9bs6vdt.js");
23483
23483
  const result = {
23484
23484
  approved: [],
23485
23485
  rejected: [],
@@ -24809,9 +24809,9 @@ function hashContent(content) {
24809
24809
  return createHash15("sha1").update(content).digest("hex");
24810
24810
  }
24811
24811
  async function loadConfigForPolicyCurator(directory) {
24812
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-djm1bhb8.js");
24812
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-6cpgnq4s.js");
24813
24813
  try {
24814
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-ttdjphep.js");
24814
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-w0yn4rmh.js");
24815
24815
  const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
24816
24816
  return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
24817
24817
  } catch {
@@ -37496,7 +37496,7 @@ async function runFinalizeStage(ctx) {
37496
37496
  }
37497
37497
  }
37498
37498
  try {
37499
- const { CuratorConfigSchema: CCS } = await import("./schema-djm1bhb8.js");
37499
+ const { CuratorConfigSchema: CCS } = await import("./schema-6cpgnq4s.js");
37500
37500
  const { config: pmLoadedConfig } = _internals41.loadPluginConfigWithMeta(ctx.directory);
37501
37501
  const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
37502
37502
  if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
@@ -38382,7 +38382,7 @@ var _internals41 = {
38382
38382
  closePlanTerminalState: reconcileCloseTerminalStateForPlan,
38383
38383
  endAgentSession,
38384
38384
  flushAndDrainTelemetry: async () => {
38385
- const { flushAndDrainTelemetry } = await import("./telemetry-cmbjv240.js");
38385
+ const { flushAndDrainTelemetry } = await import("./telemetry-x4zggfd7.js");
38386
38386
  return flushAndDrainTelemetry();
38387
38387
  },
38388
38388
  finalizeContextTelemetry: (directory) => {
@@ -39720,9 +39720,9 @@ var _internals45 = {
39720
39720
  loadPluginConfigWithMeta,
39721
39721
  loadCuratorDeps: async () => {
39722
39722
  const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
39723
- import("./schema-djm1bhb8.js"),
39724
- import("./curator-njskp28b.js"),
39725
- import("./curator-llm-factory-8d6kqsj1.js")
39723
+ import("./schema-6cpgnq4s.js"),
39724
+ import("./curator-3m8a8qsn.js"),
39725
+ import("./curator-llm-factory-p00hks4v.js")
39726
39726
  ]);
39727
39727
  return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
39728
39728
  }
@@ -40731,7 +40731,7 @@ async function computeCurationDiagnostics(directory, entries) {
40731
40731
  let scanCompleted = false;
40732
40732
  let scanRemaining = 0;
40733
40733
  try {
40734
- const { getScanStatus } = await import("./scan-cursor-d75dh3hv.js");
40734
+ const { getScanStatus } = await import("./scan-cursor-jm7j3w1c.js");
40735
40735
  const status = await getScanStatus(directory);
40736
40736
  scanGeneration = status.generation;
40737
40737
  scanCompleted = status.completed;
@@ -40739,19 +40739,19 @@ async function computeCurationDiagnostics(directory, entries) {
40739
40739
  } catch {}
40740
40740
  let configMatch = null;
40741
40741
  try {
40742
- const { isLinked: isLinked2 } = await import("./knowledge-link-jr8rqr39.js");
40742
+ const { isLinked: isLinked2 } = await import("./knowledge-link-vmdj5e5d.js");
40743
40743
  if (isLinked2(directory)) {
40744
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-djm1bhb8.js");
40744
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-6cpgnq4s.js");
40745
40745
  let config;
40746
40746
  try {
40747
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-ttdjphep.js");
40747
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-w0yn4rmh.js");
40748
40748
  const loaded = loadPluginConfigWithMeta2(directory);
40749
40749
  config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
40750
40750
  } catch {
40751
40751
  config = KnowledgeConfigSchema2.parse({});
40752
40752
  }
40753
40753
  const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
40754
- const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-nv31cr6t.js");
40754
+ const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-j12j2gvc.js");
40755
40755
  const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
40756
40756
  const cohortFp = await readCohortConfigFingerprint(directory);
40757
40757
  configMatch = cohortFp === null ? null : currentFp === cohortFp;
@@ -42092,7 +42092,7 @@ async function handleDoctorCommand(directory, args) {
42092
42092
  const result = runConfigDoctor(config, directory);
42093
42093
  let output;
42094
42094
  if (enableAutoFix && result.hasAutoFixableIssues) {
42095
- const { runConfigDoctorWithFixes } = await import("./config-doctor-gjw4hdvt.js");
42095
+ const { runConfigDoctorWithFixes } = await import("./config-doctor-p16xr78z.js");
42096
42096
  const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
42097
42097
  applyLossy: true
42098
42098
  });
@@ -43032,7 +43032,7 @@ async function handleEvidenceCommand(directory, args) {
43032
43032
  return formatTaskEvidenceMarkdown(evidenceData);
43033
43033
  }
43034
43034
  async function handleEvidenceSummaryCommand(directory) {
43035
- const { buildEvidenceSummary } = await import("./evidence-summary-service-5rry81jm.js");
43035
+ const { buildEvidenceSummary } = await import("./evidence-summary-service-4ghqakhx.js");
43036
43036
  const artifact = await buildEvidenceSummary(directory);
43037
43037
  if (!artifact) {
43038
43038
  return "No plan found. Run `/swarm plan` to check plan status.";
@@ -78391,7 +78391,7 @@ async function runValidationWithTransientRetry(input, candidateContent, baseline
78391
78391
  if (!input.dispatcher) {
78392
78392
  throw new Error("no evaluation dispatcher available (cannot run validation)");
78393
78393
  }
78394
- const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-d402vnq3.js");
78394
+ const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-3gw2njnx.js");
78395
78395
  const executor = createModelEvaluationExecutor2(input.dispatcher, input.sessionId);
78396
78396
  const result = await withProtectedSetIntegrity([evalInputRoot, ...protectedRoots(input.directory)], () => _internals98.evaluateCandidateV1({
78397
78397
  projectRoot: input.directory,
@@ -80516,7 +80516,7 @@ function buildDetailedHelp(commandName, entry) {
80516
80516
  async function handleHelpCommand(ctx) {
80517
80517
  const targetCommand = ctx.args.join(" ");
80518
80518
  if (!targetCommand) {
80519
- const { buildHelpText } = await import("./index-xsv6zv7n.js");
80519
+ const { buildHelpText } = await import("./index-nwa7ctyf.js");
80520
80520
  return buildHelpText();
80521
80521
  }
80522
80522
  const tokens = targetCommand.split(/\s+/);
@@ -80525,7 +80525,7 @@ async function handleHelpCommand(ctx) {
80525
80525
  return _internals101.buildDetailedHelp(resolved.key, resolved.entry);
80526
80526
  }
80527
80527
  const similar = _internals101.findSimilarCommands(targetCommand);
80528
- const { buildHelpText: fullHelp } = await import("./index-xsv6zv7n.js");
80528
+ const { buildHelpText: fullHelp } = await import("./index-nwa7ctyf.js");
80529
80529
  if (similar.length > 0) {
80530
80530
  return `Command '/swarm ${targetCommand}' not found.
80531
80531
 
@@ -80856,7 +80856,7 @@ var COMMAND_REGISTRY = {
80856
80856
  },
80857
80857
  "guardrail explain": {
80858
80858
  handler: async (ctx) => {
80859
- const { handleGuardrailExplain } = await import("./guardrail-explain-5yw549sm.js");
80859
+ const { handleGuardrailExplain } = await import("./guardrail-explain-smqenqtm.js");
80860
80860
  return handleGuardrailExplain(ctx.directory, ctx.args);
80861
80861
  },
80862
80862
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -80866,7 +80866,7 @@ var COMMAND_REGISTRY = {
80866
80866
  },
80867
80867
  "guardrail reset": {
80868
80868
  handler: async (ctx) => {
80869
- const { handleGuardrailReset } = await import("./guardrail-reset-zm5an5bw.js");
80869
+ const { handleGuardrailReset } = await import("./guardrail-reset-zge5hg4p.js");
80870
80870
  return handleGuardrailReset(ctx.args, ctx.sessionID);
80871
80871
  },
80872
80872
  description: "Reset one exact active invocation/action circuit after repair",
@@ -80875,7 +80875,7 @@ var COMMAND_REGISTRY = {
80875
80875
  },
80876
80876
  "guardrail-explain": {
80877
80877
  handler: async (ctx) => {
80878
- const { handleGuardrailExplain } = await import("./guardrail-explain-5yw549sm.js");
80878
+ const { handleGuardrailExplain } = await import("./guardrail-explain-smqenqtm.js");
80879
80879
  return handleGuardrailExplain(ctx.directory, ctx.args);
80880
80880
  },
80881
80881
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -80885,7 +80885,7 @@ var COMMAND_REGISTRY = {
80885
80885
  },
80886
80886
  "guardrail-reset": {
80887
80887
  handler: async (ctx) => {
80888
- const { handleGuardrailReset } = await import("./guardrail-reset-zm5an5bw.js");
80888
+ const { handleGuardrailReset } = await import("./guardrail-reset-zge5hg4p.js");
80889
80889
  return handleGuardrailReset(ctx.args, ctx.sessionID);
80890
80890
  },
80891
80891
  description: "Reset one exact active invocation/action circuit after repair",
@@ -80895,7 +80895,7 @@ var COMMAND_REGISTRY = {
80895
80895
  },
80896
80896
  "guardrail-log": {
80897
80897
  handler: async (ctx) => {
80898
- const { handleGuardrailLog } = await import("./guardrail-log-nrnx87ac.js");
80898
+ const { handleGuardrailLog } = await import("./guardrail-log-mmh4b4k4.js");
80899
80899
  return handleGuardrailLog(ctx.directory, ctx.args);
80900
80900
  },
80901
80901
  description: "Read the guardrail decision log (use --blocks-only for blocks)",
@@ -86891,7 +86891,7 @@ function getDisplayFinalPromptPressure() {
86891
86891
  async function rehydratePrSubscriptions(sessionID, directory) {
86892
86892
  const map = new Map;
86893
86893
  try {
86894
- const { listActive: listActive2 } = await import("./pr-subscriptions-mm6kyyv0.js");
86894
+ const { listActive: listActive2 } = await import("./pr-subscriptions-2mkdt0ak.js");
86895
86895
  const records = await listActive2(directory);
86896
86896
  for (const record of records) {
86897
86897
  if (record.sessionID !== sessionID)
@@ -87337,7 +87337,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
87337
87337
  return extracted === expectedSessionId;
87338
87338
  }
87339
87339
  async function inspectStandardWorktreeCollisionOwnership(identity) {
87340
- const collisionOwnership = await import("./worktree-collision-ownership-061zmyyp.js");
87340
+ const collisionOwnership = await import("./worktree-collision-ownership-drtv7jjp.js");
87341
87341
  return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
87342
87342
  }
87343
87343
  async function runRecoveryGit(directory, args, timeoutMs = 15000) {
@@ -87746,7 +87746,7 @@ async function precreateStandardWorktreeSession(args) {
87746
87746
  const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
87747
87747
  if (laneProfile) {
87748
87748
  try {
87749
- const { writeLaneProfileToDiskReal } = await import("./core-q5j5a7fh.js");
87749
+ const { writeLaneProfileToDiskReal } = await import("./core-g088v0zt.js");
87750
87750
  await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
87751
87751
  } catch {}
87752
87752
  }
@@ -88671,7 +88671,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
88671
88671
  }
88672
88672
  clearWorktreeMergeStatus(statusKey);
88673
88673
  try {
88674
- const { removeLaneProfileFromDiskReal } = await import("./core-q5j5a7fh.js");
88674
+ const { removeLaneProfileFromDiskReal } = await import("./core-g088v0zt.js");
88675
88675
  await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
88676
88676
  } catch {}
88677
88677
  const state = serializationStateBySessionID.get(dispatch.parentSessionID);
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  observeStoreHealth
4
- } from "./index-9m1ze4z4.js";
4
+ } from "./index-cqgpvx2d.js";
5
5
  import {
6
6
  telemetry
7
- } from "./index-fx3em0dr.js";
7
+ } from "./index-2zgjcmmc.js";
8
8
  import {
9
9
  init_logger,
10
10
  warn
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  emit
4
- } from "./index-fx3em0dr.js";
4
+ } from "./index-2zgjcmmc.js";
5
5
  import {
6
6
  require_proper_lockfile
7
7
  } from "./index-7g4c7s5r.js";
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-3gym3fjj.js";
5
+ } from "./index-ptsmms01.js";
6
6
  import {
7
7
  init_git_executable,
8
8
  resolveGitExecutableAsync
9
9
  } from "./index-9e6fdz2h.js";
10
10
  import {
11
11
  resolveKnowledgeStoreDir
12
- } from "./index-3nsewz46.js";
12
+ } from "./index-n2mhyect.js";
13
13
  import {
14
14
  init_knowledge_types,
15
15
  isActiveStatus
@@ -6,7 +6,7 @@ import {
6
6
  pseudonymousRef,
7
7
  resolveLineageSalt,
8
8
  telemetry
9
- } from "./index-fx3em0dr.js";
9
+ } from "./index-2zgjcmmc.js";
10
10
 
11
11
  // src/health/learning-health.ts
12
12
  import { promises as fs } from "fs";