@ashx-j/lunr-dev 0.2.19-dev.10.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 (690) hide show
  1. package/CHANGELOG.md +60 -2
  2. package/README.md +2 -2
  3. package/dist/builtin-extensions/ashxj-tui.d.ts.map +1 -1
  4. package/dist/builtin-extensions/ashxj-tui.js +2 -2
  5. package/dist/builtin-extensions/ashxj-tui.js.map +1 -1
  6. package/dist/builtin-extensions/index.d.ts.map +1 -1
  7. package/dist/builtin-extensions/index.js +1 -2
  8. package/dist/builtin-extensions/index.js.map +1 -1
  9. package/dist/builtin-extensions/lunr-browser.d.ts +9 -0
  10. package/dist/builtin-extensions/lunr-browser.d.ts.map +1 -0
  11. package/dist/builtin-extensions/lunr-browser.js +169 -0
  12. package/dist/builtin-extensions/lunr-browser.js.map +1 -0
  13. package/dist/builtin-extensions/lunr-computer-use.d.ts.map +1 -1
  14. package/dist/builtin-extensions/lunr-computer-use.js +15 -14
  15. package/dist/builtin-extensions/lunr-computer-use.js.map +1 -1
  16. package/dist/builtin-extensions/lunr-plan-tools.d.ts +7 -7
  17. package/dist/builtin-extensions/lunr-plan-tools.d.ts.map +1 -1
  18. package/dist/builtin-extensions/lunr-plan-tools.js +12 -12
  19. package/dist/builtin-extensions/lunr-plan-tools.js.map +1 -1
  20. package/dist/builtin-extensions/lunr-todos.d.ts +6 -5
  21. package/dist/builtin-extensions/lunr-todos.d.ts.map +1 -1
  22. package/dist/builtin-extensions/lunr-todos.js +24 -7
  23. package/dist/builtin-extensions/lunr-todos.js.map +1 -1
  24. package/dist/builtin-extensions/pi-intercom/broker/spawn.d.ts +6 -4
  25. package/dist/builtin-extensions/pi-intercom/broker/spawn.d.ts.map +1 -1
  26. package/dist/builtin-extensions/pi-intercom/broker/spawn.js +114 -61
  27. package/dist/builtin-extensions/pi-intercom/broker/spawn.js.map +1 -1
  28. package/dist/builtin-extensions/pi-intercom/index.d.ts.map +1 -1
  29. package/dist/builtin-extensions/pi-intercom/index.js +365 -351
  30. package/dist/builtin-extensions/pi-intercom/index.js.map +1 -1
  31. package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.d.ts.map +1 -1
  32. package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.js +1 -0
  33. package/dist/builtin-extensions/pi-mcp-adapter/direct-tools.js.map +1 -1
  34. package/dist/builtin-extensions/pi-mcp-adapter/index.d.ts.map +1 -1
  35. package/dist/builtin-extensions/pi-mcp-adapter/index.js +1 -1
  36. package/dist/builtin-extensions/pi-mcp-adapter/index.js.map +1 -1
  37. package/dist/builtin-extensions/pi-subagents/src/extension/control-notices.d.ts +1 -1
  38. package/dist/builtin-extensions/pi-subagents/src/extension/control-notices.d.ts.map +1 -1
  39. package/dist/builtin-extensions/pi-subagents/src/extension/control-notices.js +5 -1
  40. package/dist/builtin-extensions/pi-subagents/src/extension/control-notices.js.map +1 -1
  41. package/dist/builtin-extensions/pi-subagents/src/extension/fanout-child.d.ts.map +1 -1
  42. package/dist/builtin-extensions/pi-subagents/src/extension/fanout-child.js +2 -2
  43. package/dist/builtin-extensions/pi-subagents/src/extension/fanout-child.js.map +1 -1
  44. package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts +9 -7
  45. package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts.map +1 -1
  46. package/dist/builtin-extensions/pi-subagents/src/extension/index.js +143 -59
  47. package/dist/builtin-extensions/pi-subagents/src/extension/index.js.map +1 -1
  48. package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts +18 -8
  49. package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts.map +1 -1
  50. package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js +39 -14
  51. package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js.map +1 -1
  52. package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts +5 -3
  53. package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts.map +1 -1
  54. package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js +32 -17
  55. package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js.map +1 -1
  56. package/dist/builtin-extensions/pi-subagents/src/intercom/communication.d.ts +17 -0
  57. package/dist/builtin-extensions/pi-subagents/src/intercom/communication.d.ts.map +1 -0
  58. package/dist/builtin-extensions/pi-subagents/src/intercom/communication.js +45 -0
  59. package/dist/builtin-extensions/pi-subagents/src/intercom/communication.js.map +1 -0
  60. package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.d.ts +2 -0
  61. package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.d.ts.map +1 -1
  62. package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.js +10 -14
  63. package/dist/builtin-extensions/pi-subagents/src/intercom/intercom-bridge.js.map +1 -1
  64. package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.d.ts +12 -2
  65. package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.d.ts.map +1 -1
  66. package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.js +401 -58
  67. package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.js.map +1 -1
  68. package/dist/builtin-extensions/pi-subagents/src/intercom/result-intercom.d.ts +1 -0
  69. package/dist/builtin-extensions/pi-subagents/src/intercom/result-intercom.d.ts.map +1 -1
  70. package/dist/builtin-extensions/pi-subagents/src/intercom/result-intercom.js +1 -1
  71. package/dist/builtin-extensions/pi-subagents/src/intercom/result-intercom.js.map +1 -1
  72. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.d.ts +29 -0
  73. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.d.ts.map +1 -0
  74. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.js +184 -0
  75. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.js.map +1 -0
  76. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.d.ts +91 -0
  77. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.d.ts.map +1 -0
  78. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.js +542 -0
  79. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.js.map +1 -0
  80. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.d.ts +13 -1
  81. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.d.ts.map +1 -1
  82. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.js +42 -12
  83. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.js.map +1 -1
  84. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-job-tracker.d.ts.map +1 -1
  85. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-job-tracker.js +3 -2
  86. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-job-tracker.js.map +1 -1
  87. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.d.ts +2 -1
  88. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.d.ts.map +1 -1
  89. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.js +35 -8
  90. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.js.map +1 -1
  91. package/dist/builtin-extensions/pi-subagents/src/runs/background/auto-drain.d.ts +1 -0
  92. package/dist/builtin-extensions/pi-subagents/src/runs/background/auto-drain.d.ts.map +1 -1
  93. package/dist/builtin-extensions/pi-subagents/src/runs/background/auto-drain.js +2 -1
  94. package/dist/builtin-extensions/pi-subagents/src/runs/background/auto-drain.js.map +1 -1
  95. package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.d.ts +7 -3
  96. package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.d.ts.map +1 -1
  97. package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.js +26 -4
  98. package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.js.map +1 -1
  99. package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.d.ts +1 -0
  100. package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.d.ts.map +1 -1
  101. package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.js +55 -38
  102. package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.js.map +1 -1
  103. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.d.ts +100 -0
  104. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.d.ts.map +1 -1
  105. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js +47 -32
  106. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js.map +1 -1
  107. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.d.ts +6 -6
  108. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.d.ts.map +1 -1
  109. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.js +75 -5
  110. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.js.map +1 -1
  111. package/dist/builtin-extensions/pi-subagents/src/runs/background/top-level-async.d.ts +15 -2
  112. package/dist/builtin-extensions/pi-subagents/src/runs/background/top-level-async.d.ts.map +1 -1
  113. package/dist/builtin-extensions/pi-subagents/src/runs/background/top-level-async.js +14 -4
  114. package/dist/builtin-extensions/pi-subagents/src/runs/background/top-level-async.js.map +1 -1
  115. package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.d.ts.map +1 -1
  116. package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js +43 -4
  117. package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js.map +1 -1
  118. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.d.ts +1 -0
  119. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.d.ts.map +1 -1
  120. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js +26 -9
  121. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js.map +1 -1
  122. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.d.ts.map +1 -1
  123. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js +4 -3
  124. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js.map +1 -1
  125. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.d.ts +0 -1
  126. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.d.ts.map +1 -1
  127. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js +94 -25
  128. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js.map +1 -1
  129. package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.d.ts +2 -0
  130. package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.d.ts.map +1 -1
  131. package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.js +75 -18
  132. package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.js.map +1 -1
  133. package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts +1 -1
  134. package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts.map +1 -1
  135. package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js +1 -1
  136. package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js.map +1 -1
  137. package/dist/builtin-extensions/pi-subagents/src/runs/shared/completion-guard.d.ts +1 -1
  138. package/dist/builtin-extensions/pi-subagents/src/runs/shared/completion-guard.d.ts.map +1 -1
  139. package/dist/builtin-extensions/pi-subagents/src/runs/shared/completion-guard.js +1 -1
  140. package/dist/builtin-extensions/pi-subagents/src/runs/shared/completion-guard.js.map +1 -1
  141. package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.d.ts +13 -1
  142. package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.d.ts.map +1 -1
  143. package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.js +67 -11
  144. package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.js.map +1 -1
  145. package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.d.ts +1 -0
  146. package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.d.ts.map +1 -1
  147. package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.js.map +1 -1
  148. package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.d.ts +5 -0
  149. package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.d.ts.map +1 -1
  150. package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.js +25 -15
  151. package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.js.map +1 -1
  152. package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-control.d.ts +1 -0
  153. package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-control.d.ts.map +1 -1
  154. package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-control.js +3 -0
  155. package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-control.js.map +1 -1
  156. package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.d.ts.map +1 -1
  157. package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.js +17 -5
  158. package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.js.map +1 -1
  159. package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.d.ts +2 -2
  160. package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.d.ts.map +1 -1
  161. package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.js +5 -10
  162. package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.js.map +1 -1
  163. package/dist/builtin-extensions/pi-subagents/src/shared/async-guidance.d.ts +2 -0
  164. package/dist/builtin-extensions/pi-subagents/src/shared/async-guidance.d.ts.map +1 -0
  165. package/dist/builtin-extensions/pi-subagents/src/shared/async-guidance.js +3 -0
  166. package/dist/builtin-extensions/pi-subagents/src/shared/async-guidance.js.map +1 -0
  167. package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.d.ts +3 -0
  168. package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.d.ts.map +1 -1
  169. package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.js +70 -13
  170. package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.js.map +1 -1
  171. package/dist/builtin-extensions/pi-subagents/src/shared/formatters.d.ts +12 -1
  172. package/dist/builtin-extensions/pi-subagents/src/shared/formatters.d.ts.map +1 -1
  173. package/dist/builtin-extensions/pi-subagents/src/shared/formatters.js +21 -2
  174. package/dist/builtin-extensions/pi-subagents/src/shared/formatters.js.map +1 -1
  175. package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts +23 -4
  176. package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts.map +1 -1
  177. package/dist/builtin-extensions/pi-subagents/src/shared/types.js +1 -1
  178. package/dist/builtin-extensions/pi-subagents/src/shared/types.js.map +1 -1
  179. package/dist/builtin-extensions/pi-subagents/src/slash/delegation-adapters.d.ts.map +1 -1
  180. package/dist/builtin-extensions/pi-subagents/src/slash/delegation-adapters.js.map +1 -1
  181. package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.d.ts +7 -0
  182. package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.d.ts.map +1 -1
  183. package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.js +11 -7
  184. package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.js.map +1 -1
  185. package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts +6 -0
  186. package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts.map +1 -1
  187. package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js +46 -29
  188. package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js.map +1 -1
  189. package/dist/builtin-extensions/pi-subagents/src/tui/communication.d.ts +18 -0
  190. package/dist/builtin-extensions/pi-subagents/src/tui/communication.d.ts.map +1 -0
  191. package/dist/builtin-extensions/pi-subagents/src/tui/communication.js +48 -0
  192. package/dist/builtin-extensions/pi-subagents/src/tui/communication.js.map +1 -0
  193. package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts +46 -4
  194. package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts.map +1 -1
  195. package/dist/builtin-extensions/pi-subagents/src/tui/render.js +407 -450
  196. package/dist/builtin-extensions/pi-subagents/src/tui/render.js.map +1 -1
  197. package/dist/builtin-extensions/pi-subagents/src/watchdog/register-main.d.ts.map +1 -1
  198. package/dist/builtin-extensions/pi-subagents/src/watchdog/register-main.js +1 -1
  199. package/dist/builtin-extensions/pi-subagents/src/watchdog/register-main.js.map +1 -1
  200. package/dist/builtin-extensions/pi-subagents/src/watchdog/tool-actions.d.ts +2 -13
  201. package/dist/builtin-extensions/pi-subagents/src/watchdog/tool-actions.d.ts.map +1 -1
  202. package/dist/builtin-extensions/pi-subagents/src/watchdog/tool-actions.js +5 -91
  203. package/dist/builtin-extensions/pi-subagents/src/watchdog/tool-actions.js.map +1 -1
  204. package/dist/builtin-extensions/pi-web-access/index.d.ts.map +1 -1
  205. package/dist/builtin-extensions/pi-web-access/index.js +11 -7
  206. package/dist/builtin-extensions/pi-web-access/index.js.map +1 -1
  207. package/dist/cli/args.d.ts.map +1 -1
  208. package/dist/cli/args.js +2 -1
  209. package/dist/cli/args.js.map +1 -1
  210. package/dist/cli/install-cli.d.ts.map +1 -1
  211. package/dist/cli/install-cli.js +15 -45
  212. package/dist/cli/install-cli.js.map +1 -1
  213. package/dist/core/agent-session-runtime.d.ts +9 -0
  214. package/dist/core/agent-session-runtime.d.ts.map +1 -1
  215. package/dist/core/agent-session-runtime.js +126 -29
  216. package/dist/core/agent-session-runtime.js.map +1 -1
  217. package/dist/core/agent-session.d.ts +23 -1
  218. package/dist/core/agent-session.d.ts.map +1 -1
  219. package/dist/core/agent-session.js +255 -109
  220. package/dist/core/agent-session.js.map +1 -1
  221. package/dist/core/browser/network.d.ts +9 -0
  222. package/dist/core/browser/network.d.ts.map +1 -0
  223. package/dist/core/browser/network.js +146 -0
  224. package/dist/core/browser/network.js.map +1 -0
  225. package/dist/core/browser/runtime.d.ts +24 -0
  226. package/dist/core/browser/runtime.d.ts.map +1 -0
  227. package/dist/core/browser/runtime.js +289 -0
  228. package/dist/core/browser/runtime.js.map +1 -0
  229. package/dist/core/browser/schema.d.ts +16 -0
  230. package/dist/core/browser/schema.d.ts.map +1 -0
  231. package/dist/core/browser/schema.js +36 -0
  232. package/dist/core/browser/schema.js.map +1 -0
  233. package/dist/core/browser/settings.d.ts +8 -0
  234. package/dist/core/browser/settings.d.ts.map +1 -0
  235. package/dist/core/browser/settings.js +30 -0
  236. package/dist/core/browser/settings.js.map +1 -0
  237. package/dist/core/browser/setup.d.ts +2 -0
  238. package/dist/core/browser/setup.d.ts.map +1 -0
  239. package/dist/core/browser/setup.js +16 -0
  240. package/dist/core/browser/setup.js.map +1 -0
  241. package/dist/core/catalog-cache-scope.d.ts.map +1 -1
  242. package/dist/core/catalog-cache-scope.js +3 -1
  243. package/dist/core/catalog-cache-scope.js.map +1 -1
  244. package/dist/core/computer-use/image.d.ts +27 -0
  245. package/dist/core/computer-use/image.d.ts.map +1 -0
  246. package/dist/core/computer-use/image.js +72 -0
  247. package/dist/core/computer-use/image.js.map +1 -0
  248. package/dist/core/computer-use/policy.d.ts.map +1 -1
  249. package/dist/core/computer-use/policy.js +2 -6
  250. package/dist/core/computer-use/policy.js.map +1 -1
  251. package/dist/core/computer-use/schemas.d.ts +14 -10
  252. package/dist/core/computer-use/schemas.d.ts.map +1 -1
  253. package/dist/core/computer-use/schemas.js +27 -35
  254. package/dist/core/computer-use/schemas.js.map +1 -1
  255. package/dist/core/computer-use/workflow.d.ts +16 -8
  256. package/dist/core/computer-use/workflow.d.ts.map +1 -1
  257. package/dist/core/computer-use/workflow.js +337 -260
  258. package/dist/core/computer-use/workflow.js.map +1 -1
  259. package/dist/core/customize.d.ts +2 -0
  260. package/dist/core/customize.d.ts.map +1 -1
  261. package/dist/core/customize.js +17 -13
  262. package/dist/core/customize.js.map +1 -1
  263. package/dist/core/export-html/index.d.ts.map +1 -1
  264. package/dist/core/export-html/index.js +1 -1
  265. package/dist/core/export-html/index.js.map +1 -1
  266. package/dist/core/extensions/loader.d.ts.map +1 -1
  267. package/dist/core/extensions/loader.js +4 -0
  268. package/dist/core/extensions/loader.js.map +1 -1
  269. package/dist/core/extensions/runner.d.ts +1 -0
  270. package/dist/core/extensions/runner.d.ts.map +1 -1
  271. package/dist/core/extensions/runner.js +1 -1
  272. package/dist/core/extensions/runner.js.map +1 -1
  273. package/dist/core/extensions/types.d.ts +1 -1
  274. package/dist/core/extensions/types.d.ts.map +1 -1
  275. package/dist/core/extensions/types.js.map +1 -1
  276. package/dist/core/install-features.d.ts.map +1 -1
  277. package/dist/core/install-features.js +10 -8
  278. package/dist/core/install-features.js.map +1 -1
  279. package/dist/core/memory-cap.d.ts.map +1 -1
  280. package/dist/core/memory-cap.js +5 -3
  281. package/dist/core/memory-cap.js.map +1 -1
  282. package/dist/core/model-runtime.d.ts.map +1 -1
  283. package/dist/core/model-runtime.js +3 -2
  284. package/dist/core/model-runtime.js.map +1 -1
  285. package/dist/core/model-tiers.d.ts.map +1 -1
  286. package/dist/core/model-tiers.js +9 -6
  287. package/dist/core/model-tiers.js.map +1 -1
  288. package/dist/core/permissions.d.ts +17 -23
  289. package/dist/core/permissions.d.ts.map +1 -1
  290. package/dist/core/permissions.js +79 -146
  291. package/dist/core/permissions.js.map +1 -1
  292. package/dist/core/plan-mode.d.ts +10 -12
  293. package/dist/core/plan-mode.d.ts.map +1 -1
  294. package/dist/core/plan-mode.js +20 -24
  295. package/dist/core/plan-mode.js.map +1 -1
  296. package/dist/core/process-registry.d.ts.map +1 -1
  297. package/dist/core/process-registry.js +6 -4
  298. package/dist/core/process-registry.js.map +1 -1
  299. package/dist/core/runtime-bridges.d.ts.map +1 -1
  300. package/dist/core/runtime-bridges.js +2 -2
  301. package/dist/core/runtime-bridges.js.map +1 -1
  302. package/dist/core/runtime-scope.d.ts +11 -0
  303. package/dist/core/runtime-scope.d.ts.map +1 -0
  304. package/dist/core/runtime-scope.js +3 -0
  305. package/dist/core/runtime-scope.js.map +1 -0
  306. package/dist/core/sdk.d.ts.map +1 -1
  307. package/dist/core/sdk.js +26 -6
  308. package/dist/core/sdk.js.map +1 -1
  309. package/dist/core/session-handoff.d.ts +35 -0
  310. package/dist/core/session-handoff.d.ts.map +1 -0
  311. package/dist/core/session-handoff.js +214 -0
  312. package/dist/core/session-handoff.js.map +1 -0
  313. package/dist/core/session-manager.d.ts +20 -0
  314. package/dist/core/session-manager.d.ts.map +1 -1
  315. package/dist/core/session-manager.js +191 -22
  316. package/dist/core/session-manager.js.map +1 -1
  317. package/dist/core/session-ownership.d.ts +28 -0
  318. package/dist/core/session-ownership.d.ts.map +1 -0
  319. package/dist/core/session-ownership.js +138 -0
  320. package/dist/core/session-ownership.js.map +1 -0
  321. package/dist/core/session-retention.d.ts.map +1 -1
  322. package/dist/core/session-retention.js +11 -2
  323. package/dist/core/session-retention.js.map +1 -1
  324. package/dist/core/settings-manager.d.ts +24 -1
  325. package/dist/core/settings-manager.d.ts.map +1 -1
  326. package/dist/core/settings-manager.js +78 -1
  327. package/dist/core/settings-manager.js.map +1 -1
  328. package/dist/core/slash-commands.d.ts.map +1 -1
  329. package/dist/core/slash-commands.js +6 -4
  330. package/dist/core/slash-commands.js.map +1 -1
  331. package/dist/core/subagent-cancellation.d.ts +21 -0
  332. package/dist/core/subagent-cancellation.d.ts.map +1 -0
  333. package/dist/core/subagent-cancellation.js +53 -0
  334. package/dist/core/subagent-cancellation.js.map +1 -0
  335. package/dist/core/subagent-permission-inherit.d.ts +6 -10
  336. package/dist/core/subagent-permission-inherit.d.ts.map +1 -1
  337. package/dist/core/subagent-permission-inherit.js +14 -14
  338. package/dist/core/subagent-permission-inherit.js.map +1 -1
  339. package/dist/core/subagent-spinner-setting.d.ts +6 -0
  340. package/dist/core/subagent-spinner-setting.d.ts.map +1 -0
  341. package/dist/core/subagent-spinner-setting.js +12 -0
  342. package/dist/core/subagent-spinner-setting.js.map +1 -0
  343. package/dist/core/subagent-spinner.d.ts +4 -0
  344. package/dist/core/subagent-spinner.d.ts.map +1 -0
  345. package/dist/core/subagent-spinner.js +6 -0
  346. package/dist/core/subagent-spinner.js.map +1 -0
  347. package/dist/core/subagent-wait-interruption.d.ts +11 -0
  348. package/dist/core/subagent-wait-interruption.d.ts.map +1 -0
  349. package/dist/core/subagent-wait-interruption.js +19 -0
  350. package/dist/core/subagent-wait-interruption.js.map +1 -0
  351. package/dist/core/system-prompt.d.ts +2 -0
  352. package/dist/core/system-prompt.d.ts.map +1 -1
  353. package/dist/core/system-prompt.js +14 -4
  354. package/dist/core/system-prompt.js.map +1 -1
  355. package/dist/core/todo-settings.d.ts +5 -0
  356. package/dist/core/todo-settings.d.ts.map +1 -0
  357. package/dist/core/todo-settings.js +7 -0
  358. package/dist/core/todo-settings.js.map +1 -0
  359. package/dist/core/tools/bash.d.ts.map +1 -1
  360. package/dist/core/tools/bash.js +4 -4
  361. package/dist/core/tools/bash.js.map +1 -1
  362. package/dist/core/tools/edit.d.ts.map +1 -1
  363. package/dist/core/tools/edit.js +5 -3
  364. package/dist/core/tools/edit.js.map +1 -1
  365. package/dist/core/tools/find.d.ts.map +1 -1
  366. package/dist/core/tools/find.js +4 -4
  367. package/dist/core/tools/find.js.map +1 -1
  368. package/dist/core/tools/grep.d.ts.map +1 -1
  369. package/dist/core/tools/grep.js +4 -4
  370. package/dist/core/tools/grep.js.map +1 -1
  371. package/dist/core/tools/ls.d.ts.map +1 -1
  372. package/dist/core/tools/ls.js +4 -4
  373. package/dist/core/tools/ls.js.map +1 -1
  374. package/dist/core/tools/read.d.ts.map +1 -1
  375. package/dist/core/tools/read.js +4 -4
  376. package/dist/core/tools/read.js.map +1 -1
  377. package/dist/core/tools/render-utils.d.ts +14 -5
  378. package/dist/core/tools/render-utils.d.ts.map +1 -1
  379. package/dist/core/tools/render-utils.js +34 -7
  380. package/dist/core/tools/render-utils.js.map +1 -1
  381. package/dist/core/tools/write.d.ts.map +1 -1
  382. package/dist/core/tools/write.js +4 -4
  383. package/dist/core/tools/write.js.map +1 -1
  384. package/dist/core/usage-service.d.ts.map +1 -1
  385. package/dist/core/usage-service.js +5 -3
  386. package/dist/core/usage-service.js.map +1 -1
  387. package/dist/gateway/adapters/discord.d.ts +12 -1
  388. package/dist/gateway/adapters/discord.d.ts.map +1 -1
  389. package/dist/gateway/adapters/discord.js +114 -24
  390. package/dist/gateway/adapters/discord.js.map +1 -1
  391. package/dist/gateway/adapters/telegram.d.ts +4 -2
  392. package/dist/gateway/adapters/telegram.d.ts.map +1 -1
  393. package/dist/gateway/adapters/telegram.js +41 -11
  394. package/dist/gateway/adapters/telegram.js.map +1 -1
  395. package/dist/gateway/agent-bridge.d.ts +18 -4
  396. package/dist/gateway/agent-bridge.d.ts.map +1 -1
  397. package/dist/gateway/agent-bridge.js +305 -73
  398. package/dist/gateway/agent-bridge.js.map +1 -1
  399. package/dist/gateway/approval.d.ts +3 -6
  400. package/dist/gateway/approval.d.ts.map +1 -1
  401. package/dist/gateway/approval.js +62 -24
  402. package/dist/gateway/approval.js.map +1 -1
  403. package/dist/gateway/authz.d.ts +2 -0
  404. package/dist/gateway/authz.d.ts.map +1 -1
  405. package/dist/gateway/authz.js +13 -0
  406. package/dist/gateway/authz.js.map +1 -1
  407. package/dist/gateway/buttons.d.ts +3 -1
  408. package/dist/gateway/buttons.d.ts.map +1 -1
  409. package/dist/gateway/buttons.js +45 -20
  410. package/dist/gateway/buttons.js.map +1 -1
  411. package/dist/gateway/command.d.ts.map +1 -1
  412. package/dist/gateway/command.js +49 -4
  413. package/dist/gateway/command.js.map +1 -1
  414. package/dist/gateway/commands.d.ts +2 -0
  415. package/dist/gateway/commands.d.ts.map +1 -1
  416. package/dist/gateway/commands.js +52 -16
  417. package/dist/gateway/commands.js.map +1 -1
  418. package/dist/gateway/config.d.ts +6 -0
  419. package/dist/gateway/config.d.ts.map +1 -1
  420. package/dist/gateway/config.js +7 -0
  421. package/dist/gateway/config.js.map +1 -1
  422. package/dist/gateway/conversations.d.ts +14 -0
  423. package/dist/gateway/conversations.d.ts.map +1 -0
  424. package/dist/gateway/conversations.js +30 -0
  425. package/dist/gateway/conversations.js.map +1 -0
  426. package/dist/gateway/cron.d.ts +1 -1
  427. package/dist/gateway/cron.d.ts.map +1 -1
  428. package/dist/gateway/cron.js +2 -2
  429. package/dist/gateway/cron.js.map +1 -1
  430. package/dist/gateway/download.d.ts +2 -0
  431. package/dist/gateway/download.d.ts.map +1 -0
  432. package/dist/gateway/download.js +36 -0
  433. package/dist/gateway/download.js.map +1 -0
  434. package/dist/gateway/index.d.ts.map +1 -1
  435. package/dist/gateway/index.js +106 -47
  436. package/dist/gateway/index.js.map +1 -1
  437. package/dist/gateway/mobile-commands.d.ts +24 -0
  438. package/dist/gateway/mobile-commands.d.ts.map +1 -0
  439. package/dist/gateway/mobile-commands.js +423 -0
  440. package/dist/gateway/mobile-commands.js.map +1 -0
  441. package/dist/gateway/presenter.d.ts +27 -0
  442. package/dist/gateway/presenter.d.ts.map +1 -0
  443. package/dist/gateway/presenter.js +308 -0
  444. package/dist/gateway/presenter.js.map +1 -0
  445. package/dist/gateway/router.d.ts +6 -5
  446. package/dist/gateway/router.d.ts.map +1 -1
  447. package/dist/gateway/router.js +126 -43
  448. package/dist/gateway/router.js.map +1 -1
  449. package/dist/gateway/service.d.ts +46 -0
  450. package/dist/gateway/service.d.ts.map +1 -0
  451. package/dist/gateway/service.js +404 -0
  452. package/dist/gateway/service.js.map +1 -0
  453. package/dist/gateway/setup.d.ts +9 -0
  454. package/dist/gateway/setup.d.ts.map +1 -0
  455. package/dist/gateway/setup.js +202 -0
  456. package/dist/gateway/setup.js.map +1 -0
  457. package/dist/gateway/stream.d.ts +6 -5
  458. package/dist/gateway/stream.d.ts.map +1 -1
  459. package/dist/gateway/stream.js +24 -11
  460. package/dist/gateway/stream.js.map +1 -1
  461. package/dist/gateway/types.d.ts +4 -2
  462. package/dist/gateway/types.d.ts.map +1 -1
  463. package/dist/gateway/types.js.map +1 -1
  464. package/dist/index.d.ts +2 -0
  465. package/dist/index.d.ts.map +1 -1
  466. package/dist/index.js +2 -0
  467. package/dist/index.js.map +1 -1
  468. package/dist/main.d.ts.map +1 -1
  469. package/dist/main.js +3 -3
  470. package/dist/main.js.map +1 -1
  471. package/dist/modes/interactive/components/assistant-message.d.ts +19 -2
  472. package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
  473. package/dist/modes/interactive/components/assistant-message.js +90 -35
  474. package/dist/modes/interactive/components/assistant-message.js.map +1 -1
  475. package/dist/modes/interactive/components/copyable-text.d.ts +27 -0
  476. package/dist/modes/interactive/components/copyable-text.d.ts.map +1 -0
  477. package/dist/modes/interactive/components/copyable-text.js +156 -0
  478. package/dist/modes/interactive/components/copyable-text.js.map +1 -0
  479. package/dist/modes/interactive/components/custom-entry.d.ts +1 -0
  480. package/dist/modes/interactive/components/custom-entry.d.ts.map +1 -1
  481. package/dist/modes/interactive/components/custom-entry.js +8 -0
  482. package/dist/modes/interactive/components/custom-entry.js.map +1 -1
  483. package/dist/modes/interactive/components/custom-message.d.ts +1 -0
  484. package/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
  485. package/dist/modes/interactive/components/custom-message.js +8 -0
  486. package/dist/modes/interactive/components/custom-message.js.map +1 -1
  487. package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
  488. package/dist/modes/interactive/components/session-selector.js +16 -0
  489. package/dist/modes/interactive/components/session-selector.js.map +1 -1
  490. package/dist/modes/interactive/components/settings-selector.d.ts +16 -1
  491. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  492. package/dist/modes/interactive/components/settings-selector.js +147 -4
  493. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  494. package/dist/modes/interactive/components/thinking-tail.d.ts +9 -2
  495. package/dist/modes/interactive/components/thinking-tail.d.ts.map +1 -1
  496. package/dist/modes/interactive/components/thinking-tail.js +43 -1
  497. package/dist/modes/interactive/components/thinking-tail.js.map +1 -1
  498. package/dist/modes/interactive/components/tool-execution.d.ts +5 -3
  499. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  500. package/dist/modes/interactive/components/tool-execution.js +55 -44
  501. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  502. package/dist/modes/interactive/extension-widget-order.d.ts +8 -0
  503. package/dist/modes/interactive/extension-widget-order.d.ts.map +1 -0
  504. package/dist/modes/interactive/extension-widget-order.js +37 -0
  505. package/dist/modes/interactive/extension-widget-order.js.map +1 -0
  506. package/dist/modes/interactive/interactive-mode.d.ts +11 -2
  507. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  508. package/dist/modes/interactive/interactive-mode.js +386 -155
  509. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  510. package/dist/modes/interactive/theme/theme.d.ts +1 -0
  511. package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  512. package/dist/modes/interactive/theme/theme.js +23 -0
  513. package/dist/modes/interactive/theme/theme.js.map +1 -1
  514. package/dist/node-runtime/agent-session-services-MQUPZSIN.js +51 -0
  515. package/dist/node-runtime/{builtin-extensions-7STLFW3A.js → builtin-extensions-4GNDR6U3.js} +8 -6
  516. package/dist/node-runtime/{chunk-LTXUQJI4.js → chunk-24C5IAJ4.js} +1 -6
  517. package/dist/node-runtime/chunk-2BLXLDJR.js +144 -0
  518. package/dist/node-runtime/{chunk-RQ5DNUNG.js → chunk-2CMV4L24.js} +21 -124
  519. package/dist/node-runtime/{chunk-OTT6JMPU.js → chunk-2MI5OPMN.js} +17 -370
  520. package/dist/node-runtime/{chunk-W3CVH5RX.js → chunk-2TKODGBZ.js} +11 -6
  521. package/dist/node-runtime/{chunk-K72NVGUB.js → chunk-33SIKK3Y.js} +38 -164
  522. package/dist/node-runtime/{chunk-GZQHMEWL.js → chunk-3DKIWPKN.js} +19 -4
  523. package/dist/node-runtime/{chunk-5OLJGVCB.js → chunk-3ONQTOMR.js} +2 -2
  524. package/dist/node-runtime/{chunk-3GHXVUAK.js → chunk-3VEY2IYY.js} +1 -1
  525. package/dist/node-runtime/chunk-4ER2ZV4Z.js +537 -0
  526. package/dist/node-runtime/chunk-4EULYYR4.js +62 -0
  527. package/dist/node-runtime/{chunk-BKAZ6BKX.js → chunk-4SBQAI4T.js} +31 -31
  528. package/dist/node-runtime/{chunk-W7S2REEG.js → chunk-53ARRUHA.js} +785 -285
  529. package/dist/node-runtime/{chunk-ZSEZY3II.js → chunk-5Q4A37RB.js} +10 -4
  530. package/dist/node-runtime/{chunk-SWSN6HAB.js → chunk-5UZOPGE3.js} +1 -1
  531. package/dist/node-runtime/{chunk-LCACDWHJ.js → chunk-5Z5PCXGY.js} +263 -222
  532. package/dist/node-runtime/chunk-5ZH3ZFIZ.js +308 -0
  533. package/dist/node-runtime/chunk-7JIYPIQU.js +356 -0
  534. package/dist/node-runtime/{chunk-ZRDIMBEQ.js → chunk-AJ6R5VTV.js} +66 -91
  535. package/dist/node-runtime/chunk-ATIF3RX5.js +352 -0
  536. package/dist/node-runtime/chunk-BBUVIEZB.js +51 -0
  537. package/dist/node-runtime/chunk-CCCN2UCX.js +14 -0
  538. package/dist/node-runtime/chunk-CJS4KQFI.js +3412 -0
  539. package/dist/node-runtime/chunk-DO6PALE2.js +205 -0
  540. package/dist/node-runtime/{chunk-MUMMMTW4.js → chunk-DRJI7ZSC.js} +572 -401
  541. package/dist/node-runtime/{chunk-6SPPH4FY.js → chunk-E75WFZ33.js} +4 -4
  542. package/dist/node-runtime/{chunk-MJQDX3BA.js → chunk-EBB4BJW4.js} +3 -3
  543. package/dist/node-runtime/{chunk-5NWQCSKR.js → chunk-EOEAQIJV.js} +70 -3
  544. package/dist/node-runtime/chunk-EOPL2HMM.js +117 -0
  545. package/dist/node-runtime/chunk-H4K3JDRB.js +47 -0
  546. package/dist/node-runtime/{chunk-HRS4HMDX.js → chunk-HT2XEJNP.js} +19 -3
  547. package/dist/node-runtime/chunk-IMLCWLPI.js +9 -0
  548. package/dist/node-runtime/{chunk-FLYMHKCS.js → chunk-JJWZB7S3.js} +60 -48
  549. package/dist/node-runtime/chunk-KFFOQR4G.js +672 -0
  550. package/dist/node-runtime/chunk-L5LZUGT7.js +40 -0
  551. package/dist/node-runtime/chunk-LV6CEFW2.js +97 -0
  552. package/dist/node-runtime/{chunk-EHMBW7FA.js → chunk-LWYIVUGV.js} +5 -4
  553. package/dist/node-runtime/{chunk-T5GM5BFH.js → chunk-MFV2LOOX.js} +186 -2194
  554. package/dist/node-runtime/{chunk-5SQDLSZJ.js → chunk-MNRO3UCV.js} +2 -2
  555. package/dist/node-runtime/{chunk-JHYKXIMM.js → chunk-MPKSOJBT.js} +1 -1
  556. package/dist/node-runtime/{chunk-C4O2RSQQ.js → chunk-N4TUWAGA.js} +1 -1
  557. package/dist/node-runtime/{chunk-4SJWFTUP.js → chunk-NAY6UUQZ.js} +1 -1
  558. package/dist/node-runtime/chunk-NKH2QBKF.js +773 -0
  559. package/dist/node-runtime/chunk-O2AT4MEU.js +124 -0
  560. package/dist/node-runtime/chunk-OAR4TYZE.js +146 -0
  561. package/dist/node-runtime/{chunk-DDGMHUOW.js → chunk-OGJN3OZV.js} +2 -1
  562. package/dist/node-runtime/{chunk-MX3GJNXJ.js → chunk-PLGA743X.js} +23 -0
  563. package/dist/node-runtime/chunk-Q3FEOEDA.js +1364 -0
  564. package/dist/node-runtime/chunk-QFADHUQV.js +74 -0
  565. package/dist/node-runtime/chunk-RBZQU6TJ.js +27 -0
  566. package/dist/node-runtime/{chunk-MGSB2C3M.js → chunk-RVOQBXTA.js} +10 -6
  567. package/dist/node-runtime/{chunk-ISQDQIZN.js → chunk-RW4PYFNE.js} +14 -94
  568. package/dist/node-runtime/chunk-TP7K7YWS.js +2830 -0
  569. package/dist/node-runtime/{chunk-TAP7QTUT.js → chunk-TVLBDVTR.js} +46 -436
  570. package/dist/node-runtime/chunk-UAEOTO52.js +119 -0
  571. package/dist/node-runtime/{chunk-MGWCVY6Y.js → chunk-UDKX3PFN.js} +3 -3
  572. package/dist/node-runtime/{chunk-AY6CAJSL.js → chunk-UJOCPOMX.js} +6 -3
  573. package/dist/node-runtime/{chunk-J7QGQD45.js → chunk-UQUCFAJ3.js} +1 -1
  574. package/dist/node-runtime/chunk-US544NN6.js +13 -0
  575. package/dist/node-runtime/{chunk-7AFOFSDY.js → chunk-V3HK3FE7.js} +1 -1
  576. package/dist/node-runtime/{chunk-6UB6NKA3.js → chunk-VIVYOI7C.js} +130 -27
  577. package/dist/node-runtime/{chunk-5Q45AVQG.js → chunk-XHIRAZ26.js} +1 -1
  578. package/dist/node-runtime/chunk-YPHAIRZT.js +10 -0
  579. package/dist/node-runtime/{chunk-3RCWXWAY.js → chunk-YRUY57IN.js} +1 -1
  580. package/dist/node-runtime/cli-runtime.js +2 -2
  581. package/dist/node-runtime/command-PYBNGLPP.js +45 -0
  582. package/dist/node-runtime/{commands-LGR5VT5X.js → commands-EMBQQVVT.js} +13 -13
  583. package/dist/node-runtime/commands-Y2OUC2T7.js +37 -0
  584. package/dist/node-runtime/config-7DYMNJUO.js +20 -0
  585. package/dist/node-runtime/{customize-XEXL2DGQ.js → customize-VFJV3U6A.js} +2 -1
  586. package/dist/node-runtime/{direct-tool-executor-TDJS7TBD.js → direct-tool-executor-4D7UXYU4.js} +10 -10
  587. package/dist/node-runtime/{export-html-E4DT6ZJQ.js → export-html-ETFOKW3M.js} +4 -3
  588. package/dist/node-runtime/{extension-input-RV5N6APL.js → extension-input-7QODTFAS.js} +4 -4
  589. package/dist/node-runtime/{extension-selector-CPD5LWDD.js → extension-selector-T65JEDJ5.js} +4 -4
  590. package/dist/node-runtime/{extract-IUCVZCWC.js → extract-EQJE7FZZ.js} +2 -2
  591. package/dist/node-runtime/gateway-QENRQA5X.js +1476 -0
  592. package/dist/node-runtime/{gemini-search-NCIDF7NE.js → gemini-search-35OCRFLN.js} +1 -1
  593. package/dist/node-runtime/{gemini-url-context-OKIN7AIP.js → gemini-url-context-UQY3PHHW.js} +2 -2
  594. package/dist/node-runtime/index.js +120 -77
  595. package/dist/node-runtime/{init-EKE277AG.js → init-P5AUV77I.js} +5 -5
  596. package/dist/node-runtime/{install-cli-TH7IJJQQ.js → install-cli-KHAXYBOO.js} +21 -82
  597. package/dist/node-runtime/interactive-mode-IN77GQGX.js +74 -0
  598. package/dist/node-runtime/{interactive-view-N6F4KUIT.js → interactive-view-OMWDFGUQ.js} +10 -10
  599. package/dist/node-runtime/lunr-browser-VVPRWC3F.js +174 -0
  600. package/dist/node-runtime/lunr-computer-use-IAUNXSXH.js +138 -0
  601. package/dist/node-runtime/{lunr-cron-KKBOGAEF.js → lunr-cron-P6ZJGVEF.js} +22 -8
  602. package/dist/node-runtime/main.js +50 -35
  603. package/dist/node-runtime/{mcp-auth-flow-YL6RWPYG.js → mcp-auth-flow-QVLFVLEO.js} +2 -2
  604. package/dist/node-runtime/{memory-cap-3S4XRLNP.js → memory-cap-EL3KL4JJ.js} +2 -1
  605. package/dist/node-runtime/mobile-commands-WKFSFACZ.js +33 -0
  606. package/dist/node-runtime/model-runtime-YXGJS5OJ.js +16 -0
  607. package/dist/node-runtime/{model-tiers-NJLHUEGK.js → model-tiers-OU3U5CZG.js} +2 -1
  608. package/dist/node-runtime/{package-manager-cli-C4EJOO5Q.js → package-manager-cli-J337RKTI.js} +28 -19
  609. package/dist/node-runtime/{pi-intercom-EEMBGQID.js → pi-intercom-QM53RLTS.js} +114 -88
  610. package/dist/node-runtime/{pi-mcp-adapter-DPTJGAAL.js → pi-mcp-adapter-3PHF4KZ4.js} +9 -8
  611. package/dist/node-runtime/{pi-subagents-VKCLYIBY.js → pi-subagents-RCHPB6UK.js} +1476 -646
  612. package/dist/node-runtime/{pi-web-access-BV6DSZOP.js → pi-web-access-PNG35XW7.js} +11 -11
  613. package/dist/node-runtime/process-registry-PVJ44F7H.js +31 -0
  614. package/dist/node-runtime/{proxy-modes-R64LU6WZ.js → proxy-modes-5FAPSZEZ.js} +14 -14
  615. package/dist/node-runtime/rpc-entry.js +50 -35
  616. package/dist/node-runtime/{rpc-mode-SJNSOA4G.js → rpc-mode-SH7VB4RH.js} +2 -2
  617. package/dist/node-runtime/runtime-4VA6JKNF.js +373 -0
  618. package/dist/node-runtime/runtime-bridges-3CQHWVVY.js +21 -0
  619. package/dist/node-runtime/service-HGGU3STY.js +36 -0
  620. package/dist/node-runtime/session-handoff-IAFIK7QP.js +33 -0
  621. package/dist/node-runtime/{session-manager-QEMZBMTM.js → session-manager-TCEFDKBL.js} +2 -1
  622. package/dist/node-runtime/{session-selector-URVJLOTK.js → session-selector-HG5J4BDZ.js} +5 -4
  623. package/dist/node-runtime/{settings-manager-K6IPIQTI.js → settings-manager-HIBIUNBK.js} +13 -5
  624. package/dist/node-runtime/setup-JBKOLJ6F.js +18 -0
  625. package/dist/node-runtime/setup-YU5LKRL3.js +215 -0
  626. package/dist/node-runtime/{subagent-executor-EFLTO32A.js → subagent-executor-2BH76MMS.js} +242 -314
  627. package/dist/node-runtime/theme-WTJWZSGD.js +68 -0
  628. package/dist/node-runtime/trust-manager-6ZQANSBX.js +17 -0
  629. package/dist/node-runtime/{update-cli-I6OVDRPL.js → update-cli-TVTPVUNM.js} +7 -3
  630. package/dist/node-runtime/usage-service-LFB2SWYV.js +37 -0
  631. package/dist/node-runtime/{video-extract-ETA5RA7U.js → video-extract-OOZHR7SU.js} +2 -2
  632. package/dist/node-runtime/workflow-TVJNKKQP.js +509 -0
  633. package/dist/node-runtime/{youtube-extract-SRVGNN26.js → youtube-extract-FNPAUNHU.js} +6 -6
  634. package/dist/startup/interactive-view.d.ts.map +1 -1
  635. package/dist/startup/interactive-view.js +5 -1
  636. package/dist/startup/interactive-view.js.map +1 -1
  637. package/dist/utils/image-resize-core.d.ts +2 -0
  638. package/dist/utils/image-resize-core.d.ts.map +1 -1
  639. package/dist/utils/image-resize-core.js +10 -0
  640. package/dist/utils/image-resize-core.js.map +1 -1
  641. package/docs/browser.md +86 -0
  642. package/docs/computer-use.md +319 -268
  643. package/docs/extensions.md +2 -0
  644. package/docs/features.md +129 -30
  645. package/docs/index.md +1 -1
  646. package/docs/interactive-startup.md +2 -1
  647. package/docs/keybindings.md +4 -2
  648. package/docs/providers.md +6 -2
  649. package/docs/quickstart.md +2 -2
  650. package/docs/sessions.md +10 -0
  651. package/docs/settings.md +6 -3
  652. package/docs/tui.md +2 -0
  653. package/docs/usage.md +20 -4
  654. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  655. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  656. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  657. package/examples/extensions/gondolin/package-lock.json +2 -2
  658. package/examples/extensions/gondolin/package.json +1 -1
  659. package/examples/extensions/plan-mode/README.md +1 -1
  660. package/examples/extensions/sandbox/package-lock.json +2 -2
  661. package/examples/extensions/sandbox/package.json +1 -1
  662. package/examples/extensions/with-deps/package-lock.json +2 -2
  663. package/examples/extensions/with-deps/package.json +1 -1
  664. package/install-lock/package-lock.json +39 -25
  665. package/install-lock/package.json +2 -2
  666. package/npm-shrinkwrap.json +36 -22
  667. package/package.json +10 -7
  668. package/scripts/install-browser.mjs +20 -0
  669. package/dist/builtin-extensions/lunr-settings-tools.d.ts +0 -4
  670. package/dist/builtin-extensions/lunr-settings-tools.d.ts.map +0 -1
  671. package/dist/builtin-extensions/lunr-settings-tools.js +0 -120
  672. package/dist/builtin-extensions/lunr-settings-tools.js.map +0 -1
  673. package/dist/core/settings-tools-bridge.d.ts +0 -35
  674. package/dist/core/settings-tools-bridge.d.ts.map +0 -1
  675. package/dist/core/settings-tools-bridge.js +0 -56
  676. package/dist/core/settings-tools-bridge.js.map +0 -1
  677. package/dist/node-runtime/agent-session-services-RSGP5GDN.js +0 -39
  678. package/dist/node-runtime/chunk-EH2LJQPM.js +0 -64
  679. package/dist/node-runtime/chunk-HQCKFM2O.js +0 -56
  680. package/dist/node-runtime/chunk-JT6YCS5B.js +0 -5648
  681. package/dist/node-runtime/command-6UXQ6XZN.js +0 -13
  682. package/dist/node-runtime/gateway-3OLC4GQN.js +0 -2139
  683. package/dist/node-runtime/image-resize-6ZPBFMWW.js +0 -11
  684. package/dist/node-runtime/interactive-mode-S5M26CQ7.js +0 -59
  685. package/dist/node-runtime/lunr-computer-use-4X3KUNF4.js +0 -206
  686. package/dist/node-runtime/runtime-bridges-UJ5WJJLN.js +0 -14
  687. package/dist/node-runtime/workflow-SA34S4VX.js +0 -325
  688. package/dist/node-runtime/{chunk-U6C7VTR5.js → chunk-7IQGBKBJ.js} +3 -3
  689. package/dist/node-runtime/{mcp-panel-IIGMXQGP.js → mcp-panel-KTTFXJZ4.js} +3 -3
  690. package/dist/node-runtime/{src-GPFAU3N6.js → src-IVPNZ2BX.js} +6 -6
@@ -2737,6 +2737,8 @@ See [tui.md](tui.md) Pattern 7 for a complete example with mode indicator.
2737
2737
 
2738
2738
  ### Message and Entry Rendering
2739
2739
 
2740
+ Clicking a custom message or entry toggles the renderer's `expanded` option. Child components that handle a click themselves take priority. Expansion survives theme invalidation; new or restored cards use the current tool-expansion setting.
2741
+
2740
2742
  Register a custom renderer for messages with your `customType`. Use message renderers for content that should participate in LLM context:
2741
2743
 
2742
2744
  ```typescript
package/docs/features.md CHANGED
@@ -1,33 +1,76 @@
1
1
  # Built-in features
2
2
 
3
- lunR ships these workflows as baked-in extensions. You do not need a third-party package for MCP, subagents, plan mode, or todos.
3
+ lunR ships these workflows as baked-in extensions. You do not need a third-party package for MCP, subagents, planning, or todos.
4
4
 
5
5
  Sample code under `examples/extensions/plan-mode`, `examples/extensions/todo.ts`, and `examples/extensions/subagent/` is **Extension API sample code**, not the product implementation.
6
6
 
7
- ## Permissions and plan mode
7
+ ## Permissions and planning
8
8
 
9
- Permission modes: `manual | yolo | plan | auto`. Shift+Tab (`app.mode.cycle`) cycles that order. Ctrl+T (`app.thinking.cycle`) cycles thinking levels for the selected model.
9
+ Permission modes: `yolo | auto | read-only`. Shift+Tab cycles in that order. The TUI labels read-only as `read` in its footer and settings. Ctrl+T cycles thinking levels.
10
10
 
11
- - **manual** — approve every tool
12
- - **yolo** — auto-approve ordinary tools; large subagent launches still request confirmation
13
- - **plan** — read-oriented planning; the model calls `present_plan` with a summary; you approve or decline in a dock
14
- - **auto** — fully autonomous
11
+ - **yolo** auto-approves tools but still confirms large subagent launches. This is the default.
12
+ - **auto** runs without questions or large-launch confirmation.
13
+ - **read-only** permits investigation but blocks writes, full-access child launches, MCP tool calls, and unknown extension actions. MCP search and tool descriptions remain available. The shell command check is heuristic, not an OS sandbox.
15
14
 
16
- `/plan` enters plan mode. `/plan <task>` enters plan mode and sends the task. If you are already in plan, `/plan <task>` restores the previous mode and sends. Default startup mode is `defaultPermissionMode` in settings (`manual`).
17
-
18
- `present_plan` is only available in plan mode. After approval, interactive lunR leaves plan mode before the tool result resolves.
15
+ Use `/read` or `/mode read` to inspect without changing files. `/plan` switches to read-only mode, and `/plan <task>` asks for a plan in that mode. If already read-only, `/plan <task>` stays read-only. Use `/plan off` to leave read-only mode. `present_plan` is available in read-only mode when a plan is needed. Approving a plan restores the previous mode before the tool result resolves, or enters yolo if no writable previous mode exists. Existing saved defaults migrate `manual` to `yolo` and `plan` to `read-only`.
19
16
 
20
17
  ## Subagents
21
18
 
19
+ `/settings` has two independent switches, both on by default. Automatic subagent delegation controls the built-in system prompt: off tells the agent to work directly and launch children only when you explicitly ask. Tier selection and other launch instructions remain available when you do ask. Custom system prompts and project instruction files are unchanged.
20
+
21
+ Subagent communication controls messages between a child and its parent while work is in progress. Off removes child `contact_supervisor` and `intercom`, parent questions and live steering for new children. Final results, status, cancellation, and `subagent_wait` still work. New launches and resumed children use the selected mode for their whole run, including queued steps. Turning it off blocks new parent questions and live steering immediately; already-running children retain their tools, and pending requests can still receive replies. The setting does not disable intercom between unrelated lunR sessions.
22
+
22
23
  Advertised subagents always start **fresh** (no forked parent context). Default parallel concurrency / max tasks / global run cap are unlimited; an explicit `concurrency` is still honored.
23
24
 
24
- A launch of 3+ parallel children in one `tasks`/`chain.parallel` call, or 3+ same-turn SINGLE `subagent` calls, receives one aggregate confirmation in **manual and yolo**. Sequential work stays `chain`. Auto bypasses this confirmation, and it can be disabled independently in `/settings`.
25
+ Single, parallel, and chain launches run async when `async` is omitted. Set `async:false` for an immediate foreground result or use `clarify:true` for the interactive preview/editor. Continue independent work after an async launch, then yield for normal interactive completion. Use `subagent_wait` only when the same turn or skill must finish after its children. Headless sessions auto-drain current-session work. Use status for one-time inspection rather than polling or sleeping for completion.
26
+
27
+ In the interactive TUI, normal Enter during an executing `subagent_wait` releases only the parent's local wait. It does not stop background children or parallel sibling tools. After the current tool batch fully settles, lunR submits the text as a fresh parent prompt rather than a steering message. Alt+Enter remains a follow-up, and normal Enter outside `subagent_wait` remains steering while the parent works.
28
+
29
+ The legacy extension config keys `asyncByDefault` and `forceTopLevelAsync` remain accepted but no longer change launch mode. Omitted `async` resolves to async, while explicit `async:false`, `clarify:true`, and internal `foregroundOnly` calls stay foreground. RPC and scheduled launches remain always async.
30
+
31
+ Collapsed subagent rows (foreground and async) are one line: status glyph, description, selected tier or explicit model, tokens, and elapsed time. Mixed async runs use the same flat child rows without an aggregate tree. Running rows keep a live spinner and clock; completed collapsed rows freeze those stats. Choose the running child spinner under `/settings` → Customize. Async launches show `subagent async` in the tool header. Completed notify cards show title and status only; the model still receives the full result text.
32
+
33
+ A launch of 3+ parallel children in one `tasks`/`chain.parallel` call, or 3+ same-turn SINGLE `subagent` calls, receives one aggregate confirmation in **yolo**. Sequential work stays `chain`. Auto bypasses this confirmation, and it can be disabled independently in `/settings`.
25
34
 
26
35
  `/goal` sets a session goal and **forces session auto** permission mode.
27
36
 
37
+ ### Child communication
38
+
39
+ Children own reversible implementation choices within their assigned scope. Define file ownership and required outputs at launch. Establish a shared contract before dependent parallel work, then pass it through chain outputs or an artifact. Native child intercom reaches the supervisor only; it cannot discover or message siblings.
40
+
41
+ `contact_supervisor` separates delivery by purpose:
42
+
43
+ - `progress_update` records a UI-only entry. It never enters parent model context or starts a parent turn. Existing activity indicators usually make an explicit progress call unnecessary.
44
+ - `handoff` delivers actionable dependency findings or corrections without waiting for a reply. State what another task can now do, consolidate related findings, and reference one artifact for supporting detail. Continue independent work.
45
+ - `need_decision` and `interview_request` wait for a supervisor reply. Use them for decisions outside the child's authority, permission or safety concerns, and blockers. Include the blocked decision, evidence, and recommended choice.
46
+
47
+ Blocking requests and handoffs wake an idle parent. Headless waits yield to queued messages so a child can receive a decision before it finishes. Expired requests, stopped runs, and requests owned by another session cannot wake it. Legacy children retain model-facing progress delivery; UI-only progress requires the new protocol advertised by the spawning parent.
48
+
49
+ Inactivity and threshold notices stay in diagnostic entries rather than parent context or intercom relays. Repeated tool failures remain model-facing. Completion-guard diagnostics do not duplicate the normal terminal failure report.
50
+
51
+ Return one self-contained final report with outcomes, verification, blockers, and artifact paths. The runtime delivers it. A final report that only says findings were sent earlier is insufficient.
52
+
53
+ Communication cards are collapsed tool-style rows. Click to show `From` or `To`, the child's description, and the message. Routing IDs stay in structured diagnostics. Outgoing steering also shows its delivery state when expanded; delivery acknowledgement is not a model answer.
54
+
55
+ ### Questions to async children
56
+
57
+ The parent can use `subagent_supervisor` with `action: "ask"` to ask a running async child for information it needs before the final report. The request names the run, selects one child, and includes a `reason` explaining which decision needs the answer.
58
+
59
+ Asking returns a question ID without waiting. The child receives the question at a safe turn boundary, replies from its current findings, and continues its assigned task. Answers arrive separately from the run's final result and wake an idle parent. A delivery receipt is not an answer. Questions do not change the assignment, broadcast to other children, or restart finished children.
60
+
61
+ The parent calls `subagent_supervisor({ action: "ask", id, index, reason, message })`. It must select an `index` or private `childId` when several children are running. The child answers with `contact_supervisor({ action: "reply", replyTo: questionId, message })`. If the parent's next decision must wait, `subagent_wait({ questionId })` returns the answer instead of sending a second notification. Read-only children can reply without receiving editing tools.
62
+
63
+ A child must have an active question-capable input channel. Only one question may be outstanding per child. Questions expire after ten minutes by default, and child termination, failed delivery, process replacement, or parent session replacement cancels pending questions. A wait timeout ends the wait, not the question. Existing blocking child-to-parent requests take priority to avoid mutual waiting.
64
+
65
+ The agent must ask only when the child has missing context, the answer changes a concrete next decision, and waiting for completion would block progress or risk rework. It must use available results first and batch related questions. Routine progress checks, duplicate questions, polling, and step-by-step supervision are prohibited. A follow-up is appropriate only when the answer leaves the original decision unresolved.
66
+
67
+ ### Measuring communication cost
68
+
69
+ Compare the same task, models, thinking levels, and starting checkout before and after a communication change. Count parent wakeups by their triggering event, provider calls in both parent and child sessions, duplicate deliveries, input/output tokens, cache reads/writes, elapsed time, and blocked time. Check task correctness and delivery of required escalations before comparing cost. Cached input is separate from uncached input; fewer messages or a quieter UI alone do not establish savings. Keep transcript evidence local.
70
+
28
71
  ## Todos, memory, and global instructions
29
72
 
30
- - **Todos** — lunr-todos is a full-replace list. Completed todos prune on the next user turn (no leftover `✓ N done` footer).
73
+ - **Todos** — lunr-todos is a full-replace list. `/settings` → Todos disables its system-prompt guidance, model-facing tool, and editor widget. Collapsed lists show all four active items; lists of five or more show three and a `+N more` line. Completed todos prune on the next user turn, so the footer does not leave a `✓ N done` line.
31
74
  - **Agent memory** — durable established facts and stable preferences in `~/.lunr/simple-memory/memory.md`. `/settings` → Agent memory controls injection and the `memory_add`, `memory_remove`, and `memory_load` tools without deleting stored facts. `memoryCharCap` defaults to 5000. Behavior instructions, transient task state, transcripts, guesses, and secrets do not belong in memory.
32
75
  - **Global instructions** — create `~/.lunr/agent/agents/AGENTS.md` yourself when you want global behavior or instructions. lunR injects it through the normal context loader; `/reload` picks up changes. The model cannot modify this user-managed file. The retired `behavior.md` file and behavior presets are no longer loaded.
33
76
  - **Model instructions** — `/settings` can enable `~/.lunr/agent/agents/<model-name>/AGENTS.md` and choose **Both** (global then model-specific) or **Model only**. The folder name is provider-independent and filesystem-safe. Project `AGENTS.md`/`CLAUDE.md` files are unaffected, and `--no-context-files` disables all instruction files.
@@ -42,33 +85,81 @@ Jobs persist in `~/.lunr/agent/cron/` (`jobs.json`). Interactive TUI cron runs i
42
85
 
43
86
  Schedule examples: `every 30m`, `every 2h`, `every 1d`, a duration one-shot (`30m`), an ISO timestamp, or a 5-field cron expression.
44
87
 
45
- ## Gateway (Telegram / Discord)
88
+ ## Gateway for Telegram and Discord
89
+
90
+ Run `lunr gateway setup` in your terminal. Use Up/Down and Enter to choose the platform, saved token and owner options, default project, startup preference, provider, and model. Long lists scroll; Escape cancels. Only a new bot token, user ID, or custom folder path needs typing. Token entry stays hidden. Setup explains bot creation, validates the bot identity, and asks before saving or starting the gateway. Log in to a model provider locally with `/login` first. Setup does not create model-provider accounts.
46
91
 
47
- Enable the chat-platforms feature, then run the daemon:
92
+ Telegram uses BotFather and long polling. Discord needs the bot and `applications.commands` installation scopes. Enable Message Content Intent for ordinary text messages. GuildMembers intent is not required. Discord registers native slash commands; Telegram registers a command menu. Both platforms use buttons for selections and approvals.
93
+
94
+ Your computer must stay awake and online. Startup cannot make a sleeping or disconnected computer available.
95
+
96
+ ### Service controls
48
97
 
49
98
  ```bash
50
- lunr setup
51
- lunr features enable chat-platforms
52
- lunr gateway
99
+ lunr gateway setup
100
+ lunr gateway start
101
+ lunr gateway stop
102
+ lunr gateway restart
103
+ lunr gateway status
104
+ lunr gateway logs
105
+ lunr gateway doctor
106
+ lunr gateway run
107
+ lunr gateway autostart login
108
+ lunr gateway autostart boot
109
+ lunr gateway autostart off
53
110
  ```
54
111
 
55
- Config: `~/.lunr/agent/gateway.json` (chmod 0600; may hold bot tokens). Secrets do not go in `install-features.json`.
112
+ Bare `lunr gateway` also runs in the foreground. The terminal's `/settings` Gateway menu opens setup, service controls, logs, and diagnostics.
113
+
114
+ Login startup runs after you sign in. Boot startup runs before login and may require administrator approval or OS-managed account credentials. Linux uses a systemd user service, with lingering for boot startup. macOS uses a LaunchAgent for login or a LaunchDaemon running as your user for boot. Windows uses Scheduled Tasks; its boot option asks Windows to obtain the account credentials rather than saving the password in lunR. lunR checks the native installation command before recording a successful startup change. Changing or disabling startup removes the previous lunR service, not other applications' services.
115
+
116
+ Encrypted home directories, missing user-service support, network restrictions, and OS permissions can prevent boot startup. Use `status`, `doctor`, and `logs` to check the installed service and bot connections. Service definitions are separate for each lunR profile. Native startup specifications have automated tests; installing and rebooting services on all three operating systems still requires host verification.
117
+
118
+ ### Owner access
56
119
 
57
- Token resolution: `LUNR_<PLATFORM>_BOT_TOKEN` env → `<PLATFORM>_BOT_TOKEN` env → file token.
120
+ Configuration lives in `~/.lunr/agent/gateway.json` and may contain bot tokens. It is written with mode 0600 where supported; Windows security follows the profile directory's ACL. Tokens are not stored in `install-features.json` or startup command arguments. Environment tokens override file tokens in this order: `LUNR_<PLATFORM>_BOT_TOKEN`, then `<PLATFORM>_BOT_TOKEN`.
121
+
122
+ If you skipped your user ID during setup, message the bot privately and approve its pairing code locally:
58
123
 
59
124
  ```bash
60
- lunr gateway # run the daemon
61
- lunr gateway pair approve <platform> <code>
125
+ lunr gateway pair approve telegram <code> --owner
126
+ lunr gateway pair approve discord <code> --owner
62
127
  lunr gateway pair list
63
- lunr gateway status
64
128
  ```
65
129
 
66
- - Telegram: long-poll bot. Talk to @BotFather, put the token in `gateway.json` or `LUNR_TELEGRAM_BOT_TOKEN`, set `telegram.enabled = true`.
67
- - Discord: mention-gated by default (`requireMention: true`). Enable the Message Content intent. No GuildMembers intent. Put the token in `gateway.json` or `LUNR_DISCORD_BOT_TOKEN`.
68
- - Authz is fail-closed. Unauthorized DMs pair (`unauthorizedDmBehavior: "pair"`) unless you set `ignore`.
69
- - Gateway `/new` while a session is busy aborts the live turn and drops the queue.
130
+ Owner access includes local projects and saved TUI conversation history. Ordinary `lunr gateway pair approve <platform> <code>` grants chat access only; add `--owner` locally to grant owner access. Ordinary pairing, group access, and Discord roles do not grant it. Project browsing, cross-project sessions, permission changes, and file downloads require an explicitly configured owner in a private DM. Removing owner access invalidates later owner actions and approvals.
131
+
132
+ ### Projects and mobile controls
133
+
134
+ The owner can send `/start` to check setup before the first task, `/model` to select an authenticated model before a task, and a normal message immediately when setup's default project remains approved. With multiple approved roots and no explicit default, choose `/project` first. A paired non-owner without a project must ask the local owner to configure access; `/project` and `/continue` are owner-only. Use `/project` to browse approved roots, open child folders, go back, select a folder, or create one. `/project <path>` opens the browser at an approved path. The gateway remembers the selected working directory for that conversation. Project instruction files, skills, tools, and trust checks use that directory rather than the daemon's launch directory.
135
+
136
+ **The selected project is a working directory, not a shell sandbox.** Shell commands and tools can access other locations allowed by your OS account. The folder browser and `/download` check their own path boundaries, including symlinks.
137
+
138
+ - `/model`, `/thinking`, `/settings`, and `/mode` control the active session. `/fast` controls Codex fast mode.
139
+ - `/plan <task>` starts planning. The plan appears in chat with approval buttons. Approval returns the session to yolo mode.
140
+ - `/goal`, `/cron`, `/run`, `/chain`, and `/parallel` use the same built-in extensions as the terminal. Pass arguments when an extension's interactive editor requires the terminal.
141
+ - `/skill` selects a loaded skill and asks for a task. `/mcp` and `/lsp` expose their text status commands; the agent retains the configured coding tools.
142
+ - `/usage` reports session tokens and provider-plan usage. `/status` includes the selected project.
143
+ - `/stop` aborts the current turn and pending transfer. `/stopall` also requests cancellation of background subagents and tracked shell processes. `/processes` lists this session's processes; `/processes stop <pid>` requests a stop.
144
+ - `/cancel` cancels a pending selection or transfer. `/new` aborts the current turn and drops queued input, but refuses to discard a session that still has attached background work.
70
145
 
71
- Without runnable adapters (enabled platform + resolvable token), `lunr gateway` prints setup instructions and exits 1.
146
+ Upload images or documents in chat. Images reach the model as images; documents are saved under the project's `.lunr/uploads/` directory and passed to the model as paths. `/download <project-relative path>` sends a file back. Files are limited to 8 MB; common credential filenames are blocked from download. This filename check is not a content-based secret scanner. Only send files you intend to share with the chat platform.
147
+
148
+ Foreground replies, follow-up answers, errors, and extension notices enter a disk-backed outbox before sending. Successfully sent chunks are acknowledged in order; failed sends retry up to five times per destination without blocking other chats. A failed final preview edit falls back to a full reply. Permanently failed deliveries remain in `gateway-outbox.json` with `failed: true` and an error in gateway logs for diagnosis; they do not retry forever. A send can still reach the platform just before the process exits without recording its acknowledgement, so a restart can repeat that chunk. Existing outbox entries without the newer fields remain eligible for delivery. Session changes cancel stale interactive prompts and notices, but finished assistant results still reach their originating chat when authorized. Revoked access prevents delivery. Discord role-only authorization needs a fresh inbound role check after restart before it can authorize new sends; an old stored role assertion cannot authorize outbox replay. Tool approvals, pickers, and text questions do not become model prompts; they expire when the session changes. Terminal-only custom screens report that limitation rather than pretending they accepted a selection.
149
+
150
+ ### Continue between desktop and phone
151
+
152
+ In the terminal, `/handoff` marks the current saved session for eight hours. Repeat it to refresh the mark; `/handoff cancel` removes it. Unsaved sessions must be persisted first.
153
+
154
+ On your phone, `/continue` opens the only marked session, or offers a picker if several are marked. Without an active mark, it selects the latest TUI activity. TUI activation, user prompts, and state-changing user commands count as activity. Background results and file timestamps do not. Closed TUI sessions remain eligible.
155
+
156
+ `/sessions [filter]` browses saved sessions across projects, including locally registered custom session paths. It works before you have sent the bot its first task. Continuation preserves the session file, selected conversation branch, original project directory, and permission checkpoint. Resuming `auto` or `yolo` asks for confirmation on the phone and defaults to read-only if declined.
157
+
158
+ Only one updated lunR process may write a persistent session at a time. A running owner must release it cooperatively. If it is busy, choose Wait, Stop and continue, or Cancel. Wait retries busy requests for up to two minutes. Stop and continue aborts the foreground turn; it does not migrate children or shell processes. Those must finish or actually stop before transfer. Cancellation stops pending acquisition, but cannot undo extension shutdown once release has begun.
159
+
160
+ A detached terminal keeps its draft and can use `/reclaim` to reopen fresh state after the phone releases ownership. It does not append from its old in-memory conversation. Marks remain until expiry or cancellation, even after a successful continuation. Expiry only removes the preference; it neither deletes the conversation nor disconnects it.
161
+
162
+ All concurrent writers must use a lunR version with session ownership support. Old versions and external file editors cannot honor these locks. Recovery only clears an owner after verified local process death. Uncertain, foreign-host, or incomplete ownership records fail closed; inspect them rather than deleting a live lock.
72
163
 
73
164
  ## MCP, LSP, web search
74
165
 
@@ -76,6 +167,14 @@ Without runnable adapters (enabled platform + resolvable token), `lunr gateway`
76
167
  - **LSP** — `/lsp`, `/lsp-restart`, `/lsp-config`. Footer LSP segment is off by default (`footerLsp`). On Windows, npm `.cmd` shims need a real LSP start (`shell: true`); if the server never starts, tools silently fall back to tree-sitter. Check `/lsp` if language features look missing.
77
168
  - **Web search** — `/websearch` (and related search commands). Interactive TUI attaches web-access after first paint; print/RPC/gateway load it before the first turn.
78
169
 
170
+ ## Headless browser
171
+
172
+ The first-party `browser` tool is on by default. Normal installation and updates install matching Chromium automatically. Browser in `/settings` turns the tool off and closes active contexts immediately; cached binaries remain. Offline or ignored-script installs can recover later with `lunr browser install`. Startup and tool execution never install Chromium. The browser handles JavaScript-rendered pages and accessible website interactions, while `web_search` remains discovery and `fetch_content` remains URL reading. There is no automatic browser fallback.
173
+
174
+ The browser uses ephemeral session-owned contexts. Read-only mode blocks interactions. Yolo and auto allow them without per-action approval. Public HTTP(S) is the default; local/private access requires explicit user configuration. Website effects cannot be reversed by `/undo`.
175
+
176
+ See [Headless browser](browser.md) for action parameters, installation exceptions, legacy setting precedence, private-network risks, lifecycle limits, and validation.
177
+
79
178
  ## Thinking, usage, streaming, UI
80
179
 
81
180
  - `/thinking`, `/effort`, and `/reasoning` are full-parity aliases. `/off`, `/minimal`, `/low`, `/medium`, `/high`, `/xhigh`, and `/max` set a level when the current model supports it. `/thinking` completions follow the session model. `xhigh` and `max` are opt-in. `/thinking hide|show|toggle` still hides thinking blocks.
@@ -83,10 +182,10 @@ Without runnable adapters (enabled platform + resolvable token), `lunr gateway`
83
182
  - `/fast [on|off|status]` controls `service_tier: "fast"` for OpenAI Codex subscriptions only. It persists across new sessions, gateway turns, and subagents. Paid `openai` API models do not use it.
84
183
  - Footer plan bar prefers a 5h window and falls back to weekly (`planUsageWindow`). In Customize, Plan usage hides the whole segment while Plan bar hides only the █░ fill and keeps the percent.
85
184
  - Click a ✻ Thought or tool card to expand/collapse that item. `app.tools.expand` is unbound. `/tree` still uses `ctrl+o` for filters.
86
- - Smooth streaming (`smoothStreaming`, default off) is **interactive TUI only** (grapheme reveal at ~30 FPS). Print, RPC, and gateway stay unsmoothed.
185
+ - Smooth streaming (`smoothStreaming`, default off) reveals assistant text and thinking in small character batches at about 30 FPS in the interactive TUI. The thinking preview shows the last four revealed lines. Completed thinking collapses after its reveal catches up. Message completion flushes any remaining text immediately. Print, RPC, and gateway stay unsmoothed.
87
186
  - Image paste inserts `[image_n]` chips. Windows uses **Alt+V**; VS Code must forward it because it owns Ctrl+V and Alt+V. `/paste-image` bypasses terminal shortcuts.
88
- - Model tiers: every child launch selects `light`, `standard`, or `heavy`. Configure authenticated models for those routes in `/settings`; a missing, disabled, unauthenticated, or unavailable route fails closed. Per-tier thinking is optional; unset inherits the parent session.
89
- - Settings tools: `settings_load` is always available to the model. It injects four narrowly scoped tools for model tiers, model instruction subscriptions, rollback behavior, and session retention only after the model requests them.
187
+ - Model selection: every child launch chooses exactly one of `tier: light|standard|heavy` (default) or an explicit `model: provider/id` when the user names a model. Configure tier routes in `/settings`. Optional `thinking` is only valid with an explicit model; tier launches use configured tier thinking. Direct model launches do not require tier mode. Missing, both, inherit, unavailable, or unauthenticated selections fail closed before spawn.
188
+ - Settings changes stay on `/settings`. The agent does not get `settings_load` or other agent-managed settings tools, and direct file-tool writes to lunR `settings.json` are blocked.
90
189
 
91
190
  ## Updates, catalogs, local models
92
191
 
package/docs/index.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # lunR Documentation
2
2
 
3
- lunR is a terminal coding agent derived from pi. It stays small at the core while shipping MCP, subagents, permissions, plan mode, todos, cron, and a Telegram/Discord gateway — and it still extends through TypeScript extensions, skills, prompt templates, themes, and packages.
3
+ lunR is a terminal coding agent derived from pi. It stays small at the core while shipping MCP, subagents, permissions, read-only planning, todos, cron, and a Telegram/Discord gateway — and it still extends through TypeScript extensions, skills, prompt templates, themes, and packages.
4
4
 
5
5
  ## Quick start
6
6
 
@@ -22,6 +22,7 @@ opening the prompt barrier. It does not replace tool schemas with placeholders.
22
22
  The expensive implementations load when needed:
23
23
 
24
24
  - Web tools load providers, extraction, and browser curation separately.
25
+ - The built-in headless browser is enabled by default and can be hidden in `/settings`. Its runtime and Playwright load on first browser use. Installation, not startup, installs Chromium. See [Headless browser](browser.md) for recovery and network limits.
25
26
  - LSP registers its tools before loading clients and Tree-sitter. Configured
26
27
  autostart runs in the background; first use waits for the required services.
27
28
  - MCP registers the proxy and cached direct-tool definitions without loading its
@@ -54,7 +55,7 @@ The check stalls or fails runtime loading and verifies the real frame, editable
54
55
  draft, and terminal cleanup. It also blocks optional implementation imports and
55
56
  checks a complete first request against the baseline tool-payload hash. Separate
56
57
  first-turn fixtures exercise subagent status, MCP status, Tree-sitter parsing,
57
- and local HTTP extraction. The default CI run checks the workspace build on
58
+ and local HTTP extraction. Disabled and enabled headless-browser fixtures verify conditional tool registration while browser runtime imports are stalled. The default CI run checks the workspace build on
58
59
  Ubuntu. Passing a CLI path runs the same checks against a relocated installation,
59
60
  but CI does not currently pack that installation or run this check on Windows.
60
61
 
@@ -82,13 +82,15 @@ Modifier combinations: `ctrl+shift+x`, `alt+ctrl+x`, `ctrl+shift+alt+x`, `ctrl+1
82
82
 
83
83
  | Keybinding id | Default | Description |
84
84
  |--------|---------|-------------|
85
- | `app.interrupt` | `escape` | Cancel / abort |
85
+ | `app.interrupt` | `escape` | Abort the parent; press twice within 500ms to also stop this session's active async subagents |
86
86
  | `app.clear` | `ctrl+c` | Clear editor |
87
87
  | `app.exit` | `ctrl+d` | Exit (when editor empty) |
88
88
  | `app.suspend` | `ctrl+z` (none on Windows) | Suspend to background |
89
89
  | `app.editor.external` | `ctrl+g` | Open in external editor (`externalEditor`, `$VISUAL`, `$EDITOR`, Notepad on Windows, or `nano` elsewhere) |
90
90
  | `app.clipboard.pasteImage` | `ctrl+v` (`alt+v` on Windows) | Paste image from clipboard; `/paste-image` needs no shortcut |
91
91
 
92
+ While async subagents are active, the second Escape takes priority over tree/fork navigation, even with a draft in the editor. The first Escape leaves async work running. The second requests a stop through the normal subagent control channel and waits for the runner to report its final state. Other sessions and future scheduled jobs are unaffected. Without active async work, idle double-Escape keeps the configured tree/fork behaviour.
93
+
92
94
  ### Sessions
93
95
 
94
96
  | Keybinding id | Default | Description |
@@ -111,7 +113,7 @@ Modifier combinations: `ctrl+shift+x`, `alt+ctrl+x`, `ctrl+shift+alt+x`, `ctrl+1
111
113
  | `app.model.select` | `ctrl+l` | Open model selector |
112
114
  | `app.model.cycleForward` | `ctrl+p` | Cycle to next model |
113
115
  | `app.model.cycleBackward` | `shift+ctrl+p` | Cycle to previous model |
114
- | `app.mode.cycle` | `shift+tab` | Cycle permission mode (`manual` → `yolo` → `plan` → `auto`) |
116
+ | `app.mode.cycle` | `shift+tab` | Cycle permission mode (`yolo` → `auto` → `read`) |
115
117
  | `app.thinking.cycle` | `ctrl+t` | Cycle thinking level for the selected model |
116
118
  | `app.thinking.toggle` | *(unbound)* | Collapse or expand thinking blocks (`/thinking hide`, `show`, or `toggle`) |
117
119
 
package/docs/providers.md CHANGED
@@ -21,7 +21,7 @@ Use `/login` in interactive mode, then select a provider:
21
21
  - xAI (Grok/X subscription)
22
22
  - Radius
23
23
 
24
- Use `/logout` to clear credentials. Tokens are stored in `~/.lunr/agent/auth.json` and auto-refresh when expired.
24
+ Use `/logout` to remove the lunR connection. Most subscription providers store refreshable tokens in `~/.lunr/agent/auth.json`. Anthropic uses a non-secret Claude Code connection record instead.
25
25
 
26
26
  ### OpenAI Codex
27
27
 
@@ -30,7 +30,11 @@ Use `/logout` to clear credentials. Tokens are stored in `~/.lunr/agent/auth.jso
30
30
 
31
31
  ### Claude Pro/Max
32
32
 
33
- Anthropic subscription auth is active for Claude Pro/Max accounts. Third-party harness usage draws from [extra usage](https://claude.ai/settings/usage) and is billed per token, not against Claude plan limits.
33
+ `/login anthropic` offers a Claude Code subscription connection. It checks for Python 3.10+ and Claude Code only after you select that option. If either is missing, setup asks before running an installer. You can also install them yourself from [Python](https://www.python.org/downloads/) and [Claude Code](https://code.claude.com/docs/en/setup), then retry. If logged out, confirm the terminal handoff to `claude auth login` and select a Claude subscription. The current bridge accepts Claude Code 2.1.263 only. Other versions fail closed until qualified.
34
+
35
+ Claude Code owns your account session. lunR does not read its credentials or copy tokens into `auth.json`. Each lunR generation starts a separate Claude Code process with native tools disabled; lunR still runs its own tools and manages history. `/logout anthropic` removes only lunR's connection and cached provider models, not your Claude Code login or installed software. Existing lunR Anthropic OAuth tokens and `ANTHROPIC_OAUTH_TOKEN` require reconnecting; they cannot make direct Messages API requests. Genuine `ANTHROPIC_API_KEY` values continue using the Messages API. No subscription route falls back to direct OAuth.
36
+
37
+ The displayed token cost is an estimated API list-price equivalent, not a subscription bill or a remaining-plan meter. Model routes are checked during setup using Claude Code's model picker. This work has not yet been qualified against a live account on every supported platform; do not assume cross-model signed-history replay or an arbitrary CLI version works.
34
38
 
35
39
  ### GitHub Copilot
36
40
 
@@ -105,7 +105,7 @@ By default, lunR gives the model four tools:
105
105
 
106
106
  Additional built-in read-only tools (`grep`, `find`, `ls`) exist but start off. lunR runs in your current working directory and can modify files there. Use git or `/rollback` if you want easy undo.
107
107
 
108
- Permission modes are `manual | yolo | plan | auto`. Shift+Tab cycles that order. In plan mode the model uses `present_plan` for approval.
108
+ Permission modes are `yolo | auto | read-only`. Shift+Tab cycles that order. The TUI displays read-only as `read`; `/plan` enters read-only mode and `present_plan` is available there for approval.
109
109
 
110
110
  ## Give lunR project instructions
111
111
 
@@ -152,7 +152,7 @@ The command output is sent to the model. Use `!!command` to run a command withou
152
152
 
153
153
  ### Switch models
154
154
 
155
- Use `/model` or Ctrl+L to choose a model. Use Shift+Tab to cycle permission mode (manual → yolo → plan → auto). Use `/thinking`, `/effort`, `/reasoning`, or `/settings` to change thinking level. `xhigh` and `max` are opt-in when the model supports them. Use Ctrl+P / Shift+Ctrl+P to cycle through scoped models. Catalog refresh is `/refresh`, not `lunr update`.
155
+ Use `/model` or Ctrl+L to choose a model. Use Shift+Tab to cycle permission mode (yolo → auto → read). Use `/thinking`, `/effort`, `/reasoning`, or `/settings` to change thinking level. `xhigh` and `max` are opt-in when the model supports them. Use Ctrl+P / Shift+Ctrl+P to cycle through scoped models. Catalog refresh is `/refresh`, not `lunr update`.
156
156
 
157
157
  ### Continue later
158
158
 
package/docs/sessions.md CHANGED
@@ -25,6 +25,8 @@ For the JSONL file format and SessionManager API, see [Session Format](session-f
25
25
  | Command | Description |
26
26
  |---------|-------------|
27
27
  | `/resume` | Browse and select previous sessions |
28
+ | `/handoff [cancel]` | Mark this saved TUI session for phone continuation, or remove the mark |
29
+ | `/reclaim` | Reopen fresh state after a phone-owned session releases control |
28
30
  | `/new` | Start a new session |
29
31
  | `/name <name>` | Set the current session display name |
30
32
  | `/session` | Show session info |
@@ -35,6 +37,14 @@ For the JSONL file format and SessionManager API, see [Session Format](session-f
35
37
  | `/export [file]` | Export session to HTML |
36
38
  | `/share` | Upload as private GitHub gist with shareable HTML link |
37
39
 
40
+ ## Session ownership
41
+
42
+ Persistent sessions allow one writer at a time across the TUI, gateway, SDK, print, and RPC modes. Browsing and export use read-only snapshots. SDK callers that only inspect a saved file should use `SessionManager.openReadOnly(path)`. Mutable managers and sessions must be disposed before another writer opens the same file.
43
+
44
+ The active branch and permission mode survive reopening. Transfers release the current runtime and create a fresh one; they do not move live child agents or shell processes. A heartbeat timeout alone never permits taking ownership from another process. All simultaneous lunR writers must use a version with ownership support.
45
+
46
+ For marking a desktop session, choosing it on Telegram or Discord, and handling busy transfers, see [Continue between desktop and phone](features.md#continue-between-desktop-and-phone).
47
+
38
48
  ## Resuming and Deleting Sessions
39
49
 
40
50
  `/resume` opens an interactive session picker for the current project. `pi -r` opens the same picker at startup.
package/docs/settings.md CHANGED
@@ -55,20 +55,23 @@ Use `/trust` in interactive mode to save a project trust decision for future ses
55
55
  | `externalEditor` | string | `$VISUAL`, then `$EDITOR`, then Notepad on Windows or `nano` elsewhere | Command for Ctrl+G external editor; takes precedence over environment variables |
56
56
  | `quietStartup` | boolean | `false` | Hide startup header |
57
57
  | `smoothStreaming` | boolean | `false` | Reveal streamed responses grapheme by grapheme (~30 FPS). Interactive TUI only |
58
+ | `subagentSpinner` | string | `"braille"` | Foreground and async running child indicator: `"braille"`, `"orbit"`, `"snake"`, or `"sparkle"` |
58
59
  | `thinkingCollapse` | boolean | `true` | Collapse completed thinking blocks to a short label plus the first sentence |
60
+ | `reasoningDisplay` | string | `"auto"` | Streaming reasoning layout. `"auto"` uses one line for OpenAI Codex and four lines for other providers. `"one-line"` and `"four-lines"` override it. One line has a blank row above and below and a soft moving highlight. Interactive TUI only |
59
61
  | `cacheRetention` | string | unset → `PI_CACHE_RETENTION` → `"short"` | `"none"`, `"short"`, or `"long"` prompt-cache retention |
60
62
  | `defaultProjectTrust` | string | `"ask"` | Fallback project trust behavior: `"ask"`, `"always"`, or `"never"`. Global setting only |
61
- | `defaultPermissionMode` | string | `"manual"` | Startup permission mode: `"manual"`, `"yolo"`, `"plan"`, or `"auto"` |
63
+ | `defaultPermissionMode` | string | `"yolo"` | Startup permission mode: `"yolo"`, `"auto"`, or `"read-only"` (shown as `read` in the TUI). Saved `"manual"` becomes yolo; saved `"plan"` becomes read-only. |
62
64
  | `openaiFastMode` | boolean | `false` | Persist OpenAI Codex subscription Fast mode. Ignored by other providers |
63
65
  | `memoryEnabled` | boolean | `true` | Enable durable-fact injection and the model-facing memory tools. Global-only; disabling preserves the file |
64
66
  | `memoryCharCap` | number | `5000` | Durable-facts memory character cap (1–30000) |
67
+ | `todosEnabled` | boolean | `true` | Enable todo guidance, the `todo` tool, and its editor widget. Global-only |
65
68
  | `sessionRetentionDays` | number | `30` | Delete session files older than N days at launch; `0` keeps forever |
66
69
  | `modelTiers` | object | - | Enable model tiers and per-tier thinking |
67
70
  | `modelInstructions` | object | `{ enabled: false, mode: "both" }` | Model-specific instructions and whether they append to or replace global instructions |
68
71
  | `confirmLargeSubagentLaunches` | boolean | `true` | Ask once before aggregate launches of three or more children outside Auto mode |
69
72
  | `enableAnalytics` | boolean | `false` | Opt-in analytics data sharing. Currently only asked for during the experimental first-time setup (`PI_EXPERIMENTAL=1`) |
70
73
  | `trackingId` | string | - | Analytics tracking identifier, generated when `enableAnalytics` is turned on |
71
- | `doubleEscapeAction` | string | `"tree"` | Action for double-escape: `"tree"`, `"fork"`, or `"none"` |
74
+ | `doubleEscapeAction` | string | `"tree"` | Idle action for double-escape: `"tree"`, `"fork"`, or `"none"`. Active async subagents take priority: double-Escape requests their stop |
72
75
  | `treeFilterMode` | string | `"default"` | Default filter for `/tree`: `"default"`, `"no-tools"`, `"user-only"`, `"labeled-only"`, `"all"` |
73
76
  | `editorPaddingX` | number | `0` | Horizontal padding for input editor (0-3) |
74
77
  | `outputPad` | number | `1` | Horizontal padding for user messages, assistant messages, and thinking (0 or 1) |
@@ -238,7 +241,7 @@ When multiple sources specify a session directory, precedence is `--session-dir`
238
241
  | `footerPlanBar` | boolean | `true` | Show the █░ fill; off keeps the percent only |
239
242
  | `planUsageWindow` | string | `"5h"` | Preferred plan window: `"5h"` or `"weekly"`. Missing 5h falls back to weekly |
240
243
 
241
- Customize these from `/settings` → Customize as well.
244
+ Customize these from `/settings` → Customize as well. The same menu controls `subagentSpinner` with an animated preview.
242
245
 
243
246
  ### Cron, rollback, subscriptions
244
247
 
package/docs/tui.md CHANGED
@@ -14,6 +14,7 @@ All components implement:
14
14
  interface Component {
15
15
  render(width: number): string[];
16
16
  handleInput?(data: string): void;
17
+ handleClick?(localY: number, width: number, localX?: number): boolean;
17
18
  wantsKeyRelease?: boolean;
18
19
  invalidate(): void;
19
20
  }
@@ -23,6 +24,7 @@ interface Component {
23
24
  |--------|-------------|
24
25
  | `render(width)` | Return array of strings (one per line). Each line **must not exceed `width`**. |
25
26
  | `handleInput?(data)` | Receive keyboard input when component has focus. |
27
+ | `handleClick?(localY, width, localX?)` | Handle a click. Coordinates are zero-based within the component. `localX` is optional for compatibility with row-only handlers. Return `true` when handled. |
26
28
  | `wantsKeyRelease?` | If true, component receives key release events (Kitty protocol). Default: false. |
27
29
  | `invalidate()` | Clear cached render state. Called on theme changes. |
28
30
 
package/docs/usage.md CHANGED
@@ -28,7 +28,23 @@ The editor can be replaced temporarily by built-in UI such as `/settings` or by
28
28
  | Hidden shell command | `!!command` runs without sending output to the model |
29
29
  | External editor | Ctrl+G opens `externalEditor`, `$VISUAL`, `$EDITOR`, Notepad on Windows, or `nano` elsewhere |
30
30
 
31
- See [Keybindings](keybindings.md) for all shortcuts and customization. Shift+Tab cycles permission mode (`manual` → `yolo` → `plan` → `auto`). Ctrl+O cycles `/tree` filters; it does not expand tool cards. `app.tools.expand` is unbound.
31
+ See [Keybindings](keybindings.md) for all shortcuts and customization. Shift+Tab cycles permission mode (`yolo` → `auto` → `read`). Ctrl+O cycles `/tree` filters; it does not expand tool cards. `app.tools.expand` is unbound.
32
+
33
+ ### Copyable response blocks
34
+
35
+ An assistant response can mark a reusable excerpt, prompt, or code fragment as click-to-copy. The marked section appears in a plain background box. Click anywhere in that box to copy it instead of the whole response.
36
+
37
+ The assistant marks a block with the exact fenced Markdown info string `lunr-copy`:
38
+
39
+ ````markdown
40
+ ```lunr-copy
41
+ Run the focused tests, then summarize failures.
42
+ ```
43
+ ````
44
+
45
+ The copied payload starts after the opening fence's line break and ends before the line break immediately preceding the closing fence. lunR preserves its indentation, whitespace, and internal newlines without trimming, and does not copy either fence line. Use a longer backtick or tilde fence when the payload contains shorter fenced code.
46
+
47
+ A streamed block stays readable while incomplete, but becomes clickable only after the closing fence is received and revealed. Reopened sessions reconstruct clickable sections from the saved assistant message. Print, JSON, RPC, and gateway modes leave the fences readable and never perform clipboard writes.
32
48
 
33
49
  ## Slash Commands
34
50
 
@@ -52,9 +68,9 @@ Built-in commands (from `slash-commands.ts`):
52
68
  | `/usage` | This-session token totals, context, and every stored subscription plan (no `/token-usage`) |
53
69
  | `/fast [on\|off\|status]` | Toggle Fast mode for OpenAI Codex subscriptions only |
54
70
  | `/context` | Estimated context-window breakdown |
55
- | `/plan` | Switch to plan permission mode, or `/plan <task>` to plan a task |
56
- | `/mode` | Set permission mode: `manual`, `yolo`, `plan`, or `auto` |
57
- | `/manual`, `/yolo`, `/auto` | Activate that permission mode |
71
+ | `/plan` | Switch to read-only mode, or `/plan <task>` to plan a task |
72
+ | `/mode` | Set permission mode: `yolo`, `auto`, or `read` |
73
+ | `/read`, `/yolo`, `/auto` | Activate that permission mode |
58
74
  | `/processes` | View and manage background processes started this session |
59
75
  | `/rollback` | Undo the last turn's file changes and rewind the conversation |
60
76
  | `/hotkeys` | Show all keyboard shortcuts |
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider",
3
- "version": "0.2.19",
3
+ "version": "0.2.25",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-custom-provider",
9
- "version": "0.2.19",
9
+ "version": "0.2.25",
10
10
  "dependencies": {
11
11
  "@anthropic-ai/sdk": "^0.52.0"
12
12
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider-anthropic",
3
3
  "private": true,
4
- "version": "0.2.19",
4
+ "version": "0.2.25",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider-gitlab-duo",
3
3
  "private": true,
4
- "version": "0.2.19",
4
+ "version": "0.2.25",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-gondolin",
3
- "version": "0.2.19",
3
+ "version": "0.2.25",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-gondolin",
9
- "version": "0.2.19",
9
+ "version": "0.2.25",
10
10
  "dependencies": {
11
11
  "@earendil-works/gondolin": "0.12.0"
12
12
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-gondolin",
3
3
  "private": true,
4
- "version": "0.2.19",
4
+ "version": "0.2.25",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,6 +1,6 @@
1
1
  # Plan Mode Extension (sample)
2
2
 
3
- This is an **Extension API sample**, not lunR's product plan mode. lunR ships plan permission mode plus `present_plan`; see [docs/features.md](../../../docs/features.md).
3
+ This is an **Extension API sample**, not lunR's permission system. lunR has read-only mode and the `present_plan` tool; see [docs/features.md](../../../docs/features.md).
4
4
 
5
5
  Read-only exploration mode for safe code analysis.
6
6
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-sandbox",
3
- "version": "0.2.19",
3
+ "version": "0.2.25",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-sandbox",
9
- "version": "0.2.19",
9
+ "version": "0.2.25",
10
10
  "dependencies": {
11
11
  "@anthropic-ai/sandbox-runtime": "^0.0.26"
12
12
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-sandbox",
3
3
  "private": true,
4
- "version": "0.2.19",
4
+ "version": "0.2.25",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-with-deps",
3
- "version": "0.2.19",
3
+ "version": "0.2.25",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-with-deps",
9
- "version": "0.2.19",
9
+ "version": "0.2.25",
10
10
  "dependencies": {
11
11
  "ms": "^2.1.3"
12
12
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-with-deps",
3
3
  "private": true,
4
- "version": "0.2.19",
4
+ "version": "0.2.25",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",