@tekmidian/pai 1.0.4 → 1.0.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 (137) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/dist/{auto-route-21GdHL70.mjs → auto-route-DUYr57rs.mjs} +2 -2
  3. package/dist/auto-route-DWYK_0i0.mjs +11 -0
  4. package/dist/budget-DX-VIWGf.mjs +15 -0
  5. package/dist/{caller-identity-yLFb7CKq.mjs → caller-identity-Bim8JT-D.mjs} +3 -3
  6. package/dist/{capacity-DEveQdFV.mjs → capacity-CsZMkVyg.mjs} +7 -4
  7. package/dist/{chain-D7PFur8Y.mjs → chain-Dzz6xcKH.mjs} +5 -5
  8. package/dist/cli/index.mjs +107 -91
  9. package/dist/{cockpit-actions-OodH_vx_.mjs → cockpit-actions-BTA1njMO.mjs} +27 -23
  10. package/dist/{cockpit-actions-BfRMr2sm.mjs → cockpit-actions-BgsiNcUY.mjs} +17 -17
  11. package/dist/cockpit-memory-DIrNs4xr.mjs +20 -0
  12. package/dist/config/defaults/config.yaml +3 -0
  13. package/dist/{config-XpZWOYOG.mjs → config-CST2uq1v.mjs} +29 -4
  14. package/dist/{config-Bu1_vbY8.mjs → config-DYbyEe4-.mjs} +2 -2
  15. package/dist/{config-DtENJ6cL.mjs → config-Dv3t7xnT.mjs} +1 -1
  16. package/dist/config-h5qK3fst.mjs +4 -0
  17. package/dist/{controls-JLm6g0yP.mjs → controls-OiVVbe-f.mjs} +15 -15
  18. package/dist/daemon/index.mjs +37 -36
  19. package/dist/{daemon-nXanenDM.mjs → daemon-C1dycZ3W.mjs} +28 -26
  20. package/dist/daemon-ieo0lnpq.mjs +46 -0
  21. package/dist/daemon-mcp/index.mjs +34 -34
  22. package/dist/detect-C0ZBXqDL.mjs +10 -0
  23. package/dist/{detect-BLKsUOgG.mjs → detect-CHuxFrLy.mjs} +2 -2
  24. package/dist/{embed-pass-e64AwDCa.mjs → embed-pass-DtVF2fOV.mjs} +4 -4
  25. package/dist/{embedding-gate-Cnk4YCyX.mjs → embedding-gate-B98PK_wz.mjs} +2 -2
  26. package/dist/{embedding-gate-6rZrWRXa.mjs → embedding-gate-CTAk8STe.mjs} +2 -2
  27. package/dist/{endreason-BC-v05H_.mjs → endreason-BqyyU7BH.mjs} +4 -4
  28. package/dist/{factory-B7nv75rC.mjs → factory-BV0MQA3T.mjs} +4 -4
  29. package/dist/{factory-Bs9imVMq.mjs → factory-DeASMV7Z.mjs} +4 -4
  30. package/dist/{fallback-CBWpp2F2.mjs → fallback-Bj2cyVk_.mjs} +6 -6
  31. package/dist/{health-C4FQmkJn.mjs → health-kufVIf6i.mjs} +4 -4
  32. package/dist/{helpers-DSNK_1KP.mjs → helpers-CvbYEKoD.mjs} +2 -2
  33. package/dist/{helpers-Dz7mjTSw.mjs → helpers-WV8tdQHM.mjs} +5 -5
  34. package/dist/hooks/block-sleep-poll.mjs +1 -1
  35. package/dist/hooks/load-project-context.mjs +7 -7
  36. package/dist/hooks/local-model-hint.mjs +1 -1
  37. package/dist/hooks/route-agents-to-worker.mjs +1 -1
  38. package/dist/hooks/security-validator.mjs +2 -2
  39. package/dist/hooks/worker-edit-repair.mjs +2 -2
  40. package/dist/hooks/worker-guard.mjs +8 -8
  41. package/dist/hooks/worker-note.mjs +2 -2
  42. package/dist/hooks/worker-pool-host.mjs +106 -46
  43. package/dist/hooks/worker-proxy.mjs +1 -1
  44. package/dist/hooks/worker-status-line.mjs +16 -16
  45. package/dist/hooks/worker-supervision.mjs +1 -1
  46. package/dist/hooks/worker-tool-name-repair.mjs +2 -2
  47. package/dist/index.mjs +8 -8
  48. package/dist/{indexer-backend-BdjeL4P8.mjs → indexer-backend-B2vtFl38.mjs} +13 -13
  49. package/dist/kill-tree-CXZ0WfVf.mjs +10 -0
  50. package/dist/{kill-tree-DleMNZX3.mjs → kill-tree-CcpsRLCZ.mjs} +7 -7
  51. package/dist/{launch-Di7N-J5X.mjs → launch-DpQPZGsT.mjs} +3 -3
  52. package/dist/{launch-DlZTKE3u.mjs → launch-UPQBoW2q.mjs} +3 -3
  53. package/dist/{local-candidate-DLdwQt0s.mjs → local-candidate-Cp_bw4kK.mjs} +3 -3
  54. package/dist/{local-instances-ZeRkkuS5.mjs → local-instances-B-c-CxzP.mjs} +4 -4
  55. package/dist/{local-instances-DOxSgT_L.mjs → local-instances-bdCNNSsL.mjs} +2 -2
  56. package/dist/{local-tiers-BE4jGaMa.mjs → local-tiers-BtdEEe5n.mjs} +2 -2
  57. package/dist/{local-tiers-DNMI5W86.mjs → local-tiers-OBqAAfOg.mjs} +3 -3
  58. package/dist/{main-config-ops-kTXR8Pyv.mjs → main-config-ops-BYsK3BxM.mjs} +3 -3
  59. package/dist/{main-resolver-yp_puSSb.mjs → main-resolver-CAC3xfZM.mjs} +17 -17
  60. package/dist/{model-inventory-h6Z9fN_o.mjs → model-inventory-BuTpi9a6.mjs} +13 -13
  61. package/dist/{models-add-TVni3A7V.mjs → models-add-CJx2YAwh.mjs} +36 -35
  62. package/dist/operator-Bpxq_WB5.mjs +7 -0
  63. package/dist/{operator-CyuB3aVw.mjs → operator-DrwWItVt.mjs} +2 -2
  64. package/dist/{pai-marker-BcZyJguM.mjs → pai-marker-DLKJ9Yr5.mjs} +2 -2
  65. package/dist/{pane-audit-Lqy9N_Ki.mjs → pane-audit-wv9UkyCe.mjs} +8 -8
  66. package/dist/{paths-CFHTloSe.mjs → paths-DBd78I7Z.mjs} +3 -3
  67. package/dist/{paths-CHifubDh.mjs → paths-DS5VQKoR.mjs} +3 -3
  68. package/dist/{planner-j77ndkBf.mjs → planner-K0mFrCpL.mjs} +28 -28
  69. package/dist/{pool-Dh-q3iJi.mjs → pool-BZ94nFuq.mjs} +2 -2
  70. package/dist/{pool-cli-BggU8GRp.mjs → pool-cli-B1eKySeN.mjs} +5 -5
  71. package/dist/{pool-cli-DQ6OzRy2.mjs → pool-cli-BjYQDfx6.mjs} +6 -6
  72. package/dist/{postgres-DNIOQijl.mjs → postgres-C-T5OWer.mjs} +3 -3
  73. package/dist/{postgres-BK4FP9Zg.mjs → postgres-CBHY5PIi.mjs} +3 -3
  74. package/dist/{project-setup-CBRtFFh0.mjs → project-setup-pIPHZaXf.mjs} +24 -24
  75. package/dist/{providers-C9QC0TtO.mjs → providers-Dzx5GAUI.mjs} +6 -6
  76. package/dist/providers-QJzpaNhX.mjs +16 -0
  77. package/dist/{registrable-DpyTtajg.mjs → registrable-CXBBpUcz.mjs} +4 -4
  78. package/dist/registrable-Drn8wIDO.mjs +9 -0
  79. package/dist/render-C4KR8qQ8.mjs +13 -0
  80. package/dist/{render-C84BqQRC.mjs → render-Cz3BWIBO.mjs} +8 -8
  81. package/dist/root-Bfb1zgwE.mjs +36 -0
  82. package/dist/{root-C4oXlXS_.mjs → root-bG48WVpW.mjs} +10 -10
  83. package/dist/route-table-ZVMNBsy7.mjs +15 -0
  84. package/dist/{routing-DmkheCRH.mjs → routing-BlD_tKjW.mjs} +15 -15
  85. package/dist/{routing-f2zulGwD.mjs → routing-D27jxj9x.mjs} +13 -13
  86. package/dist/{run-BwZKBJZZ.mjs → run-AZVwceiU.mjs} +35 -27
  87. package/dist/{scan-BBGvU5EB.mjs → scan-C3uotg_f.mjs} +5 -5
  88. package/dist/{scope-D-h6F6DN.mjs → scope-D8HK6vU7.mjs} +4 -4
  89. package/dist/{session-Dn5OJXlg.mjs → session-BAfypQb9.mjs} +26 -26
  90. package/dist/session-BcnhepLZ.mjs +35 -0
  91. package/dist/{session-scan-DUn10MBd.mjs → session-scan-BmnjSReu.mjs} +5 -5
  92. package/dist/session-scan-CqUQdCac.mjs +9 -0
  93. package/dist/{session-usage-CPvXvSkw.mjs → session-usage-oycSdiD3.mjs} +117 -2
  94. package/dist/{status-ggJ7lgVg.mjs → status-COtzewKV.mjs} +3 -3
  95. package/dist/{status-Dm4dYciN.mjs → status-D_SWmOlH.mjs} +4 -4
  96. package/dist/{tool-errors-CJWODvlo.mjs → tool-errors-B2LnIqR0.mjs} +6 -6
  97. package/dist/{tool-errors-7E13StWd.mjs → tool-errors-DXJ70-sr.mjs} +2 -2
  98. package/dist/{viewer-wfKnvnrI.mjs → viewer-BgGRqXfD.mjs} +14 -14
  99. package/dist/viewer-CbGN2Ri4.mjs +22 -0
  100. package/dist/{wait-ByV0OyMZ.mjs → wait-ChpHKJZV.mjs} +3 -3
  101. package/dist/worker-config-D1KVAMp4.mjs +42 -0
  102. package/dist/{worker-config-eY5Qy4vl.mjs → worker-config-DgdT0iTB.mjs} +139 -33
  103. package/dist/workers-config-BhZBrR-Q.mjs +4 -0
  104. package/dist/{worktree-CRs2gyg0.mjs → worktree-BY--Rgmy.mjs} +5 -5
  105. package/dist/{zettelkasten-tpCRBYvH.mjs → zettelkasten-BHVx5zj-.mjs} +3 -3
  106. package/dist/{zettelkasten-_h_tUm2T.mjs → zettelkasten-LoH9RBiN.mjs} +2 -2
  107. package/docs/commands/README.md +1 -0
  108. package/docs/commands/config.md +20 -0
  109. package/gemini-extension.json +1 -1
  110. package/package.json +1 -1
  111. package/pai-plugin.json +1 -1
  112. package/plugins/context-preservation/plugin.json +1 -1
  113. package/plugins/core/plugin.json +1 -1
  114. package/plugins/creative/plugin.json +1 -1
  115. package/plugins/observability/plugin.json +1 -1
  116. package/plugins/productivity/plugin.json +1 -1
  117. package/plugins/semantic-search/plugin.json +1 -1
  118. package/plugins/ui/plugin.json +1 -1
  119. package/plugins/zettelkasten/plugin.json +1 -1
  120. package/dist/auto-route-C3S2W3Bc.mjs +0 -11
  121. package/dist/budget-BrloTOZW.mjs +0 -15
  122. package/dist/cockpit-memory-teG9M8bG.mjs +0 -20
  123. package/dist/config-Cxi-aBf4.mjs +0 -4
  124. package/dist/daemon-DeYImF1F.mjs +0 -45
  125. package/dist/detect-Rrimh0xc.mjs +0 -10
  126. package/dist/kill-tree-SV6hrIa3.mjs +0 -10
  127. package/dist/operator-BTqvTIc8.mjs +0 -7
  128. package/dist/providers-FvCLzFge.mjs +0 -16
  129. package/dist/registrable-BzH4TObg.mjs +0 -9
  130. package/dist/render-B35bQTE-.mjs +0 -13
  131. package/dist/root-DD1xx_Vu.mjs +0 -36
  132. package/dist/route-table-FEfDuhIV.mjs +0 -15
  133. package/dist/session-BAhtXdxj.mjs +0 -35
  134. package/dist/session-scan-B57dNuA4.mjs +0 -9
  135. package/dist/viewer-DEySE4c_.mjs +0 -22
  136. package/dist/worker-config-CO5FXLAT.mjs +0 -41
  137. package/dist/workers-config-f8KrkY4L.mjs +0 -4
@@ -1,43 +1,43 @@
1
1
  #!/usr/bin/env node
2
2
  import "../utils-J2b9y8PC.mjs";
3
3
  import { g as paiHomePath } from "../runtime-paths-WsO9sJFc.mjs";
4
- import { Tt as ledgerSummary, a as MODEL_CAPABILITIES, f as escalationCloud, j as readWorkersSection, m as isLocalProvider, n as CAPABILITY_NAME_RE, p as getProviderOrNative } from "../config-XpZWOYOG.mjs";
5
- import { S as MainConfigError, c as loadConfig, n as CONFIG_FILE } from "../config-Bu1_vbY8.mjs";
6
- import { i as ledgerPath, u as workersLogDir } from "../paths-CHifubDh.mjs";
7
- import "../worktree-CRs2gyg0.mjs";
8
- import { A as setWorkerLabel, C as nowStamp, O as reconcileStatuses, g as isLive, o as ageOf, v as loadStatus, y as loadStatuses } from "../status-ggJ7lgVg.mjs";
9
- import "../pool-Dh-q3iJi.mjs";
4
+ import { Dt as ledgerSummary, M as readWorkersSection, a as MODEL_CAPABILITIES, f as escalationCloud, m as isLocalProvider, n as CAPABILITY_NAME_RE, p as getProviderOrNative } from "../config-CST2uq1v.mjs";
5
+ import { S as MainConfigError, c as loadConfig, n as CONFIG_FILE } from "../config-DYbyEe4-.mjs";
6
+ import { i as ledgerPath, u as workersLogDir } from "../paths-DS5VQKoR.mjs";
7
+ import "../worktree-BY--Rgmy.mjs";
8
+ import { A as setWorkerLabel, C as nowStamp, O as reconcileStatuses, g as isLive, o as ageOf, v as loadStatus, y as loadStatuses } from "../status-COtzewKV.mjs";
9
+ import "../pool-BZ94nFuq.mjs";
10
10
  import "../helpers-CRuBUas3.mjs";
11
11
  import { t as dropItermBundleId } from "../env-BE8mrsxr.mjs";
12
- import "../scope-D-h6F6DN.mjs";
13
- import { It as clearSessionRoute, J as inventoryRows, Sn as probeLoopback, W as currentInventory, fn as getProfile, hn as updateProfile, ln as detectSessionName, pn as profilesPath, qt as sessionRoutesPatch, vn as currentLocalStatus, z as INVENTORY_HEADERS } from "../routing-DmkheCRH.mjs";
14
- import "../tool-errors-7E13StWd.mjs";
15
- import "../wait-ByV0OyMZ.mjs";
16
- import "../local-tiers-BE4jGaMa.mjs";
17
- import { a as buildsDir, c as listBuilds, i as buildNext, p as renderBuildQueue, v as poolSlots } from "../caller-identity-yLFb7CKq.mjs";
18
- import { i as effectiveCap, l as reorderQueue, s as queueRows } from "../capacity-DEveQdFV.mjs";
19
- import "../local-instances-DOxSgT_L.mjs";
20
- import { a as localStatusReport } from "../local-candidate-DLdwQt0s.mjs";
21
- import "../factory-B7nv75rC.mjs";
22
- import "../postgres-DNIOQijl.mjs";
23
- import "../embedding-gate-6rZrWRXa.mjs";
12
+ import "../scope-D8HK6vU7.mjs";
13
+ import { Ft as clearSessionRoute, J as inventoryRows, Kt as sessionRoutesPatch, W as currentInventory, _n as currentLocalStatus, cn as detectSessionName, dn as getProfile, fn as profilesPath, mn as updateProfile, xn as probeLoopback, z as INVENTORY_HEADERS } from "../routing-BlD_tKjW.mjs";
14
+ import "../tool-errors-DXJ70-sr.mjs";
15
+ import "../wait-ChpHKJZV.mjs";
16
+ import "../local-tiers-BtdEEe5n.mjs";
17
+ import { a as buildsDir, c as listBuilds, i as buildNext, p as renderBuildQueue, v as poolSlots } from "../caller-identity-Bim8JT-D.mjs";
18
+ import { i as effectiveCap, l as reorderQueue, s as queueRows } from "../capacity-CsZMkVyg.mjs";
19
+ import "../local-instances-bdCNNSsL.mjs";
20
+ import { a as localStatusReport } from "../local-candidate-Cp_bw4kK.mjs";
21
+ import "../factory-BV0MQA3T.mjs";
22
+ import "../postgres-C-T5OWer.mjs";
23
+ import "../embedding-gate-CTAk8STe.mjs";
24
24
  import "../embeddings-BVq3esBF.mjs";
25
25
  import "../router-CQSc3lk3.mjs";
26
- import "../launch-Di7N-J5X.mjs";
27
- import { H as testProvider, a as resolveWorkers, c as reportOriginWithHost, f as dirtyPaths, i as liveResolveCtx, t as runWorker, u as startDetached } from "../run-BwZKBJZZ.mjs";
28
- import { A as tail, B as loadPlanStatus, C as readRunLog, D as resumeState, E as requestPlanStop, F as runLogPath, G as planRunId, Gt as handoffFromInside, J as queueLockPath, L as fmtElapsed, M as dirtyConflicts, P as loadPlan, S as planStopPath, X as sinceText, Y as readRunLock, b as idleText, j as PlanError, q as planLockPath, qt as readInbox, w as renderSchedule, x as planStatus } from "../controls-JLm6g0yP.mjs";
29
- import { a as endLabel } from "../endreason-BC-v05H_.mjs";
30
- import { D as deadlineLabel } from "../render-C84BqQRC.mjs";
31
- import { r as sayToWorker } from "../operator-CyuB3aVw.mjs";
32
- import "../kill-tree-DleMNZX3.mjs";
33
- import "../pool-cli-BggU8GRp.mjs";
34
- import { t as runChain } from "../chain-D7PFur8Y.mjs";
35
- import { C as schedulerLines, E as resolveSpecPath, S as withTarget, T as readSpecPrompt, _ as issueClaims, a as branchDiff, d as loadSettings, f as move, g as issueClaim, i as projectChecks, l as QueueStore, n as initProject, o as realQueueDeps, p as queueStatePath, r as isGitProject, s as acceptItems, t as formatCheck, u as again, v as issueStale, w as schedulerView, x as resolveTarget, y as providerCaps } from "../project-setup-CBRtFFh0.mjs";
36
- import "../pane-audit-Lqy9N_Ki.mjs";
37
- import { d as psOutput, f as replayOutput } from "../viewer-wfKnvnrI.mjs";
38
- import { i as fallbackStatusText, n as fallbackOn, r as fallbackStatus, t as fallbackOff } from "../fallback-CBWpp2F2.mjs";
39
- import { _ as unsetCapabilityPreference, a as describeCapabilities, b as useProvider, c as modelPrefsText, d as setCapabilityPreference, f as setClass, g as setWorkersEnabled, h as setProviderModel, l as removeProvider, m as setProviderEnabled, o as describeModels, p as setProviderCap, r as classTargetText, s as describeProviders, t as addProvider, u as resolveProviderName, v as unsetClass, y as updateProvider } from "../providers-C9QC0TtO.mjs";
40
- import { a as listConfigOp, i as getConfigValueOp, o as setConfigValueOp, s as unsetConfigValueOp, t as MainConfigOpsError } from "../main-config-ops-kTXR8Pyv.mjs";
26
+ import "../launch-DpQPZGsT.mjs";
27
+ import { H as testProvider, a as resolveWorkers, c as reportOriginWithHost, f as dirtyPaths, i as liveResolveCtx, t as runWorker, u as startDetached } from "../run-AZVwceiU.mjs";
28
+ import { A as tail, B as loadPlanStatus, C as readRunLog, D as resumeState, E as requestPlanStop, F as runLogPath, G as planRunId, Gt as handoffFromInside, J as queueLockPath, L as fmtElapsed, M as dirtyConflicts, P as loadPlan, S as planStopPath, X as sinceText, Y as readRunLock, b as idleText, j as PlanError, q as planLockPath, qt as readInbox, w as renderSchedule, x as planStatus } from "../controls-OiVVbe-f.mjs";
29
+ import { a as endLabel } from "../endreason-BqyyU7BH.mjs";
30
+ import { D as deadlineLabel } from "../render-Cz3BWIBO.mjs";
31
+ import { r as sayToWorker } from "../operator-DrwWItVt.mjs";
32
+ import "../kill-tree-CcpsRLCZ.mjs";
33
+ import "../pool-cli-B1eKySeN.mjs";
34
+ import { t as runChain } from "../chain-Dzz6xcKH.mjs";
35
+ import { C as schedulerLines, E as resolveSpecPath, S as withTarget, T as readSpecPrompt, _ as issueClaims, a as branchDiff, d as loadSettings, f as move, g as issueClaim, i as projectChecks, l as QueueStore, n as initProject, o as realQueueDeps, p as queueStatePath, r as isGitProject, s as acceptItems, t as formatCheck, u as again, v as issueStale, w as schedulerView, x as resolveTarget, y as providerCaps } from "../project-setup-pIPHZaXf.mjs";
36
+ import "../pane-audit-wv9UkyCe.mjs";
37
+ import { d as psOutput, f as replayOutput } from "../viewer-BgGRqXfD.mjs";
38
+ import { i as fallbackStatusText, n as fallbackOn, r as fallbackStatus, t as fallbackOff } from "../fallback-Bj2cyVk_.mjs";
39
+ import { _ as unsetCapabilityPreference, a as describeCapabilities, b as useProvider, c as modelPrefsText, d as setCapabilityPreference, f as setClass, g as setWorkersEnabled, h as setProviderModel, l as removeProvider, m as setProviderEnabled, o as describeModels, p as setProviderCap, r as classTargetText, s as describeProviders, t as addProvider, u as resolveProviderName, v as unsetClass, y as updateProvider } from "../providers-Dzx5GAUI.mjs";
40
+ import { a as listConfigOp, i as getConfigValueOp, o as setConfigValueOp, s as unsetConfigValueOp, t as MainConfigOpsError } from "../main-config-ops-BYsK3BxM.mjs";
41
41
  import { n as PaiClient } from "../ipc-client-CnYEF31R.mjs";
42
42
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
43
43
  import { basename, dirname, join, resolve } from "node:path";
@@ -6582,7 +6582,7 @@ function realDelegationDeps() {
6582
6582
  return {
6583
6583
  async resolveProject(project) {
6584
6584
  if (existsSync(project)) return resolve(project);
6585
- const { getProject } = await import("../helpers-Dz7mjTSw.mjs");
6585
+ const { getProject } = await import("../helpers-WV8tdQHM.mjs");
6586
6586
  const row = await getProject(project);
6587
6587
  if (!row) throw new Error(`no project "${project}" is registered`);
6588
6588
  return row.root_path;
@@ -0,0 +1,10 @@
1
+ import "./config-DYbyEe4-.mjs";
2
+ import "./helpers-CRuBUas3.mjs";
3
+ import "./factory-BV0MQA3T.mjs";
4
+ import "./postgres-C-T5OWer.mjs";
5
+ import "./embedding-gate-CTAk8STe.mjs";
6
+ import "./embeddings-BVq3esBF.mjs";
7
+ import "./router-CQSc3lk3.mjs";
8
+ import { n as formatDetection, r as formatDetectionJson, t as detectProject } from "./detect-CHuxFrLy.mjs";
9
+
10
+ export { detectProject };
@@ -1,4 +1,4 @@
1
- import { i as getRegistryBackend } from "./factory-B7nv75rC.mjs";
1
+ import { i as getRegistryBackend } from "./factory-BV0MQA3T.mjs";
2
2
  import { resolve } from "node:path";
3
3
 
4
4
  //#region src/cli/impl/detect.ts
@@ -92,4 +92,4 @@ function formatDetectionJson(d) {
92
92
 
93
93
  //#endregion
94
94
  export { formatDetection as n, formatDetectionJson as r, detectProject as t };
95
- //# sourceMappingURL=detect-BLKsUOgG.mjs.map
95
+ //# sourceMappingURL=detect-CHuxFrLy.mjs.map
@@ -1,8 +1,8 @@
1
1
  import { g as paiHomePath } from "./runtime-paths-WsO9sJFc.mjs";
2
2
  import { t as writeFileAtomic } from "./atomic-file-BorMa4T3.mjs";
3
- import { j as readWorkersSection, m as isLocalProvider } from "./config-XpZWOYOG.mjs";
4
- import { u as workersLogDir } from "./paths-CHifubDh.mjs";
5
- import { g as isLive, y as loadStatuses } from "./status-ggJ7lgVg.mjs";
3
+ import { M as readWorkersSection, m as isLocalProvider } from "./config-CST2uq1v.mjs";
4
+ import { u as workersLogDir } from "./paths-DS5VQKoR.mjs";
5
+ import { g as isLive, y as loadStatuses } from "./status-COtzewKV.mjs";
6
6
  import { readFileSync } from "node:fs";
7
7
  import { loadavg } from "node:os";
8
8
 
@@ -161,4 +161,4 @@ async function runEmbedCycle(d) {
161
161
 
162
162
  //#endregion
163
163
  export { EMBED_PASS_BATCH_SIZE as a, liveYieldCheck as c, runEmbedCycle as d, DEFAULT_EMBED_RESUME_MINUTES as i, readEmbedPasses as l, DEFAULT_EMBED_MAX_LOAD as n, formatEmbedStatus as o, DEFAULT_EMBED_MAX_MINUTES as r, lastRecordedEmbedPass as s, DEFAULT_EMBED_CYCLE_MAX_MINUTES as t, recordEmbedPass as u };
164
- //# sourceMappingURL=embed-pass-e64AwDCa.mjs.map
164
+ //# sourceMappingURL=embed-pass-DtVF2fOV.mjs.map
@@ -1,5 +1,5 @@
1
- import "./config-Bu1_vbY8.mjs";
2
- import { a as requireQueryEmbedding, i as measureThroughput, n as embedQuery, r as gateBackend, t as QUERY_PREFIX } from "./embedding-gate-6rZrWRXa.mjs";
1
+ import "./config-DYbyEe4-.mjs";
2
+ import { a as requireQueryEmbedding, i as measureThroughput, n as embedQuery, r as gateBackend, t as QUERY_PREFIX } from "./embedding-gate-CTAk8STe.mjs";
3
3
  import "./embeddings-BVq3esBF.mjs";
4
4
 
5
5
  export { embedQuery, gateBackend };
@@ -1,5 +1,5 @@
1
1
  import { g as paiHomePath } from "./runtime-paths-WsO9sJFc.mjs";
2
- import { c as loadConfig, i as defaults } from "./config-Bu1_vbY8.mjs";
2
+ import { c as loadConfig, i as defaults } from "./config-DYbyEe4-.mjs";
3
3
  import { t as LOCAL_PROBE_TIMEOUT_MS } from "./timeouts-1MLooEBB.mjs";
4
4
  import { n as configureEmbeddingModel, o as generateEmbeddings, t as EMBEDDING_DIM } from "./embeddings-BVq3esBF.mjs";
5
5
  import { createReadStream, createWriteStream, existsSync, mkdirSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
@@ -420,4 +420,4 @@ async function measureThroughput(backend, texts) {
420
420
 
421
421
  //#endregion
422
422
  export { requireQueryEmbedding as a, getConfiguredBackend as c, OLLAMA_ID as d, ollamaDefaultUrl as f, mismatchReason as h, measureThroughput as i, provisionOllama as l, bindingMatches as m, embedQuery as n, createBackend as o, LEGACY_EMBEDDING_BINDING as p, gateBackend as r, detectBackends as s, QUERY_PREFIX as t, OLLAMA_DEFAULT_MODEL as u };
423
- //# sourceMappingURL=embedding-gate-6rZrWRXa.mjs.map
423
+ //# sourceMappingURL=embedding-gate-CTAk8STe.mjs.map
@@ -1,7 +1,7 @@
1
1
  import { t as writeFileAtomic } from "./atomic-file-BorMa4T3.mjs";
2
- import { wt as appendLedger } from "./config-XpZWOYOG.mjs";
3
- import { r as eventsPath } from "./paths-CHifubDh.mjs";
4
- import { D as pidAlive } from "./status-ggJ7lgVg.mjs";
2
+ import { Et as appendLedger } from "./config-CST2uq1v.mjs";
3
+ import { r as eventsPath } from "./paths-DS5VQKoR.mjs";
4
+ import { D as pidAlive } from "./status-COtzewKV.mjs";
5
5
  import { appendFileSync, existsSync, readFileSync, unlinkSync } from "node:fs";
6
6
  import { join } from "node:path";
7
7
  import { execFileSync } from "node:child_process";
@@ -151,4 +151,4 @@ function appendStopEvent(logDir, id, stop) {
151
151
 
152
152
  //#endregion
153
153
  export { endLabel as a, endFields as i, callerDescription as n, parentInfo as o, decideEndReason as r, requestKill as s, appendStopEvent as t };
154
- //# sourceMappingURL=endreason-BC-v05H_.mjs.map
154
+ //# sourceMappingURL=endreason-BqyyU7BH.mjs.map
@@ -1,11 +1,11 @@
1
1
  import { _ as resolvePaiFile, d as defaultPaiHomeDir, g as paiHomePath } from "./runtime-paths-WsO9sJFc.mjs";
2
- import { M as postgresConnectionString, c as loadConfig, k as DEFAULT_PG_CONNECTION_TIMEOUT_MS } from "./config-Bu1_vbY8.mjs";
2
+ import { A as DEFAULT_PG_CONNECTION_TIMEOUT_MS, N as postgresConnectionString, c as loadConfig } from "./config-DYbyEe4-.mjs";
3
3
  import { a as parseSessionTitleChunk, c as yieldToEventLoop, f as fileContentHash, h as sha256File, i as isPathTooBroadForContentScan, n as chunkId, o as walkContentFiles, r as detectTier, s as walkMdFiles, t as INDEX_YIELD_EVERY, u as chunkMarkdown } from "./helpers-CRuBUas3.mjs";
4
4
  import { t as STOP_WORDS } from "./stop-words-DSEYQdNe.mjs";
5
5
  import { n as buildFtsQuery, r as isQuerySyntaxError } from "./search-RSyeQqj1.mjs";
6
6
  import { n as minOf, t as maxOf } from "./min-max-DrSRUaWQ.mjs";
7
- import { a as entityContentId, t as PostgresBackend } from "./postgres-DNIOQijl.mjs";
8
- import { p as LEGACY_EMBEDDING_BINDING } from "./embedding-gate-6rZrWRXa.mjs";
7
+ import { a as entityContentId, t as PostgresBackend } from "./postgres-C-T5OWer.mjs";
8
+ import { p as LEGACY_EMBEDDING_BINDING } from "./embedding-gate-CTAk8STe.mjs";
9
9
  import { i as deserializeEmbedding, r as cosineSimilarity } from "./embeddings-BVq3esBF.mjs";
10
10
  import { n as routeNotification } from "./router-CQSc3lk3.mjs";
11
11
  import { existsSync, mkdirSync, readFileSync, statSync } from "node:fs";
@@ -2915,4 +2915,4 @@ async function closeStorage() {
2915
2915
 
2916
2916
  //#endregion
2917
2917
  export { getStorageBackend as a, MergeError as c, getBackendOutage as d, humanDuration as f, getRegistryBackend as i, federationDbPath as l, createRegistryBackend as n, oldRegistryPath as o, createStorageBackend as r, registryDbPath as s, closeStorage as t, oldFederationPath as u };
2918
- //# sourceMappingURL=factory-B7nv75rC.mjs.map
2918
+ //# sourceMappingURL=factory-BV0MQA3T.mjs.map
@@ -1,8 +1,8 @@
1
- import "./config-Bu1_vbY8.mjs";
1
+ import "./config-DYbyEe4-.mjs";
2
2
  import "./helpers-CRuBUas3.mjs";
3
- import { a as getStorageBackend, i as getRegistryBackend, n as createRegistryBackend, r as createStorageBackend, t as closeStorage } from "./factory-B7nv75rC.mjs";
4
- import "./postgres-DNIOQijl.mjs";
5
- import "./embedding-gate-6rZrWRXa.mjs";
3
+ import { a as getStorageBackend, i as getRegistryBackend, n as createRegistryBackend, r as createStorageBackend, t as closeStorage } from "./factory-BV0MQA3T.mjs";
4
+ import "./postgres-C-T5OWer.mjs";
5
+ import "./embedding-gate-CTAk8STe.mjs";
6
6
  import "./embeddings-BVq3esBF.mjs";
7
7
  import "./router-CQSc3lk3.mjs";
8
8
 
@@ -1,9 +1,9 @@
1
1
  import { l as claudeHomeDir, t as aibrokerHomeDir } from "./runtime-paths-WsO9sJFc.mjs";
2
- import { F as writeWorkersSection, N as resolveModelCapability, P as resolveProviderKey, c as WorkersConfigError, j as readWorkersSection } from "./config-XpZWOYOG.mjs";
3
- import { D as readJsonStrict, O as writeJsonAtomic } from "./config-Bu1_vbY8.mjs";
4
- import { u as workersLogDir } from "./paths-CHifubDh.mjs";
5
- import { _ as resolveTarget } from "./routing-DmkheCRH.mjs";
6
- import { yt as psTable } from "./controls-JLm6g0yP.mjs";
2
+ import { F as resolveProviderKey, L as writeWorkersSection, M as readWorkersSection, P as resolveModelCapability, c as WorkersConfigError } from "./config-CST2uq1v.mjs";
3
+ import { O as readJsonStrict, k as writeJsonAtomic } from "./config-DYbyEe4-.mjs";
4
+ import { u as workersLogDir } from "./paths-DS5VQKoR.mjs";
5
+ import { _ as resolveTarget } from "./routing-BlD_tKjW.mjs";
6
+ import { yt as psTable } from "./controls-OiVVbe-f.mjs";
7
7
  import { existsSync, mkdirSync, readFileSync, unlinkSync, writeFileSync } from "node:fs";
8
8
  import { isAbsolute, join, relative } from "node:path";
9
9
  import { execFileSync, spawn } from "node:child_process";
@@ -494,4 +494,4 @@ function fallbackStatusText(s) {
494
494
 
495
495
  //#endregion
496
496
  export { DEFAULT_IDLE_SECS as a, fallbackStatusText as i, fallbackOn as n, commandToRun as o, fallbackStatus as r, runProbed as s, fallbackOff as t };
497
- //# sourceMappingURL=fallback-CBWpp2F2.mjs.map
497
+ //# sourceMappingURL=fallback-Bj2cyVk_.mjs.map
@@ -1,7 +1,7 @@
1
1
  import { g as paiHomePath } from "./runtime-paths-WsO9sJFc.mjs";
2
- import { t as ANTHROPIC_NATIVE } from "./config-XpZWOYOG.mjs";
3
- import { A as budgetSkipReason, D as budgetExceeded, E as budgetCache, M as budgetWall } from "./routing-DmkheCRH.mjs";
4
- import { n as tierProviderNames, t as isLocalCandidate } from "./local-candidate-DLdwQt0s.mjs";
2
+ import { t as ANTHROPIC_NATIVE } from "./config-CST2uq1v.mjs";
3
+ import { A as budgetSkipReason, D as budgetExceeded, E as budgetCache, M as budgetWall } from "./routing-BlD_tKjW.mjs";
4
+ import { n as tierProviderNames, t as isLocalCandidate } from "./local-candidate-Cp_bw4kK.mjs";
5
5
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
6
6
  import { Chalk } from "chalk";
7
7
 
@@ -311,4 +311,4 @@ function saveBudgetSnapshot(map, now = Date.now()) {
311
311
 
312
312
  //#endregion
313
313
  export { colorEnabled as a, renderCommandHelp as c, renderOverview as d, renderTable as f, saveBudgetSnapshot as i, renderMarkdown as l, usageLine as m, readBudget as n, makeStyle as o, suggest as p, readBudgetSnapshot as r, mdCommand as s, providerHealth as t, renderMore as u };
314
- //# sourceMappingURL=health-C4FQmkJn.mjs.map
314
+ //# sourceMappingURL=health-kufVIf6i.mjs.map
@@ -1,4 +1,4 @@
1
- import { i as getRegistryBackend } from "./factory-B7nv75rC.mjs";
1
+ import { i as getRegistryBackend } from "./factory-BV0MQA3T.mjs";
2
2
 
3
3
  //#region src/cli/impl/project/helpers.ts
4
4
  /**
@@ -66,4 +66,4 @@ async function upsertTag(tagName) {
66
66
 
67
67
  //#endregion
68
68
  export { getSessionCount as a, upsertTag as c, getProjectTags as i, getProject as n, requireProject as o, getProjectAliases as r, resolveIdentifier as s, getLastSessionDate as t };
69
- //# sourceMappingURL=helpers-DSNK_1KP.mjs.map
69
+ //# sourceMappingURL=helpers-CvbYEKoD.mjs.map
@@ -1,10 +1,10 @@
1
- import "./config-Bu1_vbY8.mjs";
1
+ import "./config-DYbyEe4-.mjs";
2
2
  import "./helpers-CRuBUas3.mjs";
3
- import "./factory-B7nv75rC.mjs";
4
- import "./postgres-DNIOQijl.mjs";
5
- import "./embedding-gate-6rZrWRXa.mjs";
3
+ import "./factory-BV0MQA3T.mjs";
4
+ import "./postgres-C-T5OWer.mjs";
5
+ import "./embedding-gate-CTAk8STe.mjs";
6
6
  import "./embeddings-BVq3esBF.mjs";
7
7
  import "./router-CQSc3lk3.mjs";
8
- import { a as getSessionCount, c as upsertTag, i as getProjectTags, n as getProject, o as requireProject, r as getProjectAliases, s as resolveIdentifier, t as getLastSessionDate } from "./helpers-DSNK_1KP.mjs";
8
+ import { a as getSessionCount, c as upsertTag, i as getProjectTags, n as getProject, o as requireProject, r as getProjectAliases, s as resolveIdentifier, t as getLastSessionDate } from "./helpers-CvbYEKoD.mjs";
9
9
 
10
10
  export { getProject };
@@ -7406,7 +7406,7 @@ function parseEscalate(v, bad2) {
7406
7406
  }
7407
7407
 
7408
7408
  // src/workers/config.ts
7409
- import { existsSync as existsSync6, readFileSync as readFileSync6 } from "node:fs";
7409
+ import { existsSync as existsSync6, readFileSync as readFileSync6, statSync as statSync2 } from "node:fs";
7410
7410
 
7411
7411
  // src/daemon/config.ts
7412
7412
  import { homedir as homedir2, userInfo } from "node:os";
@@ -7406,7 +7406,7 @@ function parseEscalate(v, bad2) {
7406
7406
  }
7407
7407
 
7408
7408
  // src/workers/config.ts
7409
- import { existsSync as existsSync6, readFileSync as readFileSync6 } from "node:fs";
7409
+ import { existsSync as existsSync6, readFileSync as readFileSync6, statSync as statSync2 } from "node:fs";
7410
7410
 
7411
7411
  // src/daemon/config.ts
7412
7412
  import { homedir as homedir2, userInfo } from "node:os";
@@ -8964,7 +8964,7 @@ function statusPath(logDir, id) {
8964
8964
  }
8965
8965
 
8966
8966
  // src/workers/pending.ts
8967
- import { existsSync as existsSync9, readFileSync as readFileSync9, statSync as statSync4 } from "node:fs";
8967
+ import { existsSync as existsSync9, readFileSync as readFileSync9, statSync as statSync5 } from "node:fs";
8968
8968
 
8969
8969
  // src/workers/status.ts
8970
8970
  import { execFileSync } from "node:child_process";
@@ -8975,7 +8975,7 @@ import {
8975
8975
  readdirSync as readdirSync2,
8976
8976
  renameSync as renameSync4,
8977
8977
  rmSync,
8978
- statSync as statSync2,
8978
+ statSync as statSync3,
8979
8979
  writeFileSync as writeFileSync3
8980
8980
  } from "node:fs";
8981
8981
  import { join as join7 } from "node:path";
@@ -9048,7 +9048,7 @@ var LOST_GRACE_MS = 2 * 6e4;
9048
9048
 
9049
9049
  // src/workers/worktree.ts
9050
9050
  import { execFile, execFileSync as execFileSync2, spawnSync } from "node:child_process";
9051
- import { existsSync as existsSync8, lstatSync, mkdirSync as mkdirSync4, readFileSync as readFileSync8, mkdtempSync, writeFileSync as writeFileSync4, readdirSync as readdirSync3, readlinkSync, realpathSync, rmSync as rmSync2, statSync as statSync3 } from "node:fs";
9051
+ import { existsSync as existsSync8, lstatSync, mkdirSync as mkdirSync4, readFileSync as readFileSync8, mkdtempSync, writeFileSync as writeFileSync4, readdirSync as readdirSync3, readlinkSync, realpathSync, rmSync as rmSync2, statSync as statSync4 } from "node:fs";
9052
9052
 
9053
9053
  // src/workers/pool.ts
9054
9054
  var SPARE_WARM_WINDOW_MS = 60 * 6e4;
@@ -9136,7 +9136,7 @@ function pendingResults(logDir, repoRoot, now = Date.now()) {
9136
9136
  if (!commits && !dirty) continue;
9137
9137
  let ageMs = 0;
9138
9138
  try {
9139
- ageMs = Math.max(0, now - statSync4(statusPath(logDir, st.id)).mtimeMs);
9139
+ ageMs = Math.max(0, now - statSync5(statusPath(logDir, st.id)).mtimeMs);
9140
9140
  } catch {
9141
9141
  }
9142
9142
  out.push({ id: st.id, label: st.label, repo, ageMs, age: fmtAge(ageMs, { dayAfterHours: 48 }), commits, dirty });
@@ -9156,7 +9156,7 @@ import { homedir as homedir4 } from "os";
9156
9156
  import { execSync } from "child_process";
9157
9157
 
9158
9158
  // src/memory/wakeup.ts
9159
- import { existsSync as existsSync10, readdirSync as readdirSync4, readFileSync as readFileSync10, statSync as statSync5 } from "node:fs";
9159
+ import { existsSync as existsSync10, readdirSync as readdirSync4, readFileSync as readFileSync10, statSync as statSync6 } from "node:fs";
9160
9160
  import { join as join8, basename as basename3 } from "node:path";
9161
9161
  var L1_TOKEN_BUDGET = 300;
9162
9162
  var L1_CHAR_BUDGET = L1_TOKEN_BUDGET * 4;
@@ -9217,7 +9217,7 @@ function findSessionNotes(notesDir) {
9217
9217
  const numberOf = (p) => parseInt(basename3(p).match(/^(\d+)/)?.[1] ?? "0", 10);
9218
9218
  const mtimeOf = (p) => {
9219
9219
  try {
9220
- return statSync5(p).mtimeMs;
9220
+ return statSync6(p).mtimeMs;
9221
9221
  } catch {
9222
9222
  return 0;
9223
9223
  }
@@ -7409,7 +7409,7 @@ function parseEscalate(v, bad2) {
7409
7409
  }
7410
7410
 
7411
7411
  // src/workers/config.ts
7412
- import { existsSync as existsSync6, readFileSync as readFileSync6 } from "node:fs";
7412
+ import { existsSync as existsSync6, readFileSync as readFileSync6, statSync as statSync2 } from "node:fs";
7413
7413
 
7414
7414
  // src/daemon/config.ts
7415
7415
  import { homedir as homedir2, userInfo } from "node:os";
@@ -7426,7 +7426,7 @@ function parseEscalate(v, bad2) {
7426
7426
  }
7427
7427
 
7428
7428
  // src/workers/config.ts
7429
- import { existsSync as existsSync7, readFileSync as readFileSync7 } from "node:fs";
7429
+ import { existsSync as existsSync7, readFileSync as readFileSync7, statSync as statSync2 } from "node:fs";
7430
7430
 
7431
7431
  // src/daemon/config.ts
7432
7432
  import { homedir as homedir2, userInfo } from "node:os";
@@ -7409,7 +7409,7 @@ function parseEscalate(v, bad2) {
7409
7409
  }
7410
7410
 
7411
7411
  // src/workers/config.ts
7412
- import { existsSync as existsSync6, readFileSync as readFileSync6 } from "node:fs";
7412
+ import { existsSync as existsSync6, readFileSync as readFileSync6, statSync as statSync2 } from "node:fs";
7413
7413
 
7414
7414
  // src/daemon/config.ts
7415
7415
  import { homedir as homedir2, userInfo } from "node:os";
@@ -8975,7 +8975,7 @@ import {
8975
8975
  readdirSync as readdirSync2,
8976
8976
  renameSync as renameSync4,
8977
8977
  rmSync,
8978
- statSync as statSync2,
8978
+ statSync as statSync3,
8979
8979
  writeFileSync as writeFileSync3
8980
8980
  } from "node:fs";
8981
8981
  import { join as join7 } from "node:path";
@@ -7409,7 +7409,7 @@ function parseEscalate(v, bad2) {
7409
7409
  }
7410
7410
 
7411
7411
  // src/workers/config.ts
7412
- import { existsSync as existsSync6, readFileSync as readFileSync6 } from "node:fs";
7412
+ import { existsSync as existsSync6, readFileSync as readFileSync6, statSync as statSync2 } from "node:fs";
7413
7413
 
7414
7414
  // src/daemon/config.ts
7415
7415
  import { homedir as homedir2, userInfo } from "node:os";
@@ -8974,7 +8974,7 @@ import {
8974
8974
  readdirSync as readdirSync2,
8975
8975
  renameSync as renameSync4,
8976
8976
  rmSync,
8977
- statSync as statSync2,
8977
+ statSync as statSync3,
8978
8978
  writeFileSync as writeFileSync3
8979
8979
  } from "node:fs";
8980
8980
 
@@ -7409,7 +7409,7 @@ function parseEscalate(v, bad2) {
7409
7409
  }
7410
7410
 
7411
7411
  // src/workers/config.ts
7412
- import { existsSync as existsSync6, readFileSync as readFileSync6 } from "node:fs";
7412
+ import { existsSync as existsSync6, readFileSync as readFileSync6, statSync as statSync2 } from "node:fs";
7413
7413
 
7414
7414
  // src/daemon/config.ts
7415
7415
  import { homedir as homedir2, userInfo } from "node:os";
@@ -8981,7 +8981,7 @@ import {
8981
8981
  readdirSync as readdirSync2,
8982
8982
  renameSync as renameSync4,
8983
8983
  rmSync,
8984
- statSync as statSync2,
8984
+ statSync as statSync3,
8985
8985
  writeFileSync as writeFileSync3
8986
8986
  } from "node:fs";
8987
8987
  import { join as join8 } from "node:path";
@@ -10380,7 +10380,7 @@ function decideOrchestratorBash(rawCommand) {
10380
10380
  // src/hooks/ts/lib/loop-guard.ts
10381
10381
  import { execFileSync as execFileSync8 } from "node:child_process";
10382
10382
  import { createHash } from "node:crypto";
10383
- import { readFileSync as readFileSync13, statSync as statSync3 } from "node:fs";
10383
+ import { readFileSync as readFileSync13, statSync as statSync4 } from "node:fs";
10384
10384
  import { isAbsolute as isAbsolute2, join as join11, resolve as resolve5 } from "node:path";
10385
10385
 
10386
10386
  // src/workers/ps-table.ts
@@ -10613,7 +10613,7 @@ function worktreeFingerprint(cwd) {
10613
10613
  if (!p || p.startsWith(".") || p.includes("/.")) continue;
10614
10614
  try {
10615
10615
  const file = join11(root, p);
10616
- const st = statSync3(file);
10616
+ const st = statSync4(file);
10617
10617
  if (!st.isFile() || !st.size) continue;
10618
10618
  if (st.size > FP_FULL_READ_BYTES || st.size > budget) {
10619
10619
  h.update(`${p}\0${st.size}\0${st.mtimeMs}`);
@@ -10916,7 +10916,7 @@ function saveLoopState(file, state) {
10916
10916
  }
10917
10917
 
10918
10918
  // src/workers/tool-errors.ts
10919
- import { appendFileSync, existsSync as existsSync14, mkdirSync as mkdirSync6, readFileSync as readFileSync15, statSync as statSync4, openSync, readSync, closeSync } from "node:fs";
10919
+ import { appendFileSync, existsSync as existsSync14, mkdirSync as mkdirSync6, readFileSync as readFileSync15, statSync as statSync5, openSync, readSync, closeSync } from "node:fs";
10920
10920
  import { join as join13 } from "node:path";
10921
10921
 
10922
10922
  // src/workers/agentish.ts
@@ -11131,7 +11131,7 @@ function appendStopEvent(logDir, id, stop) {
11131
11131
  }
11132
11132
 
11133
11133
  // src/builds/queue.ts
11134
- import { existsSync as existsSync15, mkdirSync as mkdirSync8, readdirSync as readdirSync4, readFileSync as readFileSync16, renameSync as renameSync6, rmSync as rmSync4, rmdirSync, statSync as statSync5, writeFileSync as writeFileSync7 } from "node:fs";
11134
+ import { existsSync as existsSync15, mkdirSync as mkdirSync8, readdirSync as readdirSync4, readFileSync as readFileSync16, renameSync as renameSync6, rmSync as rmSync4, rmdirSync, statSync as statSync6, writeFileSync as writeFileSync7 } from "node:fs";
11135
11135
  import { join as join14 } from "node:path";
11136
11136
  var defaultDeps = () => ({
11137
11137
  isAlive: (pid) => {
@@ -11162,13 +11162,13 @@ function breakStaleMutex(m, staleMs = 5e3) {
11162
11162
  mkdirSync8(guard);
11163
11163
  } catch {
11164
11164
  try {
11165
- if (Date.now() - statSync5(guard).mtimeMs > staleMs) rmdirSync(guard);
11165
+ if (Date.now() - statSync6(guard).mtimeMs > staleMs) rmdirSync(guard);
11166
11166
  } catch {
11167
11167
  }
11168
11168
  return;
11169
11169
  }
11170
11170
  try {
11171
- if (Date.now() - statSync5(m).mtimeMs > staleMs) rmdirSync(m);
11171
+ if (Date.now() - statSync6(m).mtimeMs > staleMs) rmdirSync(m);
11172
11172
  } catch {
11173
11173
  } finally {
11174
11174
  try {
@@ -7409,7 +7409,7 @@ function parseEscalate(v, bad2) {
7409
7409
  }
7410
7410
 
7411
7411
  // src/workers/config.ts
7412
- import { existsSync as existsSync6, readFileSync as readFileSync6 } from "node:fs";
7412
+ import { existsSync as existsSync6, readFileSync as readFileSync6, statSync as statSync2 } from "node:fs";
7413
7413
 
7414
7414
  // src/daemon/config.ts
7415
7415
  import { homedir as homedir2, userInfo } from "node:os";
@@ -8959,7 +8959,7 @@ import {
8959
8959
  readdirSync as readdirSync2,
8960
8960
  renameSync as renameSync4,
8961
8961
  rmSync,
8962
- statSync as statSync2,
8962
+ statSync as statSync3,
8963
8963
  writeFileSync as writeFileSync3
8964
8964
  } from "node:fs";
8965
8965