opencode-swarm 7.160.2 → 7.161.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/.opencode/skills/critic-gate/SKILL.md +2 -1
  2. package/.opencode/skills/execute/SKILL.md +1 -1
  3. package/dist/background/delegation-lifecycle.d.ts +374 -0
  4. package/dist/background/pending-delegations.d.ts +6 -0
  5. package/dist/cli/{coder-settlement-gzar5ypz.js → coder-settlement-2jteb5vy.js} +9 -9
  6. package/dist/cli/{config-doctor-ancn1sj7.js → config-doctor-1yn317qf.js} +3 -3
  7. package/dist/cli/{core-bhmqtxev.js → core-k687jrr3.js} +2 -2
  8. package/dist/cli/{curation-policy-47przjwg.js → curation-policy-ej9xc0cd.js} +5 -5
  9. package/dist/cli/{curator-llm-factory-6mw01jx1.js → curator-llm-factory-m1ke17eq.js} +31 -31
  10. package/dist/cli/{curator-sgmynbpm.js → curator-q017rjfk.js} +31 -31
  11. package/dist/cli/{evidence-summary-service-1pcfsqhv.js → evidence-summary-service-6jzfa547.js} +14 -14
  12. package/dist/cli/{gate-evidence-w0kjqmew.js → gate-evidence-j6nskaka.js} +6 -6
  13. package/dist/cli/{guardrail-explain-k99eje1y.js → guardrail-explain-xw3ma90f.js} +32 -32
  14. package/dist/cli/{guardrail-log-md5gcpk7.js → guardrail-log-etmzhbge.js} +7 -7
  15. package/dist/cli/{guardrail-reset-3385eqmq.js → guardrail-reset-z9fkxksy.js} +31 -31
  16. package/dist/cli/{hive-promoter-r0ekyn5m.js → hive-promoter-dmwjya83.js} +31 -31
  17. package/dist/cli/{index-vv760pbg.js → index-1j532307.js} +2 -2
  18. package/dist/cli/{index-2123hwbj.js → index-29f9te70.js} +4 -4
  19. package/dist/cli/{index-4dcz9fpn.js → index-32avgbyq.js} +4 -4
  20. package/dist/cli/{index-xsd7y4hp.js → index-4p6x3xxy.js} +4 -4
  21. package/dist/cli/{index-7h2armwf.js → index-7619tk9a.js} +2 -2
  22. package/dist/cli/{index-zbnf26br.js → index-7d79mj06.js} +8 -8
  23. package/dist/cli/{index-am5bz6mf.js → index-88wb0z9r.js} +2 -2
  24. package/dist/cli/{index-k0qy284k.js → index-9kp3cp5n.js} +5 -5
  25. package/dist/cli/{index-c9zp4xwc.js → index-9xd073d4.js} +1 -1
  26. package/dist/cli/{index-xtwny1ae.js → index-bn78ywnb.js} +2 -2
  27. package/dist/cli/{index-kqzba6ex.js → index-c1geyan9.js} +2 -2
  28. package/dist/cli/{index-prv20xq6.js → index-c6zyqgpq.js} +1 -1
  29. package/dist/cli/{index-war2dt6a.js → index-cbcfpgz9.js} +6 -6
  30. package/dist/cli/{index-s7w6ntw6.js → index-cs9w1hfs.js} +82 -80
  31. package/dist/cli/{index-7ezv5j23.js → index-d8st72j7.js} +1 -1
  32. package/dist/cli/{index-nk498mx6.js → index-dq41vsf9.js} +2 -2
  33. package/dist/cli/{index-vsy942dt.js → index-e0re84cx.js} +33 -33
  34. package/dist/cli/{index-717pmdce.js → index-epjvntnm.js} +1 -1
  35. package/dist/cli/{index-znf683sm.js → index-f5axf6vq.js} +1 -1
  36. package/dist/cli/{index-dke4wzkn.js → index-fx3em0dr.js} +17 -1
  37. package/dist/cli/{index-5th50g17.js → index-hq57ytm5.js} +3 -3
  38. package/dist/cli/{index-3a35tt6a.js → index-hvfsz7e3.js} +8 -8
  39. package/dist/cli/{index-xkmzsfg5.js → index-jm21vbyp.js} +3 -3
  40. package/dist/cli/{index-yd6y4qr7.js → index-k4xey4kh.js} +1 -1
  41. package/dist/cli/{index-mmr96pwr.js → index-k55td019.js} +1 -1
  42. package/dist/cli/{index-yp81ebrx.js → index-nm0cpfrv.js} +4 -4
  43. package/dist/cli/{index-b5adxpy6.js → index-nqbqkx4c.js} +1 -1
  44. package/dist/cli/{index-4d8cq6e1.js → index-qd9mrd7e.js} +5 -5
  45. package/dist/cli/{index-6scakreq.js → index-rracnf2y.js} +2 -2
  46. package/dist/cli/{index-j3ss86kf.js → index-s33ee2w3.js} +1 -1
  47. package/dist/cli/{index-497a3hhj.js → index-y14mwbk8.js} +3 -3
  48. package/dist/cli/{index-re338hf1.js → index-yhadrxka.js} +3 -3
  49. package/dist/cli/{index-k50kxd3w.js → index-za42r41w.js} +7 -4
  50. package/dist/cli/{index-q8hm27yj.js → index-zg9d392c.js} +4 -1
  51. package/dist/cli/{index-5xfx5sbw.js → index-zhdfqz89.js} +5 -5
  52. package/dist/cli/index.js +31 -31
  53. package/dist/cli/{knowledge-escalator-saekqp8t.js → knowledge-escalator-cqyxfjfh.js} +13 -13
  54. package/dist/cli/{knowledge-events-ej8yz3yq.js → knowledge-events-g707awjf.js} +11 -11
  55. package/dist/cli/{knowledge-link-xezm8hr3.js → knowledge-link-8knefv8x.js} +4 -4
  56. package/dist/cli/{knowledge-store-3jamj5n4.js → knowledge-store-byhv66xq.js} +5 -5
  57. package/dist/cli/{knowledge-validator-26w2mvqv.js → knowledge-validator-qfkr8eje.js} +7 -7
  58. package/dist/cli/{model-preflight-yqqchzjn.js → model-preflight-c3mc8njg.js} +1 -1
  59. package/dist/cli/{pending-delegations-7xak7g59.js → pending-delegations-n3baz9m3.js} +6 -4
  60. package/dist/cli/{pr-review-reentry-authorization-v97q63q4.js → pr-review-reentry-authorization-ttctn8xv.js} +31 -31
  61. package/dist/cli/{pr-subscriptions-asjevc5p.js → pr-subscriptions-3zwthnan.js} +4 -4
  62. package/dist/cli/{runner-wsdcy2d6.js → runner-fzgkd6m1.js} +5 -5
  63. package/dist/cli/{scan-cursor-1agr50f8.js → scan-cursor-fbtgyeft.js} +6 -6
  64. package/dist/cli/{schema-z0ygrqgy.js → schema-xb7d31wq.js} +2 -2
  65. package/dist/cli/{scope-persistence-tncg38by.js → scope-persistence-5npzdfjf.js} +9 -9
  66. package/dist/cli/{skill-generator-jq20a09m.js → skill-generator-k1e7nee3.js} +15 -15
  67. package/dist/cli/{telemetry-gpr9s3sm.js → telemetry-cmbjv240.js} +1 -1
  68. package/dist/cli/{worktree-collision-ownership-b9cp9zvw.js → worktree-collision-ownership-jfam09nj.js} +4 -4
  69. package/dist/cli/{worktree-isolation-dzyxf8hn.js → worktree-isolation-avp3yxcs.js} +31 -31
  70. package/dist/config/evidence-schema.d.ts +11 -2
  71. package/dist/config/schema.d.ts +7 -7
  72. package/dist/hooks/delegate-ack-collector.d.ts +74 -0
  73. package/dist/hooks/delegation-gate.d.ts +4 -1
  74. package/dist/hooks/knowledge-injector.d.ts +12 -1
  75. package/dist/index.js +98 -98
  76. package/dist/learning/admission.d.ts +2 -2
  77. package/dist/memory/schema.d.ts +3 -3
  78. package/dist/observability/catalog.d.ts +2 -2
  79. package/dist/prm/types.d.ts +9 -0
  80. package/dist/telemetry.d.ts +9 -1
  81. package/dist/tools/placeholder-scan.d.ts +5 -3
  82. package/dist/tools/repo-graph/retrieval-router.d.ts +57 -0
  83. package/dist/tools/repo-graph.d.ts +2 -0
  84. package/dist/tools/repo-map.d.ts +202 -0
  85. package/dist/tools/search.d.ts +2 -2
  86. package/package.json +1 -1
@@ -6,7 +6,7 @@ import {
6
6
  resolveExecutableFromPath,
7
7
  runEvaluation,
8
8
  runExternalTool
9
- } from "./index-j3ss86kf.js";
9
+ } from "./index-s33ee2w3.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-2123hwbj.js";
18
+ } from "./index-29f9te70.js";
19
19
  import {
20
20
  detectStraySwarmDirs,
21
21
  readDoctorArtifact,
22
22
  removeStraySwarmDir,
23
23
  runConfigDoctor
24
- } from "./index-xtwny1ae.js";
24
+ } from "./index-bn78ywnb.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-zbnf26br.js";
71
+ } from "./index-7d79mj06.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-nk498mx6.js";
88
+ } from "./index-dq41vsf9.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-re338hf1.js";
133
+ } from "./index-yhadrxka.js";
134
134
  import {
135
135
  readRecentEscalations
136
- } from "./index-5xfx5sbw.js";
136
+ } from "./index-zhdfqz89.js";
137
137
  import {
138
138
  alreadyCuratedThisGeneration,
139
139
  claimNextScanBatch,
140
140
  resolveCohortId
141
- } from "./index-am5bz6mf.js";
141
+ } from "./index-88wb0z9r.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-497a3hhj.js";
165
+ } from "./index-y14mwbk8.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-4d8cq6e1.js";
177
+ } from "./index-qd9mrd7e.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-yp81ebrx.js";
221
+ } from "./index-nm0cpfrv.js";
222
222
  import {
223
223
  authorizeCuration,
224
224
  buildConfigFingerprintInput
225
- } from "./index-znf683sm.js";
225
+ } from "./index-f5axf6vq.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-4dcz9fpn.js";
256
+ } from "./index-32avgbyq.js";
257
257
  import {
258
258
  makeWorktreeBranchName,
259
259
  provisionWorktree,
260
260
  removeWorktree
261
- } from "./index-kqzba6ex.js";
261
+ } from "./index-c1geyan9.js";
262
262
  import {
263
263
  DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
264
264
  DELEGATION_COMPACTION_HIGH_WATER_BYTES,
@@ -286,7 +286,7 @@ import {
286
286
  scanBackgroundCoderReservationsForAdmission,
287
287
  scanDelegationsForRecovery,
288
288
  sweepStaleDelegations
289
- } from "./index-k50kxd3w.js";
289
+ } from "./index-za42r41w.js";
290
290
  import {
291
291
  compositeSessionKey,
292
292
  sessionKeySuffix
@@ -297,7 +297,7 @@ import {
297
297
  clearAllScopes,
298
298
  clearScopeBindingFromDisk,
299
299
  clearScopeBindings
300
- } from "./index-xsd7y4hp.js";
300
+ } from "./index-4p6x3xxy.js";
301
301
  import {
302
302
  appendLedgerEvent,
303
303
  computePlanHash,
@@ -312,7 +312,7 @@ import {
312
312
  readPlanEpochIdentity,
313
313
  replayFromLedgerWithStatus,
314
314
  takeSnapshotEvent
315
- } from "./index-5th50g17.js";
315
+ } from "./index-hq57ytm5.js";
316
316
  import {
317
317
  CORE_EVENT_LOCKED,
318
318
  appendCoreEventSync,
@@ -322,7 +322,7 @@ import {
322
322
  hasSpecDriftAuditEvent,
323
323
  hasTaskRepairAuditEvent,
324
324
  readCoreEvents
325
- } from "./index-7h2armwf.js";
325
+ } from "./index-7619tk9a.js";
326
326
  import {
327
327
  sanitizeDiagnosticText
328
328
  } from "./index-556ja8an.js";
@@ -371,7 +371,7 @@ import {
371
371
  transactFile,
372
372
  transactKnowledge,
373
373
  wordBigrams
374
- } from "./index-war2dt6a.js";
374
+ } from "./index-cbcfpgz9.js";
375
375
  import {
376
376
  MAX_EVENT_LOG_ENTRIES,
377
377
  _internals as _internals2,
@@ -387,13 +387,13 @@ import {
387
387
  recordKnowledgeEvent,
388
388
  recordPhaseCloseIntent,
389
389
  resolveKnowledgeEventsPath
390
- } from "./index-3a35tt6a.js";
390
+ } from "./index-hvfsz7e3.js";
391
391
  import {
392
392
  resolveWorktreeIsolationConfig
393
- } from "./index-xkmzsfg5.js";
393
+ } from "./index-jm21vbyp.js";
394
394
  import {
395
395
  RetrospectiveEvidenceSchema
396
- } from "./index-q8hm27yj.js";
396
+ } from "./index-zg9d392c.js";
397
397
  import {
398
398
  estimateTokens,
399
399
  readSwarmFileAsync,
@@ -413,7 +413,7 @@ import {
413
413
  init_loader,
414
414
  loadPluginConfig,
415
415
  loadPluginConfigWithMeta
416
- } from "./index-717pmdce.js";
416
+ } from "./index-epjvntnm.js";
417
417
  import {
418
418
  DEFAULT_HARNESS_EVOLUTION_CONFIG,
419
419
  DEFAULT_PR_REVIEW_RESILIENCE_CONFIG,
@@ -429,7 +429,7 @@ import {
429
429
  package_default,
430
430
  resolveAutoReviewConfig,
431
431
  stripKnownSwarmPrefix
432
- } from "./index-6scakreq.js";
432
+ } from "./index-rracnf2y.js";
433
433
  import {
434
434
  init_git_executable,
435
435
  resolveGitExecutable,
@@ -445,7 +445,7 @@ import {
445
445
  observeCuratorCompliance,
446
446
  observeStoreHealth,
447
447
  readLearningHealth
448
- } from "./index-mmr96pwr.js";
448
+ } from "./index-k55td019.js";
449
449
  import {
450
450
  AGENT_TOOL_MAP,
451
451
  ALL_AGENT_NAMES,
@@ -459,7 +459,7 @@ import {
459
459
  init_agent_names,
460
460
  init_constants,
461
461
  init_tool_metadata
462
- } from "./index-c9zp4xwc.js";
462
+ } from "./index-9xd073d4.js";
463
463
  import {
464
464
  resolveHiveDataDir,
465
465
  resolveHiveEventsPath,
@@ -475,10 +475,10 @@ import {
475
475
  resolveLinkDir,
476
476
  sanitizeLinkId,
477
477
  writeLinkPointer
478
- } from "./index-prv20xq6.js";
478
+ } from "./index-c6zyqgpq.js";
479
479
  import {
480
480
  atomicWriteFile
481
- } from "./index-7ezv5j23.js";
481
+ } from "./index-d8st72j7.js";
482
482
  import {
483
483
  KNOWLEDGE_SCHEMA_VERSION,
484
484
  OUTCOME_BLOCK_THRESHOLD,
@@ -492,7 +492,7 @@ import {
492
492
  listActiveLocks,
493
493
  tryAcquireLock,
494
494
  withEvidenceLock
495
- } from "./index-b5adxpy6.js";
495
+ } from "./index-nqbqkx4c.js";
496
496
  import {
497
497
  atomicWriteSwarmFile,
498
498
  atomicWriteSwarmFileSync,
@@ -507,7 +507,7 @@ import {
507
507
  emit,
508
508
  getLastHeartbeat,
509
509
  telemetry
510
- } from "./index-dke4wzkn.js";
510
+ } from "./index-fx3em0dr.js";
511
511
  import {
512
512
  require_proper_lockfile
513
513
  } from "./index-7g4c7s5r.js";
@@ -1255,6 +1255,21 @@ var _test_exports = {
1255
1255
  init_zod();
1256
1256
  import * as fs53 from "fs";
1257
1257
  import * as path117 from "path";
1258
+
1259
+ // src/config/agent-model.ts
1260
+ init_agent_names();
1261
+ init_constants();
1262
+ var CANONICAL_AGENT_NAMES = new Set(ALL_AGENT_NAMES);
1263
+ var KNOWN_EMBEDDED_VARIANTS = new Set([
1264
+ "low",
1265
+ "medium",
1266
+ "high",
1267
+ "max",
1268
+ "xhigh",
1269
+ "thinking"
1270
+ ]);
1271
+
1272
+ // src/hooks/delegation-gate.ts
1258
1273
  init_agent_names();
1259
1274
  init_constants();
1260
1275
  init_schema();
@@ -14197,19 +14212,6 @@ function isoNow() {
14197
14212
  function delay(ms) {
14198
14213
  return new Promise((resolve7) => setTimeout(resolve7, ms));
14199
14214
  }
14200
- // src/config/agent-model.ts
14201
- init_agent_names();
14202
- init_constants();
14203
- var CANONICAL_AGENT_NAMES = new Set(ALL_AGENT_NAMES);
14204
- var KNOWN_EMBEDDED_VARIANTS = new Set([
14205
- "low",
14206
- "medium",
14207
- "high",
14208
- "max",
14209
- "xhigh",
14210
- "thinking"
14211
- ]);
14212
-
14213
14215
  // src/agents/index.ts
14214
14216
  init_constants();
14215
14217
  init_schema();
@@ -21324,7 +21326,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
21324
21326
  };
21325
21327
  }
21326
21328
  async function sweepActiveNearDuplicates(directory, options = {}) {
21327
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-k0qy284k.js");
21329
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-9kp3cp5n.js");
21328
21330
  const { config } = loadPluginConfigWithMeta2(directory);
21329
21331
  const sweepConfig = config.learning?.dedup_sweep;
21330
21332
  if (sweepConfig?.enabled === false)
@@ -22461,7 +22463,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
22461
22463
  }
22462
22464
  if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
22463
22465
  try {
22464
- const skillModule = await import("./skill-generator-jq20a09m.js");
22466
+ const skillModule = await import("./skill-generator-k1e7nee3.js");
22465
22467
  for (const cand of skillCandidates) {
22466
22468
  if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
22467
22469
  continue;
@@ -22933,7 +22935,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
22933
22935
  } catch {}
22934
22936
  }
22935
22937
  if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
22936
- const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-saekqp8t.js");
22938
+ const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-cqyxfjfh.js");
22937
22939
  for (const { id } of contradictedEntries) {
22938
22940
  try {
22939
22941
  await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
@@ -23752,7 +23754,7 @@ async function runCuratorPostMortem(directory, options = {}) {
23752
23754
  warnings.push("Failed to collect knowledge summary.");
23753
23755
  }
23754
23756
  try {
23755
- const { getScanStatus } = await import("./scan-cursor-1agr50f8.js");
23757
+ const { getScanStatus } = await import("./scan-cursor-fbtgyeft.js");
23756
23758
  const scanStatus = await getScanStatus(directory);
23757
23759
  if (scanStatus.remaining_estimate > 0) {
23758
23760
  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.`);
@@ -23924,9 +23926,9 @@ var _internals27 = {
23924
23926
  verifyPostMortemKnowledgeActions,
23925
23927
  repairPostMortemActions,
23926
23928
  loadDefaultKnowledgeConfig: async (directory) => {
23927
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-z0ygrqgy.js");
23929
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-xb7d31wq.js");
23928
23930
  try {
23929
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-k0qy284k.js");
23931
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-9kp3cp5n.js");
23930
23932
  const loaded = loadPluginConfigWithMeta2(directory);
23931
23933
  return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
23932
23934
  } catch {
@@ -23934,11 +23936,11 @@ var _internals27 = {
23934
23936
  }
23935
23937
  },
23936
23938
  applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
23937
- const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-sgmynbpm.js");
23939
+ const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-q017rjfk.js");
23938
23940
  return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
23939
23941
  },
23940
23942
  checkHivePromotions: async (entries, knowledgeConfig, directory) => {
23941
- const { checkHivePromotions } = await import("./hive-promoter-r0ekyn5m.js");
23943
+ const { checkHivePromotions } = await import("./hive-promoter-dmwjya83.js");
23942
23944
  return checkHivePromotions(entries, knowledgeConfig, directory);
23943
23945
  },
23944
23946
  applyProposalTriage: async (directory, triage) => {
@@ -23947,7 +23949,7 @@ var _internals27 = {
23947
23949
  activateProposal,
23948
23950
  listSkills: listSkills2,
23949
23951
  sanitizeSlug
23950
- } = await import("./skill-generator-jq20a09m.js");
23952
+ } = await import("./skill-generator-k1e7nee3.js");
23951
23953
  const result = {
23952
23954
  approved: [],
23953
23955
  rejected: [],
@@ -25277,9 +25279,9 @@ function hashContent(content) {
25277
25279
  return createHash13("sha1").update(content).digest("hex");
25278
25280
  }
25279
25281
  async function loadConfigForPolicyCurator(directory) {
25280
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-z0ygrqgy.js");
25282
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-xb7d31wq.js");
25281
25283
  try {
25282
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-k0qy284k.js");
25284
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-9kp3cp5n.js");
25283
25285
  const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
25284
25286
  return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
25285
25287
  } catch {
@@ -37584,7 +37586,7 @@ async function runFinalizeStage(ctx) {
37584
37586
  }
37585
37587
  }
37586
37588
  try {
37587
- const { CuratorConfigSchema: CCS } = await import("./schema-z0ygrqgy.js");
37589
+ const { CuratorConfigSchema: CCS } = await import("./schema-xb7d31wq.js");
37588
37590
  const { config: pmLoadedConfig } = _internals41.loadPluginConfigWithMeta(ctx.directory);
37589
37591
  const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
37590
37592
  if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
@@ -38470,7 +38472,7 @@ var _internals41 = {
38470
38472
  closePlanTerminalState: reconcileCloseTerminalStateForPlan,
38471
38473
  endAgentSession,
38472
38474
  flushAndDrainTelemetry: async () => {
38473
- const { flushAndDrainTelemetry } = await import("./telemetry-gpr9s3sm.js");
38475
+ const { flushAndDrainTelemetry } = await import("./telemetry-cmbjv240.js");
38474
38476
  return flushAndDrainTelemetry();
38475
38477
  },
38476
38478
  finalizeContextTelemetry: (directory) => {
@@ -39808,9 +39810,9 @@ var _internals45 = {
39808
39810
  loadPluginConfigWithMeta,
39809
39811
  loadCuratorDeps: async () => {
39810
39812
  const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
39811
- import("./schema-z0ygrqgy.js"),
39812
- import("./curator-sgmynbpm.js"),
39813
- import("./curator-llm-factory-6mw01jx1.js")
39813
+ import("./schema-xb7d31wq.js"),
39814
+ import("./curator-q017rjfk.js"),
39815
+ import("./curator-llm-factory-m1ke17eq.js")
39814
39816
  ]);
39815
39817
  return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
39816
39818
  }
@@ -40819,7 +40821,7 @@ async function computeCurationDiagnostics(directory, entries) {
40819
40821
  let scanCompleted = false;
40820
40822
  let scanRemaining = 0;
40821
40823
  try {
40822
- const { getScanStatus } = await import("./scan-cursor-1agr50f8.js");
40824
+ const { getScanStatus } = await import("./scan-cursor-fbtgyeft.js");
40823
40825
  const status = await getScanStatus(directory);
40824
40826
  scanGeneration = status.generation;
40825
40827
  scanCompleted = status.completed;
@@ -40827,19 +40829,19 @@ async function computeCurationDiagnostics(directory, entries) {
40827
40829
  } catch {}
40828
40830
  let configMatch = null;
40829
40831
  try {
40830
- const { isLinked: isLinked2 } = await import("./knowledge-link-xezm8hr3.js");
40832
+ const { isLinked: isLinked2 } = await import("./knowledge-link-8knefv8x.js");
40831
40833
  if (isLinked2(directory)) {
40832
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-z0ygrqgy.js");
40834
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-xb7d31wq.js");
40833
40835
  let config;
40834
40836
  try {
40835
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-k0qy284k.js");
40837
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-9kp3cp5n.js");
40836
40838
  const loaded = loadPluginConfigWithMeta2(directory);
40837
40839
  config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
40838
40840
  } catch {
40839
40841
  config = KnowledgeConfigSchema2.parse({});
40840
40842
  }
40841
40843
  const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
40842
- const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-47przjwg.js");
40844
+ const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-ej9xc0cd.js");
40843
40845
  const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
40844
40846
  const cohortFp = await readCohortConfigFingerprint(directory);
40845
40847
  configMatch = cohortFp === null ? null : currentFp === cohortFp;
@@ -42180,7 +42182,7 @@ async function handleDoctorCommand(directory, args) {
42180
42182
  const result = runConfigDoctor(config, directory);
42181
42183
  let output;
42182
42184
  if (enableAutoFix && result.hasAutoFixableIssues) {
42183
- const { runConfigDoctorWithFixes } = await import("./config-doctor-ancn1sj7.js");
42185
+ const { runConfigDoctorWithFixes } = await import("./config-doctor-1yn317qf.js");
42184
42186
  const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
42185
42187
  applyLossy: true
42186
42188
  });
@@ -42218,7 +42220,7 @@ async function handleDoctorCommand(directory, args) {
42218
42220
  `;
42219
42221
  }
42220
42222
  try {
42221
- const { runModelPreflight } = await import("./model-preflight-yqqchzjn.js");
42223
+ const { runModelPreflight } = await import("./model-preflight-c3mc8njg.js");
42222
42224
  const preflight = await runModelPreflight(config, swarmState.opencodeClient);
42223
42225
  if (preflight.catalogAvailable) {
42224
42226
  const unresolved = preflight.resolutions.filter((resolution) => resolution.status === "unresolved");
@@ -43120,7 +43122,7 @@ async function handleEvidenceCommand(directory, args) {
43120
43122
  return formatTaskEvidenceMarkdown(evidenceData);
43121
43123
  }
43122
43124
  async function handleEvidenceSummaryCommand(directory) {
43123
- const { buildEvidenceSummary } = await import("./evidence-summary-service-1pcfsqhv.js");
43125
+ const { buildEvidenceSummary } = await import("./evidence-summary-service-6jzfa547.js");
43124
43126
  const artifact = await buildEvidenceSummary(directory);
43125
43127
  if (!artifact) {
43126
43128
  return "No plan found. Run `/swarm plan` to check plan status.";
@@ -78479,7 +78481,7 @@ async function runValidationWithTransientRetry(input, candidateContent, baseline
78479
78481
  if (!input.dispatcher) {
78480
78482
  throw new Error("no evaluation dispatcher available (cannot run validation)");
78481
78483
  }
78482
- const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-wsdcy2d6.js");
78484
+ const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-fzgkd6m1.js");
78483
78485
  const executor = createModelEvaluationExecutor2(input.dispatcher, input.sessionId);
78484
78486
  const result = await withProtectedSetIntegrity([evalInputRoot, ...protectedRoots(input.directory)], () => _internals98.evaluateCandidateV1({
78485
78487
  projectRoot: input.directory,
@@ -80604,7 +80606,7 @@ function buildDetailedHelp(commandName, entry) {
80604
80606
  async function handleHelpCommand(ctx) {
80605
80607
  const targetCommand = ctx.args.join(" ");
80606
80608
  if (!targetCommand) {
80607
- const { buildHelpText } = await import("./index-vsy942dt.js");
80609
+ const { buildHelpText } = await import("./index-e0re84cx.js");
80608
80610
  return buildHelpText();
80609
80611
  }
80610
80612
  const tokens = targetCommand.split(/\s+/);
@@ -80613,7 +80615,7 @@ async function handleHelpCommand(ctx) {
80613
80615
  return _internals101.buildDetailedHelp(resolved.key, resolved.entry);
80614
80616
  }
80615
80617
  const similar = _internals101.findSimilarCommands(targetCommand);
80616
- const { buildHelpText: fullHelp } = await import("./index-vsy942dt.js");
80618
+ const { buildHelpText: fullHelp } = await import("./index-e0re84cx.js");
80617
80619
  if (similar.length > 0) {
80618
80620
  return `Command '/swarm ${targetCommand}' not found.
80619
80621
 
@@ -80944,7 +80946,7 @@ var COMMAND_REGISTRY = {
80944
80946
  },
80945
80947
  "guardrail explain": {
80946
80948
  handler: async (ctx) => {
80947
- const { handleGuardrailExplain } = await import("./guardrail-explain-k99eje1y.js");
80949
+ const { handleGuardrailExplain } = await import("./guardrail-explain-xw3ma90f.js");
80948
80950
  return handleGuardrailExplain(ctx.directory, ctx.args);
80949
80951
  },
80950
80952
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -80954,7 +80956,7 @@ var COMMAND_REGISTRY = {
80954
80956
  },
80955
80957
  "guardrail reset": {
80956
80958
  handler: async (ctx) => {
80957
- const { handleGuardrailReset } = await import("./guardrail-reset-3385eqmq.js");
80959
+ const { handleGuardrailReset } = await import("./guardrail-reset-z9fkxksy.js");
80958
80960
  return handleGuardrailReset(ctx.args, ctx.sessionID);
80959
80961
  },
80960
80962
  description: "Reset one exact active invocation/action circuit after repair",
@@ -80963,7 +80965,7 @@ var COMMAND_REGISTRY = {
80963
80965
  },
80964
80966
  "guardrail-explain": {
80965
80967
  handler: async (ctx) => {
80966
- const { handleGuardrailExplain } = await import("./guardrail-explain-k99eje1y.js");
80968
+ const { handleGuardrailExplain } = await import("./guardrail-explain-xw3ma90f.js");
80967
80969
  return handleGuardrailExplain(ctx.directory, ctx.args);
80968
80970
  },
80969
80971
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -80973,7 +80975,7 @@ var COMMAND_REGISTRY = {
80973
80975
  },
80974
80976
  "guardrail-reset": {
80975
80977
  handler: async (ctx) => {
80976
- const { handleGuardrailReset } = await import("./guardrail-reset-3385eqmq.js");
80978
+ const { handleGuardrailReset } = await import("./guardrail-reset-z9fkxksy.js");
80977
80979
  return handleGuardrailReset(ctx.args, ctx.sessionID);
80978
80980
  },
80979
80981
  description: "Reset one exact active invocation/action circuit after repair",
@@ -80983,7 +80985,7 @@ var COMMAND_REGISTRY = {
80983
80985
  },
80984
80986
  "guardrail-log": {
80985
80987
  handler: async (ctx) => {
80986
- const { handleGuardrailLog } = await import("./guardrail-log-md5gcpk7.js");
80988
+ const { handleGuardrailLog } = await import("./guardrail-log-etmzhbge.js");
80987
80989
  return handleGuardrailLog(ctx.directory, ctx.args);
80988
80990
  },
80989
80991
  description: "Read the guardrail decision log (use --blocks-only for blocks)",
@@ -82305,7 +82307,7 @@ CLASSIFICATION RULES:
82305
82307
  - Misclassification = GATE_DELEGATION_BYPASS.
82306
82308
 
82307
82309
  \u2500\u2500 STAGE A: AUTOMATED TOOL GATES \u2500\u2500
82308
- diff \u2192 syntax_check \u2192 placeholder_scan \u2192 imports \u2192 lint fix \u2192 build_check \u2192 pre_check_batch
82310
+ diff \u2192 syntax_check \u2192 placeholder_scan (diff-scoped) \u2192 imports \u2192 lint fix \u2192 build_check \u2192 pre_check_batch
82309
82311
  Stage A tools return pass/fail. Fix failures by returning to coder.
82310
82312
  Stage A passing means: code compiles, parses, no secrets, no placeholders, no lint errors.
82311
82313
  Stage A passing does NOT mean: code is correct, secure, tested, or reviewed.
@@ -86979,7 +86981,7 @@ function getDisplayFinalPromptPressure() {
86979
86981
  async function rehydratePrSubscriptions(sessionID, directory) {
86980
86982
  const map = new Map;
86981
86983
  try {
86982
- const { listActive: listActive2 } = await import("./pr-subscriptions-asjevc5p.js");
86984
+ const { listActive: listActive2 } = await import("./pr-subscriptions-3zwthnan.js");
86983
86985
  const records = await listActive2(directory);
86984
86986
  for (const record of records) {
86985
86987
  if (record.sessionID !== sessionID)
@@ -87425,7 +87427,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
87425
87427
  return extracted === expectedSessionId;
87426
87428
  }
87427
87429
  async function inspectStandardWorktreeCollisionOwnership(identity) {
87428
- const collisionOwnership = await import("./worktree-collision-ownership-b9cp9zvw.js");
87430
+ const collisionOwnership = await import("./worktree-collision-ownership-jfam09nj.js");
87429
87431
  return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
87430
87432
  }
87431
87433
  async function runRecoveryGit(directory, args, timeoutMs = 15000) {
@@ -87834,7 +87836,7 @@ async function precreateStandardWorktreeSession(args) {
87834
87836
  const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
87835
87837
  if (laneProfile) {
87836
87838
  try {
87837
- const { writeLaneProfileToDiskReal } = await import("./core-bhmqtxev.js");
87839
+ const { writeLaneProfileToDiskReal } = await import("./core-k687jrr3.js");
87838
87840
  await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
87839
87841
  } catch {}
87840
87842
  }
@@ -88759,7 +88761,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
88759
88761
  }
88760
88762
  clearWorktreeMergeStatus(statusKey);
88761
88763
  try {
88762
- const { removeLaneProfileFromDiskReal } = await import("./core-bhmqtxev.js");
88764
+ const { removeLaneProfileFromDiskReal } = await import("./core-k687jrr3.js");
88763
88765
  await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
88764
88766
  } catch {}
88765
88767
  const state = serializationStateBySessionID.get(dispatch.parentSessionID);
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  withEvidenceLock
4
- } from "./index-b5adxpy6.js";
4
+ } from "./index-nqbqkx4c.js";
5
5
  import {
6
6
  atomicWriteFileAnyRoot
7
7
  } from "./index-dh5q6z7y.js";
@@ -9,11 +9,11 @@ import {
9
9
  } from "./index-txdagbh7.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-7ezv5j23.js";
12
+ } from "./index-d8st72j7.js";
13
13
  import {
14
14
  assertProjectRoot,
15
15
  withEvidenceLock
16
- } from "./index-b5adxpy6.js";
16
+ } from "./index-nqbqkx4c.js";
17
17
  import {
18
18
  exports_external,
19
19
  init_zod