@ashx-j/lunr-dev 0.2.21-dev.12.1 → 0.2.25-dev.13.1

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 (570) hide show
  1. package/CHANGELOG.md +25 -2
  2. package/dist/builtin-extensions/ashxj-tui.d.ts.map +1 -1
  3. package/dist/builtin-extensions/ashxj-tui.js +2 -2
  4. package/dist/builtin-extensions/ashxj-tui.js.map +1 -1
  5. package/dist/builtin-extensions/index.d.ts.map +1 -1
  6. package/dist/builtin-extensions/index.js +1 -0
  7. package/dist/builtin-extensions/index.js.map +1 -1
  8. package/dist/builtin-extensions/lunr-browser.d.ts +9 -0
  9. package/dist/builtin-extensions/lunr-browser.d.ts.map +1 -0
  10. package/dist/builtin-extensions/lunr-browser.js +169 -0
  11. package/dist/builtin-extensions/lunr-browser.js.map +1 -0
  12. package/dist/builtin-extensions/lunr-computer-use.d.ts.map +1 -1
  13. package/dist/builtin-extensions/lunr-computer-use.js +3 -3
  14. package/dist/builtin-extensions/lunr-computer-use.js.map +1 -1
  15. package/dist/builtin-extensions/lunr-plan-tools.d.ts +7 -7
  16. package/dist/builtin-extensions/lunr-plan-tools.d.ts.map +1 -1
  17. package/dist/builtin-extensions/lunr-plan-tools.js +12 -12
  18. package/dist/builtin-extensions/lunr-plan-tools.js.map +1 -1
  19. package/dist/builtin-extensions/lunr-todos.d.ts.map +1 -1
  20. package/dist/builtin-extensions/lunr-todos.js +15 -0
  21. package/dist/builtin-extensions/lunr-todos.js.map +1 -1
  22. package/dist/builtin-extensions/pi-intercom/index.d.ts.map +1 -1
  23. package/dist/builtin-extensions/pi-intercom/index.js +5 -0
  24. package/dist/builtin-extensions/pi-intercom/index.js.map +1 -1
  25. package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.d.ts.map +1 -1
  26. package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.js +1 -0
  27. package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.js.map +1 -1
  28. package/dist/builtin-extensions/pi-mcp-adapter/index.d.ts.map +1 -1
  29. package/dist/builtin-extensions/pi-mcp-adapter/index.js +1 -1
  30. package/dist/builtin-extensions/pi-mcp-adapter/index.js.map +1 -1
  31. package/dist/builtin-extensions/pi-subagents/src/extension/control-notices.d.ts +1 -1
  32. package/dist/builtin-extensions/pi-subagents/src/extension/control-notices.d.ts.map +1 -1
  33. package/dist/builtin-extensions/pi-subagents/src/extension/control-notices.js +5 -1
  34. package/dist/builtin-extensions/pi-subagents/src/extension/control-notices.js.map +1 -1
  35. package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts +2 -2
  36. package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts.map +1 -1
  37. package/dist/builtin-extensions/pi-subagents/src/extension/index.js +18 -5
  38. package/dist/builtin-extensions/pi-subagents/src/extension/index.js.map +1 -1
  39. package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts.map +1 -1
  40. package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js +1 -1
  41. package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js.map +1 -1
  42. package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts +4 -3
  43. package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts.map +1 -1
  44. package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js +8 -3
  45. package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js.map +1 -1
  46. package/dist/builtin-extensions/pi-subagents/src/intercom/communication.d.ts +17 -0
  47. package/dist/builtin-extensions/pi-subagents/src/intercom/communication.d.ts.map +1 -0
  48. package/dist/builtin-extensions/pi-subagents/src/intercom/communication.js +45 -0
  49. package/dist/builtin-extensions/pi-subagents/src/intercom/communication.js.map +1 -0
  50. package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.d.ts +2 -0
  51. package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.d.ts.map +1 -1
  52. package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.js +10 -14
  53. package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.js.map +1 -1
  54. package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.d.ts +4 -1
  55. package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.d.ts.map +1 -1
  56. package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.js +167 -53
  57. package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.js.map +1 -1
  58. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.d.ts.map +1 -1
  59. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.js +5 -0
  60. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.js.map +1 -1
  61. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.d.ts +2 -0
  62. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.d.ts.map +1 -1
  63. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.js +3 -2
  64. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.js.map +1 -1
  65. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.d.ts +2 -0
  66. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.d.ts.map +1 -1
  67. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.js +4 -0
  68. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.js.map +1 -1
  69. package/dist/builtin-extensions/pi-subagents/src/runs/background/auto-drain.d.ts +1 -0
  70. package/dist/builtin-extensions/pi-subagents/src/runs/background/auto-drain.d.ts.map +1 -1
  71. package/dist/builtin-extensions/pi-subagents/src/runs/background/auto-drain.js +2 -1
  72. package/dist/builtin-extensions/pi-subagents/src/runs/background/auto-drain.js.map +1 -1
  73. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.d.ts.map +1 -1
  74. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js +1 -1
  75. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js.map +1 -1
  76. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.d.ts +3 -0
  77. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.d.ts.map +1 -1
  78. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.js +11 -0
  79. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.js.map +1 -1
  80. package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.d.ts.map +1 -1
  81. package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js +41 -3
  82. package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js.map +1 -1
  83. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.d.ts +1 -0
  84. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.d.ts.map +1 -1
  85. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js +5 -1
  86. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js.map +1 -1
  87. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.d.ts.map +1 -1
  88. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js +3 -2
  89. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js.map +1 -1
  90. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.d.ts.map +1 -1
  91. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js +23 -0
  92. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js.map +1 -1
  93. package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts +1 -1
  94. package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts.map +1 -1
  95. package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js +1 -1
  96. package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js.map +1 -1
  97. package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.d.ts +2 -0
  98. package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.d.ts.map +1 -1
  99. package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.js +20 -15
  100. package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.js.map +1 -1
  101. package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-control.d.ts +1 -0
  102. package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-control.d.ts.map +1 -1
  103. package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-control.js +3 -0
  104. package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-control.js.map +1 -1
  105. package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.d.ts.map +1 -1
  106. package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.js +4 -2
  107. package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.js.map +1 -1
  108. package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.d.ts.map +1 -1
  109. package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.js +2 -2
  110. package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.js.map +1 -1
  111. package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts +2 -0
  112. package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts.map +1 -1
  113. package/dist/builtin-extensions/pi-subagents/src/shared/types.js.map +1 -1
  114. package/dist/builtin-extensions/pi-subagents/src/tui/communication.d.ts +18 -0
  115. package/dist/builtin-extensions/pi-subagents/src/tui/communication.d.ts.map +1 -0
  116. package/dist/builtin-extensions/pi-subagents/src/tui/communication.js +48 -0
  117. package/dist/builtin-extensions/pi-subagents/src/tui/communication.js.map +1 -0
  118. package/dist/builtin-extensions/pi-web-access/index.d.ts.map +1 -1
  119. package/dist/builtin-extensions/pi-web-access/index.js +11 -7
  120. package/dist/builtin-extensions/pi-web-access/index.js.map +1 -1
  121. package/dist/cli/args.d.ts.map +1 -1
  122. package/dist/cli/args.js +2 -1
  123. package/dist/cli/args.js.map +1 -1
  124. package/dist/cli/install-cli.d.ts.map +1 -1
  125. package/dist/cli/install-cli.js +15 -45
  126. package/dist/cli/install-cli.js.map +1 -1
  127. package/dist/core/agent-session-runtime.d.ts +9 -0
  128. package/dist/core/agent-session-runtime.d.ts.map +1 -1
  129. package/dist/core/agent-session-runtime.js +126 -29
  130. package/dist/core/agent-session-runtime.js.map +1 -1
  131. package/dist/core/agent-session.d.ts +23 -1
  132. package/dist/core/agent-session.d.ts.map +1 -1
  133. package/dist/core/agent-session.js +255 -109
  134. package/dist/core/agent-session.js.map +1 -1
  135. package/dist/core/browser/network.d.ts +9 -0
  136. package/dist/core/browser/network.d.ts.map +1 -0
  137. package/dist/core/browser/network.js +146 -0
  138. package/dist/core/browser/network.js.map +1 -0
  139. package/dist/core/browser/runtime.d.ts +24 -0
  140. package/dist/core/browser/runtime.d.ts.map +1 -0
  141. package/dist/core/browser/runtime.js +289 -0
  142. package/dist/core/browser/runtime.js.map +1 -0
  143. package/dist/core/browser/schema.d.ts +16 -0
  144. package/dist/core/browser/schema.d.ts.map +1 -0
  145. package/dist/core/browser/schema.js +36 -0
  146. package/dist/core/browser/schema.js.map +1 -0
  147. package/dist/core/browser/settings.d.ts +8 -0
  148. package/dist/core/browser/settings.d.ts.map +1 -0
  149. package/dist/core/browser/settings.js +30 -0
  150. package/dist/core/browser/settings.js.map +1 -0
  151. package/dist/core/browser/setup.d.ts +2 -0
  152. package/dist/core/browser/setup.d.ts.map +1 -0
  153. package/dist/core/browser/setup.js +16 -0
  154. package/dist/core/browser/setup.js.map +1 -0
  155. package/dist/core/catalog-cache-scope.d.ts.map +1 -1
  156. package/dist/core/catalog-cache-scope.js +3 -1
  157. package/dist/core/catalog-cache-scope.js.map +1 -1
  158. package/dist/core/computer-use/image.d.ts +1 -0
  159. package/dist/core/computer-use/image.d.ts.map +1 -1
  160. package/dist/core/computer-use/image.js +8 -0
  161. package/dist/core/computer-use/image.js.map +1 -1
  162. package/dist/core/computer-use/schemas.d.ts +1 -0
  163. package/dist/core/computer-use/schemas.d.ts.map +1 -1
  164. package/dist/core/computer-use/schemas.js +2 -1
  165. package/dist/core/computer-use/schemas.js.map +1 -1
  166. package/dist/core/computer-use/workflow.d.ts.map +1 -1
  167. package/dist/core/computer-use/workflow.js +89 -23
  168. package/dist/core/computer-use/workflow.js.map +1 -1
  169. package/dist/core/customize.d.ts.map +1 -1
  170. package/dist/core/customize.js +15 -14
  171. package/dist/core/customize.js.map +1 -1
  172. package/dist/core/export-html/index.d.ts.map +1 -1
  173. package/dist/core/export-html/index.js +1 -1
  174. package/dist/core/export-html/index.js.map +1 -1
  175. package/dist/core/extensions/loader.d.ts.map +1 -1
  176. package/dist/core/extensions/loader.js +4 -0
  177. package/dist/core/extensions/loader.js.map +1 -1
  178. package/dist/core/extensions/runner.d.ts +1 -0
  179. package/dist/core/extensions/runner.d.ts.map +1 -1
  180. package/dist/core/extensions/runner.js +1 -1
  181. package/dist/core/extensions/runner.js.map +1 -1
  182. package/dist/core/extensions/types.d.ts +1 -1
  183. package/dist/core/extensions/types.d.ts.map +1 -1
  184. package/dist/core/extensions/types.js.map +1 -1
  185. package/dist/core/install-features.d.ts.map +1 -1
  186. package/dist/core/install-features.js +10 -8
  187. package/dist/core/install-features.js.map +1 -1
  188. package/dist/core/memory-cap.d.ts.map +1 -1
  189. package/dist/core/memory-cap.js +5 -3
  190. package/dist/core/memory-cap.js.map +1 -1
  191. package/dist/core/model-runtime.d.ts.map +1 -1
  192. package/dist/core/model-runtime.js +3 -2
  193. package/dist/core/model-runtime.js.map +1 -1
  194. package/dist/core/model-tiers.d.ts.map +1 -1
  195. package/dist/core/model-tiers.js +9 -6
  196. package/dist/core/model-tiers.js.map +1 -1
  197. package/dist/core/permissions.d.ts +16 -23
  198. package/dist/core/permissions.d.ts.map +1 -1
  199. package/dist/core/permissions.js +71 -142
  200. package/dist/core/permissions.js.map +1 -1
  201. package/dist/core/plan-mode.d.ts +10 -12
  202. package/dist/core/plan-mode.d.ts.map +1 -1
  203. package/dist/core/plan-mode.js +20 -19
  204. package/dist/core/plan-mode.js.map +1 -1
  205. package/dist/core/process-registry.d.ts.map +1 -1
  206. package/dist/core/process-registry.js +6 -4
  207. package/dist/core/process-registry.js.map +1 -1
  208. package/dist/core/runtime-bridges.d.ts.map +1 -1
  209. package/dist/core/runtime-bridges.js +2 -0
  210. package/dist/core/runtime-bridges.js.map +1 -1
  211. package/dist/core/runtime-scope.d.ts +11 -0
  212. package/dist/core/runtime-scope.d.ts.map +1 -0
  213. package/dist/core/runtime-scope.js +3 -0
  214. package/dist/core/runtime-scope.js.map +1 -0
  215. package/dist/core/sdk.d.ts.map +1 -1
  216. package/dist/core/sdk.js +26 -6
  217. package/dist/core/sdk.js.map +1 -1
  218. package/dist/core/session-handoff.d.ts +35 -0
  219. package/dist/core/session-handoff.d.ts.map +1 -0
  220. package/dist/core/session-handoff.js +214 -0
  221. package/dist/core/session-handoff.js.map +1 -0
  222. package/dist/core/session-manager.d.ts +20 -0
  223. package/dist/core/session-manager.d.ts.map +1 -1
  224. package/dist/core/session-manager.js +191 -22
  225. package/dist/core/session-manager.js.map +1 -1
  226. package/dist/core/session-ownership.d.ts +28 -0
  227. package/dist/core/session-ownership.d.ts.map +1 -0
  228. package/dist/core/session-ownership.js +138 -0
  229. package/dist/core/session-ownership.js.map +1 -0
  230. package/dist/core/session-retention.d.ts.map +1 -1
  231. package/dist/core/session-retention.js +11 -2
  232. package/dist/core/session-retention.js.map +1 -1
  233. package/dist/core/settings-manager.d.ts +20 -1
  234. package/dist/core/settings-manager.d.ts.map +1 -1
  235. package/dist/core/settings-manager.js +67 -1
  236. package/dist/core/settings-manager.js.map +1 -1
  237. package/dist/core/slash-commands.d.ts.map +1 -1
  238. package/dist/core/slash-commands.js +6 -4
  239. package/dist/core/slash-commands.js.map +1 -1
  240. package/dist/core/subagent-permission-inherit.d.ts +6 -10
  241. package/dist/core/subagent-permission-inherit.d.ts.map +1 -1
  242. package/dist/core/subagent-permission-inherit.js +14 -14
  243. package/dist/core/subagent-permission-inherit.js.map +1 -1
  244. package/dist/core/subagent-wait-interruption.d.ts +11 -0
  245. package/dist/core/subagent-wait-interruption.d.ts.map +1 -0
  246. package/dist/core/subagent-wait-interruption.js +19 -0
  247. package/dist/core/subagent-wait-interruption.js.map +1 -0
  248. package/dist/core/system-prompt.d.ts +2 -0
  249. package/dist/core/system-prompt.d.ts.map +1 -1
  250. package/dist/core/system-prompt.js +14 -4
  251. package/dist/core/system-prompt.js.map +1 -1
  252. package/dist/core/todo-settings.d.ts +5 -0
  253. package/dist/core/todo-settings.d.ts.map +1 -0
  254. package/dist/core/todo-settings.js +7 -0
  255. package/dist/core/todo-settings.js.map +1 -0
  256. package/dist/core/tools/bash.d.ts.map +1 -1
  257. package/dist/core/tools/bash.js +4 -4
  258. package/dist/core/tools/bash.js.map +1 -1
  259. package/dist/core/tools/edit.d.ts.map +1 -1
  260. package/dist/core/tools/edit.js +5 -3
  261. package/dist/core/tools/edit.js.map +1 -1
  262. package/dist/core/tools/find.d.ts.map +1 -1
  263. package/dist/core/tools/find.js +4 -4
  264. package/dist/core/tools/find.js.map +1 -1
  265. package/dist/core/tools/grep.d.ts.map +1 -1
  266. package/dist/core/tools/grep.js +4 -4
  267. package/dist/core/tools/grep.js.map +1 -1
  268. package/dist/core/tools/ls.d.ts.map +1 -1
  269. package/dist/core/tools/ls.js +4 -4
  270. package/dist/core/tools/ls.js.map +1 -1
  271. package/dist/core/tools/read.d.ts.map +1 -1
  272. package/dist/core/tools/read.js +4 -4
  273. package/dist/core/tools/read.js.map +1 -1
  274. package/dist/core/tools/render-utils.d.ts +14 -5
  275. package/dist/core/tools/render-utils.d.ts.map +1 -1
  276. package/dist/core/tools/render-utils.js +34 -7
  277. package/dist/core/tools/render-utils.js.map +1 -1
  278. package/dist/core/tools/write.d.ts.map +1 -1
  279. package/dist/core/tools/write.js +4 -4
  280. package/dist/core/tools/write.js.map +1 -1
  281. package/dist/core/usage-service.d.ts.map +1 -1
  282. package/dist/core/usage-service.js +5 -3
  283. package/dist/core/usage-service.js.map +1 -1
  284. package/dist/gateway/adapters/discord.d.ts +12 -1
  285. package/dist/gateway/adapters/discord.d.ts.map +1 -1
  286. package/dist/gateway/adapters/discord.js +114 -24
  287. package/dist/gateway/adapters/discord.js.map +1 -1
  288. package/dist/gateway/adapters/telegram.d.ts +4 -2
  289. package/dist/gateway/adapters/telegram.d.ts.map +1 -1
  290. package/dist/gateway/adapters/telegram.js +41 -11
  291. package/dist/gateway/adapters/telegram.js.map +1 -1
  292. package/dist/gateway/agent-bridge.d.ts +18 -4
  293. package/dist/gateway/agent-bridge.d.ts.map +1 -1
  294. package/dist/gateway/agent-bridge.js +305 -73
  295. package/dist/gateway/agent-bridge.js.map +1 -1
  296. package/dist/gateway/approval.d.ts +3 -6
  297. package/dist/gateway/approval.d.ts.map +1 -1
  298. package/dist/gateway/approval.js +62 -24
  299. package/dist/gateway/approval.js.map +1 -1
  300. package/dist/gateway/authz.d.ts +2 -0
  301. package/dist/gateway/authz.d.ts.map +1 -1
  302. package/dist/gateway/authz.js +13 -0
  303. package/dist/gateway/authz.js.map +1 -1
  304. package/dist/gateway/buttons.d.ts +3 -1
  305. package/dist/gateway/buttons.d.ts.map +1 -1
  306. package/dist/gateway/buttons.js +45 -20
  307. package/dist/gateway/buttons.js.map +1 -1
  308. package/dist/gateway/command.d.ts.map +1 -1
  309. package/dist/gateway/command.js +49 -4
  310. package/dist/gateway/command.js.map +1 -1
  311. package/dist/gateway/commands.d.ts +2 -0
  312. package/dist/gateway/commands.d.ts.map +1 -1
  313. package/dist/gateway/commands.js +52 -16
  314. package/dist/gateway/commands.js.map +1 -1
  315. package/dist/gateway/config.d.ts +6 -0
  316. package/dist/gateway/config.d.ts.map +1 -1
  317. package/dist/gateway/config.js +7 -0
  318. package/dist/gateway/config.js.map +1 -1
  319. package/dist/gateway/conversations.d.ts +14 -0
  320. package/dist/gateway/conversations.d.ts.map +1 -0
  321. package/dist/gateway/conversations.js +30 -0
  322. package/dist/gateway/conversations.js.map +1 -0
  323. package/dist/gateway/cron.d.ts +1 -1
  324. package/dist/gateway/cron.d.ts.map +1 -1
  325. package/dist/gateway/cron.js +2 -2
  326. package/dist/gateway/cron.js.map +1 -1
  327. package/dist/gateway/download.d.ts +2 -0
  328. package/dist/gateway/download.d.ts.map +1 -0
  329. package/dist/gateway/download.js +36 -0
  330. package/dist/gateway/download.js.map +1 -0
  331. package/dist/gateway/index.d.ts.map +1 -1
  332. package/dist/gateway/index.js +106 -47
  333. package/dist/gateway/index.js.map +1 -1
  334. package/dist/gateway/mobile-commands.d.ts +24 -0
  335. package/dist/gateway/mobile-commands.d.ts.map +1 -0
  336. package/dist/gateway/mobile-commands.js +423 -0
  337. package/dist/gateway/mobile-commands.js.map +1 -0
  338. package/dist/gateway/presenter.d.ts +27 -0
  339. package/dist/gateway/presenter.d.ts.map +1 -0
  340. package/dist/gateway/presenter.js +308 -0
  341. package/dist/gateway/presenter.js.map +1 -0
  342. package/dist/gateway/router.d.ts +6 -5
  343. package/dist/gateway/router.d.ts.map +1 -1
  344. package/dist/gateway/router.js +126 -43
  345. package/dist/gateway/router.js.map +1 -1
  346. package/dist/gateway/service.d.ts +46 -0
  347. package/dist/gateway/service.d.ts.map +1 -0
  348. package/dist/gateway/service.js +404 -0
  349. package/dist/gateway/service.js.map +1 -0
  350. package/dist/gateway/setup.d.ts +9 -0
  351. package/dist/gateway/setup.d.ts.map +1 -0
  352. package/dist/gateway/setup.js +202 -0
  353. package/dist/gateway/setup.js.map +1 -0
  354. package/dist/gateway/stream.d.ts +6 -5
  355. package/dist/gateway/stream.d.ts.map +1 -1
  356. package/dist/gateway/stream.js +24 -11
  357. package/dist/gateway/stream.js.map +1 -1
  358. package/dist/gateway/types.d.ts +4 -2
  359. package/dist/gateway/types.d.ts.map +1 -1
  360. package/dist/gateway/types.js.map +1 -1
  361. package/dist/index.d.ts +2 -0
  362. package/dist/index.d.ts.map +1 -1
  363. package/dist/index.js +2 -0
  364. package/dist/index.js.map +1 -1
  365. package/dist/main.d.ts.map +1 -1
  366. package/dist/main.js +3 -3
  367. package/dist/main.js.map +1 -1
  368. package/dist/modes/interactive/components/assistant-message.d.ts +19 -2
  369. package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
  370. package/dist/modes/interactive/components/assistant-message.js +78 -17
  371. package/dist/modes/interactive/components/assistant-message.js.map +1 -1
  372. package/dist/modes/interactive/components/copyable-text.d.ts +27 -0
  373. package/dist/modes/interactive/components/copyable-text.d.ts.map +1 -0
  374. package/dist/modes/interactive/components/copyable-text.js +156 -0
  375. package/dist/modes/interactive/components/copyable-text.js.map +1 -0
  376. package/dist/modes/interactive/components/custom-entry.d.ts +1 -0
  377. package/dist/modes/interactive/components/custom-entry.d.ts.map +1 -1
  378. package/dist/modes/interactive/components/custom-entry.js +8 -0
  379. package/dist/modes/interactive/components/custom-entry.js.map +1 -1
  380. package/dist/modes/interactive/components/custom-message.d.ts +1 -0
  381. package/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
  382. package/dist/modes/interactive/components/custom-message.js +8 -0
  383. package/dist/modes/interactive/components/custom-message.js.map +1 -1
  384. package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
  385. package/dist/modes/interactive/components/session-selector.js +16 -0
  386. package/dist/modes/interactive/components/session-selector.js.map +1 -1
  387. package/dist/modes/interactive/components/settings-selector.d.ts +12 -1
  388. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  389. package/dist/modes/interactive/components/settings-selector.js +74 -3
  390. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  391. package/dist/modes/interactive/components/thinking-tail.d.ts +9 -2
  392. package/dist/modes/interactive/components/thinking-tail.d.ts.map +1 -1
  393. package/dist/modes/interactive/components/thinking-tail.js +43 -1
  394. package/dist/modes/interactive/components/thinking-tail.js.map +1 -1
  395. package/dist/modes/interactive/components/tool-execution.d.ts +5 -3
  396. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  397. package/dist/modes/interactive/components/tool-execution.js +44 -45
  398. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  399. package/dist/modes/interactive/interactive-mode.d.ts +10 -2
  400. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  401. package/dist/modes/interactive/interactive-mode.js +342 -133
  402. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  403. package/dist/modes/interactive/theme/theme.d.ts +1 -0
  404. package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  405. package/dist/modes/interactive/theme/theme.js +23 -0
  406. package/dist/modes/interactive/theme/theme.js.map +1 -1
  407. package/dist/node-runtime/agent-session-services-MQUPZSIN.js +51 -0
  408. package/dist/node-runtime/{builtin-extensions-SRCYQPZ6.js → builtin-extensions-4GNDR6U3.js} +7 -6
  409. package/dist/node-runtime/{chunk-LTXUQJI4.js → chunk-24C5IAJ4.js} +1 -6
  410. package/dist/node-runtime/chunk-2BLXLDJR.js +144 -0
  411. package/dist/node-runtime/{chunk-RQ5DNUNG.js → chunk-2CMV4L24.js} +21 -124
  412. package/dist/node-runtime/{chunk-LTYWTR3V.js → chunk-2MI5OPMN.js} +17 -2
  413. package/dist/node-runtime/{chunk-W3CVH5RX.js → chunk-2TKODGBZ.js} +11 -6
  414. package/dist/node-runtime/{chunk-GT5F3OKM.js → chunk-33SIKK3Y.js} +38 -164
  415. package/dist/node-runtime/{chunk-GZQHMEWL.js → chunk-3DKIWPKN.js} +19 -4
  416. package/dist/node-runtime/{chunk-3GHXVUAK.js → chunk-3VEY2IYY.js} +1 -1
  417. package/dist/node-runtime/chunk-4ER2ZV4Z.js +537 -0
  418. package/dist/node-runtime/chunk-4EULYYR4.js +62 -0
  419. package/dist/node-runtime/{chunk-LOYUC2ID.js → chunk-4SBQAI4T.js} +27 -27
  420. package/dist/node-runtime/{chunk-CZUBYPFP.js → chunk-53ARRUHA.js} +674 -257
  421. package/dist/node-runtime/{chunk-VTPM5V35.js → chunk-5Q4A37RB.js} +10 -4
  422. package/dist/node-runtime/{chunk-SWSN6HAB.js → chunk-5UZOPGE3.js} +1 -1
  423. package/dist/node-runtime/{chunk-XSRCAQK2.js → chunk-5Z5PCXGY.js} +263 -222
  424. package/dist/node-runtime/chunk-7JIYPIQU.js +356 -0
  425. package/dist/node-runtime/{chunk-D466UAID.js → chunk-AJ6R5VTV.js} +60 -88
  426. package/dist/node-runtime/chunk-ATIF3RX5.js +352 -0
  427. package/dist/node-runtime/{chunk-A3KMVBZV.js → chunk-BBUVIEZB.js} +1 -10
  428. package/dist/node-runtime/chunk-CCCN2UCX.js +14 -0
  429. package/dist/node-runtime/chunk-CJS4KQFI.js +3412 -0
  430. package/dist/node-runtime/chunk-DO6PALE2.js +205 -0
  431. package/dist/node-runtime/{chunk-N3PNL74S.js → chunk-DRJI7ZSC.js} +63 -163
  432. package/dist/node-runtime/{chunk-VTGEKB7R.js → chunk-E75WFZ33.js} +1 -1
  433. package/dist/node-runtime/{chunk-MJQDX3BA.js → chunk-EBB4BJW4.js} +3 -3
  434. package/dist/node-runtime/{chunk-VQ4UBWSA.js → chunk-EOEAQIJV.js} +63 -6
  435. package/dist/node-runtime/chunk-EOPL2HMM.js +117 -0
  436. package/dist/node-runtime/chunk-H4K3JDRB.js +47 -0
  437. package/dist/node-runtime/{chunk-HRS4HMDX.js → chunk-HT2XEJNP.js} +19 -3
  438. package/dist/node-runtime/chunk-IMLCWLPI.js +9 -0
  439. package/dist/node-runtime/{chunk-BJ6H7DPI.js → chunk-JJWZB7S3.js} +62 -50
  440. package/dist/node-runtime/chunk-KFFOQR4G.js +672 -0
  441. package/dist/node-runtime/chunk-L5LZUGT7.js +40 -0
  442. package/dist/node-runtime/chunk-LV6CEFW2.js +97 -0
  443. package/dist/node-runtime/{chunk-VSELYKWU.js → chunk-LWYIVUGV.js} +2 -1
  444. package/dist/node-runtime/{chunk-BYQ2MOFI.js → chunk-MFV2LOOX.js} +184 -2192
  445. package/dist/node-runtime/{chunk-5SQDLSZJ.js → chunk-MNRO3UCV.js} +2 -2
  446. package/dist/node-runtime/{chunk-JHYKXIMM.js → chunk-MPKSOJBT.js} +1 -1
  447. package/dist/node-runtime/{chunk-C4O2RSQQ.js → chunk-N4TUWAGA.js} +1 -1
  448. package/dist/node-runtime/{chunk-7NBZ5P7I.js → chunk-NAY6UUQZ.js} +1 -1
  449. package/dist/node-runtime/chunk-NKH2QBKF.js +773 -0
  450. package/dist/node-runtime/chunk-O2AT4MEU.js +124 -0
  451. package/dist/node-runtime/chunk-OAR4TYZE.js +146 -0
  452. package/dist/node-runtime/{chunk-DDGMHUOW.js → chunk-OGJN3OZV.js} +2 -1
  453. package/dist/node-runtime/{chunk-MX3GJNXJ.js → chunk-PLGA743X.js} +23 -0
  454. package/dist/node-runtime/chunk-Q3FEOEDA.js +1364 -0
  455. package/dist/node-runtime/{chunk-H2BI7G7T.js → chunk-QFADHUQV.js} +2 -1
  456. package/dist/node-runtime/{chunk-W3SILANP.js → chunk-RBZQU6TJ.js} +12 -9
  457. package/dist/node-runtime/{chunk-ZVSORYRM.js → chunk-RVOQBXTA.js} +10 -6
  458. package/dist/node-runtime/{chunk-HXJS2PJM.js → chunk-RW4PYFNE.js} +14 -94
  459. package/dist/node-runtime/chunk-TP7K7YWS.js +2830 -0
  460. package/dist/node-runtime/{chunk-ZOIIMEN6.js → chunk-TVLBDVTR.js} +32 -21
  461. package/dist/node-runtime/chunk-UAEOTO52.js +119 -0
  462. package/dist/node-runtime/{chunk-MGWCVY6Y.js → chunk-UDKX3PFN.js} +3 -3
  463. package/dist/node-runtime/{chunk-AY6CAJSL.js → chunk-UJOCPOMX.js} +6 -3
  464. package/dist/node-runtime/{chunk-WJVFOIB5.js → chunk-UQUCFAJ3.js} +1 -1
  465. package/dist/node-runtime/chunk-US544NN6.js +13 -0
  466. package/dist/node-runtime/{chunk-7AFOFSDY.js → chunk-V3HK3FE7.js} +1 -1
  467. package/dist/node-runtime/{chunk-6UB6NKA3.js → chunk-VIVYOI7C.js} +130 -27
  468. package/dist/node-runtime/{chunk-MW2XJZIK.js → chunk-XHIRAZ26.js} +1 -1
  469. package/dist/node-runtime/chunk-YPHAIRZT.js +10 -0
  470. package/dist/node-runtime/{chunk-3RCWXWAY.js → chunk-YRUY57IN.js} +1 -1
  471. package/dist/node-runtime/cli-runtime.js +2 -2
  472. package/dist/node-runtime/command-PYBNGLPP.js +45 -0
  473. package/dist/node-runtime/{commands-BZGSLIP7.js → commands-EMBQQVVT.js} +13 -13
  474. package/dist/node-runtime/commands-Y2OUC2T7.js +37 -0
  475. package/dist/node-runtime/config-7DYMNJUO.js +20 -0
  476. package/dist/node-runtime/{customize-LF5VST47.js → customize-VFJV3U6A.js} +2 -1
  477. package/dist/node-runtime/{direct-tool-executor-BSZDHIYR.js → direct-tool-executor-4D7UXYU4.js} +10 -10
  478. package/dist/node-runtime/{export-html-E4DT6ZJQ.js → export-html-ETFOKW3M.js} +4 -3
  479. package/dist/node-runtime/{extension-input-RV5N6APL.js → extension-input-7QODTFAS.js} +4 -4
  480. package/dist/node-runtime/{extension-selector-CPD5LWDD.js → extension-selector-T65JEDJ5.js} +4 -4
  481. package/dist/node-runtime/{extract-XLQSJN4V.js → extract-EQJE7FZZ.js} +2 -2
  482. package/dist/node-runtime/gateway-QENRQA5X.js +1476 -0
  483. package/dist/node-runtime/{gemini-search-U7SUMPQA.js → gemini-search-35OCRFLN.js} +1 -1
  484. package/dist/node-runtime/{gemini-url-context-PXWCBQHK.js → gemini-url-context-UQY3PHHW.js} +2 -2
  485. package/dist/node-runtime/index.js +113 -73
  486. package/dist/node-runtime/{init-DVJUAOUO.js → init-P5AUV77I.js} +5 -5
  487. package/dist/node-runtime/{install-cli-TH7IJJQQ.js → install-cli-KHAXYBOO.js} +21 -82
  488. package/dist/node-runtime/interactive-mode-IN77GQGX.js +74 -0
  489. package/dist/node-runtime/{interactive-view-N6F4KUIT.js → interactive-view-OMWDFGUQ.js} +10 -10
  490. package/dist/node-runtime/lunr-browser-VVPRWC3F.js +174 -0
  491. package/dist/node-runtime/{lunr-computer-use-TJNDAMWM.js → lunr-computer-use-IAUNXSXH.js} +11 -8
  492. package/dist/node-runtime/{lunr-cron-J64I72C6.js → lunr-cron-P6ZJGVEF.js} +21 -7
  493. package/dist/node-runtime/main.js +47 -34
  494. package/dist/node-runtime/{mcp-auth-flow-YL6RWPYG.js → mcp-auth-flow-QVLFVLEO.js} +2 -2
  495. package/dist/node-runtime/{memory-cap-3S4XRLNP.js → memory-cap-EL3KL4JJ.js} +2 -1
  496. package/dist/node-runtime/mobile-commands-WKFSFACZ.js +33 -0
  497. package/dist/node-runtime/model-runtime-YXGJS5OJ.js +16 -0
  498. package/dist/node-runtime/{model-tiers-NJLHUEGK.js → model-tiers-OU3U5CZG.js} +2 -1
  499. package/dist/node-runtime/{package-manager-cli-VMYX4Y2S.js → package-manager-cli-J337RKTI.js} +25 -17
  500. package/dist/node-runtime/{pi-intercom-NV2LW6X7.js → pi-intercom-QM53RLTS.js} +6 -1
  501. package/dist/node-runtime/{pi-mcp-adapter-JLB5YL2F.js → pi-mcp-adapter-3PHF4KZ4.js} +8 -7
  502. package/dist/node-runtime/{pi-subagents-WEHV3W7H.js → pi-subagents-RCHPB6UK.js} +255 -88
  503. package/dist/node-runtime/{pi-web-access-FN5YC5T6.js → pi-web-access-PNG35XW7.js} +15 -15
  504. package/dist/node-runtime/process-registry-PVJ44F7H.js +31 -0
  505. package/dist/node-runtime/{proxy-modes-OR7ISBXK.js → proxy-modes-5FAPSZEZ.js} +11 -11
  506. package/dist/node-runtime/rpc-entry.js +47 -34
  507. package/dist/node-runtime/{rpc-mode-SJNSOA4G.js → rpc-mode-SH7VB4RH.js} +2 -2
  508. package/dist/node-runtime/runtime-4VA6JKNF.js +373 -0
  509. package/dist/node-runtime/runtime-bridges-3CQHWVVY.js +21 -0
  510. package/dist/node-runtime/service-HGGU3STY.js +36 -0
  511. package/dist/node-runtime/session-handoff-IAFIK7QP.js +33 -0
  512. package/dist/node-runtime/{session-manager-QEMZBMTM.js → session-manager-TCEFDKBL.js} +2 -1
  513. package/dist/node-runtime/{session-selector-URVJLOTK.js → session-selector-HG5J4BDZ.js} +5 -4
  514. package/dist/node-runtime/{settings-manager-3CCU326G.js → settings-manager-HIBIUNBK.js} +12 -5
  515. package/dist/node-runtime/setup-JBKOLJ6F.js +18 -0
  516. package/dist/node-runtime/setup-YU5LKRL3.js +215 -0
  517. package/dist/node-runtime/{subagent-executor-CXKXQDHH.js → subagent-executor-2BH76MMS.js} +64 -23
  518. package/dist/node-runtime/theme-WTJWZSGD.js +68 -0
  519. package/dist/node-runtime/trust-manager-6ZQANSBX.js +17 -0
  520. package/dist/node-runtime/{update-cli-NM7B4CKL.js → update-cli-TVTPVUNM.js} +6 -3
  521. package/dist/node-runtime/usage-service-LFB2SWYV.js +37 -0
  522. package/dist/node-runtime/{video-extract-OYT5WKS5.js → video-extract-OOZHR7SU.js} +2 -2
  523. package/dist/node-runtime/{workflow-C26QCUTW.js → workflow-TVJNKKQP.js} +80 -39
  524. package/dist/node-runtime/{youtube-extract-TQYKGFGS.js → youtube-extract-FNPAUNHU.js} +6 -6
  525. package/dist/startup/interactive-view.d.ts.map +1 -1
  526. package/dist/startup/interactive-view.js +5 -1
  527. package/dist/startup/interactive-view.js.map +1 -1
  528. package/dist/utils/image-resize-core.d.ts +2 -0
  529. package/dist/utils/image-resize-core.d.ts.map +1 -1
  530. package/dist/utils/image-resize-core.js +10 -0
  531. package/dist/utils/image-resize-core.js.map +1 -1
  532. package/docs/browser.md +86 -0
  533. package/docs/computer-use.md +134 -48
  534. package/docs/extensions.md +2 -0
  535. package/docs/features.md +108 -27
  536. package/docs/index.md +1 -1
  537. package/docs/interactive-startup.md +2 -1
  538. package/docs/keybindings.md +1 -1
  539. package/docs/providers.md +6 -2
  540. package/docs/quickstart.md +2 -2
  541. package/docs/sessions.md +10 -0
  542. package/docs/settings.md +3 -1
  543. package/docs/tui.md +2 -0
  544. package/docs/usage.md +20 -4
  545. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  546. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  547. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  548. package/examples/extensions/gondolin/package-lock.json +2 -2
  549. package/examples/extensions/gondolin/package.json +1 -1
  550. package/examples/extensions/plan-mode/README.md +1 -1
  551. package/examples/extensions/sandbox/package-lock.json +2 -2
  552. package/examples/extensions/sandbox/package.json +1 -1
  553. package/examples/extensions/with-deps/package-lock.json +2 -2
  554. package/examples/extensions/with-deps/package.json +1 -1
  555. package/install-lock/package-lock.json +39 -25
  556. package/install-lock/package.json +2 -2
  557. package/npm-shrinkwrap.json +36 -22
  558. package/package.json +10 -7
  559. package/scripts/install-browser.mjs +20 -0
  560. package/dist/node-runtime/agent-session-services-QANFGM2V.js +0 -40
  561. package/dist/node-runtime/chunk-LISUTZS3.js +0 -19
  562. package/dist/node-runtime/chunk-VGYZ3APQ.js +0 -59
  563. package/dist/node-runtime/chunk-XAUQOKYK.js +0 -6011
  564. package/dist/node-runtime/command-ZURZJDXF.js +0 -13
  565. package/dist/node-runtime/gateway-FWHRIBK5.js +0 -2139
  566. package/dist/node-runtime/interactive-mode-BBASNWHN.js +0 -62
  567. package/dist/node-runtime/runtime-bridges-2VQTLPOZ.js +0 -12
  568. package/dist/node-runtime/{chunk-U6C7VTR5.js → chunk-7IQGBKBJ.js} +3 -3
  569. package/dist/node-runtime/{mcp-panel-IIGMXQGP.js → mcp-panel-KTTFXJZ4.js} +3 -3
  570. package/dist/node-runtime/{src-BPQFJR76.js → src-IVPNZ2BX.js} +9 -9
@@ -1,11 +1,11 @@
1
1
  import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
2
+ import {
3
+ browserEnabledDefault,
4
+ notifyBrowserEnabledChange
5
+ } from "./chunk-L5LZUGT7.js";
2
6
  import {
3
7
  require_proper_lockfile
4
8
  } from "./chunk-URD2SLIT.js";
5
- import {
6
- DEFAULT_SUBAGENT_SPINNER,
7
- isSubagentSpinnerName
8
- } from "./chunk-LISUTZS3.js";
9
9
  import {
10
10
  computerSettingsChanged
11
11
  } from "./chunk-3ONQTOMR.js";
@@ -13,7 +13,7 @@ import {
13
13
  MEMORY_CHAR_CAP_DEFAULT,
14
14
  MEMORY_CHAR_CAP_MAX,
15
15
  MEMORY_CHAR_CAP_MIN
16
- } from "./chunk-AY6CAJSL.js";
16
+ } from "./chunk-UJOCPOMX.js";
17
17
  import {
18
18
  CONFIG_DIR_NAME,
19
19
  getAgentDir,
@@ -18409,11 +18409,33 @@ function configureHttpDispatcher(timeoutMs = DEFAULT_HTTP_IDLE_TIMEOUT_MS) {
18409
18409
  undici.setGlobalDispatcher(dispatcher), (installedGlobalFetch === void 0 ? globalThis.fetch === originalGlobalFetch : globalThis.fetch === installedGlobalFetch) && (undici.install?.(), installedGlobalFetch = globalThis.fetch);
18410
18410
  }
18411
18411
 
18412
+ // packages/coding-agent/dist/core/subagent-spinner-setting.js
18413
+ var SUBAGENT_SPINNER_NAMES = ["braille", "orbit", "snake", "sparkle"], DEFAULT_SUBAGENT_SPINNER = "braille", SUBAGENT_SPINNER_LABELS = {
18414
+ braille: "Braille",
18415
+ orbit: "Orbit",
18416
+ snake: "Snake",
18417
+ sparkle: "Sparkle"
18418
+ };
18419
+ function isSubagentSpinnerName(value) {
18420
+ return typeof value == "string" && SUBAGENT_SPINNER_NAMES.includes(value);
18421
+ }
18422
+
18412
18423
  // packages/coding-agent/dist/core/settings-manager.js
18413
18424
  var SKILL_TAG_CHARACTERS = ["+", "~", "$"], DEFAULT_SKILL_TAG_CHARACTER = "+";
18414
18425
  function parseSkillTagCharacter(value) {
18415
18426
  return value === "~" || value === "$" ? value : DEFAULT_SKILL_TAG_CHARACTER;
18416
18427
  }
18428
+ var SUBAGENT_COMMUNICATION_BRIDGE = /* @__PURE__ */ Symbol.for("@lunr/subagent-communication");
18429
+ function bindSubagentCommunicationSetting(manager) {
18430
+ manager ? globalThis[SUBAGENT_COMMUNICATION_BRIDGE] = manager : delete globalThis[SUBAGENT_COMMUNICATION_BRIDGE];
18431
+ }
18432
+ function subagentCommunicationEnabled(cwd, agentDir = getAgentDir()) {
18433
+ let inherited = process.env.PI_SUBAGENT_COMMUNICATION_ENABLED;
18434
+ if (process.env.PI_SUBAGENT_CHILD === "1" && (inherited === "0" || inherited === "1"))
18435
+ return inherited === "1";
18436
+ let active = globalThis[SUBAGENT_COMMUNICATION_BRIDGE];
18437
+ return agentDir === getAgentDir() && active && typeof active.getSubagentCommunicationEnabled == "function" ? active.getSubagentCommunicationEnabled() : inherited === "0" || inherited === "1" ? inherited === "1" : SettingsManager.create(cwd, agentDir, { projectTrusted: !1 }).getSubagentCommunicationEnabled();
18438
+ }
18417
18439
  function deepMergeSettings(base, overrides) {
18418
18440
  let result = { ...base };
18419
18441
  for (let key of Object.keys(overrides)) {
@@ -18783,6 +18805,13 @@ var FileSettingsStorage = class {
18783
18805
  getHideThinkingBlock() {
18784
18806
  return this.settings.hideThinkingBlock ?? !1;
18785
18807
  }
18808
+ getReasoningDisplay() {
18809
+ let value = this.settings.reasoningDisplay;
18810
+ return value === "one-line" || value === "four-lines" ? value : "auto";
18811
+ }
18812
+ setReasoningDisplay(display) {
18813
+ this.globalSettings.reasoningDisplay = display, this.markModified("reasoningDisplay"), this.save();
18814
+ }
18786
18815
  getThinkingCollapse() {
18787
18816
  return this.settings.thinkingCollapse ?? !0;
18788
18817
  }
@@ -18853,12 +18882,24 @@ var FileSettingsStorage = class {
18853
18882
  setComputerForeground(enabled) {
18854
18883
  this.globalSettings.computerForeground = enabled, this.markModified("computerForeground"), this.save(), computerSettingsChanged({ enabled: this.getComputerUse(), foreground: enabled });
18855
18884
  }
18885
+ getBrowserEnabled() {
18886
+ return this.globalSettings.browserEnabled ?? browserEnabledDefault();
18887
+ }
18888
+ setBrowserEnabled(enabled) {
18889
+ this.globalSettings.browserEnabled = enabled, this.markModified("browserEnabled"), this.save(), notifyBrowserEnabledChange(enabled);
18890
+ }
18856
18891
  getMemoryEnabled() {
18857
18892
  return this.globalSettings.memoryEnabled ?? !0;
18858
18893
  }
18859
18894
  setMemoryEnabled(enabled) {
18860
18895
  this.globalSettings.memoryEnabled = enabled, this.markModified("memoryEnabled"), this.save();
18861
18896
  }
18897
+ getTodosEnabled() {
18898
+ return this.globalSettings.todosEnabled ?? !0;
18899
+ }
18900
+ setTodosEnabled(enabled) {
18901
+ this.globalSettings.todosEnabled = enabled, this.markModified("todosEnabled"), this.save();
18902
+ }
18862
18903
  setMemoryCharCap(cap) {
18863
18904
  this.globalSettings.memoryCharCap = Math.min(MEMORY_CHAR_CAP_MAX, Math.max(MEMORY_CHAR_CAP_MIN, Math.floor(cap))), this.markModified("memoryCharCap"), this.save();
18864
18905
  }
@@ -18939,7 +18980,7 @@ var FileSettingsStorage = class {
18939
18980
  // lunr: default permission mode (startup default; per-session mode is in-memory)
18940
18981
  getDefaultPermissionMode() {
18941
18982
  let value = this.settings.defaultPermissionMode;
18942
- return value === "manual" || value === "yolo" || value === "plan" || value === "auto" ? value : "manual";
18983
+ return value === "plan" ? "read-only" : value === "auto" || value === "read-only" ? value : "yolo";
18943
18984
  }
18944
18985
  setDefaultPermissionMode(mode) {
18945
18986
  this.globalSettings.defaultPermissionMode = mode, this.markModified("defaultPermissionMode"), this.save();
@@ -19175,6 +19216,18 @@ var FileSettingsStorage = class {
19175
19216
  setModelInstructionsMode(mode) {
19176
19217
  this.globalSettings.modelInstructions ??= {}, this.globalSettings.modelInstructions.mode = mode, this.markModified("modelInstructions", "mode"), this.save();
19177
19218
  }
19219
+ getSubagentCommunicationEnabled() {
19220
+ return this.globalSettings.subagentCommunicationEnabled ?? !0;
19221
+ }
19222
+ setSubagentCommunicationEnabled(enabled) {
19223
+ this.globalSettings.subagentCommunicationEnabled = enabled, this.markModified("subagentCommunicationEnabled"), this.save();
19224
+ }
19225
+ getAutomaticSubagentDelegation() {
19226
+ return this.settings.automaticSubagentDelegation ?? !0;
19227
+ }
19228
+ setAutomaticSubagentDelegation(enabled) {
19229
+ this.globalSettings.automaticSubagentDelegation = enabled, this.markModified("automaticSubagentDelegation"), this.save();
19230
+ }
19178
19231
  getConfirmLargeSubagentLaunches() {
19179
19232
  return this.settings.confirmLargeSubagentLaunches ?? !0;
19180
19233
  }
@@ -19211,9 +19264,13 @@ export {
19211
19264
  formatHttpIdleTimeoutMs,
19212
19265
  applyHttpProxySettings,
19213
19266
  configureHttpDispatcher,
19267
+ SUBAGENT_SPINNER_NAMES,
19268
+ SUBAGENT_SPINNER_LABELS,
19214
19269
  SKILL_TAG_CHARACTERS,
19215
19270
  DEFAULT_SKILL_TAG_CHARACTER,
19216
19271
  parseSkillTagCharacter,
19272
+ bindSubagentCommunicationSetting,
19273
+ subagentCommunicationEnabled,
19217
19274
  FileSettingsStorage,
19218
19275
  InMemorySettingsStorage,
19219
19276
  SettingsManager
@@ -0,0 +1,117 @@
1
+ import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
2
+ import {
3
+ getAgentDir
4
+ } from "./chunk-PCIGF2XK.js";
5
+
6
+ // packages/coding-agent/dist/gateway/pairing.js
7
+ import { randomInt } from "node:crypto";
8
+ import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
9
+ import { join } from "node:path";
10
+ var CODE_ALPHABET = "ABCDEFGHJKMNPQRSTUVWXYZ23456789", CODE_LENGTH = 8, DEFAULT_TTL_MS = 3600 * 1e3, DEFAULT_RATE_LIMIT_MS = 600 * 1e3, DEFAULT_MAX_PENDING = 3, DEFAULT_MAX_FAILS = 5, DEFAULT_LOCKOUT_MS = 3600 * 1e3;
11
+ function normalizeCode(code) {
12
+ return code.replace(/-/g, "").trim().toUpperCase();
13
+ }
14
+ function generateCode() {
15
+ let code = "";
16
+ for (let i = 0; i < CODE_LENGTH; i++)
17
+ code += CODE_ALPHABET[randomInt(0, CODE_ALPHABET.length)];
18
+ return code;
19
+ }
20
+ function createPairingStore(options = {}) {
21
+ let dir = options.dir ?? join(getAgentDir(), "pairing"), ttlMs = options.ttlMs ?? DEFAULT_TTL_MS, rateLimitMs = options.rateLimitMs ?? DEFAULT_RATE_LIMIT_MS, maxPending = options.maxPending ?? DEFAULT_MAX_PENDING, maxFails = options.maxFails ?? DEFAULT_MAX_FAILS, lockoutMs = options.lockoutMs ?? DEFAULT_LOCKOUT_MS, now = options.now ?? (() => Date.now());
22
+ function storeFile() {
23
+ return join(dir, "store.json");
24
+ }
25
+ function read() {
26
+ let path = storeFile();
27
+ if (!existsSync(path))
28
+ return { pending: [], approved: [] };
29
+ try {
30
+ let parsed = JSON.parse(readFileSync(path, "utf-8"));
31
+ if (parsed == null || typeof parsed != "object" || Array.isArray(parsed))
32
+ return { pending: [], approved: [] };
33
+ let p = parsed, pending = Array.isArray(p.pending) ? p.pending : [], approved = Array.isArray(p.approved) ? p.approved : [];
34
+ return {
35
+ pending: pending.filter((c) => typeof c?.code == "string" && typeof c?.platform == "string" && typeof c?.userId == "string"),
36
+ approved: approved.filter((u) => typeof u?.platform == "string" && typeof u?.userId == "string"),
37
+ failedAttempts: typeof p.failedAttempts == "object" && p.failedAttempts !== null && !Array.isArray(p.failedAttempts) ? p.failedAttempts : void 0,
38
+ lockedOutUntil: typeof p.lockedOutUntil == "object" && p.lockedOutUntil !== null && !Array.isArray(p.lockedOutUntil) ? p.lockedOutUntil : void 0
39
+ };
40
+ } catch {
41
+ return { pending: [], approved: [] };
42
+ }
43
+ }
44
+ function write(data) {
45
+ existsSync(dir) || mkdirSync(dir, { recursive: !0 });
46
+ let path = storeFile(), tmp = `${path}.tmp-${process.pid}`;
47
+ writeFileSync(tmp, `${JSON.stringify(data, null, 2)}
48
+ `, "utf-8"), renameSync(tmp, path);
49
+ try {
50
+ chmodSync(path, 384);
51
+ } catch {
52
+ }
53
+ }
54
+ function isLockedOut(platform) {
55
+ let until = read().lockedOutUntil?.[platform] ?? 0;
56
+ return now() < until;
57
+ }
58
+ function recordFailedAttempt(platform) {
59
+ let data = read(), failed = data.failedAttempts ?? {};
60
+ if (failed[platform] = (failed[platform] ?? 0) + 1, failed[platform] >= maxFails) {
61
+ let locked = data.lockedOutUntil ?? {};
62
+ locked[platform] = now() + lockoutMs, failed[platform] = 0, data.lockedOutUntil = locked;
63
+ }
64
+ data.failedAttempts = failed, write(data);
65
+ }
66
+ function livePending(data) {
67
+ let cutoff = now() - ttlMs;
68
+ return data.pending.filter((c) => c.issuedAt >= cutoff);
69
+ }
70
+ return {
71
+ issueCode(platform, userId) {
72
+ if (isLockedOut(platform))
73
+ return null;
74
+ let data = read(), lastIssued = data.pending.filter((c) => c.platform === platform && c.userId === userId).reduce((max, c) => Math.max(max, c.issuedAt), 0);
75
+ if (lastIssued > 0 && now() - lastIssued < rateLimitMs)
76
+ return null;
77
+ let live = livePending(data);
78
+ if (live.filter((c) => c.platform === platform).length >= maxPending)
79
+ return null;
80
+ let entry = {
81
+ code: generateCode(),
82
+ platform,
83
+ userId,
84
+ issuedAt: now()
85
+ };
86
+ return data.pending = [...live, entry], write(data), entry.code;
87
+ },
88
+ approve(platform, code) {
89
+ if (isLockedOut(platform))
90
+ return null;
91
+ let data = read(), live = livePending(data), normalized = normalizeCode(code), match = live.find((c) => c.platform === platform && c.code === normalized);
92
+ return match ? (data.pending = live.filter((c) => c !== match), data.approved = [
93
+ ...data.approved.filter((u) => !(u.platform === platform && u.userId === match.userId)),
94
+ { platform, userId: match.userId, approvedAt: now() }
95
+ ], write(data), match.userId) : (recordFailedAttempt(platform), null);
96
+ },
97
+ isPaired(platform, userId) {
98
+ return read().approved.some((u) => u.platform === platform && u.userId === userId);
99
+ },
100
+ listPending() {
101
+ let data = read();
102
+ return livePending(data).map((c) => ({
103
+ code: c.code,
104
+ platform: c.platform,
105
+ userId: c.userId,
106
+ expiresAt: c.issuedAt + ttlMs
107
+ }));
108
+ },
109
+ listApproved() {
110
+ return read().approved.map((u) => ({ platform: u.platform, userId: u.userId, approvedAt: u.approvedAt }));
111
+ }
112
+ };
113
+ }
114
+
115
+ export {
116
+ createPairingStore
117
+ };
@@ -0,0 +1,47 @@
1
+ import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
2
+
3
+ // packages/coding-agent/dist/cli/read-secret.js
4
+ async function readSecret(prompt) {
5
+ let stdin = process.stdin;
6
+ if (!stdin.isTTY || typeof stdin.setRawMode != "function") {
7
+ console.error("set LUNR_TELEGRAM_BOT_TOKEN / LUNR_DISCORD_BOT_TOKEN or re-run from a terminal.");
8
+ return;
9
+ }
10
+ process.stderr.write(`${prompt}
11
+ Token: `), stdin.setRawMode(!0), stdin.resume(), stdin.setEncoding("utf8");
12
+ try {
13
+ return await new Promise((resolve, reject) => {
14
+ let buf = "", onData = (chunk) => {
15
+ for (let ch of chunk) {
16
+ if (ch === "") {
17
+ cleanup(), process.stderr.write(`
18
+ `), process.exit(130);
19
+ return;
20
+ }
21
+ if (ch === "\r" || ch === `
22
+ `) {
23
+ cleanup(), process.stderr.write(`********
24
+ `), resolve(buf.length === 0 ? void 0 : buf);
25
+ return;
26
+ }
27
+ if (ch === "\x7F" || ch === "\b") {
28
+ buf = buf.slice(0, -1);
29
+ continue;
30
+ }
31
+ ch >= " " && (buf += ch);
32
+ }
33
+ }, cleanup = () => {
34
+ stdin.off("data", onData), stdin.off("error", onError);
35
+ }, onError = (err) => {
36
+ cleanup(), reject(err);
37
+ };
38
+ stdin.on("data", onData), stdin.on("error", onError);
39
+ });
40
+ } finally {
41
+ typeof stdin.setRawMode == "function" && stdin.setRawMode(!1), stdin.pause();
42
+ }
43
+ }
44
+
45
+ export {
46
+ readSecret
47
+ };
@@ -1,17 +1,20 @@
1
1
  import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
2
+ import {
3
+ SessionOwnership
4
+ } from "./chunk-UAEOTO52.js";
2
5
  import {
3
6
  KeybindingsManager
4
7
  } from "./chunk-CH6OL6P2.js";
5
8
  import {
6
9
  DynamicBorder
7
- } from "./chunk-3GHXVUAK.js";
10
+ } from "./chunk-3VEY2IYY.js";
8
11
  import {
9
12
  keyHint,
10
13
  keyText
11
- } from "./chunk-C4O2RSQQ.js";
14
+ } from "./chunk-N4TUWAGA.js";
12
15
  import {
13
16
  theme
14
- } from "./chunk-MX3GJNXJ.js";
17
+ } from "./chunk-PLGA743X.js";
15
18
  import {
16
19
  canonicalizePath
17
20
  } from "./chunk-PCIGF2XK.js";
@@ -432,6 +435,19 @@ var SessionList = class {
432
435
  }
433
436
  };
434
437
  async function deleteSessionFile(sessionPath) {
438
+ let ownership;
439
+ try {
440
+ ownership = new SessionOwnership(sessionPath);
441
+ } catch (error) {
442
+ return { ok: !1, method: "unlink", error: error instanceof Error ? error.message : String(error) };
443
+ }
444
+ try {
445
+ return await deleteOwnedSessionFile(sessionPath);
446
+ } finally {
447
+ ownership.release();
448
+ }
449
+ }
450
+ async function deleteOwnedSessionFile(sessionPath) {
435
451
  let trashArgs = sessionPath.startsWith("-") ? ["--", sessionPath] : [sessionPath], trashResult = spawnSync("trash", trashArgs, { encoding: "utf-8" }), getTrashErrorHint = () => {
436
452
  let parts = [];
437
453
  trashResult.error && parts.push(trashResult.error.message);
@@ -0,0 +1,9 @@
1
+ import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
2
+
3
+ // packages/coding-agent/dist/core/runtime-scope.js
4
+ import { AsyncLocalStorage } from "node:async_hooks";
5
+ var runtimeScope = new AsyncLocalStorage();
6
+
7
+ export {
8
+ runtimeScope
9
+ };
@@ -1,24 +1,22 @@
1
1
  import { createRequire as __lunrRequire } from "node:module"; const require = __lunrRequire(import.meta.url);
2
+ import {
3
+ createProjectTrustContext,
4
+ resolveProjectTrusted
5
+ } from "./chunk-LV6CEFW2.js";
2
6
  import {
3
7
  lightBuiltinExtensions,
4
8
  loadAllBuiltinExtensions
5
- } from "./chunk-ZOIIMEN6.js";
9
+ } from "./chunk-TVLBDVTR.js";
6
10
  import {
7
- createProjectTrustContext,
8
11
  createStartupTui,
9
- resolveProjectTrusted,
10
12
  shouldRunFirstTimeSetup,
11
13
  showFirstTimeSetup,
12
14
  showStartupSelector,
13
15
  startStartupTui
14
- } from "./chunk-HXJS2PJM.js";
15
- import {
16
- ProjectTrustStore,
17
- hasTrustRequiringProjectResources
18
- } from "./chunk-LTXUQJI4.js";
16
+ } from "./chunk-RW4PYFNE.js";
19
17
  import {
20
18
  applyInheritedSubagentPermissions
21
- } from "./chunk-ZVSORYRM.js";
19
+ } from "./chunk-RVOQBXTA.js";
22
20
  import {
23
21
  MissingSessionCwdError,
24
22
  createAgentSessionFromServices,
@@ -27,11 +25,7 @@ import {
27
25
  formatMissingSessionCwdPrompt,
28
26
  formatNoModelsAvailableMessage,
29
27
  getMissingSessionCwdIssue
30
- } from "./chunk-XAUQOKYK.js";
31
- import {
32
- resolveCliModel,
33
- resolveModelScope
34
- } from "./chunk-5SQDLSZJ.js";
28
+ } from "./chunk-CJS4KQFI.js";
35
29
  import {
36
30
  restoreStdout,
37
31
  takeOverStdout
@@ -39,57 +33,68 @@ import {
39
33
  import {
40
34
  detectSupportedImageMimeTypeFromFile,
41
35
  resolveReadPath
42
- } from "./chunk-GT5F3OKM.js";
36
+ } from "./chunk-33SIKK3Y.js";
37
+ import {
38
+ processImage
39
+ } from "./chunk-XHIRAZ26.js";
40
+ import {
41
+ bindRuntimeBridges
42
+ } from "./chunk-RBZQU6TJ.js";
43
43
  import {
44
44
  SettingsManager,
45
45
  applyHttpProxySettings,
46
46
  configureHttpDispatcher
47
- } from "./chunk-VQ4UBWSA.js";
47
+ } from "./chunk-EOEAQIJV.js";
48
+ import {
49
+ ProjectTrustStore,
50
+ hasTrustRequiringProjectResources
51
+ } from "./chunk-24C5IAJ4.js";
52
+ import {
53
+ resolveCliModel,
54
+ resolveModelScope
55
+ } from "./chunk-MNRO3UCV.js";
56
+ import {
57
+ migrateLegacyGlobalInstructions
58
+ } from "./chunk-M3LZLQW2.js";
48
59
  import {
49
60
  SessionManager,
50
61
  assertValidSessionId
51
- } from "./chunk-6UB6NKA3.js";
62
+ } from "./chunk-VIVYOI7C.js";
52
63
  import {
53
- bindRuntimeBridges
54
- } from "./chunk-W3SILANP.js";
64
+ registerCustomizeBridge
65
+ } from "./chunk-4EULYYR4.js";
66
+ import {
67
+ registerMemoryCapBridge
68
+ } from "./chunk-UJOCPOMX.js";
55
69
  import {
56
70
  registerModelTierBridge
57
- } from "./chunk-W3CVH5RX.js";
71
+ } from "./chunk-2TKODGBZ.js";
58
72
  import {
59
- processImage
60
- } from "./chunk-MW2XJZIK.js";
73
+ SessionSelectorComponent
74
+ } from "./chunk-HT2XEJNP.js";
61
75
  import {
62
- migrateLegacyGlobalInstructions
63
- } from "./chunk-M3LZLQW2.js";
76
+ SessionOwnership
77
+ } from "./chunk-UAEOTO52.js";
78
+ import {
79
+ KeybindingsManager,
80
+ migrateKeybindingsConfig
81
+ } from "./chunk-CH6OL6P2.js";
64
82
  import {
65
83
  printTimings,
66
84
  resetTimings,
67
85
  time
68
86
  } from "./chunk-PVCDKGR6.js";
69
- import {
70
- registerCustomizeBridge
71
- } from "./chunk-VGYZ3APQ.js";
72
- import {
73
- registerMemoryCapBridge
74
- } from "./chunk-AY6CAJSL.js";
75
87
  import {
76
88
  parseArgs,
77
89
  printHelp
78
- } from "./chunk-DDGMHUOW.js";
90
+ } from "./chunk-OGJN3OZV.js";
79
91
  import {
80
92
  markStartupMilestone
81
93
  } from "./chunk-CCZJ3PYY.js";
82
- import {
83
- SessionSelectorComponent
84
- } from "./chunk-HRS4HMDX.js";
85
- import {
86
- KeybindingsManager,
87
- migrateKeybindingsConfig
88
- } from "./chunk-CH6OL6P2.js";
89
94
  import {
90
95
  initTheme,
91
96
  stopThemeWatcher
92
- } from "./chunk-MX3GJNXJ.js";
97
+ } from "./chunk-PLGA743X.js";
93
98
  import {
94
99
  APP_NAME,
95
100
  CONFIG_DIR_NAME,
@@ -281,7 +286,14 @@ async function pruneDir(dir, cutoffMs, excludeFile, deleted) {
281
286
  let filePath = join(dir, entry.name);
282
287
  if (!(excludeFile && sameFile(filePath, excludeFile)))
283
288
  try {
284
- (await stat2(filePath)).mtimeMs < cutoffMs && (await unlink(filePath), deleted.push(filePath));
289
+ if ((await stat2(filePath)).mtimeMs < cutoffMs) {
290
+ let ownership = new SessionOwnership(filePath);
291
+ try {
292
+ (await stat2(filePath)).mtimeMs < cutoffMs && (await unlink(filePath), deleted.push(filePath));
293
+ } finally {
294
+ ownership.release();
295
+ }
296
+ }
285
297
  } catch {
286
298
  }
287
299
  }
@@ -719,18 +731,18 @@ async function promptForMissingSessionCwd(issue, settingsManager, startupView) {
719
731
  async function main(args, options) {
720
732
  resetTimings(), (args.includes("--offline") || isTruthyEnvFlag(process.env.PI_OFFLINE)) && (process.env.PI_OFFLINE = "1");
721
733
  let cwd = process.cwd(), agentDir = getAgentDir(), bootstrapSettingsManager = SettingsManager.create(cwd, agentDir, { projectTrusted: !1 });
722
- if (applyHttpProxySettings(bootstrapSettingsManager.getGlobalSettings().httpProxy), configureHttpDispatcher(), ["setup", "features", "uninstall"].includes(args[0])) {
723
- let { handleInstallCli } = await import("./install-cli-TH7IJJQQ.js");
734
+ if (applyHttpProxySettings(bootstrapSettingsManager.getGlobalSettings().httpProxy), configureHttpDispatcher(), ["setup", "features", "uninstall", "browser"].includes(args[0])) {
735
+ let { handleInstallCli } = await import("./install-cli-KHAXYBOO.js");
724
736
  if (await handleInstallCli(args))
725
737
  return;
726
738
  }
727
739
  if (args[0] === "update") {
728
- let { handleUpdateCli } = await import("./update-cli-NM7B4CKL.js");
740
+ let { handleUpdateCli } = await import("./update-cli-TVTPVUNM.js");
729
741
  if (await handleUpdateCli(args))
730
742
  return;
731
743
  }
732
744
  if (["install", "remove", "uninstall", "list", "config"].includes(args[0])) {
733
- let { handleConfigCommand, handlePackageCommand } = await import("./package-manager-cli-VMYX4Y2S.js");
745
+ let { handleConfigCommand, handlePackageCommand } = await import("./package-manager-cli-J337RKTI.js");
734
746
  if (await handlePackageCommand(args, { extensionFactories: options?.extensionFactories })) {
735
747
  process.exit(process.exitCode ?? 0);
736
748
  return;
@@ -739,7 +751,7 @@ async function main(args, options) {
739
751
  return;
740
752
  }
741
753
  if (args[0] === "gateway") {
742
- let { handleGatewayCommand } = await import("./command-ZURZJDXF.js");
754
+ let { handleGatewayCommand } = await import("./command-PYBNGLPP.js");
743
755
  if (await handleGatewayCommand(args))
744
756
  return;
745
757
  }
@@ -754,7 +766,7 @@ async function main(args, options) {
754
766
  if (time("parseArgs"), parsed.version && (console.log(VERSION), process.exit(0)), parsed.export) {
755
767
  let result;
756
768
  try {
757
- let { exportFromFile } = await import("./export-html-E4DT6ZJQ.js"), outputPath = parsed.messages.length > 0 ? parsed.messages[0] : void 0;
769
+ let { exportFromFile } = await import("./export-html-ETFOKW3M.js"), outputPath = parsed.messages.length > 0 ? parsed.messages[0] : void 0;
758
770
  result = await exportFromFile(parsed.export, outputPath);
759
771
  } catch (error) {
760
772
  let message = error instanceof Error ? error.message : "Failed to export session";
@@ -762,7 +774,7 @@ async function main(args, options) {
762
774
  }
763
775
  console.log(`Exported to: ${result}`), process.exit(0);
764
776
  }
765
- let appMode = resolveAppMode(parsed, process.stdin.isTTY, process.stdout.isTTY), interactiveModeImport = appMode === "interactive" ? import("./interactive-mode-BBASNWHN.js") : void 0, startupView = appMode === "interactive" ? options?.startupView : void 0;
777
+ let appMode = resolveAppMode(parsed, process.stdin.isTTY, process.stdout.isTTY), interactiveModeImport = appMode === "interactive" ? import("./interactive-mode-IN77GQGX.js") : void 0, startupView = appMode === "interactive" ? options?.startupView : void 0;
766
778
  options?.startupView && !startupView && options.startupView.stop(), applyInheritedSubagentPermissions(), appMode !== "interactive" && !isPlainRuntimeMetadataCommand(parsed) && takeOverStdout(), parsed.mode === "rpc" && parsed.fileArgs.length > 0 && (console.error(chalk4.red("Error: @file arguments are not supported in RPC mode")), process.exit(1)), validateForkFlags(parsed), validateSessionIdFlags(parsed);
767
779
  let { migratedAuthProviders: migratedProviders, deprecationWarnings } = runMigrations(cwd);
768
780
  time("runMigrations");
@@ -772,7 +784,7 @@ async function main(args, options) {
772
784
  if (missingSessionCwdIssue)
773
785
  if (appMode === "interactive") {
774
786
  let selectedCwd = await promptForMissingSessionCwd(missingSessionCwdIssue, startupSettingsManager, startupView);
775
- selectedCwd || process.exit(0), sessionManager = SessionManager.open(missingSessionCwdIssue.sessionFile, sessionDir, selectedCwd);
787
+ selectedCwd || process.exit(0), sessionManager.dispose(), sessionManager = SessionManager.open(missingSessionCwdIssue.sessionFile, sessionDir, selectedCwd);
776
788
  } else
777
789
  console.error(chalk4.red(new MissingSessionCwdError(missingSessionCwdIssue).message)), process.exit(1);
778
790
  if (parsed.name !== void 0) {
@@ -919,12 +931,12 @@ ${EXTENSION_LOAD_FAILURE_HINT}` : "";
919
931
  extensionHint && console.error(chalk4.yellow(EXTENSION_LOAD_FAILURE_HINT)), process.exit(1);
920
932
  }
921
933
  if (time("createAgentSession"), appMode !== "interactive" && !session.model && (console.error(chalk4.red(formatNoModelsAvailableMessage())), process.exit(1)), startupBenchmark && appMode !== "interactive" && (console.error(chalk4.red("Error: PI_STARTUP_BENCHMARK only supports interactive mode")), process.exit(1)), appMode === "rpc") {
922
- let { runRpcMode } = await import("./rpc-mode-SJNSOA4G.js");
934
+ let { runRpcMode } = await import("./rpc-mode-SH7VB4RH.js");
923
935
  printTimings(), await runRpcMode(runtime);
924
936
  } else if (appMode === "interactive") {
925
937
  let [{ InteractiveMode }, { loadDeferredBuiltinExtensions }] = await Promise.all([
926
938
  interactiveModeImport,
927
- import("./builtin-extensions-SRCYQPZ6.js")
939
+ import("./builtin-extensions-4GNDR6U3.js")
928
940
  ]), interactiveMode = new InteractiveMode(runtime, {
929
941
  migratedProviders,
930
942
  modelFallbackMessage,