@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
@@ -1,277 +1,328 @@
1
- # Native computer use
1
+ # Image-only computer use
2
2
 
3
- This implementation is available through the experimental `@ashx-j/lunr-dev`
4
- channel, based on stable lunR 0.2.19 plus PR #77. Install with
5
- `npm i -g @ashx-j/lunr-dev`, then run `lunr-dev`. Stable `@ashx-j/lunr` is unchanged.
6
- This is not production support certification. Windows
7
- MCP metadata interoperability and local runtime/lifecycle tests pass. The macOS
8
- launch path is implemented but has not run on macOS hardware. Neither platform
9
- has passed live desktop acceptance. Production publication remains blocked.
3
+ This dev-channel build combines stable lunR 0.2.25 and PR #77's current
4
+ image-only computer use. The earlier image-only build shipped as
5
+ `@ashx-j/lunr-dev@0.2.21-dev.12.1` and received user testing. The dev command
6
+ is `lunr-dev`, including `lunr-dev update`; stable `lunr` stays separate. Both
7
+ commands share `~/.lunr/agent` settings, credentials, and sessions. Smooth cursor
8
+ animation is not implemented. Stable production publication remains blocked
9
+ pending the native runtime's separate approval.
10
10
 
11
- ## Local setup
11
+ ## Setup and permissions
12
12
 
13
- Run `/computer setup` in the local lunR terminal. It verifies and installs the
13
+ Run `/computer setup` in the local lunR terminal. Setup verifies and installs the
14
14
  bundled runtime without downloading code, capturing the screen, or operating an
15
- application. Setup is user-invoked and unavailable from gateway or headless
16
- sessions.
15
+ application. It is unavailable in headless and gateway sessions.
17
16
 
18
- On Windows, keep the desktop logged in and unlocked. On macOS, setup prints the
19
- exact installed `CuaDriver.app` path. Add that app under System Settings > Privacy
20
- & Security to both Accessibility and Screen & System Audio Recording, named
21
- Screen Recording on older macOS versions. Enable both grants, then restart lunR.
22
- These OS grants require the user; Auto mode cannot supply them. Setup never
23
- selects or changes an existing `/Applications/CuaDriver.app` installation.
24
-
25
- Complete setup before assigning GUI tasks through cron or the gateway. A setup
26
- success verifies the runtime files, not permission grants or desktop behavior.
27
-
28
- ## Tools and permissions
17
+ Windows needs an active, unlocked desktop. On Apple Silicon macOS, setup prints
18
+ the exact installed `CuaDriver.app` path. Add that app to Accessibility and
19
+ Screen & System Audio Recording in System Settings > Privacy & Security, then
20
+ restart lunR. Older macOS versions call the second grant Screen Recording.
21
+ Only the user can grant these permissions. Setup leaves an existing
22
+ `/Applications/CuaDriver.app` alone.
29
23
 
30
24
  Computer use and Allow foreground control default to on. Windows x64/arm64 and
31
- Apple Silicon macOS expose `computer_load` before the first model request.
32
- The runtime loads only when a desktop operation needs it. Linux and Intel macOS
33
- have no default discovery tool.
34
-
35
- Loading activates app/window discovery, accessibility and image observation,
36
- single/right/double clicks, complete drags, scrolling, keys and modifier
37
- shortcuts, Unicode text, app launch, window management, and workflow release.
38
- Use these tools on the computer running lunR. Gateway sessions control the
39
- gateway host, not the Telegram or Discord client's machine.
40
-
41
- Prefer accessibility and background window input. Request window foreground
42
- input only after a background failure and a fresh observation. Primary-desktop
43
- input has no background route and requires `desktop=true` and `foreground=true`.
44
- Foreground off blocks desktop input, explicit foreground window input, app
45
- launches, and every window-management operation. Background delivery cannot
46
- prevent an application from changing its own focus.
47
-
48
- `computer_window` requires an exact window target and has no per-call foreground
49
- or desktop option. It moves/resizes with `action=frame`, or activates the exact
50
- window with `action=focus`. Minimize/restore invokes the supplied, freshly
51
- observed accessibility window-control element. The pinned driver has no portable
52
- minimize/restore RPC. If the control or minimized window cannot be observed, use
53
- freshly observed desktop controls rather than guessing a shortcut or window id.
54
- Text and keys can target an accessibility element, window-image coordinates,
55
- or the observed focused field. Desktop keyboard input targets the observed
56
- focused field; changing focus needs a separate grounded click.
57
-
58
- Manual asks before every computer call except `computer_end`, which only releases
59
- the workflow and never needs approval. Observation still requires approval.
60
- Plan permits relevant observation and workflow release but blocks mutation. Auto needs no
61
- lunR per-call prompt for requested, implied, or necessary GUI work. In Yolo,
62
- ask first when an otherwise non-GUI task newly requires GUI. This intent rule
63
- is agent guidance, not a natural-language authorization classifier.
64
-
65
- Native tools are excluded from children and also refuse child execution.
66
- Shell-capable children are not OS-sandboxed. No generic MCP registration or
67
- raw driver policy, update, recording, or administrative tool is exposed.
68
-
69
- ## Grounding and outcomes
70
-
71
- Each observation invalidates the previous token before contacting the driver.
72
- A token identifies one exact window or the primary desktop, expires after thirty
73
- seconds, and permits one action. Accessibility input includes the driver's
74
- snapshot id. Structured refusals count as refusals even without MCP `isError`.
75
- Partial and unverifiable outcomes remain visible; transport success is not
76
- proof of an application change.
77
-
78
- Window PNGs are capped by the driver at 1024 pixels on their long edge.
79
- Window coordinates use that returned image, without another resize. Both pinned
80
- platform implementations retain the capture resize ratio for later pixel input.
81
- The adapter checks PNG dimensions and refuses inconsistent pixel grounding. Desktop
82
- images are resized to at most 1024 pixels locally. Their token records separate
83
- x/y ratios back to the driver's native desktop image. Coordinates outside the
84
- returned image are rejected. Pixel and desktop operations require an
85
- image-capable current model; accessibility-only observation remains available.
86
-
87
- Observe after every action. A timeout or cancelled call may already have
88
- changed the application. Never retry input blindly. Cancelling the MCP request
89
- does not retract input already delivered to the OS. Normal shutdown asks the
90
- owned runtime to drain and exit; forced process termination cannot prove that
91
- all held input was released. Live gesture cancellation remains an acceptance
92
- gate.
93
-
94
- ## Ownership and lifecycle
95
-
96
- An OS-account lease holds the desktop across observe/action calls. Competing
97
- workflows get busy rather than queueing; calls within one workflow serialize.
98
- The lease uses the OS account home, not the selected lunR settings profile.
99
- One short cross-process acquisition lock protects creating, updating, and deleting
100
- the owner record. Updates replace the file atomically. Runtime installation uses
101
- a separate lock and never replaces an existing runtime. A live owner is never displaced because its heartbeat is late.
102
- After MCP initialization and before any driver tool call, the adapter records
103
- the transport PID and, on macOS, the daemon PID in that lease. Missing PIDs or
104
- failure to record ownership block tool dispatch. Driver-internal helper lifetime
105
- remains part of the unverified native shutdown acceptance gates.
106
- A crash during initialization can leave an unrecorded, idle runtime, but it has
107
- received no desktop action. Recovery requires both the owner and its recorded
108
- runtimes to have exited.
109
- PID reuse can conservatively leave the desktop busy rather than kill another
110
- process. A malformed owner record also fails closed.
111
-
112
- `computer_end`, cancellation, agent end, settings changes, and session shutdown
113
- close the owned runtime before releasing its lease. Queued operations cannot
114
- survive cancellation. Settings disable removes active tools immediately;
115
- session replacement discards loaded tools and grounding. The first-request
116
- hook also reapplies the loaded roster after extension registration refreshes it.
117
- If shutdown cannot be confirmed, the lease stays held. Confirm that the owned
118
- runtime has stopped before restarting the owning lunR process.
119
-
120
- Fresh gateway cron sessions get explicit permission contexts from the configured
121
- default mode. They inherit neither gateway approvals nor its interactive
122
- approval handler. Missing approval reports blocked. Session shutdown runs before
123
- context disposal, including partial extension-bind failure. TUI cron continues
124
- to use its live session mode.
125
-
126
- ## Runtime and packaging
25
+ Apple Silicon expose `computer_load`; detailed tools load on demand. Linux and
26
+ Intel macOS have no native discovery tool. All computer tools except release
27
+ require an image-capable model. There is no text-only accessibility fallback.
28
+ Gateway sessions operate the gateway host, not the chat client's device.
29
+
30
+ `computer_end` releases without approval. Read-only allows relevant observation
31
+ and release, but blocks mutation. Yolo and Auto permit input. Auto allows
32
+ requested, implied, or necessary GUI work without lunR per-call prompts. In
33
+ Yolo, ask before introducing GUI work into an otherwise non-GUI task. These
34
+ intent rules are agent guidance, not a natural-language authorization classifier.
35
+
36
+ Prefer background window input. Foreground window input requires a verified
37
+ background failure and a fresh image. Desktop input requires `desktop=true` and
38
+ `foreground=true`. Disabling foreground control blocks desktop input, foreground
39
+ window input, launch, and window management. An application can still change its
40
+ own focus after background input.
41
+
42
+ Native tools are excluded from children and refuse child execution. Children
43
+ with shell access are not OS-sandboxed. No raw driver administration, update,
44
+ recording, or permission tool is exposed.
45
+
46
+ ## Observe, act, inspect
47
+
48
+ 1. Use `computer_apps` for app identities or windows for a PID. For a known app
49
+ or title, pass `query` to avoid paging through unrelated identities. It matches
50
+ a case-insensitive literal substring in `name`, `app_name`, or `title` before
51
+ pagination and display truncation. `total` counts matching rows. Omit `query`
52
+ to browse all rows. Results allowlist at most 50 rows and truncate titles to
53
+ 240 characters. Pass `next_offset` as `offset` with the same PID and query to
54
+ retrieve more matches. Lists refresh per call, so changing native order can
55
+ shift page boundaries. PID zero
56
+ identifies an installed app that is not running. Window `bounds` are native
57
+ geometry, not screenshot coordinates.
58
+ 2. Use `computer_observe` with an exact `pid` and `window_id`, or `desktop=true`.
59
+ The result contains one image and a short coordinate/token record.
60
+ 3. Choose one action from that image. Pass its `observation` token and coordinates
61
+ in the returned image. The workflow applies the mapping; do not scale twice.
62
+ 4. Inspect the post-action image before continuing. The tool executes one action
63
+ and captures the same target once. It never polls or retries input internally.
64
+ 5. Call `computer_end` when finished.
65
+
66
+ The token lasts 30 seconds, belongs to one exact target, and permits one action.
67
+ Copy it exactly, without abbreviating or reconstructing it. A failed action
68
+ consumes the active token. Capture again before any next action, including window
69
+ focus. `background_unavailable` makes foreground input the next candidate after
70
+ a fresh capture, if permitted. Do not substitute another background shortcut.
71
+ Token rejection does not prove foreground typing failed.
72
+
73
+ Every new observation invalidates the previous token before capture. Failed,
74
+ cancelled, or malformed captures issue no token. Old tokens cannot be replayed,
75
+ including after a successful action returns a new image.
76
+
77
+ Supported input is single, double, and right click with modifiers, a complete
78
+ press-drag-release gesture, scrolling at image coordinates, Unicode text, and
79
+ keys or modifier shortcuts. Window text/keys can use image coordinates or the
80
+ observed focused field. Desktop text/keys use the observed focused field only;
81
+ change focus with a separate grounded click.
82
+
83
+ `computer_window` supports `frame` in native window-bounds units and `focus` on
84
+ an exact observed window. Minimize/restore uses a grounded image click on a
85
+ visible control. The pinned driver has no portable minimize/restore RPC.
86
+ `computer_launch` returns bounded app metadata, not an inferred input target;
87
+ capture an exact window before acting.
88
+
89
+ A successful transport or a changed image does not prove the intended application
90
+ effect. Results preserve partial/unverifiable outcomes and bounded refusal codes.
91
+ Pre-dispatch failures report `input:"not_dispatched"` and state that this call
92
+ sent no input. They do not establish whether earlier calls had an effect. Token
93
+ codes distinguish a missing active observation, a mismatched token, a wrong
94
+ target, and expiry only while that state is available. A closed workflow cannot
95
+ identify whether an old token was consumed or unknown. Once dispatch begins,
96
+ transport failure reports `input:"uncertain"` and possible effects. Neither path
97
+ retries input. Unparseable driver text is omitted rather than forwarded as a
98
+ message; structured refusal fields remain bounded and allowlisted.
99
+ When input returns but its post-image fails, the tool reports possible effects
100
+ and stops the workflow. Capture again before deciding; never repeat input blindly.
101
+ After an unchanged post-image, the same action against identical captured pixels
102
+ is refused. Pixel identity hashes decoded full-image RGBA values and dimensions,
103
+ not PNG encoding bytes, before cropping or resizing. Full captures reuse the
104
+ image processor's decode, and crops reuse the existing full-image decode. Click signatures normalize omitted left-button/single-click/empty
105
+ modifier defaults and modifier order. Three consecutive unchanged full observations
106
+ stop polling in that workflow. Crops are explicit requests, not an automatic retry loop.
107
+
108
+ Partial typing retains validated `requested_chars`, `delivered_chars`, `retryable`,
109
+ and `retry_from_character` when supplied by the driver. Counts must be safe integers
110
+ within the submitted text's Unicode code-point length, capped at 20000; the retry
111
+ index must equal the delivered count. The index is zero-based in Unicode code
112
+ points, not UTF-16 units. Verify the field in a fresh image before considering a
113
+ remaining suffix. `retryable` is driver advice, not permission or proof that
114
+ repeating input is safe. The workflow never retries typing automatically.
115
+
116
+ ## Image contract and cost limits
117
+
118
+ Window capture requests `include_accessibility_tree:false` and
119
+ `include_screenshot:true`. Neither native accessibility trees nor duplicate raw
120
+ JSON reach the model. The macOS driver still reads minimal native accessibility
121
+ facts for window identity and background-input safety. Windows window discovery
122
+ can use UIA as a fallback. Image-only describes application observation sent to
123
+ the model, not the removal of every native accessibility API call.
124
+
125
+ Window capture requests a 2560-pixel maximum. The runtime can impose a lower
126
+ configured ceiling, so this is not a promised capture resolution. The workflow
127
+ checks actual PNG dimensions against native screenshot metadata and rejects
128
+ invalid frames. Primary-desktop capture is tree-free and uses the native PNG.
129
+ Desktop coordinates map back to that PNG once; macOS `scale_factor` is not an
130
+ additional multiplier.
131
+
132
+ Returned images have a maximum 1280-pixel edge, one million pixels, and 1.5 MiB
133
+ of base64 payload. The existing image processor bounds dimensions and encoding
134
+ size. The workflow refuses images it cannot decode or map. Source PNGs also have
135
+ allocation limits. These are engineering bounds, not measured token savings.
136
+
137
+ For small text or controls, request `crop:{x,y,width,height}` with the latest
138
+ observation token. The rectangle uses that returned image's pixels. The workflow
139
+ captures fresh pixels, maps the rectangle into the full capture, and sends only
140
+ the crop. Its record gives the source dimensions, crop offset, and separate x/y
141
+ ratios. Changed source dimensions or reported window bounds reject the crop;
142
+ request a full image again. Cropping cannot recover detail absent from the native
143
+ capture. Post-action captures return the full target so dialogs outside a crop
144
+ remain visible.
145
+
146
+ Saved sessions retain the returned screenshots. Provider-facing screenshot
147
+ history also accumulates until normal compaction. This change does not prune
148
+ user images, rewrite saved sessions, or implement a generic rolling history
149
+ filter. A targeted `context` hook could remove old computer screenshots while
150
+ leaving sessions intact, but a rolling cutoff changes an earlier prompt prefix
151
+ and can invalidate cached input. That tradeoff needs approved provider measurements
152
+ before adopting a retention policy. Image-only is not automatically cheaper than
153
+ text. Current cost controls bound each new payload, remove tree/JSON duplication,
154
+ and combine one action with its post-image.
155
+
156
+ ## Cursor status
157
+
158
+ Cursor animation remains a separate native-runtime decision. The inherited
159
+ runtime launch still uses `--no-overlay`. Upstream Windows drag animation uses a
160
+ timer separate from actual input, and desktop pointer movement can teleport.
161
+ This branch does not claim smooth actual-cursor motion or synchronized drag
162
+ feedback. Any eventual animation must stay local, preserve full gestures and
163
+ cancellation, and send zero intermediate frames to the model.
164
+
165
+ ## Ownership and cancellation
166
+
167
+ An OS-account lease spans observations and actions, independent of settings
168
+ profiles. Competing workflows receive busy rather than queueing. Calls within a
169
+ workflow serialize. One cross-process lock covers creation, atomic replacement,
170
+ and deletion of the owner record. A separate lock protects runtime installation.
171
+ A live owner is not displaced because its heartbeat is late.
172
+
173
+ After MCP initialization and before any driver tool dispatch, the adapter records
174
+ the transport PID and, on macOS, daemon PID. Missing identities or failed lease
175
+ updates refuse dispatch. Recovery requires both owner and recorded runtimes to
176
+ have exited. PID reuse and malformed owner records fail closed. A crash during
177
+ initialization can leave an unrecorded idle runtime that received no input.
178
+
179
+ Release, cancellation, agent end, settings changes, and session shutdown close
180
+ the owned runtime before releasing the lease. Queued work cannot survive
181
+ cancellation. Unconfirmed shutdown retains ownership. Cancellation cannot retract
182
+ already delivered input, and forced termination does not prove held input was
183
+ released. Driver-internal helper lifetime and held-input cancellation still need
184
+ native acceptance.
185
+
186
+ Gateway cron creates fresh permission contexts with the configured default mode,
187
+ without gateway approvals or its approval handler. Read-only blocks input, and
188
+ missing approval blocks operations that still require confirmation.
189
+ Session shutdown precedes disposal, even after partial extension binding failure.
190
+ TUI cron continues to use its live permission context.
191
+
192
+ ## Runtime and distribution
127
193
 
128
194
  The development pin is [CuaDriver 0.28.1](https://github.com/trycua/cua/releases/tag/cua-driver-rs-v0.28.1),
129
- source `d8028a7943087ee258dc1b4d19dc12a7cd27669c`. This exact prerelease and its
130
- three archive hashes are approved for development-channel distribution only.
131
- `scripts/computer-use-release.json` is the authoritative archive inventory.
132
- The upstream MIT license is included under `native/computer-use`.
133
-
134
- The runtime never downloads an executable. It resolves the host's optional
135
- payload package, or the matching archive beside a standalone binary. It verifies that archive,
136
- extracts a fresh reference tree, and checks every cached file and helper against
137
- that tree before execution. Redirected install paths and escaping symlinks are
138
- rejected. Concurrent installers do not overwrite each other. A modified or
139
- older cache is refused rather than overwritten. After confirming no runtime is
140
- active, remove the inactive lunR runtime directory to reinstall it.
141
-
142
- Windows uses the system `tar.exe`, not a `PATH`-selected extractor, and launches
143
- `mcp --direct --embedded --no-overlay`. A bounded, hidden system PowerShell
144
- helper checks WTS session activity and the input desktop name before admission.
145
- It refuses session zero, disconnected sessions, and a non-Default or inaccessible
146
- input desktop. It reads metadata only and never switches desktops. The isolated
147
- runtime profile avoids the user's Cua config. Both platforms remove inherited `CUA_*` settings and explicitly
148
- set standard permission mode, disable unrestricted mode, and set
149
- `CUA_DRIVER_RS_TELEMETRY_ENABLED=false` and `CUA_DRIVER_RS_UPDATE_CHECK=false`.
150
-
151
- macOS preserves the signed `CuaDriver.app` at the stable lunR-owned path
152
- `~/.lunr/desktop/runtime-darwin-arm64/CuaDriver.app` and verifies its signature
153
- with `codesign --verify --deep --strict`. It never re-signs the bundle.
154
- LaunchServices selects that exact app path with `open -n -g -W -a`, not its
155
- shared bundle id or the user's `/Applications` installation. Explicit `--env`
156
- arguments pass telemetry/update/permission settings and a private HOME to the
157
- daemon. The private HOME also isolates the upstream default PID/config files.
158
- A private Unix socket carries the MCP proxy connection. A private stdin FIFO
159
- and the pinned `--parent-liveness-stdio` option tie daemon lifetime to lunR.
160
- Shutdown uses the private endpoint's PID-bound request and waits for the owned
161
- app to exit. Startup and shutdown have time limits. These construction and
162
- cleanup paths have local tests, not macOS execution evidence.
163
-
164
- Release staging creates `@ashx-j/lunr-computer-win32-x64`,
165
- `@ashx-j/lunr-computer-win32-arm64`, and
166
- `@ashx-j/lunr-computer-darwin-arm64`. Each package contains one unchanged archive,
167
- the MIT license, and a manifest with `os` and `cpu`. There are no install scripts.
168
- The payload packages follow the CLI release version, independently of the upstream
169
- runtime version. The staged CLI declares exact optional versions. npm installs
170
- only the matching payload; `--ignore-scripts` works. Missing optional dependencies
171
- leave the CLI usable and produce a reinstall instruction when computer use needs
172
- the runtime. Unsupported hosts have no native discovery tool.
173
-
174
- The CLI tarball is about 10.7 MB, without runtime archives. Packed payload sizes
175
- are about 28.8 MB for Windows x64, 27.2 MB for Windows arm64, and 69.8 MB for
176
- Apple Silicon. These are decimal sizes, not extracted runtime sizes.
177
-
178
- Workspace manifests and locks keep unpublished native dependencies out of
179
- ordinary developer installs. `scripts/publish.mjs` injects them into the staged
180
- CLI shrinkwrap and standalone installer lock. Public lock rewriting updates both
181
- package names and tarball filenames. Publication validates all seven packages,
182
- then publishes payloads before the CLI. Dev staging uses exact
183
- `0.2.19-dev.<run>.<attempt>` versions throughout package manifests, shrinkwrap,
184
- and installer locks. It publishes `@ashx-j/lunr-dev` with its own `latest` tag;
185
- shared libraries and runtime payloads use `dev` tags. Stable tags stay unchanged.
186
- Production publication still requires separate approval and an unpublished
187
- stable CLI version.
188
-
189
- `scripts/build-binaries.sh` and `copy-binary-assets` copy only the selected opaque
190
- archive into `native/computer-use` beside the executable. They preserve the macOS
191
- archive without extracting or signing it. Routine builds stay offline. Release
192
- preparation may fetch only the pinned official archives, then verifies their
193
- sizes and hashes. Stable npm and GitHub binary publication stop on the current
194
- development-only approval. The `dev/tui` workflow may publish the explicitly
195
- requested npm dev channel.
196
-
197
- An installed payload package must match the CLI version. A CLI upgrade that keeps
198
- the same runtime bytes can reuse the verified cache. A changed or older cached
199
- runtime fails closed rather than replacing a possibly running app. After all
200
- owned processes stop, removing the inactive lunR runtime directory allows a fresh
201
- extraction at the same stable macOS path.
202
-
203
- ## Verification and remaining gates
204
-
205
- Local verification includes actual Windows initialize/tools/list and a
206
- metadata-only `health_report`, with capture and accessibility checks excluded.
207
- The binary reported 0.28.1 and 57 tools. Health results include human-readable
208
- text and `structuredContent`. Its `session_active` check reports MCP activity,
209
- not an unlocked or input-ready desktop. A separate real Windows metadata probe
210
- confirmed an active session and Default input desktop without screen, AX, or
211
- input calls. Snapshot identity and operation mapping
212
- were checked against the exact released tool schemas and source; no live
213
- snapshot was taken.
214
-
215
- Focused tests cover policy, result interpretation, image coordinate mapping,
216
- new GUI operation mapping, interrupted initialization, partial shutdown,
217
- settings/session tool rosters, real separate-process contention and death,
218
- orphan-runtime ownership, cache tampering, redirected paths, concurrent
219
- extraction, and the fresh gateway cron factory's approval/disposal lifecycle.
220
- The dev review passes 167 focused Vitest tests across 14 files and
221
- eight archive/package tests. All five offline production builds, including the
222
- coding-agent Node bundle, pass. Touched native TypeScript lint and the repository's
223
- relative-import, workflow-publication, browser-smoke, and diff checks pass.
224
-
225
- A loopback fixture registry served all seven public-name tarballs without changing
226
- their bytes. A fresh Windows install used `--ignore-scripts`, fetched only the host
227
- payload, then passed archive validation and first-paint/first-request fixtures
228
- after relocation. Separate npm installs selected the correct package for each
229
- supported OS/CPU combination and no package for Linux. An omitted-optional install
230
- returned the expected missing-payload error. The shipped installer lock passed
231
- `npm ci --ignore-scripts`. Standalone asset tests copied and rechecked all three
232
- opaque archives. No installed app or desktop operation ran in these packaging
233
- tests. Cross-platform npm selection on Windows is not macOS runtime acceptance.
234
-
235
- The first-request fixture strips inherited subagent environment state before
236
- checking the default tool inventory. The supported-host inventory includes only
237
- `computer_load`; detailed computer tools remain lazy. The unsupported-host
238
- baseline is unchanged.
239
-
240
- To repeat local distribution checks after the offline build, prepare the pinned
241
- archives with `scripts/bundle-computer-use.mjs`, create an empty temporary pack
242
- directory, then run:
243
-
244
- ```sh
245
- node scripts/generate-computer-use-manifest.mjs --check
246
- node --test scripts/check-computer-use-release.test.mjs scripts/computer-use-packages.test.mjs
247
- node scripts/publish.mjs --channel dev --version 0.2.19-dev.0.1 --dry-run --pack-dir /absolute/temporary/pack-directory
248
- node scripts/check-computer-use-install.mjs /absolute/temporary/pack-directory
249
- ```
250
-
251
- The install checker uses a loopback registry for the local public packages and
252
- npm's public registry for external dependencies. It isolates npm configuration,
253
- cache, and install directories and removes them afterward. It does not publish.
254
- These checks do not certify desktop behavior.
255
-
256
- External acceptance gates remain:
257
-
258
- - Windows locked, disconnected, UAC, and integrity-state acceptance for the
259
- metadata admission check and the actual driver.
260
- - Authorized native and Electron fixture desktops, Unicode, moved/resized
261
- windows, display scaling, stale accessibility handles, application exit,
262
- outcome verification, and cancellation during held input.
263
- - Real macOS signature/notarization, TCC, LaunchServices/FIFO environment,
264
- coexistence, upgrade, and shutdown acceptance.
265
- - Real macOS and Windows arm64 runtime installation and launch. Their npm
266
- selection and unchanged archive copying pass locally, but their hardware
267
- execution and upgrades remain unverified.
268
- - Full standalone executable acceptance. Payload asset copying passes; this
269
- verification did not compile and exercise every Bun target.
270
-
271
- ## Privacy and rollback
272
-
273
- GUI actions are outside lunR's filesystem rollback. Images, accessibility text,
274
- and typed text can enter selected-provider requests and saved sessions.
275
- Disabling driver telemetry does not disable lunR session storage. Application
276
- content is untrusted task data, never authorization. OS permissions, locked
277
- desktops, UAC, and integrity restrictions still apply.
195
+ source `d8028a7943087ee258dc1b4d19dc12a7cd27669c`. Archive identities and approval
196
+ are in `scripts/computer-use-release.json`; `release.generated.ts` derives from
197
+ it. The upstream MIT license is under `native/computer-use`. No runtime pin or
198
+ native binary changed in the image-only workflow work.
199
+
200
+ The runtime resolves the host's optional payload package or matching archive
201
+ beside a standalone executable. It verifies the archive, extracts a fresh
202
+ reference tree, and checks cached files/helpers against it. Redirected paths and
203
+ escaping symlinks are refused. Installers do not overwrite an existing runtime.
204
+ After confirming all owned processes stopped, an inactive cache can be removed
205
+ for reinstallation. Runtime code is never downloaded at first use.
206
+
207
+ Windows uses system `tar.exe` and an isolated `mcp --direct --embedded
208
+ --no-overlay` process. A hidden system PowerShell metadata probe refuses session
209
+ zero, disconnected sessions, and inaccessible/non-Default input desktops. It
210
+ never switches desktops. Both platforms isolate profiles, strip inherited
211
+ `CUA_*`, set standard permission mode, and disable telemetry/update checks.
212
+
213
+ macOS preserves the unchanged signed app at its stable lunR-owned path, verifies
214
+ its signature with `codesign --verify --deep --strict`, and launches that exact
215
+ path through `open -n -g -W -a`. A private HOME, socket, stdin FIFO, and
216
+ `--parent-liveness-stdio` isolate daemon state and lifetime. Shutdown uses the
217
+ private PID-bound endpoint and waits for the app to exit. No re-signing occurs.
218
+
219
+ Release staging creates exact-version host-specific optional payload packages.
220
+ They contain unchanged archives and no install scripts. Workspace manifests keep
221
+ unpublished payload dependencies out. Standalone asset copying selects one
222
+ opaque archive. Stable publication remains gated on production approval and a
223
+ new CLI version. Dev-channel update/publication changes were not ported here.
224
+
225
+ ## Verification and remaining acceptance
226
+
227
+ After integrating v0.2.24 master, all five offline package builds and the Node
228
+ bundle pass. With the PR #118 baseline repairs integrated, validation passes
229
+ 391 focused tests across 31 files and eight archive/package tests. Installation and archive staging tests now create inert
230
+ fixtures, so source tests need no native release payload. The Windows installation
231
+ test exercises real extraction, locking, cache reuse, and helper-tamper rejection
232
+ without executing either fixture file. Fake-driver tests cover exact-token
233
+ rejection with zero action dispatch, background refusal followed by fresh-capture
234
+ foreground input, and uncertain or partial post-dispatch outcomes. Real PNG
235
+ fixtures reproduce encoding-independent pixel identity and preserve crop mapping.
236
+ First-paint and first-request checks pass for both browser settings; removing only
237
+ `computer_load` reproduces master's unchanged tool hashes.
238
+
239
+ All three pinned upstream archives match their committed byte counts and SHA-256
240
+ hashes. Seven public-name tarballs staged with those unchanged real payloads pass
241
+ relocated installation, first requests, all supported OS/CPU selections, omitted
242
+ optional-payload recovery, and standalone installer `npm ci --ignore-scripts`.
243
+ Staging validates rewritten JavaScript and declaration imports and exact payload
244
+ versions in both locks. These checks ran on Windows x64 without launching the
245
+ native driver; OS/CPU selection tests do not establish operation on other hardware.
246
+ Archive integrity and packaging are verified, but native signing, permission and
247
+ input acceptance remain separate. Production approval is still development-only;
248
+ publication requires separate approval and a new CLI version.
249
+
250
+ PR #77 also incorporates the separately tracked baseline repairs from PR #118.
251
+ That work fixes AI catalog subpath resolution in extension loading and updates
252
+ fixtures for current gateway, shutdown, provider and subscription contracts.
253
+ Its 152 focused tests across ten files pass. The complete Ubuntu log before
254
+ those repairs records 101 coding-agent failures across 27 suites and 11 AI
255
+ failures, more than the subset exposed by check annotations. Agent passes
256
+ 181/181 in that run. Clean full-suite CI still requires broader baseline work;
257
+ local Windows-only diagnostics are not evidence of Ubuntu failures.
258
+ The automated checks did not operate a desktop or launch CuaDriver.
259
+
260
+ A separately authorized Windows x64 smoke test used this branch's compiled
261
+ computer tools with the real pinned runtime. It launched a new blank Notepad
262
+ window, captured that exact window, and typed a fixed 39-character phrase using
263
+ background delivery. The post-action screenshot showed the complete expected
264
+ text and character count. The driver's outcome remained `unverifiable`; the
265
+ image established the application effect. `computer_end` confirmed shutdown and
266
+ released the desktop lease. No document was saved or installed CLI changed.
267
+ This verifies basic launch, window capture and background text input only.
268
+ A later Windows x64 test on an owned scratch Notepad window found that background
269
+ Ctrl+A failed with `tool_invocation_failed`; a fresh image showed no selection.
270
+ A fresh-token `foreground=true` retry initially returned the same XAML/UIA error.
271
+ Pinned upstream source at `d8028a7943087ee258dc1b4d19dc12a7cd27669c`
272
+ routes `hotkey` for a XAML window through UIA before checking `delivery_mode`.
273
+ This native refusal was not a `background_unavailable` code. The unchanged
274
+ screenshot established that the background shortcut had not selected the text.
275
+
276
+ The Windows workflow now sends foreground modifier shortcuts without x/y through
277
+ that pin's `press_key` with `modifiers`, whose foreground branch uses verified
278
+ window focus and SendInput. Background shortcuts, keys with image coordinates,
279
+ and non-Windows dispatch remain unchanged. On a subsequent parent-run test,
280
+ foreground Ctrl+A selected all 39 characters in the same owned Notepad scratch;
281
+ its post-action image showed the selection. Foreground Ctrl+N then opened a
282
+ blank unsaved tab in that window, leaving the earlier scratch tab intact.
283
+
284
+ The parent next cancelled a 2048-character `computer_text` call 86 ms after the
285
+ real SDK call began, while it was still pending. The result reported
286
+ `input_dispatch_failed`, `input:uncertain` and `cleanup:confirmed`. The native
287
+ runtime exited and its desktop lease was absent before a fresh workflow captured
288
+ the same owned window. That image showed exactly six characters in the new tab.
289
+ This verifies partial text input followed by in-flight cancellation, cleanup and
290
+ reacquisition, not a pre-dispatch cancellation or complete text delivery.
291
+ `computer_end` shut down the new runtime and released its lease. Both tabs
292
+ remained unsaved; other user documents were untouched. No global CLI changed.
293
+ The complete-gesture tool API did not exercise held modifier or mouse-button
294
+ release under abort, which remains unverified.
295
+
296
+ The dev integration passed all five offline package builds, the Node bundle,
297
+ 265 focused tests across 23 suites, and eight archive/package tests. A real
298
+ Photon fixture checks cropped pixels and coordinate mapping. First-paint and
299
+ first-request checks passed with the regenerated supported-host fingerprint;
300
+ removing only `computer_load` reproduced the unchanged unsupported-host baseline.
301
+ Seven local dev tarballs passed relocated installation, OS/CPU payload selection,
302
+ omitted-optional handling, and installer-lock checks. The dev publication workflow
303
+ also passed. These historical results describe the dev integration. The current branch's
304
+ stable packaging checks are recorded above.
305
+
306
+ The user reported testing the published dev build; specific applications and
307
+ scenarios were not supplied. This does not establish full platform acceptance.
308
+ Native gates remain Windows locked/UAC/integrity states, other Electron/native
309
+ apps, display scaling and moved/resized windows, Unicode, held modifier/button
310
+ release under abort, and macOS TCC/LaunchServices/FIFO/shutdown on hardware.
311
+ Provider-driven computer tool choice has not been live-qualified. Cursor/runtime
312
+ changes need a separate scoped decision before implementation. Provider token
313
+ savings remain unmeasured. An offline fake-driver discovery comparison finds a
314
+ named app at row 118 of 139 synthetic apps in one query instead of three
315
+ unfiltered pages. It
316
+ returns one identity instead of 139 and 147 result-text characters instead of
317
+ 8699. The loaded computer-tool definitions grow by 230 serialized characters;
318
+ the first-request definitions are unchanged because detailed tools load on demand.
319
+ These are call and text-payload measurements, not model tokens or billing. The
320
+ comparison uses no desktop, provider, screenshot resizing, or history pruning.
321
+
322
+ ## Privacy
323
+
324
+ Images, window titles, and typed text can enter selected-provider requests and
325
+ saved sessions. Disabling driver telemetry does not disable lunR session storage.
326
+ GUI changes are outside filesystem rollback. Application content is untrusted
327
+ task data, never authorization. OS permissions, locked desktops, UAC, and
328
+ integrity restrictions still apply.