opencode-swarm 7.191.2 → 7.191.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) 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-fdwx53m3.js → auto-checkpoint-mfevgppc.js} +5 -5
  4. package/dist/cli/{checkpoint-53c1zafe.js → checkpoint-ft7x9hh4.js} +9 -9
  5. package/dist/cli/{coder-settlement-fyh6tt0j.js → coder-settlement-a8v2w1gw.js} +3 -3
  6. package/dist/cli/{config-doctor-fgb4e34g.js → config-doctor-5jpt3aj0.js} +7 -7
  7. package/dist/cli/{core-apkb4h4r.js → core-9sekbwxm.js} +1 -1
  8. package/dist/cli/{curator-drift-fz1s4mja.js → curator-drift-mqcfwm24.js} +5 -5
  9. package/dist/cli/{curator-llm-factory-mfnac4ay.js → curator-llm-factory-nm91t6p1.js} +26 -26
  10. package/dist/cli/{curator-frc99gz3.js → curator-venskykb.js} +26 -26
  11. package/dist/cli/{doctor-knowledge-receipt-phase-id-jwvzyje6.js → doctor-knowledge-receipt-phase-id-0ewtqwxk.js} +5 -5
  12. package/dist/cli/{evidence-summary-service-w18gkp8p.js → evidence-summary-service-rr3rb5n2.js} +10 -10
  13. package/dist/cli/{gate-evidence-36w61c05.js → gate-evidence-sjp73rfv.js} +2 -2
  14. package/dist/cli/{guardrail-explain-vqgjc2ed.js → guardrail-explain-r5x9khp3.js} +27 -27
  15. package/dist/cli/{guardrail-log-935f17ge.js → guardrail-log-87qgtbxw.js} +3 -3
  16. package/dist/cli/{guardrail-reset-xjnvgqah.js → guardrail-reset-z1rhagdh.js} +26 -26
  17. package/dist/cli/{hive-promoter-xsns8ajv.js → hive-promoter-hy0gm4z7.js} +26 -26
  18. package/dist/cli/{index-kme2f9w9.js → index-02gmv98q.js} +4 -4
  19. package/dist/cli/{index-n95ea1jf.js → index-1gv6ja3m.js} +2 -2
  20. package/dist/cli/{index-aqjn8pax.js → index-1y1fgtd0.js} +91 -66
  21. package/dist/cli/{index-h2y7bwje.js → index-2afvf0hr.js} +2 -2
  22. package/dist/cli/{index-tx5vtg1t.js → index-633j6d5z.js} +1 -1
  23. package/dist/cli/{index-tdwm85ng.js → index-7tkkhbcw.js} +1 -1
  24. package/dist/cli/{index-xbnb7anq.js → index-8nac5633.js} +2 -2
  25. package/dist/cli/{index-8mr9p76r.js → index-9nh7fhh9.js} +3 -3
  26. package/dist/cli/{index-gfterbs7.js → index-9ved57n0.js} +3 -3
  27. package/dist/cli/{index-jxhf5r26.js → index-bs8yvx1k.js} +1 -1
  28. package/dist/cli/{index-np6phn34.js → index-ce4skcpr.js} +2 -2
  29. package/dist/cli/{index-g5acbfgk.js → index-chdc1wv3.js} +1 -1
  30. package/dist/cli/{index-bd6zxkwg.js → index-d4rm6r3c.js} +1 -1
  31. package/dist/cli/{index-2rtms4nt.js → index-ez6sczc7.js} +1 -1
  32. package/dist/cli/{index-j5nhx6e8.js → index-g22dps7x.js} +3 -0
  33. package/dist/cli/{index-r6xewjr5.js → index-jfk0yzr6.js} +1 -1
  34. package/dist/cli/{index-xpwcg1rd.js → index-kcx2f95c.js} +6 -6
  35. package/dist/cli/{index-76086gkg.js → index-knqvkxc4.js} +26 -26
  36. package/dist/cli/{index-n23cya25.js → index-p4f47xhj.js} +3 -3
  37. package/dist/cli/{index-m0j9e1gt.js → index-p4vdas8e.js} +1 -1
  38. package/dist/cli/{index-b36p4kn3.js → index-q0y8e1db.js} +2 -2
  39. package/dist/cli/{index-hbnrvd8w.js → index-qgzyj2vt.js} +5 -5
  40. package/dist/cli/{index-nfnrxyvb.js → index-t775as8a.js} +1 -1
  41. package/dist/cli/{index-qwrbyb3c.js → index-v7bjb1ta.js} +1 -1
  42. package/dist/cli/{index-55xfbnvy.js → index-w8fbnqhe.js} +1 -1
  43. package/dist/cli/{index-vwvtmqvw.js → index-xbhs0kp0.js} +1 -1
  44. package/dist/cli/{index-vn3emgm3.js → index-xgfmzmey.js} +4 -4
  45. package/dist/cli/{index-6y359eht.js → index-xgy7wakm.js} +28 -28
  46. package/dist/cli/{index-1xt5gth0.js → index-xrhhjeas.js} +2 -2
  47. package/dist/cli/{index-99v2k5sy.js → index-y7668dn6.js} +3 -3
  48. package/dist/cli/{index-tzq81dcp.js → index-ydnfnzdq.js} +1 -1
  49. package/dist/cli/index.js +27 -27
  50. package/dist/cli/{knowledge-escalator-p05gp6vc.js → knowledge-escalator-901znnke.js} +8 -8
  51. package/dist/cli/{knowledge-events-m875rjq2.js → knowledge-events-y2x5c5xe.js} +6 -6
  52. package/dist/cli/{knowledge-store-4h6pebmp.js → knowledge-store-jkzkgsnw.js} +1 -1
  53. package/dist/cli/{knowledge-validator-5vyfp4q6.js → knowledge-validator-dar3799k.js} +2 -2
  54. package/dist/cli/{mcp-xwpwyzx7.js → mcp-7baqvsr2.js} +1 -1
  55. package/dist/cli/{model-preflight-jgehvs3v.js → model-preflight-gk2dtfw4.js} +26 -26
  56. package/dist/cli/{pending-delegations-d55bv8sb.js → pending-delegations-aean4z99.js} +2 -2
  57. package/dist/cli/{pr-subscriptions-f0p41qek.js → pr-subscriptions-zmv0gtv7.js} +1 -1
  58. package/dist/cli/{pr-workflow-gate-50kkf6y3.js → pr-workflow-gate-50avx71j.js} +26 -26
  59. package/dist/cli/{scan-cursor-hhsd1pk3.js → scan-cursor-7vnj82v4.js} +2 -2
  60. package/dist/cli/{schema-8ymp10e6.js → schema-4v7pnknw.js} +1 -1
  61. package/dist/cli/{scope-persistence-gsn67p3k.js → scope-persistence-xd30y1ym.js} +5 -5
  62. package/dist/cli/{server-2p7pqctr.js → server-mkvhdc5k.js} +26 -26
  63. package/dist/cli/{skill-generator-vhdxbs1t.js → skill-generator-mt61qg5f.js} +9 -9
  64. package/dist/cli/{snapshot-coordination-init-yzqj7px3.js → snapshot-coordination-init-c7r5443q.js} +26 -26
  65. package/dist/cli/{speckit-checkoff-73nmf206.js → speckit-checkoff-t17g4ej6.js} +3 -3
  66. package/dist/cli/{worktree-collision-ownership-1ranptpe.js → worktree-collision-ownership-negbpp72.js} +2 -2
  67. package/dist/cli/{worktree-isolation-heftcwdv.js → worktree-isolation-hhftse76.js} +26 -26
  68. package/dist/config/evidence-schema.d.ts +9 -0
  69. package/dist/index.js +8 -8
  70. package/dist/tools/pre-check-batch.d.ts +64 -1
  71. package/dist/tools/secretscan.d.ts +15 -0
  72. package/package.json +1 -1
@@ -8,14 +8,14 @@ import {
8
8
  protectedRoots,
9
9
  redactDecisionLineForArchive,
10
10
  stableCanonicalStringify
11
- } from "./index-tx5vtg1t.js";
11
+ } from "./index-633j6d5z.js";
12
12
  import {
13
13
  detectStraySwarmDirs,
14
14
  readDoctorArtifact,
15
15
  removeStraySwarmDir,
16
16
  resolvePlanParallelizationFlag,
17
17
  runConfigDoctor
18
- } from "./index-99v2k5sy.js";
18
+ } from "./index-y7668dn6.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-1xt5gth0.js";
30
+ } from "./index-xrhhjeas.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-vwvtmqvw.js";
92
+ } from "./index-xbhs0kp0.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-r6xewjr5.js";
111
+ } from "./index-jfk0yzr6.js";
112
112
  import {
113
113
  assertNoUnsettledCoderDispatch,
114
114
  listCoderSettlementWalStates,
115
115
  recoverCoderSettlement,
116
116
  recoverStaleCoderSettlements
117
- } from "./index-n23cya25.js";
117
+ } from "./index-p4f47xhj.js";
118
118
  import {
119
119
  BUNDLED_PROJECT_SKILL_ROOT,
120
120
  DEFAULT_SKILL_MIN_CONFIDENCE,
@@ -135,11 +135,11 @@ import {
135
135
  retireSkill,
136
136
  selectCandidateEntries,
137
137
  syncBundledProjectSkillsIfMissingAsync
138
- } from "./index-8mr9p76r.js";
138
+ } from "./index-9nh7fhh9.js";
139
139
  import {
140
140
  buildEscalationBriefing,
141
141
  readRecentEscalations
142
- } from "./index-xpwcg1rd.js";
142
+ } from "./index-kcx2f95c.js";
143
143
  import {
144
144
  parsePorcelainV2Snapshot,
145
145
  resolveCommitCountSince,
@@ -223,7 +223,7 @@ import {
223
223
  swarmOverwriteCandidates,
224
224
  trackedDirtyCandidates,
225
225
  transientBackoff
226
- } from "./index-gfterbs7.js";
226
+ } from "./index-9ved57n0.js";
227
227
  import {
228
228
  EPIC_MODE_CONFIG_DISABLED_MESSAGE,
229
229
  PlanRecoverySupersededError,
@@ -255,7 +255,7 @@ import {
255
255
  updateEpicRecord,
256
256
  updateTaskStatus,
257
257
  withPlanLifecycleLock
258
- } from "./index-hbnrvd8w.js";
258
+ } from "./index-qgzyj2vt.js";
259
259
  import {
260
260
  containsControlChars,
261
261
  containsPathTraversal,
@@ -271,7 +271,7 @@ import {
271
271
  resolveSpeckitProjection,
272
272
  validateSpeckit,
273
273
  writeProjectedSpecSync
274
- } from "./index-m0j9e1gt.js";
274
+ } from "./index-p4vdas8e.js";
275
275
  import {
276
276
  clearWorktreeMergeStatus,
277
277
  getAllWorktreeMergeFailures,
@@ -303,7 +303,7 @@ import {
303
303
  transitionTaskWorkflowEvidenceWithStatus,
304
304
  withTaskEvidenceTransaction,
305
305
  writeWorkflowWalFile
306
- } from "./index-qwrbyb3c.js";
306
+ } from "./index-v7bjb1ta.js";
307
307
  import {
308
308
  isPathUnderSwarmWorktreeBase,
309
309
  listLiveLaneOwners,
@@ -312,7 +312,7 @@ import {
312
312
  recordLiveLaneOwner,
313
313
  removeWorktree,
314
314
  resolveWorktreeBaseDir
315
- } from "./index-55xfbnvy.js";
315
+ } from "./index-w8fbnqhe.js";
316
316
  import {
317
317
  GitBinaryMissingError,
318
318
  GitSpawnCwdError,
@@ -354,7 +354,7 @@ import {
354
354
  scanBackgroundCoderReservationsForAdmission,
355
355
  scanDelegationsForRecovery,
356
356
  sweepStaleDelegations
357
- } from "./index-tzq81dcp.js";
357
+ } from "./index-ydnfnzdq.js";
358
358
  import {
359
359
  MAX_EVENT_LOG_ENTRIES,
360
360
  _internals,
@@ -366,7 +366,7 @@ import {
366
366
  recordHiveKnowledgeEvent,
367
367
  recordKnowledgeEvent,
368
368
  resolveKnowledgeEventsPath
369
- } from "./index-n95ea1jf.js";
369
+ } from "./index-1gv6ja3m.js";
370
370
  import {
371
371
  commitDisplayedMembership,
372
372
  commitEmptyRetrieval,
@@ -379,7 +379,7 @@ import {
379
379
  queryLiveMemberships,
380
380
  reconcilePhaseClose,
381
381
  recordPhaseCloseIntent
382
- } from "./index-xbnb7anq.js";
382
+ } from "./index-8nac5633.js";
383
383
  import {
384
384
  sanitizeContextText
385
385
  } from "./index-m9zzj4ee.js";
@@ -410,7 +410,7 @@ import {
410
410
  validateActionableFields,
411
411
  validateLesson,
412
412
  validateSkillPath
413
- } from "./index-g5acbfgk.js";
413
+ } from "./index-chdc1wv3.js";
414
414
  import {
415
415
  MAX_CURATION_PROPOSALS,
416
416
  authorizeCuration,
@@ -421,10 +421,10 @@ import {
421
421
  } from "./index-rtry5xyf.js";
422
422
  import {
423
423
  resolveWorktreeIsolationConfig
424
- } from "./index-b36p4kn3.js";
424
+ } from "./index-q0y8e1db.js";
425
425
  import {
426
426
  RetrospectiveEvidenceSchema
427
- } from "./index-j5nhx6e8.js";
427
+ } from "./index-g22dps7x.js";
428
428
  import {
429
429
  MAX_PENDING_SCOPE_BINDINGS,
430
430
  canonicalWorkspaceIdentity,
@@ -433,7 +433,7 @@ import {
433
433
  clearScopeBindings,
434
434
  readAuthoritativeScopeBindingSet,
435
435
  readDeclaredScopeFilesFromBindings
436
- } from "./index-tdwm85ng.js";
436
+ } from "./index-7tkkhbcw.js";
437
437
  import {
438
438
  clearPlanLedgerForReset,
439
439
  computePlanStructureHash,
@@ -449,7 +449,7 @@ import {
449
449
  replayFromLedgerWithStatus,
450
450
  resolvePlanningProfile,
451
451
  takeSnapshotEvent
452
- } from "./index-h2y7bwje.js";
452
+ } from "./index-2afvf0hr.js";
453
453
  import {
454
454
  CORE_EVENT_LOCKED,
455
455
  appendCoreEventSync,
@@ -538,7 +538,7 @@ import {
538
538
  transactFile,
539
539
  transactKnowledge,
540
540
  wordBigrams
541
- } from "./index-kme2f9w9.js";
541
+ } from "./index-02gmv98q.js";
542
542
  import {
543
543
  readTailJsonl,
544
544
  readTailJsonlDetailed,
@@ -623,7 +623,7 @@ import {
623
623
  loadPluginConfig,
624
624
  loadPluginConfigWithMeta,
625
625
  resolveEpicConfig
626
- } from "./index-2rtms4nt.js";
626
+ } from "./index-ez6sczc7.js";
627
627
  import {
628
628
  GIT_BINARY_ENV_VAR,
629
629
  addDeferredWarning,
@@ -656,7 +656,7 @@ import {
656
656
  resolveContextWindow,
657
657
  resolveGeneratedAgentRole,
658
658
  stripKnownSwarmPrefix
659
- } from "./index-nfnrxyvb.js";
659
+ } from "./index-t775as8a.js";
660
660
  import {
661
661
  AGENT_TOOL_MAP,
662
662
  ALL_AGENT_NAMES,
@@ -3449,7 +3449,7 @@ async function importLegacyPrWorkflowGateStateIfNeeded(directory, sessionID, all
3449
3449
  return null;
3450
3450
  throw error2;
3451
3451
  }
3452
- const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-50kkf6y3.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
3452
+ const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-50avx71j.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
3453
3453
  if (!legacy)
3454
3454
  return null;
3455
3455
  const namespace = workflowGateStateCoordinationNamespace(sessionID);
@@ -3536,7 +3536,7 @@ async function deleteStateWhileLocked(directory, sessionID, options = {}) {
3536
3536
  let recoveryState = null;
3537
3537
  if (!currentAuthoritative) {
3538
3538
  if (options.allowSalvagedRead) {
3539
- const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-50kkf6y3.js");
3539
+ const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-50avx71j.js");
3540
3540
  recoveryState = (await readPrWorkflowGateStateForRecovery(directory, normalizedSessionID))?.state ?? null;
3541
3541
  }
3542
3542
  if (!recoveryState) {
@@ -10334,7 +10334,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
10334
10334
  return extracted === expectedSessionId;
10335
10335
  }
10336
10336
  async function inspectStandardWorktreeCollisionOwnership(identity) {
10337
- const collisionOwnership = await import("./worktree-collision-ownership-1ranptpe.js");
10337
+ const collisionOwnership = await import("./worktree-collision-ownership-negbpp72.js");
10338
10338
  return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
10339
10339
  }
10340
10340
  async function runRecoveryGit(directory, args, timeoutMs = 15000) {
@@ -10761,7 +10761,7 @@ async function precreateStandardWorktreeSession(args) {
10761
10761
  const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
10762
10762
  if (laneProfile) {
10763
10763
  try {
10764
- const { writeLaneProfileToDiskReal } = await import("./core-apkb4h4r.js");
10764
+ const { writeLaneProfileToDiskReal } = await import("./core-9sekbwxm.js");
10765
10765
  await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
10766
10766
  } catch {}
10767
10767
  }
@@ -11754,7 +11754,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
11754
11754
  }
11755
11755
  clearWorktreeMergeStatus(statusKey);
11756
11756
  try {
11757
- const { removeLaneProfileFromDiskReal } = await import("./core-apkb4h4r.js");
11757
+ const { removeLaneProfileFromDiskReal } = await import("./core-9sekbwxm.js");
11758
11758
  await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
11759
11759
  } catch {}
11760
11760
  const state = serializationStateBySessionID.get(dispatch.parentSessionID);
@@ -27502,7 +27502,7 @@ function clearCriticalShownIds(sessionID) {
27502
27502
  async function rehydratePrSubscriptions(sessionID, directory) {
27503
27503
  const map = new Map;
27504
27504
  try {
27505
- const { listActive: listActive2 } = await import("./pr-subscriptions-f0p41qek.js");
27505
+ const { listActive: listActive2 } = await import("./pr-subscriptions-zmv0gtv7.js");
27506
27506
  const records = await listActive2(directory);
27507
27507
  for (const record of records) {
27508
27508
  if (record.sessionID !== sessionID)
@@ -44048,9 +44048,9 @@ function hashContent(content) {
44048
44048
  return createHash29("sha1").update(content).digest("hex");
44049
44049
  }
44050
44050
  async function loadConfigForPolicyCurator(directory) {
44051
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-8ymp10e6.js");
44051
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-4v7pnknw.js");
44052
44052
  try {
44053
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-vn3emgm3.js");
44053
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-xgfmzmey.js");
44054
44054
  const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
44055
44055
  return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
44056
44056
  } catch {
@@ -47108,7 +47108,7 @@ async function resolveCuratorLLMDelegate(directory, mode, sessionId) {
47108
47108
  const seam = _internals46.createCuratorLLMDelegate;
47109
47109
  if (seam)
47110
47110
  return seam(directory, mode, sessionId);
47111
- const { createCuratorLLMDelegate } = await import("./curator-llm-factory-mfnac4ay.js");
47111
+ const { createCuratorLLMDelegate } = await import("./curator-llm-factory-nm91t6p1.js");
47112
47112
  return createCuratorLLMDelegate(directory, mode, sessionId);
47113
47113
  }
47114
47114
  async function reconcileCloseTerminalStateForPlan(directory, targetPlan, options) {
@@ -47503,7 +47503,7 @@ async function runFinalizeStage(ctx) {
47503
47503
  }
47504
47504
  }
47505
47505
  try {
47506
- const { CuratorConfigSchema: CCS } = await import("./schema-8ymp10e6.js");
47506
+ const { CuratorConfigSchema: CCS } = await import("./schema-4v7pnknw.js");
47507
47507
  const { config: pmLoadedConfig } = _internals46.loadPluginConfigWithMeta(ctx.directory);
47508
47508
  const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
47509
47509
  if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
@@ -51536,7 +51536,7 @@ function serializeAgentSession(s) {
51536
51536
  }
51537
51537
  async function writeSnapshot(directory, state) {
51538
51538
  try {
51539
- const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-yzqj7px3.js");
51539
+ const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-c7r5443q.js");
51540
51540
  await ensureSnapshotCoordinationReady(directory);
51541
51541
  const snapshot = {
51542
51542
  version: 3,
@@ -54557,7 +54557,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
54557
54557
  };
54558
54558
  }
54559
54559
  async function sweepActiveNearDuplicates(directory, options = {}) {
54560
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-vn3emgm3.js");
54560
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-xgfmzmey.js");
54561
54561
  const { config } = loadPluginConfigWithMeta2(directory);
54562
54562
  const sweepConfig = config.learning?.dedup_sweep;
54563
54563
  if (sweepConfig?.enabled === false)
@@ -55681,7 +55681,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
55681
55681
  }
55682
55682
  if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
55683
55683
  try {
55684
- const skillModule = await import("./skill-generator-vhdxbs1t.js");
55684
+ const skillModule = await import("./skill-generator-mt61qg5f.js");
55685
55685
  for (const cand of skillCandidates) {
55686
55686
  if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
55687
55687
  continue;
@@ -56153,7 +56153,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
56153
56153
  } catch {}
56154
56154
  }
56155
56155
  if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
56156
- const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-p05gp6vc.js");
56156
+ const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-901znnke.js");
56157
56157
  for (const { id } of contradictedEntries) {
56158
56158
  try {
56159
56159
  await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
@@ -56985,7 +56985,7 @@ async function runCuratorPostMortem(directory, options = {}) {
56985
56985
  warnings.push("Failed to collect knowledge summary.");
56986
56986
  }
56987
56987
  try {
56988
- const { getScanStatus } = await import("./scan-cursor-hhsd1pk3.js");
56988
+ const { getScanStatus } = await import("./scan-cursor-7vnj82v4.js");
56989
56989
  const scanStatus = await getScanStatus(directory);
56990
56990
  if (scanStatus.remaining_estimate > 0) {
56991
56991
  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.`);
@@ -57157,9 +57157,9 @@ var _internals68 = {
57157
57157
  verifyPostMortemKnowledgeActions,
57158
57158
  repairPostMortemActions,
57159
57159
  loadDefaultKnowledgeConfig: async (directory) => {
57160
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-8ymp10e6.js");
57160
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-4v7pnknw.js");
57161
57161
  try {
57162
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-vn3emgm3.js");
57162
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-xgfmzmey.js");
57163
57163
  const loaded = loadPluginConfigWithMeta2(directory);
57164
57164
  return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
57165
57165
  } catch {
@@ -57167,11 +57167,11 @@ var _internals68 = {
57167
57167
  }
57168
57168
  },
57169
57169
  applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
57170
- const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-frc99gz3.js");
57170
+ const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-venskykb.js");
57171
57171
  return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
57172
57172
  },
57173
57173
  checkHivePromotions: async (entries2, knowledgeConfig, directory) => {
57174
- const { checkHivePromotions } = await import("./hive-promoter-xsns8ajv.js");
57174
+ const { checkHivePromotions } = await import("./hive-promoter-hy0gm4z7.js");
57175
57175
  return checkHivePromotions(entries2, knowledgeConfig, directory);
57176
57176
  },
57177
57177
  applyProposalTriage: async (directory, triage) => {
@@ -57180,7 +57180,7 @@ var _internals68 = {
57180
57180
  activateProposal,
57181
57181
  listSkills: listSkills2,
57182
57182
  sanitizeSlug
57183
- } = await import("./skill-generator-vhdxbs1t.js");
57183
+ } = await import("./skill-generator-mt61qg5f.js");
57184
57184
  const result = {
57185
57185
  approved: [],
57186
57186
  rejected: [],
@@ -57222,7 +57222,7 @@ var _internals68 = {
57222
57222
  return result;
57223
57223
  },
57224
57224
  readPriorDriftReports: async (directory) => {
57225
- const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-fz1s4mja.js");
57225
+ const { readPriorDriftReports: readPriorDriftReports2 } = await import("./curator-drift-mqcfwm24.js");
57226
57226
  return readPriorDriftReports2(directory);
57227
57227
  },
57228
57228
  readSwarmKnowledge: (directory) => readKnowledge(resolveSwarmKnowledgePath(directory))
@@ -67492,9 +67492,9 @@ var _internals76 = {
67492
67492
  loadPluginConfigWithMeta,
67493
67493
  loadCuratorDeps: async () => {
67494
67494
  const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate }] = await Promise.all([
67495
- import("./schema-8ymp10e6.js"),
67496
- import("./curator-frc99gz3.js"),
67497
- import("./curator-llm-factory-mfnac4ay.js")
67495
+ import("./schema-4v7pnknw.js"),
67496
+ import("./curator-venskykb.js"),
67497
+ import("./curator-llm-factory-nm91t6p1.js")
67498
67498
  ]);
67499
67499
  return { CuratorConfigSchema, curator, createCuratorLLMDelegate };
67500
67500
  }
@@ -69371,7 +69371,19 @@ async function hasGreenPostSettlementPreCheck(directory, settledAfterMs) {
69371
69371
  const policySkipped = last.policy_skipped_files;
69372
69372
  const requestedFiles = last.requested_files;
69373
69373
  const vacuousCoverage = (last.files_scanned ?? 0) === 0 && typeof policySkipped === "number" && Number.isSafeInteger(policySkipped) && policySkipped >= 0 && typeof requestedFiles === "number" && Number.isSafeInteger(requestedFiles) && requestedFiles > 0 && policySkipped >= requestedFiles && (last.findings_count ?? 0) === 0 && (last.incomplete_files ?? 0) === 0 && last.incomplete_paths.length === 0;
69374
- if ((last.incomplete_files ?? 0) === 0 && ((last.files_scanned ?? 0) > 0 || vacuousCoverage) && (last.findings_count ?? 0) === 0) {
69374
+ if ((last.incomplete_files ?? 0) === 0 && (last.incomplete_paths?.length ?? 0) === 0 && ((last.files_scanned ?? 0) > 0 || vacuousCoverage) && (() => {
69375
+ const total = last.findings_count ?? 0;
69376
+ const newFindingsRaw = last.new_findings_count;
69377
+ const preexistingRaw = last.preexisting_findings_count;
69378
+ const newValid = typeof newFindingsRaw === "number" && Number.isSafeInteger(newFindingsRaw) && newFindingsRaw >= 0;
69379
+ if (!newValid)
69380
+ return total === 0;
69381
+ const preValid = typeof preexistingRaw === "number" && Number.isSafeInteger(preexistingRaw) && preexistingRaw >= 0;
69382
+ if (preValid && newFindingsRaw + preexistingRaw !== total) {
69383
+ return total === 0;
69384
+ }
69385
+ return newFindingsRaw === 0;
69386
+ })()) {
69375
69387
  sawSecretscanGreen = true;
69376
69388
  continue;
69377
69389
  }
@@ -69932,7 +69944,7 @@ async function computeCurationDiagnostics(directory, entries2) {
69932
69944
  let scanCompleted = false;
69933
69945
  let scanRemaining = 0;
69934
69946
  try {
69935
- const { getScanStatus } = await import("./scan-cursor-hhsd1pk3.js");
69947
+ const { getScanStatus } = await import("./scan-cursor-7vnj82v4.js");
69936
69948
  const status = await getScanStatus(directory);
69937
69949
  scanGeneration = status.generation;
69938
69950
  scanCompleted = status.completed;
@@ -69942,10 +69954,10 @@ async function computeCurationDiagnostics(directory, entries2) {
69942
69954
  try {
69943
69955
  const { isLinked: isLinked2 } = await import("./knowledge-link-6hw3z6wn.js");
69944
69956
  if (isLinked2(directory)) {
69945
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-8ymp10e6.js");
69957
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-4v7pnknw.js");
69946
69958
  let config;
69947
69959
  try {
69948
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-vn3emgm3.js");
69960
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-xgfmzmey.js");
69949
69961
  const loaded = loadPluginConfigWithMeta2(directory);
69950
69962
  config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
69951
69963
  } catch {
@@ -71401,7 +71413,7 @@ async function handleDoctorCommand(directory, args) {
71401
71413
  const result = runConfigDoctor(config, directory, planParallelizationEnabled);
71402
71414
  let output;
71403
71415
  if (enableAutoFix && result.hasAutoFixableIssues) {
71404
- const { runConfigDoctorWithFixes } = await import("./config-doctor-fgb4e34g.js");
71416
+ const { runConfigDoctorWithFixes } = await import("./config-doctor-5jpt3aj0.js");
71405
71417
  const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
71406
71418
  applyLossy: true
71407
71419
  });
@@ -71439,7 +71451,7 @@ async function handleDoctorCommand(directory, args) {
71439
71451
  `;
71440
71452
  }
71441
71453
  try {
71442
- const { runModelPreflight } = await import("./model-preflight-jgehvs3v.js");
71454
+ const { runModelPreflight } = await import("./model-preflight-gk2dtfw4.js");
71443
71455
  const preflight = await runModelPreflight(config, swarmState.opencodeClient, { generatedAgentNames: swarmState.generatedAgentNames });
71444
71456
  const missingSelection = preflight.resolutions.filter((resolution) => resolution.status === "missing-selection");
71445
71457
  const unresolved = preflight.catalogAvailable ? preflight.resolutions.filter((resolution) => resolution.status === "unresolved") : [];
@@ -71473,7 +71485,7 @@ async function handleDoctorCommand(directory, args) {
71473
71485
  }
71474
71486
  } catch {}
71475
71487
  try {
71476
- const { renderKnowledgeReceiptPhaseIdSection } = await import("./doctor-knowledge-receipt-phase-id-jwvzyje6.js");
71488
+ const { renderKnowledgeReceiptPhaseIdSection } = await import("./doctor-knowledge-receipt-phase-id-0ewtqwxk.js");
71477
71489
  output += await renderKnowledgeReceiptPhaseIdSection(directory, enableAutoFix);
71478
71490
  } catch {}
71479
71491
  const strayDirs = detectStraySwarmDirs(directory);
@@ -73490,7 +73502,7 @@ async function handleEvidenceCommand(directory, args) {
73490
73502
  return formatTaskEvidenceMarkdown(evidenceData);
73491
73503
  }
73492
73504
  async function handleEvidenceSummaryCommand(directory) {
73493
- const { buildEvidenceSummary } = await import("./evidence-summary-service-w18gkp8p.js");
73505
+ const { buildEvidenceSummary } = await import("./evidence-summary-service-rr3rb5n2.js");
73494
73506
  const artifact = await buildEvidenceSummary(directory);
73495
73507
  if (!artifact) {
73496
73508
  return "No plan found. Run `/swarm plan` to check plan status.";
@@ -97956,7 +97968,7 @@ function createCuratorLLMDelegate(directory, mode = "init", sessionId) {
97956
97968
  }
97957
97969
  const sdkOpts = signal ? { signal } : {};
97958
97970
  try {
97959
- const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-76086gkg.js");
97971
+ const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-knqvkxc4.js");
97960
97972
  const createResult = await client.session.create({
97961
97973
  ...sessionId ? {
97962
97974
  body: {
@@ -100293,7 +100305,7 @@ async function cancelPrFeedbackLoopUnlocked(directory, sessionID, reason) {
100293
100305
  clearedEvents: []
100294
100306
  };
100295
100307
  try {
100296
- const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-50kkf6y3.js");
100308
+ const { cancelPrFeedbackPublication: cancelPrFeedbackPublication2 } = await import("./pr-workflow-gate-50avx71j.js");
100297
100309
  await cancelPrFeedbackPublication2(directory, sessionID, reason);
100298
100310
  } catch (err) {
100299
100311
  warn(`[pr-feedback-loop] cancelPrFeedbackPublication failed (fail-open): ${err instanceof Error ? err.message : String(err)}`);
@@ -103341,7 +103353,8 @@ var secretscan = createSwarmTool({
103341
103353
  requested_files: 0,
103342
103354
  ignored_files: 0,
103343
103355
  incomplete_files: incompleteFiles,
103344
- incomplete_paths: discovery.incompletePaths
103356
+ incomplete_paths: discovery.incompletePaths,
103357
+ ...allFindings.length >= MAX_FINDINGS2 && { truncated: true }
103345
103358
  };
103346
103359
  const parts = [];
103347
103360
  if (discovery.totalCandidates > MAX_FILES_SCANNED2) {
@@ -103403,6 +103416,7 @@ async function runSecretscanOnFiles(files, directory, rawRequestedFiles) {
103403
103416
  let skippedFiles = 0;
103404
103417
  let policySkippedFiles = 0;
103405
103418
  let ignoredFiles = 0;
103419
+ let resultsTruncated = false;
103406
103420
  const requestedFiles = Math.max(0, rawRequestedFiles ?? files.length);
103407
103421
  const incompletePaths = [];
103408
103422
  const rawRoot = path137.resolve(directory);
@@ -103459,6 +103473,7 @@ async function runSecretscanOnFiles(files, directory, rawRequestedFiles) {
103459
103473
  break;
103460
103474
  }
103461
103475
  if (findings.length >= MAX_FINDINGS2) {
103476
+ resultsTruncated = true;
103462
103477
  recordIncompletePath(incompletePaths, canonicalRoot, canonicalRoot, "truncated");
103463
103478
  incompleteFiles += filesToScan.length - index;
103464
103479
  break;
@@ -103548,8 +103563,10 @@ async function runSecretscanOnFiles(files, directory, rawRequestedFiles) {
103548
103563
  case "scanned":
103549
103564
  filesScanned++;
103550
103565
  findings.push(...outcome.findings);
103551
- if (findings.length > MAX_FINDINGS2)
103566
+ if (findings.length > MAX_FINDINGS2) {
103552
103567
  findings.length = MAX_FINDINGS2;
103568
+ resultsTruncated = true;
103569
+ }
103553
103570
  break;
103554
103571
  case "skipped":
103555
103572
  skippedFiles++;
@@ -103573,6 +103590,10 @@ async function runSecretscanOnFiles(files, directory, rawRequestedFiles) {
103573
103590
  return 1;
103574
103591
  return a.line - b.line;
103575
103592
  });
103593
+ const disclosureParts = [];
103594
+ if (resultsTruncated) {
103595
+ disclosureParts.push(`Results limited to ${MAX_FINDINGS2} findings`);
103596
+ }
103576
103597
  return {
103577
103598
  scan_dir: directory,
103578
103599
  findings,
@@ -103583,7 +103604,11 @@ async function runSecretscanOnFiles(files, directory, rawRequestedFiles) {
103583
103604
  ignored_files: ignoredFiles,
103584
103605
  requested_files: requestedFiles,
103585
103606
  incomplete_files: incompleteFiles,
103586
- incomplete_paths: incompletePaths
103607
+ incomplete_paths: incompletePaths,
103608
+ ...resultsTruncated && {
103609
+ truncated: true,
103610
+ message: `${disclosureParts.join("; ")}.`
103611
+ }
103587
103612
  };
103588
103613
  } catch (e) {
103589
103614
  return {
@@ -116746,7 +116771,7 @@ function buildDetailedHelp(commandName, entry) {
116746
116771
  async function handleHelpCommand(ctx) {
116747
116772
  const targetCommand = ctx.args.join(" ");
116748
116773
  if (!targetCommand) {
116749
- const { buildHelpText } = await import("./index-6y359eht.js");
116774
+ const { buildHelpText } = await import("./index-xgy7wakm.js");
116750
116775
  return buildHelpText();
116751
116776
  }
116752
116777
  const tokens = targetCommand.split(/\s+/);
@@ -116760,7 +116785,7 @@ async function handleHelpCommand(ctx) {
116760
116785
  > Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
116761
116786
  }
116762
116787
  const similar = _internals35.findSimilarCommands(targetCommand);
116763
- const { buildHelpText: fullHelp } = await import("./index-6y359eht.js");
116788
+ const { buildHelpText: fullHelp } = await import("./index-xgy7wakm.js");
116764
116789
  if (similar.length > 0) {
116765
116790
  return `Command '/swarm ${targetCommand}' not found.
116766
116791
 
@@ -117088,7 +117113,7 @@ var COMMAND_REGISTRY = {
117088
117113
  },
117089
117114
  "guardrail explain": {
117090
117115
  handler: async (ctx) => {
117091
- const { handleGuardrailExplain } = await import("./guardrail-explain-vqgjc2ed.js");
117116
+ const { handleGuardrailExplain } = await import("./guardrail-explain-r5x9khp3.js");
117092
117117
  return handleGuardrailExplain(ctx.directory, ctx.args);
117093
117118
  },
117094
117119
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -117098,7 +117123,7 @@ var COMMAND_REGISTRY = {
117098
117123
  },
117099
117124
  "guardrail reset": {
117100
117125
  handler: async (ctx) => {
117101
- const { handleGuardrailReset } = await import("./guardrail-reset-xjnvgqah.js");
117126
+ const { handleGuardrailReset } = await import("./guardrail-reset-z1rhagdh.js");
117102
117127
  return handleGuardrailReset(ctx.args, ctx.sessionID);
117103
117128
  },
117104
117129
  description: "Reset one exact active invocation/action circuit after repair",
@@ -117119,7 +117144,7 @@ var COMMAND_REGISTRY = {
117119
117144
  },
117120
117145
  "guardrail-log": {
117121
117146
  handler: async (ctx) => {
117122
- const { handleGuardrailLog } = await import("./guardrail-log-935f17ge.js");
117147
+ const { handleGuardrailLog } = await import("./guardrail-log-87qgtbxw.js");
117123
117148
  return handleGuardrailLog(ctx.directory, ctx.args);
117124
117149
  },
117125
117150
  description: "Read the guardrail decision log (use --blocks-only for blocks)",
@@ -27,11 +27,11 @@ import {
27
27
  import {
28
28
  init_loader,
29
29
  loadPluginConfig
30
- } from "./index-2rtms4nt.js";
30
+ } from "./index-ez6sczc7.js";
31
31
  import {
32
32
  init_package,
33
33
  package_default
34
- } from "./index-nfnrxyvb.js";
34
+ } from "./index-t775as8a.js";
35
35
  import {
36
36
  criticalWarn,
37
37
  init_logger,
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  init_schema,
10
10
  stripKnownSwarmPrefix
11
- } from "./index-nfnrxyvb.js";
11
+ } from "./index-t775as8a.js";
12
12
  import {
13
13
  init_constants
14
14
  } from "./index-pksy4nzv.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  computePlanStructureHash
4
- } from "./index-h2y7bwje.js";
4
+ } from "./index-2afvf0hr.js";
5
5
  import {
6
6
  appendCoreEventSync
7
7
  } from "./index-zk6ttjkt.js";
@@ -19,11 +19,11 @@ import {
19
19
  } from "./index-gx2vp8gx.js";
20
20
  import {
21
21
  loadPluginConfigWithMeta
22
- } from "./index-2rtms4nt.js";
22
+ } from "./index-ez6sczc7.js";
23
23
  import {
24
24
  KnowledgeConfigSchema,
25
25
  init_schema
26
- } from "./index-nfnrxyvb.js";
26
+ } from "./index-t775as8a.js";
27
27
 
28
28
  // src/utils/context-decisions.ts
29
29
  function extractContextDecisions(content) {
@@ -5,18 +5,18 @@ import {
5
5
  import {
6
6
  effectiveRetrievalOutcomes,
7
7
  readAuthoritativeKnowledgeCounterRollups
8
- } from "./index-n95ea1jf.js";
8
+ } from "./index-1gv6ja3m.js";
9
9
  import {
10
10
  ALLOWED_SKILL_PATH_PREFIXES,
11
11
  validateSkillPath
12
- } from "./index-g5acbfgk.js";
12
+ } from "./index-chdc1wv3.js";
13
13
  import {
14
14
  computeOutcomeSignal,
15
15
  readKnowledge,
16
16
  resolveHiveKnowledgePath,
17
17
  resolveSwarmKnowledgePath,
18
18
  transactKnowledge
19
- } from "./index-kme2f9w9.js";
19
+ } from "./index-02gmv98q.js";
20
20
  import {
21
21
  appendCappedJsonl,
22
22
  resolveRetentionCap