@tekmidian/pai 1.0.5 → 1.0.6

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 (239) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/dist/{aibroker-client-CQPGqLxL.mjs → aibroker-client-CXsyC7A8.mjs} +2 -2
  3. package/dist/aibroker-client-ChB7gSxV.mjs +3 -0
  4. package/dist/auto-route-Bc8xP6TQ.mjs +11 -0
  5. package/dist/{auto-route-DUYr57rs.mjs → auto-route-YaEGVrFl.mjs} +2 -2
  6. package/dist/budget-DEiebT2A.mjs +15 -0
  7. package/dist/{caller-identity-Bim8JT-D.mjs → caller-identity-C6Nc96iM.mjs} +4 -4
  8. package/dist/{capacity-CsZMkVyg.mjs → capacity-B2PgKAg4.mjs} +65 -5
  9. package/dist/{chain-Dzz6xcKH.mjs → chain-CtK49-Ma.mjs} +5 -5
  10. package/dist/cli/index.mjs +2102 -282
  11. package/dist/{cockpit-actions-BgsiNcUY.mjs → cockpit-actions-C73mJAJ8.mjs} +18 -18
  12. package/dist/{cockpit-actions-BTA1njMO.mjs → cockpit-actions-D1OPP6Es.mjs} +26 -26
  13. package/dist/cockpit-memory-CLHZD64W.mjs +20 -0
  14. package/dist/config/defaults/config.yaml +18 -1
  15. package/dist/{config-CST2uq1v.mjs → config-Bz8pAU5Q.mjs} +3 -3
  16. package/dist/{config-Dv3t7xnT.mjs → config-DHgPx3ER.mjs} +1 -1
  17. package/dist/{config-h5qK3fst.mjs → config-DLmyEK2q.mjs} +2 -2
  18. package/dist/{config-DYbyEe4-.mjs → config-SlZ-Z52i.mjs} +3 -2
  19. package/dist/{controls-OiVVbe-f.mjs → controls-rIItFeIJ.mjs} +59 -66
  20. package/dist/daemon/index.mjs +40 -40
  21. package/dist/daemon-176qA79N.mjs +46 -0
  22. package/dist/{daemon-C1dycZ3W.mjs → daemon-SoUvPUOf.mjs} +79 -31
  23. package/dist/daemon-mcp/index.mjs +49 -38
  24. package/dist/detect-C8nFP-kR.mjs +10 -0
  25. package/dist/{detect-CHuxFrLy.mjs → detect-DLjeYwnt.mjs} +2 -2
  26. package/dist/{embed-pass-DtVF2fOV.mjs → embed-pass-CN1D8MXl.mjs} +5 -5
  27. package/dist/{embedding-gate-B98PK_wz.mjs → embedding-gate-BVQvUmox.mjs} +2 -2
  28. package/dist/{embedding-gate-CTAk8STe.mjs → embedding-gate-iq0oQEkF.mjs} +3 -3
  29. package/dist/{endreason-BqyyU7BH.mjs → endreason-C2-hYK0_.mjs} +4 -4
  30. package/dist/{factory-BV0MQA3T.mjs → factory-CYwa0jYj.mjs} +6 -6
  31. package/dist/factory-DFwez99M.mjs +9 -0
  32. package/dist/{fallback-Bj2cyVk_.mjs → fallback-CwPSCrX8.mjs} +9 -231
  33. package/dist/{health-kufVIf6i.mjs → health-D0mUAVdw.mjs} +5 -5
  34. package/dist/{helpers-CvbYEKoD.mjs → helpers-Dj2nY56t.mjs} +2 -2
  35. package/dist/{helpers-WV8tdQHM.mjs → helpers-DyHKAwrW.mjs} +6 -6
  36. package/dist/hooks/capture-all-events.mjs +68 -3
  37. package/dist/hooks/capture-tool-output.mjs +68 -3
  38. package/dist/hooks/handoff-link.mjs +128 -0
  39. package/dist/hooks/load-project-context.mjs +1 -1
  40. package/dist/hooks/security-validator.mjs +840 -88
  41. package/dist/hooks/supervision-banner.mjs +186 -48
  42. package/dist/hooks/worker-guard.mjs +57 -1
  43. package/dist/hooks/worker-note.mjs +68 -3
  44. package/dist/hooks/worker-pool-host.mjs +1417 -224
  45. package/dist/hooks/worker-status-line.mjs +209 -70
  46. package/dist/index.mjs +9 -9
  47. package/dist/{ipc-client-CnYEF31R.mjs → ipc-client-CmagIFLh.mjs} +2 -2
  48. package/dist/{ipc-client-DN7EvoVo.mjs → ipc-client-DmbSIBUK.mjs} +1 -1
  49. package/dist/{kill-tree-CcpsRLCZ.mjs → kill-tree-DPiMscaY.mjs} +8 -8
  50. package/dist/kill-tree-Dxei6qlR.mjs +10 -0
  51. package/dist/{launch-UPQBoW2q.mjs → launch-BZT3JDoZ.mjs} +3 -3
  52. package/dist/{launch-DpQPZGsT.mjs → launch-Bn2Zf90h.mjs} +3 -3
  53. package/dist/{indexer-backend-B2vtFl38.mjs → lessons-CFVU0cwA.mjs} +262 -43
  54. package/dist/{local-candidate-Cp_bw4kK.mjs → local-candidate-DFd4pp-w.mjs} +3 -3
  55. package/dist/{local-instances-bdCNNSsL.mjs → local-instances-DhF4_sV2.mjs} +2 -2
  56. package/dist/{local-instances-B-c-CxzP.mjs → local-instances-KTh8IeOT.mjs} +4 -4
  57. package/dist/{local-tiers-BtdEEe5n.mjs → local-tiers-CqwGUcEn.mjs} +3 -3
  58. package/dist/{local-tiers-OBqAAfOg.mjs → local-tiers-DSlIYvvm.mjs} +3 -3
  59. package/dist/{main-config-ops-BYsK3BxM.mjs → main-config-ops-rda08BCD.mjs} +3 -3
  60. package/dist/{main-resolver-CAC3xfZM.mjs → main-resolver-BKwI0I6H.mjs} +18 -18
  61. package/dist/{migrate-DrA_OwlZ.mjs → migrate-C2z1YmWC.mjs} +2 -2
  62. package/dist/{model-inventory-BuTpi9a6.mjs → model-inventory-BXv15B0d.mjs} +13 -13
  63. package/dist/{models-add-CJx2YAwh.mjs → models-add-5yXTyz3g.mjs} +38 -38
  64. package/dist/operator-Bmv5tiHQ.mjs +7 -0
  65. package/dist/{operator-DrwWItVt.mjs → operator-Br6GeswF.mjs} +2 -2
  66. package/dist/{pai-marker-DLKJ9Yr5.mjs → pai-marker-D6OoVbM_.mjs} +2 -2
  67. package/dist/{pane-audit-wv9UkyCe.mjs → pane-audit-DLYy9-4g.mjs} +13 -23
  68. package/dist/{paths-DS5VQKoR.mjs → paths-CypxFTfn.mjs} +4 -4
  69. package/dist/{paths-DBd78I7Z.mjs → paths-DIOwNcj-.mjs} +3 -3
  70. package/dist/{planner-K0mFrCpL.mjs → planner-BzZ_2lc-.mjs} +29 -29
  71. package/dist/{pool-BZ94nFuq.mjs → pool-9EsbKD-U.mjs} +2 -2
  72. package/dist/{pool-cli-BjYQDfx6.mjs → pool-cli-Cy5mlycP.mjs} +6 -6
  73. package/dist/{pool-cli-B1eKySeN.mjs → pool-cli-Db0uDwB9.mjs} +5 -5
  74. package/dist/{postgres-CBHY5PIi.mjs → postgres-B1B80bcj.mjs} +3 -3
  75. package/dist/{postgres-C-T5OWer.mjs → postgres-BL5oBBgY.mjs} +3 -3
  76. package/dist/{project-setup-pIPHZaXf.mjs → project-setup-DHxdJjEc.mjs} +24 -25
  77. package/dist/providers-BH6hQYbU.mjs +16 -0
  78. package/dist/{providers-Dzx5GAUI.mjs → providers-BNV7CzC-.mjs} +6 -6
  79. package/dist/{query-feedback-DN52N9C5.mjs → query-feedback-BWl2HRwN.mjs} +2 -2
  80. package/dist/registrable-BwFiqazy.mjs +9 -0
  81. package/dist/{registrable-CXBBpUcz.mjs → registrable-Dxs4oKIj.mjs} +4 -4
  82. package/dist/render-DVGXpfaT.mjs +13 -0
  83. package/dist/render-jPpMrudf.mjs +2240 -0
  84. package/dist/root-C8cxhdn9.mjs +36 -0
  85. package/dist/{root-bG48WVpW.mjs → root-DmOzMeSv.mjs} +10 -10
  86. package/dist/route-table-COAmc1nB.mjs +15 -0
  87. package/dist/{router-CQSc3lk3.mjs → router-D2476pOp.mjs} +2 -2
  88. package/dist/{router-DwHJRgG9.mjs → router-ghujlEFb.mjs} +1 -1
  89. package/dist/{routing-D27jxj9x.mjs → routing-B_cg1_Xx.mjs} +13 -13
  90. package/dist/{routing-BlD_tKjW.mjs → routing-aJKMIagQ.mjs} +15 -15
  91. package/dist/{run-AZVwceiU.mjs → run-DE9Q0ldN.mjs} +47 -31
  92. package/dist/{runtime-paths-WsO9sJFc.mjs → runtime-paths-twfV23YL.mjs} +2 -2
  93. package/dist/{scan-C3uotg_f.mjs → scan-CNMcltOX.mjs} +7 -7
  94. package/dist/{scope-D8HK6vU7.mjs → scope-BTWstJ1B.mjs} +4 -4
  95. package/dist/session-DgZifjLx.mjs +35 -0
  96. package/dist/{session-BAfypQb9.mjs → session-HBYOABWU.mjs} +28 -28
  97. package/dist/session-scan-BZxnYN1v.mjs +9 -0
  98. package/dist/{session-scan-BmnjSReu.mjs → session-scan-CX3MKCNg.mjs} +6 -6
  99. package/dist/{session-usage-oycSdiD3.mjs → session-usage-CCmPFFa6.mjs} +3 -3
  100. package/dist/{status-COtzewKV.mjs → status-Cecau8Ps.mjs} +9 -5
  101. package/dist/status-D52xC_i0.mjs +6 -0
  102. package/dist/{tool-errors-DXJ70-sr.mjs → tool-errors-BFw1gv-z.mjs} +2 -2
  103. package/dist/{tool-errors-B2LnIqR0.mjs → tool-errors-COM2JGEr.mjs} +6 -6
  104. package/dist/viewer-Ce-Xa9L3.mjs +22 -0
  105. package/dist/{viewer-BgGRqXfD.mjs → viewer-DvBg6N22.mjs} +16 -14
  106. package/dist/{wait-ChpHKJZV.mjs → wait-C5iWILj_.mjs} +3 -3
  107. package/dist/worker-config-BmcJ9R0U.mjs +42 -0
  108. package/dist/{worker-config-DgdT0iTB.mjs → worker-config-DkONNk_H.mjs} +54 -103
  109. package/dist/{workers-config-BhZBrR-Q.mjs → workers-config-DwzrtdYu.mjs} +2 -2
  110. package/dist/{worktree-BY--Rgmy.mjs → worktree-O_kU6Q3y.mjs} +164 -8
  111. package/dist/{zettelkasten-BHVx5zj-.mjs → zettelkasten-BH8AdNh8.mjs} +4 -4
  112. package/dist/{zettelkasten-LoH9RBiN.mjs → zettelkasten-FFhQFESJ.mjs} +2 -2
  113. package/docs/commands/README.md +32 -2
  114. package/docs/commands/audit.md +34 -3
  115. package/docs/commands/backup.md +1 -1
  116. package/docs/commands/build.md +4 -4
  117. package/docs/commands/cd.md +1 -1
  118. package/docs/commands/clear-names.md +1 -1
  119. package/docs/commands/cockpit.md +1 -1
  120. package/docs/commands/config.md +1 -1
  121. package/docs/commands/daemon.md +1 -1
  122. package/docs/commands/db.md +1 -1
  123. package/docs/commands/doc.md +1 -1
  124. package/docs/commands/end.md +1 -1
  125. package/docs/commands/find.md +1 -1
  126. package/docs/commands/git.md +110 -0
  127. package/docs/commands/handoff.md +70 -0
  128. package/docs/commands/harness.md +74 -0
  129. package/docs/commands/help.md +1 -1
  130. package/docs/commands/home.md +1 -1
  131. package/docs/commands/hooks-db.md +1 -1
  132. package/docs/commands/identity.md +1 -1
  133. package/docs/commands/install.md +1 -1
  134. package/docs/commands/issue.md +1 -1
  135. package/docs/commands/kg.md +1 -1
  136. package/docs/commands/launch.md +1 -1
  137. package/docs/commands/lessons.md +201 -0
  138. package/docs/commands/list.md +1 -1
  139. package/docs/commands/ls.md +1 -1
  140. package/docs/commands/mcp.md +1 -1
  141. package/docs/commands/memory.md +1 -1
  142. package/docs/commands/models.md +1 -1
  143. package/docs/commands/more.md +1 -1
  144. package/docs/commands/new.md +1 -1
  145. package/docs/commands/notes.md +1 -1
  146. package/docs/commands/notify.md +1 -1
  147. package/docs/commands/observation.md +1 -1
  148. package/docs/commands/obsidian.md +1 -1
  149. package/docs/commands/open.md +1 -1
  150. package/docs/commands/pane.md +1 -1
  151. package/docs/commands/pause.md +1 -1
  152. package/docs/commands/plan.md +1 -1
  153. package/docs/commands/project.md +1 -1
  154. package/docs/commands/projects.md +1 -1
  155. package/docs/commands/providers.md +1 -1
  156. package/docs/commands/queue.md +1 -1
  157. package/docs/commands/registry.md +1 -1
  158. package/docs/commands/reload.md +1 -1
  159. package/docs/commands/rename.md +1 -1
  160. package/docs/commands/restore.md +1 -1
  161. package/docs/commands/resume.md +1 -1
  162. package/docs/commands/router.md +1 -1
  163. package/docs/commands/rules.md +70 -0
  164. package/docs/commands/session.md +1 -1
  165. package/docs/commands/sessions.md +1 -1
  166. package/docs/commands/setup.md +1 -1
  167. package/docs/commands/setups.md +1 -1
  168. package/docs/commands/shell-init.md +1 -1
  169. package/docs/commands/skill.md +1 -1
  170. package/docs/commands/task.md +1 -1
  171. package/docs/commands/tasks.md +1 -1
  172. package/docs/commands/topic.md +1 -1
  173. package/docs/commands/update.md +1 -1
  174. package/docs/commands/worker.md +1 -1
  175. package/docs/commands/zettel.md +1 -1
  176. package/docs/concepts/panes.md +3 -2
  177. package/gemini-extension.json +1 -1
  178. package/package.json +2 -2
  179. package/pai-plugin.json +1 -1
  180. package/plugins/context-preservation/plugin.json +1 -1
  181. package/plugins/core/plugin.json +1 -1
  182. package/plugins/creative/plugin.json +1 -1
  183. package/plugins/observability/plugin.json +1 -1
  184. package/plugins/productivity/plugin.json +1 -1
  185. package/plugins/semantic-search/plugin.json +1 -1
  186. package/plugins/ui/plugin.json +1 -1
  187. package/plugins/zettelkasten/plugin.json +1 -1
  188. package/src/hooks/ts/lib/loop-guard.ts +3 -5
  189. package/src/hooks/ts/lib/rules/builtin/base64-decode-to-shell.rule.yaml +13 -0
  190. package/src/hooks/ts/lib/rules/builtin/chmod-world-writable.rule.yaml +13 -0
  191. package/src/hooks/ts/lib/rules/builtin/chmod-zero.rule.yaml +11 -0
  192. package/src/hooks/ts/lib/rules/builtin/credential-file-read.rule.yaml +13 -0
  193. package/src/hooks/ts/lib/rules/builtin/credential-read-then-network.rule.yaml +29 -0
  194. package/src/hooks/ts/lib/rules/builtin/crontab-persistence.rule.yaml +10 -0
  195. package/src/hooks/ts/lib/rules/builtin/curl-piped-to-shell.rule.yaml +15 -0
  196. package/src/hooks/ts/lib/rules/builtin/download-then-execute.rule.yaml +30 -0
  197. package/src/hooks/ts/lib/rules/builtin/find-root-delete.rule.yaml +11 -0
  198. package/src/hooks/ts/lib/rules/builtin/git-push-force.rule.yaml +24 -0
  199. package/src/hooks/ts/lib/rules/builtin/git-push-plus-refspec.rule.yaml +12 -0
  200. package/src/hooks/ts/lib/rules/builtin/git-reset-hard.rule.yaml +12 -0
  201. package/src/hooks/ts/lib/rules/builtin/injection-then-tool.rule.yaml +30 -0
  202. package/src/hooks/ts/lib/rules/builtin/instruction-override-disregard.rule.yaml +12 -0
  203. package/src/hooks/ts/lib/rules/builtin/instruction-override-ignore.rule.yaml +13 -0
  204. package/src/hooks/ts/lib/rules/builtin/launchagents-write-persistence.rule.yaml +12 -0
  205. package/src/hooks/ts/lib/rules/builtin/launchctl-load-persistence.rule.yaml +10 -0
  206. package/src/hooks/ts/lib/rules/builtin/reverse-shell-dev-tcp.rule.yaml +11 -0
  207. package/src/hooks/ts/lib/rules/builtin/reverse-shell-interactive-bash.rule.yaml +11 -0
  208. package/src/hooks/ts/lib/rules/builtin/rm-recursive-parent.rule.yaml +11 -0
  209. package/src/hooks/ts/lib/rules/builtin/rm-recursive-relative.rule.yaml +11 -0
  210. package/src/hooks/ts/lib/rules/builtin/rm-recursive-root.rule.yaml +24 -0
  211. package/src/hooks/ts/lib/rules/builtin/rm-trailing-tilde.rule.yaml +11 -0
  212. package/src/hooks/ts/lib/rules/builtin/sudoers-nopasswd.rule.yaml +15 -0
  213. package/src/hooks/ts/lib/rules/builtin.generated.ts +530 -0
  214. package/src/hooks/ts/lib/rules/eval.ts +74 -0
  215. package/src/hooks/ts/lib/rules/lint.ts +102 -0
  216. package/src/hooks/ts/lib/rules/load.ts +229 -0
  217. package/src/hooks/ts/lib/rules/types.ts +56 -0
  218. package/src/hooks/ts/pre-tool-use/security-validator.ts +27 -96
  219. package/src/hooks/ts/user-prompt/handoff-link.ts +34 -0
  220. package/dist/aibroker-client-BxzeEHPF.mjs +0 -3
  221. package/dist/auto-route-DWYK_0i0.mjs +0 -11
  222. package/dist/budget-DX-VIWGf.mjs +0 -15
  223. package/dist/cockpit-memory-DIrNs4xr.mjs +0 -20
  224. package/dist/daemon-ieo0lnpq.mjs +0 -46
  225. package/dist/detect-C0ZBXqDL.mjs +0 -10
  226. package/dist/factory-DeASMV7Z.mjs +0 -9
  227. package/dist/kill-tree-CXZ0WfVf.mjs +0 -10
  228. package/dist/operator-Bpxq_WB5.mjs +0 -7
  229. package/dist/providers-QJzpaNhX.mjs +0 -16
  230. package/dist/registrable-Drn8wIDO.mjs +0 -9
  231. package/dist/render-C4KR8qQ8.mjs +0 -13
  232. package/dist/render-Cz3BWIBO.mjs +0 -903
  233. package/dist/root-Bfb1zgwE.mjs +0 -36
  234. package/dist/route-table-ZVMNBsy7.mjs +0 -15
  235. package/dist/session-BcnhepLZ.mjs +0 -35
  236. package/dist/session-scan-CqUQdCac.mjs +0 -9
  237. package/dist/status-D_SWmOlH.mjs +0 -6
  238. package/dist/viewer-CbGN2Ri4.mjs +0 -22
  239. package/dist/worker-config-D1KVAMp4.mjs +0 -42
@@ -0,0 +1,36 @@
1
+ import "./utils-J2b9y8PC.mjs";
2
+ import "./migrate-C2z1YmWC.mjs";
3
+ import "./config-Bz8pAU5Q.mjs";
4
+ import "./config-SlZ-Z52i.mjs";
5
+ import "./paths-CypxFTfn.mjs";
6
+ import "./worktree-O_kU6Q3y.mjs";
7
+ import "./status-Cecau8Ps.mjs";
8
+ import "./pool-9EsbKD-U.mjs";
9
+ import "./registrable-Dxs4oKIj.mjs";
10
+ import "./pai-marker-D6OoVbM_.mjs";
11
+ import "./helpers-CRuBUas3.mjs";
12
+ import "./scope-BTWstJ1B.mjs";
13
+ import "./routing-aJKMIagQ.mjs";
14
+ import "./tool-errors-BFw1gv-z.mjs";
15
+ import "./wait-C5iWILj_.mjs";
16
+ import "./local-tiers-CqwGUcEn.mjs";
17
+ import "./caller-identity-C6Nc96iM.mjs";
18
+ import "./capacity-B2PgKAg4.mjs";
19
+ import "./local-instances-DhF4_sV2.mjs";
20
+ import "./local-candidate-DFd4pp-w.mjs";
21
+ import "./factory-CYwa0jYj.mjs";
22
+ import "./postgres-BL5oBBgY.mjs";
23
+ import "./embedding-gate-iq0oQEkF.mjs";
24
+ import "./embeddings-BVq3esBF.mjs";
25
+ import "./router-D2476pOp.mjs";
26
+ import "./detect-DLjeYwnt.mjs";
27
+ import "./helpers-Dj2nY56t.mjs";
28
+ import "./scan-CNMcltOX.mjs";
29
+ import "./session-HBYOABWU.mjs";
30
+ import "./launch-Bn2Zf90h.mjs";
31
+ import "./health-D0mUAVdw.mjs";
32
+ import "./launch-BZT3JDoZ.mjs";
33
+ import { _ as setupsTable, a as lastSetup, b as truncate, c as localState, d as pickerOpts, f as plainTable, g as runRoot, h as runNewWith, i as lastOnLabel, l as matchRows, m as rootCommand, n as ago, o as launchKey, p as resolveSetup, r as finishCd, s as launchScreen, t as CANCELLED, u as pickerLayout, v as startSession, y as systemTerm } from "./root-DmOzMeSv.mjs";
34
+ import "./session-scan-CX3MKCNg.mjs";
35
+
36
+ export { runNewWith };
@@ -1,12 +1,12 @@
1
- import { M as readWorkersSection, b as nativeOrchestratorModel, p as getProviderOrNative, t as ANTHROPIC_NATIVE } from "./config-CST2uq1v.mjs";
2
- import { u as workersLogDir } from "./paths-DS5VQKoR.mjs";
3
- import { d as terminalHasName } from "./scope-D8HK6vU7.mjs";
4
- import { An as httpModelsCheck, Cn as resolveLocalProvider, Dn as allSetups, Fn as setupWorkersLabel, Ln as shortModel, Mn as orchestratorLabel, On as downLocalProviders, Pn as setupProfile, Rn as workersLabel, dn as getProfile, jn as loadSaved, kn as findSetup, mn as updateProfile, o as cooldownRemaining, un as SESSION_NAME_ENV, x as SESSION_WORKER_PROVIDER_ENV } from "./routing-BlD_tKjW.mjs";
1
+ import { M as readWorkersSection, b as nativeOrchestratorModel, p as getProviderOrNative, t as ANTHROPIC_NATIVE } from "./config-Bz8pAU5Q.mjs";
2
+ import { u as workersLogDir } from "./paths-CypxFTfn.mjs";
3
+ import { d as terminalHasName } from "./scope-BTWstJ1B.mjs";
4
+ import { An as httpModelsCheck, Cn as resolveLocalProvider, Dn as allSetups, Fn as setupWorkersLabel, Ln as shortModel, Mn as orchestratorLabel, On as downLocalProviders, Pn as setupProfile, Rn as workersLabel, dn as getProfile, jn as loadSaved, kn as findSetup, mn as updateProfile, o as cooldownRemaining, un as SESSION_NAME_ENV, x as SESSION_WORKER_PROVIDER_ENV } from "./routing-aJKMIagQ.mjs";
5
5
  import { n as OPT, t as CliError } from "./define-CjJsmq-6.mjs";
6
- import { C as assertAvailable, D as execHarness, E as dryRunText, O as looksLikePath, T as buildHarness, k as prepareDir, r as collectView, w as modelFor } from "./session-BAfypQb9.mjs";
7
- import { o as launchableProviderNames, t as LaunchError } from "./launch-DpQPZGsT.mjs";
8
- import { a as colorEnabled, f as renderTable, n as readBudget, o as makeStyle, p as suggest, t as providerHealth } from "./health-kufVIf6i.mjs";
9
- import { i as probeResume } from "./launch-UPQBoW2q.mjs";
6
+ import { C as assertAvailable, D as execHarness, E as dryRunText, O as looksLikePath, T as buildHarness, k as prepareDir, r as collectView, w as modelFor } from "./session-HBYOABWU.mjs";
7
+ import { o as launchableProviderNames, t as LaunchError } from "./launch-Bn2Zf90h.mjs";
8
+ import { a as colorEnabled, f as renderTable, n as readBudget, o as makeStyle, p as suggest, t as providerHealth } from "./health-D0mUAVdw.mjs";
9
+ import { i as probeResume } from "./launch-BZT3JDoZ.mjs";
10
10
  import { writeFileSync } from "node:fs";
11
11
  import { basename } from "node:path";
12
12
  import { emitKeypressEvents } from "node:readline";
@@ -683,7 +683,7 @@ async function runRoot(args, term = systemTerm()) {
683
683
  with: args.with,
684
684
  dryRun: args.dryRun
685
685
  }, term);
686
- return (await import("./session-BcnhepLZ.mjs")).runNewDefault({
686
+ return (await import("./session-DgZifjLx.mjs")).runNewDefault({
687
687
  dir: args.name,
688
688
  dryRun: args.dryRun
689
689
  });
@@ -791,4 +791,4 @@ const rootCommand = {
791
791
 
792
792
  //#endregion
793
793
  export { setupsTable as _, lastSetup as a, truncate as b, localState as c, pickerOpts as d, plainTable as f, runRoot as g, runNewWith as h, lastOnLabel as i, matchRows as l, rootCommand as m, ago as n, launchKey as o, resolveSetup as p, finishCd as r, launchScreen as s, CANCELLED as t, pickerLayout as u, startSession as v, systemTerm as y };
794
- //# sourceMappingURL=root-bG48WVpW.mjs.map
794
+ //# sourceMappingURL=root-DmOzMeSv.mjs.map
@@ -0,0 +1,15 @@
1
+ import "./config-Bz8pAU5Q.mjs";
2
+ import "./config-SlZ-Z52i.mjs";
3
+ import "./paths-CypxFTfn.mjs";
4
+ import "./status-Cecau8Ps.mjs";
5
+ import "./scope-BTWstJ1B.mjs";
6
+ import { Bt as resolveSelector, Ft as clearSessionRoute, Gt as servingChip, Ht as routeChoices, It as configuredLocal, Jt as setRoute, Kt as sessionRoutesPatch, Lt as entryLabel, Nt as TIGHT_PERCENT, Pt as applyPolicyToRoutes, Rt as flowText, Ut as routeRows, Vt as resolveSessionArg, Wt as routeText, Xt as tierFlow, Yt as setSessionRoute, Zt as validateRoute, qt as sessionStartTarget, zt as parseSelector } from "./routing-aJKMIagQ.mjs";
7
+ import "./tool-errors-BFw1gv-z.mjs";
8
+ import "./wait-C5iWILj_.mjs";
9
+ import "./local-tiers-CqwGUcEn.mjs";
10
+ import "./caller-identity-C6Nc96iM.mjs";
11
+ import "./capacity-B2PgKAg4.mjs";
12
+ import "./local-instances-DhF4_sV2.mjs";
13
+ import "./local-candidate-DFd4pp-w.mjs";
14
+
15
+ export { setRoute };
@@ -1,4 +1,4 @@
1
- import { n as aibrokerSocketPath } from "./runtime-paths-WsO9sJFc.mjs";
1
+ import { n as aibrokerSocketPath } from "./runtime-paths-twfV23YL.mjs";
2
2
  import { n as isTestRunner } from "./test-isolation-lqSmYxr0.mjs";
3
3
  import { randomUUID } from "node:crypto";
4
4
  import { spawn } from "node:child_process";
@@ -278,4 +278,4 @@ async function routeNotification(payload, config) {
278
278
 
279
279
  //#endregion
280
280
  export { routeNotification as n, recordedNotifications as t };
281
- //# sourceMappingURL=router-CQSc3lk3.mjs.map
281
+ //# sourceMappingURL=router-D2476pOp.mjs.map
@@ -1,3 +1,3 @@
1
- import { n as routeNotification, t as recordedNotifications } from "./router-CQSc3lk3.mjs";
1
+ import { n as routeNotification, t as recordedNotifications } from "./router-D2476pOp.mjs";
2
2
 
3
3
  export { routeNotification };
@@ -1,15 +1,15 @@
1
- import "./config-CST2uq1v.mjs";
2
- import "./config-DYbyEe4-.mjs";
3
- import "./paths-DS5VQKoR.mjs";
4
- import "./status-COtzewKV.mjs";
5
- import "./scope-D8HK6vU7.mjs";
6
- import { _ as resolveTarget, a as clearCooldown, c as exclusionReason, d as probeQuota, f as quotaExceeded, g as resolveCapabilityRun, h as recordBudgetCooldowns, i as capabilityForRun, l as isQuotaFailure, m as readRoutingState, n as NoProviderError, o as cooldownRemaining, p as quotaSkipThreshold, r as autoOrder, s as entryModel, t as BUDGET_COOLDOWN_MIN, u as nextAutoProvider, v as setCooldown, y as writeRoutingState } from "./routing-BlD_tKjW.mjs";
7
- import "./tool-errors-DXJ70-sr.mjs";
8
- import "./wait-ChpHKJZV.mjs";
9
- import "./local-tiers-BtdEEe5n.mjs";
10
- import "./caller-identity-Bim8JT-D.mjs";
11
- import "./capacity-CsZMkVyg.mjs";
12
- import "./local-instances-bdCNNSsL.mjs";
13
- import "./local-candidate-Cp_bw4kK.mjs";
1
+ import "./config-Bz8pAU5Q.mjs";
2
+ import "./config-SlZ-Z52i.mjs";
3
+ import "./paths-CypxFTfn.mjs";
4
+ import "./status-Cecau8Ps.mjs";
5
+ import "./scope-BTWstJ1B.mjs";
6
+ import { _ as resolveTarget, a as clearCooldown, c as exclusionReason, d as probeQuota, f as quotaExceeded, g as resolveCapabilityRun, h as recordBudgetCooldowns, i as capabilityForRun, l as isQuotaFailure, m as readRoutingState, n as NoProviderError, o as cooldownRemaining, p as quotaSkipThreshold, r as autoOrder, s as entryModel, t as BUDGET_COOLDOWN_MIN, u as nextAutoProvider, v as setCooldown, y as writeRoutingState } from "./routing-aJKMIagQ.mjs";
7
+ import "./tool-errors-BFw1gv-z.mjs";
8
+ import "./wait-C5iWILj_.mjs";
9
+ import "./local-tiers-CqwGUcEn.mjs";
10
+ import "./caller-identity-C6Nc96iM.mjs";
11
+ import "./capacity-B2PgKAg4.mjs";
12
+ import "./local-instances-DhF4_sV2.mjs";
13
+ import "./local-candidate-DFd4pp-w.mjs";
14
14
 
15
15
  export { BUDGET_COOLDOWN_MIN, NoProviderError, autoOrder, capabilityForRun, clearCooldown, cooldownRemaining, entryModel, exclusionReason, isQuotaFailure, nextAutoProvider, probeQuota, quotaExceeded, quotaSkipThreshold, readRoutingState, recordBudgetCooldowns, resolveCapabilityRun, resolveTarget, setCooldown, writeRoutingState };
@@ -1,17 +1,17 @@
1
- import { g as paiHomePath, h as paiHomeDir } from "./runtime-paths-WsO9sJFc.mjs";
1
+ import { _ as paiHomePath, g as paiHomeDir } from "./runtime-paths-twfV23YL.mjs";
2
2
  import { t as writeFileAtomic } from "./atomic-file-BorMa4T3.mjs";
3
- import { A as providerQuotaSkipAt, B as isLoopbackUrl$1, F as resolveProviderKey, L as writeWorkersSection, M as readWorkersSection, N as resolveCapability, O as providerCostTier, P as resolveModelCapability, R as LOOPBACK_HOST, V as loopbackUrl$1, b as nativeOrchestratorModel, bt as stripModelVariant, c as WorkersConfigError, dt as findTier, ft as listForPolicy, gt as targetList, ht as sessionTier, lt as classRoute, m as isLocalProvider, mt as parseEntry, p as getProviderOrNative, pt as migrateSessionRoutes, rt as workersYamlPath, s as WORKER_CLASSES, st as MAX_ROUTE_MODELS, t as ANTHROPIC_NATIVE, u as classModelCapability, ut as entryProvider, y as nativeAnthropicProvider, z as isLoopbackHostname } from "./config-CST2uq1v.mjs";
4
- import { c as loadConfig, f as readMainConfigRaw } from "./config-DYbyEe4-.mjs";
5
- import { s as routingStatePath, u as workersLogDir } from "./paths-DS5VQKoR.mjs";
6
- import { g as isLive, v as loadStatus, y as loadStatuses } from "./status-COtzewKV.mjs";
7
- import { o as resolveSession, p as currentWorkerId, t as AIBROKER_REGISTRY } from "./scope-D8HK6vU7.mjs";
8
- import { x as recordToolError } from "./tool-errors-DXJ70-sr.mjs";
9
- import { _ as readLocalConfig, d as installedModelDirs, p as logPathFor } from "./local-tiers-BtdEEe5n.mjs";
10
- import { a as buildsDir, l as listBuildsSync, t as callerIdentity } from "./caller-identity-Bim8JT-D.mjs";
3
+ import { A as providerQuotaSkipAt, B as isLoopbackUrl$1, F as resolveProviderKey, L as writeWorkersSection, M as readWorkersSection, N as resolveCapability, O as providerCostTier, P as resolveModelCapability, R as LOOPBACK_HOST, V as loopbackUrl$1, b as nativeOrchestratorModel, bt as stripModelVariant, c as WorkersConfigError, dt as findTier, ft as listForPolicy, gt as targetList, ht as sessionTier, lt as classRoute, m as isLocalProvider, mt as parseEntry, p as getProviderOrNative, pt as migrateSessionRoutes, rt as workersYamlPath, s as WORKER_CLASSES, st as MAX_ROUTE_MODELS, t as ANTHROPIC_NATIVE, u as classModelCapability, ut as entryProvider, y as nativeAnthropicProvider, z as isLoopbackHostname } from "./config-Bz8pAU5Q.mjs";
4
+ import { c as loadConfig, f as readMainConfigRaw } from "./config-SlZ-Z52i.mjs";
5
+ import { s as routingStatePath, u as workersLogDir } from "./paths-CypxFTfn.mjs";
6
+ import { g as isLive, v as loadStatus, y as loadStatuses } from "./status-Cecau8Ps.mjs";
7
+ import { o as resolveSession, p as currentWorkerId, t as AIBROKER_REGISTRY } from "./scope-BTWstJ1B.mjs";
8
+ import { x as recordToolError } from "./tool-errors-BFw1gv-z.mjs";
9
+ import { _ as readLocalConfig, d as installedModelDirs, p as logPathFor } from "./local-tiers-CqwGUcEn.mjs";
10
+ import { a as buildsDir, l as listBuildsSync, t as callerIdentity } from "./caller-identity-C6Nc96iM.mjs";
11
11
  import { a as newPrefill, c as schedEnabled, f as sharedScheduler } from "./scheduler-CtUyWJ3O.mjs";
12
- import { i as effectiveCap } from "./capacity-CsZMkVyg.mjs";
13
- import { i as instanceNumber, l as readInstances, r as instanceEngineKey, s as pickInstance, t as endpointRegistry, u as readLiveInstances } from "./local-instances-bdCNNSsL.mjs";
14
- import { c as writeLocalStatus, n as tierProviderNames, r as LOCAL_STATUS_REFRESH_MS, s as readLocalStatus, t as isLocalCandidate } from "./local-candidate-Cp_bw4kK.mjs";
12
+ import { i as effectiveCap } from "./capacity-B2PgKAg4.mjs";
13
+ import { i as instanceNumber, l as readInstances, r as instanceEngineKey, s as pickInstance, t as endpointRegistry, u as readLiveInstances } from "./local-instances-DhF4_sV2.mjs";
14
+ import { c as writeLocalStatus, n as tierProviderNames, r as LOCAL_STATUS_REFRESH_MS, s as readLocalStatus, t as isLocalCandidate } from "./local-candidate-DFd4pp-w.mjs";
15
15
  import { n as TAILSCALE_STATUS_TIMEOUT_MS, t as LOCAL_PROBE_TIMEOUT_MS } from "./timeouts-1MLooEBB.mjs";
16
16
  import { appendFileSync, chmodSync, closeSync, existsSync, fstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readSync, readdirSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
17
17
  import { createHash, randomBytes } from "node:crypto";
@@ -1664,7 +1664,7 @@ function currentSessionName(env = process.env) {
1664
1664
  */
1665
1665
  async function registryProjectName(cwd) {
1666
1666
  try {
1667
- const { detectProject } = await import("./detect-C0ZBXqDL.mjs");
1667
+ const { detectProject } = await import("./detect-C8nFP-kR.mjs");
1668
1668
  return (await detectProject(cwd))?.display_name || void 0;
1669
1669
  } catch {
1670
1670
  return;
@@ -1690,7 +1690,7 @@ async function detectSessionName(env = process.env, deps = {}) {
1690
1690
  let name;
1691
1691
  const registry = deps.registryPath ?? AIBROKER_REGISTRY;
1692
1692
  const claudeId = env.CLAUDE_CODE_SESSION_ID?.trim();
1693
- const { loadBrokerNames, transcriptCustomTitle } = await import("./session-scan-CqUQdCac.mjs");
1693
+ const { loadBrokerNames, transcriptCustomTitle } = await import("./session-scan-BZxnYN1v.mjs");
1694
1694
  name = resolveSession(env.ITERM_SESSION_ID ?? "", registry)?.name ?? (claudeId ? loadBrokerNames(registry, deps.mapPath).get(claudeId) ?? transcriptCustomTitle(claudeId, deps.projectsDir) : void 0) ?? await (deps.projectName ?? registryProjectName)(cwd);
1695
1695
  cached = {
1696
1696
  key,
@@ -6026,4 +6026,4 @@ function resolveCapabilityRun(config, capability) {
6026
6026
 
6027
6027
  //#endregion
6028
6028
  export { parseFootprint as $, usageLogFile as $n, clearPolicy as $t, budgetSkipReason as A, httpModelsCheck as An, resolveBindAddress as At, MODEL_INVENTORY_MAX_AGE_MS as B, setParkConfigSource as Bn, resolveSelector as Bt, detectSessionProvider as C, resolveLocalProvider as Cn, removeRunSettings as Ct, budgetExceeded as D, allSetups as Dn, routerPort as Dt, budgetCache as E, PORT_TIMEOUT_MS as En, routerHandler as Et, LimitsCache as F, setupWorkersLabel as Fn, clearSessionRoute as Ft, fmtMem as G, appendUsage as Gn, servingChip as Gt, ProbeHold as H, recordDuration as Hn, routeChoices as Ht, buildSpeed as I, setupsPath as In, configuredLocal as It, inventoryRows as J, isTimeOrdered as Jn, setRoute as Jt, fmtMemMapped as K, formatSessionStats as Kn, sessionRoutesPatch as Kt, percentile as L, shortModel as Ln, entryLabel as Lt, budgetWall as M, orchestratorLabel as Mn, loopbackRefusal as Mt, fetchBudgetReading as N, saveSetup as Nn, TIGHT_PERCENT as Nt, budgetFresh as O, downLocalProviders as On, defaultV1Guard as Ot, pickBudgetWindow as P, setupProfile as Pn, applyPolicyToRoutes as Pt, modelLabel as Q, splitBySessionKind as Qn, POLICY_MODES as Qt, DOWN_AFTER_MISSES as R, workersLabel as Rn, flowText as Rt, applySessionProviderEnv as S, providerHostPort as Sn, gcSettingsFiles as St, BudgetCache as T, startLocalStatusRefresh as Tn, duplicateModelIds as Tt, computeInventory as U, aggregate as Un, routeRows as Ut, MODEL_INVENTORY_REFRESH_MS as V, sharedParker as Vn, resolveSessionArg as Vt, currentInventory as W, aggregateBySession as Wn, routeText as Wt, liveDeps as X, parseSince as Xn, tierFlow as Xt, inventoryText as Y, markTimeOrdered as Yn, setSessionRoute as Yt, modelKind as Z, readUsage as Zn, validateRoute as Zt, resolveTarget as _, currentLocalStatus as _n, nativeRoutePreflight as _t, clearCooldown as a, readPolicy as an, readInventoryInput as at, SESSION_PROVIDER_ENV as b, pickLocal as bn, routeLoopbackViaRouter as bt, exclusionReason as c, detectSessionName as cn, writeInventory as ct, probeQuota as d, getProfile as dn, claudeCommand as dt, committedFallThrough as en, parseSizeMb as et, quotaExceeded as f, profilesPath as fn, claudeSettingsExtra as ft, resolveCapabilityRun as g, NoLocalServerError as gn, nativeLaunchSettingsArgs as gt, recordBudgetCooldowns as h, LOCAL_MECHANISM_LINE as hn, nativeLaunchEnv as ht, capabilityForRun as i, parseDuration as in, readInventory as it, budgetUntilLabel as j, loadSaved as jn, isTailnetOrLocalName as jt, budgetFull as k, findSetup as kn, displayHost as kt, isQuotaFailure as l, BATCH_ENV as ln, addSchedulingHeaders as lt, readRoutingState as m, updateProfile as mn, loopbackRouterChoice as mt, NoProviderError as n, findLocal as nn, processTreeMemory as nt, cooldownRemaining as o, routeRun as on, readModelLabels as ot, quotaSkipThreshold as p, readProfiles as pn, isLoopbackProvider as pt, inventoryPath as q, formatStats as qn, sessionStartTarget as qt, autoOrder as r, onBattery as rn, processTreeRssMb as rt, entryModel as s, writePolicy as sn, startInventoryRefresh as st, BUDGET_COOLDOWN_MIN as t, fallThroughReason as tn, parseTable as tt, nextAutoProvider as u, SESSION_NAME_ENV as un, buildRunEnv as ut, setCooldown as v, localProviderForDelegation as vn, pinnedSettings as vt, BUDGET_TTL_MS as w, resolveRunnerProvider as wn, writePrivateFile as wt, SESSION_WORKER_PROVIDER_ENV as x, probeLoopback as xn, routeVerdictLine as xt, writeRoutingState as y, localTierOrder as yn, pinnedSettingsArgs as yt, INVENTORY_HEADERS as z, parkConfigFrom as zn, parseSelector as zt };
6029
- //# sourceMappingURL=routing-BlD_tKjW.mjs.map
6029
+ //# sourceMappingURL=routing-aJKMIagQ.mjs.map
@@ -1,27 +1,27 @@
1
- import { g as paiHomePath, l as claudeHomeDir } from "./runtime-paths-WsO9sJFc.mjs";
2
- import { Ct as planEscalation, Et as appendLedger, F as resolveProviderKey, M as readWorkersSection, P as resolveModelCapability, R as LOOPBACK_HOST, St as ledgerEscalate, Tt as withSummary, c as WorkersConfigError, ct as applyRouteOverrides, f as escalationCloud, h as isModelCapability, j as readWorkersCached, k as providerKeyPath, l as assertProviderRunnable, m as isLocalProvider, mt as parseEntry, p as getProviderOrNative, rt as workersYamlPath, t as ANTHROPIC_NATIVE, u as classModelCapability, v as nativeAnthropicModels, vt as certainContextWindow, wt as sessionNote } from "./config-CST2uq1v.mjs";
3
- import { _ as effectiveWorkersYamlRaw } from "./config-DYbyEe4-.mjs";
4
- import { i as ledgerPath, n as ensureNoMcpConfig, r as eventsPath, u as workersLogDir } from "./paths-DS5VQKoR.mjs";
5
- import { A as applyScratchEnv, C as worktreeWanted, S as worktreeSystemPrompt, _ as ownedTree, a as archiveEmptyResult, f as gcWorktreesThrottled, h as markResumed, i as adoptTree, j as scratchPromptLine, o as commitLines, p as inPlaceSystemPrompt, r as addWorktree, t as GATE_MARK, v as recordWorktree, w as worktreesDir, x as worktreeRefusesStart, y as salvageOnExit } from "./worktree-BY--Rgmy.mjs";
6
- import { C as nowStamp, D as pidAlive, E as parseSleepSecs, J as loadPreamble, Q as appendSystemPromptArgs, S as newWorkerId, X as preambleLine, Y as preambleBlock, Z as projectRoot, a as UNLABELED, d as describeTool, g as isLive, k as saveStatus, nt as shortText, rt as stripPromptValues, tt as parseRunnerArgs, v as loadStatus, x as markStartFailed, y as loadStatuses } from "./status-COtzewKV.mjs";
7
- import { D as readMcpServers, E as mcpServersFromToolGrants, O as writeMcpConfig, S as inputSideTokens, T as grantsChrome, d as poolIneligibleReason, g as postTaskToPool, h as poolSettings, n as SLOT_TOOLS, r as UNIT_MARKER, t as SHARED_MARKER, w as expandMcpNames, y as reloadInProgress } from "./pool-BZ94nFuq.mjs";
8
- import { i as itermUuid, o as resolveSession, s as resolveSpawnerSession } from "./scope-D8HK6vU7.mjs";
9
- import { An as httpModelsCheck, Cn as resolveLocalProvider, Ct as removeRunSettings, Dt as routerPort, E as budgetCache, En as PORT_TIMEOUT_MS, S as applySessionProviderEnv, Sn as providerHostPort, _ as resolveTarget, bt as routeLoopbackViaRouter, cn as detectSessionName, dn as getProfile, dt as claudeCommand, en as committedFallThrough, ft as claudeSettingsExtra, g as resolveCapabilityRun, gn as NoLocalServerError, h as recordBudgetCooldowns, hn as LOCAL_MECHANISM_LINE, i as capabilityForRun, k as budgetFull, l as isQuotaFailure, ln as BATCH_ENV, lt as addSchedulingHeaders, n as NoProviderError, o as cooldownRemaining, on as routeRun, pt as isLoopbackProvider, r as autoOrder, tn as fallThroughReason, u as nextAutoProvider, ut as buildRunEnv, v as setCooldown, vt as pinnedSettings, wn as resolveRunnerProvider, wt as writePrivateFile, x as SESSION_WORKER_PROVIDER_ENV, xn as probeLoopback } from "./routing-BlD_tKjW.mjs";
1
+ import { _ as paiHomePath, l as claudeHomeDir } from "./runtime-paths-twfV23YL.mjs";
2
+ import { Ct as planEscalation, Et as appendLedger, F as resolveProviderKey, M as readWorkersSection, P as resolveModelCapability, R as LOOPBACK_HOST, St as ledgerEscalate, Tt as withSummary, c as WorkersConfigError, ct as applyRouteOverrides, f as escalationCloud, h as isModelCapability, j as readWorkersCached, k as providerKeyPath, l as assertProviderRunnable, m as isLocalProvider, mt as parseEntry, p as getProviderOrNative, rt as workersYamlPath, t as ANTHROPIC_NATIVE, u as classModelCapability, v as nativeAnthropicModels, vt as certainContextWindow, wt as sessionNote } from "./config-Bz8pAU5Q.mjs";
3
+ import { _ as effectiveWorkersYamlRaw } from "./config-SlZ-Z52i.mjs";
4
+ import { i as ledgerPath, n as ensureNoMcpConfig, r as eventsPath, u as workersLogDir } from "./paths-CypxFTfn.mjs";
5
+ import { A as applyScratchEnv, C as worktreeWanted, S as worktreeSystemPrompt, _ as ownedTree, a as archiveEmptyResult, f as gcWorktreesThrottled, h as markResumed, i as adoptTree, j as scratchPromptLine, o as commitLines, p as inPlaceSystemPrompt, r as addWorktree, t as GATE_MARK, v as recordWorktree, w as worktreesDir, x as worktreeRefusesStart, y as salvageOnExit } from "./worktree-O_kU6Q3y.mjs";
6
+ import { $ as appendSystemPromptArgs, A as selfProcStart, C as nowStamp, D as pidAlive, E as parseSleepSecs, Q as projectRoot, S as newWorkerId, X as preambleBlock, Y as loadPreamble, Z as preambleLine, a as UNLABELED, d as describeTool, g as isLive, it as stripPromptValues, k as saveStatus, nt as parseRunnerArgs, rt as shortText, v as loadStatus, x as markStartFailed, y as loadStatuses } from "./status-Cecau8Ps.mjs";
7
+ import { D as readMcpServers, E as mcpServersFromToolGrants, O as writeMcpConfig, S as inputSideTokens, T as grantsChrome, d as poolIneligibleReason, g as postTaskToPool, h as poolSettings, n as SLOT_TOOLS, r as UNIT_MARKER, t as SHARED_MARKER, w as expandMcpNames, y as reloadInProgress } from "./pool-9EsbKD-U.mjs";
8
+ import { i as itermUuid, o as resolveSession, s as resolveSpawnerSession } from "./scope-BTWstJ1B.mjs";
9
+ import { An as httpModelsCheck, Cn as resolveLocalProvider, Ct as removeRunSettings, Dt as routerPort, E as budgetCache, En as PORT_TIMEOUT_MS, S as applySessionProviderEnv, Sn as providerHostPort, _ as resolveTarget, bt as routeLoopbackViaRouter, cn as detectSessionName, dn as getProfile, dt as claudeCommand, en as committedFallThrough, ft as claudeSettingsExtra, g as resolveCapabilityRun, gn as NoLocalServerError, h as recordBudgetCooldowns, hn as LOCAL_MECHANISM_LINE, i as capabilityForRun, k as budgetFull, l as isQuotaFailure, ln as BATCH_ENV, lt as addSchedulingHeaders, n as NoProviderError, o as cooldownRemaining, on as routeRun, pt as isLoopbackProvider, r as autoOrder, tn as fallThroughReason, u as nextAutoProvider, ut as buildRunEnv, v as setCooldown, vt as pinnedSettings, wn as resolveRunnerProvider, wt as writePrivateFile, x as SESSION_WORKER_PROVIDER_ENV, xn as probeLoopback } from "./routing-aJKMIagQ.mjs";
10
10
  import { t as maxOf } from "./min-max-DrSRUaWQ.mjs";
11
- import { b as readToolErrors, h as harnessToolErrorTexts, p as grantedToolNames, x as recordToolError } from "./tool-errors-DXJ70-sr.mjs";
12
- import { _ as workerContractPrompt, b as killProcessTree, c as checkProof, d as parseWorkerReport, f as promptTrailer, g as verifyReportChanges, h as verifyFailNote, l as newUntracked, m as untrackedPaths, o as AG2_REASK_TEXT, s as OPERATOR_MARK, u as noteTokenSentence, v as repairAndValidateAg2, x as processTree, y as validateAg2 } from "./wait-ChpHKJZV.mjs";
13
- import { a as buildsDir, d as releaseBuildsOf } from "./caller-identity-Bim8JT-D.mjs";
14
- import { c as queuedText, d as resolveCap, h as staggerGate, m as recordWarmup, n as capacityGate, p as sessionScopeKey, r as capacityOf, t as admitCap } from "./capacity-CsZMkVyg.mjs";
15
- import { n as tierProviderNames, t as isLocalCandidate } from "./local-candidate-Cp_bw4kK.mjs";
11
+ import { b as readToolErrors, h as harnessToolErrorTexts, p as grantedToolNames, x as recordToolError } from "./tool-errors-BFw1gv-z.mjs";
12
+ import { _ as workerContractPrompt, b as killProcessTree, c as checkProof, d as parseWorkerReport, f as promptTrailer, g as verifyReportChanges, h as verifyFailNote, l as newUntracked, m as untrackedPaths, o as AG2_REASK_TEXT, s as OPERATOR_MARK, u as noteTokenSentence, v as repairAndValidateAg2, x as processTree, y as validateAg2 } from "./wait-C5iWILj_.mjs";
13
+ import { a as buildsDir, d as releaseBuildsOf } from "./caller-identity-C6Nc96iM.mjs";
14
+ import { _ as sessionScopeKey, b as staggerGate, h as resolveCap, n as capacityGate, r as capacityOf, t as admitCap, u as queuedText, y as recordWarmup } from "./capacity-B2PgKAg4.mjs";
15
+ import { n as tierProviderNames, t as isLocalCandidate } from "./local-candidate-DFd4pp-w.mjs";
16
16
  import { t as LOCAL_PROBE_TIMEOUT_MS } from "./timeouts-1MLooEBB.mjs";
17
- import { i as getRegistryBackend } from "./factory-BV0MQA3T.mjs";
18
- import { c as ensureProxyRunning, i as detectCurrentModel, l as proxyPort } from "./launch-DpQPZGsT.mjs";
19
- import { A as tail, Et as openOwnedPane, Kt as isHandoffMessage, Q as NoTerminalError, Wt as deliverHandoff, Xt as localFailures, _ as troublePolicy, _t as paneTitle, at as headlessAllowed, d as aibrokerMessenger, f as detachRun, h as originFromEnv, ht as resolveHostSession, it as followCommand, m as markRunDone, mt as realPaneOps, nt as closePaneForWorker, o as ownerOf, p as eventLine, r as returnControlsIfHeld, ut as openVerifiedPane, v as appendRunLog, z as gatePhaseName } from "./controls-OiVVbe-f.mjs";
20
- import { i as endFields, o as parentInfo, r as decideEndReason, t as appendStopEvent } from "./endreason-BqyyU7BH.mjs";
21
- import { A as resolveLimit, E as armDeadline, F as checkOrphanedChildren, I as isWorkerId, L as launchParent, M as blockedMsOf, O as deadlinePromptLine, P as assertChildAllowed, T as recordDenial, k as extendLimit, w as parseDenialText } from "./render-Cz3BWIBO.mjs";
22
- import { t as createOperatorServer } from "./operator-DrwWItVt.mjs";
23
- import { i as killTree } from "./kill-tree-CcpsRLCZ.mjs";
24
- import { r as ensurePoolHost } from "./pool-cli-B1eKySeN.mjs";
17
+ import { i as getRegistryBackend } from "./factory-CYwa0jYj.mjs";
18
+ import { c as ensureProxyRunning, i as detectCurrentModel, l as proxyPort } from "./launch-Bn2Zf90h.mjs";
19
+ import { A as tail, Ct as openOwnedPane, Q as NoTerminalError, Ut as isHandoffMessage, Vt as deliverHandoff, _ as troublePolicy, _t as paneTitle, at as headlessAllowed, d as aibrokerMessenger, f as detachRun, h as originFromEnv, ht as resolveHostSession, it as followCommand, m as markRunDone, mt as realPaneOps, nt as closePaneForWorker, o as ownerOf, p as eventLine, qt as localFailures, r as returnControlsIfHeld, ut as openVerifiedPane, v as appendRunLog, z as gatePhaseName } from "./controls-rIItFeIJ.mjs";
20
+ import { i as endFields, o as parentInfo, r as decideEndReason, t as appendStopEvent } from "./endreason-C2-hYK0_.mjs";
21
+ import { $ as launchParent, A as resolveLimit, E as armDeadline, I as scanWorkerRun, M as blockedMsOf, O as deadlinePromptLine, Q as isWorkerId, T as recordDenial, X as assertChildAllowed, Z as checkOrphanedChildren, k as extendLimit, w as parseDenialText } from "./render-jPpMrudf.mjs";
22
+ import { t as createOperatorServer } from "./operator-Br6GeswF.mjs";
23
+ import { i as killTree } from "./kill-tree-DPiMscaY.mjs";
24
+ import { r as ensurePoolHost } from "./pool-cli-Db0uDwB9.mjs";
25
25
  import { closeSync, existsSync, mkdirSync, mkdtempSync, openSync, readFileSync, readdirSync, realpathSync, statSync, unlinkSync, writeFileSync, writeSync } from "node:fs";
26
26
  import { createHash, randomBytes } from "node:crypto";
27
27
  import { dirname, join, resolve, sep } from "node:path";
@@ -1087,6 +1087,7 @@ async function finaliseRun(f) {
1087
1087
  ...endFields(end)
1088
1088
  });
1089
1089
  if (f.worktree) status = recordWorktree(logDir, status, f.worktree, ok);
1090
+ await scanWorkerRun(logDir, status).catch(() => void 0);
1090
1091
  const reviewed = f.worktree ? committedFallThrough(f.fallThroughWhy?.(status, report) ?? null, commitLines(f.worktree.dir, f.worktree.base)) : null;
1091
1092
  if (reviewed) {
1092
1093
  process.stderr.write(`pai worker: ${wid} ended badly but committed — kept for review, no cloud re-run\n`);
@@ -1281,7 +1282,10 @@ async function tryEscalate(a, wid, st, report, resultText, commits, failureWhy,
1281
1282
  const p0 = parseRunnerArgs(a.opts.claudeArgs).prompt;
1282
1283
  let swapped = false;
1283
1284
  return (a.runner ?? runWorker$1)({
1284
- ...relaunchOptions(a.opts, {}),
1285
+ ...relaunchOptions(a.opts, {
1286
+ localFlag: void 0,
1287
+ localName: void 0
1288
+ }),
1285
1289
  providerFlag: o.providerFlag,
1286
1290
  modelFlag: o.modelFlag,
1287
1291
  label: o.label,
@@ -1299,7 +1303,7 @@ async function tryEscalate(a, wid, st, report, resultText, commits, failureWhy,
1299
1303
  notifySession: async (text) => {
1300
1304
  const target = st.session?.id || st.session?.name || st.sessionKey;
1301
1305
  if (!target) return;
1302
- const { sendToSession } = await import("./aibroker-client-BxzeEHPF.mjs");
1306
+ const { sendToSession } = await import("./aibroker-client-ChB7gSxV.mjs");
1303
1307
  await sendToSession(target, text, void 0, { noReply: true });
1304
1308
  }
1305
1309
  });
@@ -3426,10 +3430,10 @@ function resolveWorkers(args, ctx) {
3426
3430
  /** The live context: config, this session's profile, fresh budget readings (warmed best effort) and recorded cooldowns. */
3427
3431
  async function liveResolveCtx(env = process.env, warm = true) {
3428
3432
  const [{ readWorkersSection }, { budgetCache }, { readRoutingState }, { workersLogDir }] = await Promise.all([
3429
- import("./config-h5qK3fst.mjs"),
3430
- import("./budget-DX-VIWGf.mjs"),
3431
- import("./routing-D27jxj9x.mjs"),
3432
- import("./paths-DBd78I7Z.mjs")
3433
+ import("./config-DLmyEK2q.mjs"),
3434
+ import("./budget-DEiebT2A.mjs"),
3435
+ import("./routing-B_cg1_Xx.mjs"),
3436
+ import("./paths-DIOwNcj-.mjs")
3433
3437
  ]);
3434
3438
  const { workers } = readWorkersSection();
3435
3439
  const profile = getProfile(await detectSessionName(env));
@@ -3729,6 +3733,13 @@ async function tryPoolRun(a) {
3729
3733
  if (!a.quiet) printResult(a.parsed.outputFormat, resp.resultEvent ?? null, rc, a.logDir, wid, report);
3730
3734
  return rc;
3731
3735
  }
3736
+ /** The pane's queue file content from a gate poll: the run's place in line, its label last. */
3737
+ function queuedOf(q, label) {
3738
+ return label ? {
3739
+ ...q,
3740
+ label
3741
+ } : q;
3742
+ }
3732
3743
  /**
3733
3744
  * Capacity gate, then stagger gate, for one headless run — the single place
3734
3745
  * both the pooled and the fresh-spawn path pass through. `status` is the
@@ -3785,7 +3796,8 @@ async function runGates(a, wid, status) {
3785
3796
  status.last = saved;
3786
3797
  }
3787
3798
  saveStatus(logDir, status);
3788
- }
3799
+ },
3800
+ onQueued: (line) => paneHandles.get(wid)?.setQueued(line === null ? null : queuedOf(line, a.label))
3789
3801
  };
3790
3802
  const max = status.sessionKey ? getProfile(status.sessionKey)?.max_parallel : void 0;
3791
3803
  if (status.sessionKey && max) {
@@ -3846,6 +3858,7 @@ async function gateStart(a) {
3846
3858
  id: wid,
3847
3859
  pid: process.pid,
3848
3860
  runPid: process.pid,
3861
+ procStart: selfProcStart(),
3849
3862
  label: a.label,
3850
3863
  cwd: a.cwd ?? process.cwd(),
3851
3864
  term: "",
@@ -3914,6 +3927,7 @@ async function foldRun(a, p) {
3914
3927
  id: wid,
3915
3928
  pid: process.pid,
3916
3929
  runPid: process.pid,
3930
+ procStart: selfProcStart(),
3917
3931
  ...parentInfo(),
3918
3932
  label,
3919
3933
  cwd,
@@ -4459,6 +4473,7 @@ async function executeImageRun(a) {
4459
4473
  id: wid,
4460
4474
  pid: process.pid,
4461
4475
  runPid: process.pid,
4476
+ procStart: selfProcStart(),
4462
4477
  label,
4463
4478
  cwd,
4464
4479
  term,
@@ -4585,6 +4600,7 @@ async function executeCodexRun(a) {
4585
4600
  id: wid,
4586
4601
  pid: process.pid,
4587
4602
  runPid: process.pid,
4603
+ procStart: selfProcStart(),
4588
4604
  ...parentInfo(),
4589
4605
  label,
4590
4606
  cwd,
@@ -4904,7 +4920,7 @@ async function runWorker(opts) {
4904
4920
  if (gc?.length) process.stderr.write(`pai worker: archived ${gc.length} leftover worktree(s) (pai worker gc)\n`);
4905
4921
  } catch {}
4906
4922
  if (opts.className === "plan" && !opts._planner) {
4907
- const { runPlanner } = await import("./planner-K0mFrCpL.mjs");
4923
+ const { runPlanner } = await import("./planner-BzZ_2lc-.mjs");
4908
4924
  return runPlanner(opts);
4909
4925
  }
4910
4926
  const parent = launchParent(opts.parent);
@@ -5128,4 +5144,4 @@ setRunWorker(runWorker);
5128
5144
 
5129
5145
  //#endregion
5130
5146
  export { routerPidFile as A, usageContextTokens as B, workerUsage as C, routerHandoverFile as D, probeRouter as E, startHandover as F, testProvider as H, paneWaiver as I, launchPane as L, routerSwapArgs as M, runRouterTick as N, routerIsStale as O, spawnRouter as P, noTerminalReasons as R, usageJson as S, projectLaunchConfig as T, endProcesses as U, printResult as V, findWorktreeOrphans as W, stopLaunchedWorkers as _, resolveWorkers as a, renderUsage as b, reportOriginWithHost as c, capture as d, dirtyPaths as f, realRunnerDeps as g, realCommitsAhead as h, liveResolveCtx as i, routerRunningPid as j, routerLogFile as k, runMessenger as l, mergeBranch as m, LocalProviderRefusedError as n, sessionWorkersLine as o, launchWorker as p, PoolRefusedError as r, finishDetached as s, runWorker as t, startDetached as u, parseWhen as v, pinNotices as w, transcriptUsage as x, priceTableText as y, recordSystemJobStart as z };
5131
- //# sourceMappingURL=run-AZVwceiU.mjs.map
5147
+ //# sourceMappingURL=run-DE9Q0ldN.mjs.map
@@ -251,5 +251,5 @@ function paiCacheDir() {
251
251
  }
252
252
 
253
253
  //#endregion
254
- export { resolvePaiFile as _, paiCacheDir as a, PaiFileMigrationError as c, defaultPaiHomeDir as d, legacyConfigDir as f, paiHomePath as g, paiHomeDir as h, daemonPidPath as i, claudeHomeDir as l, migratePaiFile as m, aibrokerSocketPath as n, paiSocketPath as o, migratePaiDir as p, daemonLogPath as r, schedulerLogPath as s, aibrokerHomeDir as t, claudeProjectsDir as u };
255
- //# sourceMappingURL=runtime-paths-WsO9sJFc.mjs.map
254
+ export { paiHomePath as _, paiCacheDir as a, PaiFileMigrationError as c, defaultPaiHomeDir as d, legacyConfigDir as f, paiHomeDir as g, migratePaiFile as h, daemonPidPath as i, claudeHomeDir as l, migratePaiDir as m, aibrokerSocketPath as n, paiSocketPath as o, legacyPaiHomeDir as p, daemonLogPath as r, schedulerLogPath as s, aibrokerHomeDir as t, claudeProjectsDir as u, resolvePaiFile as v };
255
+ //# sourceMappingURL=runtime-paths-twfV23YL.mjs.map
@@ -1,10 +1,10 @@
1
1
  import { _ as warn, c as ok, i as err, n as dim, r as encodeDir, s as now, t as bold } from "./utils-J2b9y8PC.mjs";
2
- import { _ as resolvePaiFile, d as defaultPaiHomeDir, g as paiHomePath, m as migratePaiFile, u as claudeProjectsDir$1 } from "./runtime-paths-WsO9sJFc.mjs";
3
- import { a as slugify, i as parseSessionFilename, n as decodeEncodedDir, t as buildEncodedDirMap } from "./migrate-DrA_OwlZ.mjs";
4
- import { O as readJsonStrict, k as writeJsonAtomic, o as expandHome } from "./config-DYbyEe4-.mjs";
5
- import { a as unregistrableReason, o as workerWorktreesRoot, r as pruneWorktreeProjects } from "./registrable-CXBBpUcz.mjs";
6
- import { n as ensurePaiMarker, t as discoverPaiMarkers } from "./pai-marker-DLKJ9Yr5.mjs";
7
- import { i as getRegistryBackend } from "./factory-BV0MQA3T.mjs";
2
+ import { _ as paiHomePath, d as defaultPaiHomeDir, h as migratePaiFile, u as claudeProjectsDir$1, v as resolvePaiFile } from "./runtime-paths-twfV23YL.mjs";
3
+ import { a as slugify, i as parseSessionFilename, n as decodeEncodedDir, t as buildEncodedDirMap } from "./migrate-C2z1YmWC.mjs";
4
+ import { O as readJsonStrict, k as writeJsonAtomic, o as expandHome } from "./config-SlZ-Z52i.mjs";
5
+ import { a as unregistrableReason, o as workerWorktreesRoot, r as pruneWorktreeProjects } from "./registrable-Dxs4oKIj.mjs";
6
+ import { n as ensurePaiMarker, t as discoverPaiMarkers } from "./pai-marker-D6OoVbM_.mjs";
7
+ import { i as getRegistryBackend } from "./factory-CYwa0jYj.mjs";
8
8
  import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, statSync, writeFileSync } from "node:fs";
9
9
  import { basename, join, resolve } from "node:path";
10
10
  import { homedir } from "node:os";
@@ -718,4 +718,4 @@ async function cmdScan(opts = {}) {
718
718
 
719
719
  //#endregion
720
720
  export { resolveHome as a, upsertSession as c, scanTranscriptFolders as d, transcriptFiles as f, performScan as i, claudeProjectsDir as l, loadScanConfig as n, saveScanConfig as o, migrateScanConfig as r, upsertProject as s, cmdScan as t, findMovedProjects as u };
721
- //# sourceMappingURL=scan-C3uotg_f.mjs.map
721
+ //# sourceMappingURL=scan-CNMcltOX.mjs.map
@@ -1,6 +1,6 @@
1
- import { M as readWorkersSection } from "./config-CST2uq1v.mjs";
2
- import { c as slotCurrentPath, u as workersLogDir } from "./paths-DS5VQKoR.mjs";
3
- import { _ as isTerminal, v as loadStatus } from "./status-COtzewKV.mjs";
1
+ import { M as readWorkersSection } from "./config-Bz8pAU5Q.mjs";
2
+ import { c as slotCurrentPath, u as workersLogDir } from "./paths-CypxFTfn.mjs";
3
+ import { _ as isTerminal, v as loadStatus } from "./status-Cecau8Ps.mjs";
4
4
  import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
5
5
  import { dirname, join } from "node:path";
6
6
  import { homedir } from "node:os";
@@ -221,4 +221,4 @@ function terminalHasName(name, term, registryPath = AIBROKER_REGISTRY) {
221
221
 
222
222
  //#endregion
223
223
  export { ownerSessionName as a, scopeKey as c, terminalHasName as d, workerInScope as f, itermUuid as i, sessionMapPath as l, currentTabKey as n, resolveSession as o, currentWorkerId as p, itermForClaudeSession as r, resolveSpawnerSession as s, AIBROKER_REGISTRY as t, sessionTag as u };
224
- //# sourceMappingURL=scope-D8HK6vU7.mjs.map
224
+ //# sourceMappingURL=scope-BTWstJ1B.mjs.map
@@ -0,0 +1,35 @@
1
+ import "./utils-J2b9y8PC.mjs";
2
+ import "./migrate-C2z1YmWC.mjs";
3
+ import "./config-Bz8pAU5Q.mjs";
4
+ import "./config-SlZ-Z52i.mjs";
5
+ import "./paths-CypxFTfn.mjs";
6
+ import "./worktree-O_kU6Q3y.mjs";
7
+ import "./status-Cecau8Ps.mjs";
8
+ import "./pool-9EsbKD-U.mjs";
9
+ import "./registrable-Dxs4oKIj.mjs";
10
+ import "./pai-marker-D6OoVbM_.mjs";
11
+ import "./helpers-CRuBUas3.mjs";
12
+ import "./scope-BTWstJ1B.mjs";
13
+ import "./routing-aJKMIagQ.mjs";
14
+ import "./tool-errors-BFw1gv-z.mjs";
15
+ import "./wait-C5iWILj_.mjs";
16
+ import "./local-tiers-CqwGUcEn.mjs";
17
+ import "./caller-identity-C6Nc96iM.mjs";
18
+ import "./capacity-B2PgKAg4.mjs";
19
+ import "./local-instances-DhF4_sV2.mjs";
20
+ import "./local-candidate-DFd4pp-w.mjs";
21
+ import "./factory-CYwa0jYj.mjs";
22
+ import "./postgres-BL5oBBgY.mjs";
23
+ import "./embedding-gate-iq0oQEkF.mjs";
24
+ import "./embeddings-BVq3esBF.mjs";
25
+ import "./router-D2476pOp.mjs";
26
+ import "./detect-DLjeYwnt.mjs";
27
+ import "./helpers-Dj2nY56t.mjs";
28
+ import "./scan-CNMcltOX.mjs";
29
+ import { a as newTop, c as planOpen, d as runNewDefault, f as sessionCommand, i as lsCommand, l as renameTop, n as collectRows, o as oneLine, p as sessionDir, r as collectView, s as openTop, t as applyProfileChat, u as rowsTable } from "./session-HBYOABWU.mjs";
30
+ import "./launch-Bn2Zf90h.mjs";
31
+ import "./health-D0mUAVdw.mjs";
32
+ import "./launch-BZT3JDoZ.mjs";
33
+ import "./session-scan-CX3MKCNg.mjs";
34
+
35
+ export { runNewDefault };
@@ -1,22 +1,22 @@
1
1
  import { _ as warn, a as fmtDate, c as ok, d as scaffoldProjectDirs, f as shortenPath, i as err, l as renderTable, n as dim, o as header, p as slugFromPath, r as encodeDir, s as now, t as bold, u as resolvePath } from "./utils-J2b9y8PC.mjs";
2
- import { u as claudeProjectsDir } from "./runtime-paths-WsO9sJFc.mjs";
3
- import { Et as appendLedger, M as readWorkersSection, b as nativeOrchestratorModel, bt as stripModelVariant, p as getProviderOrNative, t as ANTHROPIC_NATIVE } from "./config-CST2uq1v.mjs";
4
- import { i as ledgerPath, u as workersLogDir } from "./paths-DS5VQKoR.mjs";
5
- import { M as trustProjectPath } from "./pool-BZ94nFuq.mjs";
6
- import { a as unregistrableReason } from "./registrable-CXBBpUcz.mjs";
7
- import { n as ensurePaiMarker } from "./pai-marker-DLKJ9Yr5.mjs";
2
+ import { u as claudeProjectsDir } from "./runtime-paths-twfV23YL.mjs";
3
+ import { Et as appendLedger, M as readWorkersSection, b as nativeOrchestratorModel, bt as stripModelVariant, p as getProviderOrNative, t as ANTHROPIC_NATIVE } from "./config-Bz8pAU5Q.mjs";
4
+ import { i as ledgerPath, u as workersLogDir } from "./paths-CypxFTfn.mjs";
5
+ import { M as trustProjectPath } from "./pool-9EsbKD-U.mjs";
6
+ import { a as unregistrableReason } from "./registrable-Dxs4oKIj.mjs";
7
+ import { n as ensurePaiMarker } from "./pai-marker-D6OoVbM_.mjs";
8
8
  import { t as STOP_WORDS } from "./stop-words-DSEYQdNe.mjs";
9
- import { dn as getProfile, un as SESSION_NAME_ENV, x as SESSION_WORKER_PROVIDER_ENV, xt as routeVerdictLine } from "./routing-BlD_tKjW.mjs";
9
+ import { dn as getProfile, un as SESSION_NAME_ENV, x as SESSION_WORKER_PROVIDER_ENV, xt as routeVerdictLine } from "./routing-aJKMIagQ.mjs";
10
10
  import { n as OPT, t as CliError } from "./define-CjJsmq-6.mjs";
11
- import { i as getRegistryBackend } from "./factory-BV0MQA3T.mjs";
12
- import { n as formatDetection, r as formatDetectionJson, t as detectProject } from "./detect-CHuxFrLy.mjs";
13
- import { a as getSessionCount, c as upsertTag$1, i as getProjectTags, n as getProject$1, o as requireProject, r as getProjectAliases, s as resolveIdentifier, t as getLastSessionDate } from "./helpers-CvbYEKoD.mjs";
14
- import { a as resolveHome, n as loadScanConfig } from "./scan-C3uotg_f.mjs";
15
- import { n as buildLaunchPlan, o as launchableProviderNames, s as maskLaunchEnv, t as LaunchError } from "./launch-DpQPZGsT.mjs";
16
- import { a as colorEnabled, f as renderTable$1, i as saveBudgetSnapshot, n as readBudget, o as makeStyle, r as readBudgetSnapshot, t as providerHealth } from "./health-kufVIf6i.mjs";
17
- import { d as printExitDir, i as probeResume, u as transcriptModelFor } from "./launch-UPQBoW2q.mjs";
18
- import { n as fetchLiveSessions } from "./aibroker-client-CQPGqLxL.mjs";
19
- import { a as resolveSessionByNameOrId, s as scanSessions, t as fmtAge } from "./session-scan-BmnjSReu.mjs";
11
+ import { i as getRegistryBackend } from "./factory-CYwa0jYj.mjs";
12
+ import { n as formatDetection, r as formatDetectionJson, t as detectProject } from "./detect-DLjeYwnt.mjs";
13
+ import { a as getSessionCount, c as upsertTag$1, i as getProjectTags, n as getProject$1, o as requireProject, r as getProjectAliases, s as resolveIdentifier, t as getLastSessionDate } from "./helpers-Dj2nY56t.mjs";
14
+ import { a as resolveHome, n as loadScanConfig } from "./scan-CNMcltOX.mjs";
15
+ import { n as buildLaunchPlan, o as launchableProviderNames, s as maskLaunchEnv, t as LaunchError } from "./launch-Bn2Zf90h.mjs";
16
+ import { a as colorEnabled, f as renderTable$1, i as saveBudgetSnapshot, n as readBudget, o as makeStyle, r as readBudgetSnapshot, t as providerHealth } from "./health-D0mUAVdw.mjs";
17
+ import { d as printExitDir, i as probeResume, u as transcriptModelFor } from "./launch-BZT3JDoZ.mjs";
18
+ import { n as fetchLiveSessions } from "./aibroker-client-CXsyC7A8.mjs";
19
+ import { a as resolveSessionByNameOrId, s as scanSessions, t as fmtAge } from "./session-scan-CX3MKCNg.mjs";
20
20
  import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, statSync, writeFileSync } from "node:fs";
21
21
  import { basename, dirname, join, resolve } from "node:path";
22
22
  import chalk from "chalk";
@@ -1066,7 +1066,7 @@ async function getSessionTags(registryBackend, sessionId) {
1066
1066
  * Session CRUD commands: list, info, rename, slug, tag, route, active, auto-route.
1067
1067
  */
1068
1068
  async function cmdList(projectSlug, opts) {
1069
- const { getRegistryBackend } = await import("./factory-DeASMV7Z.mjs");
1069
+ const { getRegistryBackend } = await import("./factory-DFwez99M.mjs");
1070
1070
  const registryBackend = await getRegistryBackend();
1071
1071
  const limit = parseInt(opts.limit ?? "20", 10);
1072
1072
  let project;
@@ -1131,7 +1131,7 @@ async function cmdList(projectSlug, opts) {
1131
1131
  console.log(dim(` ${rows.length} session(s) shown (limit: ${limit})`));
1132
1132
  }
1133
1133
  async function cmdInfo(projectSlug, sessionNumber) {
1134
- const { getRegistryBackend } = await import("./factory-DeASMV7Z.mjs");
1134
+ const { getRegistryBackend } = await import("./factory-DFwez99M.mjs");
1135
1135
  const registryBackend = await getRegistryBackend();
1136
1136
  const project = await getProject(registryBackend, projectSlug);
1137
1137
  if (!project) {
@@ -1155,7 +1155,7 @@ async function cmdInfo(projectSlug, sessionNumber) {
1155
1155
  console.log();
1156
1156
  }
1157
1157
  async function cmdRename(projectSlug, numberOrLatest, newSlug) {
1158
- const { getRegistryBackend } = await import("./factory-DeASMV7Z.mjs");
1158
+ const { getRegistryBackend } = await import("./factory-DFwez99M.mjs");
1159
1159
  await cmdRenameWith(await getRegistryBackend(), projectSlug, numberOrLatest, newSlug);
1160
1160
  }
1161
1161
  /** Strips path separators and ".." so a title can never leave the notes dir. */
@@ -1242,7 +1242,7 @@ async function cmdRenameWith(registryBackend, projectSlug, numberOrLatest, newSl
1242
1242
  console.log();
1243
1243
  }
1244
1244
  async function cmdSlug(projectSlug, numberOrLatest, opts) {
1245
- const { getRegistryBackend } = await import("./factory-DeASMV7Z.mjs");
1245
+ const { getRegistryBackend } = await import("./factory-DFwez99M.mjs");
1246
1246
  const registryBackend = await getRegistryBackend();
1247
1247
  const project = await getProject(registryBackend, projectSlug);
1248
1248
  if (!project) {
@@ -1272,7 +1272,7 @@ async function cmdSlug(projectSlug, numberOrLatest, opts) {
1272
1272
  }
1273
1273
  }
1274
1274
  async function cmdTag(projectSlug, sessionNumber, rawTags) {
1275
- const { getRegistryBackend } = await import("./factory-DeASMV7Z.mjs");
1275
+ const { getRegistryBackend } = await import("./factory-DFwez99M.mjs");
1276
1276
  const registryBackend = await getRegistryBackend();
1277
1277
  const project = await getProject(registryBackend, projectSlug);
1278
1278
  if (!project) {
@@ -1312,7 +1312,7 @@ async function cmdTag(projectSlug, sessionNumber, rawTags) {
1312
1312
  console.log();
1313
1313
  }
1314
1314
  async function cmdRoute(projectSlug, sessionNumber, targetProjectSlug, opts) {
1315
- const { getRegistryBackend } = await import("./factory-DeASMV7Z.mjs");
1315
+ const { getRegistryBackend } = await import("./factory-DFwez99M.mjs");
1316
1316
  const registryBackend = await getRegistryBackend();
1317
1317
  const project = await getProject(registryBackend, projectSlug);
1318
1318
  if (!project) {
@@ -1354,7 +1354,7 @@ async function cmdRoute(projectSlug, sessionNumber, targetProjectSlug, opts) {
1354
1354
  console.log();
1355
1355
  }
1356
1356
  async function cmdActive(opts) {
1357
- const { getRegistryBackend } = await import("./factory-DeASMV7Z.mjs");
1357
+ const { getRegistryBackend } = await import("./factory-DFwez99M.mjs");
1358
1358
  const registryBackend = await getRegistryBackend();
1359
1359
  const minutes = parseInt(opts.minutes ?? "60", 10);
1360
1360
  const cutoff = Date.now() - minutes * 60 * 1e3;
@@ -1441,9 +1441,9 @@ async function cmdActive(opts) {
1441
1441
  ], rows));
1442
1442
  }
1443
1443
  async function cmdAutoRoute(opts) {
1444
- const { autoRoute, formatAutoRouteJson } = await import("./auto-route-DWYK_0i0.mjs");
1445
- const { getRegistryBackend, createStorageBackend } = await import("./factory-DeASMV7Z.mjs");
1446
- const { loadConfig } = await import("./config-Dv3t7xnT.mjs");
1444
+ const { autoRoute, formatAutoRouteJson } = await import("./auto-route-Bc8xP6TQ.mjs");
1445
+ const { getRegistryBackend, createStorageBackend } = await import("./factory-DFwez99M.mjs");
1446
+ const { loadConfig } = await import("./config-DHgPx3ER.mjs");
1447
1447
  const config = loadConfig();
1448
1448
  const registryBackend = await getRegistryBackend();
1449
1449
  const federation = await createStorageBackend(config);
@@ -1854,7 +1854,7 @@ const newCommand = {
1854
1854
  const name = ctx.opts.name;
1855
1855
  const withSetup = ctx.opts.with;
1856
1856
  if (withSetup) {
1857
- const { runNewWith } = await import("./root-Bfb1zgwE.mjs");
1857
+ const { runNewWith } = await import("./root-C8cxhdn9.mjs");
1858
1858
  return runNewWith({
1859
1859
  dir,
1860
1860
  with: withSetup,
@@ -1960,4 +1960,4 @@ const renameTop = {
1960
1960
 
1961
1961
  //#endregion
1962
1962
  export { cmdAdd as A, cmdRebind as B, assertAvailable as C, execHarness as D, dryRunText as E, cmdEdit as F, cmdUnarchive as H, cmdGo as I, cmdInfo$1 as L, cmdArchive as M, cmdConsolidate as N, looksLikePath as O, cmdDetect as P, cmdList$1 as R, legacy as S, buildHarness as T, findMovedPath as U, cmdTag$1 as V, cmdList as _, newTop as a, cmdSlug as b, planOpen as c, runNewDefault as d, sessionCommand as f, cmdInfo as g, cmdAutoRoute as h, lsCommand as i, cmdAlias as j, prepareDir as k, renameTop as l, cmdActive as m, collectRows as n, oneLine as o, sessionDir as p, collectView as r, openTop as s, applyProfileChat as t, rowsTable as u, cmdRename as v, modelFor as w, cmdTag as x, cmdRoute as y, cmdMove as z };
1963
- //# sourceMappingURL=session-BAfypQb9.mjs.map
1963
+ //# sourceMappingURL=session-HBYOABWU.mjs.map
@@ -0,0 +1,9 @@
1
+ import "./utils-J2b9y8PC.mjs";
2
+ import "./config-Bz8pAU5Q.mjs";
3
+ import "./config-SlZ-Z52i.mjs";
4
+ import "./paths-CypxFTfn.mjs";
5
+ import "./status-Cecau8Ps.mjs";
6
+ import "./scope-BTWstJ1B.mjs";
7
+ import { a as resolveSessionByNameOrId, c as transcriptCustomTitle, i as resolveFriendlyName, n as loadBrokerNames, o as scanCacheFilePath, r as migrateSessionScanCache, s as scanSessions, t as fmtAge } from "./session-scan-CX3MKCNg.mjs";
8
+
9
+ export { loadBrokerNames, transcriptCustomTitle };