remoteclaw 0.1.0-next.dbdff5b → 0.1.0-next.dc658d8

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 (999) hide show
  1. package/README.md +2 -2
  2. package/dist/accounts-Aqbb2_Fn.js +270 -0
  3. package/dist/accounts-Bo2bX8jP.js +272 -0
  4. package/dist/accounts-CjZ1n2KR.js +32 -0
  5. package/dist/accounts-D3fAPVzU.js +36 -0
  6. package/dist/accounts-DZmv4bXS.js +47 -0
  7. package/dist/accounts-DmB4SVPK.js +47 -0
  8. package/dist/accounts-DtkyfvwR.js +36 -0
  9. package/dist/ack-reactions-BqcZUQJ3.js +446 -0
  10. package/dist/ack-reactions-DXHaDBH-.js +446 -0
  11. package/dist/acp-cli-DVXhDMc6.js +1324 -0
  12. package/dist/acp-cli-QBL4_qcW.js +1319 -0
  13. package/dist/active-listener-CwxZ24bZ.js +37 -0
  14. package/dist/active-listener-v2sItamh.js +37 -0
  15. package/dist/agent-C5PZDKE1.js +687 -0
  16. package/dist/agent-helpers-BSGqeJr-.js +400 -0
  17. package/dist/agent-qCBPcUcF.js +688 -0
  18. package/dist/agent-scope-_ND_-bJy.js +116 -0
  19. package/dist/agents-Byc39Y4A.js +760 -0
  20. package/dist/agents.config-BgDBcY4h.js +116 -0
  21. package/dist/agents.config-D8gLHPWo.js +116 -0
  22. package/dist/ansi-DtaiOnt1.js +107 -0
  23. package/dist/audio-CQ8TfmVN.js +43 -0
  24. package/dist/audit-C0x7Cm6K.js +3150 -0
  25. package/dist/audit-CAY-uzWP.js +3150 -0
  26. package/dist/auth-DGqCLaQq.js +448 -0
  27. package/dist/auth-DLTRySEi.js +314 -0
  28. package/dist/auth-Drf91ntw.js +315 -0
  29. package/dist/auth-ku2khJyQ.js +448 -0
  30. package/dist/banner-CGI3XOm4.js +294 -0
  31. package/dist/binaries-BTvHIrCr.js +13 -0
  32. package/dist/bindings-Dr0bGRst.js +69 -0
  33. package/dist/bindings-DsWJQVKh.js +69 -0
  34. package/dist/bonjour-discovery-BElR62fH.js +378 -0
  35. package/dist/bonjour-discovery-C8XyVsjb.js +378 -0
  36. package/dist/boot/handler.js +17 -33
  37. package/dist/browser-cli-DxJew43l.js +1694 -0
  38. package/dist/browser-cli-p0nakrjO.js +1690 -0
  39. package/dist/build-info.json +3 -3
  40. package/dist/call-BrTmlOx3.js +518 -0
  41. package/dist/call-ChdUdwb4.js +517 -0
  42. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  43. package/dist/catalog-DTlcfTT9.js +185 -0
  44. package/dist/catalog-PixZqhZK.js +185 -0
  45. package/dist/channel-account-context-BO245Tcn.js +133 -0
  46. package/dist/channel-account-context-BgK0hm-I.js +133 -0
  47. package/dist/channel-activity-C-L6rDrQ.js +94 -0
  48. package/dist/channel-activity-DdgLBZ7M.js +94 -0
  49. package/dist/channel-activity-hL4KZrCz.js +292 -0
  50. package/dist/channel-options-C1Q9SUhv.js +33 -0
  51. package/dist/channel-options-zANFhRx_.js +32 -0
  52. package/dist/channel-selection-DW21dXB1.js +51 -0
  53. package/dist/channel-selection-wK_6S2Ku.js +51 -0
  54. package/dist/channel-web-DCSjrtlh.js +2136 -0
  55. package/dist/channel-web-JCgegBgG.js +2134 -0
  56. package/dist/channels-cli-D48ytzLq.js +1438 -0
  57. package/dist/channels-cli-hZbUcB3G.js +1434 -0
  58. package/dist/channels-status-issues-B6I2l7Sm.js +18 -0
  59. package/dist/channels-status-issues-DhDH2fWp.js +18 -0
  60. package/dist/chat-envelope-BIujl9Cj.js +248 -0
  61. package/dist/chrome-Dqtq7zCc.js +1733 -0
  62. package/dist/chrome-XeSY99Z_.js +1732 -0
  63. package/dist/chunk-CWD_zrz_.js +341 -0
  64. package/dist/chunk-LUabyS9k.js +341 -0
  65. package/dist/clack-prompter-fAgbvPW4.js +122 -0
  66. package/dist/clack-prompter-kf9qTN5p.js +121 -0
  67. package/dist/cli/daemon-cli.js +1 -1
  68. package/dist/cli-BTLaY8q4.js +133 -0
  69. package/dist/cli-CZV23GbW.js +129 -0
  70. package/dist/client-B9u3JdT_.js +2316 -0
  71. package/dist/client-DEEOhx0w.js +2316 -0
  72. package/dist/clipboard-B2nstLx7.js +31 -0
  73. package/dist/clipboard-C8QI9fes.js +31 -0
  74. package/dist/command-format-LFmgWzKJ.js +18 -0
  75. package/dist/command-logger/handler.js +1 -1
  76. package/dist/command-registry-BPXqH4ST.js +215 -0
  77. package/dist/commands-BAYwlS3d.js +41 -0
  78. package/dist/commands-D842kCjj.js +41 -0
  79. package/dist/commands-registry-Cg2GTT2J.js +892 -0
  80. package/dist/commands-registry-Yz-uV5oG.js +891 -0
  81. package/dist/common-B67cBSew.js +156 -0
  82. package/dist/common-DEoiTqOr.js +156 -0
  83. package/dist/completion-cli-D5J3fPka.js +452 -0
  84. package/dist/completion-cli-Dd1g-p7S.js +452 -0
  85. package/dist/config-CAa0rZSx.js +4225 -0
  86. package/dist/config-W0w-gi2j.js +4223 -0
  87. package/dist/config-cli-Ddz-yCdQ.js +247 -0
  88. package/dist/config-cli-shgSFYig.js +243 -0
  89. package/dist/config-guard-BI85dxHR.js +99 -0
  90. package/dist/config-guard-DQqnigKh.js +75 -0
  91. package/dist/config-validation-D-h4LHyA.js +18 -0
  92. package/dist/config-validation-Df_kroIQ.js +18 -0
  93. package/dist/configure-BnFwpZ3l.js +891 -0
  94. package/dist/configure-Cj4mlKSH.js +889 -0
  95. package/dist/constants-BAZuhSRm.js +75 -0
  96. package/dist/constants-BBVTjb1j.js +75 -0
  97. package/dist/control-auth-BrBr2xb8.js +397 -0
  98. package/dist/control-auth-CehjYKnL.js +397 -0
  99. package/dist/control-ui/assets/index-DdiU_ccM.css +1 -0
  100. package/dist/control-ui/assets/index-kVUYi64u.js +7723 -0
  101. package/dist/control-ui/assets/index-kVUYi64u.js.map +1 -0
  102. package/dist/control-ui/index.html +2 -2
  103. package/dist/control-ui-assets-D8F383Mo.js +186 -0
  104. package/dist/control-ui-assets-DYKtRIm0.js +186 -0
  105. package/dist/conversation-label-CDH4rKMG.js +36 -0
  106. package/dist/cron-cli-DVzDHzAX.js +494 -0
  107. package/dist/cron-cli-gkH2qKM4.js +498 -0
  108. package/dist/daemon-cli-BTdNO1vH.js +737 -0
  109. package/dist/daemon-cli-DNNqI2LD.js +735 -0
  110. package/dist/daemon-cli.js +1 -2
  111. package/dist/daemon-install-CaEHG92p.js +56 -0
  112. package/dist/daemon-install-DbpDSDfW.js +60 -0
  113. package/dist/daemon-install-helpers-DjE_WnlY.js +504 -0
  114. package/dist/daemon-install-helpers-DocTUxqQ.js +504 -0
  115. package/dist/deliver-CDcL8ok6.js +481 -0
  116. package/dist/deliver-CS8JsevV.js +481 -0
  117. package/dist/delivery-queue-CTaYZQ_8.js +244 -0
  118. package/dist/delivery-queue-DMZ7mH8P.js +244 -0
  119. package/dist/devices-cli-BBJ4His-.js +319 -0
  120. package/dist/devices-cli-DHSJSFW1.js +323 -0
  121. package/dist/diagnostics-BSvCaLNs.js +35 -0
  122. package/dist/diagnostics-mWFAsFeo.js +35 -0
  123. package/dist/directory-cli-C-oHD_XE.js +224 -0
  124. package/dist/directory-cli-Cw99VGvr.js +220 -0
  125. package/dist/dispatcher-C8d1NNLZ.js +174 -0
  126. package/dist/dispatcher-DY6Ga60j.js +173 -0
  127. package/dist/dm-policy-shared-CRQ-Wr5g.js +22 -0
  128. package/dist/dm-policy-shared-CXXf2ltd.js +22 -0
  129. package/dist/dns-cli-BOqx9qo1.js +199 -0
  130. package/dist/dns-cli-WfqSC3JU.js +203 -0
  131. package/dist/dock-Big-J2VN.js +929 -0
  132. package/dist/dock-Cj4PKiUh.js +928 -0
  133. package/dist/doctor-completion-B9RsNJKh.js +92 -0
  134. package/dist/doctor-completion-DhNvADTs.js +92 -0
  135. package/dist/doctor-config-flow-BUuADMDa.js +1935 -0
  136. package/dist/doctor-config-flow-yOUpQC2B.js +1934 -0
  137. package/dist/enable-DC9V0nTO.js +59 -0
  138. package/dist/enable-DzXMQJ-o.js +59 -0
  139. package/dist/entry.js +1 -1
  140. package/dist/env-B3zr72vQ.js +60 -0
  141. package/dist/env-vars-CD2_baIP.js +43 -0
  142. package/dist/env-vars-a7S70ba7.js +43 -0
  143. package/dist/errors-Cr_NbOb4.js +35 -0
  144. package/dist/exec-D_s-zAtY.js +164 -0
  145. package/dist/exec-Zz6eJ6YU.js +164 -0
  146. package/dist/extensionAPI.js +134 -6
  147. package/dist/fetch-D3F-AEFK.js +67 -0
  148. package/dist/fetch-DTR2MlOk.js +67 -0
  149. package/dist/file-lock-C_KRlR7M.js +107 -0
  150. package/dist/fs-safe-DZHpH7TI.js +98 -0
  151. package/dist/fs-safe-vm3JMUkq.js +88 -0
  152. package/dist/gateway-cli-CebjflhZ.js +24337 -0
  153. package/dist/gateway-cli-Y9U6rbPB.js +24333 -0
  154. package/dist/gateway-rpc-BCFkQPa2.js +28 -0
  155. package/dist/gateway-rpc-DOgYbsOG.js +28 -0
  156. package/dist/gmail-setup-utils-DMeA1UM1.js +423 -0
  157. package/dist/gmail-setup-utils-FHWSAur3.js +422 -0
  158. package/dist/health-CXWQZGNz.js +1414 -0
  159. package/dist/health-DCC6hoLO.js +1417 -0
  160. package/dist/heartbeat-visibility-Cv0ejWJ-.js +125 -0
  161. package/dist/heartbeat-visibility-Da3TDQp2.js +125 -0
  162. package/dist/helpers-D-r6yhnI.js +10 -0
  163. package/dist/hook-runner-global-C0DFQmQw.js +527 -0
  164. package/dist/hooks-cli-CB5rKhHe.js +1221 -0
  165. package/dist/hooks-cli-Dy7m9hzM.js +1225 -0
  166. package/dist/host-env-security-BGibnCbS.js +106 -0
  167. package/dist/host-env-security-axRnIi8d.js +106 -0
  168. package/dist/image-ops-B9ofmzSq.js +354 -0
  169. package/dist/image-ops-CMuvRsMY.js +354 -0
  170. package/dist/import-BH13F5mT.js +606 -0
  171. package/dist/import-D8HVcDqO.js +604 -0
  172. package/dist/inbound-context-BLy-G2Eq.js +68 -0
  173. package/dist/index.js +99 -97
  174. package/dist/inspect-nW8LAukU.js +286 -0
  175. package/dist/inspect-xy2EHy8G.js +286 -0
  176. package/dist/installs-CpfHmKY1.js +325 -0
  177. package/dist/installs-DebiMrGj.js +325 -0
  178. package/dist/ipv4-zc_Hfvbp.js +46 -0
  179. package/dist/ir-CaxTklDC.js +940 -0
  180. package/dist/lifecycle-core-Z5SScMlU.js +476 -0
  181. package/dist/lifecycle-core-pPwYSt7m.js +474 -0
  182. package/dist/loader-BVHaRcP7.js +22404 -0
  183. package/dist/loader-CxSGgugQ.js +22401 -0
  184. package/dist/local-roots-CrJ_Jv_G.js +314 -0
  185. package/dist/local-roots-n_Y4iYwb.js +313 -0
  186. package/dist/logger-B8yHnzPl.js +49 -0
  187. package/dist/logging-BiuZwq5D.js +1 -0
  188. package/dist/logging-JZEg5nDp.js +1 -0
  189. package/dist/login-C99fsB0N.js +61 -0
  190. package/dist/login-cLvGPjeO.js +62 -0
  191. package/dist/login-qr-CGqRFwgl.js +329 -0
  192. package/dist/login-qr-dnY5DC2C.js +325 -0
  193. package/dist/logs-cli-Bda7xY4N.js +236 -0
  194. package/dist/logs-cli-HzR-vnpD.js +240 -0
  195. package/dist/markdown-tables-58Hq__7K.js +29 -0
  196. package/dist/markdown-tables-GFEX0OR6.js +29 -0
  197. package/dist/media-CFsyXs3H.js +940 -0
  198. package/dist/media-D1lGkC1V.js +10452 -0
  199. package/dist/message-action-names-BgsKGLDS.js +2521 -0
  200. package/dist/message-action-names-DkZwEFhU.js +2521 -0
  201. package/dist/message-channel-FMNRI5Ax.js +91 -0
  202. package/dist/message-channel-tuc9CdEw.js +91 -0
  203. package/dist/net-BEFkF-nI.js +225 -0
  204. package/dist/net-CNsUGiSw.js +225 -0
  205. package/dist/node-cli-Bu-InsO9.js +1462 -0
  206. package/dist/node-cli-DE7Pm7Fr.js +1458 -0
  207. package/dist/node-service-CumFZc9L.js +67 -0
  208. package/dist/node-service-DY1gG06I.js +67 -0
  209. package/dist/nodes-cli-B5aAExN0.js +1350 -0
  210. package/dist/nodes-cli-eKRqlKuO.js +1346 -0
  211. package/dist/nodes-screen-B3Sij1uT.js +250 -0
  212. package/dist/note-CPFJCWJJ.js +92 -0
  213. package/dist/note-DHUJACHE.js +92 -0
  214. package/dist/npm-registry-spec-BgMtTHvq.js +786 -0
  215. package/dist/npm-registry-spec-Dz3z1Zpd.js +786 -0
  216. package/dist/npm-resolution-BXiQH99t.js +86 -0
  217. package/dist/npm-resolution-CqE0nhxJ.js +86 -0
  218. package/dist/onboard-DK2z3w1P.js +649 -0
  219. package/dist/onboard-auth-C_wHkop1.js +207 -0
  220. package/dist/onboard-auth-CkCBLvTg.js +211 -0
  221. package/dist/onboard-channels-C8_OLbPk.js +2547 -0
  222. package/dist/onboard-channels-w_tnOhVu.js +2548 -0
  223. package/dist/onboard-helpers-Q7M6vdzh.js +363 -0
  224. package/dist/onboard-helpers-SCO3k5Y8.js +364 -0
  225. package/dist/onboard-remote-Co2hv1AD.js +127 -0
  226. package/dist/onboard-remote-Dl3BFSg2.js +127 -0
  227. package/dist/onboard-rioH3DW6.js +647 -0
  228. package/dist/onboarding-CsXVuzFP.js +586 -0
  229. package/dist/onboarding-r5RCkc-Z.js +588 -0
  230. package/dist/onboarding.finalize-BY8uN1nD.js +402 -0
  231. package/dist/onboarding.finalize-C-kfj-aR.js +404 -0
  232. package/dist/onboarding.gateway-config-BL0Q7Wpg.js +201 -0
  233. package/dist/onboarding.gateway-config-D2QsXMYO.js +195 -0
  234. package/dist/outbound-CcaPcetn.js +220 -0
  235. package/dist/outbound-CeiW8z3a.js +221 -0
  236. package/dist/outbound-attachment-Bfm5-JYe.js +18 -0
  237. package/dist/outbound-attachment-CZ7zoYxB.js +18 -0
  238. package/dist/outbound-attachment-Cb6PYvAz.js +18 -0
  239. package/dist/pairing-cli-CgX79ujL.js +125 -0
  240. package/dist/pairing-cli-DvbbXFgC.js +129 -0
  241. package/dist/pairing-labels-3wDxaApH.js +9 -0
  242. package/dist/pairing-labels-DCbWnbWk.js +9 -0
  243. package/dist/pairing-store-CdY7iRS0.js +459 -0
  244. package/dist/pairing-store-DykkYpQ7.js +460 -0
  245. package/dist/path-env-Cqo5LZmw.js +89 -0
  246. package/dist/path-env-GTM4HXCN.js +89 -0
  247. package/dist/path-safety-CXKAVpMp.js +14 -0
  248. package/dist/path-safety-DGB91qBk.js +14 -0
  249. package/dist/plugin-auto-enable-C6FPGg_-.js +301 -0
  250. package/dist/plugin-auto-enable-L8eOc8iC.js +302 -0
  251. package/dist/plugin-registry-BTycBIix.js +33 -0
  252. package/dist/plugin-registry-CFty9Gym.js +33 -0
  253. package/dist/plugin-sdk/auth/env-injection.d.ts +8 -10
  254. package/dist/plugin-sdk/auth/index.d.ts +4 -2
  255. package/dist/plugin-sdk/auth/order.d.ts +8 -0
  256. package/dist/plugin-sdk/auth/profiles.d.ts +1 -0
  257. package/dist/plugin-sdk/auth/provider-auth.d.ts +0 -6
  258. package/dist/plugin-sdk/auth/types.d.ts +33 -1
  259. package/dist/plugin-sdk/auth/usage.d.ts +80 -0
  260. package/dist/plugin-sdk/auto-reply/reply/agent-runner-utils.d.ts +9 -29
  261. package/dist/plugin-sdk/auto-reply/reply/queue/types.d.ts +0 -2
  262. package/dist/plugin-sdk/auto-reply/status.d.ts +1 -3
  263. package/dist/plugin-sdk/channels/plugins/types.core.d.ts +1 -0
  264. package/dist/plugin-sdk/channels/voice-credentials.d.ts +26 -0
  265. package/dist/plugin-sdk/commands/onboard-types.d.ts +2 -1
  266. package/dist/plugin-sdk/config/sessions/types.d.ts +0 -2
  267. package/dist/plugin-sdk/config/types.remoteclaw.d.ts +2 -2
  268. package/dist/plugin-sdk/config/zod-schema.d.ts +1 -1
  269. package/dist/plugin-sdk/gateway/protocol/index.d.ts +1 -1
  270. package/dist/plugin-sdk/gateway/server/ws-types.d.ts +2 -0
  271. package/dist/plugin-sdk/index.js +486 -9
  272. package/dist/plugin-sdk/infra/agent-events.d.ts +1 -1
  273. package/dist/plugin-sdk/media-understanding/defaults.d.ts +1 -2
  274. package/dist/plugin-sdk/media-understanding/providers/deepgram/audio.d.ts +1 -4
  275. package/dist/plugin-sdk/media-understanding/providers/google/audio.d.ts +1 -3
  276. package/dist/plugin-sdk/media-understanding/providers/openai/audio.d.ts +1 -3
  277. package/dist/plugin-sdk/media-understanding/types.d.ts +3 -18
  278. package/dist/plugin-sdk/middleware/media-capability.d.ts +21 -0
  279. package/dist/plugin-sdk/middleware/runtimes/claude.d.ts +4 -0
  280. package/dist/plugin-sdk/middleware/runtimes/codex.d.ts +5 -0
  281. package/dist/plugin-sdk/middleware/runtimes/gemini.d.ts +4 -0
  282. package/dist/plugin-sdk/middleware/runtimes/opencode.d.ts +5 -0
  283. package/dist/plugin-sdk/middleware/types.d.ts +10 -2
  284. package/dist/plugin-sdk/plugin-sdk/index.d.ts +2 -0
  285. package/dist/plugin-sdk/stt/defaults.d.ts +2 -0
  286. package/dist/plugin-sdk/stt/preflight.d.ts +16 -0
  287. package/dist/plugin-sdk/stt/providers/deepgram/audio.d.ts +4 -0
  288. package/dist/plugin-sdk/stt/providers/deepgram/index.d.ts +2 -0
  289. package/dist/plugin-sdk/stt/providers/google/audio.d.ts +3 -0
  290. package/dist/plugin-sdk/stt/providers/google/index.d.ts +2 -0
  291. package/dist/plugin-sdk/stt/providers/groq/index.d.ts +2 -0
  292. package/dist/plugin-sdk/stt/providers/index.d.ts +4 -0
  293. package/dist/plugin-sdk/stt/providers/mistral/index.d.ts +2 -0
  294. package/dist/plugin-sdk/stt/providers/openai/audio.d.ts +3 -0
  295. package/dist/plugin-sdk/stt/providers/openai/index.d.ts +2 -0
  296. package/dist/plugin-sdk/stt/providers/shared.d.ts +1 -0
  297. package/dist/plugin-sdk/stt/stt.d.ts +27 -0
  298. package/dist/plugin-sdk/stt/types.d.ts +22 -0
  299. package/dist/plugin-sdk/tts/tts.d.ts +3 -3
  300. package/dist/plugins-7B167wIj.js +453 -0
  301. package/dist/plugins-BRHOfy1Z.js +455 -0
  302. package/dist/plugins-cli-CQGW40I-.js +797 -0
  303. package/dist/plugins-cli-D-ZfWRTw.js +801 -0
  304. package/dist/ports-BS8kQkd9.js +96 -0
  305. package/dist/ports-CAqyeQYZ.js +316 -0
  306. package/dist/ports-CTUgXF2d.js +96 -0
  307. package/dist/ports-DqfnVnCw.js +370 -0
  308. package/dist/preflight-CJqKHCYa.js +64 -0
  309. package/dist/preflight-TR92sc61.js +68 -0
  310. package/dist/program-_SGrjcuG.js +248 -0
  311. package/dist/program-context-B6yIPfYd.js +474 -0
  312. package/dist/progress-BOdRbOHD.js +124 -0
  313. package/dist/prompt-select-styled-BiBnOTh8.js +1669 -0
  314. package/dist/prompt-select-styled-DQacku67.js +1672 -0
  315. package/dist/provider-dispatcher-BjsUFEpi.js +659 -0
  316. package/dist/provider-dispatcher-BxNDRVIT.js +660 -0
  317. package/dist/push-apns-Cj0Ryn18.js +713 -0
  318. package/dist/push-apns-fFfYCqda.js +711 -0
  319. package/dist/pw-ai-CnN2sITD.js +1908 -0
  320. package/dist/pw-ai-fnX3cecw.js +1911 -0
  321. package/dist/qr-cli-CriPg41m.js +349 -0
  322. package/dist/qr-cli-DSURqD0D.js +353 -0
  323. package/dist/redact-snapshot-BecRL_h6.js +2016 -0
  324. package/dist/redact-snapshot-pTdzSrex.js +2016 -0
  325. package/dist/register.agent-Bpwvc5By.js +1018 -0
  326. package/dist/register.agent-DQFcnOVQ.js +290 -0
  327. package/dist/register.configure-C5CK8tgd.js +133 -0
  328. package/dist/register.configure-CEJ5Wrkl.js +128 -0
  329. package/dist/register.import-CPQqqdje.js +31 -0
  330. package/dist/register.import-D1UaH1QV.js +29 -0
  331. package/dist/register.maintenance-Bpz-NOhG.js +499 -0
  332. package/dist/register.maintenance-DDwlfAfw.js +501 -0
  333. package/dist/register.message-BoNswT8e.js +685 -0
  334. package/dist/register.message-pvz70g_-.js +689 -0
  335. package/dist/register.onboard-BvcVLNp3.js +93 -0
  336. package/dist/register.onboard-CZV7LvZI.js +97 -0
  337. package/dist/register.setup-Cgv2uSPG.js +117 -0
  338. package/dist/register.setup-yTqvTinY.js +113 -0
  339. package/dist/register.status-health-sessions-LK50hWDT.js +428 -0
  340. package/dist/register.status-health-sessions-kDGDihye.js +668 -0
  341. package/dist/register.subclis-DSr7AHAr.js +267 -0
  342. package/dist/replies-IpiCq1Ht.js +136 -0
  343. package/dist/replies-LSx_XhsP.js +136 -0
  344. package/dist/reply-B8It91bP.js +13652 -0
  345. package/dist/reply-CbgHVTv2.js +13649 -0
  346. package/dist/reply-directives-Cz7622Qx.js +182 -0
  347. package/dist/reply-directives-ssnaPNiU.js +182 -0
  348. package/dist/reply-payloads-CQMtrphw.js +527 -0
  349. package/dist/reply-prefix-CWcAZKhE.js +37 -0
  350. package/dist/reply-prefix-Drq7Pf3A.js +37 -0
  351. package/dist/resolve-route-B8uIc2H3.js +249 -0
  352. package/dist/resolve-route-C8ooNlI4.js +249 -0
  353. package/dist/response-prefix-template-D3ZcJP4E.js +134 -0
  354. package/dist/response-prefix-template-DPOggmPO.js +134 -0
  355. package/dist/retry-BMUvSHT-.js +77 -0
  356. package/dist/run-main-BP3UHEJa.js +306 -0
  357. package/dist/runner-CD3YycXx.js +2365 -0
  358. package/dist/runner-D74Wiza_.js +2365 -0
  359. package/dist/runtime-guard-CK80eucm.js +60 -0
  360. package/dist/runtime-status-BhW7hP_U.js +12 -0
  361. package/dist/runtime-status-hFVEC3wO.js +12 -0
  362. package/dist/secure-random-D2tEcday.js +44 -0
  363. package/dist/security-cli-05blEYyC.js +482 -0
  364. package/dist/security-cli-DYbt8duB.js +487 -0
  365. package/dist/send-7O3-bRtl.js +547 -0
  366. package/dist/send-9Huf62k3.js +2245 -0
  367. package/dist/send-B9mIJdUo.js +547 -0
  368. package/dist/send-BCmOXR0I.js +332 -0
  369. package/dist/send-Bj0RXr-a.js +492 -0
  370. package/dist/send-C8PAzF8N.js +374 -0
  371. package/dist/send-Ce_BDa8P.js +349 -0
  372. package/dist/send-ChvasRSh.js +1779 -0
  373. package/dist/send-D1wtSq0W.js +426 -0
  374. package/dist/send-D6B4ThQi.js +1178 -0
  375. package/dist/send-DK0iMztU.js +11 -0
  376. package/dist/send-DWf7BCPe.js +492 -0
  377. package/dist/send-Dd2_MykI.js +2245 -0
  378. package/dist/send-IJaUAa8H.js +1776 -0
  379. package/dist/send-vDj76us_.js +29 -0
  380. package/dist/send-vvZXksNU.js +349 -0
  381. package/dist/server-BrzR9JmX.js +206 -0
  382. package/dist/server-_h27-uP_.js +202 -0
  383. package/dist/server-lifecycle-CUdA6Far.js +2437 -0
  384. package/dist/server-lifecycle-DQZWL8iP.js +2437 -0
  385. package/dist/server-node-events-DSefRBGC.js +394 -0
  386. package/dist/server-node-events-jDiG1-M2.js +390 -0
  387. package/dist/service-9le8AnC-.js +670 -0
  388. package/dist/service-Drb0kx6I.js +670 -0
  389. package/dist/session-BIAOl5QR.js +170 -0
  390. package/dist/session-Wu00pCn_.js +170 -0
  391. package/dist/session-cost-usage-7plmOKbs.js +627 -0
  392. package/dist/session-cost-usage-CPFxBFUg.js +627 -0
  393. package/dist/session-dirs-CfIrIJxG.js +318 -0
  394. package/dist/session-dirs-DlPpWt5Q.js +318 -0
  395. package/dist/session-utils-Sd9w4vc1.js +622 -0
  396. package/dist/session-utils-iL47hYmZ.js +622 -0
  397. package/dist/sessions-6pKQ3gN3.js +247 -0
  398. package/dist/sessions-ZRmCDdj1.js +2569 -0
  399. package/dist/shell-env-DBS5su07.js +163 -0
  400. package/dist/shell-env-DYZq9PqC.js +163 -0
  401. package/dist/ssrf-DJW14Wkh.js +183 -0
  402. package/dist/status-BGM-EJGk.js +1983 -0
  403. package/dist/status-CGkrO9om.js +1979 -0
  404. package/dist/status.update-DlBReI5-.js +449 -0
  405. package/dist/status.update-v7fEQ7R9.js +449 -0
  406. package/dist/store-DCrrxHyS.js +2571 -0
  407. package/dist/store-DJruTRE0.js +53 -0
  408. package/dist/store-Ql6vAcsg.js +64 -0
  409. package/dist/subagent-registry-BGknZEUI.js +4856 -0
  410. package/dist/subagent-registry-CWeRBjfn.js +4854 -0
  411. package/dist/subsystem-PQ64_nsu.js +1136 -0
  412. package/dist/subsystem-SgROXN1v.js +1079 -0
  413. package/dist/system-cli-CmO-4Rju.js +77 -0
  414. package/dist/system-cli-VBsa18K6.js +73 -0
  415. package/dist/systemd-CqFpK30Y.js +547 -0
  416. package/dist/systemd-fK9AV5bP.js +547 -0
  417. package/dist/systemd-hints-D3rr0j14.js +278 -0
  418. package/dist/systemd-hints-DNOSRaqA.js +278 -0
  419. package/dist/systemd-linger-B907NVVy.js +75 -0
  420. package/dist/systemd-linger-wYksBbM7.js +75 -0
  421. package/dist/table-C-dba-5-.js +279 -0
  422. package/dist/tables-BkvsWHrd.js +55 -0
  423. package/dist/tables-CO_kxD0e.js +55 -0
  424. package/dist/tables-WZp8Vt9n.js +55 -0
  425. package/dist/tailnet-D0NV0tRJ.js +40 -0
  426. package/dist/tailscale-B__xvMjA.js +230 -0
  427. package/dist/tailscale-q_ZrxUCc.js +230 -0
  428. package/dist/targets-B4rMyQFJ.js +53 -0
  429. package/dist/targets-BjWhDMJM.js +650 -0
  430. package/dist/targets-BlEVuFSt.js +2474 -0
  431. package/dist/targets-C99szk_e.js +114 -0
  432. package/dist/targets-CHwGDIgO.js +650 -0
  433. package/dist/targets-CbbmgMRV.js +2473 -0
  434. package/dist/targets-mqj9GNg1.js +53 -0
  435. package/dist/targets-n59Dqqrd.js +220 -0
  436. package/dist/tool-display-CQTRHo3Z.js +785 -0
  437. package/dist/tool-images-BYY11Gw3.js +263 -0
  438. package/dist/tool-images-CnJ0R8Fo.js +263 -0
  439. package/dist/trash-C0mjnHuW.js +125 -0
  440. package/dist/trash-Cgwc9mLD.js +125 -0
  441. package/dist/tui-9cJnR1dN.js +3282 -0
  442. package/dist/tui-BR3egaFJ.js +3282 -0
  443. package/dist/tui-cli-BYpkhE6J.js +66 -0
  444. package/dist/tui-cli-DndeZyup.js +62 -0
  445. package/dist/update-BJVdkzk7.js +349 -0
  446. package/dist/update-DjI6KTA5.js +349 -0
  447. package/dist/update-cli-DR-zFdCm.js +1146 -0
  448. package/dist/update-cli-EuHV_AUf.js +1148 -0
  449. package/dist/usage-XL1nuDSi.js +5350 -0
  450. package/dist/version-3QUZW8EP.js +52 -0
  451. package/dist/version-CVMnqdzu.js +52 -0
  452. package/dist/voice-credentials-CXdoE4IF.js +45 -0
  453. package/dist/voice-credentials-Cu7htUQq.js +45 -0
  454. package/dist/web-6JMDbfAs.js +3087 -0
  455. package/dist/web-BfSXKISl.js +74 -0
  456. package/dist/web-Cngqu3vs.js +79 -0
  457. package/dist/webhooks-cli-0yQha2yj.js +334 -0
  458. package/dist/webhooks-cli-ula0bTX-.js +330 -0
  459. package/dist/whatsapp-actions-3NdzsNg1.js +130 -0
  460. package/dist/whatsapp-actions-y_1vjkYY.js +125 -0
  461. package/dist/workspace-BT3X-qCZ.js +449 -0
  462. package/dist/workspace-D5hHXubL.js +447 -0
  463. package/dist/zod-schema-CbqZAIYy.js +2696 -0
  464. package/dist/zod-schema-YGQJEcnj.js +2696 -0
  465. package/extensions/voice-call/index.ts +18 -1
  466. package/package.json +1 -2
  467. package/dist/accounts-A8jZK_v9.js +0 -272
  468. package/dist/accounts-BegPt5VR.js +0 -36
  469. package/dist/accounts-BfkQt03j.js +0 -32
  470. package/dist/accounts-BmiimLpP.js +0 -47
  471. package/dist/accounts-Bpk-loA6.js +0 -47
  472. package/dist/accounts-DAdUdbPk.js +0 -36
  473. package/dist/accounts-WYyfAiie.js +0 -270
  474. package/dist/ack-reactions-2U-g6JhT.js +0 -446
  475. package/dist/ack-reactions-D9o-ExBe.js +0 -446
  476. package/dist/acp-cli-F4vt2pow.js +0 -1323
  477. package/dist/acp-cli-w9cL4Ai1.js +0 -1317
  478. package/dist/active-listener--FT8ewxl.js +0 -37
  479. package/dist/active-listener-C1StcdIA.js +0 -37
  480. package/dist/agent-B7RPXHcc.js +0 -703
  481. package/dist/agent-helpers-KHUla1K7.js +0 -400
  482. package/dist/agent-qJBFKJLb.js +0 -704
  483. package/dist/agent-scope-BrDeaWWf.js +0 -116
  484. package/dist/agents-ByTeqUNx.js +0 -760
  485. package/dist/agents.config-CWAUoPzG.js +0 -116
  486. package/dist/agents.config-Ck45E_ce.js +0 -116
  487. package/dist/ansi-aRwLYlzD.js +0 -14
  488. package/dist/audio-B85HoT7E.js +0 -43
  489. package/dist/audio-preflight-B00cMNkB.js +0 -64
  490. package/dist/audio-preflight-c8dy4yc6.js +0 -69
  491. package/dist/audit-BKooX7Db.js +0 -3149
  492. package/dist/audit-BczhAQIL.js +0 -3149
  493. package/dist/auth-BaZdVHyR.js +0 -181
  494. package/dist/auth-Bq44qPUd.js +0 -448
  495. package/dist/auth-Dsj6dgDR.js +0 -180
  496. package/dist/auth-VItd2pwK.js +0 -448
  497. package/dist/banner-D1JVFhcZ.js +0 -294
  498. package/dist/binaries-DbgLoSWv.js +0 -13
  499. package/dist/bindings-6KojDoIi.js +0 -69
  500. package/dist/bindings-B6icMMUx.js +0 -69
  501. package/dist/bonjour-discovery-CQU4QbLK.js +0 -378
  502. package/dist/bonjour-discovery-D8aOnk3M.js +0 -378
  503. package/dist/browser-cli-BEbv591D.js +0 -1688
  504. package/dist/browser-cli-CozqR6kA.js +0 -1693
  505. package/dist/call--MNL1K_z.js +0 -2827
  506. package/dist/call-C-aaBVbn.js +0 -2826
  507. package/dist/catalog-BwV9z6xK.js +0 -185
  508. package/dist/catalog-CYLss4WS.js +0 -185
  509. package/dist/channel-account-context-CA2m93Kt.js +0 -550
  510. package/dist/channel-account-context-Las-t6RP.js +0 -550
  511. package/dist/channel-activity-BD603ehL.js +0 -94
  512. package/dist/channel-activity-BZtWpdKA.js +0 -292
  513. package/dist/channel-activity-CwiF_QMr.js +0 -94
  514. package/dist/channel-options-CemsyPrT.js +0 -32
  515. package/dist/channel-options-DqEUtYlo.js +0 -33
  516. package/dist/channel-selection-CHJ7TumC.js +0 -51
  517. package/dist/channel-selection-DR7eW8UG.js +0 -51
  518. package/dist/channel-web-BzBWMRCc.js +0 -2134
  519. package/dist/channel-web-C9G1MI3B.js +0 -2136
  520. package/dist/channels-cli-4h71ZHAk.js +0 -1422
  521. package/dist/channels-cli-D0eCYyIX.js +0 -1427
  522. package/dist/channels-status-issues-By77REbh.js +0 -18
  523. package/dist/channels-status-issues-DXyOO-KH.js +0 -18
  524. package/dist/chat-envelope-BEDutlnF.js +0 -248
  525. package/dist/chrome-BUn8Xn-B.js +0 -1733
  526. package/dist/chrome-CTVsKMmV.js +0 -1732
  527. package/dist/chunk-C1mQSjas.js +0 -341
  528. package/dist/chunk-D7VX4pmT.js +0 -341
  529. package/dist/clack-prompter-BX8SVxtP.js +0 -122
  530. package/dist/clack-prompter-D6HhVlZW.js +0 -121
  531. package/dist/cli-CN-rchhR.js +0 -126
  532. package/dist/cli-DqlVvy-X.js +0 -131
  533. package/dist/clipboard-Cbj3McM_.js +0 -31
  534. package/dist/clipboard-Ne8gaWea.js +0 -31
  535. package/dist/command-format-KkslAzwV.js +0 -18
  536. package/dist/command-registry-w5Cmnzwo.js +0 -215
  537. package/dist/commands-DChC3pIF.js +0 -41
  538. package/dist/commands-DFHMoQgH.js +0 -41
  539. package/dist/commands-registry-BN04GIlJ.js +0 -891
  540. package/dist/commands-registry-DbS9NHeX.js +0 -892
  541. package/dist/common-DHHHAcmR.js +0 -156
  542. package/dist/common-De-Lakuh.js +0 -156
  543. package/dist/completion-cli-DfYD2uZ5.js +0 -452
  544. package/dist/completion-cli-x7-_Ec6e.js +0 -452
  545. package/dist/config-BHFQOi60.js +0 -4224
  546. package/dist/config-FkoMu3at.js +0 -4222
  547. package/dist/config-cli-RLo3m9wM.js +0 -242
  548. package/dist/config-cli-nbVrO9DC.js +0 -247
  549. package/dist/config-guard-BSagBBKb.js +0 -98
  550. package/dist/config-guard-CVKuaEtm.js +0 -75
  551. package/dist/config-validation-C8R9jhxQ.js +0 -18
  552. package/dist/config-validation-DdBbo9D4.js +0 -18
  553. package/dist/configure-BOJHL4N5.js +0 -889
  554. package/dist/configure-DftgC8xF.js +0 -891
  555. package/dist/constants-BbAEYzFC.js +0 -70
  556. package/dist/constants-tLOgmZZ1.js +0 -70
  557. package/dist/control-auth-D5Ur1QJj.js +0 -397
  558. package/dist/control-auth-ee80zTNm.js +0 -397
  559. package/dist/control-ui/assets/index-CuY3pfh1.js +0 -7716
  560. package/dist/control-ui/assets/index-CuY3pfh1.js.map +0 -1
  561. package/dist/control-ui/assets/index-D_fjkN3g.css +0 -1
  562. package/dist/control-ui-assets-BlpSXjlT.js +0 -186
  563. package/dist/control-ui-assets-eJU2-yvs.js +0 -186
  564. package/dist/conversation-label-L0QTtKji.js +0 -36
  565. package/dist/cron-cli-3ZC2e7IT.js +0 -491
  566. package/dist/cron-cli-CF_7oYyt.js +0 -496
  567. package/dist/daemon-cli-DRrHcLEV.js +0 -1197
  568. package/dist/daemon-cli-DZcQevdm.js +0 -1199
  569. package/dist/daemon-install-BMEnzWwq.js +0 -60
  570. package/dist/daemon-install-BkUJbdPC.js +0 -55
  571. package/dist/daemon-install-helpers-B9kMxC1v.js +0 -462
  572. package/dist/daemon-install-helpers-DoYR5z4H.js +0 -462
  573. package/dist/deliver-9KNUeX06.js +0 -481
  574. package/dist/deliver-Bjd2noi_.js +0 -481
  575. package/dist/delivery-queue-B6TuHppj.js +0 -244
  576. package/dist/delivery-queue-BZc3AiGu.js +0 -244
  577. package/dist/devices-cli-BvNP7WLV.js +0 -322
  578. package/dist/devices-cli-NCgS0TLp.js +0 -317
  579. package/dist/diagnostics-CK2HGAFw.js +0 -46
  580. package/dist/diagnostics-G-C-IuxO.js +0 -46
  581. package/dist/directory-cli-BXbW67Fc.js +0 -218
  582. package/dist/directory-cli-G575nH29.js +0 -223
  583. package/dist/dm-policy-shared-1FdjwGtJ.js +0 -22
  584. package/dist/dm-policy-shared-CT3er5HI.js +0 -22
  585. package/dist/dns-cli-CyAEakum.js +0 -203
  586. package/dist/dns-cli-qtjQuSHV.js +0 -198
  587. package/dist/dock-D038fZZl.js +0 -929
  588. package/dist/dock-D5pZ3a44.js +0 -928
  589. package/dist/doctor-completion-CQaQhu0A.js +0 -92
  590. package/dist/doctor-completion-a1rp4pJI.js +0 -92
  591. package/dist/doctor-config-flow-D8qHlRun.js +0 -1934
  592. package/dist/doctor-config-flow-DMZBktaQ.js +0 -1935
  593. package/dist/enable-B5dIjgnm.js +0 -59
  594. package/dist/enable-FmiEY4ng.js +0 -59
  595. package/dist/env-DUb5GiQe.js +0 -60
  596. package/dist/env-vars-C8WMB8Ix.js +0 -93
  597. package/dist/env-vars-CLGbxdpL.js +0 -93
  598. package/dist/errors-DdLfwEVi.js +0 -35
  599. package/dist/exec-BhkXWg7V.js +0 -164
  600. package/dist/exec-ClUTXFZ9.js +0 -164
  601. package/dist/fetch-Db2Lavvz.js +0 -67
  602. package/dist/fetch-JBWLkOpL.js +0 -67
  603. package/dist/file-lock-Ks-RPU6W.js +0 -107
  604. package/dist/fs-safe-93aDW4mH.js +0 -98
  605. package/dist/fs-safe-ACrBwOF5.js +0 -88
  606. package/dist/gateway-cli-BMaohs2K.js +0 -23725
  607. package/dist/gateway-cli-CbrfDwfG.js +0 -23720
  608. package/dist/gateway-rpc-CcVmSx6b.js +0 -28
  609. package/dist/gateway-rpc-CofFUQ0T.js +0 -28
  610. package/dist/gmail-setup-utils-DNZEf6T0.js +0 -422
  611. package/dist/gmail-setup-utils-KPAKWwGy.js +0 -423
  612. package/dist/health-CAWcnUBC.js +0 -1414
  613. package/dist/health-CccR94s_.js +0 -1417
  614. package/dist/heartbeat-visibility-SFx9Mzy6.js +0 -125
  615. package/dist/heartbeat-visibility-jM8oWt13.js +0 -125
  616. package/dist/helpers-ryxLx-aM.js +0 -10
  617. package/dist/hook-runner-global-CEtCxWOR.js +0 -527
  618. package/dist/hooks-cli-CF6ZtHj0.js +0 -1218
  619. package/dist/hooks-cli-a2fv4Q8E.js +0 -1223
  620. package/dist/host-env-security-Bms2_EMV.js +0 -92
  621. package/dist/host-env-security-CbiODGvQ.js +0 -92
  622. package/dist/image-ops-DMl7j7f4.js +0 -354
  623. package/dist/image-ops-DpkTOzhI.js +0 -354
  624. package/dist/import-DIjlFm_Y.js +0 -493
  625. package/dist/import-DdQvVR-_.js +0 -495
  626. package/dist/inbound-context-oxIWzEgc.js +0 -68
  627. package/dist/inspect-C9d1V-lI.js +0 -559
  628. package/dist/inspect-rHjRqr3W.js +0 -559
  629. package/dist/installs-CCIGK4yG.js +0 -325
  630. package/dist/installs-CSE9Mf7u.js +0 -325
  631. package/dist/ipv4-DdcyK1aU.js +0 -46
  632. package/dist/ir-CnMQRFBu.js +0 -940
  633. package/dist/loader-CIqcnGWW.js +0 -22404
  634. package/dist/loader-DpbdALFG.js +0 -22401
  635. package/dist/local-roots-B0QcJDJI.js +0 -313
  636. package/dist/local-roots-BfXsZRkm.js +0 -314
  637. package/dist/logger-BtwpYD7c.js +0 -49
  638. package/dist/login-C3dIiZza.js +0 -62
  639. package/dist/login-b1cNFM1b.js +0 -61
  640. package/dist/login-qr-CoRpPOig.js +0 -323
  641. package/dist/login-qr-DK6tD3RV.js +0 -328
  642. package/dist/logs-cli-CSf3Ki3J.js +0 -234
  643. package/dist/logs-cli-Dkm-VdVC.js +0 -239
  644. package/dist/markdown-tables-ChBqQA_Q.js +0 -29
  645. package/dist/markdown-tables-xMuH3QnS.js +0 -29
  646. package/dist/media-Bj6ej9bO.js +0 -10452
  647. package/dist/media-DYopaoc0.js +0 -940
  648. package/dist/message-action-names-B3YDuSRp.js +0 -2521
  649. package/dist/message-action-names-DeBgJnuU.js +0 -2521
  650. package/dist/message-channel-D72Bc6Tb.js +0 -91
  651. package/dist/message-channel-DF4I2vOK.js +0 -91
  652. package/dist/net-COL170MG.js +0 -225
  653. package/dist/net-QZ8IHNXc.js +0 -225
  654. package/dist/node-cli-CW8jOcHO.js +0 -24
  655. package/dist/node-cli-bNJbha3z.js +0 -24
  656. package/dist/nodes-cli-B4akCR2q.js +0 -1349
  657. package/dist/nodes-cli-C01CZunU.js +0 -1344
  658. package/dist/nodes-screen-C_K1vcS5.js +0 -250
  659. package/dist/note-BVerR3D5.js +0 -92
  660. package/dist/note-Dk8-EaJg.js +0 -92
  661. package/dist/npm-registry-spec-Dma0KHft.js +0 -786
  662. package/dist/npm-registry-spec-vYkxZb6u.js +0 -786
  663. package/dist/npm-resolution-CjffqFnL.js +0 -86
  664. package/dist/npm-resolution-CoOzt9ZS.js +0 -86
  665. package/dist/onboard--9pqIzlu.js +0 -438
  666. package/dist/onboard-CiiSroNQ.js +0 -436
  667. package/dist/onboard-channels-BopwB1DX.js +0 -2547
  668. package/dist/onboard-channels-CDZY4vCd.js +0 -2548
  669. package/dist/onboard-helpers-BgnTF_Zn.js +0 -364
  670. package/dist/onboard-helpers-BqfX8PCg.js +0 -363
  671. package/dist/onboard-remote-MZghbFVH.js +0 -127
  672. package/dist/onboard-remote-qfzZsPPa.js +0 -127
  673. package/dist/onboarding-BiIPsx1w.js +0 -586
  674. package/dist/onboarding-D9OmSO-b.js +0 -588
  675. package/dist/onboarding.finalize-Dkl-Gj41.js +0 -402
  676. package/dist/onboarding.finalize-HK-hiV2X.js +0 -399
  677. package/dist/onboarding.gateway-config-CfgfR1yf.js +0 -199
  678. package/dist/onboarding.gateway-config-DuafC0ll.js +0 -192
  679. package/dist/outbound-B27xJC-P.js +0 -220
  680. package/dist/outbound-DqHFOa43.js +0 -221
  681. package/dist/outbound-attachment-CFL83u89.js +0 -18
  682. package/dist/outbound-attachment-CbNLn0lk.js +0 -18
  683. package/dist/outbound-attachment-DNCMF74c.js +0 -18
  684. package/dist/pairing-cli-BPR0APxq.js +0 -128
  685. package/dist/pairing-cli-e4dVnP2I.js +0 -123
  686. package/dist/pairing-labels-6f8FqSS5.js +0 -9
  687. package/dist/pairing-labels-CI5j-OUT.js +0 -9
  688. package/dist/pairing-store-DnTHRcnO.js +0 -459
  689. package/dist/pairing-store-ONzqxcNb.js +0 -460
  690. package/dist/path-env-D7VB7sOO.js +0 -89
  691. package/dist/path-env-DFiYvvI-.js +0 -89
  692. package/dist/path-safety-BshBsw4P.js +0 -14
  693. package/dist/path-safety-CZbhQciI.js +0 -14
  694. package/dist/plugin-auto-enable-Bil0x27j.js +0 -301
  695. package/dist/plugin-auto-enable-CtoCE-tv.js +0 -302
  696. package/dist/plugin-registry-B5afYZNk.js +0 -33
  697. package/dist/plugin-registry-C_VT7RsD.js +0 -33
  698. package/dist/plugin-sdk/auth/session-override.d.ts +0 -17
  699. package/dist/plugin-sdk/auto-reply/reply/directive-handling.auth.d.ts +0 -18
  700. package/dist/plugin-sdk/media-understanding/audio-preflight.d.ts +0 -16
  701. package/dist/plugin-sdk/utils/mask-api-key.d.ts +0 -1
  702. package/dist/plugins-B4waLB_f.js +0 -453
  703. package/dist/plugins-D6-JJ1il.js +0 -455
  704. package/dist/plugins-cli-BU9Uj73D.js +0 -794
  705. package/dist/plugins-cli-D5PrJSER.js +0 -799
  706. package/dist/ports-BcTKFlWl.js +0 -96
  707. package/dist/ports-DAc2AlZE.js +0 -316
  708. package/dist/ports-HiuYk3bt.js +0 -96
  709. package/dist/ports-dEePqmCq.js +0 -370
  710. package/dist/program-context-eHL_5_CR.js +0 -474
  711. package/dist/program-rXCEzUHX.js +0 -245
  712. package/dist/progress-DQ1drugY.js +0 -124
  713. package/dist/prompt-select-styled-CWx5UmZB.js +0 -1647
  714. package/dist/prompt-select-styled-HUujlzf4.js +0 -1650
  715. package/dist/provider-dispatcher-8eBbQVp7.js +0 -660
  716. package/dist/provider-dispatcher-K1KDQQnI.js +0 -659
  717. package/dist/push-apns-DQwR-i4_.js +0 -713
  718. package/dist/push-apns-Dj5RApCY.js +0 -711
  719. package/dist/pw-ai-5FzqfpKa.js +0 -1907
  720. package/dist/pw-ai-Cp84EV6S.js +0 -1911
  721. package/dist/qr-cli--W6hPq6S.js +0 -348
  722. package/dist/qr-cli-Cn05y7js.js +0 -353
  723. package/dist/redact-snapshot-B-2V56Yb.js +0 -2016
  724. package/dist/redact-snapshot-CD36XSYE.js +0 -2016
  725. package/dist/register.agent-6MquUrXf.js +0 -287
  726. package/dist/register.agent-CE_xjz6s.js +0 -1016
  727. package/dist/register.configure-BS6wPd5o.js +0 -125
  728. package/dist/register.configure-DQgJt5gY.js +0 -131
  729. package/dist/register.import-Cku0T-PA.js +0 -31
  730. package/dist/register.import-Dr8TiUVx.js +0 -28
  731. package/dist/register.maintenance-5URlfA0l.js +0 -495
  732. package/dist/register.maintenance-DGiLCUQ3.js +0 -498
  733. package/dist/register.message-CXH0zpQK.js +0 -682
  734. package/dist/register.message-DdvCIrR-.js +0 -687
  735. package/dist/register.onboard-BMljJXYv.js +0 -258
  736. package/dist/register.onboard-C90zZFxj.js +0 -263
  737. package/dist/register.setup-B6WcVtcJ.js +0 -115
  738. package/dist/register.setup-CvGeUhIw.js +0 -110
  739. package/dist/register.status-health-sessions-BcEnXnz5.js +0 -424
  740. package/dist/register.status-health-sessions-Cn9kJvdJ.js +0 -665
  741. package/dist/register.subclis-Cbtoe55c.js +0 -267
  742. package/dist/replies-DQ-YWLcF.js +0 -136
  743. package/dist/replies-DpjSDP2e.js +0 -136
  744. package/dist/reply-BxPVpdMm.js +0 -13671
  745. package/dist/reply-CjmuOY4K.js +0 -13674
  746. package/dist/reply-directives-CdMull8t.js +0 -182
  747. package/dist/reply-directives-o2w1lx5i.js +0 -182
  748. package/dist/reply-payloads-CHLov7YA.js +0 -527
  749. package/dist/reply-prefix-Bv8Mv9q8.js +0 -37
  750. package/dist/reply-prefix-Rk_UEaJa.js +0 -37
  751. package/dist/resolve-route-BPa6q23t.js +0 -249
  752. package/dist/resolve-route-CN9BEALz.js +0 -249
  753. package/dist/response-prefix-template-D-ptXREi.js +0 -134
  754. package/dist/response-prefix-template-Dckjdftg.js +0 -134
  755. package/dist/retry-bFj4k6Ii.js +0 -77
  756. package/dist/run-main-B_bvTMRI.js +0 -303
  757. package/dist/runner-Bits2W0X.js +0 -2289
  758. package/dist/runner-CqSt9dr-.js +0 -2289
  759. package/dist/runtime-Ds3E9SqF.js +0 -94
  760. package/dist/runtime-guard-CXt4yzo-.js +0 -60
  761. package/dist/secure-random-DSXV40IT.js +0 -44
  762. package/dist/security-cli-7x9AJLqg.js +0 -479
  763. package/dist/security-cli-W22WJcRa.js +0 -485
  764. package/dist/send-36Ku6JxB.js +0 -349
  765. package/dist/send-B5z--EGa.js +0 -492
  766. package/dist/send-BvD5UDBM.js +0 -1174
  767. package/dist/send-CDQq7w1Q.js +0 -547
  768. package/dist/send-CVGQ5HZA.js +0 -11
  769. package/dist/send-D5QJNeTd.js +0 -2245
  770. package/dist/send-DEk9nwHa.js +0 -1776
  771. package/dist/send-DF3PfdS2.js +0 -1779
  772. package/dist/send-DIIprYhc.js +0 -426
  773. package/dist/send-DNHjRlpD.js +0 -492
  774. package/dist/send-DSaRjcGp.js +0 -349
  775. package/dist/send-De-1GOmB.js +0 -374
  776. package/dist/send-E3nqpgnh.js +0 -29
  777. package/dist/send-HOC4QVqi.js +0 -332
  778. package/dist/send-LkDMrPbX.js +0 -2245
  779. package/dist/send-N_YdCqXV.js +0 -547
  780. package/dist/server-DJlVtv_D.js +0 -206
  781. package/dist/server-DWkrZoAZ.js +0 -201
  782. package/dist/server-lifecycle-Bz6HiCez.js +0 -2437
  783. package/dist/server-lifecycle-DttcJJev.js +0 -2437
  784. package/dist/server-node-events-BQRRpM3x.js +0 -395
  785. package/dist/server-node-events-DoKnP6rn.js +0 -390
  786. package/dist/service-BDt-zUvV.js +0 -670
  787. package/dist/service-Os7W1F2S.js +0 -670
  788. package/dist/session-B9KGKVrY.js +0 -170
  789. package/dist/session-DzAupDyj.js +0 -170
  790. package/dist/session-cost-usage-BYCI739a.js +0 -627
  791. package/dist/session-cost-usage-DGsPcuMj.js +0 -627
  792. package/dist/session-dirs-BIg5RHAh.js +0 -947
  793. package/dist/session-dirs-DwDxjK1p.js +0 -947
  794. package/dist/session-utils-Cyoz7ePG.js +0 -622
  795. package/dist/session-utils-J646Rawe.js +0 -622
  796. package/dist/sessions-C93FiFt0.js +0 -247
  797. package/dist/sessions-Dg_jzdRp.js +0 -2569
  798. package/dist/shell-env-CsV_IkJj.js +0 -163
  799. package/dist/shell-env-hZW9j-Uc.js +0 -163
  800. package/dist/ssrf-D6fl_7ww.js +0 -183
  801. package/dist/status-B87ofvEO.js +0 -2061
  802. package/dist/status-ByFKEe-R.js +0 -2065
  803. package/dist/status.update-DbO7izip.js +0 -79
  804. package/dist/status.update-wXyvcztI.js +0 -79
  805. package/dist/store-B-EPotpS.js +0 -2571
  806. package/dist/store-BYhcsOLr.js +0 -64
  807. package/dist/store-fA9MTRYo.js +0 -53
  808. package/dist/subagent-registry-B7U-NNlx.js +0 -4856
  809. package/dist/subagent-registry-Dz8VLumu.js +0 -4854
  810. package/dist/subsystem-BgxIzx7w.js +0 -1137
  811. package/dist/subsystem-rxNDBm7l.js +0 -1079
  812. package/dist/system-cli-BKF3WdON.js +0 -76
  813. package/dist/system-cli-DfALoXuf.js +0 -71
  814. package/dist/systemd-BlbIQ1PV.js +0 -547
  815. package/dist/systemd-DzXePo7r.js +0 -547
  816. package/dist/systemd-linger-mLbBF4pa.js +0 -75
  817. package/dist/systemd-linger-qlGGW2JB.js +0 -75
  818. package/dist/table-V_9n7CjP.js +0 -279
  819. package/dist/tables-BzDIS4xA.js +0 -55
  820. package/dist/tables-Cy3gObW7.js +0 -55
  821. package/dist/tables-DAuk-Y6F.js +0 -55
  822. package/dist/tailnet-Cy0Q27lj.js +0 -40
  823. package/dist/tailscale-CiWkh0vS.js +0 -230
  824. package/dist/tailscale-Driw3j8E.js +0 -230
  825. package/dist/targets-B5bB2qrA.js +0 -2406
  826. package/dist/targets-B7z3A0S5.js +0 -220
  827. package/dist/targets-CY-kWh8P.js +0 -2407
  828. package/dist/targets-CsrqF2M4.js +0 -650
  829. package/dist/targets-D3WkRcT8.js +0 -120
  830. package/dist/targets-DKriCISG.js +0 -53
  831. package/dist/targets-DTM2OPnS.js +0 -650
  832. package/dist/targets-DhhaK2xG.js +0 -53
  833. package/dist/tool-display-D6GD-41Y.js +0 -785
  834. package/dist/tool-images-D16vIWPg.js +0 -263
  835. package/dist/tool-images-IVIZ29ID.js +0 -263
  836. package/dist/trash--8b4GDyV.js +0 -125
  837. package/dist/trash-ivbG2QWV.js +0 -125
  838. package/dist/tui-BA89nOty.js +0 -3319
  839. package/dist/tui-BEv1xUD1.js +0 -3319
  840. package/dist/tui-cli-BYYcEkWB.js +0 -59
  841. package/dist/tui-cli-CPU9l8Ec.js +0 -64
  842. package/dist/update-BlxEwqv4.js +0 -349
  843. package/dist/update-DS4IPhg-.js +0 -349
  844. package/dist/update-cli-B2Oqn_A3.js +0 -1371
  845. package/dist/update-cli-DuF0za7-.js +0 -1374
  846. package/dist/usage-hcozOn9n.js +0 -5295
  847. package/dist/web-BsJ13RJc.js +0 -77
  848. package/dist/web-D50_3bVn.js +0 -3071
  849. package/dist/web-DBVQrgt8.js +0 -71
  850. package/dist/webhooks-cli-BTRletKZ.js +0 -329
  851. package/dist/webhooks-cli-CVQqrkWi.js +0 -334
  852. package/dist/whatsapp-actions-DdrjMPWq.js +0 -129
  853. package/dist/whatsapp-actions-DgOKaH0j.js +0 -123
  854. package/dist/workspace-D30hawqJ.js +0 -447
  855. package/dist/workspace-D4irp1m2.js +0 -449
  856. package/dist/zod-schema-B9RGngMW.js +0 -2696
  857. package/dist/zod-schema-D3hQ5SKe.js +0 -2696
  858. /package/dist/{account-lookup-DGscKBsr.js → account-lookup-C0ndrpt-.js} +0 -0
  859. /package/dist/{agent-helpers-CK3Obbsi.js → agent-helpers-eEHy5uX2.js} +0 -0
  860. /package/dist/{agent-scope-DxqtYjuJ.js → agent-scope-CJW7vnF8.js} +0 -0
  861. /package/dist/{api-BDff51CS.js → api-Cd_7aESj.js} +0 -0
  862. /package/dist/{api-qWSMsT8m.js → api-DJ_oWYus.js} +0 -0
  863. /package/dist/{argv-neJY_Hxm.js → argv-BY8EVMTP.js} +0 -0
  864. /package/dist/{audio-BbCUzndz.js → audio-BIvUsncf.js} +0 -0
  865. /package/dist/{brew-CMSQ5Fek.js → brew-CmTYeZk1.js} +0 -0
  866. /package/dist/{brew-ByYl36Mt.js → brew-V4lMBeE3.js} +0 -0
  867. /package/dist/{chat-envelope-vJJUdDE7.js → chat-envelope-CrM0X4sl.js} +0 -0
  868. /package/dist/{chat-type-BKe459rw.js → chat-type-CH3W-zKy.js} +0 -0
  869. /package/dist/{cleanup-utils-DNd0wdKZ.js → cleanup-utils-CNwlTKyR.js} +0 -0
  870. /package/dist/{cleanup-utils-S_P5Jebv.js → cleanup-utils-gNzIs9yk.js} +0 -0
  871. /package/dist/{cli-name-Yv30OygA.js → cli-name-3MdfbvIR.js} +0 -0
  872. /package/dist/{cli-utils-C5nQDfa6.js → cli-utils-5ZIfXAfM.js} +0 -0
  873. /package/dist/{cli-utils-KcEwAsuZ.js → cli-utils-BUOtyfnU.js} +0 -0
  874. /package/dist/{client-C7B0uFB0.js → client-D5m46AuY.js} +0 -0
  875. /package/dist/{client-Cd2HNUX0.js → client-DFyI5I0n.js} +0 -0
  876. /package/dist/{command-options-1bi44p_B.js → command-options-Cn2fc1Of.js} +0 -0
  877. /package/dist/{command-options-7y5Zrv4M.js → command-options-D2nN4AXX.js} +0 -0
  878. /package/dist/{config-eval-CJtk3Msr.js → config-eval-BCKpAS_K.js} +0 -0
  879. /package/dist/{config-eval-DQIwdWg7.js → config-eval-CU2G7a83.js} +0 -0
  880. /package/dist/{constants--3PuQVaS.js → constants-CRGAZ2ow.js} +0 -0
  881. /package/dist/{constants-DNWjlxZ5.js → constants-DoYLsBmv.js} +0 -0
  882. /package/dist/{credentials-BhnauW0K.js → credentials-DMAWNZdV.js} +0 -0
  883. /package/dist/{credentials-eZcqWNG_.js → credentials-Dmc3H-jd.js} +0 -0
  884. /package/dist/{daemon-runtime-99xh1fGv.js → daemon-runtime-CzFI2dPw.js} +0 -0
  885. /package/dist/{daemon-runtime-BOcdJaFy.js → daemon-runtime-aQhinwSL.js} +0 -0
  886. /package/dist/{dangerous-name-matching-YeatnYIA.js → dangerous-name-matching-BCaPvXy_.js} +0 -0
  887. /package/dist/{dangerous-name-matching-oVb1EqYT.js → dangerous-name-matching-BlTBBZns.js} +0 -0
  888. /package/dist/{dangerous-tools-BMt8-6jE.js → dangerous-tools-BRmbBvRf.js} +0 -0
  889. /package/dist/{dangerous-tools-CripTfYv.js → dangerous-tools-E1i3IoxZ.js} +0 -0
  890. /package/dist/{fetch-CCuD0LYV.js → fetch-DRVdxxEj.js} +0 -0
  891. /package/dist/{fetch-timeout-Db3da8yR.js → fetch-timeout-DBRRPNBi.js} +0 -0
  892. /package/dist/{file-identity-Bs9zZOi2.js → file-identity-BnGA6wyc.js} +0 -0
  893. /package/dist/{format-duration-Bo-Mxi3E.js → format-duration-B-Uv5nOi.js} +0 -0
  894. /package/dist/{format-duration-CfrJ5T8k.js → format-duration-D1M3Zxu6.js} +0 -0
  895. /package/dist/{format-relative-8cNYQsqb.js → format-relative-Cywx6ldk.js} +0 -0
  896. /package/dist/{format-relative-CZOlQ2pA.js → format-relative-DcQZUAYl.js} +0 -0
  897. /package/dist/{health-format-WMRp1BbP.js → health-format-CL2Xq92A.js} +0 -0
  898. /package/dist/{health-format-DOhfU1rY.js → health-format-CVgQD-z9.js} +0 -0
  899. /package/dist/{heartbeat-wake-BtRrOB-t.js → heartbeat-wake-DLxQm6-U.js} +0 -0
  900. /package/dist/{heartbeat-wake-eRINROYK.js → heartbeat-wake-DjsTDzF3.js} +0 -0
  901. /package/dist/{help-format-BEb0SPHF.js → help-format-CJQ7APRn.js} +0 -0
  902. /package/dist/{help-format-Ch0EWh7N.js → help-format-DM6-OBt-.js} +0 -0
  903. /package/dist/{helpers-BJtPtu_2.js → helpers-BER76F_2.js} +0 -0
  904. /package/dist/{helpers-B4NWktS8.js → helpers-CRrn7Err.js} +0 -0
  905. /package/dist/{helpers-Cj6f8SPZ.js → helpers-DSMIGYx2.js} +0 -0
  906. /package/dist/{inbound-path-policy-DYTLjca8.js → inbound-path-policy-BurOAu44.js} +0 -0
  907. /package/dist/{input-provenance-CPhdY-0F.js → input-provenance-BgfeDgck.js} +0 -0
  908. /package/dist/{input-provenance-DUNEQoFM.js → input-provenance-xUsSMOsz.js} +0 -0
  909. /package/dist/{ip-BcdPcLiP.js → ip-BUhsZdJu.js} +0 -0
  910. /package/dist/{ipv4-OHvujh00.js → ipv4-ysiNGssl.js} +0 -0
  911. /package/dist/{is-main-KcWqINzy.js → is-main-BmHYGRhd.js} +0 -0
  912. /package/dist/{json-file-BVvmrQG3.js → json-file-B5WEJJye.js} +0 -0
  913. /package/dist/{json-files-DSKEdz7x.js → json-files-BFGbyEzL.js} +0 -0
  914. /package/dist/{json-files-BiA_B-xm.js → json-files-CfhnuGaC.js} +0 -0
  915. /package/dist/{lanes-Brd-nf-Z.js → lanes-4FoQemog.js} +0 -0
  916. /package/dist/{lanes-COs3zODW.js → lanes-BhdzrAIa.js} +0 -0
  917. /package/dist/{links-gse8sWn-.js → links-CwTlzaPe.js} +0 -0
  918. /package/dist/{links-CIHbVNO_.js → links-D5vtq30Q.js} +0 -0
  919. /package/dist/{location-D1FM_C63.js → location-50gaJF5Z.js} +0 -0
  920. /package/dist/{location-LuzkqHGi.js → location-Qo8Ii1zo.js} +0 -0
  921. /package/dist/{logger-BMP_j_Lx.js → logger-IA_Dr_BT.js} +0 -0
  922. /package/dist/{logger-DXCDb7qu.js → logger-O6JX52kK.js} +0 -0
  923. /package/dist/{logger-DWbwXLjl.js → logger-nEdVxm5D.js} +0 -0
  924. /package/dist/{logging-CAgCb3n3.js → logging-Bs1VqVFL.js} +0 -0
  925. /package/dist/{logging-CLc3Umm0.js → logging-FctZEleJ.js} +0 -0
  926. /package/dist/{mime-D4bQLMJL.js → mime-AuIDUZPG.js} +0 -0
  927. /package/dist/{mutable-allowlist-detectors-NtI6s4TE.js → mutable-allowlist-detectors-CtKavajp.js} +0 -0
  928. /package/dist/{mutable-allowlist-detectors-nAmo9v5u.js → mutable-allowlist-detectors-TCG6mnbz.js} +0 -0
  929. /package/dist/{nodes-screen-CZCXHrWB.js → nodes-screen-DEvpoFmH.js} +0 -0
  930. /package/dist/{onboard-config-CcPV3Cqz.js → onboard-config-BxfgUqk6.js} +0 -0
  931. /package/dist/{onboard-config-DcTaxmuf.js → onboard-config-DNzlo8Cg.js} +0 -0
  932. /package/dist/{parse-log-line-BY9Vz72K.js → parse-log-line-CT0H1-oQ.js} +0 -0
  933. /package/dist/{parse-log-line-BrrE4onI.js → parse-log-line-pij_xhtE.js} +0 -0
  934. /package/dist/{parse-timeout-CDkco8kd.js → parse-timeout-CvODy9RC.js} +0 -0
  935. /package/dist/{parse-timeout-Dfyln-4M.js → parse-timeout-CxYHsZWc.js} +0 -0
  936. /package/dist/{path-guards-D9LU0y9L.js → path-guards-DOpzcMXz.js} +0 -0
  937. /package/dist/{path-guards-crZaTVvq.js → path-guards-DipYoPVw.js} +0 -0
  938. /package/dist/{plugins-allowlist-CD4oIJNk.js → plugins-allowlist-Bcqe9Gd8.js} +0 -0
  939. /package/dist/{plugins-allowlist-CUhk3GDh.js → plugins-allowlist-ptAp-oPY.js} +0 -0
  940. /package/dist/{polls-ChvH1OIW.js → polls-DQrR-qT3.js} +0 -0
  941. /package/dist/{polls-Dn1C2d1-.js → polls-ybwcqkWt.js} +0 -0
  942. /package/dist/{ports-lsof-BDQWExpn.js → ports-lsof-CDyv5GJd.js} +0 -0
  943. /package/dist/{process-scoped-map-CBWcUvTa.js → process-scoped-map-_zxf_kLz.js} +0 -0
  944. /package/dist/{program-context-DtsEOsdM.js → program-context-CG-t6Yp-.js} +0 -0
  945. /package/dist/{progress-BjGCAXH7.js → progress-DRLmcFiG.js} +0 -0
  946. /package/dist/{prompt-FIISMuNm.js → prompt-BRGfic91.js} +0 -0
  947. /package/dist/{prompt-edYTUtju.js → prompt-WEkXwIMT.js} +0 -0
  948. /package/dist/{prompt-style-DL64_X-p.js → prompt-style-B1740PBl.js} +0 -0
  949. /package/dist/{prompt-style-CYEpbwXH.js → prompt-style-B4Cq4PyQ.js} +0 -0
  950. /package/dist/{provider-utils-FaBmofiq.js → provider-utils-C9kBVF1f.js} +0 -0
  951. /package/dist/{proxy-DUTF0OYE.js → proxy-BMJL0Qog.js} +0 -0
  952. /package/dist/{proxy-Dv0sbx6A.js → proxy-BdjLhNln.js} +0 -0
  953. /package/dist/{pw-ai-state-DKhOTqDv.js → pw-ai-state-CwXeO5d0.js} +0 -0
  954. /package/dist/{pw-ai-state-kkp06zyZ.js → pw-ai-state-DaISdsXY.js} +0 -0
  955. /package/dist/{redact-BTeK8lMZ.js → redact-CqWx9rpK.js} +0 -0
  956. /package/dist/{redact-identifier-F6t5pklx.js → redact-identifier-BJOQDEj0.js} +0 -0
  957. /package/dist/{redact-identifier-VdOrq-IK.js → redact-identifier-DR54qsoT.js} +0 -0
  958. /package/dist/{remoteclaw-root-rJHOCwzo.js → remoteclaw-root-CgNyrbxc.js} +0 -0
  959. /package/dist/{remoteclaw-root-DF8m3X4C.js → remoteclaw-root-u8dAeHID.js} +0 -0
  960. /package/dist/{render-e7fENCYH.js → render-CDCvpfhh.js} +0 -0
  961. /package/dist/{render-qcqmrHse.js → render-CJl4GK1B.js} +0 -0
  962. /package/dist/{retry-BcZuGfnV.js → retry-B19gMxS7.js} +0 -0
  963. /package/dist/{retry-CwZiwLDN.js → retry-cXXk2j6_.js} +0 -0
  964. /package/dist/{runtime-guard-CdJVmJc0.js → runtime-guard-BS55uiSW.js} +0 -0
  965. /package/dist/{secret-equal-CDUVxXmp.js → secret-equal-CJzes24Z.js} +0 -0
  966. /package/dist/{secret-equal-d3sEnK98.js → secret-equal-CQAmGfGc.js} +0 -0
  967. /package/dist/{secure-random-CJtykx_p.js → secure-random-B3f7Ri2X.js} +0 -0
  968. /package/dist/{secure-random-y6N6Gted.js → secure-random-BkZFG9cd.js} +0 -0
  969. /package/dist/{session-key-C2n-VILA.js → session-key-CgKWfjoZ.js} +0 -0
  970. /package/dist/{stagger-CjkdqPuN.js → stagger-B2ORDHsP.js} +0 -0
  971. /package/dist/{status-BFmH9Uge.js → status-C6YNwimj.js} +0 -0
  972. /package/dist/{status-BIupzBh9.js → status-yrDGXYZM.js} +0 -0
  973. /package/dist/{store-BLGrRL_E.js → store-B5989JkX.js} +0 -0
  974. /package/dist/{strip-inbound-meta-BNXRYvmY.js → strip-inbound-meta-0cvL6itU.js} +0 -0
  975. /package/dist/{strip-inbound-meta-BtNFmc6V.js → strip-inbound-meta-DjKcSFaW.js} +0 -0
  976. /package/dist/{table-Au5EeKD6.js → table-ByMyHTh_.js} +0 -0
  977. /package/dist/{tailnet-BoTa0e2q.js → tailnet-CfZhpSnt.js} +0 -0
  978. /package/dist/{target-errors-B6YON-5k.js → target-errors-DJVRKFcU.js} +0 -0
  979. /package/dist/{target-errors-sPHoHj73.js → target-errors-GZXDqlUu.js} +0 -0
  980. /package/dist/{targets-BtGRUQMa.js → targets-B_d_1z3N.js} +0 -0
  981. /package/dist/{targets-Ds5eT_RZ.js → targets-D01MJGnh.js} +0 -0
  982. /package/dist/{targets-DDdPVd12.js → targets-DOJXjN1U.js} +0 -0
  983. /package/dist/{targets-DtvPW-B8.js → targets-WSwPflb6.js} +0 -0
  984. /package/dist/{text-format-CFm4X8Ze.js → text-format-DarxU3JH.js} +0 -0
  985. /package/dist/{text-format-KHU3KzvQ.js → text-format-mr5bZq0f.js} +0 -0
  986. /package/dist/{thinking-XA5P_zFw.js → thinking-BqJmU6Zp.js} +0 -0
  987. /package/dist/{tokens-BGw4xHhW.js → tokens-C8yGxAcR.js} +0 -0
  988. /package/dist/{tokens-7ZtWRjA3.js → tokens-DAFBx5qr.js} +0 -0
  989. /package/dist/{tool-display-AxpSXZVq.js → tool-display-C0hpLmkw.js} +0 -0
  990. /package/dist/{usage-BEjWlD9A.js → usage-BXi79Rq6.js} +0 -0
  991. /package/dist/{usage-o8O_TxA-.js → usage-C1lHaofV.js} +0 -0
  992. /package/dist/{usage-format-Cx3JveFn.js → usage-format-CD5jsZY1.js} +0 -0
  993. /package/dist/{usage-format-D-ZaYT_e.js → usage-format-CRVpDVj1.js} +0 -0
  994. /package/dist/{widearea-dns-fHQt5-Q3.js → widearea-dns-C-0P7TRi.js} +0 -0
  995. /package/dist/{widearea-dns-DUDYT3z2.js → widearea-dns-DFZMcfLf.js} +0 -0
  996. /package/dist/{workspace-9__vtmnA.js → workspace-BJCKO8Ns.js} +0 -0
  997. /package/dist/{workspace-DkGLVfOl.js → workspace-BisvA9oA.js} +0 -0
  998. /package/dist/{wsl-BLrG__iS.js → wsl-D28w2jQC.js} +0 -0
  999. /package/dist/{wsl-C2dudsWt.js → wsl-kFaeW76c.js} +0 -0
@@ -1,1693 +0,0 @@
1
- import { h as resolveStateDir } from "./paths-BTaH3rLn.js";
2
- import { E as info, L as theme, T as danger, b as shortenHomePath } from "./utils-C5daYcFn.js";
3
- import "./subsystem-BgxIzx7w.js";
4
- import { n as defaultRuntime } from "./runtime-Ds3E9SqF.js";
5
- import "./ansi-aRwLYlzD.js";
6
- import "./agent-scope-BrDeaWWf.js";
7
- import "./message-channel-DF4I2vOK.js";
8
- import { i as loadConfig } from "./config-BHFQOi60.js";
9
- import { i as parseBooleanValue } from "./env-DUb5GiQe.js";
10
- import "./host-env-security-Bms2_EMV.js";
11
- import "./shell-env-CsV_IkJj.js";
12
- import "./env-vars-CLGbxdpL.js";
13
- import "./zod-schema-D3hQ5SKe.js";
14
- import "./logger-BtwpYD7c.js";
15
- import "./ip-BAhS4rY2.js";
16
- import "./exec-BhkXWg7V.js";
17
- import "./redact-gXuh8MFk.js";
18
- import "./errors-CdmXrBic.js";
19
- import { t as formatCliCommand } from "./command-format-D0vKipG9.js";
20
- import "./call--MNL1K_z.js";
21
- import "./net-COL170MG.js";
22
- import "./tailnet-BoTa0e2q.js";
23
- import "./fs-safe-93aDW4mH.js";
24
- import { t as formatDocsLink } from "./links-CIHbVNO_.js";
25
- import { a as resolveExistingPathsWithinRoot, i as DEFAULT_UPLOAD_DIR, t as movePathToTrash } from "./trash--8b4GDyV.js";
26
- import { n as inheritOptionFromParent } from "./command-options-7y5Zrv4M.js";
27
- import "./progress-DQ1drugY.js";
28
- import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-CofFUQ0T.js";
29
- import { t as runCommandWithRuntime } from "./cli-utils-C5nQDfa6.js";
30
- import { t as copyToClipboard } from "./clipboard-Cbj3McM_.js";
31
- import { t as formatHelpExamples } from "./help-format-Ch0EWh7N.js";
32
- import { fileURLToPath } from "node:url";
33
- import fs from "node:fs";
34
- import path from "node:path";
35
-
36
- //#region src/cli/browser-cli-shared.ts
37
- function normalizeQuery(query) {
38
- if (!query) return;
39
- const out = {};
40
- for (const [key, value] of Object.entries(query)) {
41
- if (value === void 0) continue;
42
- out[key] = String(value);
43
- }
44
- return Object.keys(out).length ? out : void 0;
45
- }
46
- async function callBrowserRequest(opts, params, extra) {
47
- const resolvedTimeoutMs = typeof extra?.timeoutMs === "number" && Number.isFinite(extra.timeoutMs) ? Math.max(1, Math.floor(extra.timeoutMs)) : typeof opts.timeout === "string" ? Number.parseInt(opts.timeout, 10) : void 0;
48
- const resolvedTimeout = typeof resolvedTimeoutMs === "number" && Number.isFinite(resolvedTimeoutMs) ? resolvedTimeoutMs : void 0;
49
- const timeout = typeof resolvedTimeout === "number" ? String(resolvedTimeout) : opts.timeout;
50
- const payload = await callGatewayFromCli("browser.request", {
51
- ...opts,
52
- timeout
53
- }, {
54
- method: params.method,
55
- path: params.path,
56
- query: normalizeQuery(params.query),
57
- body: params.body,
58
- timeoutMs: resolvedTimeout
59
- }, { progress: extra?.progress });
60
- if (payload === void 0) throw new Error("Unexpected browser.request response");
61
- return payload;
62
- }
63
- async function callBrowserResize(opts, params, extra) {
64
- return callBrowserRequest(opts, {
65
- method: "POST",
66
- path: "/act",
67
- query: params.profile ? { profile: params.profile } : void 0,
68
- body: {
69
- kind: "resize",
70
- width: params.width,
71
- height: params.height,
72
- targetId: params.targetId?.trim() || void 0
73
- }
74
- }, extra);
75
- }
76
-
77
- //#endregion
78
- //#region src/cli/browser-cli-actions-input/shared.ts
79
- function resolveBrowserActionContext(cmd, parentOpts) {
80
- const parent = parentOpts(cmd);
81
- return {
82
- parent,
83
- profile: parent?.browserProfile
84
- };
85
- }
86
- async function callBrowserAct(params) {
87
- return await callBrowserRequest(params.parent, {
88
- method: "POST",
89
- path: "/act",
90
- query: params.profile ? { profile: params.profile } : void 0,
91
- body: params.body
92
- }, { timeoutMs: params.timeoutMs ?? 2e4 });
93
- }
94
- function requireRef(ref) {
95
- const refValue = typeof ref === "string" ? ref.trim() : "";
96
- if (!refValue) {
97
- defaultRuntime.error(danger("ref is required"));
98
- defaultRuntime.exit(1);
99
- return null;
100
- }
101
- return refValue;
102
- }
103
- async function readFile(path) {
104
- return await (await import("node:fs/promises")).readFile(path, "utf8");
105
- }
106
- async function readFields(opts) {
107
- const payload = opts.fieldsFile ? await readFile(opts.fieldsFile) : opts.fields ?? "";
108
- if (!payload.trim()) throw new Error("fields are required");
109
- const parsed = JSON.parse(payload);
110
- if (!Array.isArray(parsed)) throw new Error("fields must be an array");
111
- return parsed.map((entry, index) => {
112
- if (!entry || typeof entry !== "object") throw new Error(`fields[${index}] must be an object`);
113
- const rec = entry;
114
- const ref = typeof rec.ref === "string" ? rec.ref.trim() : "";
115
- const type = typeof rec.type === "string" ? rec.type.trim() : "";
116
- if (!ref || !type) throw new Error(`fields[${index}] must include ref and type`);
117
- if (typeof rec.value === "string" || typeof rec.value === "number" || typeof rec.value === "boolean") return {
118
- ref,
119
- type,
120
- value: rec.value
121
- };
122
- if (rec.value === void 0 || rec.value === null) return {
123
- ref,
124
- type
125
- };
126
- throw new Error(`fields[${index}].value must be string, number, boolean, or null`);
127
- });
128
- }
129
-
130
- //#endregion
131
- //#region src/cli/browser-cli-actions-input/register.element.ts
132
- function registerBrowserElementCommands(browser, parentOpts) {
133
- browser.command("click").description("Click an element by ref from snapshot").argument("<ref>", "Ref id from snapshot").option("--target-id <id>", "CDP target id (or unique prefix)").option("--double", "Double click", false).option("--button <left|right|middle>", "Mouse button to use").option("--modifiers <list>", "Comma-separated modifiers (Shift,Alt,Meta)").action(async (ref, opts, cmd) => {
134
- const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
135
- const refValue = requireRef(ref);
136
- if (!refValue) return;
137
- const modifiers = opts.modifiers ? String(opts.modifiers).split(",").map((v) => v.trim()).filter(Boolean) : void 0;
138
- try {
139
- const result = await callBrowserAct({
140
- parent,
141
- profile,
142
- body: {
143
- kind: "click",
144
- ref: refValue,
145
- targetId: opts.targetId?.trim() || void 0,
146
- doubleClick: Boolean(opts.double),
147
- button: opts.button?.trim() || void 0,
148
- modifiers
149
- }
150
- });
151
- if (parent?.json) {
152
- defaultRuntime.log(JSON.stringify(result, null, 2));
153
- return;
154
- }
155
- const suffix = result.url ? ` on ${result.url}` : "";
156
- defaultRuntime.log(`clicked ref ${refValue}${suffix}`);
157
- } catch (err) {
158
- defaultRuntime.error(danger(String(err)));
159
- defaultRuntime.exit(1);
160
- }
161
- });
162
- browser.command("type").description("Type into an element by ref from snapshot").argument("<ref>", "Ref id from snapshot").argument("<text>", "Text to type").option("--submit", "Press Enter after typing", false).option("--slowly", "Type slowly (human-like)", false).option("--target-id <id>", "CDP target id (or unique prefix)").action(async (ref, text, opts, cmd) => {
163
- const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
164
- const refValue = requireRef(ref);
165
- if (!refValue) return;
166
- try {
167
- const result = await callBrowserAct({
168
- parent,
169
- profile,
170
- body: {
171
- kind: "type",
172
- ref: refValue,
173
- text,
174
- submit: Boolean(opts.submit),
175
- slowly: Boolean(opts.slowly),
176
- targetId: opts.targetId?.trim() || void 0
177
- }
178
- });
179
- if (parent?.json) {
180
- defaultRuntime.log(JSON.stringify(result, null, 2));
181
- return;
182
- }
183
- defaultRuntime.log(`typed into ref ${refValue}`);
184
- } catch (err) {
185
- defaultRuntime.error(danger(String(err)));
186
- defaultRuntime.exit(1);
187
- }
188
- });
189
- browser.command("press").description("Press a key").argument("<key>", "Key to press (e.g. Enter)").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (key, opts, cmd) => {
190
- const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
191
- try {
192
- const result = await callBrowserAct({
193
- parent,
194
- profile,
195
- body: {
196
- kind: "press",
197
- key,
198
- targetId: opts.targetId?.trim() || void 0
199
- }
200
- });
201
- if (parent?.json) {
202
- defaultRuntime.log(JSON.stringify(result, null, 2));
203
- return;
204
- }
205
- defaultRuntime.log(`pressed ${key}`);
206
- } catch (err) {
207
- defaultRuntime.error(danger(String(err)));
208
- defaultRuntime.exit(1);
209
- }
210
- });
211
- browser.command("hover").description("Hover an element by ai ref").argument("<ref>", "Ref id from snapshot").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (ref, opts, cmd) => {
212
- const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
213
- try {
214
- const result = await callBrowserAct({
215
- parent,
216
- profile,
217
- body: {
218
- kind: "hover",
219
- ref,
220
- targetId: opts.targetId?.trim() || void 0
221
- }
222
- });
223
- if (parent?.json) {
224
- defaultRuntime.log(JSON.stringify(result, null, 2));
225
- return;
226
- }
227
- defaultRuntime.log(`hovered ref ${ref}`);
228
- } catch (err) {
229
- defaultRuntime.error(danger(String(err)));
230
- defaultRuntime.exit(1);
231
- }
232
- });
233
- browser.command("scrollintoview").description("Scroll an element into view by ref from snapshot").argument("<ref>", "Ref id from snapshot").option("--target-id <id>", "CDP target id (or unique prefix)").option("--timeout-ms <ms>", "How long to wait for scroll (default: 20000)", (v) => Number(v)).action(async (ref, opts, cmd) => {
234
- const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
235
- const refValue = requireRef(ref);
236
- if (!refValue) return;
237
- try {
238
- const result = await callBrowserAct({
239
- parent,
240
- profile,
241
- body: {
242
- kind: "scrollIntoView",
243
- ref: refValue,
244
- targetId: opts.targetId?.trim() || void 0,
245
- timeoutMs: Number.isFinite(opts.timeoutMs) ? opts.timeoutMs : void 0
246
- },
247
- timeoutMs: Number.isFinite(opts.timeoutMs) ? opts.timeoutMs : void 0
248
- });
249
- if (parent?.json) {
250
- defaultRuntime.log(JSON.stringify(result, null, 2));
251
- return;
252
- }
253
- defaultRuntime.log(`scrolled into view: ${refValue}`);
254
- } catch (err) {
255
- defaultRuntime.error(danger(String(err)));
256
- defaultRuntime.exit(1);
257
- }
258
- });
259
- browser.command("drag").description("Drag from one ref to another").argument("<startRef>", "Start ref id").argument("<endRef>", "End ref id").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (startRef, endRef, opts, cmd) => {
260
- const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
261
- try {
262
- const result = await callBrowserAct({
263
- parent,
264
- profile,
265
- body: {
266
- kind: "drag",
267
- startRef,
268
- endRef,
269
- targetId: opts.targetId?.trim() || void 0
270
- }
271
- });
272
- if (parent?.json) {
273
- defaultRuntime.log(JSON.stringify(result, null, 2));
274
- return;
275
- }
276
- defaultRuntime.log(`dragged ${startRef} → ${endRef}`);
277
- } catch (err) {
278
- defaultRuntime.error(danger(String(err)));
279
- defaultRuntime.exit(1);
280
- }
281
- });
282
- browser.command("select").description("Select option(s) in a select element").argument("<ref>", "Ref id from snapshot").argument("<values...>", "Option values to select").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (ref, values, opts, cmd) => {
283
- const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
284
- try {
285
- const result = await callBrowserAct({
286
- parent,
287
- profile,
288
- body: {
289
- kind: "select",
290
- ref,
291
- values,
292
- targetId: opts.targetId?.trim() || void 0
293
- }
294
- });
295
- if (parent?.json) {
296
- defaultRuntime.log(JSON.stringify(result, null, 2));
297
- return;
298
- }
299
- defaultRuntime.log(`selected ${values.join(", ")}`);
300
- } catch (err) {
301
- defaultRuntime.error(danger(String(err)));
302
- defaultRuntime.exit(1);
303
- }
304
- });
305
- }
306
-
307
- //#endregion
308
- //#region src/cli/browser-cli-actions-input/register.files-downloads.ts
309
- async function normalizeUploadPaths(paths) {
310
- const result = await resolveExistingPathsWithinRoot({
311
- rootDir: DEFAULT_UPLOAD_DIR,
312
- requestedPaths: paths,
313
- scopeLabel: `uploads directory (${DEFAULT_UPLOAD_DIR})`
314
- });
315
- if (!result.ok) throw new Error(result.error);
316
- return result.paths;
317
- }
318
- function registerBrowserFilesAndDownloadsCommands(browser, parentOpts) {
319
- const resolveTimeoutAndTarget = (opts) => {
320
- return {
321
- timeoutMs: Number.isFinite(opts.timeoutMs) ? Number(opts.timeoutMs) : void 0,
322
- targetId: typeof opts.targetId === "string" ? opts.targetId.trim() || void 0 : void 0
323
- };
324
- };
325
- const runDownloadCommand = async (cmd, opts, request) => {
326
- const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
327
- try {
328
- const { timeoutMs, targetId } = resolveTimeoutAndTarget(opts);
329
- const result = await callBrowserRequest(parent, {
330
- method: "POST",
331
- path: request.path,
332
- query: profile ? { profile } : void 0,
333
- body: {
334
- ...request.body,
335
- targetId,
336
- timeoutMs
337
- }
338
- }, { timeoutMs: timeoutMs ?? 2e4 });
339
- if (parent?.json) {
340
- defaultRuntime.log(JSON.stringify(result, null, 2));
341
- return;
342
- }
343
- defaultRuntime.log(`downloaded: ${shortenHomePath(result.download.path)}`);
344
- } catch (err) {
345
- defaultRuntime.error(danger(String(err)));
346
- defaultRuntime.exit(1);
347
- }
348
- };
349
- browser.command("upload").description("Arm file upload for the next file chooser").argument("<paths...>", "File paths to upload (must be within RemoteClaw temp uploads dir, e.g. /tmp/remoteclaw/uploads/file.pdf)").option("--ref <ref>", "Ref id from snapshot to click after arming").option("--input-ref <ref>", "Ref id for <input type=file> to set directly").option("--element <selector>", "CSS selector for <input type=file>").option("--target-id <id>", "CDP target id (or unique prefix)").option("--timeout-ms <ms>", "How long to wait for the next file chooser (default: 120000)", (v) => Number(v)).action(async (paths, opts, cmd) => {
350
- const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
351
- try {
352
- const normalizedPaths = await normalizeUploadPaths(paths);
353
- const { timeoutMs, targetId } = resolveTimeoutAndTarget(opts);
354
- const result = await callBrowserRequest(parent, {
355
- method: "POST",
356
- path: "/hooks/file-chooser",
357
- query: profile ? { profile } : void 0,
358
- body: {
359
- paths: normalizedPaths,
360
- ref: opts.ref?.trim() || void 0,
361
- inputRef: opts.inputRef?.trim() || void 0,
362
- element: opts.element?.trim() || void 0,
363
- targetId,
364
- timeoutMs
365
- }
366
- }, { timeoutMs: timeoutMs ?? 2e4 });
367
- if (parent?.json) {
368
- defaultRuntime.log(JSON.stringify(result, null, 2));
369
- return;
370
- }
371
- defaultRuntime.log(`upload armed for ${paths.length} file(s)`);
372
- } catch (err) {
373
- defaultRuntime.error(danger(String(err)));
374
- defaultRuntime.exit(1);
375
- }
376
- });
377
- browser.command("waitfordownload").description("Wait for the next download (and save it)").argument("[path]", "Save path within remoteclaw temp downloads dir (default: /tmp/remoteclaw/downloads/...; fallback: os.tmpdir()/remoteclaw/downloads/...)").option("--target-id <id>", "CDP target id (or unique prefix)").option("--timeout-ms <ms>", "How long to wait for the next download (default: 120000)", (v) => Number(v)).action(async (outPath, opts, cmd) => {
378
- await runDownloadCommand(cmd, opts, {
379
- path: "/wait/download",
380
- body: { path: outPath?.trim() || void 0 }
381
- });
382
- });
383
- browser.command("download").description("Click a ref and save the resulting download").argument("<ref>", "Ref id from snapshot to click").argument("<path>", "Save path within remoteclaw temp downloads dir (e.g. report.pdf or /tmp/remoteclaw/downloads/report.pdf)").option("--target-id <id>", "CDP target id (or unique prefix)").option("--timeout-ms <ms>", "How long to wait for the download to start (default: 120000)", (v) => Number(v)).action(async (ref, outPath, opts, cmd) => {
384
- await runDownloadCommand(cmd, opts, {
385
- path: "/download",
386
- body: {
387
- ref,
388
- path: outPath
389
- }
390
- });
391
- });
392
- browser.command("dialog").description("Arm the next modal dialog (alert/confirm/prompt)").option("--accept", "Accept the dialog", false).option("--dismiss", "Dismiss the dialog", false).option("--prompt <text>", "Prompt response text").option("--target-id <id>", "CDP target id (or unique prefix)").option("--timeout-ms <ms>", "How long to wait for the next dialog (default: 120000)", (v) => Number(v)).action(async (opts, cmd) => {
393
- const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
394
- const accept = opts.accept ? true : opts.dismiss ? false : void 0;
395
- if (accept === void 0) {
396
- defaultRuntime.error(danger("Specify --accept or --dismiss"));
397
- defaultRuntime.exit(1);
398
- return;
399
- }
400
- try {
401
- const { timeoutMs, targetId } = resolveTimeoutAndTarget(opts);
402
- const result = await callBrowserRequest(parent, {
403
- method: "POST",
404
- path: "/hooks/dialog",
405
- query: profile ? { profile } : void 0,
406
- body: {
407
- accept,
408
- promptText: opts.prompt?.trim() || void 0,
409
- targetId,
410
- timeoutMs
411
- }
412
- }, { timeoutMs: timeoutMs ?? 2e4 });
413
- if (parent?.json) {
414
- defaultRuntime.log(JSON.stringify(result, null, 2));
415
- return;
416
- }
417
- defaultRuntime.log("dialog armed");
418
- } catch (err) {
419
- defaultRuntime.error(danger(String(err)));
420
- defaultRuntime.exit(1);
421
- }
422
- });
423
- }
424
-
425
- //#endregion
426
- //#region src/cli/browser-cli-actions-input/register.form-wait-eval.ts
427
- function registerBrowserFormWaitEvalCommands(browser, parentOpts) {
428
- browser.command("fill").description("Fill a form with JSON field descriptors").option("--fields <json>", "JSON array of field objects").option("--fields-file <path>", "Read JSON array from a file").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (opts, cmd) => {
429
- const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
430
- try {
431
- const fields = await readFields({
432
- fields: opts.fields,
433
- fieldsFile: opts.fieldsFile
434
- });
435
- const result = await callBrowserAct({
436
- parent,
437
- profile,
438
- body: {
439
- kind: "fill",
440
- fields,
441
- targetId: opts.targetId?.trim() || void 0
442
- }
443
- });
444
- if (parent?.json) {
445
- defaultRuntime.log(JSON.stringify(result, null, 2));
446
- return;
447
- }
448
- defaultRuntime.log(`filled ${fields.length} field(s)`);
449
- } catch (err) {
450
- defaultRuntime.error(danger(String(err)));
451
- defaultRuntime.exit(1);
452
- }
453
- });
454
- browser.command("wait").description("Wait for time, selector, URL, load state, or JS conditions").argument("[selector]", "CSS selector to wait for (visible)").option("--time <ms>", "Wait for N milliseconds", (v) => Number(v)).option("--text <value>", "Wait for text to appear").option("--text-gone <value>", "Wait for text to disappear").option("--url <pattern>", "Wait for URL (supports globs like **/dash)").option("--load <load|domcontentloaded|networkidle>", "Wait for load state").option("--fn <js>", "Wait for JS condition (passed to waitForFunction)").option("--timeout-ms <ms>", "How long to wait for each condition (default: 20000)", (v) => Number(v)).option("--target-id <id>", "CDP target id (or unique prefix)").action(async (selector, opts, cmd) => {
455
- const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
456
- try {
457
- const sel = selector?.trim() || void 0;
458
- const load = opts.load === "load" || opts.load === "domcontentloaded" || opts.load === "networkidle" ? opts.load : void 0;
459
- const timeoutMs = Number.isFinite(opts.timeoutMs) ? opts.timeoutMs : void 0;
460
- const result = await callBrowserAct({
461
- parent,
462
- profile,
463
- body: {
464
- kind: "wait",
465
- timeMs: Number.isFinite(opts.time) ? opts.time : void 0,
466
- text: opts.text?.trim() || void 0,
467
- textGone: opts.textGone?.trim() || void 0,
468
- selector: sel,
469
- url: opts.url?.trim() || void 0,
470
- loadState: load,
471
- fn: opts.fn?.trim() || void 0,
472
- targetId: opts.targetId?.trim() || void 0,
473
- timeoutMs
474
- },
475
- timeoutMs
476
- });
477
- if (parent?.json) {
478
- defaultRuntime.log(JSON.stringify(result, null, 2));
479
- return;
480
- }
481
- defaultRuntime.log("wait complete");
482
- } catch (err) {
483
- defaultRuntime.error(danger(String(err)));
484
- defaultRuntime.exit(1);
485
- }
486
- });
487
- browser.command("evaluate").description("Evaluate a function against the page or a ref").option("--fn <code>", "Function source, e.g. (el) => el.textContent").option("--ref <id>", "Ref from snapshot").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (opts, cmd) => {
488
- const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
489
- if (!opts.fn) {
490
- defaultRuntime.error(danger("Missing --fn"));
491
- defaultRuntime.exit(1);
492
- return;
493
- }
494
- try {
495
- const result = await callBrowserAct({
496
- parent,
497
- profile,
498
- body: {
499
- kind: "evaluate",
500
- fn: opts.fn,
501
- ref: opts.ref?.trim() || void 0,
502
- targetId: opts.targetId?.trim() || void 0
503
- }
504
- });
505
- if (parent?.json) {
506
- defaultRuntime.log(JSON.stringify(result, null, 2));
507
- return;
508
- }
509
- defaultRuntime.log(JSON.stringify(result.result ?? null, null, 2));
510
- } catch (err) {
511
- defaultRuntime.error(danger(String(err)));
512
- defaultRuntime.exit(1);
513
- }
514
- });
515
- }
516
-
517
- //#endregion
518
- //#region src/cli/browser-cli-resize.ts
519
- async function runBrowserResizeWithOutput(params) {
520
- const { width, height } = params;
521
- if (!Number.isFinite(width) || !Number.isFinite(height)) {
522
- defaultRuntime.error(danger("width and height must be numbers"));
523
- defaultRuntime.exit(1);
524
- return;
525
- }
526
- const result = await callBrowserResize(params.parent, {
527
- profile: params.profile,
528
- width,
529
- height,
530
- targetId: params.targetId
531
- }, { timeoutMs: params.timeoutMs ?? 2e4 });
532
- if (params.parent?.json) {
533
- defaultRuntime.log(JSON.stringify(result, null, 2));
534
- return;
535
- }
536
- defaultRuntime.log(params.successMessage);
537
- }
538
-
539
- //#endregion
540
- //#region src/cli/browser-cli-actions-input/register.navigation.ts
541
- function registerBrowserNavigationCommands(browser, parentOpts) {
542
- browser.command("navigate").description("Navigate the current tab to a URL").argument("<url>", "URL to navigate to").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (url, opts, cmd) => {
543
- const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
544
- try {
545
- const result = await callBrowserRequest(parent, {
546
- method: "POST",
547
- path: "/navigate",
548
- query: profile ? { profile } : void 0,
549
- body: {
550
- url,
551
- targetId: opts.targetId?.trim() || void 0
552
- }
553
- }, { timeoutMs: 2e4 });
554
- if (parent?.json) {
555
- defaultRuntime.log(JSON.stringify(result, null, 2));
556
- return;
557
- }
558
- defaultRuntime.log(`navigated to ${result.url ?? url}`);
559
- } catch (err) {
560
- defaultRuntime.error(danger(String(err)));
561
- defaultRuntime.exit(1);
562
- }
563
- });
564
- browser.command("resize").description("Resize the viewport").argument("<width>", "Viewport width", (v) => Number(v)).argument("<height>", "Viewport height", (v) => Number(v)).option("--target-id <id>", "CDP target id (or unique prefix)").action(async (width, height, opts, cmd) => {
565
- const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
566
- try {
567
- await runBrowserResizeWithOutput({
568
- parent,
569
- profile,
570
- width,
571
- height,
572
- targetId: opts.targetId,
573
- timeoutMs: 2e4,
574
- successMessage: `resized to ${width}x${height}`
575
- });
576
- } catch (err) {
577
- defaultRuntime.error(danger(String(err)));
578
- defaultRuntime.exit(1);
579
- }
580
- });
581
- }
582
-
583
- //#endregion
584
- //#region src/cli/browser-cli-actions-input/register.ts
585
- function registerBrowserActionInputCommands(browser, parentOpts) {
586
- registerBrowserNavigationCommands(browser, parentOpts);
587
- registerBrowserElementCommands(browser, parentOpts);
588
- registerBrowserFilesAndDownloadsCommands(browser, parentOpts);
589
- registerBrowserFormWaitEvalCommands(browser, parentOpts);
590
- }
591
-
592
- //#endregion
593
- //#region src/cli/browser-cli-actions-observe.ts
594
- function runBrowserObserve(action) {
595
- return runCommandWithRuntime(defaultRuntime, action, (err) => {
596
- defaultRuntime.error(danger(String(err)));
597
- defaultRuntime.exit(1);
598
- });
599
- }
600
- function registerBrowserActionObserveCommands(browser, parentOpts) {
601
- browser.command("console").description("Get recent console messages").option("--level <level>", "Filter by level (error, warn, info)").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (opts, cmd) => {
602
- const parent = parentOpts(cmd);
603
- const profile = parent?.browserProfile;
604
- await runBrowserObserve(async () => {
605
- const result = await callBrowserRequest(parent, {
606
- method: "GET",
607
- path: "/console",
608
- query: {
609
- level: opts.level?.trim() || void 0,
610
- targetId: opts.targetId?.trim() || void 0,
611
- profile
612
- }
613
- }, { timeoutMs: 2e4 });
614
- if (parent?.json) {
615
- defaultRuntime.log(JSON.stringify(result, null, 2));
616
- return;
617
- }
618
- defaultRuntime.log(JSON.stringify(result.messages, null, 2));
619
- });
620
- });
621
- browser.command("pdf").description("Save page as PDF").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (opts, cmd) => {
622
- const parent = parentOpts(cmd);
623
- const profile = parent?.browserProfile;
624
- await runBrowserObserve(async () => {
625
- const result = await callBrowserRequest(parent, {
626
- method: "POST",
627
- path: "/pdf",
628
- query: profile ? { profile } : void 0,
629
- body: { targetId: opts.targetId?.trim() || void 0 }
630
- }, { timeoutMs: 2e4 });
631
- if (parent?.json) {
632
- defaultRuntime.log(JSON.stringify(result, null, 2));
633
- return;
634
- }
635
- defaultRuntime.log(`PDF: ${shortenHomePath(result.path)}`);
636
- });
637
- });
638
- browser.command("responsebody").description("Wait for a network response and return its body").argument("<url>", "URL (exact, substring, or glob like **/api)").option("--target-id <id>", "CDP target id (or unique prefix)").option("--timeout-ms <ms>", "How long to wait for the response (default: 20000)", (v) => Number(v)).option("--max-chars <n>", "Max body chars to return (default: 200000)", (v) => Number(v)).action(async (url, opts, cmd) => {
639
- const parent = parentOpts(cmd);
640
- const profile = parent?.browserProfile;
641
- await runBrowserObserve(async () => {
642
- const timeoutMs = Number.isFinite(opts.timeoutMs) ? opts.timeoutMs : void 0;
643
- const maxChars = Number.isFinite(opts.maxChars) ? opts.maxChars : void 0;
644
- const result = await callBrowserRequest(parent, {
645
- method: "POST",
646
- path: "/response/body",
647
- query: profile ? { profile } : void 0,
648
- body: {
649
- url,
650
- targetId: opts.targetId?.trim() || void 0,
651
- timeoutMs,
652
- maxChars
653
- }
654
- }, { timeoutMs: timeoutMs ?? 2e4 });
655
- if (parent?.json) {
656
- defaultRuntime.log(JSON.stringify(result, null, 2));
657
- return;
658
- }
659
- defaultRuntime.log(result.response.body);
660
- });
661
- });
662
- }
663
-
664
- //#endregion
665
- //#region src/cli/browser-cli-debug.ts
666
- function runBrowserDebug(action) {
667
- return runCommandWithRuntime(defaultRuntime, action, (err) => {
668
- defaultRuntime.error(danger(String(err)));
669
- defaultRuntime.exit(1);
670
- });
671
- }
672
- function resolveDebugQuery(params) {
673
- return {
674
- targetId: typeof params.targetId === "string" ? params.targetId.trim() || void 0 : void 0,
675
- filter: typeof params.filter === "string" ? params.filter.trim() || void 0 : void 0,
676
- clear: Boolean(params.clear),
677
- profile: params.profile
678
- };
679
- }
680
- function registerBrowserDebugCommands(browser, parentOpts) {
681
- browser.command("highlight").description("Highlight an element by ref").argument("<ref>", "Ref id from snapshot").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (ref, opts, cmd) => {
682
- const parent = parentOpts(cmd);
683
- const profile = parent?.browserProfile;
684
- await runBrowserDebug(async () => {
685
- const result = await callBrowserRequest(parent, {
686
- method: "POST",
687
- path: "/highlight",
688
- query: profile ? { profile } : void 0,
689
- body: {
690
- ref: ref.trim(),
691
- targetId: opts.targetId?.trim() || void 0
692
- }
693
- }, { timeoutMs: 2e4 });
694
- if (parent?.json) {
695
- defaultRuntime.log(JSON.stringify(result, null, 2));
696
- return;
697
- }
698
- defaultRuntime.log(`highlighted ${ref.trim()}`);
699
- });
700
- });
701
- browser.command("errors").description("Get recent page errors").option("--clear", "Clear stored errors after reading", false).option("--target-id <id>", "CDP target id (or unique prefix)").action(async (opts, cmd) => {
702
- const parent = parentOpts(cmd);
703
- const profile = parent?.browserProfile;
704
- await runBrowserDebug(async () => {
705
- const result = await callBrowserRequest(parent, {
706
- method: "GET",
707
- path: "/errors",
708
- query: resolveDebugQuery({
709
- targetId: opts.targetId,
710
- clear: opts.clear,
711
- profile
712
- })
713
- }, { timeoutMs: 2e4 });
714
- if (parent?.json) {
715
- defaultRuntime.log(JSON.stringify(result, null, 2));
716
- return;
717
- }
718
- if (!result.errors.length) {
719
- defaultRuntime.log("No page errors.");
720
- return;
721
- }
722
- defaultRuntime.log(result.errors.map((e) => `${e.timestamp} ${e.name ? `${e.name}: ` : ""}${e.message}`).join("\n"));
723
- });
724
- });
725
- browser.command("requests").description("Get recent network requests (best-effort)").option("--filter <text>", "Only show URLs that contain this substring").option("--clear", "Clear stored requests after reading", false).option("--target-id <id>", "CDP target id (or unique prefix)").action(async (opts, cmd) => {
726
- const parent = parentOpts(cmd);
727
- const profile = parent?.browserProfile;
728
- await runBrowserDebug(async () => {
729
- const result = await callBrowserRequest(parent, {
730
- method: "GET",
731
- path: "/requests",
732
- query: resolveDebugQuery({
733
- targetId: opts.targetId,
734
- filter: opts.filter,
735
- clear: opts.clear,
736
- profile
737
- })
738
- }, { timeoutMs: 2e4 });
739
- if (parent?.json) {
740
- defaultRuntime.log(JSON.stringify(result, null, 2));
741
- return;
742
- }
743
- if (!result.requests.length) {
744
- defaultRuntime.log("No requests recorded.");
745
- return;
746
- }
747
- defaultRuntime.log(result.requests.map((r) => {
748
- const status = typeof r.status === "number" ? ` ${r.status}` : "";
749
- const ok = r.ok === true ? " ok" : r.ok === false ? " fail" : "";
750
- const fail = r.failureText ? ` (${r.failureText})` : "";
751
- return `${r.timestamp} ${r.method}${status}${ok} ${r.url}${fail}`;
752
- }).join("\n"));
753
- });
754
- });
755
- const trace = browser.command("trace").description("Record a Playwright trace");
756
- trace.command("start").description("Start trace recording").option("--target-id <id>", "CDP target id (or unique prefix)").option("--no-screenshots", "Disable screenshots").option("--no-snapshots", "Disable snapshots").option("--sources", "Include sources (bigger traces)", false).action(async (opts, cmd) => {
757
- const parent = parentOpts(cmd);
758
- const profile = parent?.browserProfile;
759
- await runBrowserDebug(async () => {
760
- const result = await callBrowserRequest(parent, {
761
- method: "POST",
762
- path: "/trace/start",
763
- query: profile ? { profile } : void 0,
764
- body: {
765
- targetId: opts.targetId?.trim() || void 0,
766
- screenshots: Boolean(opts.screenshots),
767
- snapshots: Boolean(opts.snapshots),
768
- sources: Boolean(opts.sources)
769
- }
770
- }, { timeoutMs: 2e4 });
771
- if (parent?.json) {
772
- defaultRuntime.log(JSON.stringify(result, null, 2));
773
- return;
774
- }
775
- defaultRuntime.log("trace started");
776
- });
777
- });
778
- trace.command("stop").description("Stop trace recording and write a .zip").option("--out <path>", "Output path within remoteclaw temp dir (e.g. trace.zip or /tmp/remoteclaw/trace.zip)").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (opts, cmd) => {
779
- const parent = parentOpts(cmd);
780
- const profile = parent?.browserProfile;
781
- await runBrowserDebug(async () => {
782
- const result = await callBrowserRequest(parent, {
783
- method: "POST",
784
- path: "/trace/stop",
785
- query: profile ? { profile } : void 0,
786
- body: {
787
- targetId: opts.targetId?.trim() || void 0,
788
- path: opts.out?.trim() || void 0
789
- }
790
- }, { timeoutMs: 2e4 });
791
- if (parent?.json) {
792
- defaultRuntime.log(JSON.stringify(result, null, 2));
793
- return;
794
- }
795
- defaultRuntime.log(`TRACE:${shortenHomePath(result.path)}`);
796
- });
797
- });
798
- }
799
-
800
- //#endregion
801
- //#region src/cli/browser-cli-examples.ts
802
- const browserCoreExamples = [
803
- "remoteclaw browser status",
804
- "remoteclaw browser start",
805
- "remoteclaw browser stop",
806
- "remoteclaw browser tabs",
807
- "remoteclaw browser open https://example.com",
808
- "remoteclaw browser focus abcd1234",
809
- "remoteclaw browser close abcd1234",
810
- "remoteclaw browser screenshot",
811
- "remoteclaw browser screenshot --full-page",
812
- "remoteclaw browser screenshot --ref 12",
813
- "remoteclaw browser snapshot",
814
- "remoteclaw browser snapshot --format aria --limit 200",
815
- "remoteclaw browser snapshot --efficient",
816
- "remoteclaw browser snapshot --labels"
817
- ];
818
- const browserActionExamples = [
819
- "remoteclaw browser navigate https://example.com",
820
- "remoteclaw browser resize 1280 720",
821
- "remoteclaw browser click 12 --double",
822
- "remoteclaw browser type 23 \"hello\" --submit",
823
- "remoteclaw browser press Enter",
824
- "remoteclaw browser hover 44",
825
- "remoteclaw browser drag 10 11",
826
- "remoteclaw browser select 9 OptionA OptionB",
827
- "remoteclaw browser upload /tmp/remoteclaw/uploads/file.pdf",
828
- "remoteclaw browser fill --fields '[{\"ref\":\"1\",\"value\":\"Ada\"}]'",
829
- "remoteclaw browser dialog --accept",
830
- "remoteclaw browser wait --text \"Done\"",
831
- "remoteclaw browser evaluate --fn '(el) => el.textContent' --ref 7",
832
- "remoteclaw browser console --level error",
833
- "remoteclaw browser pdf"
834
- ];
835
-
836
- //#endregion
837
- //#region src/cli/browser-cli-extension.ts
838
- function resolveBundledExtensionRootDir(here = path.dirname(fileURLToPath(import.meta.url))) {
839
- let current = here;
840
- while (true) {
841
- const candidate = path.join(current, "assets", "chrome-extension");
842
- if (hasManifest(candidate)) return candidate;
843
- const parent = path.dirname(current);
844
- if (parent === current) break;
845
- current = parent;
846
- }
847
- return path.resolve(here, "../../assets/chrome-extension");
848
- }
849
- function installedExtensionRootDir() {
850
- return path.join(resolveStateDir(), "browser", "chrome-extension");
851
- }
852
- function hasManifest(dir) {
853
- return fs.existsSync(path.join(dir, "manifest.json"));
854
- }
855
- async function installChromeExtension(opts) {
856
- const src = opts?.sourceDir ?? resolveBundledExtensionRootDir();
857
- if (!hasManifest(src)) throw new Error("Bundled Chrome extension is missing. Reinstall RemoteClaw and try again.");
858
- const stateDir = opts?.stateDir ?? resolveStateDir();
859
- const dest = path.join(stateDir, "browser", "chrome-extension");
860
- fs.mkdirSync(path.dirname(dest), { recursive: true });
861
- if (fs.existsSync(dest)) await movePathToTrash(dest).catch(() => {
862
- const backup = `${dest}.old-${Date.now()}`;
863
- fs.renameSync(dest, backup);
864
- });
865
- await fs.promises.cp(src, dest, { recursive: true });
866
- if (!hasManifest(dest)) throw new Error("Chrome extension install failed (manifest.json missing). Try again.");
867
- return { path: dest };
868
- }
869
- function registerBrowserExtensionCommands(browser, parentOpts) {
870
- const ext = browser.command("extension").description("Chrome extension helpers");
871
- ext.command("install").description("Install the Chrome extension to a stable local path").action(async (_opts, cmd) => {
872
- const parent = parentOpts(cmd);
873
- let installed;
874
- try {
875
- installed = await installChromeExtension();
876
- } catch (err) {
877
- defaultRuntime.error(danger(String(err)));
878
- defaultRuntime.exit(1);
879
- return;
880
- }
881
- if (parent?.json) {
882
- defaultRuntime.log(JSON.stringify({
883
- ok: true,
884
- path: installed.path
885
- }, null, 2));
886
- return;
887
- }
888
- const displayPath = shortenHomePath(installed.path);
889
- defaultRuntime.log(displayPath);
890
- const copied = await copyToClipboard(installed.path).catch(() => false);
891
- defaultRuntime.error(info([
892
- copied ? "Copied to clipboard." : "Copy to clipboard unavailable.",
893
- "Next:",
894
- `- Chrome → chrome://extensions → enable “Developer mode”`,
895
- `- “Load unpacked” → select: ${displayPath}`,
896
- `- Pin “RemoteClaw Browser Relay”, then click it on the tab (badge shows ON)`,
897
- "",
898
- `${theme.muted("Docs:")} ${formatDocsLink("/tools/chrome-extension", "docs.remoteclaw.org/tools/chrome-extension")}`
899
- ].join("\n")));
900
- });
901
- ext.command("path").description("Print the path to the installed Chrome extension (load unpacked)").action(async (_opts, cmd) => {
902
- const parent = parentOpts(cmd);
903
- const dir = installedExtensionRootDir();
904
- if (!hasManifest(dir)) {
905
- defaultRuntime.error(danger([`Chrome extension is not installed. Run: "${formatCliCommand("remoteclaw browser extension install")}"`, `Docs: ${formatDocsLink("/tools/chrome-extension", "docs.remoteclaw.org/tools/chrome-extension")}`].join("\n")));
906
- defaultRuntime.exit(1);
907
- }
908
- if (parent?.json) {
909
- defaultRuntime.log(JSON.stringify({ path: dir }, null, 2));
910
- return;
911
- }
912
- const displayPath = shortenHomePath(dir);
913
- defaultRuntime.log(displayPath);
914
- if (await copyToClipboard(dir).catch(() => false)) defaultRuntime.error(info("Copied to clipboard."));
915
- });
916
- }
917
-
918
- //#endregion
919
- //#region src/cli/browser-cli-inspect.ts
920
- function registerBrowserInspectCommands(browser, parentOpts) {
921
- browser.command("screenshot").description("Capture a screenshot (MEDIA:<path>)").argument("[targetId]", "CDP target id (or unique prefix)").option("--full-page", "Capture full scrollable page", false).option("--ref <ref>", "ARIA ref from ai snapshot").option("--element <selector>", "CSS selector for element screenshot").option("--type <png|jpeg>", "Output type (default: png)", "png").action(async (targetId, opts, cmd) => {
922
- const parent = parentOpts(cmd);
923
- const profile = parent?.browserProfile;
924
- try {
925
- const result = await callBrowserRequest(parent, {
926
- method: "POST",
927
- path: "/screenshot",
928
- query: profile ? { profile } : void 0,
929
- body: {
930
- targetId: targetId?.trim() || void 0,
931
- fullPage: Boolean(opts.fullPage),
932
- ref: opts.ref?.trim() || void 0,
933
- element: opts.element?.trim() || void 0,
934
- type: opts.type === "jpeg" ? "jpeg" : "png"
935
- }
936
- }, { timeoutMs: 2e4 });
937
- if (parent?.json) {
938
- defaultRuntime.log(JSON.stringify(result, null, 2));
939
- return;
940
- }
941
- defaultRuntime.log(`MEDIA:${shortenHomePath(result.path)}`);
942
- } catch (err) {
943
- defaultRuntime.error(danger(String(err)));
944
- defaultRuntime.exit(1);
945
- }
946
- });
947
- browser.command("snapshot").description("Capture a snapshot (default: ai; aria is the accessibility tree)").option("--format <aria|ai>", "Snapshot format (default: ai)", "ai").option("--target-id <id>", "CDP target id (or unique prefix)").option("--limit <n>", "Max nodes (default: 500/800)", (v) => Number(v)).option("--mode <efficient>", "Snapshot preset (efficient)").option("--efficient", "Use the efficient snapshot preset", false).option("--interactive", "Role snapshot: interactive elements only", false).option("--compact", "Role snapshot: compact output", false).option("--depth <n>", "Role snapshot: max depth", (v) => Number(v)).option("--selector <sel>", "Role snapshot: scope to CSS selector").option("--frame <sel>", "Role snapshot: scope to an iframe selector").option("--labels", "Include viewport label overlay screenshot", false).option("--out <path>", "Write snapshot to a file").action(async (opts, cmd) => {
948
- const parent = parentOpts(cmd);
949
- const profile = parent?.browserProfile;
950
- const format = opts.format === "aria" ? "aria" : "ai";
951
- const configMode = format === "ai" && loadConfig().browser?.snapshotDefaults?.mode === "efficient" ? "efficient" : void 0;
952
- const mode = opts.efficient === true || opts.mode === "efficient" ? "efficient" : configMode;
953
- try {
954
- const result = await callBrowserRequest(parent, {
955
- method: "GET",
956
- path: "/snapshot",
957
- query: {
958
- format,
959
- targetId: opts.targetId?.trim() || void 0,
960
- limit: Number.isFinite(opts.limit) ? opts.limit : void 0,
961
- interactive: opts.interactive ? true : void 0,
962
- compact: opts.compact ? true : void 0,
963
- depth: Number.isFinite(opts.depth) ? opts.depth : void 0,
964
- selector: opts.selector?.trim() || void 0,
965
- frame: opts.frame?.trim() || void 0,
966
- labels: opts.labels ? true : void 0,
967
- mode,
968
- profile
969
- }
970
- }, { timeoutMs: 2e4 });
971
- if (opts.out) {
972
- const fs = await import("node:fs/promises");
973
- if (result.format === "ai") await fs.writeFile(opts.out, result.snapshot, "utf8");
974
- else {
975
- const payload = JSON.stringify(result, null, 2);
976
- await fs.writeFile(opts.out, payload, "utf8");
977
- }
978
- if (parent?.json) defaultRuntime.log(JSON.stringify({
979
- ok: true,
980
- out: opts.out,
981
- ...result.format === "ai" && result.imagePath ? { imagePath: result.imagePath } : {}
982
- }, null, 2));
983
- else {
984
- defaultRuntime.log(shortenHomePath(opts.out));
985
- if (result.format === "ai" && result.imagePath) defaultRuntime.log(`MEDIA:${shortenHomePath(result.imagePath)}`);
986
- }
987
- return;
988
- }
989
- if (parent?.json) {
990
- defaultRuntime.log(JSON.stringify(result, null, 2));
991
- return;
992
- }
993
- if (result.format === "ai") {
994
- defaultRuntime.log(result.snapshot);
995
- if (result.imagePath) defaultRuntime.log(`MEDIA:${shortenHomePath(result.imagePath)}`);
996
- return;
997
- }
998
- const nodes = "nodes" in result ? result.nodes : [];
999
- defaultRuntime.log(nodes.map((n) => {
1000
- const indent = " ".repeat(Math.min(20, n.depth));
1001
- const name = n.name ? ` "${n.name}"` : "";
1002
- const value = n.value ? ` = "${n.value}"` : "";
1003
- return `${indent}- ${n.role}${name}${value}`;
1004
- }).join("\n"));
1005
- } catch (err) {
1006
- defaultRuntime.error(danger(String(err)));
1007
- defaultRuntime.exit(1);
1008
- }
1009
- });
1010
- }
1011
-
1012
- //#endregion
1013
- //#region src/cli/browser-cli-manage.ts
1014
- async function fetchBrowserStatus(parent, profile) {
1015
- return await callBrowserRequest(parent, {
1016
- method: "GET",
1017
- path: "/",
1018
- query: profile ? { profile } : void 0
1019
- }, { timeoutMs: 1500 });
1020
- }
1021
- async function runBrowserToggle(parent, params) {
1022
- await callBrowserRequest(parent, {
1023
- method: "POST",
1024
- path: params.path,
1025
- query: params.profile ? { profile: params.profile } : void 0
1026
- }, { timeoutMs: 15e3 });
1027
- const status = await fetchBrowserStatus(parent, params.profile);
1028
- if (parent?.json) {
1029
- defaultRuntime.log(JSON.stringify(status, null, 2));
1030
- return;
1031
- }
1032
- const name = status.profile ?? "remoteclaw";
1033
- defaultRuntime.log(info(`🦀 browser [${name}] running: ${status.running}`));
1034
- }
1035
- function runBrowserCommand$1(action) {
1036
- return runCommandWithRuntime(defaultRuntime, action, (err) => {
1037
- defaultRuntime.error(danger(String(err)));
1038
- defaultRuntime.exit(1);
1039
- });
1040
- }
1041
- function logBrowserTabs(tabs, json) {
1042
- if (json) {
1043
- defaultRuntime.log(JSON.stringify({ tabs }, null, 2));
1044
- return;
1045
- }
1046
- if (tabs.length === 0) {
1047
- defaultRuntime.log("No tabs (browser closed or no targets).");
1048
- return;
1049
- }
1050
- defaultRuntime.log(tabs.map((t, i) => `${i + 1}. ${t.title || "(untitled)"}\n ${t.url}\n id: ${t.targetId}`).join("\n"));
1051
- }
1052
- function registerBrowserManageCommands(browser, parentOpts) {
1053
- browser.command("status").description("Show browser status").action(async (_opts, cmd) => {
1054
- const parent = parentOpts(cmd);
1055
- await runBrowserCommand$1(async () => {
1056
- const status = await fetchBrowserStatus(parent, parent?.browserProfile);
1057
- if (parent?.json) {
1058
- defaultRuntime.log(JSON.stringify(status, null, 2));
1059
- return;
1060
- }
1061
- const detectedPath = status.detectedExecutablePath ?? status.executablePath;
1062
- const detectedDisplay = detectedPath ? shortenHomePath(detectedPath) : "auto";
1063
- defaultRuntime.log([
1064
- `profile: ${status.profile ?? "remoteclaw"}`,
1065
- `enabled: ${status.enabled}`,
1066
- `running: ${status.running}`,
1067
- `cdpPort: ${status.cdpPort}`,
1068
- `cdpUrl: ${status.cdpUrl ?? `http://127.0.0.1:${status.cdpPort}`}`,
1069
- `browser: ${status.chosenBrowser ?? "unknown"}`,
1070
- `detectedBrowser: ${status.detectedBrowser ?? "unknown"}`,
1071
- `detectedPath: ${detectedDisplay}`,
1072
- `profileColor: ${status.color}`,
1073
- ...status.detectError ? [`detectError: ${status.detectError}`] : []
1074
- ].join("\n"));
1075
- });
1076
- });
1077
- browser.command("start").description("Start the browser (no-op if already running)").action(async (_opts, cmd) => {
1078
- const parent = parentOpts(cmd);
1079
- const profile = parent?.browserProfile;
1080
- await runBrowserCommand$1(async () => {
1081
- await runBrowserToggle(parent, {
1082
- profile,
1083
- path: "/start"
1084
- });
1085
- });
1086
- });
1087
- browser.command("stop").description("Stop the browser (best-effort)").action(async (_opts, cmd) => {
1088
- const parent = parentOpts(cmd);
1089
- const profile = parent?.browserProfile;
1090
- await runBrowserCommand$1(async () => {
1091
- await runBrowserToggle(parent, {
1092
- profile,
1093
- path: "/stop"
1094
- });
1095
- });
1096
- });
1097
- browser.command("reset-profile").description("Reset browser profile (moves it to Trash)").action(async (_opts, cmd) => {
1098
- const parent = parentOpts(cmd);
1099
- const profile = parent?.browserProfile;
1100
- await runBrowserCommand$1(async () => {
1101
- const result = await callBrowserRequest(parent, {
1102
- method: "POST",
1103
- path: "/reset-profile",
1104
- query: profile ? { profile } : void 0
1105
- }, { timeoutMs: 2e4 });
1106
- if (parent?.json) {
1107
- defaultRuntime.log(JSON.stringify(result, null, 2));
1108
- return;
1109
- }
1110
- if (!result.moved) {
1111
- defaultRuntime.log(info(`🦀 browser profile already missing.`));
1112
- return;
1113
- }
1114
- const dest = result.to ?? result.from;
1115
- defaultRuntime.log(info(`🦀 browser profile moved to Trash (${dest})`));
1116
- });
1117
- });
1118
- browser.command("tabs").description("List open tabs").action(async (_opts, cmd) => {
1119
- const parent = parentOpts(cmd);
1120
- const profile = parent?.browserProfile;
1121
- await runBrowserCommand$1(async () => {
1122
- logBrowserTabs((await callBrowserRequest(parent, {
1123
- method: "GET",
1124
- path: "/tabs",
1125
- query: profile ? { profile } : void 0
1126
- }, { timeoutMs: 3e3 })).tabs ?? [], parent?.json);
1127
- });
1128
- });
1129
- const tab = browser.command("tab").description("Tab shortcuts (index-based)").action(async (_opts, cmd) => {
1130
- const parent = parentOpts(cmd);
1131
- const profile = parent?.browserProfile;
1132
- await runBrowserCommand$1(async () => {
1133
- logBrowserTabs((await callBrowserRequest(parent, {
1134
- method: "POST",
1135
- path: "/tabs/action",
1136
- query: profile ? { profile } : void 0,
1137
- body: { action: "list" }
1138
- }, { timeoutMs: 1e4 })).tabs ?? [], parent?.json);
1139
- });
1140
- });
1141
- tab.command("new").description("Open a new tab (about:blank)").action(async (_opts, cmd) => {
1142
- const parent = parentOpts(cmd);
1143
- const profile = parent?.browserProfile;
1144
- await runBrowserCommand$1(async () => {
1145
- const result = await callBrowserRequest(parent, {
1146
- method: "POST",
1147
- path: "/tabs/action",
1148
- query: profile ? { profile } : void 0,
1149
- body: { action: "new" }
1150
- }, { timeoutMs: 1e4 });
1151
- if (parent?.json) {
1152
- defaultRuntime.log(JSON.stringify(result, null, 2));
1153
- return;
1154
- }
1155
- defaultRuntime.log("opened new tab");
1156
- });
1157
- });
1158
- tab.command("select").description("Focus tab by index (1-based)").argument("<index>", "Tab index (1-based)", (v) => Number(v)).action(async (index, _opts, cmd) => {
1159
- const parent = parentOpts(cmd);
1160
- const profile = parent?.browserProfile;
1161
- if (!Number.isFinite(index) || index < 1) {
1162
- defaultRuntime.error(danger("index must be a positive number"));
1163
- defaultRuntime.exit(1);
1164
- return;
1165
- }
1166
- await runBrowserCommand$1(async () => {
1167
- const result = await callBrowserRequest(parent, {
1168
- method: "POST",
1169
- path: "/tabs/action",
1170
- query: profile ? { profile } : void 0,
1171
- body: {
1172
- action: "select",
1173
- index: Math.floor(index) - 1
1174
- }
1175
- }, { timeoutMs: 1e4 });
1176
- if (parent?.json) {
1177
- defaultRuntime.log(JSON.stringify(result, null, 2));
1178
- return;
1179
- }
1180
- defaultRuntime.log(`selected tab ${Math.floor(index)}`);
1181
- });
1182
- });
1183
- tab.command("close").description("Close tab by index (1-based); default: first tab").argument("[index]", "Tab index (1-based)", (v) => Number(v)).action(async (index, _opts, cmd) => {
1184
- const parent = parentOpts(cmd);
1185
- const profile = parent?.browserProfile;
1186
- const idx = typeof index === "number" && Number.isFinite(index) ? Math.floor(index) - 1 : void 0;
1187
- if (typeof idx === "number" && idx < 0) {
1188
- defaultRuntime.error(danger("index must be >= 1"));
1189
- defaultRuntime.exit(1);
1190
- return;
1191
- }
1192
- await runBrowserCommand$1(async () => {
1193
- const result = await callBrowserRequest(parent, {
1194
- method: "POST",
1195
- path: "/tabs/action",
1196
- query: profile ? { profile } : void 0,
1197
- body: {
1198
- action: "close",
1199
- index: idx
1200
- }
1201
- }, { timeoutMs: 1e4 });
1202
- if (parent?.json) {
1203
- defaultRuntime.log(JSON.stringify(result, null, 2));
1204
- return;
1205
- }
1206
- defaultRuntime.log("closed tab");
1207
- });
1208
- });
1209
- browser.command("open").description("Open a URL in a new tab").argument("<url>", "URL to open").action(async (url, _opts, cmd) => {
1210
- const parent = parentOpts(cmd);
1211
- const profile = parent?.browserProfile;
1212
- await runBrowserCommand$1(async () => {
1213
- const tab = await callBrowserRequest(parent, {
1214
- method: "POST",
1215
- path: "/tabs/open",
1216
- query: profile ? { profile } : void 0,
1217
- body: { url }
1218
- }, { timeoutMs: 15e3 });
1219
- if (parent?.json) {
1220
- defaultRuntime.log(JSON.stringify(tab, null, 2));
1221
- return;
1222
- }
1223
- defaultRuntime.log(`opened: ${tab.url}\nid: ${tab.targetId}`);
1224
- });
1225
- });
1226
- browser.command("focus").description("Focus a tab by target id (or unique prefix)").argument("<targetId>", "Target id or unique prefix").action(async (targetId, _opts, cmd) => {
1227
- const parent = parentOpts(cmd);
1228
- const profile = parent?.browserProfile;
1229
- await runBrowserCommand$1(async () => {
1230
- await callBrowserRequest(parent, {
1231
- method: "POST",
1232
- path: "/tabs/focus",
1233
- query: profile ? { profile } : void 0,
1234
- body: { targetId }
1235
- }, { timeoutMs: 5e3 });
1236
- if (parent?.json) {
1237
- defaultRuntime.log(JSON.stringify({ ok: true }, null, 2));
1238
- return;
1239
- }
1240
- defaultRuntime.log(`focused tab ${targetId}`);
1241
- });
1242
- });
1243
- browser.command("close").description("Close a tab (target id optional)").argument("[targetId]", "Target id or unique prefix (optional)").action(async (targetId, _opts, cmd) => {
1244
- const parent = parentOpts(cmd);
1245
- const profile = parent?.browserProfile;
1246
- await runBrowserCommand$1(async () => {
1247
- if (targetId?.trim()) await callBrowserRequest(parent, {
1248
- method: "DELETE",
1249
- path: `/tabs/${encodeURIComponent(targetId.trim())}`,
1250
- query: profile ? { profile } : void 0
1251
- }, { timeoutMs: 5e3 });
1252
- else await callBrowserRequest(parent, {
1253
- method: "POST",
1254
- path: "/act",
1255
- query: profile ? { profile } : void 0,
1256
- body: { kind: "close" }
1257
- }, { timeoutMs: 2e4 });
1258
- if (parent?.json) {
1259
- defaultRuntime.log(JSON.stringify({ ok: true }, null, 2));
1260
- return;
1261
- }
1262
- defaultRuntime.log("closed tab");
1263
- });
1264
- });
1265
- browser.command("profiles").description("List all browser profiles").action(async (_opts, cmd) => {
1266
- const parent = parentOpts(cmd);
1267
- await runBrowserCommand$1(async () => {
1268
- const profiles = (await callBrowserRequest(parent, {
1269
- method: "GET",
1270
- path: "/profiles"
1271
- }, { timeoutMs: 3e3 })).profiles ?? [];
1272
- if (parent?.json) {
1273
- defaultRuntime.log(JSON.stringify({ profiles }, null, 2));
1274
- return;
1275
- }
1276
- if (profiles.length === 0) {
1277
- defaultRuntime.log("No profiles configured.");
1278
- return;
1279
- }
1280
- defaultRuntime.log(profiles.map((p) => {
1281
- const status = p.running ? "running" : "stopped";
1282
- const tabs = p.running ? ` (${p.tabCount} tabs)` : "";
1283
- const def = p.isDefault ? " [default]" : "";
1284
- const loc = p.isRemote ? `cdpUrl: ${p.cdpUrl}` : `port: ${p.cdpPort}`;
1285
- const remote = p.isRemote ? " [remote]" : "";
1286
- return `${p.name}: ${status}${tabs}${def}${remote}\n ${loc}, color: ${p.color}`;
1287
- }).join("\n"));
1288
- });
1289
- });
1290
- browser.command("create-profile").description("Create a new browser profile").requiredOption("--name <name>", "Profile name (lowercase, numbers, hyphens)").option("--color <hex>", "Profile color (hex format, e.g. #0066CC)").option("--cdp-url <url>", "CDP URL for remote Chrome (http/https)").option("--driver <driver>", "Profile driver (remoteclaw|extension). Default: remoteclaw").action(async (opts, cmd) => {
1291
- const parent = parentOpts(cmd);
1292
- await runBrowserCommand$1(async () => {
1293
- const result = await callBrowserRequest(parent, {
1294
- method: "POST",
1295
- path: "/profiles/create",
1296
- body: {
1297
- name: opts.name,
1298
- color: opts.color,
1299
- cdpUrl: opts.cdpUrl,
1300
- driver: opts.driver === "extension" ? "extension" : void 0
1301
- }
1302
- }, { timeoutMs: 1e4 });
1303
- if (parent?.json) {
1304
- defaultRuntime.log(JSON.stringify(result, null, 2));
1305
- return;
1306
- }
1307
- const loc = result.isRemote ? ` cdpUrl: ${result.cdpUrl}` : ` port: ${result.cdpPort}`;
1308
- defaultRuntime.log(info(`🦀 Created profile "${result.profile}"\n${loc}\n color: ${result.color}${opts.driver === "extension" ? "\n driver: extension" : ""}`));
1309
- });
1310
- });
1311
- browser.command("delete-profile").description("Delete a browser profile").requiredOption("--name <name>", "Profile name to delete").action(async (opts, cmd) => {
1312
- const parent = parentOpts(cmd);
1313
- await runBrowserCommand$1(async () => {
1314
- const result = await callBrowserRequest(parent, {
1315
- method: "DELETE",
1316
- path: `/profiles/${encodeURIComponent(opts.name)}`
1317
- }, { timeoutMs: 2e4 });
1318
- if (parent?.json) {
1319
- defaultRuntime.log(JSON.stringify(result, null, 2));
1320
- return;
1321
- }
1322
- const msg = result.deleted ? `🦀 Deleted profile "${result.profile}" (user data removed)` : `🦀 Deleted profile "${result.profile}" (no user data found)`;
1323
- defaultRuntime.log(info(msg));
1324
- });
1325
- });
1326
- }
1327
-
1328
- //#endregion
1329
- //#region src/cli/browser-cli-state.cookies-storage.ts
1330
- function resolveUrl(opts, command) {
1331
- if (typeof opts.url === "string" && opts.url.trim()) return opts.url.trim();
1332
- const inherited = inheritOptionFromParent(command, "url");
1333
- if (typeof inherited === "string" && inherited.trim()) return inherited.trim();
1334
- }
1335
- function resolveTargetId(rawTargetId, command) {
1336
- const local = typeof rawTargetId === "string" ? rawTargetId.trim() : "";
1337
- if (local) return local;
1338
- const inherited = inheritOptionFromParent(command, "targetId");
1339
- if (typeof inherited !== "string") return;
1340
- const trimmed = inherited.trim();
1341
- return trimmed ? trimmed : void 0;
1342
- }
1343
- function registerBrowserCookiesAndStorageCommands(browser, parentOpts) {
1344
- const cookies = browser.command("cookies").description("Read/write cookies");
1345
- cookies.option("--target-id <id>", "CDP target id (or unique prefix)").action(async (opts, cmd) => {
1346
- const parent = parentOpts(cmd);
1347
- const profile = parent?.browserProfile;
1348
- const targetId = resolveTargetId(opts.targetId, cmd);
1349
- try {
1350
- const result = await callBrowserRequest(parent, {
1351
- method: "GET",
1352
- path: "/cookies",
1353
- query: {
1354
- targetId,
1355
- profile
1356
- }
1357
- }, { timeoutMs: 2e4 });
1358
- if (parent?.json) {
1359
- defaultRuntime.log(JSON.stringify(result, null, 2));
1360
- return;
1361
- }
1362
- defaultRuntime.log(JSON.stringify(result.cookies ?? [], null, 2));
1363
- } catch (err) {
1364
- defaultRuntime.error(danger(String(err)));
1365
- defaultRuntime.exit(1);
1366
- }
1367
- });
1368
- cookies.command("set").description("Set a cookie (requires --url or domain+path)").argument("<name>", "Cookie name").argument("<value>", "Cookie value").option("--url <url>", "Cookie URL scope (recommended)").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (name, value, opts, cmd) => {
1369
- const parent = parentOpts(cmd);
1370
- const profile = parent?.browserProfile;
1371
- const targetId = resolveTargetId(opts.targetId, cmd);
1372
- const url = resolveUrl(opts, cmd);
1373
- if (!url) {
1374
- defaultRuntime.error(danger("Missing required --url option for cookies set"));
1375
- defaultRuntime.exit(1);
1376
- return;
1377
- }
1378
- try {
1379
- const result = await callBrowserRequest(parent, {
1380
- method: "POST",
1381
- path: "/cookies/set",
1382
- query: profile ? { profile } : void 0,
1383
- body: {
1384
- targetId,
1385
- cookie: {
1386
- name,
1387
- value,
1388
- url
1389
- }
1390
- }
1391
- }, { timeoutMs: 2e4 });
1392
- if (parent?.json) {
1393
- defaultRuntime.log(JSON.stringify(result, null, 2));
1394
- return;
1395
- }
1396
- defaultRuntime.log(`cookie set: ${name}`);
1397
- } catch (err) {
1398
- defaultRuntime.error(danger(String(err)));
1399
- defaultRuntime.exit(1);
1400
- }
1401
- });
1402
- cookies.command("clear").description("Clear all cookies").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (opts, cmd) => {
1403
- const parent = parentOpts(cmd);
1404
- const profile = parent?.browserProfile;
1405
- const targetId = resolveTargetId(opts.targetId, cmd);
1406
- try {
1407
- const result = await callBrowserRequest(parent, {
1408
- method: "POST",
1409
- path: "/cookies/clear",
1410
- query: profile ? { profile } : void 0,
1411
- body: { targetId }
1412
- }, { timeoutMs: 2e4 });
1413
- if (parent?.json) {
1414
- defaultRuntime.log(JSON.stringify(result, null, 2));
1415
- return;
1416
- }
1417
- defaultRuntime.log("cookies cleared");
1418
- } catch (err) {
1419
- defaultRuntime.error(danger(String(err)));
1420
- defaultRuntime.exit(1);
1421
- }
1422
- });
1423
- const storage = browser.command("storage").description("Read/write localStorage/sessionStorage");
1424
- function registerStorageKind(kind) {
1425
- const cmd = storage.command(kind).description(`${kind}Storage commands`);
1426
- cmd.command("get").description(`Get ${kind}Storage (all keys or one key)`).argument("[key]", "Key (optional)").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (key, opts, cmd2) => {
1427
- const parent = parentOpts(cmd2);
1428
- const profile = parent?.browserProfile;
1429
- const targetId = resolveTargetId(opts.targetId, cmd2);
1430
- try {
1431
- const result = await callBrowserRequest(parent, {
1432
- method: "GET",
1433
- path: `/storage/${kind}`,
1434
- query: {
1435
- key: key?.trim() || void 0,
1436
- targetId,
1437
- profile
1438
- }
1439
- }, { timeoutMs: 2e4 });
1440
- if (parent?.json) {
1441
- defaultRuntime.log(JSON.stringify(result, null, 2));
1442
- return;
1443
- }
1444
- defaultRuntime.log(JSON.stringify(result.values ?? {}, null, 2));
1445
- } catch (err) {
1446
- defaultRuntime.error(danger(String(err)));
1447
- defaultRuntime.exit(1);
1448
- }
1449
- });
1450
- cmd.command("set").description(`Set a ${kind}Storage key`).argument("<key>", "Key").argument("<value>", "Value").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (key, value, opts, cmd2) => {
1451
- const parent = parentOpts(cmd2);
1452
- const profile = parent?.browserProfile;
1453
- const targetId = resolveTargetId(opts.targetId, cmd2);
1454
- try {
1455
- const result = await callBrowserRequest(parent, {
1456
- method: "POST",
1457
- path: `/storage/${kind}/set`,
1458
- query: profile ? { profile } : void 0,
1459
- body: {
1460
- key,
1461
- value,
1462
- targetId
1463
- }
1464
- }, { timeoutMs: 2e4 });
1465
- if (parent?.json) {
1466
- defaultRuntime.log(JSON.stringify(result, null, 2));
1467
- return;
1468
- }
1469
- defaultRuntime.log(`${kind}Storage set: ${key}`);
1470
- } catch (err) {
1471
- defaultRuntime.error(danger(String(err)));
1472
- defaultRuntime.exit(1);
1473
- }
1474
- });
1475
- cmd.command("clear").description(`Clear all ${kind}Storage keys`).option("--target-id <id>", "CDP target id (or unique prefix)").action(async (opts, cmd2) => {
1476
- const parent = parentOpts(cmd2);
1477
- const profile = parent?.browserProfile;
1478
- const targetId = resolveTargetId(opts.targetId, cmd2);
1479
- try {
1480
- const result = await callBrowserRequest(parent, {
1481
- method: "POST",
1482
- path: `/storage/${kind}/clear`,
1483
- query: profile ? { profile } : void 0,
1484
- body: { targetId }
1485
- }, { timeoutMs: 2e4 });
1486
- if (parent?.json) {
1487
- defaultRuntime.log(JSON.stringify(result, null, 2));
1488
- return;
1489
- }
1490
- defaultRuntime.log(`${kind}Storage cleared`);
1491
- } catch (err) {
1492
- defaultRuntime.error(danger(String(err)));
1493
- defaultRuntime.exit(1);
1494
- }
1495
- });
1496
- }
1497
- registerStorageKind("local");
1498
- registerStorageKind("session");
1499
- }
1500
-
1501
- //#endregion
1502
- //#region src/cli/browser-cli-state.ts
1503
- function parseOnOff(raw) {
1504
- const parsed = parseBooleanValue(raw);
1505
- return parsed === void 0 ? null : parsed;
1506
- }
1507
- function runBrowserCommand(action) {
1508
- return runCommandWithRuntime(defaultRuntime, action, (err) => {
1509
- defaultRuntime.error(danger(String(err)));
1510
- defaultRuntime.exit(1);
1511
- });
1512
- }
1513
- async function runBrowserSetRequest(params) {
1514
- await runBrowserCommand(async () => {
1515
- const profile = params.parent?.browserProfile;
1516
- const result = await callBrowserRequest(params.parent, {
1517
- method: "POST",
1518
- path: params.path,
1519
- query: profile ? { profile } : void 0,
1520
- body: params.body
1521
- }, { timeoutMs: 2e4 });
1522
- if (params.parent?.json) {
1523
- defaultRuntime.log(JSON.stringify(result, null, 2));
1524
- return;
1525
- }
1526
- defaultRuntime.log(params.successMessage);
1527
- });
1528
- }
1529
- function registerBrowserStateCommands(browser, parentOpts) {
1530
- registerBrowserCookiesAndStorageCommands(browser, parentOpts);
1531
- const set = browser.command("set").description("Browser environment settings");
1532
- set.command("viewport").description("Set viewport size (alias for resize)").argument("<width>", "Viewport width", (v) => Number(v)).argument("<height>", "Viewport height", (v) => Number(v)).option("--target-id <id>", "CDP target id (or unique prefix)").action(async (width, height, opts, cmd) => {
1533
- const parent = parentOpts(cmd);
1534
- const profile = parent?.browserProfile;
1535
- await runBrowserCommand(async () => {
1536
- await runBrowserResizeWithOutput({
1537
- parent,
1538
- profile,
1539
- width,
1540
- height,
1541
- targetId: opts.targetId,
1542
- timeoutMs: 2e4,
1543
- successMessage: `viewport set: ${width}x${height}`
1544
- });
1545
- });
1546
- });
1547
- set.command("offline").description("Toggle offline mode").argument("<on|off>", "on/off").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (value, opts, cmd) => {
1548
- const parent = parentOpts(cmd);
1549
- const offline = parseOnOff(value);
1550
- if (offline === null) {
1551
- defaultRuntime.error(danger("Expected on|off"));
1552
- defaultRuntime.exit(1);
1553
- return;
1554
- }
1555
- await runBrowserSetRequest({
1556
- parent,
1557
- path: "/set/offline",
1558
- body: {
1559
- offline,
1560
- targetId: opts.targetId?.trim() || void 0
1561
- },
1562
- successMessage: `offline: ${offline}`
1563
- });
1564
- });
1565
- set.command("headers").description("Set extra HTTP headers (JSON object)").argument("[headersJson]", "JSON object of headers (alternative to --headers-json)").option("--headers-json <json>", "JSON object of headers").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (headersJson, opts, cmd) => {
1566
- const parent = parentOpts(cmd);
1567
- await runBrowserCommand(async () => {
1568
- const headersJsonValue = typeof opts.headersJson === "string" && opts.headersJson.trim() || (headersJson?.trim() ? headersJson.trim() : void 0);
1569
- if (!headersJsonValue) throw new Error("Missing headers JSON (pass --headers-json or positional JSON argument)");
1570
- const parsed = JSON.parse(String(headersJsonValue));
1571
- if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) throw new Error("Headers JSON must be a JSON object");
1572
- const headers = {};
1573
- for (const [k, v] of Object.entries(parsed)) if (typeof v === "string") headers[k] = v;
1574
- const profile = parent?.browserProfile;
1575
- const result = await callBrowserRequest(parent, {
1576
- method: "POST",
1577
- path: "/set/headers",
1578
- query: profile ? { profile } : void 0,
1579
- body: {
1580
- headers,
1581
- targetId: opts.targetId?.trim() || void 0
1582
- }
1583
- }, { timeoutMs: 2e4 });
1584
- if (parent?.json) {
1585
- defaultRuntime.log(JSON.stringify(result, null, 2));
1586
- return;
1587
- }
1588
- defaultRuntime.log("headers set");
1589
- });
1590
- });
1591
- set.command("credentials").description("Set HTTP basic auth credentials").option("--clear", "Clear credentials", false).argument("[username]", "Username").argument("[password]", "Password").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (username, password, opts, cmd) => {
1592
- await runBrowserSetRequest({
1593
- parent: parentOpts(cmd),
1594
- path: "/set/credentials",
1595
- body: {
1596
- username: username?.trim() || void 0,
1597
- password,
1598
- clear: Boolean(opts.clear),
1599
- targetId: opts.targetId?.trim() || void 0
1600
- },
1601
- successMessage: opts.clear ? "credentials cleared" : "credentials set"
1602
- });
1603
- });
1604
- set.command("geo").description("Set geolocation (and grant permission)").option("--clear", "Clear geolocation + permissions", false).argument("[latitude]", "Latitude", (v) => Number(v)).argument("[longitude]", "Longitude", (v) => Number(v)).option("--accuracy <m>", "Accuracy in meters", (v) => Number(v)).option("--origin <origin>", "Origin to grant permissions for").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (latitude, longitude, opts, cmd) => {
1605
- await runBrowserSetRequest({
1606
- parent: parentOpts(cmd),
1607
- path: "/set/geolocation",
1608
- body: {
1609
- latitude: Number.isFinite(latitude) ? latitude : void 0,
1610
- longitude: Number.isFinite(longitude) ? longitude : void 0,
1611
- accuracy: Number.isFinite(opts.accuracy) ? opts.accuracy : void 0,
1612
- origin: opts.origin?.trim() || void 0,
1613
- clear: Boolean(opts.clear),
1614
- targetId: opts.targetId?.trim() || void 0
1615
- },
1616
- successMessage: opts.clear ? "geolocation cleared" : "geolocation set"
1617
- });
1618
- });
1619
- set.command("media").description("Emulate prefers-color-scheme").argument("<dark|light|none>", "dark/light/none").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (value, opts, cmd) => {
1620
- const parent = parentOpts(cmd);
1621
- const v = value.trim().toLowerCase();
1622
- const colorScheme = v === "dark" ? "dark" : v === "light" ? "light" : v === "none" ? "none" : null;
1623
- if (!colorScheme) {
1624
- defaultRuntime.error(danger("Expected dark|light|none"));
1625
- defaultRuntime.exit(1);
1626
- return;
1627
- }
1628
- await runBrowserSetRequest({
1629
- parent,
1630
- path: "/set/media",
1631
- body: {
1632
- colorScheme,
1633
- targetId: opts.targetId?.trim() || void 0
1634
- },
1635
- successMessage: `media colorScheme: ${colorScheme}`
1636
- });
1637
- });
1638
- set.command("timezone").description("Override timezone (CDP)").argument("<timezoneId>", "Timezone ID (e.g. America/New_York)").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (timezoneId, opts, cmd) => {
1639
- await runBrowserSetRequest({
1640
- parent: parentOpts(cmd),
1641
- path: "/set/timezone",
1642
- body: {
1643
- timezoneId,
1644
- targetId: opts.targetId?.trim() || void 0
1645
- },
1646
- successMessage: `timezone: ${timezoneId}`
1647
- });
1648
- });
1649
- set.command("locale").description("Override locale (CDP)").argument("<locale>", "Locale (e.g. en-US)").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (locale, opts, cmd) => {
1650
- await runBrowserSetRequest({
1651
- parent: parentOpts(cmd),
1652
- path: "/set/locale",
1653
- body: {
1654
- locale,
1655
- targetId: opts.targetId?.trim() || void 0
1656
- },
1657
- successMessage: `locale: ${locale}`
1658
- });
1659
- });
1660
- set.command("device").description("Apply a Playwright device descriptor (e.g. \"iPhone 14\")").argument("<name>", "Device name (Playwright devices)").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (name, opts, cmd) => {
1661
- await runBrowserSetRequest({
1662
- parent: parentOpts(cmd),
1663
- path: "/set/device",
1664
- body: {
1665
- name,
1666
- targetId: opts.targetId?.trim() || void 0
1667
- },
1668
- successMessage: `device: ${name}`
1669
- });
1670
- });
1671
- }
1672
-
1673
- //#endregion
1674
- //#region src/cli/browser-cli.ts
1675
- function registerBrowserCli(program) {
1676
- const browser = program.command("browser").description("Manage RemoteClaw's dedicated browser (Chrome/Chromium)").option("--browser-profile <name>", "Browser profile name (default from config)").option("--json", "Output machine-readable JSON", false).addHelpText("after", () => `\n${theme.heading("Examples:")}\n${formatHelpExamples([...browserCoreExamples, ...browserActionExamples].map((cmd) => [cmd, ""]), true)}\n\n${theme.muted("Docs:")} ${formatDocsLink("/cli/browser", "docs.remoteclaw.org/cli/browser")}\n`).action(() => {
1677
- browser.outputHelp();
1678
- defaultRuntime.error(danger(`Missing subcommand. Try: "${formatCliCommand("remoteclaw browser status")}"`));
1679
- defaultRuntime.exit(1);
1680
- });
1681
- addGatewayClientOptions(browser);
1682
- const parentOpts = (cmd) => cmd.parent?.opts?.();
1683
- registerBrowserManageCommands(browser, parentOpts);
1684
- registerBrowserExtensionCommands(browser, parentOpts);
1685
- registerBrowserInspectCommands(browser, parentOpts);
1686
- registerBrowserActionInputCommands(browser, parentOpts);
1687
- registerBrowserActionObserveCommands(browser, parentOpts);
1688
- registerBrowserDebugCommands(browser, parentOpts);
1689
- registerBrowserStateCommands(browser, parentOpts);
1690
- }
1691
-
1692
- //#endregion
1693
- export { registerBrowserCli };