opencode-swarm 7.188.4 → 7.188.5

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 (92) 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-gp13e1h5.js → auto-checkpoint-6z6dhqak.js} +7 -7
  4. package/dist/cli/{checkpoint-61vy6pjg.js → checkpoint-99vqentz.js} +14 -14
  5. package/dist/cli/{coder-settlement-2s4rr23t.js → coder-settlement-07dkrqvy.js} +10 -10
  6. package/dist/cli/{config-doctor-0pjjr594.js → config-doctor-0pqexbab.js} +13 -13
  7. package/dist/cli/{core-qdn60dm0.js → core-zx4az38t.js} +3 -3
  8. package/dist/cli/{curation-policy-2rdbwc6a.js → curation-policy-nxcx99yp.js} +4 -4
  9. package/dist/cli/{curator-drift-n4t27md5.js → curator-drift-0ne6gnj0.js} +8 -8
  10. package/dist/cli/curator-llm-factory-gdedzs6k.js +82 -0
  11. package/dist/cli/{curator-8yqmmn5w.js → curator-s08eqma1.js} +40 -40
  12. package/dist/cli/{doctor-knowledge-receipt-phase-id-vk9c6t3k.js → doctor-knowledge-receipt-phase-id-kpzaepq8.js} +7 -7
  13. package/dist/cli/{evidence-summary-service-xpdx8se9.js → evidence-summary-service-xadab4ym.js} +17 -17
  14. package/dist/cli/{gate-evidence-px2mexyg.js → gate-evidence-c3d7ewv4.js} +5 -5
  15. package/dist/cli/guardrail-explain-enbr5ne9.js +83 -0
  16. package/dist/cli/{guardrail-log-y61ewh6d.js → guardrail-log-0g59n4ae.js} +6 -6
  17. package/dist/cli/{guardrail-reset-3arv6rfs.js → guardrail-reset-e0m3p15n.js} +40 -40
  18. package/dist/cli/{hive-promoter-5naewxf9.js → hive-promoter-1jb0t5g2.js} +40 -40
  19. package/dist/cli/{index-p8kv9hh6.js → index-03ng9y76.js} +10 -10
  20. package/dist/cli/{index-dka1ra21.js → index-0cdkb7e8.js} +5 -5
  21. package/dist/cli/{index-tr6kaa6q.js → index-1kd2cbcz.js} +4 -4
  22. package/dist/cli/{index-6kckcdd7.js → index-1tgkj4mf.js} +3 -3
  23. package/dist/cli/{index-xn48kjf4.js → index-3b71hf2k.js} +2 -2
  24. package/dist/cli/{index-6qtgyzw2.js → index-3jn6155r.js} +3 -3
  25. package/dist/cli/{index-fm0yan3t.js → index-4ak3ewt2.js} +4 -4
  26. package/dist/cli/{index-94b58ssa.js → index-4m7cywkf.js} +145 -98
  27. package/dist/cli/{index-gyhj562n.js → index-5nwfz9bn.js} +1 -1
  28. package/dist/cli/{index-4czf0es9.js → index-7hr5m7yp.js} +1 -1
  29. package/dist/cli/{index-d3p96wkj.js → index-85npnq5t.js} +6 -6
  30. package/dist/cli/{index-1e4s8cyt.js → index-8f0j6kf2.js} +3 -3
  31. package/dist/cli/{index-wftdsx38.js → index-98zfmfnn.js} +4 -4
  32. package/dist/cli/{index-ywpn0arj.js → index-9f7y0rym.js} +40 -40
  33. package/dist/cli/{index-6kf62j82.js → index-9qbn3chx.js} +1 -1
  34. package/dist/cli/{index-ww91zjzk.js → index-9tvjwv01.js} +1 -1
  35. package/dist/cli/{index-sh7se0x5.js → index-ar33mkxc.js} +7 -7
  36. package/dist/cli/{index-3034m1wv.js → index-bjh6cw86.js} +4 -4
  37. package/dist/cli/{index-j7pqzxyq.js → index-br33a6v7.js} +2 -2
  38. package/dist/cli/{index-ntyc39rv.js → index-cjekszvy.js} +2 -2
  39. package/dist/cli/{index-bqqyxmpk.js → index-d95b3yce.js} +7 -7
  40. package/dist/cli/{index-wsab75et.js → index-dd258pfn.js} +3 -3
  41. package/dist/cli/{index-ge4hk20b.js → index-dmdg2zay.js} +1 -1
  42. package/dist/cli/{index-yctaaj1k.js → index-dmnvgc03.js} +3 -3
  43. package/dist/cli/{index-4vgvybav.js → index-f1wqew85.js} +2 -2
  44. package/dist/cli/{index-jc0jxg7y.js → index-f6exny9m.js} +2 -2
  45. package/dist/cli/{index-0yqa3awy.js → index-fbwerevq.js} +2 -2
  46. package/dist/cli/{index-2ajapc0r.js → index-hq7mfqe5.js} +1 -1
  47. package/dist/cli/{index-8tf5tewn.js → index-j9swvmt3.js} +1 -1
  48. package/dist/cli/{index-vx59q2ex.js → index-jc2ndtdt.js} +1 -1
  49. package/dist/cli/{index-gmmz119k.js → index-jevq7a7b.js} +1 -1
  50. package/dist/cli/{index-qwrx78m5.js → index-kaqdzhj3.js} +2 -2
  51. package/dist/cli/{index-8zs4v02d.js → index-n7vy4gb3.js} +6 -6
  52. package/dist/cli/{index-v09x4k5h.js → index-ntda6tje.js} +1 -1
  53. package/dist/cli/{index-1d51nz8d.js → index-p2tqzwh6.js} +1 -1
  54. package/dist/cli/{index-rqheyf9e.js → index-p746x44z.js} +4 -4
  55. package/dist/cli/{index-64nkt4ek.js → index-sg2agtt5.js} +1 -1
  56. package/dist/cli/{index-a5z8eqs0.js → index-txr48a64.js} +42 -42
  57. package/dist/cli/{index-53me7h10.js → index-vktygb4k.js} +5 -5
  58. package/dist/cli/{index-195msz9x.js → index-vn8phy76.js} +1 -1
  59. package/dist/cli/{index-yacpp9jq.js → index-w5p9crxx.js} +2 -2
  60. package/dist/cli/{index-jkz10gm7.js → index-wx43mc8h.js} +1 -1
  61. package/dist/cli/{index-103gsfn1.js → index-x1eh2636.js} +1 -1
  62. package/dist/cli/{index-d74wbpqc.js → index-ykaaejka.js} +5 -5
  63. package/dist/cli/{index-75bm071p.js → index-z11watrb.js} +1 -1
  64. package/dist/cli/index.js +41 -41
  65. package/dist/cli/{knowledge-escalator-2c4svh7n.js → knowledge-escalator-c65r55bv.js} +12 -12
  66. package/dist/cli/{knowledge-events-7zea5hzr.js → knowledge-events-exc94dr2.js} +10 -10
  67. package/dist/cli/{knowledge-link-r9nx1eaj.js → knowledge-link-kgt3zx0c.js} +3 -3
  68. package/dist/cli/{knowledge-store-rdya1anx.js → knowledge-store-b2qm637m.js} +4 -4
  69. package/dist/cli/{knowledge-validator-qnc4byyh.js → knowledge-validator-44pn1xrn.js} +6 -6
  70. package/dist/cli/{mcp-z21kvvnf.js → mcp-6qjt8ey7.js} +1 -1
  71. package/dist/cli/{model-preflight-jbg35f6e.js → model-preflight-dh9dadg8.js} +40 -40
  72. package/dist/cli/{pending-delegations-c1yjybf1.js → pending-delegations-vcqw78d8.js} +10 -10
  73. package/dist/cli/{pr-subscriptions-2mngc0jg.js → pr-subscriptions-2vp2sxjb.js} +10 -10
  74. package/dist/cli/{pr-workflow-gate-h4s5w5y0.js → pr-workflow-gate-cy24tc3c.js} +40 -40
  75. package/dist/cli/{runner-3ynjanks.js → runner-zeqpd2c2.js} +4 -4
  76. package/dist/cli/{scan-cursor-385k9dkp.js → scan-cursor-3hyz0qnh.js} +5 -5
  77. package/dist/cli/{schema-cp8sqp1b.js → schema-4s2nnpqt.js} +1 -1
  78. package/dist/cli/{scope-persistence-d587cb6v.js → scope-persistence-1bvaeene.js} +13 -13
  79. package/dist/cli/{server-t0wansfd.js → server-zb4j57w6.js} +40 -40
  80. package/dist/cli/{skill-generator-f2j1jnqf.js → skill-generator-fqh79jr7.js} +14 -14
  81. package/dist/cli/{snapshot-coordination-init-9gvgq52n.js → snapshot-coordination-init-v50k6v2v.js} +40 -40
  82. package/dist/cli/{speckit-checkoff-zw0w6ekx.js → speckit-checkoff-mcxxpmy4.js} +4 -4
  83. package/dist/cli/{workspace-snapshot-w60bykdz.js → workspace-snapshot-30kdf018.js} +3 -3
  84. package/dist/cli/{worktree-collision-ownership-0d8xf1d8.js → worktree-collision-ownership-fk6spbrf.js} +11 -11
  85. package/dist/cli/{worktree-isolation-ds8n4a16.js → worktree-isolation-ht89tqrc.js} +40 -40
  86. package/dist/full-auto/evidence-names.d.ts +24 -0
  87. package/dist/full-auto/oversight.d.ts +0 -1
  88. package/dist/full-auto/state.d.ts +35 -0
  89. package/dist/index.js +22 -22
  90. package/package.json +1 -1
  91. package/dist/cli/curator-llm-factory-30n2fnef.js +0 -82
  92. package/dist/cli/guardrail-explain-38hmb1s9.js +0 -83
@@ -8,14 +8,14 @@ import {
8
8
  protectedRoots,
9
9
  redactDecisionLineForArchive,
10
10
  stableCanonicalStringify
11
- } from "./index-yacpp9jq.js";
11
+ } from "./index-w5p9crxx.js";
12
12
  import {
13
13
  detectStraySwarmDirs,
14
14
  readDoctorArtifact,
15
15
  removeStraySwarmDir,
16
16
  resolvePlanParallelizationFlag,
17
17
  runConfigDoctor
18
- } from "./index-ntyc39rv.js";
18
+ } from "./index-cjekszvy.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-tr6kaa6q.js";
30
+ } from "./index-1kd2cbcz.js";
31
31
  import {
32
32
  JAVA_SYMBOL_GRAMMAR,
33
33
  LANGUAGE_REGISTRY,
@@ -48,7 +48,7 @@ import {
48
48
  runEvaluation,
49
49
  runExternalTool,
50
50
  withDisposableWorktree
51
- } from "./index-vx59q2ex.js";
51
+ } from "./index-jc2ndtdt.js";
52
52
  import {
53
53
  EvaluationTaskV1Schema,
54
54
  GateAuditManifestV1Schema,
@@ -65,7 +65,7 @@ import {
65
65
  saveGateAuditResult,
66
66
  savePromotionDecision,
67
67
  saveTaskSetSnapshot
68
- } from "./index-75bm071p.js";
68
+ } from "./index-z11watrb.js";
69
69
  import {
70
70
  canonicalHash,
71
71
  canonicalJson,
@@ -81,7 +81,7 @@ import {
81
81
  alreadyCuratedThisGeneration,
82
82
  claimNextScanBatch,
83
83
  resolveCohortId
84
- } from "./index-4vgvybav.js";
84
+ } from "./index-f1wqew85.js";
85
85
  import {
86
86
  CURATOR_CONSOLIDATION_PROMPT,
87
87
  CURATOR_INIT_PROMPT,
@@ -100,13 +100,13 @@ import {
100
100
  getGroupCommitWriter,
101
101
  importLegacyJsonl,
102
102
  readPriorDriftReports
103
- } from "./index-6qtgyzw2.js";
103
+ } from "./index-3jn6155r.js";
104
104
  import {
105
105
  assertNoUnsettledCoderDispatch,
106
106
  listCoderSettlementWalStates,
107
107
  recoverCoderSettlement,
108
108
  recoverStaleCoderSettlements
109
- } from "./index-sh7se0x5.js";
109
+ } from "./index-ar33mkxc.js";
110
110
  import {
111
111
  BUNDLED_PROJECT_SKILL_ROOT,
112
112
  DEFAULT_SKILL_MIN_CONFIDENCE,
@@ -127,11 +127,11 @@ import {
127
127
  retireSkill,
128
128
  selectCandidateEntries,
129
129
  syncBundledProjectSkillsIfMissingAsync
130
- } from "./index-fm0yan3t.js";
130
+ } from "./index-4ak3ewt2.js";
131
131
  import {
132
132
  buildEscalationBriefing,
133
133
  readRecentEscalations
134
- } from "./index-8zs4v02d.js";
134
+ } from "./index-n7vy4gb3.js";
135
135
  import {
136
136
  parsePorcelainV2Snapshot,
137
137
  resolveCommitCountSince,
@@ -159,7 +159,7 @@ import {
159
159
  resolveRemoteUrlIdentity,
160
160
  resolveRemoteUrlIdentityAsync,
161
161
  switchPrFeedbackTrackingCandidateAsync
162
- } from "./index-qwrx78m5.js";
162
+ } from "./index-kaqdzhj3.js";
163
163
  import {
164
164
  buildCorrelationId,
165
165
  buildIssueUrl,
@@ -180,12 +180,12 @@ import {
180
180
  sweepStale,
181
181
  unsubscribe,
182
182
  updateSnapshot
183
- } from "./index-d74wbpqc.js";
183
+ } from "./index-ykaaejka.js";
184
184
  import {
185
185
  WORKTREE_LIFECYCLE_LOCK_FILE,
186
186
  recordWorktreeProvisioningOwner,
187
187
  removeWorktreeProvisioningOwner
188
- } from "./index-jc0jxg7y.js";
188
+ } from "./index-f6exny9m.js";
189
189
  import {
190
190
  getLanguageForExtension
191
191
  } from "./index-pt7h91zc.js";
@@ -211,7 +211,7 @@ import {
211
211
  resolveWorkingDirectory,
212
212
  swarmOverwriteCandidates,
213
213
  trackedDirtyCandidates
214
- } from "./index-d3p96wkj.js";
214
+ } from "./index-85npnq5t.js";
215
215
  import {
216
216
  MAX_TRANSIENT_RETRIES,
217
217
  PlanRecoverySupersededError,
@@ -238,7 +238,7 @@ import {
238
238
  transientBackoff,
239
239
  updateTaskStatus,
240
240
  withPlanLifecycleLock
241
- } from "./index-p8kv9hh6.js";
241
+ } from "./index-03ng9y76.js";
242
242
  import {
243
243
  containsControlChars,
244
244
  containsPathTraversal,
@@ -254,7 +254,7 @@ import {
254
254
  resolveSpeckitProjection,
255
255
  validateSpeckit,
256
256
  writeProjectedSpecSync
257
- } from "./index-195msz9x.js";
257
+ } from "./index-vn8phy76.js";
258
258
  import {
259
259
  clearWorktreeMergeStatus,
260
260
  getAllWorktreeMergeFailures,
@@ -285,7 +285,7 @@ import {
285
285
  transitionTaskWorkflowEvidenceWithStatus,
286
286
  withTaskEvidenceTransaction,
287
287
  writeWorkflowWalFile
288
- } from "./index-1e4s8cyt.js";
288
+ } from "./index-8f0j6kf2.js";
289
289
  import {
290
290
  isPathUnderSwarmWorktreeBase,
291
291
  listLiveLaneOwners,
@@ -294,7 +294,7 @@ import {
294
294
  recordLiveLaneOwner,
295
295
  removeWorktree,
296
296
  resolveWorktreeBaseDir
297
- } from "./index-6kckcdd7.js";
297
+ } from "./index-1tgkj4mf.js";
298
298
  import {
299
299
  DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
300
300
  DELEGATION_COMPACTION_HIGH_WATER_BYTES,
@@ -328,7 +328,7 @@ import {
328
328
  scanBackgroundCoderReservationsForAdmission,
329
329
  scanDelegationsForRecovery,
330
330
  sweepStaleDelegations
331
- } from "./index-dka1ra21.js";
331
+ } from "./index-0cdkb7e8.js";
332
332
  import {
333
333
  MAX_EVENT_LOG_ENTRIES,
334
334
  _internals,
@@ -340,7 +340,7 @@ import {
340
340
  recordHiveKnowledgeEvent,
341
341
  recordKnowledgeEvent,
342
342
  resolveKnowledgeEventsPath
343
- } from "./index-rqheyf9e.js";
343
+ } from "./index-p746x44z.js";
344
344
  import {
345
345
  commitDisplayedMembership,
346
346
  commitEmptyRetrieval,
@@ -353,7 +353,7 @@ import {
353
353
  queryLiveMemberships,
354
354
  reconcilePhaseClose,
355
355
  recordPhaseCloseIntent
356
- } from "./index-wftdsx38.js";
356
+ } from "./index-98zfmfnn.js";
357
357
  import {
358
358
  sanitizeContextText
359
359
  } from "./index-m9zzj4ee.js";
@@ -364,7 +364,7 @@ import {
364
364
  readSwarmFileAsync,
365
365
  safeHook,
366
366
  validateSwarmPath
367
- } from "./index-4czf0es9.js";
367
+ } from "./index-7hr5m7yp.js";
368
368
  import {
369
369
  bunFile,
370
370
  bunSpawn,
@@ -384,18 +384,18 @@ import {
384
384
  validateActionableFields,
385
385
  validateLesson,
386
386
  validateSkillPath
387
- } from "./index-3034m1wv.js";
387
+ } from "./index-bjh6cw86.js";
388
388
  import {
389
389
  MAX_CURATION_PROPOSALS,
390
390
  authorizeCuration,
391
391
  buildConfigFingerprintInput
392
- } from "./index-2ajapc0r.js";
392
+ } from "./index-hq7mfqe5.js";
393
393
  import {
394
394
  cohortConfigFingerprint
395
395
  } from "./index-rtry5xyf.js";
396
396
  import {
397
397
  resolveWorktreeIsolationConfig
398
- } from "./index-j7pqzxyq.js";
398
+ } from "./index-br33a6v7.js";
399
399
  import {
400
400
  RetrospectiveEvidenceSchema
401
401
  } from "./index-kbkk7vnh.js";
@@ -407,7 +407,7 @@ import {
407
407
  clearScopeBindings,
408
408
  readAuthoritativeScopeBindingSet,
409
409
  readDeclaredScopeFilesFromBindings
410
- } from "./index-53me7h10.js";
410
+ } from "./index-vktygb4k.js";
411
411
  import {
412
412
  clearPlanLedgerForReset,
413
413
  computePlanStructureHash,
@@ -423,7 +423,7 @@ import {
423
423
  replayFromLedgerWithStatus,
424
424
  resolvePlanningProfile,
425
425
  takeSnapshotEvent
426
- } from "./index-yctaaj1k.js";
426
+ } from "./index-dmnvgc03.js";
427
427
  import {
428
428
  CORE_EVENT_LOCKED,
429
429
  appendCoreEventSync,
@@ -433,7 +433,7 @@ import {
433
433
  hasSpecDriftAuditEvent,
434
434
  hasTaskRepairAuditEvent,
435
435
  readCoreEvents
436
- } from "./index-ge4hk20b.js";
436
+ } from "./index-dmdg2zay.js";
437
437
  import {
438
438
  DEFAULT_QA_GATES,
439
439
  computeProfileHash,
@@ -441,7 +441,7 @@ import {
441
441
  getEffectiveGates,
442
442
  getProfileLookupForIdentity,
443
443
  setGatesForIdentity
444
- } from "./index-103gsfn1.js";
444
+ } from "./index-x1eh2636.js";
445
445
  import {
446
446
  MAX_COORDINATION_STATE_LIST_ROWS,
447
447
  deleteCoordinationImports,
@@ -452,7 +452,7 @@ import {
452
452
  listCoordinationStates,
453
453
  transitionCoordinationState,
454
454
  withCoordinationTransaction
455
- } from "./index-v09x4k5h.js";
455
+ } from "./index-ntda6tje.js";
456
456
  import {
457
457
  DURABILITY_CLASSES,
458
458
  closeAllProjectDbs,
@@ -461,7 +461,7 @@ import {
461
461
  projectDbExists,
462
462
  projectDbPath,
463
463
  withImmediateTransaction
464
- } from "./index-ww91zjzk.js";
464
+ } from "./index-9tvjwv01.js";
465
465
  import {
466
466
  canonicalExistingFilesystemPath,
467
467
  canonicalPathForFutureIo,
@@ -481,7 +481,7 @@ import {
481
481
  observeModelLimitResolution,
482
482
  observeStoreHealth,
483
483
  readLearningHealth
484
- } from "./index-8tf5tewn.js";
484
+ } from "./index-j9swvmt3.js";
485
485
  import {
486
486
  appendKnowledge,
487
487
  appendRejectedLesson,
@@ -512,7 +512,7 @@ import {
512
512
  transactFile,
513
513
  transactKnowledge,
514
514
  wordBigrams
515
- } from "./index-bqqyxmpk.js";
515
+ } from "./index-d95b3yce.js";
516
516
  import {
517
517
  readTailJsonl,
518
518
  readTailJsonlDetailed,
@@ -533,10 +533,10 @@ import {
533
533
  resolveLinkDir,
534
534
  sanitizeLinkId,
535
535
  writeLinkPointer
536
- } from "./index-jkz10gm7.js";
536
+ } from "./index-wx43mc8h.js";
537
537
  import {
538
538
  atomicWriteFile
539
- } from "./index-gyhj562n.js";
539
+ } from "./index-5nwfz9bn.js";
540
540
  import {
541
541
  withEvidenceLock
542
542
  } from "./index-4zran0jk.js";
@@ -579,7 +579,7 @@ import {
579
579
  matchTempGrammar,
580
580
  parseTargetBasename,
581
581
  resetSwarmArtifactCache
582
- } from "./index-1d51nz8d.js";
582
+ } from "./index-p2tqzwh6.js";
583
583
  import {
584
584
  PlanSchema,
585
585
  TaskStatusSchema,
@@ -593,7 +593,7 @@ import {
593
593
  loadGateOverrides,
594
594
  loadPluginConfig,
595
595
  loadPluginConfigWithMeta
596
- } from "./index-6kf62j82.js";
596
+ } from "./index-9qbn3chx.js";
597
597
  import {
598
598
  addDeferredWarning,
599
599
  advisoryWarn,
@@ -625,7 +625,7 @@ import {
625
625
  resolveContextWindow,
626
626
  resolveGeneratedAgentRole,
627
627
  stripKnownSwarmPrefix
628
- } from "./index-gmmz119k.js";
628
+ } from "./index-jevq7a7b.js";
629
629
  import {
630
630
  AGENT_TOOL_MAP,
631
631
  ALL_AGENT_NAMES,
@@ -3414,7 +3414,7 @@ async function importLegacyPrWorkflowGateStateIfNeeded(directory, sessionID, all
3414
3414
  return null;
3415
3415
  throw error2;
3416
3416
  }
3417
- const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-h4s5w5y0.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
3417
+ const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-cy24tc3c.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
3418
3418
  if (!legacy)
3419
3419
  return null;
3420
3420
  const namespace = workflowGateStateCoordinationNamespace(sessionID);
@@ -3501,7 +3501,7 @@ async function deleteStateWhileLocked(directory, sessionID, options = {}) {
3501
3501
  let recoveryState = null;
3502
3502
  if (!currentAuthoritative) {
3503
3503
  if (options.allowSalvagedRead) {
3504
- const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-h4s5w5y0.js");
3504
+ const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-cy24tc3c.js");
3505
3505
  recoveryState = (await readPrWorkflowGateStateForRecovery(directory, normalizedSessionID))?.state ?? null;
3506
3506
  }
3507
3507
  if (!recoveryState) {
@@ -15074,7 +15074,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
15074
15074
  return extracted === expectedSessionId;
15075
15075
  }
15076
15076
  async function inspectStandardWorktreeCollisionOwnership(identity) {
15077
- const collisionOwnership = await import("./worktree-collision-ownership-0d8xf1d8.js");
15077
+ const collisionOwnership = await import("./worktree-collision-ownership-fk6spbrf.js");
15078
15078
  return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
15079
15079
  }
15080
15080
  async function runRecoveryGit(directory, args, timeoutMs = 15000) {
@@ -15500,7 +15500,7 @@ async function precreateStandardWorktreeSession(args) {
15500
15500
  const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
15501
15501
  if (laneProfile) {
15502
15502
  try {
15503
- const { writeLaneProfileToDiskReal } = await import("./core-qdn60dm0.js");
15503
+ const { writeLaneProfileToDiskReal } = await import("./core-zx4az38t.js");
15504
15504
  await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
15505
15505
  } catch {}
15506
15506
  }
@@ -16479,7 +16479,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
16479
16479
  }
16480
16480
  clearWorktreeMergeStatus(statusKey);
16481
16481
  try {
16482
- const { removeLaneProfileFromDiskReal } = await import("./core-qdn60dm0.js");
16482
+ const { removeLaneProfileFromDiskReal } = await import("./core-zx4az38t.js");
16483
16483
  await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
16484
16484
  } catch {}
16485
16485
  const state = serializationStateBySessionID.get(dispatch.parentSessionID);
@@ -24046,7 +24046,7 @@ function clearCriticalShownIds(sessionID) {
24046
24046
  async function rehydratePrSubscriptions(sessionID, directory) {
24047
24047
  const map = new Map;
24048
24048
  try {
24049
- const { listActive: listActive2 } = await import("./pr-subscriptions-2mngc0jg.js");
24049
+ const { listActive: listActive2 } = await import("./pr-subscriptions-2vp2sxjb.js");
24050
24050
  const records = await listActive2(directory);
24051
24051
  for (const record of records) {
24052
24052
  if (record.sessionID !== sessionID)
@@ -40593,9 +40593,9 @@ function hashContent(content) {
40593
40593
  return createHash27("sha1").update(content).digest("hex");
40594
40594
  }
40595
40595
  async function loadConfigForPolicyCurator(directory) {
40596
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-cp8sqp1b.js");
40596
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-4s2nnpqt.js");
40597
40597
  try {
40598
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-wsab75et.js");
40598
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-dd258pfn.js");
40599
40599
  const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
40600
40600
  return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
40601
40601
  } catch {
@@ -43653,7 +43653,7 @@ async function resolveCuratorLLMDelegate(directory, mode, sessionId) {
43653
43653
  const seam = _internals38.createCuratorLLMDelegate;
43654
43654
  if (seam)
43655
43655
  return seam(directory, mode, sessionId);
43656
- const { createCuratorLLMDelegate } = await import("./curator-llm-factory-30n2fnef.js");
43656
+ const { createCuratorLLMDelegate } = await import("./curator-llm-factory-gdedzs6k.js");
43657
43657
  return createCuratorLLMDelegate(directory, mode, sessionId);
43658
43658
  }
43659
43659
  async function reconcileCloseTerminalStateForPlan(directory, targetPlan, options) {
@@ -44048,7 +44048,7 @@ async function runFinalizeStage(ctx) {
44048
44048
  }
44049
44049
  }
44050
44050
  try {
44051
- const { CuratorConfigSchema: CCS } = await import("./schema-cp8sqp1b.js");
44051
+ const { CuratorConfigSchema: CCS } = await import("./schema-4s2nnpqt.js");
44052
44052
  const { config: pmLoadedConfig } = _internals38.loadPluginConfigWithMeta(ctx.directory);
44053
44053
  const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
44054
44054
  if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
@@ -44082,6 +44082,11 @@ var import_proper_lockfile4 = __toESM(require_proper_lockfile(), 1);
44082
44082
  import * as fs31 from "fs";
44083
44083
  import * as path51 from "path";
44084
44084
  init_logger();
44085
+
44086
+ // src/full-auto/evidence-names.ts
44087
+ var FULL_AUTO_OVERSIGHT_EVIDENCE_FILE_RE = /^full-auto-(\d+)\.json$/;
44088
+
44089
+ // src/full-auto/state.ts
44085
44090
  var lockfile4 = import_proper_lockfile4.default;
44086
44091
  var STATE_FILE2 = "full-auto-state.json";
44087
44092
  var STATE_LOCK_STALE_MS = 5000;
@@ -44484,6 +44489,47 @@ function isFullAutoRunActive(directory, sessionID) {
44484
44489
  const state = loadFullAutoRunState(directory, sessionID);
44485
44490
  return state?.status === "running";
44486
44491
  }
44492
+ function maxPersistedOversightEvidenceSequence(directory) {
44493
+ const evidenceRoot = validateSwarmPath(directory, "evidence");
44494
+ let phaseDirs;
44495
+ try {
44496
+ if (!fs31.existsSync(evidenceRoot))
44497
+ return 0;
44498
+ if (!fs31.statSync(evidenceRoot).isDirectory())
44499
+ return 0;
44500
+ phaseDirs = fs31.readdirSync(evidenceRoot, { withFileTypes: true });
44501
+ } catch (error2) {
44502
+ const msg = error2 instanceof Error ? error2.message : String(error2);
44503
+ error(`[full-auto/state] Failed to scan evidence root for sequence catch-up: ${msg}`);
44504
+ throw new Error("Full-Auto oversight evidence scan failed for sequence allocation");
44505
+ }
44506
+ let max = 0;
44507
+ for (const entry of phaseDirs) {
44508
+ if (!/^\d+$/.test(entry.name))
44509
+ continue;
44510
+ if (!entry.isDirectory())
44511
+ continue;
44512
+ let files;
44513
+ try {
44514
+ const phaseDir = validateSwarmPath(directory, path51.posix.join("evidence", entry.name));
44515
+ files = fs31.readdirSync(phaseDir);
44516
+ } catch (error2) {
44517
+ const msg = error2 instanceof Error ? error2.message : String(error2);
44518
+ error(`[full-auto/state] Failed to scan evidence phase dir ${entry.name} for sequence catch-up: ${msg}`);
44519
+ throw new Error("Full-Auto oversight evidence scan failed for sequence allocation");
44520
+ }
44521
+ for (const file of files) {
44522
+ const match = file.match(FULL_AUTO_OVERSIGHT_EVIDENCE_FILE_RE);
44523
+ if (!match)
44524
+ continue;
44525
+ const sequence = Number(match[1]);
44526
+ if (Number.isSafeInteger(sequence) && sequence > max) {
44527
+ max = sequence;
44528
+ }
44529
+ }
44530
+ }
44531
+ return max;
44532
+ }
44487
44533
  function recordFullAutoRecoveryProbe(directory, sessionID, probe) {
44488
44534
  return withStateLock(directory, () => {
44489
44535
  const persisted = _internals48.readPersisted(directory);
@@ -44497,7 +44543,12 @@ function recordFullAutoRecoveryProbe(directory, sessionID, probe) {
44497
44543
  return state;
44498
44544
  });
44499
44545
  }
44500
- var _internals48 = { readPersisted: readPersistedForMutation, writePersisted, lockfile: lockfile4 };
44546
+ var _internals48 = {
44547
+ readPersisted: readPersistedForMutation,
44548
+ writePersisted,
44549
+ lockfile: lockfile4,
44550
+ scanOversightEvidenceSequence: maxPersistedOversightEvidenceSequence
44551
+ };
44501
44552
 
44502
44553
  // src/retention/sweep.ts
44503
44554
  import * as fs34 from "fs";
@@ -45288,7 +45339,7 @@ function isTerminal(state) {
45288
45339
  import {
45289
45340
  linkSync,
45290
45341
  mkdirSync as mkdirSync14,
45291
- readdirSync as readdirSync5,
45342
+ readdirSync as readdirSync6,
45292
45343
  rmSync as rmSync6,
45293
45344
  statSync as statSync17,
45294
45345
  unlinkSync as unlinkSync11
@@ -45339,7 +45390,7 @@ async function listStaleSummaryIds(directory, retentionDays, options) {
45339
45390
  const summariesBasePath = validateSwarmPath(directory, "summaries");
45340
45391
  let retentionFiles = [];
45341
45392
  try {
45342
- retentionFiles = readdirSync5(summariesBasePath).filter((name) => name.endsWith(".json") && /^S.+$/.test(name.slice(0, -5)));
45393
+ retentionFiles = readdirSync6(summariesBasePath).filter((name) => name.endsWith(".json") && /^S.+$/.test(name.slice(0, -5)));
45343
45394
  } catch {
45344
45395
  retentionFiles = [];
45345
45396
  }
@@ -46234,7 +46285,7 @@ function serializeAgentSession(s) {
46234
46285
  }
46235
46286
  async function writeSnapshot(directory, state) {
46236
46287
  try {
46237
- const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-9gvgq52n.js");
46288
+ const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-v50k6v2v.js");
46238
46289
  await ensureSnapshotCoordinationReady(directory);
46239
46290
  const snapshot = {
46240
46291
  version: 3,
@@ -48100,7 +48151,7 @@ function emitHealth(directory, payload) {
48100
48151
  }
48101
48152
 
48102
48153
  // src/hooks/curator-postmortem.ts
48103
- import { existsSync as existsSync34, readdirSync as readdirSync8, readFileSync as readFileSync26 } from "fs";
48154
+ import { existsSync as existsSync34, readdirSync as readdirSync9, readFileSync as readFileSync26 } from "fs";
48104
48155
  import * as path64 from "path";
48105
48156
 
48106
48157
  // src/hooks/curator.ts
@@ -49244,7 +49295,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
49244
49295
  };
49245
49296
  }
49246
49297
  async function sweepActiveNearDuplicates(directory, options = {}) {
49247
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-wsab75et.js");
49298
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-dd258pfn.js");
49248
49299
  const { config } = loadPluginConfigWithMeta2(directory);
49249
49300
  const sweepConfig = config.learning?.dedup_sweep;
49250
49301
  if (sweepConfig?.enabled === false)
@@ -50368,7 +50419,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
50368
50419
  }
50369
50420
  if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
50370
50421
  try {
50371
- const skillModule = await import("./skill-generator-f2j1jnqf.js");
50422
+ const skillModule = await import("./skill-generator-fqh79jr7.js");
50372
50423
  for (const cand of skillCandidates) {
50373
50424
  if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
50374
50425
  continue;
@@ -50840,7 +50891,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
50840
50891
  } catch {}
50841
50892
  }
50842
50893
  if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
50843
- const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-2c4svh7n.js");
50894
+ const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-c65r55bv.js");
50844
50895
  for (const { id } of contradictedEntries) {
50845
50896
  try {
50846
50897
  await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
@@ -51398,7 +51449,7 @@ function collectRetrospectives(directory) {
51398
51449
  try {
51399
51450
  if (!existsSync34(evidenceDir))
51400
51451
  return results;
51401
- const retroDirs = readdirSync8(evidenceDir, { withFileTypes: true }).filter((e) => e.isDirectory() && e.name.startsWith("retro-")).slice(0, MAX_RETROSPECTIVES);
51452
+ const retroDirs = readdirSync9(evidenceDir, { withFileTypes: true }).filter((e) => e.isDirectory() && e.name.startsWith("retro-")).slice(0, MAX_RETROSPECTIVES);
51402
51453
  for (const entry of retroDirs) {
51403
51454
  const retroPath = path64.join(evidenceDir, entry.name, "evidence.json");
51404
51455
  if (existsSync34(retroPath)) {
@@ -51445,7 +51496,7 @@ function collectPendingProposals(directory) {
51445
51496
  const proposalsDir = path64.join(directory, ".swarm", "skills", "proposals");
51446
51497
  try {
51447
51498
  if (existsSync34(proposalsDir)) {
51448
- const proposalFiles = readdirSync8(proposalsDir).filter((e) => e.endsWith(".md") || e.endsWith(".json")).slice(0, MAX_PROPOSALS);
51499
+ const proposalFiles = readdirSync9(proposalsDir).filter((e) => e.endsWith(".md") || e.endsWith(".json")).slice(0, MAX_PROPOSALS);
51449
51500
  for (const entry of proposalFiles) {
51450
51501
  try {
51451
51502
  results.push({
@@ -51672,7 +51723,7 @@ async function runCuratorPostMortem(directory, options = {}) {
51672
51723
  warnings.push("Failed to collect knowledge summary.");
51673
51724
  }
51674
51725
  try {
51675
- const { getScanStatus } = await import("./scan-cursor-385k9dkp.js");
51726
+ const { getScanStatus } = await import("./scan-cursor-3hyz0qnh.js");
51676
51727
  const scanStatus = await getScanStatus(directory);
51677
51728
  if (scanStatus.remaining_estimate > 0) {
51678
51729
  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.`);
@@ -51844,9 +51895,9 @@ var _internals56 = {
51844
51895
  verifyPostMortemKnowledgeActions,
51845
51896
  repairPostMortemActions,
51846
51897
  loadDefaultKnowledgeConfig: async (directory) => {
51847
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-cp8sqp1b.js");
51898
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-4s2nnpqt.js");
51848
51899
  try {
51849
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-wsab75et.js");
51900
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-dd258pfn.js");
51850
51901
  const loaded = loadPluginConfigWithMeta2(directory);
51851
51902
  return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
51852
51903
  } catch {
@@ -51854,11 +51905,11 @@ var _internals56 = {
51854
51905
  }
51855
51906
  },
51856
51907
  applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
51857
- const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-8yqmmn5w.js");
51908
+ const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-s08eqma1.js");
51858
51909
  return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
51859
51910
  },
51860
51911
  checkHivePromotions: async (entries2, knowledgeConfig, directory) => {
51861
- const { checkHivePromotions } = await import("./hive-promoter-5naewxf9.js");
51912
+ const { checkHivePromotions } = await import("./hive-promoter-1jb0t5g2.js");
51862
51913
  return checkHivePromotions(entries2, knowledgeConfig, directory);
51863
51914
  },
51864
51915
  applyProposalTriage: async (directory, triage) => {
@@ -51867,7 +51918,7 @@ var _internals56 = {
51867
51918
  activateProposal,
51868
51919
  listSkills: listSkills2,
51869
51920
  sanitizeSlug
51870
- } = await import("./skill-generator-f2j1jnqf.js");
51921
+ } = await import("./skill-generator-fqh79jr7.js");
51871
51922
  const result = {
51872
51923
  approved: [],
51873
51924
  rejected: [],
@@ -51909,7 +51960,7 @@ var _internals56 = {
51909
51960
  return result;
51910
51961
  },
51911
51962
  readPriorDriftReports: async (directory) => {
51912
- const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-n4t27md5.js");
51963
+ const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-0ne6gnj0.js");
51913
51964
  return readPriorDriftReports2(directory);
51914
51965
  },
51915
51966
  readSwarmKnowledge: (directory) => readKnowledge(resolveSwarmKnowledgePath(directory))
@@ -61712,9 +61763,9 @@ var _internals66 = {
61712
61763
  loadPluginConfigWithMeta,
61713
61764
  loadCuratorDeps: async () => {
61714
61765
  const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate }] = await Promise.all([
61715
- import("./schema-cp8sqp1b.js"),
61716
- import("./curator-8yqmmn5w.js"),
61717
- import("./curator-llm-factory-30n2fnef.js")
61766
+ import("./schema-4s2nnpqt.js"),
61767
+ import("./curator-s08eqma1.js"),
61768
+ import("./curator-llm-factory-gdedzs6k.js")
61718
61769
  ]);
61719
61770
  return { CuratorConfigSchema, curator, createCuratorLLMDelegate };
61720
61771
  }
@@ -63242,7 +63293,7 @@ ${USAGE10}`;
63242
63293
  // src/services/diagnose-service.ts
63243
63294
  init_package();
63244
63295
  import * as child_process4 from "child_process";
63245
- import { existsSync as existsSync46, readdirSync as readdirSync12, readFileSync as readFileSync37, statSync as statSync25 } from "fs";
63296
+ import { existsSync as existsSync46, readdirSync as readdirSync13, readFileSync as readFileSync37, statSync as statSync25 } from "fs";
63246
63297
  import * as path85 from "path";
63247
63298
  import { fileURLToPath as fileURLToPath2 } from "url";
63248
63299
 
@@ -64112,7 +64163,7 @@ async function computeCurationDiagnostics(directory, entries2) {
64112
64163
  let scanCompleted = false;
64113
64164
  let scanRemaining = 0;
64114
64165
  try {
64115
- const { getScanStatus } = await import("./scan-cursor-385k9dkp.js");
64166
+ const { getScanStatus } = await import("./scan-cursor-3hyz0qnh.js");
64116
64167
  const status = await getScanStatus(directory);
64117
64168
  scanGeneration = status.generation;
64118
64169
  scanCompleted = status.completed;
@@ -64120,19 +64171,19 @@ async function computeCurationDiagnostics(directory, entries2) {
64120
64171
  } catch {}
64121
64172
  let configMatch = null;
64122
64173
  try {
64123
- const { isLinked: isLinked2 } = await import("./knowledge-link-r9nx1eaj.js");
64174
+ const { isLinked: isLinked2 } = await import("./knowledge-link-kgt3zx0c.js");
64124
64175
  if (isLinked2(directory)) {
64125
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-cp8sqp1b.js");
64176
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-4s2nnpqt.js");
64126
64177
  let config;
64127
64178
  try {
64128
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-wsab75et.js");
64179
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-dd258pfn.js");
64129
64180
  const loaded = loadPluginConfigWithMeta2(directory);
64130
64181
  config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
64131
64182
  } catch {
64132
64183
  config = KnowledgeConfigSchema2.parse({});
64133
64184
  }
64134
64185
  const { cohortConfigFingerprint: cohortConfigFingerprint2 } = await import("./config-fingerprint-v22xh5a2.js");
64135
- const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-2rdbwc6a.js");
64186
+ const { buildConfigFingerprintInput: buildConfigFingerprintInput2, readCohortConfigFingerprint } = await import("./curation-policy-nxcx99yp.js");
64136
64187
  const currentFp = cohortConfigFingerprint2(buildConfigFingerprintInput2(config));
64137
64188
  const cohortFp = await readCohortConfigFingerprint(directory);
64138
64189
  configMatch = cohortFp === null ? null : currentFp === cohortFp;
@@ -64551,7 +64602,7 @@ async function checkPlanSync(directory, plan) {
64551
64602
  }
64552
64603
  async function checkConfigBackups(directory) {
64553
64604
  try {
64554
- const files = readdirSync12(directory);
64605
+ const files = readdirSync13(directory);
64555
64606
  const backupCount = files.filter((f) => /\.opencode-swarm\.yaml\.bak/.test(f)).length;
64556
64607
  if (backupCount <= 5) {
64557
64608
  return {
@@ -65236,7 +65287,7 @@ async function getDiagnoseData(directory, sessionID) {
65236
65287
  checks.push(await checkResidueInventory(directory));
65237
65288
  try {
65238
65289
  const evidenceDir = path85.join(directory, ".swarm", "evidence");
65239
- const snapshotFiles = existsSync46(evidenceDir) ? readdirSync12(evidenceDir).filter((f) => f.startsWith("agent-tools-") && f.endsWith(".json")) : [];
65290
+ const snapshotFiles = existsSync46(evidenceDir) ? readdirSync13(evidenceDir).filter((f) => f.startsWith("agent-tools-") && f.endsWith(".json")) : [];
65240
65291
  if (snapshotFiles.length > 0) {
65241
65292
  const latest = snapshotFiles.sort().pop();
65242
65293
  checks.push({
@@ -65581,7 +65632,7 @@ async function handleDoctorCommand(directory, args) {
65581
65632
  const result = runConfigDoctor(config, directory, planParallelizationEnabled);
65582
65633
  let output;
65583
65634
  if (enableAutoFix && result.hasAutoFixableIssues) {
65584
- const { runConfigDoctorWithFixes } = await import("./config-doctor-0pjjr594.js");
65635
+ const { runConfigDoctorWithFixes } = await import("./config-doctor-0pqexbab.js");
65585
65636
  const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
65586
65637
  applyLossy: true
65587
65638
  });
@@ -65619,7 +65670,7 @@ async function handleDoctorCommand(directory, args) {
65619
65670
  `;
65620
65671
  }
65621
65672
  try {
65622
- const { runModelPreflight } = await import("./model-preflight-jbg35f6e.js");
65673
+ const { runModelPreflight } = await import("./model-preflight-dh9dadg8.js");
65623
65674
  const preflight = await runModelPreflight(config, swarmState.opencodeClient, { generatedAgentNames: swarmState.generatedAgentNames });
65624
65675
  const missingSelection = preflight.resolutions.filter((resolution) => resolution.status === "missing-selection");
65625
65676
  const unresolved = preflight.catalogAvailable ? preflight.resolutions.filter((resolution) => resolution.status === "unresolved") : [];
@@ -65653,7 +65704,7 @@ async function handleDoctorCommand(directory, args) {
65653
65704
  }
65654
65705
  } catch {}
65655
65706
  try {
65656
- const { renderKnowledgeReceiptPhaseIdSection } = await import("./doctor-knowledge-receipt-phase-id-vk9c6t3k.js");
65707
+ const { renderKnowledgeReceiptPhaseIdSection } = await import("./doctor-knowledge-receipt-phase-id-kpzaepq8.js");
65657
65708
  output += await renderKnowledgeReceiptPhaseIdSection(directory, enableAutoFix);
65658
65709
  } catch {}
65659
65710
  const strayDirs = detectStraySwarmDirs(directory);
@@ -66550,7 +66601,7 @@ async function handleEvidenceCommand(directory, args) {
66550
66601
  return formatTaskEvidenceMarkdown(evidenceData);
66551
66602
  }
66552
66603
  async function handleEvidenceSummaryCommand(directory) {
66553
- const { buildEvidenceSummary } = await import("./evidence-summary-service-xpdx8se9.js");
66604
+ const { buildEvidenceSummary } = await import("./evidence-summary-service-xadab4ym.js");
66554
66605
  const artifact = await buildEvidenceSummary(directory);
66555
66606
  if (!artifact) {
66556
66607
  return "No plan found. Run `/swarm plan` to check plan status.";
@@ -67463,7 +67514,6 @@ ${line}`;
67463
67514
  }
67464
67515
 
67465
67516
  // src/full-auto/oversight.ts
67466
- var oversightSequenceCounter = 0;
67467
67517
  function remainingMs(deadlineMs) {
67468
67518
  return Math.max(0, deadlineMs - _internals73.now());
67469
67519
  }
@@ -67497,9 +67547,6 @@ async function cleanupEphemeralSessionWithinBudget(client, sessionId, deadlineMs
67497
67547
  }
67498
67548
  }
67499
67549
  var _internals73 = {
67500
- resetSequence: () => {
67501
- oversightSequenceCounter = 0;
67502
- },
67503
67550
  now: () => performance.now(),
67504
67551
  sleep,
67505
67552
  setTimer: setTimeout,
@@ -77476,7 +77523,7 @@ async function runSubstrateEvaluation(args) {
77476
77523
  }
77477
77524
 
77478
77525
  // src/services/harness-optimizer/lineage.ts
77479
- import { existsSync as existsSync55, mkdirSync as mkdirSync35, readdirSync as readdirSync15, readFileSync as readFileSync50 } from "fs";
77526
+ import { existsSync as existsSync55, mkdirSync as mkdirSync35, readdirSync as readdirSync16, readFileSync as readFileSync50 } from "fs";
77480
77527
  import * as path102 from "path";
77481
77528
  function lineageRoundDir(projectRoot, roundId) {
77482
77529
  return path102.join(projectRoot, ".swarm", "evolution", "harness-opt", "rounds", roundId);
@@ -77492,7 +77539,7 @@ function listHarnessOptLineage(projectRoot) {
77492
77539
  if (!existsSync55(roundsRoot))
77493
77540
  return [];
77494
77541
  const records = [];
77495
- for (const entry of readdirSync15(roundsRoot)) {
77542
+ for (const entry of readdirSync16(roundsRoot)) {
77496
77543
  const recordPath = path102.join(roundsRoot, entry, "record.json");
77497
77544
  if (!existsSync55(recordPath))
77498
77545
  continue;
@@ -81082,12 +81129,12 @@ var MIN_MAX_CYCLES = 1;
81082
81129
  var MAX_MAX_CYCLES = 5;
81083
81130
  async function readLatestLoopState(directory) {
81084
81131
  try {
81085
- const { readdirSync: readdirSync16, statSync: statSync32, readFileSync: readFileSync56 } = await import("fs");
81132
+ const { readdirSync: readdirSync17, statSync: statSync32, readFileSync: readFileSync56 } = await import("fs");
81086
81133
  const loopDir = `${directory}/.swarm/loop`;
81087
81134
  let latestMtime = 0;
81088
81135
  let latestPath = null;
81089
81136
  try {
81090
- const entries2 = readdirSync16(loopDir, { withFileTypes: true });
81137
+ const entries2 = readdirSync17(loopDir, { withFileTypes: true });
81091
81138
  for (const entry of entries2) {
81092
81139
  if (!entry.isDirectory())
81093
81140
  continue;
@@ -84746,8 +84793,8 @@ async function migrateMemoryFamily(destRoot, sourceRoot) {
84746
84793
  copyFileSync4(sourceDbPath, path116.join(backupDir, `memory.db.pre-merge-${stamp}`));
84747
84794
  } catch {}
84748
84795
  try {
84749
- const { readdirSync: readdirSync16, unlinkSync: rmFileSync } = await import("fs");
84750
- const backups = readdirSync16(backupDir).filter((f) => f.startsWith("memory.db.pre-merge-")).sort();
84796
+ const { readdirSync: readdirSync17, unlinkSync: rmFileSync } = await import("fs");
84797
+ const backups = readdirSync17(backupDir).filter((f) => f.startsWith("memory.db.pre-merge-")).sort();
84751
84798
  while (backups.length > MAX_BACKUPS) {
84752
84799
  const oldest = backups.shift();
84753
84800
  if (oldest)
@@ -91001,7 +91048,7 @@ function createCuratorLLMDelegate(directory, mode = "init", sessionId) {
91001
91048
  }
91002
91049
  const sdkOpts = signal ? { signal } : {};
91003
91050
  try {
91004
- const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-ywpn0arj.js");
91051
+ const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-9f7y0rym.js");
91005
91052
  const createResult = await client.session.create({
91006
91053
  ...sessionId ? {
91007
91054
  body: {
@@ -93338,7 +93385,7 @@ async function cancelPrFeedbackLoopUnlocked(directory, sessionID, reason) {
93338
93385
  clearedEvents: []
93339
93386
  };
93340
93387
  try {
93341
- const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-h4s5w5y0.js");
93388
+ const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-cy24tc3c.js");
93342
93389
  await cancelPrFeedbackPublication2(directory, sessionID, reason);
93343
93390
  } catch (err) {
93344
93391
  warn(`[pr-feedback-loop] cancelPrFeedbackPublication failed (fail-open): ${err instanceof Error ? err.message : String(err)}`);
@@ -107079,7 +107126,7 @@ async function runValidationWithTransientRetry(input, candidateContent, baseline
107079
107126
  if (!input.dispatcher) {
107080
107127
  throw new Error("no evaluation dispatcher available (cannot run validation)");
107081
107128
  }
107082
- const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-3ynjanks.js");
107129
+ const { createModelEvaluationExecutor: createModelEvaluationExecutor2 } = await import("./runner-zeqpd2c2.js");
107083
107130
  const executor = createModelEvaluationExecutor2(input.dispatcher, input.sessionId);
107084
107131
  const result = await withProtectedSetIntegrity([evalInputRoot, ...protectedRoots(input.directory)], () => _internals128.evaluateCandidateV1({
107085
107132
  projectRoot: input.directory,
@@ -109708,7 +109755,7 @@ function buildDetailedHelp(commandName, entry) {
109708
109755
  async function handleHelpCommand(ctx) {
109709
109756
  const targetCommand = ctx.args.join(" ");
109710
109757
  if (!targetCommand) {
109711
- const { buildHelpText } = await import("./index-a5z8eqs0.js");
109758
+ const { buildHelpText } = await import("./index-txr48a64.js");
109712
109759
  return buildHelpText();
109713
109760
  }
109714
109761
  const tokens = targetCommand.split(/\s+/);
@@ -109722,7 +109769,7 @@ async function handleHelpCommand(ctx) {
109722
109769
  > Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
109723
109770
  }
109724
109771
  const similar = _internals27.findSimilarCommands(targetCommand);
109725
- const { buildHelpText: fullHelp } = await import("./index-a5z8eqs0.js");
109772
+ const { buildHelpText: fullHelp } = await import("./index-txr48a64.js");
109726
109773
  if (similar.length > 0) {
109727
109774
  return `Command '/swarm ${targetCommand}' not found.
109728
109775
 
@@ -110050,7 +110097,7 @@ var COMMAND_REGISTRY = {
110050
110097
  },
110051
110098
  "guardrail explain": {
110052
110099
  handler: async (ctx) => {
110053
- const { handleGuardrailExplain } = await import("./guardrail-explain-38hmb1s9.js");
110100
+ const { handleGuardrailExplain } = await import("./guardrail-explain-enbr5ne9.js");
110054
110101
  return handleGuardrailExplain(ctx.directory, ctx.args);
110055
110102
  },
110056
110103
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -110060,7 +110107,7 @@ var COMMAND_REGISTRY = {
110060
110107
  },
110061
110108
  "guardrail reset": {
110062
110109
  handler: async (ctx) => {
110063
- const { handleGuardrailReset } = await import("./guardrail-reset-3arv6rfs.js");
110110
+ const { handleGuardrailReset } = await import("./guardrail-reset-e0m3p15n.js");
110064
110111
  return handleGuardrailReset(ctx.args, ctx.sessionID);
110065
110112
  },
110066
110113
  description: "Reset one exact active invocation/action circuit after repair",
@@ -110081,7 +110128,7 @@ var COMMAND_REGISTRY = {
110081
110128
  },
110082
110129
  "guardrail-log": {
110083
110130
  handler: async (ctx) => {
110084
- const { handleGuardrailLog } = await import("./guardrail-log-y61ewh6d.js");
110131
+ const { handleGuardrailLog } = await import("./guardrail-log-0g59n4ae.js");
110085
110132
  return handleGuardrailLog(ctx.directory, ctx.args);
110086
110133
  },
110087
110134
  description: "Read the guardrail decision log (use --blocks-only for blocks)",