opencode-swarm 7.199.0 → 7.199.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 (70) hide show
  1. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  2. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  3. package/dist/cli/{auto-checkpoint-1wf9n5yj.js → auto-checkpoint-x13d1g1t.js} +5 -5
  4. package/dist/cli/{checkpoint-gw6f4ghv.js → checkpoint-68nb8k3t.js} +9 -9
  5. package/dist/cli/{coder-settlement-qy77s1x6.js → coder-settlement-kmdmdpyy.js} +4 -4
  6. package/dist/cli/{config-doctor-2tcp28sc.js → config-doctor-4b0jb15n.js} +8 -8
  7. package/dist/cli/{core-pz87qafz.js → core-6kkm2vrz.js} +1 -1
  8. package/dist/cli/{curator-drift-c1x7jdxj.js → curator-drift-axcgdjy4.js} +5 -5
  9. package/dist/cli/{curator-llm-factory-cg1p6ysr.js → curator-llm-factory-58ec737y.js} +26 -26
  10. package/dist/cli/{curator-fvnptcnw.js → curator-z8xzxh9f.js} +26 -26
  11. package/dist/cli/{doctor-knowledge-receipt-phase-id-xwyb5sf8.js → doctor-knowledge-receipt-phase-id-hkjt6hv4.js} +4 -4
  12. package/dist/cli/{evidence-summary-service-47cptvea.js → evidence-summary-service-981cx8wa.js} +10 -10
  13. package/dist/cli/{gate-evidence-77bzfckz.js → gate-evidence-zyvwsp7a.js} +2 -2
  14. package/dist/cli/{guardrail-explain-0ap0a51w.js → guardrail-explain-23b0amne.js} +27 -27
  15. package/dist/cli/{guardrail-log-xw37f7ws.js → guardrail-log-s2gxszvm.js} +5 -4
  16. package/dist/cli/{guardrail-reset-3fq8xdjf.js → guardrail-reset-kt18vr45.js} +26 -26
  17. package/dist/cli/{hive-promoter-bmdgnmnf.js → hive-promoter-fz7ep8h4.js} +26 -26
  18. package/dist/cli/{index-ckcdheqx.js → index-14vhp87b.js} +2 -2
  19. package/dist/cli/{index-vbm2ykr9.js → index-3zzxrwaf.js} +1 -1
  20. package/dist/cli/{index-kxaxf3en.js → index-408tpd21.js} +245 -18
  21. package/dist/cli/{index-vh87e91s.js → index-4rrff8k6.js} +2 -2
  22. package/dist/cli/{index-bjzxbxpw.js → index-61fa8hg7.js} +2 -2
  23. package/dist/cli/{index-2f9tsejp.js → index-61m1jw7p.js} +1 -1
  24. package/dist/cli/{index-kjhsssaq.js → index-795vmpe6.js} +26 -26
  25. package/dist/cli/{index-mzsj4kkv.js → index-8pyg2qnw.js} +2 -2
  26. package/dist/cli/{index-gds6c8qt.js → index-bb2rx8k2.js} +4 -4
  27. package/dist/cli/{index-1fwm8vqr.js → index-f900029m.js} +4 -4
  28. package/dist/cli/{index-26h8fb7t.js → index-fmbqyqqw.js} +2 -2
  29. package/dist/cli/{index-b5k6etf9.js → index-ge7vn1vz.js} +2 -2
  30. package/dist/cli/{index-awt5dpam.js → index-h349p91m.js} +32 -1
  31. package/dist/cli/{index-3gwh8c9d.js → index-jhk4000q.js} +1 -1
  32. package/dist/cli/{index-ye9bze9s.js → index-m4s5a2sp.js} +4 -4
  33. package/dist/cli/{index-tnrq0pg8.js → index-mzx33w6e.js} +6 -6
  34. package/dist/cli/{index-mefad009.js → index-n9ry04hw.js} +3 -3
  35. package/dist/cli/{index-42dtc5nd.js → index-nacmcvc4.js} +3 -3
  36. package/dist/cli/{index-r52wrpb7.js → index-npy15m50.js} +1 -1
  37. package/dist/cli/{index-zd15v0gr.js → index-nreezgrd.js} +3 -3
  38. package/dist/cli/{index-a5xzwxdq.js → index-p35gw2x7.js} +1 -1
  39. package/dist/cli/{index-79b9re6h.js → index-pf0xrx9w.js} +79 -64
  40. package/dist/cli/{index-zg5gnn3m.js → index-px1dnna2.js} +1 -1
  41. package/dist/cli/{index-4hnxtssf.js → index-qqv9rr8k.js} +28 -28
  42. package/dist/cli/{index-71g0ps66.js → index-r7ayh42s.js} +3 -3
  43. package/dist/cli/{index-3x07b03s.js → index-t1t93qm0.js} +1 -1
  44. package/dist/cli/{index-e5ecn73v.js → index-vj0zede7.js} +1 -1
  45. package/dist/cli/{index-y9ckbta5.js → index-w4624tpw.js} +1 -1
  46. package/dist/cli/{index-pqrepne6.js → index-w9f2jbwe.js} +1 -1
  47. package/dist/cli/{index-qdwccqv5.js → index-weewx5nx.js} +1 -1
  48. package/dist/cli/{index-jjsjjefm.js → index-xj9260dh.js} +6 -6
  49. package/dist/cli/index.js +27 -27
  50. package/dist/cli/{knowledge-escalator-w7b32ak4.js → knowledge-escalator-cf6m9y0s.js} +7 -7
  51. package/dist/cli/{knowledge-events-y0kb9wbe.js → knowledge-events-hn5hymam.js} +5 -5
  52. package/dist/cli/{knowledge-store-knrqgmyk.js → knowledge-store-mgqk4hvy.js} +1 -1
  53. package/dist/cli/{knowledge-validator-zg7d9z8p.js → knowledge-validator-x9yrte9q.js} +2 -2
  54. package/dist/cli/{mcp-3k1t9q6h.js → mcp-hpmh4d6d.js} +1 -1
  55. package/dist/cli/{model-preflight-k92fnbq8.js → model-preflight-ry5jjnx4.js} +26 -26
  56. package/dist/cli/{pending-delegations-ape3hrm0.js → pending-delegations-j850kj5p.js} +2 -2
  57. package/dist/cli/{pr-subscriptions-cn13b19x.js → pr-subscriptions-mme9gb5e.js} +1 -1
  58. package/dist/cli/{pr-workflow-gate-74j5mcxh.js → pr-workflow-gate-n6bj3dnn.js} +26 -26
  59. package/dist/cli/{scan-cursor-4xxfc42h.js → scan-cursor-fdpxbx4f.js} +2 -2
  60. package/dist/cli/{schema-qv9bvhyz.js → schema-amcjvk8a.js} +1 -1
  61. package/dist/cli/{scope-persistence-fmva1cv0.js → scope-persistence-mp4kqpk2.js} +6 -6
  62. package/dist/cli/{server-s5ac6ydk.js → server-ptdvpwyd.js} +26 -26
  63. package/dist/cli/{skill-generator-19ckpm74.js → skill-generator-v59hhybn.js} +8 -8
  64. package/dist/cli/{snapshot-coordination-init-7c0s65jw.js → snapshot-coordination-init-nv6e4svp.js} +26 -26
  65. package/dist/cli/{speckit-checkoff-9b2zj8hd.js → speckit-checkoff-me8kd3wd.js} +3 -3
  66. package/dist/cli/{worktree-collision-ownership-3r669yvh.js → worktree-collision-ownership-84qyqars.js} +2 -2
  67. package/dist/cli/{worktree-isolation-5dydsr8c.js → worktree-isolation-99qvz8ap.js} +26 -26
  68. package/dist/hooks/guardrails/file-authority.d.ts +17 -0
  69. package/dist/index.js +84 -83
  70. package/package.json +1 -1
@@ -8,14 +8,14 @@ import {
8
8
  protectedRoots,
9
9
  redactDecisionLineForArchive,
10
10
  stableCanonicalStringify
11
- } from "./index-kxaxf3en.js";
11
+ } from "./index-408tpd21.js";
12
12
  import {
13
13
  detectStraySwarmDirs,
14
14
  readDoctorArtifact,
15
15
  removeStraySwarmDir,
16
16
  resolvePlanParallelizationFlag,
17
17
  runConfigDoctor
18
- } from "./index-42dtc5nd.js";
18
+ } from "./index-nacmcvc4.js";
19
19
  import {
20
20
  archiveEvidence,
21
21
  checkRequirementCoverage,
@@ -27,7 +27,7 @@ import {
27
27
  sanitizeTaskId,
28
28
  saveEvidence,
29
29
  validateProjectRoot
30
- } from "./index-zg5gnn3m.js";
30
+ } from "./index-px1dnna2.js";
31
31
  import {
32
32
  JAVA_SYMBOL_GRAMMAR,
33
33
  LANGUAGE_REGISTRY,
@@ -89,7 +89,7 @@ import {
89
89
  alreadyCuratedThisGeneration,
90
90
  claimNextScanBatch,
91
91
  resolveCohortId
92
- } from "./index-y9ckbta5.js";
92
+ } from "./index-w4624tpw.js";
93
93
  import {
94
94
  CURATOR_CONSOLIDATION_PROMPT,
95
95
  CURATOR_INIT_PROMPT,
@@ -108,13 +108,13 @@ import {
108
108
  getGroupCommitWriter,
109
109
  importLegacyJsonl,
110
110
  readPriorDriftReports
111
- } from "./index-r52wrpb7.js";
111
+ } from "./index-npy15m50.js";
112
112
  import {
113
113
  assertNoUnsettledCoderDispatch,
114
114
  listCoderSettlementWalStates,
115
115
  recoverCoderSettlement,
116
116
  recoverStaleCoderSettlements
117
- } from "./index-ye9bze9s.js";
117
+ } from "./index-m4s5a2sp.js";
118
118
  import {
119
119
  BUNDLED_PROJECT_SKILL_ROOT,
120
120
  DEFAULT_SKILL_MIN_CONFIDENCE,
@@ -137,11 +137,11 @@ import {
137
137
  skillContractDigest,
138
138
  splitSkillFrontmatter,
139
139
  syncBundledProjectSkillsIfMissingAsync
140
- } from "./index-mefad009.js";
140
+ } from "./index-n9ry04hw.js";
141
141
  import {
142
142
  buildEscalationBriefing,
143
143
  readRecentEscalations
144
- } from "./index-jjsjjefm.js";
144
+ } from "./index-xj9260dh.js";
145
145
  import {
146
146
  parsePorcelainV2Snapshot,
147
147
  resolveCommitCountSince,
@@ -225,7 +225,7 @@ import {
225
225
  swarmOverwriteCandidates,
226
226
  trackedDirtyCandidates,
227
227
  transientBackoff
228
- } from "./index-gds6c8qt.js";
228
+ } from "./index-bb2rx8k2.js";
229
229
  import {
230
230
  EPIC_MODE_CONFIG_DISABLED_MESSAGE,
231
231
  PlanRecoverySupersededError,
@@ -257,7 +257,7 @@ import {
257
257
  updateEpicRecord,
258
258
  updateTaskStatus,
259
259
  withPlanLifecycleLock
260
- } from "./index-tnrq0pg8.js";
260
+ } from "./index-mzx33w6e.js";
261
261
  import {
262
262
  containsControlChars,
263
263
  containsPathTraversal,
@@ -274,7 +274,7 @@ import {
274
274
  resolveSpeckitProjection,
275
275
  validateSpeckit,
276
276
  writeProjectedSpecSync
277
- } from "./index-zd15v0gr.js";
277
+ } from "./index-nreezgrd.js";
278
278
  import {
279
279
  clearWorktreeMergeStatus,
280
280
  getAllWorktreeMergeFailures,
@@ -306,7 +306,7 @@ import {
306
306
  transitionTaskWorkflowEvidenceWithStatus,
307
307
  withTaskEvidenceTransaction,
308
308
  writeWorkflowWalFile
309
- } from "./index-vbm2ykr9.js";
309
+ } from "./index-3zzxrwaf.js";
310
310
  import {
311
311
  isPathUnderSwarmWorktreeBase,
312
312
  listLiveLaneOwners,
@@ -315,7 +315,7 @@ import {
315
315
  recordLiveLaneOwner,
316
316
  removeWorktree,
317
317
  resolveWorktreeBaseDir
318
- } from "./index-2f9tsejp.js";
318
+ } from "./index-61m1jw7p.js";
319
319
  import {
320
320
  GitBinaryMissingError,
321
321
  GitSpawnCwdError,
@@ -358,7 +358,7 @@ import {
358
358
  scanBackgroundCoderReservationsForAdmission,
359
359
  scanDelegationsForRecovery,
360
360
  sweepStaleDelegations
361
- } from "./index-3gwh8c9d.js";
361
+ } from "./index-jhk4000q.js";
362
362
  import {
363
363
  MAX_EVENT_LOG_ENTRIES,
364
364
  _internals,
@@ -370,7 +370,7 @@ import {
370
370
  recordHiveKnowledgeEvent,
371
371
  recordKnowledgeEvent,
372
372
  resolveKnowledgeEventsPath
373
- } from "./index-mzsj4kkv.js";
373
+ } from "./index-8pyg2qnw.js";
374
374
  import {
375
375
  commitDisplayedMembership,
376
376
  commitEmptyRetrieval,
@@ -383,7 +383,7 @@ import {
383
383
  queryLiveMemberships,
384
384
  reconcilePhaseClose,
385
385
  recordPhaseCloseIntent
386
- } from "./index-bjzxbxpw.js";
386
+ } from "./index-61fa8hg7.js";
387
387
  import {
388
388
  sanitizeContextText
389
389
  } from "./index-m9zzj4ee.js";
@@ -414,7 +414,7 @@ import {
414
414
  validateActionableFields,
415
415
  validateLesson,
416
416
  validateSkillPath
417
- } from "./index-e5ecn73v.js";
417
+ } from "./index-vj0zede7.js";
418
418
  import {
419
419
  MAX_CURATION_PROPOSALS,
420
420
  authorizeCuration,
@@ -425,7 +425,7 @@ import {
425
425
  } from "./index-rtry5xyf.js";
426
426
  import {
427
427
  resolveWorktreeIsolationConfig
428
- } from "./index-vh87e91s.js";
428
+ } from "./index-4rrff8k6.js";
429
429
  import {
430
430
  RetrospectiveEvidenceSchema
431
431
  } from "./index-g22dps7x.js";
@@ -437,7 +437,7 @@ import {
437
437
  clearScopeBindings,
438
438
  readAuthoritativeScopeBindingSet,
439
439
  readDeclaredScopeFilesFromBindings
440
- } from "./index-b5k6etf9.js";
440
+ } from "./index-ge7vn1vz.js";
441
441
  import {
442
442
  approvedSnapshotCoversPlan,
443
443
  clearPlanLedgerForReset,
@@ -454,17 +454,18 @@ import {
454
454
  replayFromLedgerWithStatus,
455
455
  resolvePlanningProfile,
456
456
  takeSnapshotEvent
457
- } from "./index-26h8fb7t.js";
457
+ } from "./index-fmbqyqqw.js";
458
458
  import {
459
459
  CORE_EVENT_LOCKED,
460
460
  appendCoreEventSync,
461
461
  appendCoreEventsSync,
462
462
  finalizeCoreEventsForClose,
463
+ getCoderRetryEscalationActions,
463
464
  getCoreEventCoverage,
464
465
  hasSpecDriftAuditEvent,
465
466
  hasTaskRepairAuditEvent,
466
467
  readCoreEvents
467
- } from "./index-awt5dpam.js";
468
+ } from "./index-h349p91m.js";
468
469
  import {
469
470
  DEFAULT_QA_GATES,
470
471
  computeProfileHash,
@@ -543,7 +544,7 @@ import {
543
544
  transactFile,
544
545
  transactKnowledge,
545
546
  wordBigrams
546
- } from "./index-1fwm8vqr.js";
547
+ } from "./index-f900029m.js";
547
548
  import {
548
549
  readTailJsonl,
549
550
  readTailJsonlDetailed,
@@ -628,7 +629,7 @@ import {
628
629
  loadPluginConfig,
629
630
  loadPluginConfigWithMeta,
630
631
  resolveEpicConfig
631
- } from "./index-qdwccqv5.js";
632
+ } from "./index-weewx5nx.js";
632
633
  import {
633
634
  GIT_BINARY_ENV_VAR,
634
635
  addDeferredWarning,
@@ -661,7 +662,7 @@ import {
661
662
  resolveContextWindow,
662
663
  resolveGeneratedAgentRole,
663
664
  stripKnownSwarmPrefix
664
- } from "./index-3x07b03s.js";
665
+ } from "./index-t1t93qm0.js";
665
666
  import {
666
667
  AGENT_TOOL_MAP,
667
668
  ALL_AGENT_NAMES,
@@ -3463,7 +3464,7 @@ async function importLegacyPrWorkflowGateStateIfNeeded(directory, sessionID, all
3463
3464
  return null;
3464
3465
  throw error2;
3465
3466
  }
3466
- const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-74j5mcxh.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
3467
+ const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-n6bj3dnn.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
3467
3468
  if (!legacy)
3468
3469
  return null;
3469
3470
  const namespace = workflowGateStateCoordinationNamespace(sessionID);
@@ -3597,7 +3598,7 @@ async function deleteStateWhileLocked(directory, sessionID, options = {}) {
3597
3598
  let recoveryState = null;
3598
3599
  if (!currentAuthoritative) {
3599
3600
  if (options.allowSalvagedRead) {
3600
- const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-74j5mcxh.js");
3601
+ const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-n6bj3dnn.js");
3601
3602
  recoveryState = (await readPrWorkflowGateStateForRecovery(directory, normalizedSessionID))?.state ?? null;
3602
3603
  }
3603
3604
  if (!recoveryState) {
@@ -11476,7 +11477,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
11476
11477
  return extracted === expectedSessionId;
11477
11478
  }
11478
11479
  async function inspectStandardWorktreeCollisionOwnership(identity) {
11479
- const collisionOwnership = await import("./worktree-collision-ownership-3r669yvh.js");
11480
+ const collisionOwnership = await import("./worktree-collision-ownership-84qyqars.js");
11480
11481
  return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
11481
11482
  }
11482
11483
  async function runRecoveryGit(directory, args, timeoutMs = 15000) {
@@ -11904,7 +11905,7 @@ async function precreateStandardWorktreeSession(args) {
11904
11905
  const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
11905
11906
  if (laneProfile) {
11906
11907
  try {
11907
- const { writeLaneProfileToDiskReal } = await import("./core-pz87qafz.js");
11908
+ const { writeLaneProfileToDiskReal } = await import("./core-6kkm2vrz.js");
11908
11909
  await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
11909
11910
  } catch {}
11910
11911
  }
@@ -12898,7 +12899,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
12898
12899
  }
12899
12900
  clearWorktreeMergeStatus(statusKey);
12900
12901
  try {
12901
- const { removeLaneProfileFromDiskReal } = await import("./core-pz87qafz.js");
12902
+ const { removeLaneProfileFromDiskReal } = await import("./core-6kkm2vrz.js");
12902
12903
  await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
12903
12904
  } catch {}
12904
12905
  const state = serializationStateBySessionID.get(dispatch.parentSessionID);
@@ -20936,9 +20937,23 @@ async function repairTaskWorkflowUnderPlanLock(options) {
20936
20937
  transitionId: existingWal.transitionId
20937
20938
  };
20938
20939
  }
20939
- if (existingWal === null && options.currentPlanStatus !== "completed" && options.currentPlanStatus !== "blocked" && options.currentPlanStatus !== "closed") {
20940
+ if (existingWal === null && options.currentPlanStatus !== "completed" && options.currentPlanStatus !== "blocked" && options.currentPlanStatus !== "closed" && options.currentPlanStatus !== "in_progress") {
20940
20941
  throw new Error(`TASK_REPAIR_NOT_BACKWARD: cannot create a repair from plan status ${options.currentPlanStatus}`);
20941
20942
  }
20943
+ if (existingWal === null && options.currentPlanStatus === "in_progress") {
20944
+ let wedgeEscalated = false;
20945
+ try {
20946
+ wedgeEscalated = getCoderRetryEscalationActions(options.directory, options.taskId, snapshot.retryEpoch).has("user_escalation") && snapshot.retryCount >= 3;
20947
+ } catch (error2) {
20948
+ if (error2 instanceof Error && error2.message === "CORE_EVENT_AUTHORITY_INDEX_UNREADABLE") {
20949
+ throw new Error("TASK_REPAIR_ESCALATION_INDEX_UNREADABLE: cannot verify the retry-escalation wedge evidence for an in_progress repair " + "(the core-event authority index is unreadable). The unreadable index is not content-restored: a later authority write rebuilds it from subsequent events only, so escalation evidence already folded out of the retained events window stays lost, and producers may refuse while the index is unreadable. " + "Recovery without discarding the events trail: re-dispatching the task re-runs the retry ladder from scratch and re-records the rungs; /swarm reset is the destructive full reset (it clears the plan, the events trail, and run state \u2014 session state is reset-session's charter and survives). Admission refuses to guess.");
20950
+ }
20951
+ throw error2;
20952
+ }
20953
+ if (!wedgeEscalated) {
20954
+ throw new Error(`TASK_REPAIR_NOT_BACKWARD: cannot create a repair from plan status ${options.currentPlanStatus} \u2014 an in_progress task is repairable only once the coder retry ladder has recorded a durable user_escalation for its current retry epoch with retryCount at the threshold; no such record is visible for this task.`);
20955
+ }
20956
+ }
20942
20957
  const wal = existingWal ?? {
20943
20958
  version: 1,
20944
20959
  state: "PREPARED",
@@ -29586,7 +29601,7 @@ function clearCriticalShownIds(sessionID) {
29586
29601
  async function rehydratePrSubscriptions(sessionID, directory) {
29587
29602
  const map = new Map;
29588
29603
  try {
29589
- const { listActive: listActive2 } = await import("./pr-subscriptions-cn13b19x.js");
29604
+ const { listActive: listActive2 } = await import("./pr-subscriptions-mme9gb5e.js");
29590
29605
  const records = await listActive2(directory);
29591
29606
  for (const record of records) {
29592
29607
  if (record.sessionID !== sessionID)
@@ -46658,9 +46673,9 @@ function hashContent(content) {
46658
46673
  return createHash29("sha1").update(content).digest("hex");
46659
46674
  }
46660
46675
  async function loadConfigForPolicyCurator(directory) {
46661
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-qv9bvhyz.js");
46676
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-amcjvk8a.js");
46662
46677
  try {
46663
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-71g0ps66.js");
46678
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-r7ayh42s.js");
46664
46679
  const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
46665
46680
  return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
46666
46681
  } catch {
@@ -49718,7 +49733,7 @@ async function resolveCuratorLLMDelegate(directory, mode, sessionId) {
49718
49733
  const seam = _internals50.createCuratorLLMDelegate;
49719
49734
  if (seam)
49720
49735
  return seam(directory, mode, sessionId);
49721
- const { createCuratorLLMDelegate } = await import("./curator-llm-factory-cg1p6ysr.js");
49736
+ const { createCuratorLLMDelegate } = await import("./curator-llm-factory-58ec737y.js");
49722
49737
  return createCuratorLLMDelegate(directory, mode, sessionId);
49723
49738
  }
49724
49739
  async function reconcileCloseTerminalStateForPlan(directory, targetPlan, options) {
@@ -50113,7 +50128,7 @@ async function runFinalizeStage(ctx) {
50113
50128
  }
50114
50129
  }
50115
50130
  try {
50116
- const { CuratorConfigSchema: CCS } = await import("./schema-qv9bvhyz.js");
50131
+ const { CuratorConfigSchema: CCS } = await import("./schema-amcjvk8a.js");
50117
50132
  const { config: pmLoadedConfig } = _internals50.loadPluginConfigWithMeta(ctx.directory);
50118
50133
  const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
50119
50134
  if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
@@ -54146,7 +54161,7 @@ function serializeAgentSession(s) {
54146
54161
  }
54147
54162
  async function writeSnapshot(directory, state) {
54148
54163
  try {
54149
- const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-7c0s65jw.js");
54164
+ const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-nv6e4svp.js");
54150
54165
  await ensureSnapshotCoordinationReady(directory);
54151
54166
  const snapshot = {
54152
54167
  version: 3,
@@ -57286,7 +57301,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
57286
57301
  };
57287
57302
  }
57288
57303
  async function sweepActiveNearDuplicates(directory, options = {}) {
57289
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-71g0ps66.js");
57304
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-r7ayh42s.js");
57290
57305
  const { config } = loadPluginConfigWithMeta2(directory);
57291
57306
  const sweepConfig = config.learning?.dedup_sweep;
57292
57307
  if (sweepConfig?.enabled === false)
@@ -58410,7 +58425,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
58410
58425
  }
58411
58426
  if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
58412
58427
  try {
58413
- const skillModule = await import("./skill-generator-19ckpm74.js");
58428
+ const skillModule = await import("./skill-generator-v59hhybn.js");
58414
58429
  for (const cand of skillCandidates) {
58415
58430
  if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
58416
58431
  continue;
@@ -58882,7 +58897,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
58882
58897
  } catch {}
58883
58898
  }
58884
58899
  if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
58885
- const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-w7b32ak4.js");
58900
+ const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-cf6m9y0s.js");
58886
58901
  for (const { id } of contradictedEntries) {
58887
58902
  try {
58888
58903
  await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
@@ -59714,7 +59729,7 @@ async function runCuratorPostMortem(directory, options = {}) {
59714
59729
  warnings.push("Failed to collect knowledge summary.");
59715
59730
  }
59716
59731
  try {
59717
- const { getScanStatus } = await import("./scan-cursor-4xxfc42h.js");
59732
+ const { getScanStatus } = await import("./scan-cursor-fdpxbx4f.js");
59718
59733
  const scanStatus = await getScanStatus(directory);
59719
59734
  if (scanStatus.remaining_estimate > 0) {
59720
59735
  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.`);
@@ -59886,9 +59901,9 @@ var _internals72 = {
59886
59901
  verifyPostMortemKnowledgeActions,
59887
59902
  repairPostMortemActions,
59888
59903
  loadDefaultKnowledgeConfig: async (directory) => {
59889
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-qv9bvhyz.js");
59904
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-amcjvk8a.js");
59890
59905
  try {
59891
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-71g0ps66.js");
59906
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-r7ayh42s.js");
59892
59907
  const loaded = loadPluginConfigWithMeta2(directory);
59893
59908
  return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
59894
59909
  } catch {
@@ -59896,11 +59911,11 @@ var _internals72 = {
59896
59911
  }
59897
59912
  },
59898
59913
  applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
59899
- const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-fvnptcnw.js");
59914
+ const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-z8xzxh9f.js");
59900
59915
  return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
59901
59916
  },
59902
59917
  checkHivePromotions: async (entries2, knowledgeConfig, directory) => {
59903
- const { checkHivePromotions } = await import("./hive-promoter-bmdgnmnf.js");
59918
+ const { checkHivePromotions } = await import("./hive-promoter-fz7ep8h4.js");
59904
59919
  return checkHivePromotions(entries2, knowledgeConfig, directory);
59905
59920
  },
59906
59921
  applyProposalTriage: async (directory, triage) => {
@@ -59909,7 +59924,7 @@ var _internals72 = {
59909
59924
  activateProposal,
59910
59925
  listSkills: listSkills2,
59911
59926
  sanitizeSlug
59912
- } = await import("./skill-generator-19ckpm74.js");
59927
+ } = await import("./skill-generator-v59hhybn.js");
59913
59928
  const result = {
59914
59929
  approved: [],
59915
59930
  rejected: [],
@@ -59951,7 +59966,7 @@ var _internals72 = {
59951
59966
  return result;
59952
59967
  },
59953
59968
  readPriorDriftReports: async (directory) => {
59954
- const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-c1x7jdxj.js");
59969
+ const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-axcgdjy4.js");
59955
59970
  return readPriorDriftReports2(directory);
59956
59971
  },
59957
59972
  readSwarmKnowledge: (directory) => readKnowledge(resolveSwarmKnowledgePath(directory))
@@ -70221,9 +70236,9 @@ var _internals80 = {
70221
70236
  loadPluginConfigWithMeta,
70222
70237
  loadCuratorDeps: async () => {
70223
70238
  const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate }] = await Promise.all([
70224
- import("./schema-qv9bvhyz.js"),
70225
- import("./curator-fvnptcnw.js"),
70226
- import("./curator-llm-factory-cg1p6ysr.js")
70239
+ import("./schema-amcjvk8a.js"),
70240
+ import("./curator-z8xzxh9f.js"),
70241
+ import("./curator-llm-factory-58ec737y.js")
70227
70242
  ]);
70228
70243
  return { CuratorConfigSchema, curator, createCuratorLLMDelegate };
70229
70244
  }
@@ -72673,7 +72688,7 @@ async function computeCurationDiagnostics(directory, entries2) {
72673
72688
  let scanCompleted = false;
72674
72689
  let scanRemaining = 0;
72675
72690
  try {
72676
- const { getScanStatus } = await import("./scan-cursor-4xxfc42h.js");
72691
+ const { getScanStatus } = await import("./scan-cursor-fdpxbx4f.js");
72677
72692
  const status = await getScanStatus(directory);
72678
72693
  scanGeneration = status.generation;
72679
72694
  scanCompleted = status.completed;
@@ -72683,10 +72698,10 @@ async function computeCurationDiagnostics(directory, entries2) {
72683
72698
  try {
72684
72699
  const { isLinked: isLinked2 } = await import("./knowledge-link-1f91bzcc.js");
72685
72700
  if (isLinked2(directory)) {
72686
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-qv9bvhyz.js");
72701
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-amcjvk8a.js");
72687
72702
  let config;
72688
72703
  try {
72689
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-71g0ps66.js");
72704
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-r7ayh42s.js");
72690
72705
  const loaded = loadPluginConfigWithMeta2(directory);
72691
72706
  config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
72692
72707
  } catch {
@@ -74142,7 +74157,7 @@ async function handleDoctorCommand(directory, args) {
74142
74157
  const result = runConfigDoctor(config, directory, planParallelizationEnabled);
74143
74158
  let output;
74144
74159
  if (enableAutoFix && result.hasAutoFixableIssues) {
74145
- const { runConfigDoctorWithFixes } = await import("./config-doctor-2tcp28sc.js");
74160
+ const { runConfigDoctorWithFixes } = await import("./config-doctor-4b0jb15n.js");
74146
74161
  const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
74147
74162
  applyLossy: true
74148
74163
  });
@@ -74180,7 +74195,7 @@ async function handleDoctorCommand(directory, args) {
74180
74195
  `;
74181
74196
  }
74182
74197
  try {
74183
- const { runModelPreflight } = await import("./model-preflight-k92fnbq8.js");
74198
+ const { runModelPreflight } = await import("./model-preflight-ry5jjnx4.js");
74184
74199
  const preflight = await runModelPreflight(config, swarmState.opencodeClient, { generatedAgentNames: swarmState.generatedAgentNames });
74185
74200
  const missingSelection = preflight.resolutions.filter((resolution) => resolution.status === "missing-selection");
74186
74201
  const unresolved = preflight.catalogAvailable ? preflight.resolutions.filter((resolution) => resolution.status === "unresolved") : [];
@@ -74214,7 +74229,7 @@ async function handleDoctorCommand(directory, args) {
74214
74229
  }
74215
74230
  } catch {}
74216
74231
  try {
74217
- const { renderKnowledgeReceiptPhaseIdSection } = await import("./doctor-knowledge-receipt-phase-id-xwyb5sf8.js");
74232
+ const { renderKnowledgeReceiptPhaseIdSection } = await import("./doctor-knowledge-receipt-phase-id-hkjt6hv4.js");
74218
74233
  output += await renderKnowledgeReceiptPhaseIdSection(directory, enableAutoFix);
74219
74234
  } catch {}
74220
74235
  const strayDirs = detectStraySwarmDirs(directory);
@@ -76231,7 +76246,7 @@ async function handleEvidenceCommand(directory, args) {
76231
76246
  return formatTaskEvidenceMarkdown(evidenceData);
76232
76247
  }
76233
76248
  async function handleEvidenceSummaryCommand(directory) {
76234
- const { buildEvidenceSummary } = await import("./evidence-summary-service-47cptvea.js");
76249
+ const { buildEvidenceSummary } = await import("./evidence-summary-service-981cx8wa.js");
76235
76250
  const artifact = await buildEvidenceSummary(directory);
76236
76251
  if (!artifact) {
76237
76252
  return "No plan found. Run `/swarm plan` to check plan status.";
@@ -100658,7 +100673,7 @@ function createCuratorLLMDelegate(directory, mode = "init", sessionId) {
100658
100673
  }
100659
100674
  const sdkOpts = signal ? { signal } : {};
100660
100675
  try {
100661
- const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-kjhsssaq.js");
100676
+ const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-795vmpe6.js");
100662
100677
  const createResult = await client.session.create({
100663
100678
  ...sessionId ? {
100664
100679
  body: {
@@ -102756,7 +102771,7 @@ async function cancelPrFeedbackLoopUnlocked(directory, sessionID, reason) {
102756
102771
  clearedEvents: []
102757
102772
  };
102758
102773
  try {
102759
- const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-74j5mcxh.js");
102774
+ const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-n6bj3dnn.js");
102760
102775
  await cancelPrFeedbackPublication2(directory, sessionID, reason);
102761
102776
  } catch (err) {
102762
102777
  warn(`[pr-feedback-loop] cancelPrFeedbackPublication failed (fail-open): ${err instanceof Error ? err.message : String(err)}`);
@@ -112712,7 +112727,7 @@ async function handleResetSessionCommand(directory, args, sessionID) {
112712
112727
  "",
112713
112728
  "Session state cleared. Plan, evidence, and knowledge preserved.",
112714
112729
  "",
112715
- "In-memory circuit breakers and revision limits have been cleared. Durable per-task retry gates (the coder retry circuit breaker, bound to commit settlement in the events audit log and .swarm/evidence/) intentionally survive this reset. If a task is blocked with TASK_RETRY_CRITIC_REQUIRED waiting for a critic_sounding_board APPROVED verdict that was already obtained, have the architect record it with the approve_retry_sounding_board tool. A task left at rework_required also survives this reset; when the Stage B verdict did not require a code change, the architect can exit it with the recover_rework_task tool (issue #2755)."
112730
+ "In-memory circuit breakers and revision limits have been cleared. Durable per-task retry gates (the coder retry circuit breaker, bound to commit settlement in the events audit log and .swarm/evidence/) intentionally survive this reset. If a task is blocked with TASK_RETRY_CRITIC_REQUIRED waiting for a critic_sounding_board APPROVED verdict that was already obtained, have the architect record it with the approve_retry_sounding_board tool. A task left at rework_required also survives this reset; when the Stage B verdict did not require a code change, the architect can exit it with the recover_rework_task tool (issue #2755). A task wedged at TASK_RETRY_USER_ESCALATION_REQUIRED is exited with the audited update_task_status force repair (issue #3389; see docs/troubleshooting/recovery-runbook.md), which reopens the task " + "and clears the retry circuit \u2014 the task's plan status must " + "already be in_progress; a task still pending in the plan takes one ordinary in_progress status update first."
112716
112731
  ].join(`
112717
112732
  `);
112718
112733
  }
@@ -119241,7 +119256,7 @@ function buildDetailedHelp(commandName, entry) {
119241
119256
  async function handleHelpCommand(ctx) {
119242
119257
  const targetCommand = ctx.args.join(" ");
119243
119258
  if (!targetCommand) {
119244
- const { buildHelpText } = await import("./index-4hnxtssf.js");
119259
+ const { buildHelpText } = await import("./index-qqv9rr8k.js");
119245
119260
  return buildHelpText();
119246
119261
  }
119247
119262
  const tokens = targetCommand.split(/\s+/);
@@ -119255,7 +119270,7 @@ async function handleHelpCommand(ctx) {
119255
119270
  > Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
119256
119271
  }
119257
119272
  const similar = _internals39.findSimilarCommands(targetCommand);
119258
- const { buildHelpText: fullHelp } = await import("./index-4hnxtssf.js");
119273
+ const { buildHelpText: fullHelp } = await import("./index-qqv9rr8k.js");
119259
119274
  if (similar.length > 0) {
119260
119275
  return `Command '/swarm ${targetCommand}' not found.
119261
119276
 
@@ -119583,7 +119598,7 @@ var COMMAND_REGISTRY = {
119583
119598
  },
119584
119599
  "guardrail explain": {
119585
119600
  handler: async (ctx) => {
119586
- const { handleGuardrailExplain } = await import("./guardrail-explain-0ap0a51w.js");
119601
+ const { handleGuardrailExplain } = await import("./guardrail-explain-23b0amne.js");
119587
119602
  return handleGuardrailExplain(ctx.directory, ctx.args);
119588
119603
  },
119589
119604
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -119593,7 +119608,7 @@ var COMMAND_REGISTRY = {
119593
119608
  },
119594
119609
  "guardrail reset": {
119595
119610
  handler: async (ctx) => {
119596
- const { handleGuardrailReset } = await import("./guardrail-reset-3fq8xdjf.js");
119611
+ const { handleGuardrailReset } = await import("./guardrail-reset-kt18vr45.js");
119597
119612
  return handleGuardrailReset(ctx.args, ctx.sessionID);
119598
119613
  },
119599
119614
  description: "Reset one exact active invocation/action circuit after repair",
@@ -119614,7 +119629,7 @@ var COMMAND_REGISTRY = {
119614
119629
  },
119615
119630
  "guardrail-log": {
119616
119631
  handler: async (ctx) => {
119617
- const { handleGuardrailLog } = await import("./guardrail-log-xw37f7ws.js");
119632
+ const { handleGuardrailLog } = await import("./guardrail-log-s2gxszvm.js");
119618
119633
  return handleGuardrailLog(ctx.directory, ctx.args);
119619
119634
  },
119620
119635
  description: "Read the guardrail decision log (use --blocks-only for blocks)",
@@ -12,7 +12,7 @@ import {
12
12
  readTaskEvidence,
13
13
  readTaskEvidenceRaw,
14
14
  sanitizeTaskId
15
- } from "./index-vbm2ykr9.js";
15
+ } from "./index-3zzxrwaf.js";
16
16
  import {
17
17
  readSwarmFileAsync,
18
18
  validateSwarmPath
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-ckcdheqx.js";
4
+ } from "./index-14vhp87b.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-a5xzwxdq.js";
7
+ } from "./index-p35gw2x7.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  DEFAULT_CI_DEADLINE_MS,
@@ -97,51 +97,51 @@ import {
97
97
  handleWriteRetroCommand,
98
98
  normalizeSwarmCommandInput,
99
99
  resolveCommand
100
- } from "./index-79b9re6h.js";
101
- import"./index-kxaxf3en.js";
102
- import"./index-42dtc5nd.js";
103
- import"./index-zg5gnn3m.js";
100
+ } from "./index-pf0xrx9w.js";
101
+ import"./index-408tpd21.js";
102
+ import"./index-nacmcvc4.js";
103
+ import"./index-px1dnna2.js";
104
104
  import"./index-j2vv0h13.js";
105
105
  import"./index-jccs3fgn.js";
106
106
  import"./index-7c432abn.js";
107
107
  import"./index-txdagbh7.js";
108
- import"./index-y9ckbta5.js";
108
+ import"./index-w4624tpw.js";
109
109
  import"./index-rdec0y3z.js";
110
- import"./index-r52wrpb7.js";
111
- import"./index-ye9bze9s.js";
112
- import"./index-mefad009.js";
113
- import"./index-jjsjjefm.js";
110
+ import"./index-npy15m50.js";
111
+ import"./index-m4s5a2sp.js";
112
+ import"./index-n9ry04hw.js";
113
+ import"./index-xj9260dh.js";
114
114
  import"./index-9ztsfved.js";
115
115
  import"./index-bkscmz4z.js";
116
116
  import"./index-cjapb4hy.js";
117
117
  import"./index-pxdc0qn1.js";
118
118
  import"./index-pt7h91zc.js";
119
119
  import"./index-q7sjgr1y.js";
120
- import"./index-gds6c8qt.js";
121
- import"./index-tnrq0pg8.js";
120
+ import"./index-bb2rx8k2.js";
121
+ import"./index-mzx33w6e.js";
122
122
  import"./index-6b295cas.js";
123
123
  import"./index-9nyqt3kb.js";
124
- import"./index-zd15v0gr.js";
124
+ import"./index-nreezgrd.js";
125
125
  import"./index-v3bmwmqw.js";
126
- import"./index-pqrepne6.js";
127
- import"./index-vbm2ykr9.js";
128
- import"./index-2f9tsejp.js";
126
+ import"./index-w9f2jbwe.js";
127
+ import"./index-3zzxrwaf.js";
128
+ import"./index-61m1jw7p.js";
129
129
  import"./index-g4fs6z4e.js";
130
- import"./index-3gwh8c9d.js";
131
- import"./index-mzsj4kkv.js";
132
- import"./index-bjzxbxpw.js";
130
+ import"./index-jhk4000q.js";
131
+ import"./index-8pyg2qnw.js";
132
+ import"./index-61fa8hg7.js";
133
133
  import"./index-m9zzj4ee.js";
134
134
  import"./index-820pzqd6.js";
135
135
  import"./index-2s7dvzff.js";
136
- import"./index-e5ecn73v.js";
136
+ import"./index-vj0zede7.js";
137
137
  import"./index-2mx2gn97.js";
138
138
  import"./index-rtry5xyf.js";
139
- import"./index-vh87e91s.js";
139
+ import"./index-4rrff8k6.js";
140
140
  import"./index-g22dps7x.js";
141
141
  import"./index-0725jpp7.js";
142
- import"./index-b5k6etf9.js";
143
- import"./index-26h8fb7t.js";
144
- import"./index-awt5dpam.js";
142
+ import"./index-ge7vn1vz.js";
143
+ import"./index-fmbqyqqw.js";
144
+ import"./index-h349p91m.js";
145
145
  import"./index-p5pgjp7n.js";
146
146
  import"./index-nr1pj3hy.js";
147
147
  import"./index-w00dj8p5.js";
@@ -149,7 +149,7 @@ import"./index-ry16d01s.js";
149
149
  import"./index-rdm3px0g.js";
150
150
  import"./index-7pmbnjvj.js";
151
151
  import"./index-hc6wa3yg.js";
152
- import"./index-1fwm8vqr.js";
152
+ import"./index-f900029m.js";
153
153
  import"./index-vzm6zre7.js";
154
154
  import"./index-ae75rja9.js";
155
155
  import"./index-2bc7zfw3.js";
@@ -162,12 +162,12 @@ import"./index-ejhxgyvm.js";
162
162
  import"./index-7g4c7s5r.js";
163
163
  import"./index-ywb5er8g.js";
164
164
  import"./index-gx2vp8gx.js";
165
- import"./index-qdwccqv5.js";
165
+ import"./index-weewx5nx.js";
166
166
  import"./index-zxdawwc7.js";
167
167
  import {
168
168
  init_schema,
169
169
  stripKnownSwarmPrefix
170
- } from "./index-3x07b03s.js";
170
+ } from "./index-t1t93qm0.js";
171
171
  import {
172
172
  AGENT_TOOL_MAP,
173
173
  ORCHESTRATOR_NAME,