@0xmaxma/claude-gateway 2.0.9 → 2.0.11

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 (404) hide show
  1. package/README.md +16 -1
  2. package/config.template.json +6 -4
  3. package/dist/agent/runner.d.ts +126 -11
  4. package/dist/agent/runner.d.ts.map +1 -1
  5. package/dist/agent/runner.js +102 -10
  6. package/dist/agent/runner.js.map +1 -1
  7. package/dist/agent/skill-learning/reviewer.d.ts.map +1 -1
  8. package/dist/agent/skill-learning/reviewer.js +1 -2
  9. package/dist/agent/skill-learning/reviewer.js.map +1 -1
  10. package/dist/api/browser-bindings-router.d.ts +6 -0
  11. package/dist/api/browser-bindings-router.d.ts.map +1 -0
  12. package/dist/api/browser-bindings-router.js +150 -0
  13. package/dist/api/browser-bindings-router.js.map +1 -0
  14. package/dist/api/capabilities.d.ts +53 -0
  15. package/dist/api/capabilities.d.ts.map +1 -0
  16. package/dist/api/capabilities.js +66 -0
  17. package/dist/api/capabilities.js.map +1 -0
  18. package/dist/api/connectors-router.js +1 -1
  19. package/dist/api/connectors-router.js.map +1 -1
  20. package/dist/api/gateway-router.d.ts.map +1 -1
  21. package/dist/api/gateway-router.js +38 -14
  22. package/dist/api/gateway-router.js.map +1 -1
  23. package/dist/api/gateway-version.d.ts +9 -0
  24. package/dist/api/gateway-version.d.ts.map +1 -0
  25. package/dist/api/gateway-version.js +57 -0
  26. package/dist/api/gateway-version.js.map +1 -0
  27. package/dist/api/jev-router.d.ts +8 -0
  28. package/dist/api/jev-router.d.ts.map +1 -0
  29. package/dist/api/jev-router.js +128 -0
  30. package/dist/api/jev-router.js.map +1 -0
  31. package/dist/api/router.d.ts.map +1 -1
  32. package/dist/api/router.js +53 -6
  33. package/dist/api/router.js.map +1 -1
  34. package/dist/api/voice-router.d.ts.map +1 -1
  35. package/dist/api/voice-router.js +42 -3
  36. package/dist/api/voice-router.js.map +1 -1
  37. package/dist/automation/browser-command.d.ts +79 -0
  38. package/dist/automation/browser-command.d.ts.map +1 -0
  39. package/dist/automation/browser-command.js +118 -0
  40. package/dist/automation/browser-command.js.map +1 -0
  41. package/dist/automation/browser-outcome.d.ts +3 -0
  42. package/dist/automation/browser-outcome.d.ts.map +1 -0
  43. package/dist/automation/browser-outcome.js +78 -0
  44. package/dist/automation/browser-outcome.js.map +1 -0
  45. package/dist/automation/browser-steps.d.ts +33 -0
  46. package/dist/automation/browser-steps.d.ts.map +1 -0
  47. package/dist/automation/browser-steps.js +293 -0
  48. package/dist/automation/browser-steps.js.map +1 -0
  49. package/dist/automation/browser-trace.d.ts +60 -0
  50. package/dist/automation/browser-trace.d.ts.map +1 -0
  51. package/dist/automation/browser-trace.js +24 -0
  52. package/dist/automation/browser-trace.js.map +1 -0
  53. package/dist/automation/browser-use.d.ts +210 -0
  54. package/dist/automation/browser-use.d.ts.map +1 -0
  55. package/dist/automation/browser-use.js +1271 -0
  56. package/dist/automation/browser-use.js.map +1 -0
  57. package/dist/automation/command-speech.d.ts +33 -0
  58. package/dist/automation/command-speech.d.ts.map +1 -0
  59. package/dist/automation/command-speech.js +117 -0
  60. package/dist/automation/command-speech.js.map +1 -0
  61. package/dist/automation/command-steps.d.ts +35 -0
  62. package/dist/automation/command-steps.d.ts.map +1 -0
  63. package/dist/automation/command-steps.js +155 -0
  64. package/dist/automation/command-steps.js.map +1 -0
  65. package/dist/automation/computer-choice-ids.d.ts +7 -0
  66. package/dist/automation/computer-choice-ids.d.ts.map +1 -0
  67. package/dist/automation/computer-choice-ids.js +24 -0
  68. package/dist/automation/computer-choice-ids.js.map +1 -0
  69. package/dist/automation/computer-command.d.ts +126 -0
  70. package/dist/automation/computer-command.d.ts.map +1 -0
  71. package/dist/automation/computer-command.js +313 -0
  72. package/dist/automation/computer-command.js.map +1 -0
  73. package/dist/automation/computer-outcome.d.ts +8 -0
  74. package/dist/automation/computer-outcome.d.ts.map +1 -0
  75. package/dist/automation/computer-outcome.js +82 -0
  76. package/dist/automation/computer-outcome.js.map +1 -0
  77. package/dist/automation/computer-policy.d.ts +84 -0
  78. package/dist/automation/computer-policy.d.ts.map +1 -0
  79. package/dist/automation/computer-policy.js +56 -0
  80. package/dist/automation/computer-policy.js.map +1 -0
  81. package/dist/automation/computer-safety.d.ts +27 -0
  82. package/dist/automation/computer-safety.d.ts.map +1 -0
  83. package/dist/automation/computer-safety.js +47 -0
  84. package/dist/automation/computer-safety.js.map +1 -0
  85. package/dist/automation/computer-steps.d.ts +20 -0
  86. package/dist/automation/computer-steps.d.ts.map +1 -0
  87. package/dist/automation/computer-steps.js +251 -0
  88. package/dist/automation/computer-steps.js.map +1 -0
  89. package/dist/automation/computer-use.d.ts +315 -0
  90. package/dist/automation/computer-use.d.ts.map +1 -0
  91. package/dist/automation/computer-use.js +864 -0
  92. package/dist/automation/computer-use.js.map +1 -0
  93. package/dist/automation/direct-command.d.ts +51 -0
  94. package/dist/automation/direct-command.d.ts.map +1 -0
  95. package/dist/automation/direct-command.js +152 -0
  96. package/dist/automation/direct-command.js.map +1 -0
  97. package/dist/automation/interrupt.d.ts +4 -0
  98. package/dist/automation/interrupt.d.ts.map +1 -0
  99. package/dist/automation/interrupt.js +26 -0
  100. package/dist/automation/interrupt.js.map +1 -0
  101. package/dist/build-provenance.json +4 -4
  102. package/dist/child-env-exclusions.d.ts +4 -0
  103. package/dist/child-env-exclusions.d.ts.map +1 -0
  104. package/dist/child-env-exclusions.js +23 -0
  105. package/dist/child-env-exclusions.js.map +1 -0
  106. package/dist/cli/startup-diagnostics.d.ts.map +1 -1
  107. package/dist/cli/startup-diagnostics.js +19 -0
  108. package/dist/cli/startup-diagnostics.js.map +1 -1
  109. package/dist/config/loader.d.ts.map +1 -1
  110. package/dist/config/loader.js +4 -0
  111. package/dist/config/loader.js.map +1 -1
  112. package/dist/config/reload-policy.d.ts.map +1 -1
  113. package/dist/config/reload-policy.js +2 -1
  114. package/dist/config/reload-policy.js.map +1 -1
  115. package/dist/jev/automatic-browser-bindings.d.ts +15 -0
  116. package/dist/jev/automatic-browser-bindings.d.ts.map +1 -0
  117. package/dist/jev/automatic-browser-bindings.js +115 -0
  118. package/dist/jev/automatic-browser-bindings.js.map +1 -0
  119. package/dist/jev/browser-connector.d.ts +29 -0
  120. package/dist/jev/browser-connector.d.ts.map +1 -0
  121. package/dist/jev/browser-connector.js +347 -0
  122. package/dist/jev/browser-connector.js.map +1 -0
  123. package/dist/jev/browser-consent.d.ts +6 -0
  124. package/dist/jev/browser-consent.d.ts.map +1 -0
  125. package/dist/jev/browser-consent.js +50 -0
  126. package/dist/jev/browser-consent.js.map +1 -0
  127. package/dist/jev/browser-contract.d.ts +215 -0
  128. package/dist/jev/browser-contract.d.ts.map +1 -0
  129. package/dist/jev/browser-contract.js +10 -0
  130. package/dist/jev/browser-contract.js.map +1 -0
  131. package/dist/jev/browser-evidence-summary.d.ts +73 -0
  132. package/dist/jev/browser-evidence-summary.d.ts.map +1 -0
  133. package/dist/jev/browser-evidence-summary.js +22 -0
  134. package/dist/jev/browser-evidence-summary.js.map +1 -0
  135. package/dist/jev/browser-module-import.d.ts +3 -0
  136. package/dist/jev/browser-module-import.d.ts.map +1 -0
  137. package/dist/jev/browser-module-import.js +6 -0
  138. package/dist/jev/browser-module-import.js.map +1 -0
  139. package/dist/jev/child-env.d.ts +11 -0
  140. package/dist/jev/child-env.d.ts.map +1 -0
  141. package/dist/jev/child-env.js +60 -0
  142. package/dist/jev/child-env.js.map +1 -0
  143. package/dist/jev/computer-connector.d.ts +34 -0
  144. package/dist/jev/computer-connector.d.ts.map +1 -0
  145. package/dist/jev/computer-connector.js +82 -0
  146. package/dist/jev/computer-connector.js.map +1 -0
  147. package/dist/jev/computer-inputs.d.ts +41 -0
  148. package/dist/jev/computer-inputs.d.ts.map +1 -0
  149. package/dist/jev/computer-inputs.js +7 -0
  150. package/dist/jev/computer-inputs.js.map +1 -0
  151. package/dist/jev/index.d.ts +6 -0
  152. package/dist/jev/index.d.ts.map +1 -0
  153. package/dist/jev/index.js +25 -0
  154. package/dist/jev/index.js.map +1 -0
  155. package/dist/jev/relay-grants.d.ts +9 -0
  156. package/dist/jev/relay-grants.d.ts.map +1 -0
  157. package/dist/jev/relay-grants.js +49 -0
  158. package/dist/jev/relay-grants.js.map +1 -0
  159. package/dist/jev/service.d.ts +27 -0
  160. package/dist/jev/service.d.ts.map +1 -0
  161. package/dist/jev/service.js +264 -0
  162. package/dist/jev/service.js.map +1 -0
  163. package/dist/jev/thinking-provider.d.ts +7 -0
  164. package/dist/jev/thinking-provider.d.ts.map +1 -0
  165. package/dist/jev/thinking-provider.js +25 -0
  166. package/dist/jev/thinking-provider.js.map +1 -0
  167. package/dist/jev/types.d.ts +124 -0
  168. package/dist/jev/types.d.ts.map +1 -0
  169. package/dist/jev/types.js +13 -0
  170. package/dist/jev/types.js.map +1 -0
  171. package/dist/jev/validation.d.ts +45 -0
  172. package/dist/jev/validation.d.ts.map +1 -0
  173. package/dist/jev/validation.js +179 -0
  174. package/dist/jev/validation.js.map +1 -0
  175. package/dist/load-dotenv.d.ts.map +1 -1
  176. package/dist/load-dotenv.js +5 -1
  177. package/dist/load-dotenv.js.map +1 -1
  178. package/dist/orchestration/agent-tool-schemas.d.ts.map +1 -1
  179. package/dist/orchestration/agent-tool-schemas.js +12 -7
  180. package/dist/orchestration/agent-tool-schemas.js.map +1 -1
  181. package/dist/orchestration/background-work.d.ts +1 -0
  182. package/dist/orchestration/background-work.d.ts.map +1 -1
  183. package/dist/orchestration/background-work.js +1 -0
  184. package/dist/orchestration/background-work.js.map +1 -1
  185. package/dist/orchestration/bridge.d.ts +4 -0
  186. package/dist/orchestration/bridge.d.ts.map +1 -1
  187. package/dist/orchestration/bridge.js +227 -41
  188. package/dist/orchestration/bridge.js.map +1 -1
  189. package/dist/orchestration/browser-fields.d.ts +25 -0
  190. package/dist/orchestration/browser-fields.d.ts.map +1 -0
  191. package/dist/orchestration/browser-fields.js +23 -0
  192. package/dist/orchestration/browser-fields.js.map +1 -0
  193. package/dist/orchestration/browser-routing.d.ts +1 -1
  194. package/dist/orchestration/browser-routing.d.ts.map +1 -1
  195. package/dist/orchestration/browser-routing.js +7 -3
  196. package/dist/orchestration/browser-routing.js.map +1 -1
  197. package/dist/orchestration/capabilities.d.ts +5 -2
  198. package/dist/orchestration/capabilities.d.ts.map +1 -1
  199. package/dist/orchestration/capabilities.js +24 -24
  200. package/dist/orchestration/capabilities.js.map +1 -1
  201. package/dist/orchestration/channel-controls.js +1 -1
  202. package/dist/orchestration/channel-controls.js.map +1 -1
  203. package/dist/orchestration/cli-skills.d.ts +1 -1
  204. package/dist/orchestration/cli-skills.d.ts.map +1 -1
  205. package/dist/orchestration/cli-skills.js +16 -10
  206. package/dist/orchestration/cli-skills.js.map +1 -1
  207. package/dist/orchestration/computer-end-screenshot.d.ts +11 -0
  208. package/dist/orchestration/computer-end-screenshot.d.ts.map +1 -0
  209. package/dist/orchestration/computer-end-screenshot.js +37 -0
  210. package/dist/orchestration/computer-end-screenshot.js.map +1 -0
  211. package/dist/orchestration/computer-prompt.d.ts +6 -0
  212. package/dist/orchestration/computer-prompt.d.ts.map +1 -0
  213. package/dist/orchestration/computer-prompt.js +24 -0
  214. package/dist/orchestration/computer-prompt.js.map +1 -0
  215. package/dist/orchestration/config.d.ts +17 -0
  216. package/dist/orchestration/config.d.ts.map +1 -1
  217. package/dist/orchestration/config.js +10 -4
  218. package/dist/orchestration/config.js.map +1 -1
  219. package/dist/orchestration/container-tool-schemas.d.ts +47 -3
  220. package/dist/orchestration/container-tool-schemas.d.ts.map +1 -1
  221. package/dist/orchestration/container-tool-schemas.js +41 -6
  222. package/dist/orchestration/container-tool-schemas.js.map +1 -1
  223. package/dist/orchestration/container.d.ts +4 -1
  224. package/dist/orchestration/container.d.ts.map +1 -1
  225. package/dist/orchestration/container.js +48 -29
  226. package/dist/orchestration/container.js.map +1 -1
  227. package/dist/orchestration/context-footprint.d.ts +1 -1
  228. package/dist/orchestration/context-footprint.d.ts.map +1 -1
  229. package/dist/orchestration/context-footprint.js +5 -5
  230. package/dist/orchestration/context-footprint.js.map +1 -1
  231. package/dist/orchestration/control-notification.d.ts +6 -0
  232. package/dist/orchestration/control-notification.d.ts.map +1 -0
  233. package/dist/orchestration/control-notification.js +23 -0
  234. package/dist/orchestration/control-notification.js.map +1 -0
  235. package/dist/orchestration/dashboard-reader-worker.js +2 -2
  236. package/dist/orchestration/dashboard-reader-worker.js.map +1 -1
  237. package/dist/orchestration/execution-observation.d.ts +3 -0
  238. package/dist/orchestration/execution-observation.d.ts.map +1 -1
  239. package/dist/orchestration/execution-observation.js.map +1 -1
  240. package/dist/orchestration/gateway-tasks/browser.d.ts +59 -0
  241. package/dist/orchestration/gateway-tasks/browser.d.ts.map +1 -0
  242. package/dist/orchestration/gateway-tasks/browser.js +426 -0
  243. package/dist/orchestration/gateway-tasks/browser.js.map +1 -0
  244. package/dist/orchestration/gateway-tasks/computer-context.d.ts +6 -0
  245. package/dist/orchestration/gateway-tasks/computer-context.d.ts.map +1 -0
  246. package/dist/orchestration/gateway-tasks/computer-context.js +19 -0
  247. package/dist/orchestration/gateway-tasks/computer-context.js.map +1 -0
  248. package/dist/orchestration/gateway-tasks/computer.d.ts +123 -0
  249. package/dist/orchestration/gateway-tasks/computer.d.ts.map +1 -0
  250. package/dist/orchestration/gateway-tasks/computer.js +519 -0
  251. package/dist/orchestration/gateway-tasks/computer.js.map +1 -0
  252. package/dist/orchestration/gateway-tasks/controller.d.ts +40 -6
  253. package/dist/orchestration/gateway-tasks/controller.d.ts.map +1 -1
  254. package/dist/orchestration/gateway-tasks/controller.js +118 -12
  255. package/dist/orchestration/gateway-tasks/controller.js.map +1 -1
  256. package/dist/orchestration/gateway-tasks/safemode.d.ts.map +1 -1
  257. package/dist/orchestration/gateway-tasks/safemode.js +2 -1
  258. package/dist/orchestration/gateway-tasks/safemode.js.map +1 -1
  259. package/dist/orchestration/jev-gateway.d.ts +25 -0
  260. package/dist/orchestration/jev-gateway.d.ts.map +1 -0
  261. package/dist/orchestration/jev-gateway.js +103 -0
  262. package/dist/orchestration/jev-gateway.js.map +1 -0
  263. package/dist/orchestration/jev-tool.d.ts +45 -0
  264. package/dist/orchestration/jev-tool.d.ts.map +1 -0
  265. package/dist/orchestration/jev-tool.js +10 -0
  266. package/dist/orchestration/jev-tool.js.map +1 -0
  267. package/dist/orchestration/live-execution-input.d.ts +26 -0
  268. package/dist/orchestration/live-execution-input.d.ts.map +1 -0
  269. package/dist/orchestration/live-execution-input.js +70 -0
  270. package/dist/orchestration/live-execution-input.js.map +1 -0
  271. package/dist/orchestration/notification-mailbox.d.ts.map +1 -1
  272. package/dist/orchestration/notification-mailbox.js +5 -2
  273. package/dist/orchestration/notification-mailbox.js.map +1 -1
  274. package/dist/orchestration/process-activity.d.ts +4 -2
  275. package/dist/orchestration/process-activity.d.ts.map +1 -1
  276. package/dist/orchestration/process-activity.js +31 -42
  277. package/dist/orchestration/process-activity.js.map +1 -1
  278. package/dist/orchestration/process-platform.d.ts +72 -0
  279. package/dist/orchestration/process-platform.d.ts.map +1 -0
  280. package/dist/orchestration/process-platform.js +396 -0
  281. package/dist/orchestration/process-platform.js.map +1 -0
  282. package/dist/orchestration/process-supervisor.d.ts +31 -7
  283. package/dist/orchestration/process-supervisor.d.ts.map +1 -1
  284. package/dist/orchestration/process-supervisor.js +89 -61
  285. package/dist/orchestration/process-supervisor.js.map +1 -1
  286. package/dist/orchestration/process-turn.d.ts +8 -0
  287. package/dist/orchestration/process-turn.d.ts.map +1 -1
  288. package/dist/orchestration/process-turn.js +97 -13
  289. package/dist/orchestration/process-turn.js.map +1 -1
  290. package/dist/orchestration/progress-review.d.ts +1 -1
  291. package/dist/orchestration/progress-review.d.ts.map +1 -1
  292. package/dist/orchestration/progress-review.js +5 -1
  293. package/dist/orchestration/progress-review.js.map +1 -1
  294. package/dist/orchestration/report-fidelity.d.ts +31 -0
  295. package/dist/orchestration/report-fidelity.d.ts.map +1 -0
  296. package/dist/orchestration/report-fidelity.js +34 -0
  297. package/dist/orchestration/report-fidelity.js.map +1 -0
  298. package/dist/orchestration/response-errors.d.ts.map +1 -1
  299. package/dist/orchestration/response-errors.js +1 -0
  300. package/dist/orchestration/response-errors.js.map +1 -1
  301. package/dist/orchestration/runtime.d.ts +51 -1
  302. package/dist/orchestration/runtime.d.ts.map +1 -1
  303. package/dist/orchestration/runtime.js +404 -33
  304. package/dist/orchestration/runtime.js.map +1 -1
  305. package/dist/orchestration/skill-catalog-budget.d.ts +6 -0
  306. package/dist/orchestration/skill-catalog-budget.d.ts.map +1 -0
  307. package/dist/orchestration/skill-catalog-budget.js +9 -0
  308. package/dist/orchestration/skill-catalog-budget.js.map +1 -0
  309. package/dist/orchestration/skills.d.ts +4 -2
  310. package/dist/orchestration/skills.d.ts.map +1 -1
  311. package/dist/orchestration/skills.js +44 -3
  312. package/dist/orchestration/skills.js.map +1 -1
  313. package/dist/orchestration/speech.d.ts +1 -1
  314. package/dist/orchestration/speech.d.ts.map +1 -1
  315. package/dist/orchestration/speech.js +1 -1
  316. package/dist/orchestration/store.d.ts +1 -0
  317. package/dist/orchestration/store.d.ts.map +1 -1
  318. package/dist/orchestration/store.js +2 -0
  319. package/dist/orchestration/store.js.map +1 -1
  320. package/dist/orchestration/task-controls.d.ts +78 -8
  321. package/dist/orchestration/task-controls.d.ts.map +1 -1
  322. package/dist/orchestration/task-controls.js +6 -1
  323. package/dist/orchestration/task-controls.js.map +1 -1
  324. package/dist/orchestration/task-questions.js +2 -2
  325. package/dist/orchestration/task-questions.js.map +1 -1
  326. package/dist/orchestration/tasks/automation-session.d.ts +25 -0
  327. package/dist/orchestration/tasks/automation-session.d.ts.map +1 -0
  328. package/dist/orchestration/tasks/automation-session.js +68 -0
  329. package/dist/orchestration/tasks/automation-session.js.map +1 -0
  330. package/dist/orchestration/tasks/driver.d.ts.map +1 -1
  331. package/dist/orchestration/tasks/driver.js +7 -5
  332. package/dist/orchestration/tasks/driver.js.map +1 -1
  333. package/dist/orchestration/tasks/failure.d.ts +6 -0
  334. package/dist/orchestration/tasks/failure.d.ts.map +1 -1
  335. package/dist/orchestration/tasks/failure.js +26 -2
  336. package/dist/orchestration/tasks/failure.js.map +1 -1
  337. package/dist/orchestration/tasks/scheduler.d.ts +1 -1
  338. package/dist/orchestration/tasks/scheduler.d.ts.map +1 -1
  339. package/dist/orchestration/tasks/scheduler.js +3 -1
  340. package/dist/orchestration/tasks/scheduler.js.map +1 -1
  341. package/dist/orchestration/tasks/service.d.ts +68 -7
  342. package/dist/orchestration/tasks/service.d.ts.map +1 -1
  343. package/dist/orchestration/tasks/service.js +647 -45
  344. package/dist/orchestration/tasks/service.js.map +1 -1
  345. package/dist/orchestration/types.d.ts +90 -3
  346. package/dist/orchestration/types.d.ts.map +1 -1
  347. package/dist/orchestration/types.js.map +1 -1
  348. package/dist/safemode/native.d.ts.map +1 -1
  349. package/dist/safemode/native.js +8 -3
  350. package/dist/safemode/native.js.map +1 -1
  351. package/dist/session/claude-bin.d.ts +29 -0
  352. package/dist/session/claude-bin.d.ts.map +1 -1
  353. package/dist/session/claude-bin.js +63 -12
  354. package/dist/session/claude-bin.js.map +1 -1
  355. package/dist/session/codex-extension-discovery.d.ts.map +1 -1
  356. package/dist/session/codex-extension-discovery.js +4 -2
  357. package/dist/session/codex-extension-discovery.js.map +1 -1
  358. package/dist/session/codex-native-mcp-client.d.ts.map +1 -1
  359. package/dist/session/codex-native-mcp-client.js +2 -1
  360. package/dist/session/codex-native-mcp-client.js.map +1 -1
  361. package/dist/session/codex-process.d.ts +4 -0
  362. package/dist/session/codex-process.d.ts.map +1 -1
  363. package/dist/session/codex-process.js +16 -6
  364. package/dist/session/codex-process.js.map +1 -1
  365. package/dist/session/compactor.d.ts.map +1 -1
  366. package/dist/session/compactor.js +1 -2
  367. package/dist/session/compactor.js.map +1 -1
  368. package/dist/session/process.d.ts +18 -0
  369. package/dist/session/process.d.ts.map +1 -1
  370. package/dist/session/process.js +175 -67
  371. package/dist/session/process.js.map +1 -1
  372. package/dist/session/runtime-profile.d.ts +18 -0
  373. package/dist/session/runtime-profile.d.ts.map +1 -1
  374. package/dist/session/runtime-profile.js +23 -0
  375. package/dist/session/runtime-profile.js.map +1 -1
  376. package/dist/session/worker-extensions.d.ts.map +1 -1
  377. package/dist/session/worker-extensions.js +4 -3
  378. package/dist/session/worker-extensions.js.map +1 -1
  379. package/dist/shell/claude-pty-shell.js +5 -4
  380. package/dist/shell/claude-pty-shell.js.map +1 -1
  381. package/dist/types.d.ts +5 -0
  382. package/dist/types.d.ts.map +1 -1
  383. package/dist/ui/dashboard-client.d.ts.map +1 -1
  384. package/dist/ui/dashboard-client.js +33 -3
  385. package/dist/ui/dashboard-client.js.map +1 -1
  386. package/dist/ui/web-ui.js +1 -1
  387. package/dist/utils/paths.d.ts +8 -0
  388. package/dist/utils/paths.d.ts.map +1 -1
  389. package/dist/utils/paths.js +11 -0
  390. package/dist/utils/paths.js.map +1 -1
  391. package/lib/automation/browser-thinking.cjs +9 -0
  392. package/lib/automation/browser-thinking.d.cts +2 -0
  393. package/lib/automation/computer-thinking.cjs +10 -0
  394. package/lib/automation/computer-thinking.d.cts +2 -0
  395. package/lib/automation/index.cjs +47 -0
  396. package/lib/automation/index.d.cts +3 -0
  397. package/lib/automation/reasoning-instructions.cjs +5 -0
  398. package/lib/automation/thinking.cjs +35 -0
  399. package/lib/automation/thinking.d.cts +2 -0
  400. package/mcp/capability-catalog.ts +2 -2
  401. package/mcp/server.ts +1 -1
  402. package/mcp/tools/tasks/module.ts +9 -0
  403. package/mcp/tools/telegram/receiver-server.ts +4 -2
  404. package/package.json +6 -4
@@ -0,0 +1,315 @@
1
+ import { z } from 'zod';
2
+ export declare const COMPUTER_USE_CONTRACT_VERSION = 1;
3
+ /** Named commands a helper runs as one guarded keyboard shortcut (standard_command). */
4
+ export declare const STANDARD_SHORTCUTS: readonly ["tab:new", "address:focus", "tab:close", "app:quit"];
5
+ export declare const ComputerObservation: z.ZodPipe<z.ZodObject<{
6
+ contractVersion: z.ZodCatch<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
7
+ capabilities: z.ZodCatch<z.ZodOptional<z.ZodObject<{
8
+ standardCommands: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
+ keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
+ }, z.core.$strip>>>;
11
+ standardCommand: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
12
+ "scroll:up": "scroll:up";
13
+ "scroll:down": "scroll:down";
14
+ "close:window": "close:window";
15
+ "tab:new": "tab:new";
16
+ "address:focus": "address:focus";
17
+ "tab:close": "tab:close";
18
+ "app:quit": "app:quit";
19
+ }>>>;
20
+ scrollAreas: z.ZodOptional<z.ZodArray<z.ZodObject<{
21
+ ref: z.ZodString;
22
+ label: z.ZodString;
23
+ bounds: z.ZodObject<{
24
+ x: z.ZodNumber;
25
+ y: z.ZodNumber;
26
+ width: z.ZodNumber;
27
+ height: z.ZodNumber;
28
+ }, z.core.$strip>;
29
+ }, z.core.$strip>>>;
30
+ supportedActions: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodEnum<{
31
+ "scroll:up": "scroll:up";
32
+ "scroll:down": "scroll:down";
33
+ "navigate:back": "navigate:back";
34
+ "navigate:forward": "navigate:forward";
35
+ }>>, unknown>>;
36
+ screenshotAvailable: z.ZodOptional<z.ZodBoolean>;
37
+ screenshotRestriction: z.ZodOptional<z.ZodString>;
38
+ observationStats: z.ZodOptional<z.ZodObject<{
39
+ visited: z.ZodNumber;
40
+ candidates: z.ZodNumber;
41
+ exported: z.ZodNumber;
42
+ incomplete: z.ZodBoolean;
43
+ }, z.core.$strip>>;
44
+ generation: z.ZodString;
45
+ application: z.ZodString;
46
+ controls: z.ZodArray<z.ZodObject<{
47
+ identity: z.ZodOptional<z.ZodString>;
48
+ bounds: z.ZodOptional<z.ZodObject<{
49
+ x: z.ZodNumber;
50
+ y: z.ZodNumber;
51
+ width: z.ZodNumber;
52
+ height: z.ZodNumber;
53
+ }, z.core.$strip>>;
54
+ ref: z.ZodString;
55
+ label: z.ZodString;
56
+ context: z.ZodOptional<z.ZodString>;
57
+ role: z.ZodString;
58
+ value: z.ZodOptional<z.ZodString>;
59
+ focused: z.ZodOptional<z.ZodBoolean>;
60
+ actions: z.ZodPreprocess<z.ZodArray<z.ZodEnum<{
61
+ type: "type";
62
+ press: "press";
63
+ }>>, unknown>;
64
+ sensitive: z.ZodOptional<z.ZodBoolean>;
65
+ }, z.core.$strip>>;
66
+ focusedControl: z.ZodOptional<z.ZodObject<{
67
+ ref: z.ZodOptional<z.ZodString>;
68
+ role: z.ZodString;
69
+ label: z.ZodString;
70
+ sensitive: z.ZodOptional<z.ZodBoolean>;
71
+ }, z.core.$strip>>;
72
+ windowTitle: z.ZodOptional<z.ZodString>;
73
+ text: z.ZodOptional<z.ZodArray<z.ZodString>>;
74
+ truncated: z.ZodBoolean;
75
+ platform: z.ZodOptional<z.ZodObject<{
76
+ os: z.ZodString;
77
+ osVersion: z.ZodString;
78
+ appVersion: z.ZodOptional<z.ZodString>;
79
+ helperVersion: z.ZodOptional<z.ZodString>;
80
+ helperBuild: z.ZodOptional<z.ZodString>;
81
+ helperCommit: z.ZodOptional<z.ZodString>;
82
+ }, z.core.$strip>>;
83
+ apps: z.ZodArray<z.ZodObject<{
84
+ id: z.ZodString;
85
+ name: z.ZodString;
86
+ }, z.core.$strip>>;
87
+ }, z.core.$strip>, z.ZodTransform<{
88
+ generation: string;
89
+ application: string;
90
+ controls: {
91
+ ref: string;
92
+ label: string;
93
+ role: string;
94
+ actions: ("type" | "press")[];
95
+ identity?: string | undefined;
96
+ bounds?: {
97
+ x: number;
98
+ y: number;
99
+ width: number;
100
+ height: number;
101
+ } | undefined;
102
+ context?: string | undefined;
103
+ value?: string | undefined;
104
+ focused?: boolean | undefined;
105
+ sensitive?: boolean | undefined;
106
+ }[];
107
+ truncated: boolean;
108
+ apps: {
109
+ id: string;
110
+ name: string;
111
+ }[];
112
+ contractVersion?: string | number | undefined;
113
+ capabilities?: {
114
+ standardCommands?: string[] | undefined;
115
+ keys?: string[] | undefined;
116
+ } | undefined;
117
+ standardCommand?: "scroll:up" | "scroll:down" | "close:window" | "tab:new" | "address:focus" | "tab:close" | "app:quit" | undefined;
118
+ scrollAreas?: {
119
+ ref: string;
120
+ label: string;
121
+ bounds: {
122
+ x: number;
123
+ y: number;
124
+ width: number;
125
+ height: number;
126
+ };
127
+ }[] | undefined;
128
+ supportedActions?: ("scroll:up" | "scroll:down" | "navigate:back" | "navigate:forward")[] | undefined;
129
+ screenshotAvailable?: boolean | undefined;
130
+ screenshotRestriction?: string | undefined;
131
+ observationStats?: {
132
+ visited: number;
133
+ candidates: number;
134
+ exported: number;
135
+ incomplete: boolean;
136
+ } | undefined;
137
+ focusedControl?: {
138
+ role: string;
139
+ label: string;
140
+ ref?: string | undefined;
141
+ sensitive?: boolean | undefined;
142
+ } | undefined;
143
+ windowTitle?: string | undefined;
144
+ text?: string[] | undefined;
145
+ platform?: {
146
+ os: string;
147
+ osVersion: string;
148
+ appVersion?: string | undefined;
149
+ helperVersion?: string | undefined;
150
+ helperBuild?: string | undefined;
151
+ helperCommit?: string | undefined;
152
+ } | undefined;
153
+ }, {
154
+ generation: string;
155
+ application: string;
156
+ controls: {
157
+ ref: string;
158
+ label: string;
159
+ role: string;
160
+ actions: ("type" | "press")[];
161
+ identity?: string | undefined;
162
+ bounds?: {
163
+ x: number;
164
+ y: number;
165
+ width: number;
166
+ height: number;
167
+ } | undefined;
168
+ context?: string | undefined;
169
+ value?: string | undefined;
170
+ focused?: boolean | undefined;
171
+ sensitive?: boolean | undefined;
172
+ }[];
173
+ truncated: boolean;
174
+ apps: {
175
+ id: string;
176
+ name: string;
177
+ }[];
178
+ contractVersion?: string | number | undefined;
179
+ capabilities?: {
180
+ standardCommands?: string[] | undefined;
181
+ keys?: string[] | undefined;
182
+ } | undefined;
183
+ standardCommand?: "scroll:up" | "scroll:down" | "close:window" | "tab:new" | "address:focus" | "tab:close" | "app:quit" | undefined;
184
+ scrollAreas?: {
185
+ ref: string;
186
+ label: string;
187
+ bounds: {
188
+ x: number;
189
+ y: number;
190
+ width: number;
191
+ height: number;
192
+ };
193
+ }[] | undefined;
194
+ supportedActions?: ("scroll:up" | "scroll:down" | "navigate:back" | "navigate:forward")[] | undefined;
195
+ screenshotAvailable?: boolean | undefined;
196
+ screenshotRestriction?: string | undefined;
197
+ observationStats?: {
198
+ visited: number;
199
+ candidates: number;
200
+ exported: number;
201
+ incomplete: boolean;
202
+ } | undefined;
203
+ focusedControl?: {
204
+ role: string;
205
+ label: string;
206
+ ref?: string | undefined;
207
+ sensitive?: boolean | undefined;
208
+ } | undefined;
209
+ windowTitle?: string | undefined;
210
+ text?: string[] | undefined;
211
+ platform?: {
212
+ os: string;
213
+ osVersion: string;
214
+ appVersion?: string | undefined;
215
+ helperVersion?: string | undefined;
216
+ helperBuild?: string | undefined;
217
+ helperCommit?: string | undefined;
218
+ } | undefined;
219
+ }>>;
220
+ export type ComputerState = z.infer<typeof ComputerObservation>;
221
+ export interface GoalRevision {
222
+ revision: number;
223
+ goal: string;
224
+ }
225
+ /** Structural diagnostics only: no typed text, window contents or private field labels. */
226
+ export interface ComputerProgress {
227
+ sequence: number;
228
+ round: number;
229
+ at: number;
230
+ revision: number;
231
+ steps: number;
232
+ evaluations: number;
233
+ phase: 'observing' | 'observed' | 'evaluating' | 'decided' | 'thinking' | 'verifying' | 'acting' | 'acted' | 'waiting' | 'reconciling' | 'terminal';
234
+ application?: string;
235
+ appId?: string;
236
+ decisionMode?: 'jev' | 'thinking';
237
+ action?: 'open' | 'press' | 'type' | 'key' | 'scroll' | 'navigate' | 'WAIT' | 'DONE' | 'BLOCKED';
238
+ key?: string;
239
+ ref?: string;
240
+ role?: string;
241
+ targetGeneration?: string;
242
+ focused?: boolean;
243
+ operationId?: string;
244
+ requestId?: string;
245
+ confidence?: number;
246
+ elapsedMs?: number;
247
+ outcome?: 'completed' | 'not_executed' | 'unknown';
248
+ changed?: boolean;
249
+ reason?: string;
250
+ status?: ComputerUseResult['status'];
251
+ /** Which Jev response check failed (JEV_INVALID_RESPONSE); a fixed code, never response content. */
252
+ validationReason?: string;
253
+ }
254
+ /** A bounded diagnostic code from a Jev error; anything else is dropped. */
255
+ export declare const jevValidationReason: (error: unknown) => string | undefined;
256
+ export interface ComputerUseDependencies {
257
+ interruptSignal?: AbortSignal;
258
+ call(name: string, args: Record<string, unknown>, signal: AbortSignal): Promise<unknown>;
259
+ evaluate(request: {
260
+ state: unknown;
261
+ questions: Record<string, {
262
+ type: 'choice';
263
+ instructions: string | {
264
+ command: string;
265
+ question: string;
266
+ };
267
+ criteria: Record<string, string>;
268
+ }>;
269
+ requestId: string;
270
+ }, signal: AbortSignal): Promise<{
271
+ answers: Record<string, unknown>;
272
+ }>;
273
+ observation?: (state: ComputerState) => void;
274
+ snapshot?: (state: ComputerState, signal: AbortSignal) => Promise<void | {
275
+ error: string;
276
+ }>;
277
+ thinking?: (request: unknown, signal: AbortSignal) => Promise<unknown>;
278
+ latestGoal?: () => GoalRevision;
279
+ authorized: () => boolean;
280
+ beforeMutation: (operationId: string, action: unknown) => Promise<void> | void;
281
+ progress?: (event: ComputerProgress) => void;
282
+ verify?: (state: ComputerState, goal: string, signal: AbortSignal) => Promise<boolean>;
283
+ }
284
+ export interface ComputerUseResult {
285
+ status: 'succeeded' | 'needs_verification' | 'needs_input' | 'blocked' | 'cancelled' | 'needs_reconciliation';
286
+ reason: string;
287
+ revision: number;
288
+ steps: number;
289
+ evaluations: number;
290
+ trace: {
291
+ events: ComputerProgress[];
292
+ truncated: boolean;
293
+ };
294
+ operationId?: string;
295
+ observation?: ComputerState;
296
+ stepRun?: import('./computer-steps').ComputerStepRun;
297
+ lastAction?: ComputerLastAction;
298
+ }
299
+ /** The command's own interaction, for the owner's outcome line. Never typed text. */
300
+ export interface ComputerLastAction {
301
+ kind: string;
302
+ label?: string;
303
+ role?: string;
304
+ key?: string;
305
+ direction?: string;
306
+ appId?: string;
307
+ count?: number;
308
+ blocked?: boolean;
309
+ sequence?: string[];
310
+ planned?: number;
311
+ /** Not run: the agent's command chose a high-impact action and the user was asked to confirm it. */
312
+ confirm?: boolean;
313
+ }
314
+ export declare function runComputerUse(raw: unknown, deps: ComputerUseDependencies, signal: AbortSignal): Promise<ComputerUseResult>;
315
+ //# sourceMappingURL=computer-use.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computer-use.d.ts","sourceRoot":"","sources":["../../src/automation/computer-use.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAiB/C,wFAAwF;AACxF,eAAO,MAAM,kBAAkB,gEAA4D,CAAC;AAK5F,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAI9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAC,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAC9D,MAAM,WAAW,YAAY;IAAE,QAAQ,EAAC,MAAM,CAAC;IAAA,IAAI,EAAC,MAAM,CAAA;CAAC;AAC3D,2FAA2F;AAC3F,MAAM,WAAW,gBAAgB;IAChC,QAAQ,EAAC,MAAM,CAAC;IAAA,KAAK,EAAC,MAAM,CAAC;IAAA,EAAE,EAAC,MAAM,CAAC;IAAA,QAAQ,EAAC,MAAM,CAAC;IAAA,KAAK,EAAC,MAAM,CAAC;IAAA,WAAW,EAAC,MAAM,CAAC;IACvF,KAAK,EAAC,WAAW,GAAC,UAAU,GAAC,YAAY,GAAC,SAAS,GAAC,UAAU,GAAC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