opencode-swarm 7.171.1 → 7.171.2

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 (55) 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/{coder-settlement-vxpmxk46.js → coder-settlement-9e696204.js} +3 -3
  4. package/dist/cli/{config-doctor-vwy3c9g9.js → config-doctor-zr748h4m.js} +2 -2
  5. package/dist/cli/{core-2znms60v.js → core-aa3jmzcs.js} +1 -1
  6. package/dist/cli/{curator-llm-factory-exke3rag.js → curator-llm-factory-nshzhgs4.js} +19 -19
  7. package/dist/cli/{curator-kc80aj6d.js → curator-xgpxtaf1.js} +19 -19
  8. package/dist/cli/{evidence-summary-service-g3gr1pfs.js → evidence-summary-service-5e2323zr.js} +6 -6
  9. package/dist/cli/{gate-evidence-8mwsj2b7.js → gate-evidence-5htpsr5y.js} +2 -2
  10. package/dist/cli/{guardrail-explain-pkbjswtd.js → guardrail-explain-d0h0p73g.js} +20 -20
  11. package/dist/cli/{guardrail-log-qx1tpeda.js → guardrail-log-heejmjce.js} +3 -3
  12. package/dist/cli/{guardrail-reset-v91p8ca6.js → guardrail-reset-rdqxeqy0.js} +19 -19
  13. package/dist/cli/{hive-promoter-02vxb018.js → hive-promoter-n262tkm3.js} +19 -19
  14. package/dist/cli/{index-cdee25pp.js → index-04ph4jp2.js} +1 -1
  15. package/dist/cli/{index-8nbzfbjg.js → index-0yffa3np.js} +5 -5
  16. package/dist/cli/{index-6mjtptnb.js → index-11gz0few.js} +1 -1
  17. package/dist/cli/{index-7pae558g.js → index-2ryy0cwt.js} +2 -2
  18. package/dist/cli/{index-m1j1rth6.js → index-5a8q4qr5.js} +1 -1
  19. package/dist/cli/{index-d5pk5b95.js → index-7hnjs7tf.js} +2 -2
  20. package/dist/cli/{index-d6bs0p6d.js → index-9txyxbqc.js} +3 -3
  21. package/dist/cli/{index-ztxh3nmf.js → index-9vfp6g53.js} +21 -21
  22. package/dist/cli/{index-9cp6bhx9.js → index-d79q2f8z.js} +3 -3
  23. package/dist/cli/{index-4sf357vj.js → index-dsgc303n.js} +1 -1
  24. package/dist/cli/{index-s7h6txsk.js → index-e7yv4xw1.js} +2 -2
  25. package/dist/cli/{index-xefajbqv.js → index-f1rj1j8t.js} +73 -56
  26. package/dist/cli/{index-3zzyxs7q.js → index-gq2zdxep.js} +3 -3
  27. package/dist/cli/{index-5vgd9st3.js → index-j6rq132j.js} +2 -2
  28. package/dist/cli/{index-2j0pd6sj.js → index-jr6pypmj.js} +19 -19
  29. package/dist/cli/{index-rdjmbeex.js → index-mazy938h.js} +1 -1
  30. package/dist/cli/{index-rkj71ej6.js → index-ph94evsh.js} +3 -3
  31. package/dist/cli/{index-4rq1d5k5.js → index-q2yk70rs.js} +1 -1
  32. package/dist/cli/{index-xm0131fx.js → index-qcy7eg6z.js} +1 -1
  33. package/dist/cli/{index-wn9gf91x.js → index-qdy4a48x.js} +1 -1
  34. package/dist/cli/{index-5134766r.js → index-r60cw2jt.js} +4 -4
  35. package/dist/cli/{index-3jwamrzw.js → index-rrc08h4q.js} +1 -1
  36. package/dist/cli/{index-dr1ym009.js → index-vqb65csb.js} +3 -3
  37. package/dist/cli/{index-vs7b2pqm.js → index-wfh89qct.js} +1 -1
  38. package/dist/cli/index.js +19 -19
  39. package/dist/cli/{knowledge-escalator-4j6xgcvj.js → knowledge-escalator-kn74r5w8.js} +6 -6
  40. package/dist/cli/{knowledge-events-5ax1g356.js → knowledge-events-7gpw741m.js} +4 -4
  41. package/dist/cli/{knowledge-store-2nrtfb5x.js → knowledge-store-3f9kke7z.js} +1 -1
  42. package/dist/cli/{knowledge-validator-efcax8g9.js → knowledge-validator-c2z68v8v.js} +2 -2
  43. package/dist/cli/{pending-delegations-29qj2kya.js → pending-delegations-d5c07rb7.js} +2 -2
  44. package/dist/cli/{pr-subscriptions-t51vcrvd.js → pr-subscriptions-krv0jvds.js} +1 -1
  45. package/dist/cli/{pr-workflow-gate-03367gvd.js → pr-workflow-gate-hmdht1he.js} +19 -19
  46. package/dist/cli/{scan-cursor-nhxpv6tj.js → scan-cursor-b57xxs3q.js} +2 -2
  47. package/dist/cli/{schema-ht5hmsce.js → schema-r8tv8dqm.js} +1 -1
  48. package/dist/cli/{scope-persistence-6qebaksv.js → scope-persistence-0sc90mpj.js} +5 -5
  49. package/dist/cli/{skill-generator-tfm4kawf.js → skill-generator-syxa1mxm.js} +7 -7
  50. package/dist/cli/{snapshot-coordination-init-zgfjjv9p.js → snapshot-coordination-init-x18mwxyv.js} +19 -19
  51. package/dist/cli/{worktree-collision-ownership-6mgm8p9g.js → worktree-collision-ownership-1tzw8qzp.js} +2 -2
  52. package/dist/cli/{worktree-isolation-02rr7t21.js → worktree-isolation-ez0e48v3.js} +19 -19
  53. package/dist/index.js +2 -2
  54. package/dist/retention/dir-prune.d.ts +5 -1
  55. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-d5pk5b95.js";
4
+ } from "./index-7hnjs7tf.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-6mjtptnb.js";
7
+ } from "./index-11gz0few.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  DEFAULT_CI_DEADLINE_MS,
@@ -97,43 +97,43 @@ import {
97
97
  handleWriteRetroCommand,
98
98
  normalizeSwarmCommandInput,
99
99
  resolveCommand
100
- } from "./index-xefajbqv.js";
100
+ } from "./index-f1rj1j8t.js";
101
101
  import"./index-5400m33a.js";
102
102
  import"./index-er6sk4e6.js";
103
- import"./index-4sf357vj.js";
103
+ import"./index-dsgc303n.js";
104
104
  import"./index-kb66he4e.js";
105
- import"./index-wn9gf91x.js";
106
- import"./index-dr1ym009.js";
105
+ import"./index-qdy4a48x.js";
106
+ import"./index-vqb65csb.js";
107
107
  import"./index-3jcp3zb6.js";
108
108
  import"./index-txdagbh7.js";
109
109
  import"./index-9br68j86.js";
110
110
  import"./index-cw912re7.js";
111
- import"./index-9cp6bhx9.js";
112
- import"./index-8nbzfbjg.js";
113
- import"./index-cdee25pp.js";
111
+ import"./index-d79q2f8z.js";
112
+ import"./index-0yffa3np.js";
113
+ import"./index-04ph4jp2.js";
114
114
  import"./index-fyfbpz4f.js";
115
115
  import"./index-7qqwx64h.js";
116
116
  import"./index-0hgmsyfp.js";
117
117
  import"./index-zsrtt42s.js";
118
- import"./index-3zzyxs7q.js";
118
+ import"./index-gq2zdxep.js";
119
119
  import"./index-fhh02gwx.js";
120
120
  import"./index-nyn01yrz.js";
121
121
  import"./index-b43rt5ph.js";
122
122
  import"./index-q7sjgr1y.js";
123
- import"./index-3jwamrzw.js";
124
- import"./index-rdjmbeex.js";
125
- import"./index-xm0131fx.js";
126
- import"./index-d6bs0p6d.js";
123
+ import"./index-rrc08h4q.js";
124
+ import"./index-mazy938h.js";
125
+ import"./index-qcy7eg6z.js";
126
+ import"./index-9txyxbqc.js";
127
127
  import"./index-b3pmzbh1.js";
128
128
  import"./index-2s7dvzff.js";
129
- import"./index-vs7b2pqm.js";
129
+ import"./index-wfh89qct.js";
130
130
  import"./index-0caqxnby.js";
131
131
  import"./index-rtry5xyf.js";
132
- import"./index-s7h6txsk.js";
132
+ import"./index-e7yv4xw1.js";
133
133
  import"./index-3qf1vxtb.js";
134
134
  import"./index-n832052r.js";
135
- import"./index-5vgd9st3.js";
136
- import"./index-7pae558g.js";
135
+ import"./index-j6rq132j.js";
136
+ import"./index-2ryy0cwt.js";
137
137
  import"./index-6k5aq7b9.js";
138
138
  import"./index-aa2eyfvr.js";
139
139
  import"./index-g6nen3gt.js";
@@ -141,7 +141,7 @@ import"./index-yqbnsmmv.js";
141
141
  import"./index-rdm3px0g.js";
142
142
  import"./index-ry16d01s.js";
143
143
  import"./index-nfs78aqj.js";
144
- import"./index-5134766r.js";
144
+ import"./index-r60cw2jt.js";
145
145
  import"./index-vzm6zre7.js";
146
146
  import"./index-ae75rja9.js";
147
147
  import"./index-95e3a9en.js";
@@ -151,13 +151,13 @@ import"./index-9dz2ee2g.js";
151
151
  import"./index-nbdmdyke.js";
152
152
  import"./index-1xnse449.js";
153
153
  import"./index-ee6ydtfe.js";
154
- import"./index-m1j1rth6.js";
154
+ import"./index-5a8q4qr5.js";
155
155
  import"./index-0mhftbpp.js";
156
156
  import"./index-a1w58b47.js";
157
157
  import {
158
158
  init_schema,
159
159
  stripKnownSwarmPrefix
160
- } from "./index-4rq1d5k5.js";
160
+ } from "./index-q2yk70rs.js";
161
161
  import {
162
162
  AGENT_TOOL_MAP,
163
163
  ORCHESTRATOR_NAME,
@@ -5,18 +5,18 @@ import {
5
5
  import {
6
6
  effectiveRetrievalOutcomes,
7
7
  readAuthoritativeKnowledgeCounterRollups
8
- } from "./index-d6bs0p6d.js";
8
+ } from "./index-9txyxbqc.js";
9
9
  import {
10
10
  ALLOWED_SKILL_PATH_PREFIXES,
11
11
  validateSkillPath
12
- } from "./index-vs7b2pqm.js";
12
+ } from "./index-wfh89qct.js";
13
13
  import {
14
14
  computeOutcomeSignal,
15
15
  readKnowledge,
16
16
  resolveHiveKnowledgePath,
17
17
  resolveSwarmKnowledgePath,
18
18
  transactKnowledge
19
- } from "./index-5134766r.js";
19
+ } from "./index-r60cw2jt.js";
20
20
  import {
21
21
  appendCappedJsonl,
22
22
  resolveRetentionCap
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  init_schema,
10
10
  stripKnownSwarmPrefix
11
- } from "./index-4rq1d5k5.js";
11
+ } from "./index-q2yk70rs.js";
12
12
  import {
13
13
  init_constants
14
14
  } from "./index-sxt7fgcw.js";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  init_loader,
4
4
  loadPluginConfigWithMeta
5
- } from "./index-m1j1rth6.js";
5
+ } from "./index-5a8q4qr5.js";
6
6
  import {
7
7
  init_schema
8
- } from "./index-4rq1d5k5.js";
8
+ } from "./index-q2yk70rs.js";
9
9
  import {
10
10
  DEFAULT_WORKTREE_ISOLATION_CONFIG,
11
11
  init_constants
@@ -26,7 +26,7 @@ import {
26
26
  protectedRoots,
27
27
  redactDecisionLineForArchive,
28
28
  stableCanonicalStringify
29
- } from "./index-4sf357vj.js";
29
+ } from "./index-dsgc303n.js";
30
30
  import {
31
31
  canonicalProjectKey,
32
32
  closeGroupCommitWriter,
@@ -39,7 +39,7 @@ import {
39
39
  readDoctorArtifact,
40
40
  removeStraySwarmDir,
41
41
  runConfigDoctor
42
- } from "./index-wn9gf91x.js";
42
+ } from "./index-qdy4a48x.js";
43
43
  import {
44
44
  MAX_TRANSIENT_RETRIES,
45
45
  archiveEvidence,
@@ -81,7 +81,7 @@ import {
81
81
  updateTaskStatus,
82
82
  validateProjectRoot,
83
83
  withPlanLifecycleLock
84
- } from "./index-dr1ym009.js";
84
+ } from "./index-vqb65csb.js";
85
85
  import {
86
86
  EvaluationTaskV1Schema,
87
87
  GateAuditManifestV1Schema,
@@ -146,15 +146,15 @@ import {
146
146
  retireSkill,
147
147
  selectCandidateEntries,
148
148
  syncBundledProjectSkillsIfMissingAsync
149
- } from "./index-9cp6bhx9.js";
149
+ } from "./index-d79q2f8z.js";
150
150
  import {
151
151
  readRecentEscalations
152
- } from "./index-8nbzfbjg.js";
152
+ } from "./index-0yffa3np.js";
153
153
  import {
154
154
  alreadyCuratedThisGeneration,
155
155
  claimNextScanBatch,
156
156
  resolveCohortId
157
- } from "./index-cdee25pp.js";
157
+ } from "./index-04ph4jp2.js";
158
158
  import {
159
159
  CURATOR_CONSOLIDATION_PROMPT,
160
160
  CURATOR_INIT_PROMPT,
@@ -186,7 +186,7 @@ import {
186
186
  listCoderSettlementWalStates,
187
187
  recoverCoderSettlement,
188
188
  recoverStaleCoderSettlements
189
- } from "./index-3zzyxs7q.js";
189
+ } from "./index-gq2zdxep.js";
190
190
  import {
191
191
  parsePorcelainV2Snapshot,
192
192
  resolveCommitCountSince,
@@ -257,7 +257,7 @@ import {
257
257
  transitionTaskWorkflowEvidence,
258
258
  withTaskEvidenceTransaction,
259
259
  writeWorkflowWalFile
260
- } from "./index-3jwamrzw.js";
260
+ } from "./index-rrc08h4q.js";
261
261
  import {
262
262
  isPathUnderSwarmWorktreeBase,
263
263
  listLiveLaneOwners,
@@ -266,7 +266,7 @@ import {
266
266
  recordLiveLaneOwner,
267
267
  removeWorktree,
268
268
  resolveWorktreeBaseDir
269
- } from "./index-rdjmbeex.js";
269
+ } from "./index-mazy938h.js";
270
270
  import {
271
271
  DEFAULT_STALE_DELEGATION_TIMEOUT_MS,
272
272
  DELEGATION_COMPACTION_HIGH_WATER_BYTES,
@@ -300,7 +300,7 @@ import {
300
300
  scanBackgroundCoderReservationsForAdmission,
301
301
  scanDelegationsForRecovery,
302
302
  sweepStaleDelegations
303
- } from "./index-xm0131fx.js";
303
+ } from "./index-qcy7eg6z.js";
304
304
  import {
305
305
  MAX_EVENT_LOG_ENTRIES,
306
306
  _internals,
@@ -316,7 +316,7 @@ import {
316
316
  recordKnowledgeEvent,
317
317
  recordPhaseCloseIntent,
318
318
  resolveKnowledgeEventsPath
319
- } from "./index-d6bs0p6d.js";
319
+ } from "./index-9txyxbqc.js";
320
320
  import {
321
321
  estimateTokens,
322
322
  readSwarmFileAsync,
@@ -342,7 +342,7 @@ import {
342
342
  validateActionableFields,
343
343
  validateLesson,
344
344
  validateSkillPath
345
- } from "./index-vs7b2pqm.js";
345
+ } from "./index-wfh89qct.js";
346
346
  import {
347
347
  MAX_CURATION_PROPOSALS,
348
348
  authorizeCuration,
@@ -353,7 +353,7 @@ import {
353
353
  } from "./index-rtry5xyf.js";
354
354
  import {
355
355
  resolveWorktreeIsolationConfig
356
- } from "./index-s7h6txsk.js";
356
+ } from "./index-e7yv4xw1.js";
357
357
  import {
358
358
  RetrospectiveEvidenceSchema
359
359
  } from "./index-3qf1vxtb.js";
@@ -363,7 +363,7 @@ import {
363
363
  clearAllScopes,
364
364
  clearScopeBindingFromDisk,
365
365
  clearScopeBindings
366
- } from "./index-5vgd9st3.js";
366
+ } from "./index-j6rq132j.js";
367
367
  import {
368
368
  clearPlanLedgerForReset,
369
369
  computePlanStructureHash,
@@ -379,7 +379,7 @@ import {
379
379
  replayFromLedgerWithStatus,
380
380
  resolvePlanningProfile,
381
381
  takeSnapshotEvent
382
- } from "./index-7pae558g.js";
382
+ } from "./index-2ryy0cwt.js";
383
383
  import {
384
384
  CORE_EVENT_LOCKED,
385
385
  appendCoreEventSync,
@@ -462,7 +462,7 @@ import {
462
462
  transactFile,
463
463
  transactKnowledge,
464
464
  wordBigrams
465
- } from "./index-5134766r.js";
465
+ } from "./index-r60cw2jt.js";
466
466
  import {
467
467
  readTailJsonl,
468
468
  readTailJsonlDetailed,
@@ -531,7 +531,7 @@ import {
531
531
  loadGateOverrides,
532
532
  loadPluginConfig,
533
533
  loadPluginConfigWithMeta
534
- } from "./index-m1j1rth6.js";
534
+ } from "./index-5a8q4qr5.js";
535
535
  import {
536
536
  init_git_executable,
537
537
  resolveGitExecutable,
@@ -560,7 +560,7 @@ import {
560
560
  resolveAutoReviewConfig,
561
561
  resolveGeneratedAgentRole,
562
562
  stripKnownSwarmPrefix
563
- } from "./index-4rq1d5k5.js";
563
+ } from "./index-q2yk70rs.js";
564
564
  import {
565
565
  AGENT_TOOL_MAP,
566
566
  ALL_AGENT_NAMES,
@@ -3174,7 +3174,7 @@ async function importLegacyPrWorkflowGateStateIfNeeded(directory, sessionID, all
3174
3174
  return null;
3175
3175
  throw error2;
3176
3176
  }
3177
- const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-03367gvd.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
3177
+ const legacy = allowSalvagedImport ? (await (await import("./pr-workflow-gate-hmdht1he.js")).readPrWorkflowGateStateForRecovery(directory, sessionID))?.state ?? null : await readPrWorkflowGateStateFileFromDisk(filePath, sessionID);
3178
3178
  if (!legacy)
3179
3179
  return null;
3180
3180
  const namespace = workflowGateStateCoordinationNamespace(sessionID);
@@ -3244,7 +3244,7 @@ async function deleteStateWhileLocked(directory, sessionID, options = {}) {
3244
3244
  let recoveryState = null;
3245
3245
  if (!currentAuthoritative) {
3246
3246
  if (options.allowSalvagedRead) {
3247
- const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-03367gvd.js");
3247
+ const { readPrWorkflowGateStateForRecovery } = await import("./pr-workflow-gate-hmdht1he.js");
3248
3248
  recoveryState = (await readPrWorkflowGateStateForRecovery(directory, normalizedSessionID))?.state ?? null;
3249
3249
  }
3250
3250
  if (!recoveryState) {
@@ -13828,7 +13828,7 @@ function isLaneOwnedByCurrentSession(branchName, expectedSessionId) {
13828
13828
  return extracted === expectedSessionId;
13829
13829
  }
13830
13830
  async function inspectStandardWorktreeCollisionOwnership(identity) {
13831
- const collisionOwnership = await import("./worktree-collision-ownership-6mgm8p9g.js");
13831
+ const collisionOwnership = await import("./worktree-collision-ownership-1tzw8qzp.js");
13832
13832
  return collisionOwnership.inspectStandardWorktreeCollisionOwnership(identity);
13833
13833
  }
13834
13834
  async function runRecoveryGit(directory, args, timeoutMs = 15000) {
@@ -14254,7 +14254,7 @@ async function precreateStandardWorktreeSession(args) {
14254
14254
  const laneProfile = computeLaneRuntimeProfile(worktreeConfig.runtime_isolation, laneIndex, handle.worktreePath);
14255
14255
  if (laneProfile) {
14256
14256
  try {
14257
- const { writeLaneProfileToDiskReal } = await import("./core-2znms60v.js");
14257
+ const { writeLaneProfileToDiskReal } = await import("./core-aa3jmzcs.js");
14258
14258
  await writeLaneProfileToDiskReal(handle.worktreePath, laneProfile.laneIndex, laneProfile.envOverrides);
14259
14259
  } catch {}
14260
14260
  }
@@ -15225,7 +15225,7 @@ async function finishStandardWorktreeDispatch(directory, dispatch, config, callI
15225
15225
  }
15226
15226
  clearWorktreeMergeStatus(statusKey);
15227
15227
  try {
15228
- const { removeLaneProfileFromDiskReal } = await import("./core-2znms60v.js");
15228
+ const { removeLaneProfileFromDiskReal } = await import("./core-aa3jmzcs.js");
15229
15229
  await removeLaneProfileFromDiskReal(dispatch.handle.worktreePath, dispatch.laneIndex);
15230
15230
  } catch {}
15231
15231
  const state = serializationStateBySessionID.get(dispatch.parentSessionID);
@@ -21821,7 +21821,7 @@ function getDisplayFinalPromptPressure() {
21821
21821
  async function rehydratePrSubscriptions(sessionID, directory) {
21822
21822
  const map = new Map;
21823
21823
  try {
21824
- const { listActive: listActive2 } = await import("./pr-subscriptions-t51vcrvd.js");
21824
+ const { listActive: listActive2 } = await import("./pr-subscriptions-krv0jvds.js");
21825
21825
  const records = await listActive2(directory);
21826
21826
  for (const record of records) {
21827
21827
  if (record.sessionID !== sessionID)
@@ -38200,9 +38200,9 @@ function hashContent(content) {
38200
38200
  return createHash23("sha1").update(content).digest("hex");
38201
38201
  }
38202
38202
  async function loadConfigForPolicyCurator(directory) {
38203
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-ht5hmsce.js");
38203
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-r8tv8dqm.js");
38204
38204
  try {
38205
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-rkj71ej6.js");
38205
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-ph94evsh.js");
38206
38206
  const { config: loadedConfig } = loadPluginConfigWithMeta2(directory);
38207
38207
  return KnowledgeConfigSchema2.parse(loadedConfig.knowledge ?? {});
38208
38208
  } catch {
@@ -41260,7 +41260,7 @@ async function resolveCuratorLLMDelegate(directory, mode, sessionId) {
41260
41260
  const seam = _internals35.createCuratorLLMDelegate;
41261
41261
  if (seam)
41262
41262
  return seam(directory, mode, sessionId);
41263
- const { createCuratorLLMDelegate } = await import("./curator-llm-factory-exke3rag.js");
41263
+ const { createCuratorLLMDelegate } = await import("./curator-llm-factory-nshzhgs4.js");
41264
41264
  return createCuratorLLMDelegate(directory, mode, sessionId);
41265
41265
  }
41266
41266
  async function reconcileCloseTerminalStateForPlan(directory, targetPlan, options) {
@@ -41655,7 +41655,7 @@ async function runFinalizeStage(ctx) {
41655
41655
  }
41656
41656
  }
41657
41657
  try {
41658
- const { CuratorConfigSchema: CCS } = await import("./schema-ht5hmsce.js");
41658
+ const { CuratorConfigSchema: CCS } = await import("./schema-r8tv8dqm.js");
41659
41659
  const { config: pmLoadedConfig } = _internals35.loadPluginConfigWithMeta(ctx.directory);
41660
41660
  const curatorCfg = CCS.parse(pmLoadedConfig.curator ?? {});
41661
41661
  if (curatorCfg.enabled && curatorCfg.postmortem_enabled) {
@@ -42943,7 +42943,7 @@ function effectiveEntryMtime(entryPath, ownMtimeMs) {
42943
42943
  return ownMtimeMs;
42944
42944
  return newest;
42945
42945
  }
42946
- function listPruneCandidates(dir, maxScan) {
42946
+ function listPruneCandidates(dir, maxScan, includeEntry = () => true) {
42947
42947
  const candidates = [];
42948
42948
  const refusedSymlinks = [];
42949
42949
  let names;
@@ -42960,6 +42960,8 @@ function listPruneCandidates(dir, maxScan) {
42960
42960
  refusedSymlinks.push(name);
42961
42961
  continue;
42962
42962
  }
42963
+ if (!includeEntry(name, stat6))
42964
+ continue;
42963
42965
  candidates.push({
42964
42966
  name,
42965
42967
  mtimeMs: stat6.isDirectory() ? effectiveEntryMtime(entryPath, stat6.mtimeMs) : stat6.mtimeMs
@@ -42971,7 +42973,7 @@ function listPruneCandidates(dir, maxScan) {
42971
42973
  async function pruneDirectory(dir, opts) {
42972
42974
  const now2 = opts.now ?? Date.now();
42973
42975
  const maxScan = opts.maxScan ?? 1e5;
42974
- const { candidates } = listPruneCandidates(dir, maxScan);
42976
+ const { candidates } = listPruneCandidates(dir, maxScan, opts.includeEntry);
42975
42977
  if (candidates.length === 0)
42976
42978
  return 0;
42977
42979
  candidates.sort((a, b) => a.mtimeMs === b.mtimeMs ? a.name < b.name ? -1 : a.name > b.name ? 1 : 0 : a.mtimeMs - b.mtimeMs);
@@ -43020,16 +43022,30 @@ var PR_REVIEW_KEEP_NEWEST_RUNS = 50;
43020
43022
  var LANE_RESULTS_KEEP_NEWEST_BATCHES = 100;
43021
43023
  var REVIEW_RECEIPTS_KEEP_NEWEST = 1000;
43022
43024
  var LEGACY_LEDGER_ARCHIVES_KEEP_NEWEST = 16;
43025
+ var PR_WORKFLOW_GATE_STATE_STEM = "[A-Za-z0-9_.-]+-[0-9a-f]{12}";
43026
+ var PR_WORKFLOW_GATE_STATE_NAME = new RegExp(`^${PR_WORKFLOW_GATE_STATE_STEM}\\.json$`);
43027
+ var PR_WORKFLOW_GATE_SIDECAR_NAME = new RegExp(`^${PR_WORKFLOW_GATE_STATE_STEM}\\.json(?:\\.imported(?:\\.[0-9]+)?|\\.sqlite-projection)$`);
43028
+ var isPrWorkflowGateStateProjection = (name, stat6) => stat6.isFile() && PR_WORKFLOW_GATE_STATE_NAME.test(name);
43029
+ var isPrWorkflowGateSidecar = (name, stat6) => stat6.isFile() && PR_WORKFLOW_GATE_SIDECAR_NAME.test(name);
43023
43030
  function familiesFor(swarmRoot, now2) {
43024
43031
  const age = (days) => days * DAY_MS;
43025
43032
  const f = (label, rel, opts) => ({
43026
43033
  label,
43027
43034
  dir: path52.join(swarmRoot, rel),
43028
43035
  maxAgeMs: opts.maxAgeDays !== undefined ? age(opts.maxAgeDays) : undefined,
43029
- maxEntries: opts.maxEntries
43036
+ maxEntries: opts.maxEntries,
43037
+ includeEntry: opts.includeEntry
43030
43038
  });
43031
43039
  return [
43032
43040
  f("pr-feedback-events", "pr-feedback-events", { maxAgeDays: 30 }),
43041
+ f("pr-workflow-gates", "pr-workflow-gates", {
43042
+ maxAgeDays: 30,
43043
+ includeEntry: isPrWorkflowGateStateProjection
43044
+ }),
43045
+ f("pr-workflow-gate-sidecars", "pr-workflow-gates", {
43046
+ maxAgeDays: 30,
43047
+ includeEntry: isPrWorkflowGateSidecar
43048
+ }),
43033
43049
  f("pr-review-reentry-shadows", path52.join("pr-review", "reentry-authorizations"), {
43034
43050
  maxAgeDays: 30
43035
43051
  }),
@@ -43092,7 +43108,8 @@ async function runRetentionSweep(projectRoot, options = {}) {
43092
43108
  maxAgeMs: family.maxAgeMs,
43093
43109
  maxEntries: family.maxEntries,
43094
43110
  now: now2,
43095
- dryRun
43111
+ dryRun,
43112
+ includeEntry: family.includeEntry
43096
43113
  });
43097
43114
  if (pruned > 0)
43098
43115
  result.pruned[family.label] = pruned;
@@ -43472,7 +43489,7 @@ function serializeAgentSession(s) {
43472
43489
  }
43473
43490
  async function writeSnapshot(directory, state) {
43474
43491
  try {
43475
- const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-zgfjjv9p.js");
43492
+ const { ensureSnapshotCoordinationReady } = await import("./snapshot-coordination-init-x18mwxyv.js");
43476
43493
  await ensureSnapshotCoordinationReady(directory);
43477
43494
  const snapshot = {
43478
43495
  version: 3,
@@ -46128,7 +46145,7 @@ function planMerges(active, threshold, maxComparisons, maxMerges) {
46128
46145
  };
46129
46146
  }
46130
46147
  async function sweepActiveNearDuplicates(directory, options = {}) {
46131
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-rkj71ej6.js");
46148
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-ph94evsh.js");
46132
46149
  const { config } = loadPluginConfigWithMeta2(directory);
46133
46150
  const sweepConfig = config.learning?.dedup_sweep;
46134
46151
  if (sweepConfig?.enabled === false)
@@ -47252,7 +47269,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
47252
47269
  }
47253
47270
  if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
47254
47271
  try {
47255
- const skillModule = await import("./skill-generator-tfm4kawf.js");
47272
+ const skillModule = await import("./skill-generator-syxa1mxm.js");
47256
47273
  for (const cand of skillCandidates) {
47257
47274
  if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
47258
47275
  continue;
@@ -47724,7 +47741,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
47724
47741
  } catch {}
47725
47742
  }
47726
47743
  if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
47727
- const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-4j6xgcvj.js");
47744
+ const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-kn74r5w8.js");
47728
47745
  for (const { id } of contradictedEntries) {
47729
47746
  try {
47730
47747
  await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
@@ -48556,7 +48573,7 @@ async function runCuratorPostMortem(directory, options = {}) {
48556
48573
  warnings.push("Failed to collect knowledge summary.");
48557
48574
  }
48558
48575
  try {
48559
- const { getScanStatus } = await import("./scan-cursor-nhxpv6tj.js");
48576
+ const { getScanStatus } = await import("./scan-cursor-b57xxs3q.js");
48560
48577
  const scanStatus = await getScanStatus(directory);
48561
48578
  if (scanStatus.remaining_estimate > 0) {
48562
48579
  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.`);
@@ -48728,9 +48745,9 @@ var _internals51 = {
48728
48745
  verifyPostMortemKnowledgeActions,
48729
48746
  repairPostMortemActions,
48730
48747
  loadDefaultKnowledgeConfig: async (directory) => {
48731
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-ht5hmsce.js");
48748
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-r8tv8dqm.js");
48732
48749
  try {
48733
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-rkj71ej6.js");
48750
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-ph94evsh.js");
48734
48751
  const loaded = loadPluginConfigWithMeta2(directory);
48735
48752
  return KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
48736
48753
  } catch {
@@ -48738,11 +48755,11 @@ var _internals51 = {
48738
48755
  }
48739
48756
  },
48740
48757
  applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig, generation) => {
48741
- const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-kc80aj6d.js");
48758
+ const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-xgpxtaf1.js");
48742
48759
  return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig, generation);
48743
48760
  },
48744
48761
  checkHivePromotions: async (entries2, knowledgeConfig, directory) => {
48745
- const { checkHivePromotions } = await import("./hive-promoter-02vxb018.js");
48762
+ const { checkHivePromotions } = await import("./hive-promoter-n262tkm3.js");
48746
48763
  return checkHivePromotions(entries2, knowledgeConfig, directory);
48747
48764
  },
48748
48765
  applyProposalTriage: async (directory, triage) => {
@@ -48751,7 +48768,7 @@ var _internals51 = {
48751
48768
  activateProposal,
48752
48769
  listSkills: listSkills2,
48753
48770
  sanitizeSlug
48754
- } = await import("./skill-generator-tfm4kawf.js");
48771
+ } = await import("./skill-generator-syxa1mxm.js");
48755
48772
  const result = {
48756
48773
  approved: [],
48757
48774
  rejected: [],
@@ -57624,9 +57641,9 @@ var _internals60 = {
57624
57641
  loadPluginConfigWithMeta,
57625
57642
  loadCuratorDeps: async () => {
57626
57643
  const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate }] = await Promise.all([
57627
- import("./schema-ht5hmsce.js"),
57628
- import("./curator-kc80aj6d.js"),
57629
- import("./curator-llm-factory-exke3rag.js")
57644
+ import("./schema-r8tv8dqm.js"),
57645
+ import("./curator-xgpxtaf1.js"),
57646
+ import("./curator-llm-factory-nshzhgs4.js")
57630
57647
  ]);
57631
57648
  return { CuratorConfigSchema, curator, createCuratorLLMDelegate };
57632
57649
  }
@@ -59535,7 +59552,7 @@ async function computeCurationDiagnostics(directory, entries2) {
59535
59552
  let scanCompleted = false;
59536
59553
  let scanRemaining = 0;
59537
59554
  try {
59538
- const { getScanStatus } = await import("./scan-cursor-nhxpv6tj.js");
59555
+ const { getScanStatus } = await import("./scan-cursor-b57xxs3q.js");
59539
59556
  const status = await getScanStatus(directory);
59540
59557
  scanGeneration = status.generation;
59541
59558
  scanCompleted = status.completed;
@@ -59545,10 +59562,10 @@ async function computeCurationDiagnostics(directory, entries2) {
59545
59562
  try {
59546
59563
  const { isLinked: isLinked2 } = await import("./knowledge-link-vh9pfnb9.js");
59547
59564
  if (isLinked2(directory)) {
59548
- const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-ht5hmsce.js");
59565
+ const { KnowledgeConfigSchema: KnowledgeConfigSchema2 } = await import("./schema-r8tv8dqm.js");
59549
59566
  let config;
59550
59567
  try {
59551
- const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-rkj71ej6.js");
59568
+ const { loadPluginConfigWithMeta: loadPluginConfigWithMeta2 } = await import("./index-ph94evsh.js");
59552
59569
  const loaded = loadPluginConfigWithMeta2(directory);
59553
59570
  config = KnowledgeConfigSchema2.parse(loaded.config.knowledge ?? {});
59554
59571
  } catch {
@@ -60946,7 +60963,7 @@ async function handleDoctorCommand(directory, args) {
60946
60963
  const result = runConfigDoctor(config, directory);
60947
60964
  let output;
60948
60965
  if (enableAutoFix && result.hasAutoFixableIssues) {
60949
- const { runConfigDoctorWithFixes } = await import("./config-doctor-vwy3c9g9.js");
60966
+ const { runConfigDoctorWithFixes } = await import("./config-doctor-zr748h4m.js");
60950
60967
  const fixResult = await runConfigDoctorWithFixes(directory, config, true, {
60951
60968
  applyLossy: true
60952
60969
  });
@@ -61900,7 +61917,7 @@ async function handleEvidenceCommand(directory, args) {
61900
61917
  return formatTaskEvidenceMarkdown(evidenceData);
61901
61918
  }
61902
61919
  async function handleEvidenceSummaryCommand(directory) {
61903
- const { buildEvidenceSummary } = await import("./evidence-summary-service-g3gr1pfs.js");
61920
+ const { buildEvidenceSummary } = await import("./evidence-summary-service-5e2323zr.js");
61904
61921
  const artifact = await buildEvidenceSummary(directory);
61905
61922
  if (!artifact) {
61906
61923
  return "No plan found. Run `/swarm plan` to check plan status.";
@@ -81904,7 +81921,7 @@ function createCuratorLLMDelegate(directory, mode = "init", sessionId) {
81904
81921
  }
81905
81922
  const sdkOpts = signal ? { signal } : {};
81906
81923
  try {
81907
- const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-2j0pd6sj.js");
81924
+ const { getSwarmAgents: getSwarmAgents2, resolveFallbackModel: resolveFallbackModel2 } = await import("./index-jr6pypmj.js");
81908
81925
  const createResult = await client.session.create({
81909
81926
  ...sessionId ? {
81910
81927
  body: {
@@ -98737,7 +98754,7 @@ function buildDetailedHelp(commandName, entry) {
98737
98754
  async function handleHelpCommand(ctx) {
98738
98755
  const targetCommand = ctx.args.join(" ");
98739
98756
  if (!targetCommand) {
98740
- const { buildHelpText } = await import("./index-ztxh3nmf.js");
98757
+ const { buildHelpText } = await import("./index-9vfp6g53.js");
98741
98758
  return buildHelpText();
98742
98759
  }
98743
98760
  const tokens = targetCommand.split(/\s+/);
@@ -98751,7 +98768,7 @@ async function handleHelpCommand(ctx) {
98751
98768
  > Note: \`/swarm ${resolved.key}\` is a deprecated alias for \`/swarm ${aliasTarget}\`.` : detailed;
98752
98769
  }
98753
98770
  const similar = _internals24.findSimilarCommands(targetCommand);
98754
- const { buildHelpText: fullHelp } = await import("./index-ztxh3nmf.js");
98771
+ const { buildHelpText: fullHelp } = await import("./index-9vfp6g53.js");
98755
98772
  if (similar.length > 0) {
98756
98773
  return `Command '/swarm ${targetCommand}' not found.
98757
98774
 
@@ -99066,7 +99083,7 @@ var COMMAND_REGISTRY = {
99066
99083
  },
99067
99084
  "guardrail explain": {
99068
99085
  handler: async (ctx) => {
99069
- const { handleGuardrailExplain } = await import("./guardrail-explain-pkbjswtd.js");
99086
+ const { handleGuardrailExplain } = await import("./guardrail-explain-d0h0p73g.js");
99070
99087
  return handleGuardrailExplain(ctx.directory, ctx.args);
99071
99088
  },
99072
99089
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -99076,7 +99093,7 @@ var COMMAND_REGISTRY = {
99076
99093
  },
99077
99094
  "guardrail reset": {
99078
99095
  handler: async (ctx) => {
99079
- const { handleGuardrailReset } = await import("./guardrail-reset-v91p8ca6.js");
99096
+ const { handleGuardrailReset } = await import("./guardrail-reset-rdqxeqy0.js");
99080
99097
  return handleGuardrailReset(ctx.args, ctx.sessionID);
99081
99098
  },
99082
99099
  description: "Reset one exact active invocation/action circuit after repair",
@@ -99097,7 +99114,7 @@ var COMMAND_REGISTRY = {
99097
99114
  },
99098
99115
  "guardrail-log": {
99099
99116
  handler: async (ctx) => {
99100
- const { handleGuardrailLog } = await import("./guardrail-log-qx1tpeda.js");
99117
+ const { handleGuardrailLog } = await import("./guardrail-log-heejmjce.js");
99101
99118
  return handleGuardrailLog(ctx.directory, ctx.args);
99102
99119
  },
99103
99120
  description: "Read the guardrail decision log (use --blocks-only for blocks)",
@@ -14,7 +14,7 @@ import {
14
14
  reconcileLandedMerge,
15
15
  withTaskEvidenceTransaction,
16
16
  writeWorkflowWalFile
17
- } from "./index-3jwamrzw.js";
17
+ } from "./index-rrc08h4q.js";
18
18
  import {
19
19
  validateSwarmPath
20
20
  } from "./index-b3pmzbh1.js";
@@ -489,7 +489,7 @@ async function cleanupRecoveredWorktree(directory, descriptor) {
489
489
  awaitingMergeByCallID,
490
490
  cleanupStandardWorktreeForCallId,
491
491
  standardWorktreeByCallID
492
- } = await import("./worktree-isolation-02rr7t21.js");
492
+ } = await import("./worktree-isolation-ez0e48v3.js");
493
493
  standardWorktreeByCallID.delete(descriptor.callID);
494
494
  if (hasResidue)
495
495
  awaitingMergeByCallID.set(descriptor.callID, {
@@ -613,7 +613,7 @@ async function recoverCoderSettlement(directory, taskId) {
613
613
  awaitingMergeByCallID,
614
614
  finishStandardWorktreeDispatch,
615
615
  standardWorktreeByCallID
616
- } = await import("./worktree-isolation-02rr7t21.js");
616
+ } = await import("./worktree-isolation-ez0e48v3.js");
617
617
  const descriptor = wal.worktree;
618
618
  const reconstructedDispatch = {
619
619
  callID: descriptor.callID,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  computePlanStructureHash
4
- } from "./index-7pae558g.js";
4
+ } from "./index-2ryy0cwt.js";
5
5
  import {
6
6
  appendCoreEventSync
7
7
  } from "./index-6k5aq7b9.js";
@@ -33,7 +33,7 @@ import {
33
33
  } from "./index-nbdmdyke.js";
34
34
  import {
35
35
  PlanSchema
36
- } from "./index-m1j1rth6.js";
36
+ } from "./index-5a8q4qr5.js";
37
37
  import {
38
38
  init_path_identity,
39
39
  unsafePathTextReason