vora-ai 0.1.0
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.
- package/LICENSE +21 -0
- package/README.md +606 -0
- package/assets/avatar-placeholder.svg +19 -0
- package/assets/chrome-extension/icons/icon128.png +0 -0
- package/assets/chrome-extension/icons/icon16.png +0 -0
- package/assets/chrome-extension/icons/icon32.png +0 -0
- package/assets/chrome-extension/icons/icon48.png +0 -0
- package/assets/dmg-background-small.png +0 -0
- package/assets/dmg-background.png +0 -0
- package/dist/abort-bAEt3OX0.js +192 -0
- package/dist/abort-cutoff-BW9X8atp.js +56 -0
- package/dist/abort-cutoff.runtime-BTdcverG.js +20 -0
- package/dist/abort-primitives-BkLaStf6.js +92 -0
- package/dist/abort-signal-OQ0B1Hsw.js +13 -0
- package/dist/abort.runtime-Bk-WTrsH.js +2 -0
- package/dist/access-DUWbTdtq.js +82 -0
- package/dist/account-action-gate-BhV8CpjB.js +12 -0
- package/dist/account-core-BxpV-R9y.js +26 -0
- package/dist/account-helpers-D1v4-R4z.js +102 -0
- package/dist/account-helpers-DsRxse98.js +1 -0
- package/dist/account-id-Da7aL0Gd.js +1 -0
- package/dist/account-inspect-CAOMlXxX.js +158 -0
- package/dist/account-inspect-sHk3NdqU.js +81 -0
- package/dist/account-lookup-C6jbidQL.js +17 -0
- package/dist/account-resolution-DKAWqmga.js +30 -0
- package/dist/account-snapshot-fields-D7AI5hQQ.js +130 -0
- package/dist/account-summary-BgeGcB_3.js +36 -0
- package/dist/accounts-Db4FI6Zz.js +58 -0
- package/dist/accounts-qrnlKu1q.js +137 -0
- package/dist/ack-reactions-BZ-o06GS.js +43 -0
- package/dist/acp-cli-BvaZntRI.js +88 -0
- package/dist/acp-runtime-JWaJYUhz.js +8 -0
- package/dist/acp-stateful-target-driver-Bw7044NV.js +60 -0
- package/dist/action-runtime-api-Oe9YXMPW.js +1026 -0
- package/dist/agent-B1rpctfA.js +2 -0
- package/dist/agent-command-Ca6TUUTc.js +1462 -0
- package/dist/agent-events-DvBJWaR9.js +51 -0
- package/dist/agent-list-BLH_azHg.js +52 -0
- package/dist/agent-media-payload-DJHM1u8B.js +17 -0
- package/dist/agent-paths-A_P9FLsb.js +12 -0
- package/dist/agent-runner-utils-9OoCJtjv.js +178 -0
- package/dist/agent-runner.runtime-CBOjZZGX.js +2205 -0
- package/dist/agent-runtime-DUidz-g-.js +142 -0
- package/dist/agent-scope-BsqFyt8u.js +203 -0
- package/dist/agents/auth-profiles.runtime.js +7 -0
- package/dist/agents/pi-model-discovery-runtime.js +2 -0
- package/dist/agents-BalJcJ6y.js +5 -0
- package/dist/agents-C3mHfRHd.js +888 -0
- package/dist/agents.config-BDTgYzjf.js +3 -0
- package/dist/agents.config-CD4kuH-_.js +121 -0
- package/dist/allow-from-Bj0HDNYh.js +20 -0
- package/dist/allow-from-D-rvXQ8h.js +9 -0
- package/dist/allow-from-xOap1t02.js +62 -0
- package/dist/allow-list-BFJp0pl8.js +341 -0
- package/dist/allowlist-config-edit-Cm1yBM1Z.js +279 -0
- package/dist/allowlist-match-CvP7M2nU.js +63 -0
- package/dist/ansi-B_0KjIJj.js +54 -0
- package/dist/anthropic-vertex-CmYuMVC4.js +21 -0
- package/dist/anthropic-vertex-stream-CDum4sTM.js +631 -0
- package/dist/api-C8PGNlY8.js +10 -0
- package/dist/api-CUkBKFva.js +74 -0
- package/dist/api-builder-Dxtk0Cjs.js +172 -0
- package/dist/api-fetch-D1Orij33.js +35 -0
- package/dist/api-key-rotation-BgD2ZwFB.js +150 -0
- package/dist/apply-uNQmdYrd.js +485 -0
- package/dist/apply.runtime-CDBPl8wO.js +166 -0
- package/dist/apply.runtime-DXzYQs7u.js +2 -0
- package/dist/approval-renderers-D-qQquHC.js +83 -0
- package/dist/approval-runtime-DodHpuxq.js +122 -0
- package/dist/archive-BUHAoH49.js +537 -0
- package/dist/arg-split-ShoVtQWt.js +38 -0
- package/dist/artifacts-UsJTFgjT.js +52 -0
- package/dist/assistant-error-format-KDZ_osDM.js +109 -0
- package/dist/audio-DFt2UJ9l.js +41 -0
- package/dist/audit-234llk_L.js +85 -0
- package/dist/audit-BzzkNrPw.js +893 -0
- package/dist/audit-D8ikC9Ex.js +54 -0
- package/dist/audit-channel.allow-from.runtime-todwwiYs.js +5 -0
- package/dist/audit-channel.collect.runtime-DmpUSGTW.js +528 -0
- package/dist/audit-channel.discord.runtime-eztVMsVi.js +5 -0
- package/dist/audit-channel.telegram.runtime-C1XTQaXt.js +8 -0
- package/dist/audit-channel.zalouser.runtime-0HM10car.js +5 -0
- package/dist/audit-extra.async-CSQaJlTH.js +820 -0
- package/dist/audit-fs-ClsvRCTg.js +375 -0
- package/dist/audit-membership-runtime-ByM59rIs.js +55 -0
- package/dist/audit.deep.runtime-DXGK_1J_.js +2 -0
- package/dist/audit.nondeep.runtime-DJXN9aBX.js +831 -0
- package/dist/audit.runtime-BS7_g95e.js +7 -0
- package/dist/auth-DEuZoVpN.js +371 -0
- package/dist/auth-choice-9Go6Q-oV.js +3 -0
- package/dist/auth-choice-BQBEikSW.js +69 -0
- package/dist/auth-choice-CbU_5K03.js +341 -0
- package/dist/auth-choice-legacy-D9rcQsLS.js +44 -0
- package/dist/auth-choice-options-DzvdP-W5.js +98 -0
- package/dist/auth-choice-prompt-CAt3z9Wn.js +2 -0
- package/dist/auth-choice-prompt-DfuSZB7t.js +36 -0
- package/dist/auth-choice.apply-helpers-CxPMo6aR.js +2 -0
- package/dist/auth-choice.plugin-providers.runtime-C4iPKNWh.js +11 -0
- package/dist/auth-health-CztAfAX3.js +165 -0
- package/dist/auth-mode-policy-C2dpPPMZ.js +18 -0
- package/dist/auth-profiles-DgsNxC4M.js +431 -0
- package/dist/auth-rate-limit-B3HOQz3U.js +119 -0
- package/dist/avatar-policy-D_F2Olbt.js +67 -0
- package/dist/backend-config-DRYC_KQP.js +311 -0
- package/dist/backoff-C-fId8Y0.js +18 -0
- package/dist/backup-create-CWffgs90.js +462 -0
- package/dist/banner-BJJQ_jor.js +2 -0
- package/dist/banner-CzYuF1AM.js +369 -0
- package/dist/base-session-key-yPDY2ReX.js +14 -0
- package/dist/binaries-D04aDwRb.js +2 -0
- package/dist/binaries-UyZ8gKvx.js +11 -0
- package/dist/binding-registry-DeW6GWl7.js +422 -0
- package/dist/binding-targets-Dew-Cmhe.js +99 -0
- package/dist/bindings-Be6kpbqd.js +21 -0
- package/dist/bindings-C415Adm_.js +69 -0
- package/dist/block-reply-pipeline-DOyiLrmk.js +266 -0
- package/dist/block-streaming-irtDjCPX.js +107 -0
- package/dist/bluebubbles-cpaV8DUH.js +64 -0
- package/dist/bluebubbles-policy-DO-t7OnD.js +13 -0
- package/dist/boolean-BRxEL2pT.js +29 -0
- package/dist/boolean-param-B3tzmZ3k.js +13 -0
- package/dist/bootstrap-budget-lNGYv_xu.js +314 -0
- package/dist/bootstrap-cache-CwL_mvEY.js +19 -0
- package/dist/bot-message-context-BDfCxJZs.js +1213 -0
- package/dist/bot-message-context-C-8RvNrP.js +2 -0
- package/dist/bot-native-commands.delivery.runtime-z0viWrSs.js +3 -0
- package/dist/boundary-file-read-DzY137L0.js +192 -0
- package/dist/brave-web-search-provider-Bab38BrX.js +441 -0
- package/dist/brew-CTkvvpxg.js +44 -0
- package/dist/browser-open-BU6ETbQQ.js +94 -0
- package/dist/browser-runtime-C9uxHbGW.js +76 -0
- package/dist/browser-support-Bb_k0jpF.js +34 -0
- package/dist/btw-command-NOqYNWtX.js +16 -0
- package/dist/bundle-lsp-BeRKY2JZ.js +93 -0
- package/dist/bundle-mcp-Bx8MNFO5.js +263 -0
- package/dist/bundled/boot-md/handler.js +180 -0
- package/dist/bundled/bootstrap-extra-files/handler.js +42 -0
- package/dist/bundled/command-logger/handler.js +56 -0
- package/dist/bundled/session-memory/handler.js +196 -0
- package/dist/bundled-capability-metadata-BJSb_HDr.js +38 -0
- package/dist/bundled-compat-CAM7KkKK.js +64 -0
- package/dist/bundled-plugin-metadata-DuQVm9f5.js +621 -0
- package/dist/bundled-sources-cwLmVfLO.js +53 -0
- package/dist/cache-controls-CpBpLE7o.js +40 -0
- package/dist/call-CYGZtInt.js +649 -0
- package/dist/call-DNl9zM74.js +2 -0
- package/dist/capability-provider-runtime-yc24eaUD.js +40 -0
- package/dist/catalog-CTTRbG9P.js +272 -0
- package/dist/channel-Ur_UNzw2.js +679 -0
- package/dist/channel-account-context-BWgKFgVH.js +104 -0
- package/dist/channel-actions-BOFC-_zU.js +39 -0
- package/dist/channel-catalog.json +26 -0
- package/dist/channel-config-B-7hYcg1.js +115 -0
- package/dist/channel-config-helpers-C1S4WfJJ.js +482 -0
- package/dist/channel-config-schema-2huPMu2x.js +6 -0
- package/dist/channel-feedback-Ro-BTZzh.js +257 -0
- package/dist/channel-inbound-_DJyFgZs.js +30 -0
- package/dist/channel-issues-BPmcKiOr.js +13 -0
- package/dist/channel-lifecycle-tykcw1CK.js +286 -0
- package/dist/channel-lifecycle.core-3OcmXTam.js +69 -0
- package/dist/channel-options-DgOdpBj-.js +39 -0
- package/dist/channel-pairing-Dx7NU9a4.js +68 -0
- package/dist/channel-plugin-common-B7gWshwF.js +4 -0
- package/dist/channel-plugin-ids-DGJsaNeP.js +230 -0
- package/dist/channel-plugin-resolution-B3C2B0Xc.js +113 -0
- package/dist/channel-policy-BiAdlZRY.js +32 -0
- package/dist/channel-reply-pipeline-DZQu_Smr.js +16 -0
- package/dist/channel-resolution-BRpGejEv.js +57 -0
- package/dist/channel-runtime-B3OwaSIN.js +8 -0
- package/dist/channel-selection-CJiUKode.js +125 -0
- package/dist/channel-send-result-C4cfMY3q.js +40 -0
- package/dist/channel-setup-CVb_d9r3.js +51 -0
- package/dist/channel-status-is1j_O8T.js +2 -0
- package/dist/channel-summary-CcHbPriu.js +2 -0
- package/dist/channel-summary-ChMRan7Y.js +139 -0
- package/dist/channel-target-B2-JZuxb.js +157 -0
- package/dist/channel-targets-C7I-yneV.js +173 -0
- package/dist/channel.runtime-DPqGWQMI.js +5 -0
- package/dist/channels-BLrLpPbs.js +1134 -0
- package/dist/channels-ClZdlIAP.js +409 -0
- package/dist/channels-cli-CxyDo24U.js +246 -0
- package/dist/channels-status-issues-DOvoiysl.js +17 -0
- package/dist/chat-envelope-BKa8gVwt.js +158 -0
- package/dist/chat-meta-CxxUMjgT.js +77 -0
- package/dist/chat-type-D66QkgK0.js +10 -0
- package/dist/chunk-BRNunu6m.js +334 -0
- package/dist/chunk-DBEY4PJZ.js +16 -0
- package/dist/chutes-oauth-df1s-ETh.js +127 -0
- package/dist/cjk-chars-nOH-kRF8.js +50 -0
- package/dist/clack-prompter-ByYhQnEc.js +112 -0
- package/dist/clawbot-cli-B1PP3cQS.js +9 -0
- package/dist/clawhub-BlNkstQC.js +163 -0
- package/dist/clawhub-PHPunBYA.js +263 -0
- package/dist/cli/daemon-cli.js +3 -0
- package/dist/cli-BVs9q78-.js +2 -0
- package/dist/cli-backend-BY5ACL_R.js +1 -0
- package/dist/cli-backend-MiCoOt1Y.js +44 -0
- package/dist/cli-eS9_49Ka.js +153 -0
- package/dist/cli-name-l1qeysOp.js +21 -0
- package/dist/cli-runner-rgKmST01.js +1010 -0
- package/dist/cli-utils-CMfpS8SF.js +40 -0
- package/dist/cli-watchdog-defaults-3Qs4l3Yf.js +14 -0
- package/dist/cmd-argv-BafMhhA4.js +68 -0
- package/dist/codex-native-web-search-CWYqRu9M.js +2 -0
- package/dist/codex-native-web-search-CbRntg-q.js +155 -0
- package/dist/command-auth-CJsP4GL7.js +64 -0
- package/dist/command-auth-Dfgmp_6_.js +356 -0
- package/dist/command-auth-native-CdgZoflY.js +3 -0
- package/dist/command-detection-CyrUVnod.js +46 -0
- package/dist/command-format-CfBy_-A6.js +2 -0
- package/dist/command-format-DmvS76BD.js +22 -0
- package/dist/command-gating-HO-bVa6h.js +40 -0
- package/dist/command-options-BUoAEXAi.js +25 -0
- package/dist/command-poll-backoff-BbGeC12t.js +56 -0
- package/dist/command-poll-backoff.runtime-BDcejg_n.js +7 -0
- package/dist/command-registry-C0kFYtIa.js +199 -0
- package/dist/command-registry-VUV6Y6SA.js +3 -0
- package/dist/command-secret-gateway-B2PsoqGE.js +2 -0
- package/dist/command-secret-gateway-rXrG4_xf.js +449 -0
- package/dist/command-secret-targets-BMcCyKKM.js +85 -0
- package/dist/command-secret-targets-DYLJqbik.js +2 -0
- package/dist/commands/status.summary.runtime.js +146 -0
- package/dist/commands-BNN8qnEq.js +42 -0
- package/dist/commands-D905e2TE.js +4 -0
- package/dist/commands-acp-DxpRaS_2.js +994 -0
- package/dist/commands-context-DYfg86cW.js +33 -0
- package/dist/commands-core-BkTgFXRe.js +185 -0
- package/dist/commands-core.runtime-DL4UA7LO.js +2 -0
- package/dist/commands-handlers.runtime-Dnqn4WRI.js +3597 -0
- package/dist/commands-info-9qXzZJZy.js +638 -0
- package/dist/commands-models-DaGXLYpI.js +395 -0
- package/dist/commands-rHJt1A27.js +192 -0
- package/dist/commands-registry-DsvlObRs.js +295 -0
- package/dist/commands-registry.data-D4mfAJVD.js +928 -0
- package/dist/commands-registry.runtime-CvK5vfUk.js +2 -0
- package/dist/commands-status.runtime-Biqry_fJ.js +2 -0
- package/dist/commands.runtime-BQNIS1_C.js +4 -0
- package/dist/common-B8KXadTs.js +206 -0
- package/dist/compact.runtime-DrIYPOe_.js +7 -0
- package/dist/completion-cli-DADmFZNY.js +2 -0
- package/dist/completion-cli-Xpp8XJNt.js +466 -0
- package/dist/config-B8J_0cJd.js +41 -0
- package/dist/config-BeMghpRW.js +136 -0
- package/dist/config-C6sbf2mt.js +7 -0
- package/dist/config-CKbWnj3S.js +52 -0
- package/dist/config-DUHgkJzn.js +421 -0
- package/dist/config-cli-CwphzfyS.js +944 -0
- package/dist/config-eval-DM9FHTGd.js +100 -0
- package/dist/config-guard-BQvfMpPf.js +94 -0
- package/dist/config-helpers-DiGV2z9-.js +117 -0
- package/dist/config-paths-h016qQJq.js +8 -0
- package/dist/config-presence-C16x_f3x.js +79 -0
- package/dist/config-regex-CvZFnWkO.js +39 -0
- package/dist/config-runtime-CGUisiU5.js +12 -0
- package/dist/config-schema-5JUAk8XL.js +202 -0
- package/dist/config-schema-BRTDDWFV.js +65 -0
- package/dist/config-schema-B_uHmf_j.js +133 -0
- package/dist/config-schema-dV8ghEVQ.js +85 -0
- package/dist/config-state-CiYvCzdZ.js +185 -0
- package/dist/config-validation-CzH2O_-H.js +276 -0
- package/dist/config-value-B0LE9l8u.js +25 -0
- package/dist/configure-BUZKW20U.js +1140 -0
- package/dist/configure-CFbHMkXc.js +2 -0
- package/dist/configured-provider-fallback-HW8QhjlX.js +15 -0
- package/dist/connection-auth-Cs3qTX0J.js +30 -0
- package/dist/connection-details-GqZVX1_1.js +56 -0
- package/dist/constants-lHqfjBOu.js +71 -0
- package/dist/content-blocks-DdN51R-1.js +1640 -0
- package/dist/context-Bv7BKF9l.js +227 -0
- package/dist/context-window-guard-BKQgasN7.js +46 -0
- package/dist/control-ui/apple-touch-icon.png +0 -0
- package/dist/control-ui/assets/agents-sN8RQ1eS.js +813 -0
- package/dist/control-ui/assets/anthropic-ZDTkKd9P.js +37 -0
- package/dist/control-ui/assets/azure-openai-responses-CQjyuM35.js +2 -0
- package/dist/control-ui/assets/channel-config-extras-DNCeHtEf.js +2 -0
- package/dist/control-ui/assets/channels-LecGHhYY.js +349 -0
- package/dist/control-ui/assets/cron-BCSmuADd.js +928 -0
- package/dist/control-ui/assets/de-BhrN2Nih.js +2 -0
- package/dist/control-ui/assets/debug-DIDwUeSi.js +94 -0
- package/dist/control-ui/assets/directive-C6NBp6xJ.js +2 -0
- package/dist/control-ui/assets/dist-D8DZLmCF.js +18 -0
- package/dist/control-ui/assets/es-D2hTJirx.js +2 -0
- package/dist/control-ui/assets/event-stream-B8X6sYaV.js +2 -0
- package/dist/control-ui/assets/format-Cbj45nru.js +2 -0
- package/dist/control-ui/assets/github-copilot-headers-CrI0CIJ7.js +2 -0
- package/dist/control-ui/assets/google-gemini-cli-BpxbH95Q.js +3 -0
- package/dist/control-ui/assets/google-shared-CbPHVnPr.js +12 -0
- package/dist/control-ui/assets/google-vertex-lQwbjEII.js +2 -0
- package/dist/control-ui/assets/google-xtjMQAen.js +2 -0
- package/dist/control-ui/assets/hash-Bt1aVMQ3.js +2 -0
- package/dist/control-ui/assets/index-DqTClMaZ.js +4714 -0
- package/dist/control-ui/assets/index-yaW_F-Wi.css +1 -0
- package/dist/control-ui/assets/instances-CMgIM69b.js +57 -0
- package/dist/control-ui/assets/lit-zdTgzAJI.js +3 -0
- package/dist/control-ui/assets/logs-vVeVJ0CI.js +74 -0
- package/dist/control-ui/assets/mistral-u1o8NcCM.js +8 -0
- package/dist/control-ui/assets/nodes-B1R45Hyv.js +430 -0
- package/dist/control-ui/assets/openai-Cn7eGqwa.js +17 -0
- package/dist/control-ui/assets/openai-codex-responses-o0Z3RMWa.js +8 -0
- package/dist/control-ui/assets/openai-completions-7V2Ovprv.js +6 -0
- package/dist/control-ui/assets/openai-responses-oNxOx3Q1.js +2 -0
- package/dist/control-ui/assets/openai-responses-shared-OKpfrZ-q.js +11 -0
- package/dist/control-ui/assets/preload-helper-xBbMyY7u.js +1 -0
- package/dist/control-ui/assets/pt-BR-Bd9tFPER.js +2 -0
- package/dist/control-ui/assets/sessions-Lc0IvBNe.js +236 -0
- package/dist/control-ui/assets/skills-k1ptbgMP.js +216 -0
- package/dist/control-ui/assets/skills-shared-D4l2M8cL.js +11 -0
- package/dist/control-ui/assets/transform-messages-XKqwKV3D.js +2 -0
- package/dist/control-ui/assets/zh-CN-DvLwUwA1.js +2 -0
- package/dist/control-ui/assets/zh-TW-BXT7QT3h.js +2 -0
- package/dist/control-ui/favicon-32.png +0 -0
- package/dist/control-ui/favicon.ico +0 -0
- package/dist/control-ui/favicon.svg +22 -0
- package/dist/control-ui/index.html +75 -0
- package/dist/control-ui-assets-DbOOvjtb.js +233 -0
- package/dist/control-ui-shared-DsqkrmmN.js +29 -0
- package/dist/conversation-binding-input-BGI5gsf7.js +250 -0
- package/dist/conversation-binding-xxmmj56H.js +520 -0
- package/dist/conversation-id-B2-7oYz5.js +9 -0
- package/dist/conversation-label-CDBJEzqs.js +32 -0
- package/dist/conversation-runtime-CPXVzEGP.js +85 -0
- package/dist/core-DidBIGEJ.js +195 -0
- package/dist/core-api-VzeJYIaC.js +670 -0
- package/dist/core-command-descriptors-OO8iMaXR.js +91 -0
- package/dist/credential-planner-B6V18E6X.js +109 -0
- package/dist/credentials-T7b82ytT.js +135 -0
- package/dist/cron-cli-D2epg2QX.js +643 -0
- package/dist/current-time-AvIq1E3O.js +20 -0
- package/dist/daemon-cli-Be7LAwcB.js +368 -0
- package/dist/daemon-install-CfvYrNa-.js +63 -0
- package/dist/daemon-install-plan.shared-Dm6sK7Lg.js +222 -0
- package/dist/daemon-runtime-DPejcJWG.js +12 -0
- package/dist/dangerous-config-flags-DyYwhFd-.js +38 -0
- package/dist/dangerous-name-matching-DJGvHcqL.js +48 -0
- package/dist/date-time-ChwO2p0r.js +118 -0
- package/dist/dedupe-ClGH5AD-.js +59 -0
- package/dist/default-account-warnings-DhrBUOxe.js +15 -0
- package/dist/default-models-p_jLxv9h.js +35 -0
- package/dist/defaults-DAt--D9n.js +6 -0
- package/dist/delegate-D_a6-aW6.js +43 -0
- package/dist/deliver-NyzvqqW3.js +954 -0
- package/dist/deliver-YFpAT2Gv.js +3 -0
- package/dist/deliver-runtime-CDYmnxXC.js +2 -0
- package/dist/delivery-DHz1_gua.js +819 -0
- package/dist/delivery-context-wkeob4lC.js +106 -0
- package/dist/delivery-info-0NXZH054.js +36 -0
- package/dist/delivery-queue-BceSoMom.js +2 -0
- package/dist/delivery-queue-Dij4z9yQ.js +289 -0
- package/dist/deps-xJ6d5mcR.js +67 -0
- package/dist/detect-binary-D5oXUD9C.js +30 -0
- package/dist/device-auth-BPeQrfAM.js +19 -0
- package/dist/device-bootstrap-IW2esZhx.js +176 -0
- package/dist/device-identity-2GhXUC5d.js +2 -0
- package/dist/device-identity-DH-dBXN2.js +140 -0
- package/dist/device-metadata-normalization-DesKWnX9.js +21 -0
- package/dist/device-pairing-D-eXc4mS.js +543 -0
- package/dist/devices-cli-CUkbtT5k.js +328 -0
- package/dist/diagnostic-BYcJF51S.js +311 -0
- package/dist/diagnostic-events-R6R0hsS8.js +48 -0
- package/dist/diagnostic-flags-DI1-YJxA.js +64 -0
- package/dist/diagnostic-runtime-iwrls2oi.js +1 -0
- package/dist/diagnostics-Bn7WBAMb.js +2 -0
- package/dist/diagnostics-CNOhNbiG.js +33 -0
- package/dist/direct-dm-DX9Sqse3.js +139 -0
- package/dist/directive-handling.defaults-CiM3zY4c.js +19 -0
- package/dist/directive-handling.fast-lane-CBsRyqm9.js +64 -0
- package/dist/directive-handling.fast-lane-CkLifH7t.js +2 -0
- package/dist/directive-handling.impl-DDDo9_pC.js +2 -0
- package/dist/directive-handling.impl-Rcgo5SCg.js +674 -0
- package/dist/directive-handling.levels-Dlk68wUB.js +2 -0
- package/dist/directive-handling.levels-Y1fuvRYT.js +12 -0
- package/dist/directive-handling.parse-CMEE0kEW.js +375 -0
- package/dist/directive-handling.persist-CvEtXaAd.js +133 -0
- package/dist/directive-handling.persist.runtime-Cdksoe_I.js +2 -0
- package/dist/directive-handling.shared-8kteIv4q.js +158 -0
- package/dist/directive-tags-B4NiUGng.js +109 -0
- package/dist/directives-DLcHC9jG.js +209 -0
- package/dist/directory-cache-KFfoEzq3.js +62 -0
- package/dist/directory-cli-DUY3BGGz.js +238 -0
- package/dist/directory-config-helpers-DBmVJY3U.js +141 -0
- package/dist/directory-runtime-DWVDd3A5.js +20 -0
- package/dist/discord-2uEduGX9.js +6 -0
- package/dist/discord-BMCiYFK_.js +11 -0
- package/dist/discord-account-HmxkZycn.js +11 -0
- package/dist/discord-core-Pl5ukuXB.js +5 -0
- package/dist/discord-runtime-surface-DNQNbA29.js +67 -0
- package/dist/discord-session-key-DoaFTAH3.js +11 -0
- package/dist/discord-surface-Cn77ggmj.js +30 -0
- package/dist/discord-thread-bindings-DRMbWo4Q.js +21 -0
- package/dist/discord-timeouts-Cv7cpmLu.js +12 -0
- package/dist/dispatch-CZypQktI.js +842 -0
- package/dist/dispatch-acp.runtime-DVu2VG71.js +887 -0
- package/dist/dist-C22HbjJn.js +3 -0
- package/dist/dist-C26-w-eb.js +14245 -0
- package/dist/dist-_cqaGkQM.js +503 -0
- package/dist/dm-policy-shared-BsSmWpF_.js +188 -0
- package/dist/dns-cli-CypS3rSW.js +192 -0
- package/dist/docker-e3sy4uxj.js +837 -0
- package/dist/docs-cli-CAc6XPQ1.js +156 -0
- package/dist/doctor-completion-D1GX1eYy.js +90 -0
- package/dist/doctor-config-preflight-BIjpCYLH.js +2 -0
- package/dist/doctor-config-preflight-C5YWG1Il.js +147 -0
- package/dist/doctor-state-migrations-C4JRWbB5.js +2 -0
- package/dist/doctor-state-migrations-Hkw1WYQh.js +3 -0
- package/dist/dotenv-5B3Ltg5m.js +11 -0
- package/dist/dotenv-C-ipPVRV.js +91 -0
- package/dist/enable-1JBZrsl3.js +57 -0
- package/dist/entry-status-8GZhSwz9.js +172 -0
- package/dist/entry.js +209 -0
- package/dist/env-DAI7QbHD.js +40 -0
- package/dist/env-substitution-D4FvNwAw.js +136 -0
- package/dist/envelope-BT4nxsRe.js +137 -0
- package/dist/error-runtime-BWR3edBz.js +2 -0
- package/dist/error-text-Dz9S7qeJ.js +9 -0
- package/dist/errors-BVF4CQJh.js +15 -0
- package/dist/errors-BxyFnvP3.js +58 -0
- package/dist/exa-web-search-provider-YdwhKG_r.js +355 -0
- package/dist/exec-DBEtpL4G.js +2 -0
- package/dist/exec-DNTgEe82.js +375 -0
- package/dist/exec-approval-reply-CIaFux57.js +161 -0
- package/dist/exec-approval-session-target-BsD_thnK.js +159 -0
- package/dist/exec-approvals-D6Kd1FHX.js +120 -0
- package/dist/exec-approvals-XWl5Qihe.js +394 -0
- package/dist/exec-approvals-allowlist-B90zHMFx.js +771 -0
- package/dist/exec-approvals-cli-CBwEU5lx.js +375 -0
- package/dist/exec-safe-bin-runtime-policy-CQ_6FV8z.js +90 -0
- package/dist/exec-safety-FkFR1qf5.js +24 -0
- package/dist/extensionAPI.js +17 -0
- package/dist/extensions/brave/index.js +13 -0
- package/dist/extensions/brave/package.json +12 -0
- package/dist/extensions/brave/test-api.js +2 -0
- package/dist/extensions/brave/vora.plugin.json +50 -0
- package/dist/extensions/brave/web-search-provider.js +2 -0
- package/dist/extensions/browser/browser-runtime-api.js +4 -0
- package/dist/extensions/browser/index.js +20 -0
- package/dist/extensions/browser/package.json +12 -0
- package/dist/extensions/browser/runtime-api.js +6 -0
- package/dist/extensions/browser/test-support.js +19 -0
- package/dist/extensions/browser/vora.plugin.json +9 -0
- package/dist/extensions/discord/action-runtime-api.js +2 -0
- package/dist/extensions/discord/api.js +14 -0
- package/dist/extensions/discord/channel-config-api.js +2 -0
- package/dist/extensions/discord/index.js +615 -0
- package/dist/extensions/discord/package.json +40 -0
- package/dist/extensions/discord/runtime-api.js +229 -0
- package/dist/extensions/discord/session-key-api.js +2 -0
- package/dist/extensions/discord/setup-entry.js +10 -0
- package/dist/extensions/discord/test-api.js +45 -0
- package/dist/extensions/discord/timeouts.js +2 -0
- package/dist/extensions/discord/vora.plugin.json +11 -0
- package/dist/extensions/exa/index.js +13 -0
- package/dist/extensions/exa/package.json +12 -0
- package/dist/extensions/exa/vora.plugin.json +39 -0
- package/dist/extensions/exa/web-search-provider.js +2 -0
- package/dist/extensions/openai/api.js +4 -0
- package/dist/extensions/openai/cli-backend.js +2 -0
- package/dist/extensions/openai/default-models.js +2 -0
- package/dist/extensions/openai/image-generation-provider.js +2 -0
- package/dist/extensions/openai/index.js +24 -0
- package/dist/extensions/openai/media-understanding-provider.js +2 -0
- package/dist/extensions/openai/openai-codex-auth-identity.js +2 -0
- package/dist/extensions/openai/openai-codex-catalog.js +2 -0
- package/dist/extensions/openai/openai-codex-provider.js +2 -0
- package/dist/extensions/openai/openai-codex-provider.runtime.js +14 -0
- package/dist/extensions/openai/openai-provider.js +2 -0
- package/dist/extensions/openai/package.json +12 -0
- package/dist/extensions/openai/shared.js +4 -0
- package/dist/extensions/openai/speech-provider.js +2 -0
- package/dist/extensions/openai/test-api.js +5 -0
- package/dist/extensions/openai/tts.js +2 -0
- package/dist/extensions/openai/vora.plugin.json +61 -0
- package/dist/extensions/tavily/index.js +128 -0
- package/dist/extensions/tavily/package.json +12 -0
- package/dist/extensions/tavily/skills/tavily/SKILL.md +94 -0
- package/dist/extensions/tavily/vora.plugin.json +53 -0
- package/dist/extensions/tavily/web-search-provider.js +2 -0
- package/dist/extensions/telegram/allow-from.js +2 -0
- package/dist/extensions/telegram/api.js +13 -0
- package/dist/extensions/telegram/channel-config-api.js +2 -0
- package/dist/extensions/telegram/index.js +12 -0
- package/dist/extensions/telegram/package.json +37 -0
- package/dist/extensions/telegram/runtime-api.js +24 -0
- package/dist/extensions/telegram/session-key-api.js +2 -0
- package/dist/extensions/telegram/setup-entry.js +13 -0
- package/dist/extensions/telegram/test-api.js +87 -0
- package/dist/extensions/telegram/test-support.js +72 -0
- package/dist/extensions/telegram/update-offset-runtime-api.js +2 -0
- package/dist/extensions/telegram/vora.plugin.json +11 -0
- package/dist/external-content-CCU3ADB4.js +242 -0
- package/dist/facade-runtime-FE2gvW08.js +183 -0
- package/dist/failover-error-Bv6ZpTGn.js +194 -0
- package/dist/feishu-conversation-CRGPLs2e.js +17 -0
- package/dist/feishu-setup-D3qBPVeH.js +12 -0
- package/dist/fetch-B7l-vxJ5.js +65 -0
- package/dist/fetch-BlEbs4zu.js +416 -0
- package/dist/fetch-guard-DECxJSgV.js +132 -0
- package/dist/fetch-mock-Y15aY-vX.js +6 -0
- package/dist/fetch-runtime-DfJc8pAb.js +4 -0
- package/dist/fetch-timeout-DlhFJxaz.js +58 -0
- package/dist/file-identity-CFjEVvlD.js +567 -0
- package/dist/file-lock-I_Ef85iM.js +141 -0
- package/dist/file-lock-_Bv5Z0H8.js +2 -0
- package/dist/format-Cmirp0jV.js +19 -0
- package/dist/format-DTr5MrB3.js +787 -0
- package/dist/format-datetime-BzFsOTtu.js +73 -0
- package/dist/format-duration-3-yx54b_.js +57 -0
- package/dist/format-relative-CKRrUR_e.js +54 -0
- package/dist/frontmatter-7NzkXiTl.js +45 -0
- package/dist/frontmatter-BruYJzuJ.js +210 -0
- package/dist/fs-safe-C7Y0npoY.js +999 -0
- package/dist/gateway-cli-CL9kkVgP.js +25330 -0
- package/dist/gateway-discovery-targets-Nj88oSf4.js +430 -0
- package/dist/gateway-install-token-DT4JSzW6.js +231 -0
- package/dist/gateway-presence-C9FNv0wz.js +15 -0
- package/dist/gateway-registry-bOE6bwiW.js +74 -0
- package/dist/gateway-rpc-EUERnNbW.js +26 -0
- package/dist/gateway-runtime-DA85e49x.js +12 -0
- package/dist/gaxios-fetch-compat-TyJGVB6l.js +180 -0
- package/dist/gemini-auth-DU9RM3Fo.js +29 -0
- package/dist/get-reply-from-config.runtime-BTZAHGwc.js +2 -0
- package/dist/git-commit-B_DkJ7LE.js +177 -0
- package/dist/git-commit-Bx0Yma3I.js +2 -0
- package/dist/github-copilot-login-BiqEMA_7.js +11 -0
- package/dist/github-copilot-token-BMHm0urT.js +2 -0
- package/dist/github-copilot-token-CGpIsMSL.js +77 -0
- package/dist/global-singleton-54zT3rCn.js +13 -0
- package/dist/global-singleton-o2ArPCEw.js +1 -0
- package/dist/global-state-DUuMGgts.js +17 -0
- package/dist/globals-DNhziPZz.js +25 -0
- package/dist/gmail-setup-utils-B4xK25jT.js +421 -0
- package/dist/google-CPRZDTjq.js +24 -0
- package/dist/group-access-Cd6mU7Ys.js +113 -0
- package/dist/group-activation-BwfaA0gP.js +22 -0
- package/dist/group-id-vLZLwNVz.js +11 -0
- package/dist/group-policy-Cr7UXkoj.js +201 -0
- package/dist/group-policy-warnings-DmIDYgw8.js +196 -0
- package/dist/groups.runtime-DKOqtNQC.js +7 -0
- package/dist/handle-action-DsH0nVWk.js +500 -0
- package/dist/health-B3O0HygG.js +577 -0
- package/dist/health-CojrwX7m.js +2 -0
- package/dist/health-format-JFM9rFJB.js +26 -0
- package/dist/heartbeat-C1Xvupsk.js +122 -0
- package/dist/heartbeat-reply-payload-C-Rlp4k5.js +13 -0
- package/dist/heartbeat-summary-D5pDHsmN.js +57 -0
- package/dist/heartbeat-visibility-kNXllOIC.js +102 -0
- package/dist/heartbeat-wake-DfVExPSU.js +188 -0
- package/dist/help-CpuviX5S.js +81 -0
- package/dist/help-format-Dad85O74.js +15 -0
- package/dist/helpers-4IKdDZX5.js +24 -0
- package/dist/helpers-fNw5R_YT.js +32 -0
- package/dist/history-CK-v5j98.js +102 -0
- package/dist/home-dir-BXPtwSCY.js +83 -0
- package/dist/hook-runner-global-DEn0PCL0.js +602 -0
- package/dist/hook-runtime-Dn-Congb.js +3 -0
- package/dist/hooks-cli-DNKW70lO.js +353 -0
- package/dist/hooks-policy-Ad8y_Dfl.js +20 -0
- package/dist/hooks-status-Cb31D01g.js +86 -0
- package/dist/host-env-security-Cks-ZF3X.js +285 -0
- package/dist/hostname-BYGiBG2v.js +8 -0
- package/dist/http-body-DoRUn0Id.js +238 -0
- package/dist/http-registry-1oFXUjVZ.js +54 -0
- package/dist/http-route-overlap-CRbY2bBV.js +101 -0
- package/dist/identity-BBfQnFMg.js +29 -0
- package/dist/identity-BoQQh6Y8.js +26 -0
- package/dist/identity-D7VGm34b.js +84 -0
- package/dist/identity-avatar-CBJpFxtc.js +86 -0
- package/dist/identity-file-9bBicCze.js +60 -0
- package/dist/image-UFatuV93.js +152 -0
- package/dist/image-generation-CB1-VO0n.js +1 -0
- package/dist/image-generation-provider-CoHdiPC_.js +86 -0
- package/dist/image-ops-EABsGjsc.js +476 -0
- package/dist/image-runtime-ZZOiUbiY.js +7 -0
- package/dist/imessage-UUBzYSCn.js +19 -0
- package/dist/inbound-context-BxNfypB6.js +59 -0
- package/dist/inbound-context-DQ_fXNSa.js +38 -0
- package/dist/inbound-debounce-YEtyt_k_.js +159 -0
- package/dist/inbound-envelope-B6C8FhsE.js +61 -0
- package/dist/inbound-reply-dispatch-BP3sajLc.js +73 -0
- package/dist/inbound-text-DibnKFqn.js +14 -0
- package/dist/inbound.runtime-SCcR_etw.js +3 -0
- package/dist/includes-CHoL4g8x.js +188 -0
- package/dist/includes-scan-rcUlg6Nq.js +55 -0
- package/dist/index.js +56 -0
- package/dist/infra/warning-filter.js +2 -0
- package/dist/infra-runtime-D1S_mYfO.js +326 -0
- package/dist/input-files-BJKZz7LU.js +251 -0
- package/dist/input-provenance-DqtZ-oaB.js +44 -0
- package/dist/inspect-BdrrX2i3.js +282 -0
- package/dist/install-BwbpybtH.js +588 -0
- package/dist/install-package-dir-DhoPrQ04.js +284 -0
- package/dist/install-safe-path-BK_5xK2H.js +69 -0
- package/dist/install-security-scan-qS3b3qEq.js +22 -0
- package/dist/install-security-scan.runtime-BChyO9J8.js +166 -0
- package/dist/install-source-utils-BvLftGQS.js +167 -0
- package/dist/install-target-CTg66IIO.js +175 -0
- package/dist/install.runtime-BTSq91Fr.js +27 -0
- package/dist/install.runtime-D4V_unI1.js +11 -0
- package/dist/installs-CRoSOFIQ.js +28 -0
- package/dist/interactive-C3NpHdfG.js +8 -0
- package/dist/interactive-runtime-ihi8xJat.js +1 -0
- package/dist/internal-DBQug4hL.js +411 -0
- package/dist/internal-hooks-BbEvCG0I.js +155 -0
- package/dist/io-B07IaARR.js +20276 -0
- package/dist/io-CNajM2P9.js +4 -0
- package/dist/ip-B9fdE2gz.js +208 -0
- package/dist/ipv4-C3dcphoh.js +82 -0
- package/dist/irc-surface-76sLILVt.js +15 -0
- package/dist/is-main-Bv5ej4lF.js +27 -0
- package/dist/issue-format-BSF24W54.js +31 -0
- package/dist/issue-format-DOmwnG2e.js +2 -0
- package/dist/json-file-BWMSefn1.js +23 -0
- package/dist/json-files-BTzholfl.js +72 -0
- package/dist/json-mode-BSMgY7a9.js +34 -0
- package/dist/json-pointer-jqlJaexT.js +43 -0
- package/dist/json-store-BMjN0M0e.js +37 -0
- package/dist/keyed-async-queue-BThh1lNJ.js +32 -0
- package/dist/kill-tree-B6ozo-AE.js +82 -0
- package/dist/kill-tree-Cqktd2UA.js +2 -0
- package/dist/launchd-D65d45MJ.js +517 -0
- package/dist/lazy-runtime-CeSDvNOX.js +29 -0
- package/dist/lazy-service-module-BfNSCPnr.js +24 -0
- package/dist/legacy-names-alNfx9uv.js +7 -0
- package/dist/legacy-web-search-PlL5wfRE.js +140 -0
- package/dist/legacy.shared-BdJdF_Ji.js +45 -0
- package/dist/level-overrides-DkpAP8Z5.js +36 -0
- package/dist/library-D0LkGi9S.js +44 -0
- package/dist/lifecycle-core-LQrm8n7o.js +401 -0
- package/dist/line-C7MzXHd9.js +4 -0
- package/dist/line-runtime-D0TK2zdy.js +60 -0
- package/dist/line-surface-CN8Lvuud.js +27 -0
- package/dist/links-Dew9XRNK.js +17 -0
- package/dist/listeners-CUHNPyTB.js +14 -0
- package/dist/llm-slug-generator-DdO4_-IV.js +68 -0
- package/dist/llm-slug-generator.js +2 -0
- package/dist/load-CadZ3tcc.js +28 -0
- package/dist/loader-CbUrcgTY.js +2096 -0
- package/dist/local-file-access-BKg2BnYT.js +49 -0
- package/dist/location-DAl2Dv-o.js +42 -0
- package/dist/logger-BOH4EG1g.js +75 -0
- package/dist/logger-DXmZnecR.js +582 -0
- package/dist/logger-hR5Nn0oR.js +11 -0
- package/dist/logging-BVrQyk5K.js +13 -0
- package/dist/logging-BoyMPDyh.js +16 -0
- package/dist/logging-DPN6sRQx.js +3 -0
- package/dist/logging-core-BOrwsQp5.js +3 -0
- package/dist/logging-x8ySQJz4.js +2 -0
- package/dist/logs-cli-DUKwlDzr.js +221 -0
- package/dist/magic-string.es-CnHiwmBJ.js +1011 -0
- package/dist/main-session-BQ1fLshb.js +38 -0
- package/dist/manager-BfZUkAlZ.js +7 -0
- package/dist/manager.runtime-CiRcAT_V.js +670 -0
- package/dist/manifest-D49j8zhq.js +231 -0
- package/dist/manifest-registry-CVwreH55.js +955 -0
- package/dist/map-size-CHeGE-Hu.js +15 -0
- package/dist/markdown-tables-D2sUymqZ.js +31 -0
- package/dist/mask-api-key-Dxw856id.js +10 -0
- package/dist/matrix-Ds9X7gxo.js +340 -0
- package/dist/matrix-config-helpers-CXItIHIe.js +153 -0
- package/dist/matrix-helper-dQNUz9y1.js +20 -0
- package/dist/matrix-migration-snapshot-BSPlCZpf.js +714 -0
- package/dist/matrix-runtime-surface-Dggb-0DD.js +12 -0
- package/dist/matrix-surface-CxJ9TM8l.js +13 -0
- package/dist/matrix-thread-bindings-CT4Dqsid.js +12 -0
- package/dist/mcp/plugin-tools-serve.js +105 -0
- package/dist/mcp-cli-IzvP-l2E.js +768 -0
- package/dist/mcp-config-Bul9F_lO.js +117 -0
- package/dist/media-limits-CfgImPSH.js +14 -0
- package/dist/media-runtime-D2qFlSNy.js +293 -0
- package/dist/media-understanding-D930-yxA.js +43 -0
- package/dist/media-understanding-provider-WeSvV5Jz.js +27 -0
- package/dist/media-understanding-runtime-C2xB_w9c.js +15 -0
- package/dist/media-understanding.runtime-Cad8YO-5.js +7 -0
- package/dist/memory-core-engine-runtime-e08xLNwK.js +14 -0
- package/dist/memory-core-host-engine-embeddings-CeqjF8mF.js +1369 -0
- package/dist/memory-core-host-engine-qmd-2rX9HR2g.js +375 -0
- package/dist/memory-core-host-engine-storage-BocZ6yow.js +109 -0
- package/dist/memory-core-host-multimodal-DgBuQzZm.js +1 -0
- package/dist/memory-core-host-query-Cekrv97-.js +2 -0
- package/dist/memory-core-host-runtime-cli--EQHw17R.js +10 -0
- package/dist/memory-core-host-runtime-core-DX17el9Z.js +8 -0
- package/dist/memory-core-host-runtime-files-CeDFldc-.js +3 -0
- package/dist/memory-core-host-secret-BUGjwboV.js +1 -0
- package/dist/memory-core-host-status-C7nF33J8.js +44 -0
- package/dist/memory-embedding-providers-C8KLZUqC.js +34 -0
- package/dist/memory-runtime-D2rQY7mY.js +2 -0
- package/dist/memory-runtime-WuWYrOU9.js +30 -0
- package/dist/memory-search-BQs_twVs.js +2 -0
- package/dist/memory-search-L16IM5VZ.js +202 -0
- package/dist/memory-state-BPOopEhZ.js +41 -0
- package/dist/mention-gating-BJSMiJu8.js +25 -0
- package/dist/mentions-D0fLhfbe.js +155 -0
- package/dist/mentions-Ksl6lu1X.js +65 -0
- package/dist/merge-patch-CY3S-7zE.js +240 -0
- package/dist/message-D1nCeSGV.js +205 -0
- package/dist/message-action-discovery-Bp_zFTg1.js +133 -0
- package/dist/message-action-runner-DOaZ7jbV.js +1601 -0
- package/dist/message-channel-Di9LQZCg.js +105 -0
- package/dist/message-handler-CVxycGRP.js +1759 -0
- package/dist/message-hook-mappers-CgJovp_6.js +255 -0
- package/dist/message-secret-scope-BsvGcXOU.js +104 -0
- package/dist/method-scopes-1fMDkPgy.js +2608 -0
- package/dist/mime-CPj5mSwT.js +150 -0
- package/dist/min-host-version-BROqyGiT.js +348 -0
- package/dist/minimax-vlm-ciXgon3-.js +502 -0
- package/dist/model-auth-FAjaPIyj.js +330 -0
- package/dist/model-auth-env-aXebmtnO.js +42 -0
- package/dist/model-auth-label-BdkmYsfL.js +45 -0
- package/dist/model-auth-markers-CAxoOhNr.js +70 -0
- package/dist/model-auth-runtime-shared-C6EfNsiC.js +18 -0
- package/dist/model-catalog-DcYmAWnK.js +208 -0
- package/dist/model-catalog.runtime-BnfcWBe6.js +2 -0
- package/dist/model-input-shLH7pnZ.js +20 -0
- package/dist/model-overrides-CCPXEsf4.js +61 -0
- package/dist/model-overrides-CbljEHPO.js +84 -0
- package/dist/model-param-b-C9Se0GAW.js +15 -0
- package/dist/model-picker-7YHY1_DM.js +439 -0
- package/dist/model-picker-cAVRu3J8.js +3 -0
- package/dist/model-picker.runtime-DbCF7jcT.js +15 -0
- package/dist/model-selection-DLV9QudA.js +486 -0
- package/dist/model-selection-teaznyVt.js +407 -0
- package/dist/model-suppression-DxU9Wl3w.js +24 -0
- package/dist/model-suppression.runtime-DdJpj7Pn.js +7 -0
- package/dist/models-BktgoCTN.js +3 -0
- package/dist/models-DxC1yWIR.js +2550 -0
- package/dist/models-cli-BQJGDwlZ.js +197 -0
- package/dist/models-config-BrM95ZWn.js +2 -0
- package/dist/models-config-WznILp-f.js +1106 -0
- package/dist/models-config.runtime-DKvV7dBw.js +2 -0
- package/dist/monitor-B7Wimfc0.js +6004 -0
- package/dist/moonshot-stream-wrappers-CAVTNNIV.js +27 -0
- package/dist/moonshot-thinking-stream-wrappers-DSGFaY0P.js +69 -0
- package/dist/multimodal-fHfIB02R.js +66 -0
- package/dist/mutable-allowlist-detectors-Cz3_rHTS.js +62 -0
- package/dist/native-command-session-targets-YEwzYdBY.js +10 -0
- package/dist/net-DV8cgxeU.js +264 -0
- package/dist/network-mode-DlVi9UOI.js +17 -0
- package/dist/node-cli-BOOTFx0A.js +2201 -0
- package/dist/node-command-policy-H9JvUbqw.js +190 -0
- package/dist/node-commands-CtUW-J-z.js +11 -0
- package/dist/node-require-BgDD9bTi.js +14 -0
- package/dist/node-resolve-r0n2qCFZ.js +110 -0
- package/dist/node-service-BTIQHcIe.js +68 -0
- package/dist/node-startup-env-CVMjxAUF.js +50 -0
- package/dist/nodes-cli-DSe8_891.js +1050 -0
- package/dist/nodes-screen-BFBwMK0F.js +219 -0
- package/dist/nodes.helpers-C5_joVF0.js +204 -0
- package/dist/normalize-TCHtmmQz.js +35 -0
- package/dist/normalize-reply-D3AZv-Ku.js +500 -0
- package/dist/normalize-secret-input-Botsab7G.js +32 -0
- package/dist/note-BopuvWl0.js +109 -0
- package/dist/npm-registry-spec-C04c6qSA.js +100 -0
- package/dist/ollama-DHGG2Bt4.js +26 -0
- package/dist/ollama-surface-C297W-Hb.js +24 -0
- package/dist/onboard-BLF26Ra3.js +591 -0
- package/dist/onboard-channels-C7VwUlqL.js +2 -0
- package/dist/onboard-channels-CNYuwk6A.js +705 -0
- package/dist/onboard-config-BHR99vFk.js +2 -0
- package/dist/onboard-config-CDwd7KFG.js +29 -0
- package/dist/onboard-custom-B-SjrGJ_.js +2 -0
- package/dist/onboard-custom-BYciMnUV.js +646 -0
- package/dist/onboard-helpers-CXSVhHmw.js +4 -0
- package/dist/onboard-helpers-DQzH15KX.js +272 -0
- package/dist/onboard-hooks-dbSmp47O.js +52 -0
- package/dist/onboard-remote-76zO-wtV.js +2 -0
- package/dist/onboard-remote-CV8CYWRk.js +193 -0
- package/dist/onboard-search-CR1tclPf.js +339 -0
- package/dist/onboard-skills-B3nol3_I.js +2 -0
- package/dist/onboard-skills-BWzgYZiw.js +134 -0
- package/dist/openai-CYdnp7Xp.js +21 -0
- package/dist/openai-codex-auth-identity-DYIekza3.js +40 -0
- package/dist/openai-codex-catalog-C9jNVPkk.js +11 -0
- package/dist/openai-codex-provider-CihFFdms.js +254 -0
- package/dist/openai-provider-CY9og1U4.js +272 -0
- package/dist/openai-stream-wrappers-DMltslUP.js +453 -0
- package/dist/operator-approvals-client-CrZARXVS.js +33 -0
- package/dist/order-EE5jGs_C.js +744 -0
- package/dist/origin-routing-IIB1gZNP.js +15 -0
- package/dist/os-summary-B2xVpxVk.js +26 -0
- package/dist/outbound-adapter-BXuNyLX4.js +181 -0
- package/dist/outbound-media-Do8el7w-.js +48 -0
- package/dist/outbound-runtime-BsrPMYQX.js +2 -0
- package/dist/outbound-send-deps-RCYokJDu.js +7 -0
- package/dist/pairing-challenge-C6zO1O_e.js +33 -0
- package/dist/pairing-cli-lSGiQegx.js +116 -0
- package/dist/pairing-labels-CqTzyQv4.js +7 -0
- package/dist/pairing-message-CLV_7GCg.js +4 -0
- package/dist/pairing-messages-Bms_bews.js +23 -0
- package/dist/pairing-pending-CymkYopg.js +14 -0
- package/dist/pairing-store-BgSXc67b.js +617 -0
- package/dist/pairing-token-trqjnXaR.js +80 -0
- package/dist/parse-duration-FGYGEVrK.js +41 -0
- package/dist/parse-finite-number-CpMi4ac9.js +30 -0
- package/dist/parse-log-line-DB02BPsG.js +43 -0
- package/dist/parse-port-CfkrReDG.js +8 -0
- package/dist/parse-timeout-CqVxIetA.js +27 -0
- package/dist/path-alias-guards-CTG--JDv.js +40 -0
- package/dist/path-env-Coe9j6U3.js +87 -0
- package/dist/path-safety-BtrNm8CZ.js +12 -0
- package/dist/paths-dFp6bjkV.js +180 -0
- package/dist/paths-voC5pD8X.js +201 -0
- package/dist/payload-BiCTL_Go.js +90 -0
- package/dist/pdf-extract-DYqhcrys.js +73 -0
- package/dist/persistent-bindings.resolve-BG1W2wH2.js +12 -0
- package/dist/persistent-bindings.types-yg27a-LN.js +6 -0
- package/dist/persistent-dedupe-DeJFOp8F.js +116 -0
- package/dist/pi-model-discovery-4V1cP6C-.js +188 -0
- package/dist/pi-settings-tFYTni5h.js +57 -0
- package/dist/plugin-approvals-BBS3Vgt6.js +34 -0
- package/dist/plugin-auto-enable-B4gIDfiP.js +349 -0
- package/dist/plugin-entry-D7EjsbGL.js +25 -0
- package/dist/plugin-install-CBe57uiZ.js +2 -0
- package/dist/plugin-install-PbQ6ukY-.js +191 -0
- package/dist/plugin-install-config-policy-MQbVt-fA.js +93 -0
- package/dist/plugin-install-path-warnings-BfBOA9nm.js +40 -0
- package/dist/plugin-install-plan-DKH1Osjr.js +50 -0
- package/dist/plugin-registry-D2DvWTxI.js +2 -0
- package/dist/plugin-registry-t_GnpNNe.js +70 -0
- package/dist/plugin-runtime-kxm6OF3O.js +6 -0
- package/dist/plugin-sdk/account-core.js +8 -0
- package/dist/plugin-sdk/account-helpers.js +4 -0
- package/dist/plugin-sdk/account-id.js +3 -0
- package/dist/plugin-sdk/account-resolution.js +12 -0
- package/dist/plugin-sdk/acp-runtime.js +6 -0
- package/dist/plugin-sdk/agent-config-primitives.js +3 -0
- package/dist/plugin-sdk/agent-runtime.js +29 -0
- package/dist/plugin-sdk/allow-from.js +5 -0
- package/dist/plugin-sdk/allowlist-config-edit.js +2 -0
- package/dist/plugin-sdk/amazon-bedrock.js +15 -0
- package/dist/plugin-sdk/anthropic-vertex.js +2 -0
- package/dist/plugin-sdk/approval-runtime.js +7 -0
- package/dist/plugin-sdk/bluebubbles-policy.js +2 -0
- package/dist/plugin-sdk/bluebubbles.js +255 -0
- package/dist/plugin-sdk/boolean-param.js +2 -0
- package/dist/plugin-sdk/browser-runtime.js +2 -0
- package/dist/plugin-sdk/browser-support.js +44 -0
- package/dist/plugin-sdk/browser.js +15 -0
- package/dist/plugin-sdk/byteplus.js +17 -0
- package/dist/plugin-sdk/channel-actions.js +3 -0
- package/dist/plugin-sdk/channel-config-helpers.js +2 -0
- package/dist/plugin-sdk/channel-config-primitives.js +3 -0
- package/dist/plugin-sdk/channel-config-schema.js +7 -0
- package/dist/plugin-sdk/channel-config-writes.js +2 -0
- package/dist/plugin-sdk/channel-contract.js +1 -0
- package/dist/plugin-sdk/channel-feedback.js +5 -0
- package/dist/plugin-sdk/channel-inbound.js +10 -0
- package/dist/plugin-sdk/channel-lifecycle.js +3 -0
- package/dist/plugin-sdk/channel-pairing.js +2 -0
- package/dist/plugin-sdk/channel-policy.js +6 -0
- package/dist/plugin-sdk/channel-reply-pipeline.js +2 -0
- package/dist/plugin-sdk/channel-runtime.js +15 -0
- package/dist/plugin-sdk/channel-send-result.js +2 -0
- package/dist/plugin-sdk/channel-setup.js +5 -0
- package/dist/plugin-sdk/channel-status.js +5 -0
- package/dist/plugin-sdk/channel-targets.js +4 -0
- package/dist/plugin-sdk/chutes.js +20 -0
- package/dist/plugin-sdk/cli-backend.js +3 -0
- package/dist/plugin-sdk/cli-runtime.js +6 -0
- package/dist/plugin-sdk/cloudflare-ai-gateway.js +18 -0
- package/dist/plugin-sdk/collection-runtime.js +2 -0
- package/dist/plugin-sdk/command-auth-native.js +6 -0
- package/dist/plugin-sdk/command-auth.js +14 -0
- package/dist/plugin-sdk/compat.js +35 -0
- package/dist/plugin-sdk/config-runtime.js +22 -0
- package/dist/plugin-sdk/conversation-runtime.js +15 -0
- package/dist/plugin-sdk/core.js +22 -0
- package/dist/plugin-sdk/deepseek.js +14 -0
- package/dist/plugin-sdk/device-bootstrap.js +3 -0
- package/dist/plugin-sdk/diagnostic-runtime.js +4 -0
- package/dist/plugin-sdk/diagnostics-otel.js +5 -0
- package/dist/plugin-sdk/diffs.js +3 -0
- package/dist/plugin-sdk/direct-dm.js +2 -0
- package/dist/plugin-sdk/directory-runtime.js +5 -0
- package/dist/plugin-sdk/discord-account.js +2 -0
- package/dist/plugin-sdk/discord-core.js +9 -0
- package/dist/plugin-sdk/discord-runtime-surface.js +2 -0
- package/dist/plugin-sdk/discord-session-key.js +2 -0
- package/dist/plugin-sdk/discord-surface.js +2 -0
- package/dist/plugin-sdk/discord-thread-bindings.js +2 -0
- package/dist/plugin-sdk/discord-timeouts.js +2 -0
- package/dist/plugin-sdk/discord.js +21 -0
- package/dist/plugin-sdk/error-runtime.js +3 -0
- package/dist/plugin-sdk/extension-shared.js +75 -0
- package/dist/plugin-sdk/feishu-conversation.js +2 -0
- package/dist/plugin-sdk/feishu-setup.js +2 -0
- package/dist/plugin-sdk/feishu.js +33 -0
- package/dist/plugin-sdk/fetch-runtime.js +7 -0
- package/dist/plugin-sdk/file-lock.js +2 -0
- package/dist/plugin-sdk/gateway-runtime.js +4 -0
- package/dist/plugin-sdk/github-copilot-login.js +2 -0
- package/dist/plugin-sdk/github-copilot-token.js +2 -0
- package/dist/plugin-sdk/global-singleton.js +4 -0
- package/dist/plugin-sdk/google.js +2 -0
- package/dist/plugin-sdk/googlechat.js +58 -0
- package/dist/plugin-sdk/group-access.js +2 -0
- package/dist/plugin-sdk/hook-runtime.js +4 -0
- package/dist/plugin-sdk/host-runtime.js +3 -0
- package/dist/plugin-sdk/huggingface.js +18 -0
- package/dist/plugin-sdk/image-generation-core.js +63 -0
- package/dist/plugin-sdk/image-generation.js +2 -0
- package/dist/plugin-sdk/index.js +5 -0
- package/dist/plugin-sdk/infra-runtime.js +45 -0
- package/dist/plugin-sdk/interactive-runtime.js +4 -0
- package/dist/plugin-sdk/irc-surface.js +2 -0
- package/dist/plugin-sdk/irc.js +30 -0
- package/dist/plugin-sdk/json-store.js +3 -0
- package/dist/plugin-sdk/keyed-async-queue.js +2 -0
- package/dist/plugin-sdk/kilocode.js +23 -0
- package/dist/plugin-sdk/kimi-coding.js +11 -0
- package/dist/plugin-sdk/lazy-runtime.js +2 -0
- package/dist/plugin-sdk/line-core.js +6 -0
- package/dist/plugin-sdk/line-runtime.js +2 -0
- package/dist/plugin-sdk/line-surface.js +2 -0
- package/dist/plugin-sdk/line.js +9 -0
- package/dist/plugin-sdk/llm-task.js +5 -0
- package/dist/plugin-sdk/logging-core.js +5 -0
- package/dist/plugin-sdk/matrix-helper.js +2 -0
- package/dist/plugin-sdk/matrix-runtime-heavy.js +4 -0
- package/dist/plugin-sdk/matrix-runtime-shared.js +2 -0
- package/dist/plugin-sdk/matrix-runtime-surface.js +2 -0
- package/dist/plugin-sdk/matrix-surface.js +2 -0
- package/dist/plugin-sdk/matrix-thread-bindings.js +2 -0
- package/dist/plugin-sdk/matrix.js +64 -0
- package/dist/plugin-sdk/mattermost-policy.js +11 -0
- package/dist/plugin-sdk/mattermost.js +42 -0
- package/dist/plugin-sdk/media-runtime.js +15 -0
- package/dist/plugin-sdk/media-understanding-runtime.js +2 -0
- package/dist/plugin-sdk/media-understanding.js +3 -0
- package/dist/plugin-sdk/memory-core-engine-runtime.js +2 -0
- package/dist/plugin-sdk/memory-core-host-engine-embeddings.js +6 -0
- package/dist/plugin-sdk/memory-core-host-engine-foundation.js +17 -0
- package/dist/plugin-sdk/memory-core-host-engine-qmd.js +3 -0
- package/dist/plugin-sdk/memory-core-host-engine-storage.js +4 -0
- package/dist/plugin-sdk/memory-core-host-multimodal.js +3 -0
- package/dist/plugin-sdk/memory-core-host-query.js +3 -0
- package/dist/plugin-sdk/memory-core-host-runtime-cli.js +12 -0
- package/dist/plugin-sdk/memory-core-host-runtime-core.js +13 -0
- package/dist/plugin-sdk/memory-core-host-runtime-files.js +4 -0
- package/dist/plugin-sdk/memory-core-host-secret.js +3 -0
- package/dist/plugin-sdk/memory-core-host-status.js +2 -0
- package/dist/plugin-sdk/memory-core.js +28 -0
- package/dist/plugin-sdk/memory-lancedb.js +4 -0
- package/dist/plugin-sdk/minimax.js +24 -0
- package/dist/plugin-sdk/mistral.js +17 -0
- package/dist/plugin-sdk/modelstudio-definitions.js +19 -0
- package/dist/plugin-sdk/modelstudio.js +24 -0
- package/dist/plugin-sdk/moonshot.js +17 -0
- package/dist/plugin-sdk/msteams.js +54 -0
- package/dist/plugin-sdk/nextcloud-talk.js +35 -0
- package/dist/plugin-sdk/nostr.js +24 -0
- package/dist/plugin-sdk/nvidia.js +11 -0
- package/dist/plugin-sdk/ollama-surface.js +2 -0
- package/dist/plugin-sdk/ollama.js +2 -0
- package/dist/plugin-sdk/openai.js +2 -0
- package/dist/plugin-sdk/opencode-go.js +14 -0
- package/dist/plugin-sdk/opencode.js +15 -0
- package/dist/plugin-sdk/outbound-runtime.js +5 -0
- package/dist/plugin-sdk/param-readers.js +2 -0
- package/dist/plugin-sdk/plugin-entry.js +3 -0
- package/dist/plugin-sdk/plugin-runtime.js +8 -0
- package/dist/plugin-sdk/process-runtime.js +2 -0
- package/dist/plugin-sdk/provider-auth-api-key.js +9 -0
- package/dist/plugin-sdk/provider-auth-login.js +2 -0
- package/dist/plugin-sdk/provider-auth-result.js +2 -0
- package/dist/plugin-sdk/provider-auth-runtime.js +5 -0
- package/dist/plugin-sdk/provider-auth.js +17 -0
- package/dist/plugin-sdk/provider-catalog-shared.js +2 -0
- package/dist/plugin-sdk/provider-entry.js +86 -0
- package/dist/plugin-sdk/provider-env-vars.js +2 -0
- package/dist/plugin-sdk/provider-http.js +3 -0
- package/dist/plugin-sdk/provider-model-shared.js +5 -0
- package/dist/plugin-sdk/provider-moonshot.js +3 -0
- package/dist/plugin-sdk/provider-onboard.js +3 -0
- package/dist/plugin-sdk/provider-setup.js +2 -0
- package/dist/plugin-sdk/provider-stream.js +4 -0
- package/dist/plugin-sdk/provider-tools.js +2 -0
- package/dist/plugin-sdk/provider-usage.js +3 -0
- package/dist/plugin-sdk/provider-web-search.js +6 -0
- package/dist/plugin-sdk/provider-zai-endpoint.js +116 -0
- package/dist/plugin-sdk/qianfan.js +13 -0
- package/dist/plugin-sdk/reply-chunking.js +3 -0
- package/dist/plugin-sdk/reply-dispatch-runtime.js +5 -0
- package/dist/plugin-sdk/reply-history.js +3 -0
- package/dist/plugin-sdk/reply-payload.js +2 -0
- package/dist/plugin-sdk/reply-runtime.js +14 -0
- package/dist/plugin-sdk/request-url.js +2 -0
- package/dist/plugin-sdk/retry-runtime.js +4 -0
- package/dist/plugin-sdk/root-alias.cjs +347 -0
- package/dist/plugin-sdk/routing.js +9 -0
- package/dist/plugin-sdk/runtime-env.js +17 -0
- package/dist/plugin-sdk/runtime-store.js +2 -0
- package/dist/plugin-sdk/runtime.js +9 -0
- package/dist/plugin-sdk/sandbox.js +5 -0
- package/dist/plugin-sdk/secret-input.js +4 -0
- package/dist/plugin-sdk/security-runtime.js +5 -0
- package/dist/plugin-sdk/self-hosted-provider-setup.js +2 -0
- package/dist/plugin-sdk/setup-adapter-runtime.js +3 -0
- package/dist/plugin-sdk/setup-runtime.js +6 -0
- package/dist/plugin-sdk/setup-tools.js +6 -0
- package/dist/plugin-sdk/setup.js +13 -0
- package/dist/plugin-sdk/sglang.js +15 -0
- package/dist/plugin-sdk/signal-account.js +2 -0
- package/dist/plugin-sdk/signal-surface.js +2 -0
- package/dist/plugin-sdk/signal.js +24 -0
- package/dist/plugin-sdk/slack-account.js +2 -0
- package/dist/plugin-sdk/slack-core.js +7 -0
- package/dist/plugin-sdk/slack-runtime-surface.js +2 -0
- package/dist/plugin-sdk/slack-surface.js +2 -0
- package/dist/plugin-sdk/slack-target-parser.js +2 -0
- package/dist/plugin-sdk/slack-targets.js +3 -0
- package/dist/plugin-sdk/slack.js +20 -0
- package/dist/plugin-sdk/speech-core.js +4 -0
- package/dist/plugin-sdk/speech-runtime.js +2 -0
- package/dist/plugin-sdk/speech.js +5 -0
- package/dist/plugin-sdk/ssrf-runtime.js +6 -0
- package/dist/plugin-sdk/state-paths.js +3 -0
- package/dist/plugin-sdk/status-helpers.js +4 -0
- package/dist/plugin-sdk/synthetic.js +17 -0
- package/dist/plugin-sdk/telegram-account.js +2 -0
- package/dist/plugin-sdk/telegram-allow-from.js +12 -0
- package/dist/plugin-sdk/telegram-core.js +18 -0
- package/dist/plugin-sdk/telegram-surface.js +42 -0
- package/dist/plugin-sdk/temp-path.js +4 -0
- package/dist/plugin-sdk/testing.js +11 -0
- package/dist/plugin-sdk/text-runtime.js +20 -0
- package/dist/plugin-sdk/thread-bindings-runtime.js +3 -0
- package/dist/plugin-sdk/thread-ownership.js +4 -0
- package/dist/plugin-sdk/tlon.js +23 -0
- package/dist/plugin-sdk/together.js +16 -0
- package/dist/plugin-sdk/tool-send.js +2 -0
- package/dist/plugin-sdk/twitch.js +17 -0
- package/dist/plugin-sdk/venice.js +16 -0
- package/dist/plugin-sdk/vllm.js +15 -0
- package/dist/plugin-sdk/voice-call.js +6 -0
- package/dist/plugin-sdk/volcengine.js +17 -0
- package/dist/plugin-sdk/web-media.js +3 -0
- package/dist/plugin-sdk/webhook-ingress.js +9 -0
- package/dist/plugin-sdk/webhook-path.js +2 -0
- package/dist/plugin-sdk/webhook-request-guards.js +3 -0
- package/dist/plugin-sdk/whatsapp-auth-presence.js +3 -0
- package/dist/plugin-sdk/whatsapp-core.js +11 -0
- package/dist/plugin-sdk/whatsapp-shared.js +3 -0
- package/dist/plugin-sdk/whatsapp-surface.js +2 -0
- package/dist/plugin-sdk/whatsapp-targets.js +2 -0
- package/dist/plugin-sdk/windows-spawn.js +2 -0
- package/dist/plugin-sdk/xai.js +2 -0
- package/dist/plugin-sdk/zalo-setup.js +2 -0
- package/dist/plugin-sdk/zalo.js +37 -0
- package/dist/plugin-sdk/zalouser.js +39 -0
- package/dist/plugin-sdk/zod.js +2 -0
- package/dist/plugins/build-smoke-entry.js +4 -0
- package/dist/plugins/provider-runtime.runtime.js +2 -0
- package/dist/plugins/runtime/index.js +2 -0
- package/dist/plugins/runtime/runtime-line.contract.js +23 -0
- package/dist/plugins-BUhqQahf.js +7 -0
- package/dist/plugins-D3E9gBoB.js +5 -0
- package/dist/plugins-allowlist-BsE4VUd6.js +14 -0
- package/dist/plugins-cli-DNIRlpEw.js +551 -0
- package/dist/plugins-command-helpers-D0cHWZ8k.js +116 -0
- package/dist/plugins-install-persist-B4VRDkMW.js +121 -0
- package/dist/plugins-update-command-CVpqSCHk.js +974 -0
- package/dist/pluralkit-BLAFsOsu.js +21 -0
- package/dist/poll-params-BRovIMUP.js +52 -0
- package/dist/polls-BJAJSaiP.js +35 -0
- package/dist/port-defaults-BSVMFkjY.js +30 -0
- package/dist/ports-Bc5Ccog1.js +262 -0
- package/dist/ports-C4UXOMrf.js +432 -0
- package/dist/ports-lsof-BGtOoYbU.js +25 -0
- package/dist/ports-probe-BsWR8TFT.js +14 -0
- package/dist/preflight-audio.runtime-C9Vy2rmC.js +7 -0
- package/dist/probe-BQag0DWb.js +178 -0
- package/dist/probe-Ba_tzX9A.js +383 -0
- package/dist/probe-CU89zpYY.js +2 -0
- package/dist/probe-DqrD8L5s.js +137 -0
- package/dist/probe-auth-B_8xyHva.js +63 -0
- package/dist/probe-auth-ynM8e9Ac.js +2 -0
- package/dist/probe.runtime-CJ9xp7YD.js +2 -0
- package/dist/process-scoped-map-DSo5-USL.js +61 -0
- package/dist/profile-utils-C7uzTwgJ.js +15 -0
- package/dist/profiles-bHSSYfJl.js +79 -0
- package/dist/program-context-87EEruZh.js +10 -0
- package/dist/program-context-D14SwQxo.js +2 -0
- package/dist/program-wvgzSxLY.js +158 -0
- package/dist/progress-BvK_oMpz.js +132 -0
- package/dist/prompt-CtkpPKiX.js +2 -0
- package/dist/prompt-DOBS3BID.js +20 -0
- package/dist/prompt-select-styled-c91_PlKW.js +5468 -0
- package/dist/prompt-style-DRmsfagi.js +7 -0
- package/dist/prompts-DAJPf5yB.js +9 -0
- package/dist/prototype-keys-BWjW0VW8.js +11 -0
- package/dist/provider-C6dmSPJE.js +7237 -0
- package/dist/provider-api-key-auth-BBRnMefH.js +109 -0
- package/dist/provider-api-key-auth.runtime-obo7wOYn.js +14 -0
- package/dist/provider-auth-BTrDFsFt.js +43 -0
- package/dist/provider-auth-api-key-BhD_cXM7.js +5 -0
- package/dist/provider-auth-choice-2fsBmYtb.js +134 -0
- package/dist/provider-auth-choice-helpers-DLlNwVwg.js +58 -0
- package/dist/provider-auth-choice-preference-BkZTzT1J.js +44 -0
- package/dist/provider-auth-choice.runtime-BHkXn7WH.js +14 -0
- package/dist/provider-auth-choice.runtime-r6ydqD_o.js +2 -0
- package/dist/provider-auth-choices-AHFkSF9C.js +65 -0
- package/dist/provider-auth-guidance-Bo67Hboq.js +35 -0
- package/dist/provider-auth-helpers-Bk-AB5Wp.js +92 -0
- package/dist/provider-auth-input-kKdGWlxc.js +116 -0
- package/dist/provider-auth-login-dOLrU5NV.js +8 -0
- package/dist/provider-auth-login.runtime-C_GzFGmF.js +196 -0
- package/dist/provider-auth-mode-B8uz1z07.js +20 -0
- package/dist/provider-auth-ref-Bq-MejeL.js +2 -0
- package/dist/provider-auth-ref-DRl66ULG.js +171 -0
- package/dist/provider-auth-result-CkUVvE5c.js +31 -0
- package/dist/provider-auth-runtime-BRAnqbBW.js +32 -0
- package/dist/provider-catalog-shared-BdXDqt2_.js +28 -0
- package/dist/provider-discovery.runtime-BKQXZvW1.js +10 -0
- package/dist/provider-dispatcher-Cic3Zvgm.js +22 -0
- package/dist/provider-env-vars-X-m-m1cR.js +119 -0
- package/dist/provider-flow-rMDy096Q.js +93 -0
- package/dist/provider-id-CTiEzT1T.js +30 -0
- package/dist/provider-model-primary-QC1J1e8s.js +26 -0
- package/dist/provider-model-shared-YwZtB78q.js +104 -0
- package/dist/provider-oauth-flow-DGhuMjqj.js +33 -0
- package/dist/provider-onboard-Dhee14q4.js +264 -0
- package/dist/provider-openai-codex-oauth-tls-CExxHKyb.js +101 -0
- package/dist/provider-registry-7IbNpklR.js +49 -0
- package/dist/provider-runtime-C3NxbOtm.js +2 -0
- package/dist/provider-runtime-DWDjorB4.js +275 -0
- package/dist/provider-runtime.runtime-BYVCPiGA.js +26 -0
- package/dist/provider-self-hosted-setup-Cr4L3fdW.js +272 -0
- package/dist/provider-session.runtime-BHtGAIna.js +8 -0
- package/dist/provider-stream-DpUrpHvN.js +266 -0
- package/dist/provider-tools-L23YSx8p.js +37 -0
- package/dist/provider-usage-BWLu6XJt.js +375 -0
- package/dist/provider-usage-BwHu9Ee_.js +3 -0
- package/dist/provider-usage-CfYpxnUD.js +2 -0
- package/dist/provider-usage.fetch-BCNscJcf.js +633 -0
- package/dist/provider-web-search-CJBYgiMq.js +717 -0
- package/dist/provider-wizard-BGXsleZZ.js +209 -0
- package/dist/provider.runtime-BS0qB3qa.js +2 -0
- package/dist/providers-DTi5kDSF.js +59 -0
- package/dist/providers.runtime-7kqrRLzO.js +55 -0
- package/dist/proxy-env-CEq84zdW.js +40 -0
- package/dist/proxy-fetch-BI4S6OOr.js +55 -0
- package/dist/push-apns-btlZ1qmo.js +921 -0
- package/dist/pw-ai-Crk1oU2c.js +1827 -0
- package/dist/qr-cli-CBrnKR40.js +368 -0
- package/dist/qr-cli-D35IbCMe.js +2 -0
- package/dist/query-expansion-CTVRVJBc.js +633 -0
- package/dist/read-only-account-inspect-CtMAYZjJ.js +9 -0
- package/dist/read-only-account-inspect.telegram-DsWhEWsi.js +202 -0
- package/dist/reasoning-tags-C0A8lJGB.js +77 -0
- package/dist/redact-BDinS1q9.js +102 -0
- package/dist/redact-identifier-CIxwZTyq.js +13 -0
- package/dist/redact-sensitive-url-BYqi2BEL.js +50 -0
- package/dist/redirect-headers-BX_akPpf.js +25 -0
- package/dist/ref-contract-D5ynmOGd.js +53 -0
- package/dist/register-lazy-command-C1up25zY.js +43 -0
- package/dist/register.agent-BoS4J17I.js +239 -0
- package/dist/register.backup-CJxtB0Qd.js +236 -0
- package/dist/register.configure-a7pFaHfe.js +15 -0
- package/dist/register.maintenance-BtI8X-uf.js +450 -0
- package/dist/register.message-BQRkPLq3.js +643 -0
- package/dist/register.onboard-CthiWQxu.js +79 -0
- package/dist/register.setup-BnxRKFDi.js +104 -0
- package/dist/register.status-health-sessions-CHaa5NX0.js +705 -0
- package/dist/register.subclis-DKmBSSCn.js +3 -0
- package/dist/register.subclis-TJY--uPt.js +287 -0
- package/dist/registry-8eF_COje.js +667 -0
- package/dist/registry-B84vjqPA.js +11 -0
- package/dist/registry-CJH_346k.js +60 -0
- package/dist/registry-CiuAeUhZ.js +50 -0
- package/dist/registry-DrnXCaTU.js +219 -0
- package/dist/repair-bIiF2iJn.js +112 -0
- package/dist/reply-B1wBiwTS.js +3134 -0
- package/dist/reply-dispatch-runtime-nSg-l3YV.js +3 -0
- package/dist/reply-history-DiOD0MK2.js +2 -0
- package/dist/reply-payload-D0XXyIHC.js +232 -0
- package/dist/reply-payloads-DW1w7Ckr.js +116 -0
- package/dist/reply-payloads-dedupe-BEPyuQQJ.js +135 -0
- package/dist/reply-payloads-dedupe.runtime-ClraIPuB.js +2 -0
- package/dist/reply-prefix-Bmqt3err.js +39 -0
- package/dist/reply-runtime-bbaSgEmi.js +123 -0
- package/dist/reply.runtime-leqfq1BG.js +2 -0
- package/dist/request-url-B5e58odi.js +10 -0
- package/dist/resolve-B-OthG4M.js +2 -0
- package/dist/resolve-BjvAwAfZ.js +619 -0
- package/dist/resolve-bBpW2W5z.js +174 -0
- package/dist/resolve-channels-543uTQ-Q.js +263 -0
- package/dist/resolve-configured-secret-input-string-CcNZQ54A.js +112 -0
- package/dist/resolve-route-CCHWflcJ.js +486 -0
- package/dist/resolve-system-bin-M8rzqZWg.js +120 -0
- package/dist/resolve-users-B2hIFlh6.js +145 -0
- package/dist/resolve-utils-B34dER9i.js +102 -0
- package/dist/response-prefix-template-CmRtMrPn.js +50 -0
- package/dist/restart-sentinel-BEGeUiKE.js +70 -0
- package/dist/restart-stale-pids-Co_AHlf1.js +187 -0
- package/dist/retry-DB6rKQUK.js +76 -0
- package/dist/retry-policy-vpZZs4Ql.js +58 -0
- package/dist/retry-runtime-BwFtUlOC.js +3 -0
- package/dist/root-help-BKc92COf.js +53 -0
- package/dist/route-reply-BhwCACur.js +133 -0
- package/dist/route-reply.runtime-CR3o0GzY.js +2 -0
- package/dist/route-resolution-C30ccEVA.js +1222 -0
- package/dist/routes-BkjFgytb.js +6880 -0
- package/dist/routing-B6ZVsl1G.js +16 -0
- package/dist/rpc-Ceg29ThW.js +67 -0
- package/dist/run-command-Bec0f6Qx.js +32 -0
- package/dist/run-main-B5ZRlNEV.js +425 -0
- package/dist/run-with-concurrency-oNPuq9N9.js +41 -0
- package/dist/runner-BEbGymO4.js +1478 -0
- package/dist/runtime-B3T4VytJ.js +1627 -0
- package/dist/runtime-CiU2aDgB.js +42 -0
- package/dist/runtime-D0VpiCHi.js +125 -0
- package/dist/runtime-Dtd5v6Gj.js +153 -0
- package/dist/runtime-Fhelf5Qd.js +126 -0
- package/dist/runtime-api-B0fBYyFa.js +241 -0
- package/dist/runtime-api-JdnJolgR.js +2484 -0
- package/dist/runtime-discord-ops.runtime-Cc-Clbrs.js +26 -0
- package/dist/runtime-embedded-pi.runtime-CAq8BTmS.js +2 -0
- package/dist/runtime-env-CkoJ2p8u.js +9 -0
- package/dist/runtime-forwarders-BwQHD11s.js +44 -0
- package/dist/runtime-gaN3vB28.js +284 -0
- package/dist/runtime-group-policy-BPxHuPda.js +59 -0
- package/dist/runtime-guard-VWNtYR4l.js +70 -0
- package/dist/runtime-media-understanding.runtime-BnfH3VZb.js +2 -0
- package/dist/runtime-model-auth.runtime-Bd2GMW6W.js +2 -0
- package/dist/runtime-parse-DFyJekfB.js +83 -0
- package/dist/runtime-paths-C22j-CNR.js +333 -0
- package/dist/runtime-schema-Bft9ccja.js +14524 -0
- package/dist/runtime-slack-ops.runtime-qCe8vp_N.js +15 -0
- package/dist/runtime-status-C7QK-Xow.js +109 -0
- package/dist/runtime-status-SEjcftwu.js +15 -0
- package/dist/runtime-store-j5RNDQBQ.js +22 -0
- package/dist/runtime-tts.runtime-IxRggKLH.js +2 -0
- package/dist/runtime-web-tools-Lf22Il6X.js +1891 -0
- package/dist/runtime-whatsapp-boundary-BQeud5Kv.js +6 -0
- package/dist/runtime-whatsapp-boundary-DbAJ9jGX.js +2 -0
- package/dist/safe-regex-tLlDZYfM.js +244 -0
- package/dist/safe-text-CRAu9RDR.js +16 -0
- package/dist/sandbox-DxQGIkI1.js +2698 -0
- package/dist/sandbox-cli-Bd8ECmMx.js +443 -0
- package/dist/sandbox-paths-ui_vqw2W.js +146 -0
- package/dist/sanitize-env-vars-DpPdECQ9.js +82 -0
- package/dist/scan-paths-VhLKL5WT.js +28 -0
- package/dist/scoped-expiring-id-cache-BmlyFPPR.js +35 -0
- package/dist/scp-host-C5NgDe_6.js +62 -0
- package/dist/secret-equal-fMR1DjSl.js +9 -0
- package/dist/secret-file-COQ7QNO9.js +4 -0
- package/dist/secret-file-Dv42g1FG.js +92 -0
- package/dist/secret-input-CzbdxXxu.js +13 -0
- package/dist/secret-input-DJ-sTcOE.js +38 -0
- package/dist/secrets-cli-OoRkxItP.js +2112 -0
- package/dist/secure-random-DJ9MB_Og.js +20 -0
- package/dist/security-cli-CQ4HiQLb.js +477 -0
- package/dist/security-runtime-CU_gbsBJ.js +51 -0
- package/dist/semver-compare-aGN2MIqz.js +53 -0
- package/dist/send-COItao1A.js +2473 -0
- package/dist/send-deps-K4k6Myst.js +19 -0
- package/dist/send-policy-B1t4c2Ab.js +60 -0
- package/dist/server-BPOSwT-c.js +67 -0
- package/dist/server-middleware-QGnAuw-H.js +108 -0
- package/dist/server-node-events-CoM4XGHV.js +454 -0
- package/dist/server-startup-matrix-migration-CMLAopuE.js +1255 -0
- package/dist/service-8Ef_HfQd.js +2 -0
- package/dist/service-DzXqyjgG.js +849 -0
- package/dist/session-DNTpr0A7.js +50 -0
- package/dist/session-archive.runtime-Bz20yPKg.js +2 -0
- package/dist/session-binding-service-BqY1J7gs.js +421 -0
- package/dist/session-context-D4ioj_ZC.js +23 -0
- package/dist/session-conversation-D3BLZCjg.js +15 -0
- package/dist/session-conversation-SDN1QbLK.js +135 -0
- package/dist/session-cost-usage-5D6Kkthv.js +650 -0
- package/dist/session-cost-usage-CqniZ9Q3.js +2 -0
- package/dist/session-envelope-DdZaP6iS.js +18 -0
- package/dist/session-file-SVifvwcV.js +120 -0
- package/dist/session-fork.runtime-Bhgl-_lq.js +50 -0
- package/dist/session-key-BIrdMs11.js +279 -0
- package/dist/session-key-CCQ4ZS9B.js +53 -0
- package/dist/session-key-normalization-DGxkxG3U.js +22 -0
- package/dist/session-meta-5PkRqQxG.js +9 -0
- package/dist/session-override-CqiOQ4Om.js +100 -0
- package/dist/session-reset-model.runtime-DFL5rk1J.js +119 -0
- package/dist/session-subagent-reactivation.runtime-DIIFdc6I.js +2 -0
- package/dist/session-system-events-BrXQQl_c.js +62 -0
- package/dist/session-transcript-files.fs-BltD5xvW.js +124 -0
- package/dist/session-updates-Dd6r5vhZ.js +177 -0
- package/dist/session-updates.runtime-CTmXpESa.js +2 -0
- package/dist/session-utils-CYh1zGmy.js +1735 -0
- package/dist/session-write-lock-D_1twm3Q.js +343 -0
- package/dist/sessions-BBObTITM.js +2 -0
- package/dist/sessions-BLL-TKEv.js +224 -0
- package/dist/sessions-zgiFsm1E.js +381 -0
- package/dist/setup-BnAbcoEP.js +15 -0
- package/dist/setup-CDUb3AWu.js +427 -0
- package/dist/setup-adapter-runtime-kV6aLMzB.js +2 -0
- package/dist/setup-binary-C35NJX1i.js +2 -0
- package/dist/setup-core-C-0ynF1r.js +256 -0
- package/dist/setup-group-access-BrKTGyeK.js +70 -0
- package/dist/setup-helpers-CNcOI9ct.js +390 -0
- package/dist/setup-runtime-CZF60tJ1.js +4 -0
- package/dist/setup-surface-BcZenSzA.js +237 -0
- package/dist/setup-surface-BwZZukYI.js +97 -0
- package/dist/setup-tools-DB-J75x8.js +4 -0
- package/dist/setup-wizard-helpers-u8iQ-OcY.js +841 -0
- package/dist/setup-wizard-proxy-DiI-Brmi.js +127 -0
- package/dist/setup.finalize-L3P2sSFi.js +443 -0
- package/dist/setup.gateway-config-ISaEE7wH.js +246 -0
- package/dist/setup.secret-input-DCxgkYJ3.js +25 -0
- package/dist/shared-B0P4kmoP.js +50 -0
- package/dist/shared-BOaKRLRY.js +64 -0
- package/dist/shared-BXUt8yQc.js +160 -0
- package/dist/shared-BZ338OsD.js +64 -0
- package/dist/shared-BjU08Pt_.js +54 -0
- package/dist/shared-BsFd7tT-.js +136 -0
- package/dist/shared-CvC-RYap.js +37 -0
- package/dist/shared-dXZZGNhj.js +10 -0
- package/dist/shared-rGax8vC3.js +221 -0
- package/dist/shell-argv-Z5ptFecq.js +72 -0
- package/dist/shell-env-BSJycHpS.js +181 -0
- package/dist/signal-BSV2xBJt.js +46 -0
- package/dist/signal-BZDASWHO.js +13 -0
- package/dist/signal-CId8sMA8.js +6 -0
- package/dist/signal-account-DcEiRyli.js +11 -0
- package/dist/signal-cli-install-CzSdr2VM.js +188 -0
- package/dist/signal-surface-DrUgouip.js +21 -0
- package/dist/simple-completion-transport-BNMmn163.js +24 -0
- package/dist/skill-commands-CZ_x2Cqy.js +77 -0
- package/dist/skill-commands-base-wY_Bsohb.js +60 -0
- package/dist/skill-commands.runtime-BV7uDCJx.js +2 -0
- package/dist/skill-scanner-B27VLIIq.js +354 -0
- package/dist/skills-BTiQjfVL.js +1310 -0
- package/dist/skills-CIF8vVlP.js +3 -0
- package/dist/skills-clawhub-BDym_41x.js +274 -0
- package/dist/skills-cli-C8m1I_bL.js +369 -0
- package/dist/skills-install-B_gFFO8I.js +818 -0
- package/dist/skills-remote-QuF4recE.js +550 -0
- package/dist/skills-status-BEZWIOBR.js +2 -0
- package/dist/skills-status-Dm_Jhtes.js +169 -0
- package/dist/slack-Cs63YrE6.js +6 -0
- package/dist/slack-account-5pXdcCaK.js +11 -0
- package/dist/slack-liv3adei.js +9 -0
- package/dist/slack-runtime-surface-B5JYrWWf.js +18 -0
- package/dist/slack-surface-DpNHDOit.js +44 -0
- package/dist/slack-target-parser-CErq1YCw.js +12 -0
- package/dist/slack-targets-xF6pth_v.js +45 -0
- package/dist/slots-PFLvT1Kq.js +93 -0
- package/dist/speech-BY_tUO7g.js +46 -0
- package/dist/speech-provider-S9O0XAp5.js +154 -0
- package/dist/speech-runtime-oxmNRw3Z.js +34 -0
- package/dist/ssh-config-BDfMcgtS.js +77 -0
- package/dist/ssh-tunnel-DG9ZYGsa.js +159 -0
- package/dist/ssh-tunnel-D_XZfkBV.js +2 -0
- package/dist/ssrf-BRA26Q75.js +246 -0
- package/dist/ssrf-policy-BIG3iChD.js +69 -0
- package/dist/ssrf-runtime-BPxpSyiW.js +5 -0
- package/dist/stage-sandbox-media.runtime-DOOiTZkt.js +229 -0
- package/dist/state-migrations-cqOvSXP-.js +845 -0
- package/dist/state-paths-CudqznX-.js +2 -0
- package/dist/status-B5sZUURG.js +3 -0
- package/dist/status-BXjWA90V.js +608 -0
- package/dist/status-Biw1EIdt.js +2 -0
- package/dist/status-CgHjqeMn.js +650 -0
- package/dist/status-DQZ0kLxk.js +44 -0
- package/dist/status-VHq1HAMM.js +240 -0
- package/dist/status-all-DhEDLGP9.js +798 -0
- package/dist/status-helpers-B7-UgIy8.js +170 -0
- package/dist/status-issues-BFrNHsVn.js +335 -0
- package/dist/status-issues-BUaLeYpi.js +187 -0
- package/dist/status-json-DOnh1xDZ.js +86 -0
- package/dist/status.agent-local-CaYKjhhX.js +59 -0
- package/dist/status.command.text-runtime-DsOhXWI5.js +18 -0
- package/dist/status.daemon-CriBgB61.js +25 -0
- package/dist/status.format-c9WFxqY6.js +44 -0
- package/dist/status.gateway-probe-FD9wNXhY.js +15 -0
- package/dist/status.link-channel-DYBN8KV3.js +35 -0
- package/dist/status.node-mode-FwHcEfkE.js +2 -0
- package/dist/status.node-mode-dPc3mfqx.js +32 -0
- package/dist/status.scan-DTGuZcAs.js +264 -0
- package/dist/status.scan.deps.runtime-BlestHMC.js +18 -0
- package/dist/status.scan.fast-json-Co7nNA_T.js +97 -0
- package/dist/status.scan.fast-json-DRsEwD_h.js +2 -0
- package/dist/status.scan.json-core-DaBuCMzr.js +254 -0
- package/dist/status.scan.runtime-Dp_UkjfG.js +9 -0
- package/dist/status.service-summary-BmHN_sIt.js +32 -0
- package/dist/status.summary-C0Jn9d8y.js +2 -0
- package/dist/status.summary-C3KHSLR1.js +210 -0
- package/dist/status.update-DiRYpvwE.js +2 -0
- package/dist/status.update-DjXE_PsH.js +79 -0
- package/dist/sticker-cache-kEcJqycr.js +1516 -0
- package/dist/sticker-vision.runtime-DdnhPS7k.js +16 -0
- package/dist/store-DKzOIKqx.js +1342 -0
- package/dist/store-DwAEHdgR.js +749 -0
- package/dist/store-HBHyNMRe.js +10 -0
- package/dist/store-NoUggnB3.js +365 -0
- package/dist/store-read-BHYG1WxT.js +16 -0
- package/dist/store.runtime-jT-JoPV1.js +2 -0
- package/dist/string-normalization-k4ilMPRu.js +19 -0
- package/dist/string-sample-BIWt11jp.js +11 -0
- package/dist/strip-inbound-meta-DuOzaKMB.js +665 -0
- package/dist/subagent-orphan-recovery-BaGPnDpY.js +206 -0
- package/dist/subagent-registry-runtime-C0hklxy4.js +2 -0
- package/dist/subcli-descriptors-Ccul9RKX.js +151 -0
- package/dist/subsystem-CpBs2R1c.js +582 -0
- package/dist/supervisor-log.runtime-BbxSpWqa.js +8 -0
- package/dist/system-cli-rGgbAbhD.js +58 -0
- package/dist/system-events-CkTr2pVV.js +93 -0
- package/dist/system-message-BwHVKRn-.js +16 -0
- package/dist/system-run-command-CeFzgmkE.js +295 -0
- package/dist/systemd-aS57J-tg.js +588 -0
- package/dist/systemd-hints-DexZGkZU.js +325 -0
- package/dist/systemd-linger-Dum_Ly5E.js +68 -0
- package/dist/systemd-linger-a109c27V.js +2 -0
- package/dist/table-BNAxmbtm.js +305 -0
- package/dist/tables-AGjErT3Z.js +832 -0
- package/dist/tailnet-CtCjQNPK.js +76 -0
- package/dist/tailscale-IqBQ_JBD.js +232 -0
- package/dist/tailscale-status-SUYxe8DO.js +71 -0
- package/dist/target-errors-Dd5ygAn4.js +26 -0
- package/dist/target-parsing-DsTnx9-F.js +14 -0
- package/dist/target-registry-Je8d-VjB.js +1280 -0
- package/dist/targets-B5CwzJUC.js +748 -0
- package/dist/targets-CsuOrZri.js +269 -0
- package/dist/targets-CwnVSfRA.js +70 -0
- package/dist/targets-DuUFEzKS.js +78 -0
- package/dist/task-registry-delivery-runtime-DqP8eooO.js +2 -0
- package/dist/task-registry.audit.shared-C4RGABy7.js +18 -0
- package/dist/task-registry.maintenance-Bu37anXR.js +281 -0
- package/dist/task-registry.maintenance-DOsnDSZk.js +2 -0
- package/dist/task-registry.summary-DxVk_l3y.js +44 -0
- package/dist/tavily-search-provider-CJqkM2Pl.js +226 -0
- package/dist/telegram/audit.js +2 -0
- package/dist/telegram/token.js +2 -0
- package/dist/telegram-DYAW3Sfk.js +23 -0
- package/dist/telegram-account-BJWXAeS3.js +11 -0
- package/dist/telegram-core-BB-oqWi1.js +6 -0
- package/dist/temp-download-vS-txIoM.js +62 -0
- package/dist/temp-path-DfCfU6WG.js +2 -0
- package/dist/templating-NXIs4v5N.js +24 -0
- package/dist/terminal-link-TU0E45HO.js +10 -0
- package/dist/testing-BnS6kfoS.js +575 -0
- package/dist/text-chunking-90VX7tgk.js +12 -0
- package/dist/text-chunking-BVps1926.js +20 -0
- package/dist/text-format-B1S_nIVb.js +8 -0
- package/dist/text-runtime-vMYWZmQD.js +398 -0
- package/dist/theme-BJIQPogA.js +34 -0
- package/dist/theme-SO8WovMK.js +2 -0
- package/dist/thinking-uI0siSaD.js +68 -0
- package/dist/thinking.shared-C4SN38qn.js +243 -0
- package/dist/thread-bindings-policy-BcpXmcKL.js +172 -0
- package/dist/thread-bindings-u1VyUaZn.js +778 -0
- package/dist/thread-bindings.discord-api-Cq6oEKwK.js +486 -0
- package/dist/threading-helpers-PW95yLIC.js +14 -0
- package/dist/timeouts-CTDvzc8O.js +72 -0
- package/dist/tmp-vora-dir-D2qk7W45.js +102 -0
- package/dist/token-CHFyaNO5.js +45 -0
- package/dist/token-D6h_ZVJn.js +82 -0
- package/dist/tokens-shGOmvyA.js +66 -0
- package/dist/tool-display-DqKeDkdg.js +1607 -0
- package/dist/tool-images-Dk60Ug5h.js +270 -0
- package/dist/tool-policy-CQHL2-I3.js +515 -0
- package/dist/tool-policy-match-DL8JY2vg.js +48 -0
- package/dist/tool-send-hJCuDJfS.js +16 -0
- package/dist/tools-effective-inventory-CWzIubjU.js +148 -0
- package/dist/tools-pE9BlK9y.js +119 -0
- package/dist/transcript-events-DRsDmwmp.js +29 -0
- package/dist/transport-ready-f6mdQOwn.js +36 -0
- package/dist/tts-B1m3C2Az.js +102 -0
- package/dist/tts-DUrUS0mZ.js +85 -0
- package/dist/tts-auto-mode-C8_kw3FV.js +14 -0
- package/dist/tts.runtime-BoqipRLV.js +2 -0
- package/dist/tui-CQLplrBK.js +3898 -0
- package/dist/tui-cli-DT0FyMjs.js +31 -0
- package/dist/typebox-DR5b98DT.js +22 -0
- package/dist/types-CGCTcpfm.js +465 -0
- package/dist/types-DDSZHm1L.js +12 -0
- package/dist/types-KyI2zD1Y.js +83 -0
- package/dist/types.secrets-CxoujPzV.js +80 -0
- package/dist/types.tools-DbA37tJ5.js +22 -0
- package/dist/typing-Dz7FaNst.js +68 -0
- package/dist/typing-mode-D3dtTRFq.js +75 -0
- package/dist/typing-policy-DNdXa4aP.js +11 -0
- package/dist/typing-start-guard-Bd69zP69.js +73 -0
- package/dist/ui-DBzDVf5Z.js +182 -0
- package/dist/undici-global-dispatcher-jevw8Gzz.js +99 -0
- package/dist/unhandled-rejections-D0HD8aaS.js +2 -0
- package/dist/unhandled-rejections-yZafPL2A.js +241 -0
- package/dist/update-Bof-SJAQ.js +1253 -0
- package/dist/update-channels-d8te77R1.js +78 -0
- package/dist/update-check-DK2tfDQH.js +354 -0
- package/dist/update-cli-Ck2vsRAq.js +1446 -0
- package/dist/update-offset-store-DzcRNELt.js +75 -0
- package/dist/utils-BiWzD1kh.js +230 -0
- package/dist/utils-QayXenI0.js +3 -0
- package/dist/version-B8PcQo5n.js +79 -0
- package/dist/version-DBzWIScg.js +2 -0
- package/dist/vora-embedded-block-chunker-3yyZObTq.js +258 -0
- package/dist/vora-embedded-helpers-CcpQ4UhE.js +1451 -0
- package/dist/vora-embedded-runner-CtRc9sK4.js +35200 -0
- package/dist/vora-embedded.runtime-DnQSqL4C.js +3 -0
- package/dist/vora-exec-env-D4Xwhvu2.js +14 -0
- package/dist/vora-root-LrpnxvkN.js +88 -0
- package/dist/vora-tools.before-tool-call.runtime-DMDQZj3b.js +354 -0
- package/dist/vora-tools.runtime-CRE3qINm.js +2 -0
- package/dist/wait-DINWFDZY.js +7 -0
- package/dist/warning-filter-SAevhKdH.js +57 -0
- package/dist/web-media-xqpNAEze.js +630 -0
- package/dist/web-search-providers-Dzq6HxbB.js +21 -0
- package/dist/web-search-providers.runtime-CtA0c8j7.js +110 -0
- package/dist/web-search-providers.shared-BDbtn1DP.js +404 -0
- package/dist/webhook-ingress-VjrwfCEq.js +164 -0
- package/dist/webhook-memory-guards-B-_GNMqp.js +129 -0
- package/dist/webhook-path-KmDDjLxH.js +22 -0
- package/dist/webhook-request-guards-RvZR0xOr.js +178 -0
- package/dist/webhooks-cli-DW2licxV.js +325 -0
- package/dist/whatsapp-BdBhDmjG.js +4 -0
- package/dist/whatsapp-DrWLgII5.js +33 -0
- package/dist/whatsapp-heartbeat-B9ic2dUo.js +114 -0
- package/dist/whatsapp-shared-CCB6ISPU.js +56 -0
- package/dist/whatsapp-surface-Dj75n55B.js +26 -0
- package/dist/whatsapp-targets-DC3kH_Ao.js +13 -0
- package/dist/widearea-dns-CQmUW5IF.js +125 -0
- package/dist/windows-argv-Dp3PZAV0.js +345 -0
- package/dist/windows-install-roots-XI3CvO9O.js +149 -0
- package/dist/windows-spawn-Bo5J7nQU.js +154 -0
- package/dist/with-timeout-82_4MKPJ.js +13 -0
- package/dist/with-timeout-C9cQCRMB.js +215 -0
- package/dist/workspace-Byy6tyA9.js +479 -0
- package/dist/workspace-dirs-DD2rvoad.js +13 -0
- package/dist/workspace-rZgvKsfA.js +306 -0
- package/dist/ws-H_UxQmDV.js +11 -0
- package/dist/ws-log-Colefm0_.js +289 -0
- package/dist/wsl-Cja5t6Cg.js +57 -0
- package/dist/xai-G_qBZ2Uy.js +27 -0
- package/dist/zalo-setup-DhLwoxOU.js +14 -0
- package/dist/zod-parse-CoS4Cf-k.js +14 -0
- package/dist/zod-schema.agent-runtime-DvpP4fxf.js +602 -0
- package/dist/zod-schema.channels-BAf89d5l.js +10 -0
- package/dist/zod-schema.core-BTG8QVOn.js +514 -0
- package/dist/zod-schema.providers-core-CBsF2dSN.js +1569 -0
- package/dist/zod-schema.providers-whatsapp-BORKPdar.js +125 -0
- package/dist/zod-schema.sensitive-bgI4eB_k.js +5 -0
- package/docs/.i18n/README.md +31 -0
- package/docs/.i18n/glossary.ja-JP.json +14 -0
- package/docs/.i18n/glossary.zh-CN.json +306 -0
- package/docs/.i18n/ja-JP.tm.jsonl +0 -0
- package/docs/assets/install-script.svg +1 -0
- package/docs/assets/macos-onboarding/01-macos-warning.jpeg +0 -0
- package/docs/assets/macos-onboarding/02-local-networks.jpeg +0 -0
- package/docs/assets/macos-onboarding/03-security-notice.png +0 -0
- package/docs/assets/macos-onboarding/04-choose-gateway.png +0 -0
- package/docs/assets/macos-onboarding/05-permissions.png +0 -0
- package/docs/assets/pixel-lobster.svg +60 -0
- package/docs/assets/showcase/agents-ui.jpg +0 -0
- package/docs/assets/showcase/bambu-cli.png +0 -0
- package/docs/assets/showcase/codexmonitor.png +0 -0
- package/docs/assets/showcase/gohome-grafana.png +0 -0
- package/docs/assets/showcase/ios-testflight.jpg +0 -0
- package/docs/assets/showcase/oura-health.png +0 -0
- package/docs/assets/showcase/padel-cli.svg +11 -0
- package/docs/assets/showcase/padel-screenshot.jpg +0 -0
- package/docs/assets/showcase/papla-tts.jpg +0 -0
- package/docs/assets/showcase/pr-review-telegram.jpg +0 -0
- package/docs/assets/showcase/roborock-screenshot.jpg +0 -0
- package/docs/assets/showcase/roborock-status.svg +13 -0
- package/docs/assets/showcase/roof-camera-sky.jpg +0 -0
- package/docs/assets/showcase/snag.png +0 -0
- package/docs/assets/showcase/tesco-shop.jpg +0 -0
- package/docs/assets/showcase/wienerlinien.png +0 -0
- package/docs/assets/showcase/wine-cellar-skill.jpg +0 -0
- package/docs/assets/showcase/winix-air-purifier.jpg +0 -0
- package/docs/assets/showcase/xuezh-pronunciation.jpeg +0 -0
- package/docs/assets/sponsors/blacksmith-light.svg +14 -0
- package/docs/assets/sponsors/blacksmith.svg +14 -0
- package/docs/assets/sponsors/convex-light.svg +16 -0
- package/docs/assets/sponsors/convex.svg +16 -0
- package/docs/assets/sponsors/nvidia-dark.svg +9 -0
- package/docs/assets/sponsors/nvidia.svg +9 -0
- package/docs/assets/sponsors/openai-light.svg +3 -0
- package/docs/assets/sponsors/openai.svg +3 -0
- package/docs/assets/sponsors/vercel-light.svg +5 -0
- package/docs/assets/sponsors/vercel.svg +5 -0
- package/docs/assets/vora-logo-text-dark.png +0 -0
- package/docs/assets/vora-logo-text-dark.svg +418 -0
- package/docs/assets/vora-logo-text.png +0 -0
- package/docs/assets/vora-logo-text.svg +418 -0
- package/docs/auth-credential-semantics.md +60 -0
- package/docs/automation/auth-monitoring.md +44 -0
- package/docs/automation/clawflow.md +109 -0
- package/docs/automation/cron-jobs.md +744 -0
- package/docs/automation/cron-vs-heartbeat.md +299 -0
- package/docs/automation/gmail-pubsub.md +256 -0
- package/docs/automation/hooks.md +1375 -0
- package/docs/automation/index.md +69 -0
- package/docs/automation/poll.md +86 -0
- package/docs/automation/standing-orders.md +254 -0
- package/docs/automation/tasks.md +247 -0
- package/docs/automation/troubleshooting.md +122 -0
- package/docs/automation/webhook.md +217 -0
- package/docs/brave-search.md +93 -0
- package/docs/channels/bluebubbles.md +430 -0
- package/docs/channels/broadcast-groups.md +442 -0
- package/docs/channels/channel-routing.md +139 -0
- package/docs/channels/discord.md +1240 -0
- package/docs/channels/feishu.md +760 -0
- package/docs/channels/googlechat.md +270 -0
- package/docs/channels/group-messages.md +84 -0
- package/docs/channels/groups.md +385 -0
- package/docs/channels/imessage.md +427 -0
- package/docs/channels/index.md +50 -0
- package/docs/channels/irc.md +250 -0
- package/docs/channels/line.md +221 -0
- package/docs/channels/location.md +56 -0
- package/docs/channels/matrix.md +779 -0
- package/docs/channels/mattermost.md +435 -0
- package/docs/channels/msteams.md +802 -0
- package/docs/channels/nextcloud-talk.md +146 -0
- package/docs/channels/nostr.md +257 -0
- package/docs/channels/pairing.md +114 -0
- package/docs/channels/qqbot.md +193 -0
- package/docs/channels/signal.md +337 -0
- package/docs/channels/slack.md +607 -0
- package/docs/channels/synology-chat.md +150 -0
- package/docs/channels/telegram.md +991 -0
- package/docs/channels/tlon.md +284 -0
- package/docs/channels/troubleshooting.md +118 -0
- package/docs/channels/twitch.md +387 -0
- package/docs/channels/whatsapp.md +462 -0
- package/docs/channels/zalo.md +251 -0
- package/docs/channels/zalouser.md +189 -0
- package/docs/ci.md +57 -0
- package/docs/cli/acp.md +297 -0
- package/docs/cli/agent.md +29 -0
- package/docs/cli/agents.md +123 -0
- package/docs/cli/approvals.md +50 -0
- package/docs/cli/backup.md +76 -0
- package/docs/cli/browser.md +127 -0
- package/docs/cli/channels.md +102 -0
- package/docs/cli/clawbot.md +21 -0
- package/docs/cli/completion.md +35 -0
- package/docs/cli/config.md +317 -0
- package/docs/cli/configure.md +42 -0
- package/docs/cli/cron.md +80 -0
- package/docs/cli/daemon.md +55 -0
- package/docs/cli/dashboard.md +22 -0
- package/docs/cli/devices.md +139 -0
- package/docs/cli/directory.md +63 -0
- package/docs/cli/dns.md +23 -0
- package/docs/cli/docs.md +15 -0
- package/docs/cli/doctor.md +48 -0
- package/docs/cli/flows.md +54 -0
- package/docs/cli/gateway.md +238 -0
- package/docs/cli/health.md +21 -0
- package/docs/cli/hooks.md +330 -0
- package/docs/cli/index.md +1239 -0
- package/docs/cli/logs.md +28 -0
- package/docs/cli/mcp.md +467 -0
- package/docs/cli/memory.md +66 -0
- package/docs/cli/message.md +280 -0
- package/docs/cli/models.md +90 -0
- package/docs/cli/node.md +132 -0
- package/docs/cli/nodes.md +55 -0
- package/docs/cli/onboard.md +160 -0
- package/docs/cli/pairing.md +32 -0
- package/docs/cli/plugins.md +229 -0
- package/docs/cli/qr.md +46 -0
- package/docs/cli/reset.md +20 -0
- package/docs/cli/sandbox.md +197 -0
- package/docs/cli/secrets.md +188 -0
- package/docs/cli/security.md +79 -0
- package/docs/cli/sessions.md +110 -0
- package/docs/cli/setup.md +29 -0
- package/docs/cli/skills.md +40 -0
- package/docs/cli/status.md +30 -0
- package/docs/cli/system.md +60 -0
- package/docs/cli/tui.md +30 -0
- package/docs/cli/uninstall.md +20 -0
- package/docs/cli/update.md +103 -0
- package/docs/cli/voicecall.md +34 -0
- package/docs/cli/webhooks.md +25 -0
- package/docs/concepts/agent-loop.md +166 -0
- package/docs/concepts/agent-workspace.md +243 -0
- package/docs/concepts/agent.md +122 -0
- package/docs/concepts/architecture.md +144 -0
- package/docs/concepts/compaction.md +93 -0
- package/docs/concepts/context-engine.md +274 -0
- package/docs/concepts/context.md +179 -0
- package/docs/concepts/delegate-architecture.md +296 -0
- package/docs/concepts/features.md +73 -0
- package/docs/concepts/markdown-formatting.md +130 -0
- package/docs/concepts/memory-builtin.md +105 -0
- package/docs/concepts/memory-honcho.md +140 -0
- package/docs/concepts/memory-qmd.md +163 -0
- package/docs/concepts/memory-search.md +141 -0
- package/docs/concepts/memory.md +102 -0
- package/docs/concepts/messages.md +161 -0
- package/docs/concepts/model-failover.md +160 -0
- package/docs/concepts/model-providers.md +599 -0
- package/docs/concepts/models.md +232 -0
- package/docs/concepts/multi-agent.md +602 -0
- package/docs/concepts/oauth.md +193 -0
- package/docs/concepts/presence.md +102 -0
- package/docs/concepts/queue.md +89 -0
- package/docs/concepts/retry.md +69 -0
- package/docs/concepts/session-pruning.md +80 -0
- package/docs/concepts/session-tool.md +84 -0
- package/docs/concepts/session.md +116 -0
- package/docs/concepts/streaming.md +161 -0
- package/docs/concepts/system-prompt.md +132 -0
- package/docs/concepts/timezone.md +97 -0
- package/docs/concepts/typebox.md +291 -0
- package/docs/concepts/typing-indicators.md +68 -0
- package/docs/concepts/usage-tracking.md +35 -0
- package/docs/date-time.md +128 -0
- package/docs/debug/node-issue.md +85 -0
- package/docs/diagnostics/flags.md +91 -0
- package/docs/docs.json +2143 -0
- package/docs/gateway/authentication.md +204 -0
- package/docs/gateway/background-process.md +97 -0
- package/docs/gateway/bonjour.md +177 -0
- package/docs/gateway/bridge-protocol.md +86 -0
- package/docs/gateway/cli-backends.md +249 -0
- package/docs/gateway/configuration-examples.md +652 -0
- package/docs/gateway/configuration-reference.md +3384 -0
- package/docs/gateway/configuration.md +633 -0
- package/docs/gateway/discovery.md +127 -0
- package/docs/gateway/doctor.md +463 -0
- package/docs/gateway/gateway-lock.md +37 -0
- package/docs/gateway/health.md +53 -0
- package/docs/gateway/heartbeat.md +407 -0
- package/docs/gateway/index.md +286 -0
- package/docs/gateway/local-models.md +153 -0
- package/docs/gateway/logging.md +113 -0
- package/docs/gateway/multiple-gateways.md +112 -0
- package/docs/gateway/network-model.md +24 -0
- package/docs/gateway/openai-http-api.md +266 -0
- package/docs/gateway/openresponses-http-api.md +322 -0
- package/docs/gateway/openshell.md +307 -0
- package/docs/gateway/pairing.md +99 -0
- package/docs/gateway/protocol.md +280 -0
- package/docs/gateway/remote-gateway-readme.md +160 -0
- package/docs/gateway/remote.md +248 -0
- package/docs/gateway/sandbox-vs-tool-policy-vs-elevated.md +134 -0
- package/docs/gateway/sandboxing.md +469 -0
- package/docs/gateway/secrets-plan-contract.md +116 -0
- package/docs/gateway/secrets.md +541 -0
- package/docs/gateway/security/index.md +1216 -0
- package/docs/gateway/tailscale.md +132 -0
- package/docs/gateway/tools-invoke-http-api.md +147 -0
- package/docs/gateway/troubleshooting.md +382 -0
- package/docs/gateway/trusted-proxy-auth.md +342 -0
- package/docs/help/debugging.md +168 -0
- package/docs/help/environment.md +163 -0
- package/docs/help/faq.md +3002 -0
- package/docs/help/index.md +28 -0
- package/docs/help/scripts.md +28 -0
- package/docs/help/testing.md +664 -0
- package/docs/help/troubleshooting.md +352 -0
- package/docs/images/configure-model-picker-unsearchable.png +0 -0
- package/docs/images/feishu-step2-create-app.png +0 -0
- package/docs/images/feishu-step3-credentials.png +0 -0
- package/docs/images/feishu-step4-permissions.png +0 -0
- package/docs/images/feishu-step5-bot-capability.png +0 -0
- package/docs/images/feishu-step6-event-subscription.png +0 -0
- package/docs/images/feishu-verification-token.png +0 -0
- package/docs/images/groups-flow.svg +52 -0
- package/docs/images/mobile-ui-screenshot.png +0 -0
- package/docs/index.md +196 -0
- package/docs/install/ansible.md +230 -0
- package/docs/install/azure.md +311 -0
- package/docs/install/bun.md +55 -0
- package/docs/install/clawdock.md +105 -0
- package/docs/install/development-channels.md +120 -0
- package/docs/install/digitalocean.md +129 -0
- package/docs/install/docker-vm-runtime.md +142 -0
- package/docs/install/docker.md +404 -0
- package/docs/install/exe-dev.md +126 -0
- package/docs/install/fly.md +501 -0
- package/docs/install/gcp.md +402 -0
- package/docs/install/hetzner.md +251 -0
- package/docs/install/index.md +183 -0
- package/docs/install/installer.md +421 -0
- package/docs/install/kubernetes.md +191 -0
- package/docs/install/macos-vm.md +281 -0
- package/docs/install/migrating-matrix.md +346 -0
- package/docs/install/migrating.md +110 -0
- package/docs/install/nix.md +89 -0
- package/docs/install/node.md +144 -0
- package/docs/install/northflank.mdx +40 -0
- package/docs/install/oracle.md +156 -0
- package/docs/install/podman.md +269 -0
- package/docs/install/railway.mdx +87 -0
- package/docs/install/raspberry-pi.md +159 -0
- package/docs/install/render.mdx +159 -0
- package/docs/install/uninstall.md +128 -0
- package/docs/install/updating.md +134 -0
- package/docs/ja-JP/index.md +186 -0
- package/docs/ja-JP/start/getting-started.md +125 -0
- package/docs/ja-JP/start/wizard.md +77 -0
- package/docs/logging.md +357 -0
- package/docs/nav-tabs-underline.js +100 -0
- package/docs/network.md +63 -0
- package/docs/nodes/audio.md +187 -0
- package/docs/nodes/camera.md +162 -0
- package/docs/nodes/images.md +72 -0
- package/docs/nodes/index.md +395 -0
- package/docs/nodes/location-command.md +98 -0
- package/docs/nodes/media-understanding.md +394 -0
- package/docs/nodes/talk.md +92 -0
- package/docs/nodes/troubleshooting.md +114 -0
- package/docs/nodes/voicewake.md +66 -0
- package/docs/perplexity.md +174 -0
- package/docs/pi-dev.md +80 -0
- package/docs/pi.md +567 -0
- package/docs/platforms/android.md +168 -0
- package/docs/platforms/digitalocean.md +266 -0
- package/docs/platforms/index.md +54 -0
- package/docs/platforms/ios.md +220 -0
- package/docs/platforms/linux.md +94 -0
- package/docs/platforms/mac/bundled-gateway.md +73 -0
- package/docs/platforms/mac/canvas.md +125 -0
- package/docs/platforms/mac/child-process.md +69 -0
- package/docs/platforms/mac/dev-setup.md +104 -0
- package/docs/platforms/mac/health.md +34 -0
- package/docs/platforms/mac/icon.md +31 -0
- package/docs/platforms/mac/logging.md +57 -0
- package/docs/platforms/mac/menu-bar.md +81 -0
- package/docs/platforms/mac/peekaboo.md +65 -0
- package/docs/platforms/mac/permissions.md +50 -0
- package/docs/platforms/mac/remote.md +84 -0
- package/docs/platforms/mac/signing.md +47 -0
- package/docs/platforms/mac/skills.md +34 -0
- package/docs/platforms/mac/voice-overlay.md +60 -0
- package/docs/platforms/mac/voicewake.md +67 -0
- package/docs/platforms/mac/webchat.md +43 -0
- package/docs/platforms/mac/xpc.md +61 -0
- package/docs/platforms/macos.md +228 -0
- package/docs/platforms/oracle.md +303 -0
- package/docs/platforms/raspberry-pi.md +412 -0
- package/docs/platforms/windows.md +241 -0
- package/docs/plugins/agent-tools.md +10 -0
- package/docs/plugins/architecture.md +1400 -0
- package/docs/plugins/building-extensions.md +10 -0
- package/docs/plugins/building-plugins.md +283 -0
- package/docs/plugins/bundles.md +278 -0
- package/docs/plugins/community.md +145 -0
- package/docs/plugins/manifest.md +284 -0
- package/docs/plugins/sdk-channel-plugins.md +419 -0
- package/docs/plugins/sdk-entrypoints.md +184 -0
- package/docs/plugins/sdk-migration.md +180 -0
- package/docs/plugins/sdk-overview.md +287 -0
- package/docs/plugins/sdk-provider-plugins.md +440 -0
- package/docs/plugins/sdk-runtime.md +347 -0
- package/docs/plugins/sdk-setup.md +365 -0
- package/docs/plugins/sdk-testing.md +263 -0
- package/docs/plugins/voice-call.md +397 -0
- package/docs/plugins/zalouser.md +78 -0
- package/docs/prose.md +134 -0
- package/docs/providers/anthropic.md +375 -0
- package/docs/providers/bedrock.md +217 -0
- package/docs/providers/claude-max-api-proxy.md +154 -0
- package/docs/providers/cloudflare-ai-gateway.md +71 -0
- package/docs/providers/deepgram.md +93 -0
- package/docs/providers/deepseek.md +53 -0
- package/docs/providers/github-copilot.md +72 -0
- package/docs/providers/glm.md +43 -0
- package/docs/providers/google.md +78 -0
- package/docs/providers/groq.md +96 -0
- package/docs/providers/huggingface.md +209 -0
- package/docs/providers/index.md +72 -0
- package/docs/providers/kilocode.md +74 -0
- package/docs/providers/litellm.md +154 -0
- package/docs/providers/minimax.md +183 -0
- package/docs/providers/mistral.md +54 -0
- package/docs/providers/models.md +45 -0
- package/docs/providers/moonshot.md +175 -0
- package/docs/providers/nvidia.md +55 -0
- package/docs/providers/ollama.md +352 -0
- package/docs/providers/openai.md +319 -0
- package/docs/providers/opencode-go.md +45 -0
- package/docs/providers/opencode.md +64 -0
- package/docs/providers/openrouter.md +37 -0
- package/docs/providers/perplexity-provider.md +62 -0
- package/docs/providers/qianfan.md +38 -0
- package/docs/providers/qwen.md +33 -0
- package/docs/providers/qwen_modelstudio.md +85 -0
- package/docs/providers/sglang.md +104 -0
- package/docs/providers/synthetic.md +99 -0
- package/docs/providers/together.md +66 -0
- package/docs/providers/venice.md +282 -0
- package/docs/providers/vercel-ai-gateway.md +60 -0
- package/docs/providers/vllm.md +92 -0
- package/docs/providers/volcengine.md +74 -0
- package/docs/providers/xai.md +69 -0
- package/docs/providers/xiaomi.md +86 -0
- package/docs/providers/zai.md +46 -0
- package/docs/reference/AGENTS.default.md +126 -0
- package/docs/reference/RELEASING.md +80 -0
- package/docs/reference/api-usage-costs.md +144 -0
- package/docs/reference/credits.md +30 -0
- package/docs/reference/device-models.md +47 -0
- package/docs/reference/memory-config.md +370 -0
- package/docs/reference/prompt-caching.md +195 -0
- package/docs/reference/rpc.md +43 -0
- package/docs/reference/secretref-credential-surface.md +137 -0
- package/docs/reference/secretref-user-supplied-credentials-matrix.json +535 -0
- package/docs/reference/session-management-compaction.md +326 -0
- package/docs/reference/templates/AGENTS.dev.md +84 -0
- package/docs/reference/templates/AGENTS.md +219 -0
- package/docs/reference/templates/BOOT.md +11 -0
- package/docs/reference/templates/BOOTSTRAP.md +62 -0
- package/docs/reference/templates/HEARTBEAT.md +14 -0
- package/docs/reference/templates/IDENTITY.dev.md +48 -0
- package/docs/reference/templates/IDENTITY.md +30 -0
- package/docs/reference/templates/SOUL.dev.md +77 -0
- package/docs/reference/templates/SOUL.md +43 -0
- package/docs/reference/templates/TOOLS.dev.md +25 -0
- package/docs/reference/templates/TOOLS.md +47 -0
- package/docs/reference/templates/USER.dev.md +19 -0
- package/docs/reference/templates/USER.md +24 -0
- package/docs/reference/test.md +120 -0
- package/docs/reference/token-use.md +175 -0
- package/docs/reference/transcript-hygiene.md +151 -0
- package/docs/reference/wizard.md +235 -0
- package/docs/security/CONTRIBUTING-THREAT-MODEL.md +98 -0
- package/docs/security/THREAT-MODEL-ATLAS.md +608 -0
- package/docs/security/formal-verification.md +167 -0
- package/docs/snippets/plugin-publish/minimal-package.json +16 -0
- package/docs/snippets/plugin-publish/minimal-vora.plugin.json +9 -0
- package/docs/start/bootstrapping.md +41 -0
- package/docs/start/docs-directory.md +66 -0
- package/docs/start/getting-started.md +116 -0
- package/docs/start/hubs.md +198 -0
- package/docs/start/lore.md +219 -0
- package/docs/start/onboarding-overview.md +67 -0
- package/docs/start/onboarding.md +91 -0
- package/docs/start/quickstart.md +22 -0
- package/docs/start/setup.md +164 -0
- package/docs/start/showcase.md +418 -0
- package/docs/start/vora.md +224 -0
- package/docs/start/wizard-cli-automation.md +215 -0
- package/docs/start/wizard-cli-reference.md +302 -0
- package/docs/start/wizard.md +125 -0
- package/docs/style.css +37 -0
- package/docs/tools/acp-agents.md +772 -0
- package/docs/tools/agent-send.md +100 -0
- package/docs/tools/apply-patch.md +52 -0
- package/docs/tools/brave-search.md +97 -0
- package/docs/tools/browser-linux-troubleshooting.md +138 -0
- package/docs/tools/browser-login.md +73 -0
- package/docs/tools/browser-wsl2-windows-remote-cdp-troubleshooting.md +211 -0
- package/docs/tools/browser.md +824 -0
- package/docs/tools/btw.md +142 -0
- package/docs/tools/capability-cookbook.md +119 -0
- package/docs/tools/clawhub.md +336 -0
- package/docs/tools/code-execution.md +90 -0
- package/docs/tools/creating-skills.md +117 -0
- package/docs/tools/diffs.md +388 -0
- package/docs/tools/duckduckgo-search.md +101 -0
- package/docs/tools/elevated.md +114 -0
- package/docs/tools/exa-search.md +127 -0
- package/docs/tools/exec-approvals.md +502 -0
- package/docs/tools/exec.md +217 -0
- package/docs/tools/firecrawl.md +144 -0
- package/docs/tools/gemini-search.md +93 -0
- package/docs/tools/grok-search.md +98 -0
- package/docs/tools/image-generation.md +125 -0
- package/docs/tools/index.md +140 -0
- package/docs/tools/kimi-search.md +73 -0
- package/docs/tools/llm-task.md +119 -0
- package/docs/tools/lobster.md +348 -0
- package/docs/tools/loop-detection.md +100 -0
- package/docs/tools/multi-agent-sandbox-tools.md +364 -0
- package/docs/tools/pdf.md +161 -0
- package/docs/tools/perplexity-search.md +178 -0
- package/docs/tools/plugin.md +291 -0
- package/docs/tools/reactions.md +64 -0
- package/docs/tools/skills-config.md +95 -0
- package/docs/tools/skills.md +331 -0
- package/docs/tools/slash-commands.md +315 -0
- package/docs/tools/subagents.md +296 -0
- package/docs/tools/tavily.md +129 -0
- package/docs/tools/thinking.md +96 -0
- package/docs/tools/tts.md +416 -0
- package/docs/tools/web-fetch.md +135 -0
- package/docs/tools/web.md +362 -0
- package/docs/tts.md +416 -0
- package/docs/vps.md +112 -0
- package/docs/web/control-ui.md +285 -0
- package/docs/web/dashboard.md +56 -0
- package/docs/web/index.md +120 -0
- package/docs/web/tui.md +175 -0
- package/docs/web/webchat.md +65 -0
- package/docs/whatsapp-vora-ai-zh.jpg +0 -0
- package/docs/whatsapp-vora.jpg +0 -0
- package/docs/zh-CN/AGENTS.md +61 -0
- package/docs/zh-CN/automation/auth-monitoring.md +47 -0
- package/docs/zh-CN/automation/cron-jobs.md +435 -0
- package/docs/zh-CN/automation/cron-vs-heartbeat.md +286 -0
- package/docs/zh-CN/automation/gmail-pubsub.md +249 -0
- package/docs/zh-CN/automation/hooks.md +1051 -0
- package/docs/zh-CN/automation/poll.md +76 -0
- package/docs/zh-CN/automation/troubleshooting.md +8 -0
- package/docs/zh-CN/automation/webhook.md +163 -0
- package/docs/zh-CN/brave-search.md +60 -0
- package/docs/zh-CN/channels/bluebubbles.md +354 -0
- package/docs/zh-CN/channels/broadcast-groups.md +449 -0
- package/docs/zh-CN/channels/channel-routing.md +117 -0
- package/docs/zh-CN/channels/discord.md +468 -0
- package/docs/zh-CN/channels/feishu.md +728 -0
- package/docs/zh-CN/channels/googlechat.md +257 -0
- package/docs/zh-CN/channels/grammy.md +38 -0
- package/docs/zh-CN/channels/group-messages.md +91 -0
- package/docs/zh-CN/channels/groups.md +379 -0
- package/docs/zh-CN/channels/imessage.md +302 -0
- package/docs/zh-CN/channels/index.md +53 -0
- package/docs/zh-CN/channels/line.md +180 -0
- package/docs/zh-CN/channels/location.md +63 -0
- package/docs/zh-CN/channels/matrix.md +221 -0
- package/docs/zh-CN/channels/mattermost.md +144 -0
- package/docs/zh-CN/channels/msteams.md +775 -0
- package/docs/zh-CN/channels/nextcloud-talk.md +142 -0
- package/docs/zh-CN/channels/nostr.md +249 -0
- package/docs/zh-CN/channels/pairing.md +89 -0
- package/docs/zh-CN/channels/signal.md +209 -0
- package/docs/zh-CN/channels/slack.md +531 -0
- package/docs/zh-CN/channels/synology-chat.md +138 -0
- package/docs/zh-CN/channels/telegram.md +751 -0
- package/docs/zh-CN/channels/tlon.md +136 -0
- package/docs/zh-CN/channels/troubleshooting.md +36 -0
- package/docs/zh-CN/channels/twitch.md +385 -0
- package/docs/zh-CN/channels/whatsapp.md +411 -0
- package/docs/zh-CN/channels/zalo.md +196 -0
- package/docs/zh-CN/channels/zalouser.md +147 -0
- package/docs/zh-CN/cli/acp.md +173 -0
- package/docs/zh-CN/cli/agent.md +30 -0
- package/docs/zh-CN/cli/agents.md +82 -0
- package/docs/zh-CN/cli/approvals.md +57 -0
- package/docs/zh-CN/cli/browser.md +114 -0
- package/docs/zh-CN/cli/channels.md +86 -0
- package/docs/zh-CN/cli/config.md +57 -0
- package/docs/zh-CN/cli/configure.md +38 -0
- package/docs/zh-CN/cli/cron.md +43 -0
- package/docs/zh-CN/cli/dashboard.md +23 -0
- package/docs/zh-CN/cli/devices.md +74 -0
- package/docs/zh-CN/cli/directory.md +70 -0
- package/docs/zh-CN/cli/dns.md +30 -0
- package/docs/zh-CN/cli/docs.md +22 -0
- package/docs/zh-CN/cli/doctor.md +48 -0
- package/docs/zh-CN/cli/gateway.md +206 -0
- package/docs/zh-CN/cli/health.md +28 -0
- package/docs/zh-CN/cli/hooks.md +298 -0
- package/docs/zh-CN/cli/index.md +1142 -0
- package/docs/zh-CN/cli/logs.md +31 -0
- package/docs/zh-CN/cli/memory.md +52 -0
- package/docs/zh-CN/cli/message.md +246 -0
- package/docs/zh-CN/cli/models.md +85 -0
- package/docs/zh-CN/cli/node.md +115 -0
- package/docs/zh-CN/cli/nodes.md +62 -0
- package/docs/zh-CN/cli/onboard.md +164 -0
- package/docs/zh-CN/cli/pairing.md +28 -0
- package/docs/zh-CN/cli/plugins.md +66 -0
- package/docs/zh-CN/cli/reset.md +24 -0
- package/docs/zh-CN/cli/sandbox.md +158 -0
- package/docs/zh-CN/cli/security.md +33 -0
- package/docs/zh-CN/cli/sessions.md +23 -0
- package/docs/zh-CN/cli/setup.md +36 -0
- package/docs/zh-CN/cli/skills.md +33 -0
- package/docs/zh-CN/cli/status.md +33 -0
- package/docs/zh-CN/cli/system.md +63 -0
- package/docs/zh-CN/cli/tui.md +30 -0
- package/docs/zh-CN/cli/uninstall.md +24 -0
- package/docs/zh-CN/cli/update.md +101 -0
- package/docs/zh-CN/cli/voicecall.md +41 -0
- package/docs/zh-CN/cli/webhooks.md +32 -0
- package/docs/zh-CN/concepts/agent-loop.md +146 -0
- package/docs/zh-CN/concepts/agent-workspace.md +219 -0
- package/docs/zh-CN/concepts/agent.md +115 -0
- package/docs/zh-CN/concepts/architecture.md +123 -0
- package/docs/zh-CN/concepts/compaction.md +67 -0
- package/docs/zh-CN/concepts/context.md +168 -0
- package/docs/zh-CN/concepts/features.md +59 -0
- package/docs/zh-CN/concepts/markdown-formatting.md +117 -0
- package/docs/zh-CN/concepts/memory.md +412 -0
- package/docs/zh-CN/concepts/messages.md +141 -0
- package/docs/zh-CN/concepts/model-failover.md +145 -0
- package/docs/zh-CN/concepts/model-providers.md +589 -0
- package/docs/zh-CN/concepts/models.md +225 -0
- package/docs/zh-CN/concepts/multi-agent.md +372 -0
- package/docs/zh-CN/concepts/oauth.md +164 -0
- package/docs/zh-CN/concepts/presence.md +99 -0
- package/docs/zh-CN/concepts/queue.md +94 -0
- package/docs/zh-CN/concepts/retry.md +76 -0
- package/docs/zh-CN/concepts/session-pruning.md +129 -0
- package/docs/zh-CN/concepts/session-tool.md +200 -0
- package/docs/zh-CN/concepts/session.md +166 -0
- package/docs/zh-CN/concepts/streaming.md +133 -0
- package/docs/zh-CN/concepts/system-prompt.md +101 -0
- package/docs/zh-CN/concepts/timezone.md +96 -0
- package/docs/zh-CN/concepts/typebox.md +284 -0
- package/docs/zh-CN/concepts/typing-indicators.md +74 -0
- package/docs/zh-CN/concepts/usage-tracking.md +42 -0
- package/docs/zh-CN/date-time.md +129 -0
- package/docs/zh-CN/debug/node-issue.md +90 -0
- package/docs/zh-CN/diagnostics/flags.md +98 -0
- package/docs/zh-CN/gateway/authentication.md +184 -0
- package/docs/zh-CN/gateway/background-process.md +100 -0
- package/docs/zh-CN/gateway/bonjour.md +174 -0
- package/docs/zh-CN/gateway/bridge-protocol.md +86 -0
- package/docs/zh-CN/gateway/cli-backends.md +213 -0
- package/docs/zh-CN/gateway/configuration-examples.md +587 -0
- package/docs/zh-CN/gateway/configuration-reference.md +3103 -0
- package/docs/zh-CN/gateway/configuration.md +640 -0
- package/docs/zh-CN/gateway/discovery.md +123 -0
- package/docs/zh-CN/gateway/doctor.md +238 -0
- package/docs/zh-CN/gateway/gateway-lock.md +41 -0
- package/docs/zh-CN/gateway/health.md +42 -0
- package/docs/zh-CN/gateway/heartbeat.md +274 -0
- package/docs/zh-CN/gateway/index.md +335 -0
- package/docs/zh-CN/gateway/local-models.md +159 -0
- package/docs/zh-CN/gateway/logging.md +114 -0
- package/docs/zh-CN/gateway/multiple-gateways.md +119 -0
- package/docs/zh-CN/gateway/network-model.md +23 -0
- package/docs/zh-CN/gateway/openai-http-api.md +125 -0
- package/docs/zh-CN/gateway/openresponses-http-api.md +317 -0
- package/docs/zh-CN/gateway/pairing.md +99 -0
- package/docs/zh-CN/gateway/protocol.md +220 -0
- package/docs/zh-CN/gateway/remote-gateway-readme.md +164 -0
- package/docs/zh-CN/gateway/remote.md +133 -0
- package/docs/zh-CN/gateway/sandbox-vs-tool-policy-vs-elevated.md +135 -0
- package/docs/zh-CN/gateway/sandboxing.md +188 -0
- package/docs/zh-CN/gateway/security/index.md +777 -0
- package/docs/zh-CN/gateway/tailscale.md +124 -0
- package/docs/zh-CN/gateway/tools-invoke-http-api.md +92 -0
- package/docs/zh-CN/gateway/troubleshooting.md +771 -0
- package/docs/zh-CN/help/debugging.md +160 -0
- package/docs/zh-CN/help/environment.md +88 -0
- package/docs/zh-CN/help/faq.md +2640 -0
- package/docs/zh-CN/help/index.md +28 -0
- package/docs/zh-CN/help/scripts.md +35 -0
- package/docs/zh-CN/help/testing.md +375 -0
- package/docs/zh-CN/help/troubleshooting.md +104 -0
- package/docs/zh-CN/index.md +186 -0
- package/docs/zh-CN/install/ansible.md +215 -0
- package/docs/zh-CN/install/bun.md +65 -0
- package/docs/zh-CN/install/development-channels.md +81 -0
- package/docs/zh-CN/install/docker.md +532 -0
- package/docs/zh-CN/install/exe-dev.md +133 -0
- package/docs/zh-CN/install/fly.md +490 -0
- package/docs/zh-CN/install/gcp.md +510 -0
- package/docs/zh-CN/install/hetzner.md +337 -0
- package/docs/zh-CN/install/index.md +235 -0
- package/docs/zh-CN/install/installer.md +422 -0
- package/docs/zh-CN/install/macos-vm.md +288 -0
- package/docs/zh-CN/install/migrating.md +199 -0
- package/docs/zh-CN/install/nix.md +99 -0
- package/docs/zh-CN/install/node.md +8 -0
- package/docs/zh-CN/install/northflank.mdx +60 -0
- package/docs/zh-CN/install/railway.mdx +106 -0
- package/docs/zh-CN/install/render.mdx +169 -0
- package/docs/zh-CN/install/uninstall.md +135 -0
- package/docs/zh-CN/install/updating.md +233 -0
- package/docs/zh-CN/logging.md +329 -0
- package/docs/zh-CN/network.md +59 -0
- package/docs/zh-CN/nodes/audio.md +120 -0
- package/docs/zh-CN/nodes/camera.md +162 -0
- package/docs/zh-CN/nodes/images.md +79 -0
- package/docs/zh-CN/nodes/index.md +350 -0
- package/docs/zh-CN/nodes/location-command.md +120 -0
- package/docs/zh-CN/nodes/media-understanding.md +380 -0
- package/docs/zh-CN/nodes/talk.md +97 -0
- package/docs/zh-CN/nodes/troubleshooting.md +8 -0
- package/docs/zh-CN/nodes/voicewake.md +72 -0
- package/docs/zh-CN/perplexity.md +102 -0
- package/docs/zh-CN/pi-dev.md +87 -0
- package/docs/zh-CN/pi.md +571 -0
- package/docs/zh-CN/platforms/android.md +155 -0
- package/docs/zh-CN/platforms/digitalocean.md +273 -0
- package/docs/zh-CN/platforms/index.md +60 -0
- package/docs/zh-CN/platforms/ios.md +114 -0
- package/docs/zh-CN/platforms/linux.md +100 -0
- package/docs/zh-CN/platforms/mac/bundled-gateway.md +75 -0
- package/docs/zh-CN/platforms/mac/canvas.md +128 -0
- package/docs/zh-CN/platforms/mac/child-process.md +73 -0
- package/docs/zh-CN/platforms/mac/dev-setup.md +109 -0
- package/docs/zh-CN/platforms/mac/health.md +41 -0
- package/docs/zh-CN/platforms/mac/icon.md +38 -0
- package/docs/zh-CN/platforms/mac/logging.md +64 -0
- package/docs/zh-CN/platforms/mac/menu-bar.md +88 -0
- package/docs/zh-CN/platforms/mac/peekaboo.md +62 -0
- package/docs/zh-CN/platforms/mac/permissions.md +46 -0
- package/docs/zh-CN/platforms/mac/remote.md +90 -0
- package/docs/zh-CN/platforms/mac/signing.md +54 -0
- package/docs/zh-CN/platforms/mac/skills.md +40 -0
- package/docs/zh-CN/platforms/mac/voice-overlay.md +67 -0
- package/docs/zh-CN/platforms/mac/voicewake.md +74 -0
- package/docs/zh-CN/platforms/mac/webchat.md +43 -0
- package/docs/zh-CN/platforms/mac/xpc.md +68 -0
- package/docs/zh-CN/platforms/macos.md +193 -0
- package/docs/zh-CN/platforms/oracle.md +310 -0
- package/docs/zh-CN/platforms/raspberry-pi.md +416 -0
- package/docs/zh-CN/platforms/windows.md +247 -0
- package/docs/zh-CN/plugins/agent-tools.md +99 -0
- package/docs/zh-CN/plugins/manifest.md +68 -0
- package/docs/zh-CN/plugins/voice-call.md +250 -0
- package/docs/zh-CN/plugins/zalouser.md +88 -0
- package/docs/zh-CN/prose.md +141 -0
- package/docs/zh-CN/providers/anthropic.md +265 -0
- package/docs/zh-CN/providers/bedrock.md +170 -0
- package/docs/zh-CN/providers/claude-max-api-proxy.md +155 -0
- package/docs/zh-CN/providers/cloudflare-ai-gateway.md +78 -0
- package/docs/zh-CN/providers/deepgram.md +97 -0
- package/docs/zh-CN/providers/github-copilot.md +67 -0
- package/docs/zh-CN/providers/glm.md +50 -0
- package/docs/zh-CN/providers/huggingface.md +216 -0
- package/docs/zh-CN/providers/index.md +69 -0
- package/docs/zh-CN/providers/kilocode.md +80 -0
- package/docs/zh-CN/providers/litellm.md +160 -0
- package/docs/zh-CN/providers/minimax.md +222 -0
- package/docs/zh-CN/providers/mistral.md +61 -0
- package/docs/zh-CN/providers/models.md +51 -0
- package/docs/zh-CN/providers/moonshot.md +182 -0
- package/docs/zh-CN/providers/nvidia.md +62 -0
- package/docs/zh-CN/providers/ollama.md +359 -0
- package/docs/zh-CN/providers/openai.md +308 -0
- package/docs/zh-CN/providers/opencode-go.md +52 -0
- package/docs/zh-CN/providers/opencode.md +71 -0
- package/docs/zh-CN/providers/openrouter.md +44 -0
- package/docs/zh-CN/providers/qianfan.md +45 -0
- package/docs/zh-CN/providers/qwen.md +36 -0
- package/docs/zh-CN/providers/sglang.md +111 -0
- package/docs/zh-CN/providers/synthetic.md +106 -0
- package/docs/zh-CN/providers/together.md +72 -0
- package/docs/zh-CN/providers/venice.md +289 -0
- package/docs/zh-CN/providers/vercel-ai-gateway.md +66 -0
- package/docs/zh-CN/providers/xiaomi.md +93 -0
- package/docs/zh-CN/providers/zai.md +53 -0
- package/docs/zh-CN/reference/AGENTS.default.md +131 -0
- package/docs/zh-CN/reference/RELEASING.md +48 -0
- package/docs/zh-CN/reference/api-usage-costs.md +141 -0
- package/docs/zh-CN/reference/credits.md +34 -0
- package/docs/zh-CN/reference/device-models.md +54 -0
- package/docs/zh-CN/reference/rpc.md +48 -0
- package/docs/zh-CN/reference/session-management-compaction.md +287 -0
- package/docs/zh-CN/reference/templates/AGENTS.dev.md +89 -0
- package/docs/zh-CN/reference/templates/AGENTS.md +225 -0
- package/docs/zh-CN/reference/templates/BOOT.md +17 -0
- package/docs/zh-CN/reference/templates/BOOTSTRAP.md +68 -0
- package/docs/zh-CN/reference/templates/HEARTBEAT.md +18 -0
- package/docs/zh-CN/reference/templates/IDENTITY.dev.md +54 -0
- package/docs/zh-CN/reference/templates/IDENTITY.md +36 -0
- package/docs/zh-CN/reference/templates/SOUL.dev.md +83 -0
- package/docs/zh-CN/reference/templates/SOUL.md +49 -0
- package/docs/zh-CN/reference/templates/TOOLS.dev.md +31 -0
- package/docs/zh-CN/reference/templates/TOOLS.md +53 -0
- package/docs/zh-CN/reference/templates/USER.dev.md +25 -0
- package/docs/zh-CN/reference/templates/USER.md +30 -0
- package/docs/zh-CN/reference/test.md +57 -0
- package/docs/zh-CN/reference/token-use.md +119 -0
- package/docs/zh-CN/reference/transcript-hygiene.md +109 -0
- package/docs/zh-CN/reference/wizard.md +242 -0
- package/docs/zh-CN/security/formal-verification.md +171 -0
- package/docs/zh-CN/start/bootstrapping.md +9 -0
- package/docs/zh-CN/start/docs-directory.md +70 -0
- package/docs/zh-CN/start/getting-started.md +143 -0
- package/docs/zh-CN/start/hubs.md +194 -0
- package/docs/zh-CN/start/lore.md +226 -0
- package/docs/zh-CN/start/onboarding-overview.md +58 -0
- package/docs/zh-CN/start/onboarding.md +105 -0
- package/docs/zh-CN/start/quickstart.md +88 -0
- package/docs/zh-CN/start/setup.md +153 -0
- package/docs/zh-CN/start/showcase.md +423 -0
- package/docs/zh-CN/start/vora.md +248 -0
- package/docs/zh-CN/start/wizard-cli-automation.md +222 -0
- package/docs/zh-CN/start/wizard-cli-reference.md +306 -0
- package/docs/zh-CN/start/wizard.md +132 -0
- package/docs/zh-CN/tools/agent-send.md +59 -0
- package/docs/zh-CN/tools/apply-patch.md +57 -0
- package/docs/zh-CN/tools/browser-linux-troubleshooting.md +144 -0
- package/docs/zh-CN/tools/browser-login.md +75 -0
- package/docs/zh-CN/tools/browser.md +553 -0
- package/docs/zh-CN/tools/chrome-extension.md +183 -0
- package/docs/zh-CN/tools/clawhub.md +225 -0
- package/docs/zh-CN/tools/creating-skills.md +61 -0
- package/docs/zh-CN/tools/diffs.md +393 -0
- package/docs/zh-CN/tools/elevated.md +64 -0
- package/docs/zh-CN/tools/exec-approvals.md +234 -0
- package/docs/zh-CN/tools/exec.md +169 -0
- package/docs/zh-CN/tools/firecrawl.md +68 -0
- package/docs/zh-CN/tools/index.md +514 -0
- package/docs/zh-CN/tools/llm-task.md +117 -0
- package/docs/zh-CN/tools/lobster.md +349 -0
- package/docs/zh-CN/tools/multi-agent-sandbox-tools.md +401 -0
- package/docs/zh-CN/tools/plugin.md +1610 -0
- package/docs/zh-CN/tools/reactions.md +29 -0
- package/docs/zh-CN/tools/skills-config.md +78 -0
- package/docs/zh-CN/tools/skills.md +279 -0
- package/docs/zh-CN/tools/slash-commands.md +205 -0
- package/docs/zh-CN/tools/subagents.md +167 -0
- package/docs/zh-CN/tools/thinking.md +80 -0
- package/docs/zh-CN/tools/web.md +289 -0
- package/docs/zh-CN/tts.md +375 -0
- package/docs/zh-CN/vps.md +47 -0
- package/docs/zh-CN/web/control-ui.md +191 -0
- package/docs/zh-CN/web/dashboard.md +53 -0
- package/docs/zh-CN/web/index.md +118 -0
- package/docs/zh-CN/web/tui.md +166 -0
- package/docs/zh-CN/web/webchat.md +56 -0
- package/package.json +1305 -0
- package/scripts/postinstall-bundled-plugins.mjs +166 -0
- package/skills/1password/SKILL.md +70 -0
- package/skills/1password/references/cli-examples.md +29 -0
- package/skills/1password/references/get-started.md +17 -0
- package/skills/apple-notes/SKILL.md +77 -0
- package/skills/apple-reminders/SKILL.md +118 -0
- package/skills/bear-notes/SKILL.md +107 -0
- package/skills/blogwatcher/SKILL.md +69 -0
- package/skills/blucli/SKILL.md +47 -0
- package/skills/bluebubbles/SKILL.md +131 -0
- package/skills/camsnap/SKILL.md +45 -0
- package/skills/canvas/SKILL.md +199 -0
- package/skills/clawflow/SKILL.md +76 -0
- package/skills/clawflow/examples/inbox-triage.lobster +33 -0
- package/skills/clawflow/examples/pr-intake.lobster +32 -0
- package/skills/clawflow-inbox-triage/SKILL.md +62 -0
- package/skills/clawhub/SKILL.md +77 -0
- package/skills/coding-agent/SKILL.md +316 -0
- package/skills/discord/SKILL.md +197 -0
- package/skills/eightctl/SKILL.md +50 -0
- package/skills/gemini/SKILL.md +43 -0
- package/skills/gh-issues/SKILL.md +885 -0
- package/skills/gifgrep/SKILL.md +79 -0
- package/skills/github/SKILL.md +163 -0
- package/skills/gog/SKILL.md +116 -0
- package/skills/goplaces/SKILL.md +52 -0
- package/skills/healthcheck/SKILL.md +245 -0
- package/skills/himalaya/SKILL.md +257 -0
- package/skills/himalaya/references/configuration.md +184 -0
- package/skills/himalaya/references/message-composition.md +199 -0
- package/skills/imsg/SKILL.md +122 -0
- package/skills/mcporter/SKILL.md +61 -0
- package/skills/model-usage/SKILL.md +69 -0
- package/skills/model-usage/references/codexbar-cli.md +33 -0
- package/skills/model-usage/scripts/model_usage.py +320 -0
- package/skills/model-usage/scripts/test_model_usage.py +40 -0
- package/skills/nano-pdf/SKILL.md +38 -0
- package/skills/node-connect/SKILL.md +142 -0
- package/skills/notion/SKILL.md +174 -0
- package/skills/obsidian/SKILL.md +81 -0
- package/skills/openai-whisper/SKILL.md +38 -0
- package/skills/openai-whisper-api/SKILL.md +62 -0
- package/skills/openai-whisper-api/scripts/transcribe.sh +88 -0
- package/skills/openhue/SKILL.md +112 -0
- package/skills/oracle/SKILL.md +125 -0
- package/skills/ordercli/SKILL.md +78 -0
- package/skills/peekaboo/SKILL.md +190 -0
- package/skills/sag/SKILL.md +87 -0
- package/skills/session-logs/SKILL.md +151 -0
- package/skills/sherpa-onnx-tts/SKILL.md +109 -0
- package/skills/sherpa-onnx-tts/bin/sherpa-onnx-tts +178 -0
- package/skills/skill-creator/SKILL.md +372 -0
- package/skills/skill-creator/license.txt +202 -0
- package/skills/skill-creator/scripts/init_skill.py +378 -0
- package/skills/skill-creator/scripts/package_skill.py +139 -0
- package/skills/skill-creator/scripts/quick_validate.py +159 -0
- package/skills/skill-creator/scripts/test_package_skill.py +160 -0
- package/skills/skill-creator/scripts/test_quick_validate.py +72 -0
- package/skills/slack/SKILL.md +144 -0
- package/skills/songsee/SKILL.md +49 -0
- package/skills/sonoscli/SKILL.md +65 -0
- package/skills/spotify-player/SKILL.md +64 -0
- package/skills/summarize/SKILL.md +87 -0
- package/skills/things-mac/SKILL.md +86 -0
- package/skills/tmux/SKILL.md +170 -0
- package/skills/tmux/scripts/find-sessions.sh +112 -0
- package/skills/tmux/scripts/wait-for-text.sh +83 -0
- package/skills/trello/SKILL.md +108 -0
- package/skills/video-frames/SKILL.md +46 -0
- package/skills/video-frames/scripts/frame.sh +81 -0
- package/skills/voice-call/SKILL.md +45 -0
- package/skills/wacli/SKILL.md +72 -0
- package/skills/weather/SKILL.md +129 -0
- package/skills/xurl/SKILL.md +461 -0
- package/vora.mjs +183 -0
|
@@ -0,0 +1,2484 @@
|
|
|
1
|
+
import { n as defaultRuntime } from "./runtime-D0VpiCHi.js";
|
|
2
|
+
import { t as formatDocsLink } from "./links-Dew9XRNK.js";
|
|
3
|
+
import { r as theme } from "./theme-BJIQPogA.js";
|
|
4
|
+
import { n as inheritOptionFromParent } from "./command-options-BUoAEXAi.js";
|
|
5
|
+
import { n as info, t as danger } from "./globals-DNhziPZz.js";
|
|
6
|
+
import { x as shortenHomePath } from "./utils-BiWzD1kh.js";
|
|
7
|
+
import { c as loadConfig } from "./io-B07IaARR.js";
|
|
8
|
+
import { t as formatCliCommand } from "./command-format-DmvS76BD.js";
|
|
9
|
+
import { nn as errorShape, tn as ErrorCodes } from "./method-scopes-1fMDkPgy.js";
|
|
10
|
+
import { c as jsonResult, h as readStringParam, s as imageResultFromFile } from "./common-B8KXadTs.js";
|
|
11
|
+
import { s as wrapExternalContent } from "./external-content-CCU3ADB4.js";
|
|
12
|
+
import { a as resolveNodeIdFromList, n as listNodes, o as selectDefaultNodeFromList, s as callGatewayTool } from "./with-timeout-C9cQCRMB.js";
|
|
13
|
+
import { i as stringEnum, r as optionalStringEnum } from "./typebox-DR5b98DT.js";
|
|
14
|
+
import { t as parseBooleanValue } from "./boolean-BRxEL2pT.js";
|
|
15
|
+
import { t as startLazyPluginServiceModule } from "./lazy-service-module-BfNSCPnr.js";
|
|
16
|
+
import { i as safeParseJson, n as respondUnavailableOnNodeInvokeError } from "./nodes.helpers-C5_joVF0.js";
|
|
17
|
+
import { n as runCommandWithRuntime } from "./cli-utils-CMfpS8SF.js";
|
|
18
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-EUERnNbW.js";
|
|
19
|
+
import { t as formatHelpExamples } from "./help-format-Dad85O74.js";
|
|
20
|
+
import { n as isNodeCommandAllowed, r as resolveNodeCommandAllowlist } from "./node-command-policy-H9JvUbqw.js";
|
|
21
|
+
import "./browser-support-Bb_k0jpF.js";
|
|
22
|
+
import "./channel-actions-BOFC-_zU.js";
|
|
23
|
+
import { A as resolveBrowserConfig, B as DEFAULT_UPLOAD_DIR, K as normalizeBrowserFormField, M as DEFAULT_AI_SNAPSHOT_MAX_CHARS, V as resolveExistingPathsWithinRoot, W as getBrowserProfileCapabilities, f as redactCdpUrl, g as createBrowserControlContext, h as createBrowserRouteDispatcher, j as resolveProfile, q as normalizeBrowserFormFieldValue, v as startBrowserControlServiceFromConfig } from "./routes-BkjFgytb.js";
|
|
24
|
+
import { C as browserConsoleMessages, D as browserArmFileChooser, E as browserArmDialog, O as browserNavigate, S as browserTabs, T as browserAct, _ as browserSnapshot, b as browserStop, c as persistBrowserProxyFiles, h as browserProfiles, i as isPersistentBrowserProfileMutation, k as browserScreenshotAction, m as browserOpenTab, n as trackSessionBrowserTab, o as resolveRequestedBrowserProfile, p as browserFocusTab, r as untrackSessionBrowserTab, s as applyBrowserProxyPaths, u as browserCloseTab, v as browserStart, w as browserPdfSave, y as browserStatus } from "./core-api-VzeJYIaC.js";
|
|
25
|
+
import crypto from "node:crypto";
|
|
26
|
+
import { Type } from "@sinclair/typebox";
|
|
27
|
+
//#region extensions/browser/src/browser-tool.actions.ts
|
|
28
|
+
const browserToolActionDeps = {
|
|
29
|
+
browserAct,
|
|
30
|
+
browserConsoleMessages,
|
|
31
|
+
browserSnapshot,
|
|
32
|
+
browserTabs,
|
|
33
|
+
imageResultFromFile,
|
|
34
|
+
loadConfig
|
|
35
|
+
};
|
|
36
|
+
function wrapBrowserExternalJson(params) {
|
|
37
|
+
return {
|
|
38
|
+
wrappedText: wrapExternalContent(JSON.stringify(params.payload, null, 2), {
|
|
39
|
+
source: "browser",
|
|
40
|
+
includeWarning: params.includeWarning ?? true
|
|
41
|
+
}),
|
|
42
|
+
safeDetails: {
|
|
43
|
+
ok: true,
|
|
44
|
+
externalContent: {
|
|
45
|
+
untrusted: true,
|
|
46
|
+
source: "browser",
|
|
47
|
+
kind: params.kind,
|
|
48
|
+
wrapped: true
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function formatTabsToolResult(tabs) {
|
|
54
|
+
const wrapped = wrapBrowserExternalJson({
|
|
55
|
+
kind: "tabs",
|
|
56
|
+
payload: { tabs },
|
|
57
|
+
includeWarning: false
|
|
58
|
+
});
|
|
59
|
+
return {
|
|
60
|
+
content: [{
|
|
61
|
+
type: "text",
|
|
62
|
+
text: wrapped.wrappedText
|
|
63
|
+
}],
|
|
64
|
+
details: {
|
|
65
|
+
...wrapped.safeDetails,
|
|
66
|
+
tabCount: tabs.length
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function formatConsoleToolResult(result) {
|
|
71
|
+
const wrapped = wrapBrowserExternalJson({
|
|
72
|
+
kind: "console",
|
|
73
|
+
payload: result,
|
|
74
|
+
includeWarning: false
|
|
75
|
+
});
|
|
76
|
+
return {
|
|
77
|
+
content: [{
|
|
78
|
+
type: "text",
|
|
79
|
+
text: wrapped.wrappedText
|
|
80
|
+
}],
|
|
81
|
+
details: {
|
|
82
|
+
...wrapped.safeDetails,
|
|
83
|
+
targetId: typeof result.targetId === "string" ? result.targetId : void 0,
|
|
84
|
+
messageCount: Array.isArray(result.messages) ? result.messages.length : void 0
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function isChromeStaleTargetError(profile, err) {
|
|
89
|
+
if (!profile) return false;
|
|
90
|
+
if (profile === "user") {
|
|
91
|
+
const msg = String(err);
|
|
92
|
+
return msg.includes("404:") && msg.includes("tab not found");
|
|
93
|
+
}
|
|
94
|
+
const cfg = browserToolActionDeps.loadConfig();
|
|
95
|
+
const browserProfile = resolveProfile(resolveBrowserConfig(cfg.browser, cfg), profile);
|
|
96
|
+
if (!browserProfile || !getBrowserProfileCapabilities(browserProfile).usesChromeMcp) return false;
|
|
97
|
+
const msg = String(err);
|
|
98
|
+
return msg.includes("404:") && msg.includes("tab not found");
|
|
99
|
+
}
|
|
100
|
+
function stripTargetIdFromActRequest(request) {
|
|
101
|
+
if (!(typeof request.targetId === "string" ? request.targetId.trim() : void 0)) return null;
|
|
102
|
+
const retryRequest = { ...request };
|
|
103
|
+
delete retryRequest.targetId;
|
|
104
|
+
return retryRequest;
|
|
105
|
+
}
|
|
106
|
+
function canRetryChromeActWithoutTargetId(request) {
|
|
107
|
+
const typedRequest = request;
|
|
108
|
+
const kind = typeof typedRequest.kind === "string" ? typedRequest.kind : typeof typedRequest.action === "string" ? typedRequest.action : "";
|
|
109
|
+
return kind === "hover" || kind === "scrollIntoView" || kind === "wait";
|
|
110
|
+
}
|
|
111
|
+
async function executeTabsAction(params) {
|
|
112
|
+
const { baseUrl, profile, proxyRequest } = params;
|
|
113
|
+
if (proxyRequest) return formatTabsToolResult((await proxyRequest({
|
|
114
|
+
method: "GET",
|
|
115
|
+
path: "/tabs",
|
|
116
|
+
profile
|
|
117
|
+
})).tabs ?? []);
|
|
118
|
+
return formatTabsToolResult(await browserToolActionDeps.browserTabs(baseUrl, { profile }));
|
|
119
|
+
}
|
|
120
|
+
async function executeSnapshotAction(params) {
|
|
121
|
+
const { input, baseUrl, profile, proxyRequest } = params;
|
|
122
|
+
const snapshotDefaults = browserToolActionDeps.loadConfig().browser?.snapshotDefaults;
|
|
123
|
+
const format = input.snapshotFormat === "ai" || input.snapshotFormat === "aria" ? input.snapshotFormat : void 0;
|
|
124
|
+
const mode = input.mode === "efficient" ? "efficient" : format !== "aria" && snapshotDefaults?.mode === "efficient" ? "efficient" : void 0;
|
|
125
|
+
const labels = typeof input.labels === "boolean" ? input.labels : void 0;
|
|
126
|
+
const refs = input.refs === "aria" || input.refs === "role" ? input.refs : void 0;
|
|
127
|
+
const hasMaxChars = Object.hasOwn(input, "maxChars");
|
|
128
|
+
const targetId = typeof input.targetId === "string" ? input.targetId.trim() : void 0;
|
|
129
|
+
const limit = typeof input.limit === "number" && Number.isFinite(input.limit) ? input.limit : void 0;
|
|
130
|
+
const maxChars = typeof input.maxChars === "number" && Number.isFinite(input.maxChars) && input.maxChars > 0 ? Math.floor(input.maxChars) : void 0;
|
|
131
|
+
const interactive = typeof input.interactive === "boolean" ? input.interactive : void 0;
|
|
132
|
+
const compact = typeof input.compact === "boolean" ? input.compact : void 0;
|
|
133
|
+
const depth = typeof input.depth === "number" && Number.isFinite(input.depth) ? input.depth : void 0;
|
|
134
|
+
const selector = typeof input.selector === "string" ? input.selector.trim() : void 0;
|
|
135
|
+
const frame = typeof input.frame === "string" ? input.frame.trim() : void 0;
|
|
136
|
+
const resolvedMaxChars = format === "ai" ? hasMaxChars ? maxChars : mode === "efficient" ? void 0 : DEFAULT_AI_SNAPSHOT_MAX_CHARS : hasMaxChars ? maxChars : void 0;
|
|
137
|
+
const snapshotQuery = {
|
|
138
|
+
...format ? { format } : {},
|
|
139
|
+
targetId,
|
|
140
|
+
limit,
|
|
141
|
+
...typeof resolvedMaxChars === "number" ? { maxChars: resolvedMaxChars } : {},
|
|
142
|
+
refs,
|
|
143
|
+
interactive,
|
|
144
|
+
compact,
|
|
145
|
+
depth,
|
|
146
|
+
selector,
|
|
147
|
+
frame,
|
|
148
|
+
labels,
|
|
149
|
+
mode
|
|
150
|
+
};
|
|
151
|
+
const snapshot = proxyRequest ? await proxyRequest({
|
|
152
|
+
method: "GET",
|
|
153
|
+
path: "/snapshot",
|
|
154
|
+
profile,
|
|
155
|
+
query: snapshotQuery
|
|
156
|
+
}) : await browserToolActionDeps.browserSnapshot(baseUrl, {
|
|
157
|
+
...snapshotQuery,
|
|
158
|
+
profile
|
|
159
|
+
});
|
|
160
|
+
if (snapshot.format === "ai") {
|
|
161
|
+
const wrappedSnapshot = wrapExternalContent(snapshot.snapshot ?? "", {
|
|
162
|
+
source: "browser",
|
|
163
|
+
includeWarning: true
|
|
164
|
+
});
|
|
165
|
+
const safeDetails = {
|
|
166
|
+
ok: true,
|
|
167
|
+
format: snapshot.format,
|
|
168
|
+
targetId: snapshot.targetId,
|
|
169
|
+
url: snapshot.url,
|
|
170
|
+
truncated: snapshot.truncated,
|
|
171
|
+
stats: snapshot.stats,
|
|
172
|
+
refs: snapshot.refs ? Object.keys(snapshot.refs).length : void 0,
|
|
173
|
+
labels: snapshot.labels,
|
|
174
|
+
labelsCount: snapshot.labelsCount,
|
|
175
|
+
labelsSkipped: snapshot.labelsSkipped,
|
|
176
|
+
imagePath: snapshot.imagePath,
|
|
177
|
+
imageType: snapshot.imageType,
|
|
178
|
+
externalContent: {
|
|
179
|
+
untrusted: true,
|
|
180
|
+
source: "browser",
|
|
181
|
+
kind: "snapshot",
|
|
182
|
+
format: "ai",
|
|
183
|
+
wrapped: true
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
if (labels && snapshot.imagePath) return await browserToolActionDeps.imageResultFromFile({
|
|
187
|
+
label: "browser:snapshot",
|
|
188
|
+
path: snapshot.imagePath,
|
|
189
|
+
extraText: wrappedSnapshot,
|
|
190
|
+
details: safeDetails
|
|
191
|
+
});
|
|
192
|
+
return {
|
|
193
|
+
content: [{
|
|
194
|
+
type: "text",
|
|
195
|
+
text: wrappedSnapshot
|
|
196
|
+
}],
|
|
197
|
+
details: safeDetails
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
{
|
|
201
|
+
const wrapped = wrapBrowserExternalJson({
|
|
202
|
+
kind: "snapshot",
|
|
203
|
+
payload: snapshot
|
|
204
|
+
});
|
|
205
|
+
return {
|
|
206
|
+
content: [{
|
|
207
|
+
type: "text",
|
|
208
|
+
text: wrapped.wrappedText
|
|
209
|
+
}],
|
|
210
|
+
details: {
|
|
211
|
+
...wrapped.safeDetails,
|
|
212
|
+
format: "aria",
|
|
213
|
+
targetId: snapshot.targetId,
|
|
214
|
+
url: snapshot.url,
|
|
215
|
+
nodeCount: snapshot.nodes.length,
|
|
216
|
+
externalContent: {
|
|
217
|
+
untrusted: true,
|
|
218
|
+
source: "browser",
|
|
219
|
+
kind: "snapshot",
|
|
220
|
+
format: "aria",
|
|
221
|
+
wrapped: true
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
async function executeConsoleAction(params) {
|
|
228
|
+
const { input, baseUrl, profile, proxyRequest } = params;
|
|
229
|
+
const level = typeof input.level === "string" ? input.level.trim() : void 0;
|
|
230
|
+
const targetId = typeof input.targetId === "string" ? input.targetId.trim() : void 0;
|
|
231
|
+
if (proxyRequest) return formatConsoleToolResult(await proxyRequest({
|
|
232
|
+
method: "GET",
|
|
233
|
+
path: "/console",
|
|
234
|
+
profile,
|
|
235
|
+
query: {
|
|
236
|
+
level,
|
|
237
|
+
targetId
|
|
238
|
+
}
|
|
239
|
+
}));
|
|
240
|
+
return formatConsoleToolResult(await browserToolActionDeps.browserConsoleMessages(baseUrl, {
|
|
241
|
+
level,
|
|
242
|
+
targetId,
|
|
243
|
+
profile
|
|
244
|
+
}));
|
|
245
|
+
}
|
|
246
|
+
async function executeActAction(params) {
|
|
247
|
+
const { request, baseUrl, profile, proxyRequest } = params;
|
|
248
|
+
try {
|
|
249
|
+
return jsonResult(proxyRequest ? await proxyRequest({
|
|
250
|
+
method: "POST",
|
|
251
|
+
path: "/act",
|
|
252
|
+
profile,
|
|
253
|
+
body: request
|
|
254
|
+
}) : await browserToolActionDeps.browserAct(baseUrl, request, { profile }));
|
|
255
|
+
} catch (err) {
|
|
256
|
+
if (isChromeStaleTargetError(profile, err)) {
|
|
257
|
+
const retryRequest = stripTargetIdFromActRequest(request);
|
|
258
|
+
const tabs = proxyRequest ? (await proxyRequest({
|
|
259
|
+
method: "GET",
|
|
260
|
+
path: "/tabs",
|
|
261
|
+
profile
|
|
262
|
+
})).tabs ?? [] : await browserToolActionDeps.browserTabs(baseUrl, { profile }).catch(() => []);
|
|
263
|
+
if (retryRequest && canRetryChromeActWithoutTargetId(request) && tabs.length === 1) try {
|
|
264
|
+
return jsonResult(proxyRequest ? await proxyRequest({
|
|
265
|
+
method: "POST",
|
|
266
|
+
path: "/act",
|
|
267
|
+
profile,
|
|
268
|
+
body: retryRequest
|
|
269
|
+
}) : await browserToolActionDeps.browserAct(baseUrl, retryRequest, { profile }));
|
|
270
|
+
} catch {}
|
|
271
|
+
if (!tabs.length) throw new Error(`No browser tabs found for profile="${profile}". Make sure the configured Chromium-based browser (v144+) is running and has open tabs, then retry.`, { cause: err });
|
|
272
|
+
throw new Error(`Chrome tab not found (stale targetId?). Run action=tabs profile="${profile}" and use one of the returned targetIds.`, { cause: err });
|
|
273
|
+
}
|
|
274
|
+
throw err;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
//#endregion
|
|
278
|
+
//#region extensions/browser/src/browser-tool.schema.ts
|
|
279
|
+
const BROWSER_ACT_KINDS = [
|
|
280
|
+
"click",
|
|
281
|
+
"type",
|
|
282
|
+
"press",
|
|
283
|
+
"hover",
|
|
284
|
+
"drag",
|
|
285
|
+
"select",
|
|
286
|
+
"fill",
|
|
287
|
+
"resize",
|
|
288
|
+
"wait",
|
|
289
|
+
"evaluate",
|
|
290
|
+
"close"
|
|
291
|
+
];
|
|
292
|
+
const BROWSER_TOOL_ACTIONS = [
|
|
293
|
+
"status",
|
|
294
|
+
"start",
|
|
295
|
+
"stop",
|
|
296
|
+
"profiles",
|
|
297
|
+
"tabs",
|
|
298
|
+
"open",
|
|
299
|
+
"focus",
|
|
300
|
+
"close",
|
|
301
|
+
"snapshot",
|
|
302
|
+
"screenshot",
|
|
303
|
+
"navigate",
|
|
304
|
+
"console",
|
|
305
|
+
"pdf",
|
|
306
|
+
"upload",
|
|
307
|
+
"dialog",
|
|
308
|
+
"act"
|
|
309
|
+
];
|
|
310
|
+
const BROWSER_TARGETS = [
|
|
311
|
+
"sandbox",
|
|
312
|
+
"host",
|
|
313
|
+
"node"
|
|
314
|
+
];
|
|
315
|
+
const BROWSER_SNAPSHOT_FORMATS = ["aria", "ai"];
|
|
316
|
+
const BROWSER_SNAPSHOT_MODES = ["efficient"];
|
|
317
|
+
const BROWSER_SNAPSHOT_REFS = ["role", "aria"];
|
|
318
|
+
const BROWSER_IMAGE_TYPES = ["png", "jpeg"];
|
|
319
|
+
const BrowserActSchema = Type.Object({
|
|
320
|
+
kind: stringEnum(BROWSER_ACT_KINDS),
|
|
321
|
+
targetId: Type.Optional(Type.String()),
|
|
322
|
+
ref: Type.Optional(Type.String()),
|
|
323
|
+
doubleClick: Type.Optional(Type.Boolean()),
|
|
324
|
+
button: Type.Optional(Type.String()),
|
|
325
|
+
modifiers: Type.Optional(Type.Array(Type.String())),
|
|
326
|
+
text: Type.Optional(Type.String()),
|
|
327
|
+
submit: Type.Optional(Type.Boolean()),
|
|
328
|
+
slowly: Type.Optional(Type.Boolean()),
|
|
329
|
+
key: Type.Optional(Type.String()),
|
|
330
|
+
delayMs: Type.Optional(Type.Number()),
|
|
331
|
+
startRef: Type.Optional(Type.String()),
|
|
332
|
+
endRef: Type.Optional(Type.String()),
|
|
333
|
+
values: Type.Optional(Type.Array(Type.String())),
|
|
334
|
+
fields: Type.Optional(Type.Array(Type.Object({}, { additionalProperties: true }))),
|
|
335
|
+
width: Type.Optional(Type.Number()),
|
|
336
|
+
height: Type.Optional(Type.Number()),
|
|
337
|
+
timeMs: Type.Optional(Type.Number()),
|
|
338
|
+
selector: Type.Optional(Type.String()),
|
|
339
|
+
url: Type.Optional(Type.String()),
|
|
340
|
+
loadState: Type.Optional(Type.String()),
|
|
341
|
+
textGone: Type.Optional(Type.String()),
|
|
342
|
+
timeoutMs: Type.Optional(Type.Number()),
|
|
343
|
+
fn: Type.Optional(Type.String())
|
|
344
|
+
});
|
|
345
|
+
const BrowserToolSchema = Type.Object({
|
|
346
|
+
action: stringEnum(BROWSER_TOOL_ACTIONS),
|
|
347
|
+
target: optionalStringEnum(BROWSER_TARGETS),
|
|
348
|
+
node: Type.Optional(Type.String()),
|
|
349
|
+
profile: Type.Optional(Type.String()),
|
|
350
|
+
targetUrl: Type.Optional(Type.String()),
|
|
351
|
+
url: Type.Optional(Type.String()),
|
|
352
|
+
targetId: Type.Optional(Type.String()),
|
|
353
|
+
limit: Type.Optional(Type.Number()),
|
|
354
|
+
maxChars: Type.Optional(Type.Number()),
|
|
355
|
+
mode: optionalStringEnum(BROWSER_SNAPSHOT_MODES),
|
|
356
|
+
snapshotFormat: optionalStringEnum(BROWSER_SNAPSHOT_FORMATS),
|
|
357
|
+
refs: optionalStringEnum(BROWSER_SNAPSHOT_REFS),
|
|
358
|
+
interactive: Type.Optional(Type.Boolean()),
|
|
359
|
+
compact: Type.Optional(Type.Boolean()),
|
|
360
|
+
depth: Type.Optional(Type.Number()),
|
|
361
|
+
selector: Type.Optional(Type.String()),
|
|
362
|
+
frame: Type.Optional(Type.String()),
|
|
363
|
+
labels: Type.Optional(Type.Boolean()),
|
|
364
|
+
fullPage: Type.Optional(Type.Boolean()),
|
|
365
|
+
ref: Type.Optional(Type.String()),
|
|
366
|
+
element: Type.Optional(Type.String()),
|
|
367
|
+
type: optionalStringEnum(BROWSER_IMAGE_TYPES),
|
|
368
|
+
level: Type.Optional(Type.String()),
|
|
369
|
+
paths: Type.Optional(Type.Array(Type.String())),
|
|
370
|
+
inputRef: Type.Optional(Type.String()),
|
|
371
|
+
timeoutMs: Type.Optional(Type.Number()),
|
|
372
|
+
accept: Type.Optional(Type.Boolean()),
|
|
373
|
+
promptText: Type.Optional(Type.String()),
|
|
374
|
+
kind: Type.Optional(stringEnum(BROWSER_ACT_KINDS)),
|
|
375
|
+
doubleClick: Type.Optional(Type.Boolean()),
|
|
376
|
+
button: Type.Optional(Type.String()),
|
|
377
|
+
modifiers: Type.Optional(Type.Array(Type.String())),
|
|
378
|
+
text: Type.Optional(Type.String()),
|
|
379
|
+
submit: Type.Optional(Type.Boolean()),
|
|
380
|
+
slowly: Type.Optional(Type.Boolean()),
|
|
381
|
+
key: Type.Optional(Type.String()),
|
|
382
|
+
delayMs: Type.Optional(Type.Number()),
|
|
383
|
+
startRef: Type.Optional(Type.String()),
|
|
384
|
+
endRef: Type.Optional(Type.String()),
|
|
385
|
+
values: Type.Optional(Type.Array(Type.String())),
|
|
386
|
+
fields: Type.Optional(Type.Array(Type.Object({}, { additionalProperties: true }))),
|
|
387
|
+
width: Type.Optional(Type.Number()),
|
|
388
|
+
height: Type.Optional(Type.Number()),
|
|
389
|
+
timeMs: Type.Optional(Type.Number()),
|
|
390
|
+
textGone: Type.Optional(Type.String()),
|
|
391
|
+
loadState: Type.Optional(Type.String()),
|
|
392
|
+
fn: Type.Optional(Type.String()),
|
|
393
|
+
request: Type.Optional(BrowserActSchema)
|
|
394
|
+
});
|
|
395
|
+
//#endregion
|
|
396
|
+
//#region extensions/browser/src/browser-tool.ts
|
|
397
|
+
const browserToolDeps = {
|
|
398
|
+
browserAct,
|
|
399
|
+
browserArmDialog,
|
|
400
|
+
browserArmFileChooser,
|
|
401
|
+
browserCloseTab,
|
|
402
|
+
browserFocusTab,
|
|
403
|
+
browserNavigate,
|
|
404
|
+
browserOpenTab,
|
|
405
|
+
browserPdfSave,
|
|
406
|
+
browserProfiles,
|
|
407
|
+
browserScreenshotAction,
|
|
408
|
+
browserStart,
|
|
409
|
+
browserStatus,
|
|
410
|
+
browserStop,
|
|
411
|
+
imageResultFromFile,
|
|
412
|
+
loadConfig,
|
|
413
|
+
listNodes,
|
|
414
|
+
callGatewayTool,
|
|
415
|
+
trackSessionBrowserTab,
|
|
416
|
+
untrackSessionBrowserTab
|
|
417
|
+
};
|
|
418
|
+
function readOptionalTargetAndTimeout(params) {
|
|
419
|
+
return {
|
|
420
|
+
targetId: typeof params.targetId === "string" ? params.targetId.trim() : void 0,
|
|
421
|
+
timeoutMs: typeof params.timeoutMs === "number" && Number.isFinite(params.timeoutMs) ? params.timeoutMs : void 0
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
function readTargetUrlParam(params) {
|
|
425
|
+
return readStringParam(params, "targetUrl") ?? readStringParam(params, "url", {
|
|
426
|
+
required: true,
|
|
427
|
+
label: "targetUrl"
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
const LEGACY_BROWSER_ACT_REQUEST_KEYS = [
|
|
431
|
+
"targetId",
|
|
432
|
+
"ref",
|
|
433
|
+
"doubleClick",
|
|
434
|
+
"button",
|
|
435
|
+
"modifiers",
|
|
436
|
+
"text",
|
|
437
|
+
"submit",
|
|
438
|
+
"slowly",
|
|
439
|
+
"key",
|
|
440
|
+
"delayMs",
|
|
441
|
+
"startRef",
|
|
442
|
+
"endRef",
|
|
443
|
+
"values",
|
|
444
|
+
"fields",
|
|
445
|
+
"width",
|
|
446
|
+
"height",
|
|
447
|
+
"timeMs",
|
|
448
|
+
"textGone",
|
|
449
|
+
"selector",
|
|
450
|
+
"url",
|
|
451
|
+
"loadState",
|
|
452
|
+
"fn",
|
|
453
|
+
"timeoutMs"
|
|
454
|
+
];
|
|
455
|
+
function readActRequestParam(params) {
|
|
456
|
+
const requestParam = params.request;
|
|
457
|
+
if (requestParam && typeof requestParam === "object") return requestParam;
|
|
458
|
+
const kind = readStringParam(params, "kind");
|
|
459
|
+
if (!kind) return;
|
|
460
|
+
const request = { kind };
|
|
461
|
+
for (const key of LEGACY_BROWSER_ACT_REQUEST_KEYS) {
|
|
462
|
+
if (!Object.hasOwn(params, key)) continue;
|
|
463
|
+
request[key] = params[key];
|
|
464
|
+
}
|
|
465
|
+
return request;
|
|
466
|
+
}
|
|
467
|
+
const DEFAULT_BROWSER_PROXY_TIMEOUT_MS = 2e4;
|
|
468
|
+
const BROWSER_PROXY_GATEWAY_TIMEOUT_SLACK_MS = 5e3;
|
|
469
|
+
function isBrowserNode$1(node) {
|
|
470
|
+
const caps = Array.isArray(node.caps) ? node.caps : [];
|
|
471
|
+
const commands = Array.isArray(node.commands) ? node.commands : [];
|
|
472
|
+
return caps.includes("browser") || commands.includes("browser.proxy");
|
|
473
|
+
}
|
|
474
|
+
async function resolveBrowserNodeTarget$1(params) {
|
|
475
|
+
const policy = browserToolDeps.loadConfig().gateway?.nodes?.browser;
|
|
476
|
+
const mode = policy?.mode ?? "auto";
|
|
477
|
+
if (mode === "off") {
|
|
478
|
+
if (params.target === "node" || params.requestedNode) throw new Error("Node browser proxy is disabled (gateway.nodes.browser.mode=off).");
|
|
479
|
+
return null;
|
|
480
|
+
}
|
|
481
|
+
if (params.sandboxBridgeUrl?.trim() && params.target !== "node" && !params.requestedNode) return null;
|
|
482
|
+
if (params.target && params.target !== "node") return null;
|
|
483
|
+
if (mode === "manual" && params.target !== "node" && !params.requestedNode) return null;
|
|
484
|
+
const browserNodes = (await browserToolDeps.listNodes({})).filter((node) => node.connected && isBrowserNode$1(node));
|
|
485
|
+
if (browserNodes.length === 0) {
|
|
486
|
+
if (params.target === "node" || params.requestedNode) throw new Error("No connected browser-capable nodes.");
|
|
487
|
+
return null;
|
|
488
|
+
}
|
|
489
|
+
const requested = params.requestedNode?.trim() || policy?.node?.trim();
|
|
490
|
+
if (requested) {
|
|
491
|
+
const nodeId = resolveNodeIdFromList(browserNodes, requested, false);
|
|
492
|
+
const node = browserNodes.find((entry) => entry.nodeId === nodeId);
|
|
493
|
+
return {
|
|
494
|
+
nodeId,
|
|
495
|
+
label: node?.displayName ?? node?.remoteIp ?? nodeId
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
const selected = selectDefaultNodeFromList(browserNodes, {
|
|
499
|
+
preferLocalMac: false,
|
|
500
|
+
fallback: "none"
|
|
501
|
+
});
|
|
502
|
+
if (params.target === "node") {
|
|
503
|
+
if (selected) return {
|
|
504
|
+
nodeId: selected.nodeId,
|
|
505
|
+
label: selected.displayName ?? selected.remoteIp ?? selected.nodeId
|
|
506
|
+
};
|
|
507
|
+
throw new Error(`Multiple browser-capable nodes connected (${browserNodes.length}). Set gateway.nodes.browser.node or pass node=<id>.`);
|
|
508
|
+
}
|
|
509
|
+
if (mode === "manual") return null;
|
|
510
|
+
if (selected) return {
|
|
511
|
+
nodeId: selected.nodeId,
|
|
512
|
+
label: selected.displayName ?? selected.remoteIp ?? selected.nodeId
|
|
513
|
+
};
|
|
514
|
+
return null;
|
|
515
|
+
}
|
|
516
|
+
async function callBrowserProxy(params) {
|
|
517
|
+
const proxyTimeoutMs = typeof params.timeoutMs === "number" && Number.isFinite(params.timeoutMs) ? Math.max(1, Math.floor(params.timeoutMs)) : DEFAULT_BROWSER_PROXY_TIMEOUT_MS;
|
|
518
|
+
const gatewayTimeoutMs = proxyTimeoutMs + BROWSER_PROXY_GATEWAY_TIMEOUT_SLACK_MS;
|
|
519
|
+
const payload = await browserToolDeps.callGatewayTool("node.invoke", { timeoutMs: gatewayTimeoutMs }, {
|
|
520
|
+
nodeId: params.nodeId,
|
|
521
|
+
command: "browser.proxy",
|
|
522
|
+
params: {
|
|
523
|
+
method: params.method,
|
|
524
|
+
path: params.path,
|
|
525
|
+
query: params.query,
|
|
526
|
+
body: params.body,
|
|
527
|
+
timeoutMs: proxyTimeoutMs,
|
|
528
|
+
profile: params.profile
|
|
529
|
+
},
|
|
530
|
+
idempotencyKey: crypto.randomUUID()
|
|
531
|
+
});
|
|
532
|
+
const parsed = payload?.payload ?? (typeof payload?.payloadJSON === "string" && payload.payloadJSON ? JSON.parse(payload.payloadJSON) : null);
|
|
533
|
+
if (!parsed || typeof parsed !== "object" || !("result" in parsed)) throw new Error("browser proxy failed");
|
|
534
|
+
return parsed;
|
|
535
|
+
}
|
|
536
|
+
async function persistProxyFiles$1(files) {
|
|
537
|
+
return await persistBrowserProxyFiles(files);
|
|
538
|
+
}
|
|
539
|
+
function applyProxyPaths$1(result, mapping) {
|
|
540
|
+
applyBrowserProxyPaths(result, mapping);
|
|
541
|
+
}
|
|
542
|
+
function resolveBrowserBaseUrl(params) {
|
|
543
|
+
const cfg = loadConfig();
|
|
544
|
+
const resolved = resolveBrowserConfig(cfg.browser, cfg);
|
|
545
|
+
const normalizedSandbox = params.sandboxBridgeUrl?.trim() ?? "";
|
|
546
|
+
if ((params.target ?? (normalizedSandbox ? "sandbox" : "host")) === "sandbox") {
|
|
547
|
+
if (!normalizedSandbox) throw new Error("Sandbox browser is unavailable. Enable agents.defaults.sandbox.browser.enabled or use target=\"host\" if allowed.");
|
|
548
|
+
return normalizedSandbox.replace(/\/$/, "");
|
|
549
|
+
}
|
|
550
|
+
if (params.allowHostControl === false) throw new Error("Host browser control is disabled by sandbox policy.");
|
|
551
|
+
if (!resolved.enabled) throw new Error("Browser control is disabled. Set browser.enabled=true in ~/.vora/vora.json.");
|
|
552
|
+
}
|
|
553
|
+
function shouldPreferHostForProfile(profileName) {
|
|
554
|
+
if (!profileName) return false;
|
|
555
|
+
const cfg = browserToolDeps.loadConfig();
|
|
556
|
+
const profile = resolveProfile(resolveBrowserConfig(cfg.browser, cfg), profileName);
|
|
557
|
+
if (!profile) return false;
|
|
558
|
+
return getBrowserProfileCapabilities(profile).usesChromeMcp;
|
|
559
|
+
}
|
|
560
|
+
function createBrowserTool(opts) {
|
|
561
|
+
const targetDefault = opts?.sandboxBridgeUrl ? "sandbox" : "host";
|
|
562
|
+
const hostHint = opts?.allowHostControl === false ? "Host target blocked by policy." : "Host target allowed.";
|
|
563
|
+
return {
|
|
564
|
+
label: "Browser",
|
|
565
|
+
name: "browser",
|
|
566
|
+
description: [
|
|
567
|
+
"Control the browser via Vora's browser control server (status/start/stop/profiles/tabs/open/snapshot/screenshot/actions).",
|
|
568
|
+
"Browser choice: omit profile by default for the isolated Vora-managed browser (`vora`).",
|
|
569
|
+
"For the logged-in user browser on the local host, use profile=\"user\". A supported Chromium-based browser (v144+) must be running. Use only when existing logins/cookies matter and the user is present.",
|
|
570
|
+
"When a node-hosted browser proxy is available, the tool may auto-route to it. Pin a node with node=<id|name> or target=\"node\".",
|
|
571
|
+
"When using refs from snapshot (e.g. e12), keep the same tab: prefer passing targetId from the snapshot response into subsequent actions (act/click/type/etc).",
|
|
572
|
+
"For stable, self-resolving refs across calls, use snapshot with refs=\"aria\" (Playwright aria-ref ids). Default refs=\"role\" are role+name-based.",
|
|
573
|
+
"Use snapshot+act for UI automation. Avoid act:wait by default; use only in exceptional cases when no reliable UI state exists.",
|
|
574
|
+
`target selects browser location (sandbox|host|node). Default: ${targetDefault}.`,
|
|
575
|
+
hostHint
|
|
576
|
+
].join(" "),
|
|
577
|
+
parameters: BrowserToolSchema,
|
|
578
|
+
execute: async (_toolCallId, args) => {
|
|
579
|
+
const params = args;
|
|
580
|
+
const action = readStringParam(params, "action", { required: true });
|
|
581
|
+
const profile = readStringParam(params, "profile");
|
|
582
|
+
const requestedNode = readStringParam(params, "node");
|
|
583
|
+
let target = readStringParam(params, "target");
|
|
584
|
+
if (requestedNode && target && target !== "node") throw new Error("node is only supported with target=\"node\".");
|
|
585
|
+
if (shouldPreferHostForProfile(profile)) {
|
|
586
|
+
if (requestedNode || target === "node") throw new Error(`profile="${profile}" only supports the local host browser.`);
|
|
587
|
+
if (target === "sandbox") throw new Error(`profile="${profile}" cannot use the sandbox browser; use target="host" or omit target.`);
|
|
588
|
+
if (!target && !requestedNode) target = "host";
|
|
589
|
+
}
|
|
590
|
+
const nodeTarget = await resolveBrowserNodeTarget$1({
|
|
591
|
+
requestedNode: requestedNode ?? void 0,
|
|
592
|
+
target,
|
|
593
|
+
sandboxBridgeUrl: opts?.sandboxBridgeUrl
|
|
594
|
+
});
|
|
595
|
+
const baseUrl = nodeTarget ? void 0 : resolveBrowserBaseUrl({
|
|
596
|
+
target: target === "node" ? void 0 : target,
|
|
597
|
+
sandboxBridgeUrl: opts?.sandboxBridgeUrl,
|
|
598
|
+
allowHostControl: opts?.allowHostControl
|
|
599
|
+
});
|
|
600
|
+
const proxyRequest = nodeTarget ? async (opts) => {
|
|
601
|
+
const proxy = await callBrowserProxy({
|
|
602
|
+
nodeId: nodeTarget.nodeId,
|
|
603
|
+
method: opts.method,
|
|
604
|
+
path: opts.path,
|
|
605
|
+
query: opts.query,
|
|
606
|
+
body: opts.body,
|
|
607
|
+
timeoutMs: opts.timeoutMs,
|
|
608
|
+
profile: opts.profile
|
|
609
|
+
});
|
|
610
|
+
const mapping = await persistProxyFiles$1(proxy.files);
|
|
611
|
+
applyProxyPaths$1(proxy.result, mapping);
|
|
612
|
+
return proxy.result;
|
|
613
|
+
} : null;
|
|
614
|
+
switch (action) {
|
|
615
|
+
case "status":
|
|
616
|
+
if (proxyRequest) return jsonResult(await proxyRequest({
|
|
617
|
+
method: "GET",
|
|
618
|
+
path: "/",
|
|
619
|
+
profile
|
|
620
|
+
}));
|
|
621
|
+
return jsonResult(await browserToolDeps.browserStatus(baseUrl, { profile }));
|
|
622
|
+
case "start":
|
|
623
|
+
if (proxyRequest) {
|
|
624
|
+
await proxyRequest({
|
|
625
|
+
method: "POST",
|
|
626
|
+
path: "/start",
|
|
627
|
+
profile
|
|
628
|
+
});
|
|
629
|
+
return jsonResult(await proxyRequest({
|
|
630
|
+
method: "GET",
|
|
631
|
+
path: "/",
|
|
632
|
+
profile
|
|
633
|
+
}));
|
|
634
|
+
}
|
|
635
|
+
await browserToolDeps.browserStart(baseUrl, { profile });
|
|
636
|
+
return jsonResult(await browserToolDeps.browserStatus(baseUrl, { profile }));
|
|
637
|
+
case "stop":
|
|
638
|
+
if (proxyRequest) {
|
|
639
|
+
await proxyRequest({
|
|
640
|
+
method: "POST",
|
|
641
|
+
path: "/stop",
|
|
642
|
+
profile
|
|
643
|
+
});
|
|
644
|
+
return jsonResult(await proxyRequest({
|
|
645
|
+
method: "GET",
|
|
646
|
+
path: "/",
|
|
647
|
+
profile
|
|
648
|
+
}));
|
|
649
|
+
}
|
|
650
|
+
await browserToolDeps.browserStop(baseUrl, { profile });
|
|
651
|
+
return jsonResult(await browserToolDeps.browserStatus(baseUrl, { profile }));
|
|
652
|
+
case "profiles":
|
|
653
|
+
if (proxyRequest) return jsonResult(await proxyRequest({
|
|
654
|
+
method: "GET",
|
|
655
|
+
path: "/profiles"
|
|
656
|
+
}));
|
|
657
|
+
return jsonResult({ profiles: await browserToolDeps.browserProfiles(baseUrl) });
|
|
658
|
+
case "tabs": return await executeTabsAction({
|
|
659
|
+
baseUrl,
|
|
660
|
+
profile,
|
|
661
|
+
proxyRequest
|
|
662
|
+
});
|
|
663
|
+
case "open": {
|
|
664
|
+
const targetUrl = readTargetUrlParam(params);
|
|
665
|
+
if (proxyRequest) return jsonResult(await proxyRequest({
|
|
666
|
+
method: "POST",
|
|
667
|
+
path: "/tabs/open",
|
|
668
|
+
profile,
|
|
669
|
+
body: { url: targetUrl }
|
|
670
|
+
}));
|
|
671
|
+
const opened = await browserToolDeps.browserOpenTab(baseUrl, targetUrl, { profile });
|
|
672
|
+
browserToolDeps.trackSessionBrowserTab({
|
|
673
|
+
sessionKey: opts?.agentSessionKey,
|
|
674
|
+
targetId: opened.targetId,
|
|
675
|
+
baseUrl,
|
|
676
|
+
profile
|
|
677
|
+
});
|
|
678
|
+
return jsonResult(opened);
|
|
679
|
+
}
|
|
680
|
+
case "focus": {
|
|
681
|
+
const targetId = readStringParam(params, "targetId", { required: true });
|
|
682
|
+
if (proxyRequest) return jsonResult(await proxyRequest({
|
|
683
|
+
method: "POST",
|
|
684
|
+
path: "/tabs/focus",
|
|
685
|
+
profile,
|
|
686
|
+
body: { targetId }
|
|
687
|
+
}));
|
|
688
|
+
await browserToolDeps.browserFocusTab(baseUrl, targetId, { profile });
|
|
689
|
+
return jsonResult({ ok: true });
|
|
690
|
+
}
|
|
691
|
+
case "close": {
|
|
692
|
+
const targetId = readStringParam(params, "targetId");
|
|
693
|
+
if (proxyRequest) return jsonResult(targetId ? await proxyRequest({
|
|
694
|
+
method: "DELETE",
|
|
695
|
+
path: `/tabs/${encodeURIComponent(targetId)}`,
|
|
696
|
+
profile
|
|
697
|
+
}) : await proxyRequest({
|
|
698
|
+
method: "POST",
|
|
699
|
+
path: "/act",
|
|
700
|
+
profile,
|
|
701
|
+
body: { kind: "close" }
|
|
702
|
+
}));
|
|
703
|
+
if (targetId) {
|
|
704
|
+
await browserToolDeps.browserCloseTab(baseUrl, targetId, { profile });
|
|
705
|
+
browserToolDeps.untrackSessionBrowserTab({
|
|
706
|
+
sessionKey: opts?.agentSessionKey,
|
|
707
|
+
targetId,
|
|
708
|
+
baseUrl,
|
|
709
|
+
profile
|
|
710
|
+
});
|
|
711
|
+
} else await browserToolDeps.browserAct(baseUrl, { kind: "close" }, { profile });
|
|
712
|
+
return jsonResult({ ok: true });
|
|
713
|
+
}
|
|
714
|
+
case "snapshot": return await executeSnapshotAction({
|
|
715
|
+
input: params,
|
|
716
|
+
baseUrl,
|
|
717
|
+
profile,
|
|
718
|
+
proxyRequest
|
|
719
|
+
});
|
|
720
|
+
case "screenshot": {
|
|
721
|
+
const targetId = readStringParam(params, "targetId");
|
|
722
|
+
const fullPage = Boolean(params.fullPage);
|
|
723
|
+
const ref = readStringParam(params, "ref");
|
|
724
|
+
const element = readStringParam(params, "element");
|
|
725
|
+
const type = params.type === "jpeg" ? "jpeg" : "png";
|
|
726
|
+
const result = proxyRequest ? await proxyRequest({
|
|
727
|
+
method: "POST",
|
|
728
|
+
path: "/screenshot",
|
|
729
|
+
profile,
|
|
730
|
+
body: {
|
|
731
|
+
targetId,
|
|
732
|
+
fullPage,
|
|
733
|
+
ref,
|
|
734
|
+
element,
|
|
735
|
+
type
|
|
736
|
+
}
|
|
737
|
+
}) : await browserToolDeps.browserScreenshotAction(baseUrl, {
|
|
738
|
+
targetId,
|
|
739
|
+
fullPage,
|
|
740
|
+
ref,
|
|
741
|
+
element,
|
|
742
|
+
type,
|
|
743
|
+
profile
|
|
744
|
+
});
|
|
745
|
+
return await browserToolDeps.imageResultFromFile({
|
|
746
|
+
label: "browser:screenshot",
|
|
747
|
+
path: result.path,
|
|
748
|
+
details: result
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
case "navigate": {
|
|
752
|
+
const targetUrl = readTargetUrlParam(params);
|
|
753
|
+
const targetId = readStringParam(params, "targetId");
|
|
754
|
+
if (proxyRequest) return jsonResult(await proxyRequest({
|
|
755
|
+
method: "POST",
|
|
756
|
+
path: "/navigate",
|
|
757
|
+
profile,
|
|
758
|
+
body: {
|
|
759
|
+
url: targetUrl,
|
|
760
|
+
targetId
|
|
761
|
+
}
|
|
762
|
+
}));
|
|
763
|
+
return jsonResult(await browserToolDeps.browserNavigate(baseUrl, {
|
|
764
|
+
url: targetUrl,
|
|
765
|
+
targetId,
|
|
766
|
+
profile
|
|
767
|
+
}));
|
|
768
|
+
}
|
|
769
|
+
case "console": return await executeConsoleAction({
|
|
770
|
+
input: params,
|
|
771
|
+
baseUrl,
|
|
772
|
+
profile,
|
|
773
|
+
proxyRequest
|
|
774
|
+
});
|
|
775
|
+
case "pdf": {
|
|
776
|
+
const targetId = typeof params.targetId === "string" ? params.targetId.trim() : void 0;
|
|
777
|
+
const result = proxyRequest ? await proxyRequest({
|
|
778
|
+
method: "POST",
|
|
779
|
+
path: "/pdf",
|
|
780
|
+
profile,
|
|
781
|
+
body: { targetId }
|
|
782
|
+
}) : await browserToolDeps.browserPdfSave(baseUrl, {
|
|
783
|
+
targetId,
|
|
784
|
+
profile
|
|
785
|
+
});
|
|
786
|
+
return {
|
|
787
|
+
content: [{
|
|
788
|
+
type: "text",
|
|
789
|
+
text: `FILE:${result.path}`
|
|
790
|
+
}],
|
|
791
|
+
details: result
|
|
792
|
+
};
|
|
793
|
+
}
|
|
794
|
+
case "upload": {
|
|
795
|
+
const paths = Array.isArray(params.paths) ? params.paths.map((p) => String(p)) : [];
|
|
796
|
+
if (paths.length === 0) throw new Error("paths required");
|
|
797
|
+
const uploadPathsResult = await resolveExistingPathsWithinRoot({
|
|
798
|
+
rootDir: DEFAULT_UPLOAD_DIR,
|
|
799
|
+
requestedPaths: paths,
|
|
800
|
+
scopeLabel: `uploads directory (${DEFAULT_UPLOAD_DIR})`
|
|
801
|
+
});
|
|
802
|
+
if (!uploadPathsResult.ok) throw new Error(uploadPathsResult.error);
|
|
803
|
+
const normalizedPaths = uploadPathsResult.paths;
|
|
804
|
+
const ref = readStringParam(params, "ref");
|
|
805
|
+
const inputRef = readStringParam(params, "inputRef");
|
|
806
|
+
const element = readStringParam(params, "element");
|
|
807
|
+
const { targetId, timeoutMs } = readOptionalTargetAndTimeout(params);
|
|
808
|
+
if (proxyRequest) return jsonResult(await proxyRequest({
|
|
809
|
+
method: "POST",
|
|
810
|
+
path: "/hooks/file-chooser",
|
|
811
|
+
profile,
|
|
812
|
+
body: {
|
|
813
|
+
paths: normalizedPaths,
|
|
814
|
+
ref,
|
|
815
|
+
inputRef,
|
|
816
|
+
element,
|
|
817
|
+
targetId,
|
|
818
|
+
timeoutMs
|
|
819
|
+
}
|
|
820
|
+
}));
|
|
821
|
+
return jsonResult(await browserToolDeps.browserArmFileChooser(baseUrl, {
|
|
822
|
+
paths: normalizedPaths,
|
|
823
|
+
ref,
|
|
824
|
+
inputRef,
|
|
825
|
+
element,
|
|
826
|
+
targetId,
|
|
827
|
+
timeoutMs,
|
|
828
|
+
profile
|
|
829
|
+
}));
|
|
830
|
+
}
|
|
831
|
+
case "dialog": {
|
|
832
|
+
const accept = Boolean(params.accept);
|
|
833
|
+
const promptText = typeof params.promptText === "string" ? params.promptText : void 0;
|
|
834
|
+
const { targetId, timeoutMs } = readOptionalTargetAndTimeout(params);
|
|
835
|
+
if (proxyRequest) return jsonResult(await proxyRequest({
|
|
836
|
+
method: "POST",
|
|
837
|
+
path: "/hooks/dialog",
|
|
838
|
+
profile,
|
|
839
|
+
body: {
|
|
840
|
+
accept,
|
|
841
|
+
promptText,
|
|
842
|
+
targetId,
|
|
843
|
+
timeoutMs
|
|
844
|
+
}
|
|
845
|
+
}));
|
|
846
|
+
return jsonResult(await browserToolDeps.browserArmDialog(baseUrl, {
|
|
847
|
+
accept,
|
|
848
|
+
promptText,
|
|
849
|
+
targetId,
|
|
850
|
+
timeoutMs,
|
|
851
|
+
profile
|
|
852
|
+
}));
|
|
853
|
+
}
|
|
854
|
+
case "act": {
|
|
855
|
+
const request = readActRequestParam(params);
|
|
856
|
+
if (!request) throw new Error("request required");
|
|
857
|
+
return await executeActAction({
|
|
858
|
+
request,
|
|
859
|
+
baseUrl,
|
|
860
|
+
profile,
|
|
861
|
+
proxyRequest
|
|
862
|
+
});
|
|
863
|
+
}
|
|
864
|
+
default: throw new Error(`Unknown action: ${action}`);
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
//#endregion
|
|
870
|
+
//#region extensions/browser/src/cli/browser-cli-shared.ts
|
|
871
|
+
function normalizeQuery(query) {
|
|
872
|
+
if (!query) return;
|
|
873
|
+
const out = {};
|
|
874
|
+
for (const [key, value] of Object.entries(query)) {
|
|
875
|
+
if (value === void 0) continue;
|
|
876
|
+
out[key] = String(value);
|
|
877
|
+
}
|
|
878
|
+
return Object.keys(out).length ? out : void 0;
|
|
879
|
+
}
|
|
880
|
+
async function callBrowserRequest(opts, params, extra) {
|
|
881
|
+
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;
|
|
882
|
+
const resolvedTimeout = typeof resolvedTimeoutMs === "number" && Number.isFinite(resolvedTimeoutMs) ? resolvedTimeoutMs : void 0;
|
|
883
|
+
const timeout = typeof resolvedTimeout === "number" ? String(resolvedTimeout) : opts.timeout;
|
|
884
|
+
const payload = await callGatewayFromCli("browser.request", {
|
|
885
|
+
...opts,
|
|
886
|
+
timeout
|
|
887
|
+
}, {
|
|
888
|
+
method: params.method,
|
|
889
|
+
path: params.path,
|
|
890
|
+
query: normalizeQuery(params.query),
|
|
891
|
+
body: params.body,
|
|
892
|
+
timeoutMs: resolvedTimeout
|
|
893
|
+
}, { progress: extra?.progress });
|
|
894
|
+
if (payload === void 0) throw new Error("Unexpected browser.request response");
|
|
895
|
+
return payload;
|
|
896
|
+
}
|
|
897
|
+
async function callBrowserResize(opts, params, extra) {
|
|
898
|
+
return callBrowserRequest(opts, {
|
|
899
|
+
method: "POST",
|
|
900
|
+
path: "/act",
|
|
901
|
+
query: params.profile ? { profile: params.profile } : void 0,
|
|
902
|
+
body: {
|
|
903
|
+
kind: "resize",
|
|
904
|
+
width: params.width,
|
|
905
|
+
height: params.height,
|
|
906
|
+
targetId: params.targetId?.trim() || void 0
|
|
907
|
+
}
|
|
908
|
+
}, extra);
|
|
909
|
+
}
|
|
910
|
+
//#endregion
|
|
911
|
+
//#region extensions/browser/src/cli/browser-cli-actions-input/shared.ts
|
|
912
|
+
function resolveBrowserActionContext(cmd, parentOpts) {
|
|
913
|
+
const parent = parentOpts(cmd);
|
|
914
|
+
return {
|
|
915
|
+
parent,
|
|
916
|
+
profile: parent?.browserProfile
|
|
917
|
+
};
|
|
918
|
+
}
|
|
919
|
+
async function callBrowserAct(params) {
|
|
920
|
+
return await callBrowserRequest(params.parent, {
|
|
921
|
+
method: "POST",
|
|
922
|
+
path: "/act",
|
|
923
|
+
query: params.profile ? { profile: params.profile } : void 0,
|
|
924
|
+
body: params.body
|
|
925
|
+
}, { timeoutMs: params.timeoutMs ?? 2e4 });
|
|
926
|
+
}
|
|
927
|
+
function logBrowserActionResult(parent, result, successMessage) {
|
|
928
|
+
if (parent?.json) {
|
|
929
|
+
defaultRuntime.writeJson(result);
|
|
930
|
+
return;
|
|
931
|
+
}
|
|
932
|
+
defaultRuntime.log(successMessage);
|
|
933
|
+
}
|
|
934
|
+
function requireRef(ref) {
|
|
935
|
+
const refValue = typeof ref === "string" ? ref.trim() : "";
|
|
936
|
+
if (!refValue) {
|
|
937
|
+
defaultRuntime.error(danger("ref is required"));
|
|
938
|
+
defaultRuntime.exit(1);
|
|
939
|
+
return null;
|
|
940
|
+
}
|
|
941
|
+
return refValue;
|
|
942
|
+
}
|
|
943
|
+
async function readFile(path) {
|
|
944
|
+
return await (await import("node:fs/promises")).readFile(path, "utf8");
|
|
945
|
+
}
|
|
946
|
+
async function readFields(opts) {
|
|
947
|
+
const payload = opts.fieldsFile ? await readFile(opts.fieldsFile) : opts.fields ?? "";
|
|
948
|
+
if (!payload.trim()) throw new Error("fields are required");
|
|
949
|
+
const parsed = JSON.parse(payload);
|
|
950
|
+
if (!Array.isArray(parsed)) throw new Error("fields must be an array");
|
|
951
|
+
return parsed.map((entry, index) => {
|
|
952
|
+
if (!entry || typeof entry !== "object") throw new Error(`fields[${index}] must be an object`);
|
|
953
|
+
const rec = entry;
|
|
954
|
+
const parsedField = normalizeBrowserFormField(rec);
|
|
955
|
+
if (!parsedField) throw new Error(`fields[${index}] must include ref`);
|
|
956
|
+
if (rec.value === void 0 || rec.value === null || normalizeBrowserFormFieldValue(rec.value) !== void 0) return parsedField;
|
|
957
|
+
throw new Error(`fields[${index}].value must be string, number, boolean, or null`);
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
//#endregion
|
|
961
|
+
//#region extensions/browser/src/cli/browser-cli-actions-input/register.element.ts
|
|
962
|
+
function registerBrowserElementCommands(browser, parentOpts) {
|
|
963
|
+
const runElementAction = async (params) => {
|
|
964
|
+
const { parent, profile } = resolveBrowserActionContext(params.cmd, parentOpts);
|
|
965
|
+
try {
|
|
966
|
+
const result = await callBrowserAct({
|
|
967
|
+
parent,
|
|
968
|
+
profile,
|
|
969
|
+
body: params.body,
|
|
970
|
+
timeoutMs: params.timeoutMs
|
|
971
|
+
});
|
|
972
|
+
logBrowserActionResult(parent, result, typeof params.successMessage === "function" ? params.successMessage(result) : params.successMessage);
|
|
973
|
+
} catch (err) {
|
|
974
|
+
defaultRuntime.error(danger(String(err)));
|
|
975
|
+
defaultRuntime.exit(1);
|
|
976
|
+
}
|
|
977
|
+
};
|
|
978
|
+
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) => {
|
|
979
|
+
const refValue = requireRef(ref);
|
|
980
|
+
if (!refValue) return;
|
|
981
|
+
const modifiers = opts.modifiers ? String(opts.modifiers).split(",").map((v) => v.trim()).filter(Boolean) : void 0;
|
|
982
|
+
await runElementAction({
|
|
983
|
+
cmd,
|
|
984
|
+
body: {
|
|
985
|
+
kind: "click",
|
|
986
|
+
ref: refValue,
|
|
987
|
+
targetId: opts.targetId?.trim() || void 0,
|
|
988
|
+
doubleClick: Boolean(opts.double),
|
|
989
|
+
button: opts.button?.trim() || void 0,
|
|
990
|
+
modifiers
|
|
991
|
+
},
|
|
992
|
+
successMessage: (result) => {
|
|
993
|
+
const url = result.url;
|
|
994
|
+
return `clicked ref ${refValue}${typeof url === "string" && url ? ` on ${url}` : ""}`;
|
|
995
|
+
}
|
|
996
|
+
});
|
|
997
|
+
});
|
|
998
|
+
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) => {
|
|
999
|
+
const refValue = requireRef(ref);
|
|
1000
|
+
if (!refValue) return;
|
|
1001
|
+
await runElementAction({
|
|
1002
|
+
cmd,
|
|
1003
|
+
body: {
|
|
1004
|
+
kind: "type",
|
|
1005
|
+
ref: refValue,
|
|
1006
|
+
text,
|
|
1007
|
+
submit: Boolean(opts.submit),
|
|
1008
|
+
slowly: Boolean(opts.slowly),
|
|
1009
|
+
targetId: opts.targetId?.trim() || void 0
|
|
1010
|
+
},
|
|
1011
|
+
successMessage: `typed into ref ${refValue}`
|
|
1012
|
+
});
|
|
1013
|
+
});
|
|
1014
|
+
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) => {
|
|
1015
|
+
await runElementAction({
|
|
1016
|
+
cmd,
|
|
1017
|
+
body: {
|
|
1018
|
+
kind: "press",
|
|
1019
|
+
key,
|
|
1020
|
+
targetId: opts.targetId?.trim() || void 0
|
|
1021
|
+
},
|
|
1022
|
+
successMessage: `pressed ${key}`
|
|
1023
|
+
});
|
|
1024
|
+
});
|
|
1025
|
+
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) => {
|
|
1026
|
+
await runElementAction({
|
|
1027
|
+
cmd,
|
|
1028
|
+
body: {
|
|
1029
|
+
kind: "hover",
|
|
1030
|
+
ref,
|
|
1031
|
+
targetId: opts.targetId?.trim() || void 0
|
|
1032
|
+
},
|
|
1033
|
+
successMessage: `hovered ref ${ref}`
|
|
1034
|
+
});
|
|
1035
|
+
});
|
|
1036
|
+
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) => {
|
|
1037
|
+
const refValue = requireRef(ref);
|
|
1038
|
+
if (!refValue) return;
|
|
1039
|
+
const timeoutMs = Number.isFinite(opts.timeoutMs) ? opts.timeoutMs : void 0;
|
|
1040
|
+
await runElementAction({
|
|
1041
|
+
cmd,
|
|
1042
|
+
body: {
|
|
1043
|
+
kind: "scrollIntoView",
|
|
1044
|
+
ref: refValue,
|
|
1045
|
+
targetId: opts.targetId?.trim() || void 0,
|
|
1046
|
+
timeoutMs
|
|
1047
|
+
},
|
|
1048
|
+
timeoutMs,
|
|
1049
|
+
successMessage: `scrolled into view: ${refValue}`
|
|
1050
|
+
});
|
|
1051
|
+
});
|
|
1052
|
+
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) => {
|
|
1053
|
+
await runElementAction({
|
|
1054
|
+
cmd,
|
|
1055
|
+
body: {
|
|
1056
|
+
kind: "drag",
|
|
1057
|
+
startRef,
|
|
1058
|
+
endRef,
|
|
1059
|
+
targetId: opts.targetId?.trim() || void 0
|
|
1060
|
+
},
|
|
1061
|
+
successMessage: `dragged ${startRef} → ${endRef}`
|
|
1062
|
+
});
|
|
1063
|
+
});
|
|
1064
|
+
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) => {
|
|
1065
|
+
await runElementAction({
|
|
1066
|
+
cmd,
|
|
1067
|
+
body: {
|
|
1068
|
+
kind: "select",
|
|
1069
|
+
ref,
|
|
1070
|
+
values,
|
|
1071
|
+
targetId: opts.targetId?.trim() || void 0
|
|
1072
|
+
},
|
|
1073
|
+
successMessage: `selected ${values.join(", ")}`
|
|
1074
|
+
});
|
|
1075
|
+
});
|
|
1076
|
+
}
|
|
1077
|
+
//#endregion
|
|
1078
|
+
//#region extensions/browser/src/cli/browser-cli-actions-input/register.files-downloads.ts
|
|
1079
|
+
async function normalizeUploadPaths(paths) {
|
|
1080
|
+
const result = await resolveExistingPathsWithinRoot({
|
|
1081
|
+
rootDir: DEFAULT_UPLOAD_DIR,
|
|
1082
|
+
requestedPaths: paths,
|
|
1083
|
+
scopeLabel: `uploads directory (${DEFAULT_UPLOAD_DIR})`
|
|
1084
|
+
});
|
|
1085
|
+
if (!result.ok) throw new Error(result.error);
|
|
1086
|
+
return result.paths;
|
|
1087
|
+
}
|
|
1088
|
+
async function runBrowserPostAction(params) {
|
|
1089
|
+
try {
|
|
1090
|
+
const result = await callBrowserRequest(params.parent, {
|
|
1091
|
+
method: "POST",
|
|
1092
|
+
path: params.path,
|
|
1093
|
+
query: params.profile ? { profile: params.profile } : void 0,
|
|
1094
|
+
body: params.body
|
|
1095
|
+
}, { timeoutMs: params.timeoutMs });
|
|
1096
|
+
if (params.parent?.json) {
|
|
1097
|
+
defaultRuntime.writeJson(result);
|
|
1098
|
+
return;
|
|
1099
|
+
}
|
|
1100
|
+
defaultRuntime.log(params.describeSuccess(result));
|
|
1101
|
+
} catch (err) {
|
|
1102
|
+
defaultRuntime.error(danger(String(err)));
|
|
1103
|
+
defaultRuntime.exit(1);
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
function registerBrowserFilesAndDownloadsCommands(browser, parentOpts) {
|
|
1107
|
+
const resolveTimeoutAndTarget = (opts) => {
|
|
1108
|
+
return {
|
|
1109
|
+
timeoutMs: Number.isFinite(opts.timeoutMs) ? Number(opts.timeoutMs) : void 0,
|
|
1110
|
+
targetId: typeof opts.targetId === "string" ? opts.targetId.trim() || void 0 : void 0
|
|
1111
|
+
};
|
|
1112
|
+
};
|
|
1113
|
+
const runDownloadCommand = async (cmd, opts, request) => {
|
|
1114
|
+
const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
|
|
1115
|
+
const { timeoutMs, targetId } = resolveTimeoutAndTarget(opts);
|
|
1116
|
+
await runBrowserPostAction({
|
|
1117
|
+
parent,
|
|
1118
|
+
profile,
|
|
1119
|
+
path: request.path,
|
|
1120
|
+
body: {
|
|
1121
|
+
...request.body,
|
|
1122
|
+
targetId,
|
|
1123
|
+
timeoutMs
|
|
1124
|
+
},
|
|
1125
|
+
timeoutMs: timeoutMs ?? 2e4,
|
|
1126
|
+
describeSuccess: (result) => `downloaded: ${shortenHomePath(result.download.path)}`
|
|
1127
|
+
});
|
|
1128
|
+
};
|
|
1129
|
+
browser.command("upload").description("Arm file upload for the next file chooser").argument("<paths...>", "File paths to upload (must be within Vora temp uploads dir, e.g. /tmp/vora/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) => {
|
|
1130
|
+
const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
|
|
1131
|
+
const normalizedPaths = await normalizeUploadPaths(paths);
|
|
1132
|
+
const { timeoutMs, targetId } = resolveTimeoutAndTarget(opts);
|
|
1133
|
+
await runBrowserPostAction({
|
|
1134
|
+
parent,
|
|
1135
|
+
profile,
|
|
1136
|
+
path: "/hooks/file-chooser",
|
|
1137
|
+
body: {
|
|
1138
|
+
paths: normalizedPaths,
|
|
1139
|
+
ref: opts.ref?.trim() || void 0,
|
|
1140
|
+
inputRef: opts.inputRef?.trim() || void 0,
|
|
1141
|
+
element: opts.element?.trim() || void 0,
|
|
1142
|
+
targetId,
|
|
1143
|
+
timeoutMs
|
|
1144
|
+
},
|
|
1145
|
+
timeoutMs: timeoutMs ?? 2e4,
|
|
1146
|
+
describeSuccess: () => `upload armed for ${paths.length} file(s)`
|
|
1147
|
+
});
|
|
1148
|
+
});
|
|
1149
|
+
browser.command("waitfordownload").description("Wait for the next download (and save it)").argument("[path]", "Save path within vora temp downloads dir (default: /tmp/vora/downloads/...; fallback: os.tmpdir()/vora/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) => {
|
|
1150
|
+
await runDownloadCommand(cmd, opts, {
|
|
1151
|
+
path: "/wait/download",
|
|
1152
|
+
body: { path: outPath?.trim() || void 0 }
|
|
1153
|
+
});
|
|
1154
|
+
});
|
|
1155
|
+
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 vora temp downloads dir (e.g. report.pdf or /tmp/vora/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) => {
|
|
1156
|
+
await runDownloadCommand(cmd, opts, {
|
|
1157
|
+
path: "/download",
|
|
1158
|
+
body: {
|
|
1159
|
+
ref,
|
|
1160
|
+
path: outPath
|
|
1161
|
+
}
|
|
1162
|
+
});
|
|
1163
|
+
});
|
|
1164
|
+
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) => {
|
|
1165
|
+
const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
|
|
1166
|
+
const accept = opts.accept ? true : opts.dismiss ? false : void 0;
|
|
1167
|
+
if (accept === void 0) {
|
|
1168
|
+
defaultRuntime.error(danger("Specify --accept or --dismiss"));
|
|
1169
|
+
defaultRuntime.exit(1);
|
|
1170
|
+
return;
|
|
1171
|
+
}
|
|
1172
|
+
const { timeoutMs, targetId } = resolveTimeoutAndTarget(opts);
|
|
1173
|
+
await runBrowserPostAction({
|
|
1174
|
+
parent,
|
|
1175
|
+
profile,
|
|
1176
|
+
path: "/hooks/dialog",
|
|
1177
|
+
body: {
|
|
1178
|
+
accept,
|
|
1179
|
+
promptText: opts.prompt?.trim() || void 0,
|
|
1180
|
+
targetId,
|
|
1181
|
+
timeoutMs
|
|
1182
|
+
},
|
|
1183
|
+
timeoutMs: timeoutMs ?? 2e4,
|
|
1184
|
+
describeSuccess: () => "dialog armed"
|
|
1185
|
+
});
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1188
|
+
//#endregion
|
|
1189
|
+
//#region extensions/browser/src/cli/browser-cli-actions-input/register.form-wait-eval.ts
|
|
1190
|
+
function registerBrowserFormWaitEvalCommands(browser, parentOpts) {
|
|
1191
|
+
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) => {
|
|
1192
|
+
const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
|
|
1193
|
+
try {
|
|
1194
|
+
const fields = await readFields({
|
|
1195
|
+
fields: opts.fields,
|
|
1196
|
+
fieldsFile: opts.fieldsFile
|
|
1197
|
+
});
|
|
1198
|
+
logBrowserActionResult(parent, await callBrowserAct({
|
|
1199
|
+
parent,
|
|
1200
|
+
profile,
|
|
1201
|
+
body: {
|
|
1202
|
+
kind: "fill",
|
|
1203
|
+
fields,
|
|
1204
|
+
targetId: opts.targetId?.trim() || void 0
|
|
1205
|
+
}
|
|
1206
|
+
}), `filled ${fields.length} field(s)`);
|
|
1207
|
+
} catch (err) {
|
|
1208
|
+
defaultRuntime.error(danger(String(err)));
|
|
1209
|
+
defaultRuntime.exit(1);
|
|
1210
|
+
}
|
|
1211
|
+
});
|
|
1212
|
+
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) => {
|
|
1213
|
+
const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
|
|
1214
|
+
try {
|
|
1215
|
+
const sel = selector?.trim() || void 0;
|
|
1216
|
+
const load = opts.load === "load" || opts.load === "domcontentloaded" || opts.load === "networkidle" ? opts.load : void 0;
|
|
1217
|
+
const timeoutMs = Number.isFinite(opts.timeoutMs) ? opts.timeoutMs : void 0;
|
|
1218
|
+
logBrowserActionResult(parent, await callBrowserAct({
|
|
1219
|
+
parent,
|
|
1220
|
+
profile,
|
|
1221
|
+
body: {
|
|
1222
|
+
kind: "wait",
|
|
1223
|
+
timeMs: Number.isFinite(opts.time) ? opts.time : void 0,
|
|
1224
|
+
text: opts.text?.trim() || void 0,
|
|
1225
|
+
textGone: opts.textGone?.trim() || void 0,
|
|
1226
|
+
selector: sel,
|
|
1227
|
+
url: opts.url?.trim() || void 0,
|
|
1228
|
+
loadState: load,
|
|
1229
|
+
fn: opts.fn?.trim() || void 0,
|
|
1230
|
+
targetId: opts.targetId?.trim() || void 0,
|
|
1231
|
+
timeoutMs
|
|
1232
|
+
},
|
|
1233
|
+
timeoutMs
|
|
1234
|
+
}), "wait complete");
|
|
1235
|
+
} catch (err) {
|
|
1236
|
+
defaultRuntime.error(danger(String(err)));
|
|
1237
|
+
defaultRuntime.exit(1);
|
|
1238
|
+
}
|
|
1239
|
+
});
|
|
1240
|
+
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) => {
|
|
1241
|
+
const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
|
|
1242
|
+
if (!opts.fn) {
|
|
1243
|
+
defaultRuntime.error(danger("Missing --fn"));
|
|
1244
|
+
defaultRuntime.exit(1);
|
|
1245
|
+
return;
|
|
1246
|
+
}
|
|
1247
|
+
try {
|
|
1248
|
+
const result = await callBrowserAct({
|
|
1249
|
+
parent,
|
|
1250
|
+
profile,
|
|
1251
|
+
body: {
|
|
1252
|
+
kind: "evaluate",
|
|
1253
|
+
fn: opts.fn,
|
|
1254
|
+
ref: opts.ref?.trim() || void 0,
|
|
1255
|
+
targetId: opts.targetId?.trim() || void 0
|
|
1256
|
+
}
|
|
1257
|
+
});
|
|
1258
|
+
if (parent?.json) {
|
|
1259
|
+
defaultRuntime.writeJson(result);
|
|
1260
|
+
return;
|
|
1261
|
+
}
|
|
1262
|
+
defaultRuntime.writeJson(result.result ?? null);
|
|
1263
|
+
} catch (err) {
|
|
1264
|
+
defaultRuntime.error(danger(String(err)));
|
|
1265
|
+
defaultRuntime.exit(1);
|
|
1266
|
+
}
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1269
|
+
//#endregion
|
|
1270
|
+
//#region extensions/browser/src/cli/browser-cli-resize.ts
|
|
1271
|
+
async function runBrowserResizeWithOutput(params) {
|
|
1272
|
+
const { width, height } = params;
|
|
1273
|
+
if (!Number.isFinite(width) || !Number.isFinite(height)) {
|
|
1274
|
+
defaultRuntime.error(danger("width and height must be numbers"));
|
|
1275
|
+
defaultRuntime.exit(1);
|
|
1276
|
+
return;
|
|
1277
|
+
}
|
|
1278
|
+
const result = await callBrowserResize(params.parent, {
|
|
1279
|
+
profile: params.profile,
|
|
1280
|
+
width,
|
|
1281
|
+
height,
|
|
1282
|
+
targetId: params.targetId
|
|
1283
|
+
}, { timeoutMs: params.timeoutMs ?? 2e4 });
|
|
1284
|
+
if (params.parent?.json) {
|
|
1285
|
+
defaultRuntime.writeJson(result);
|
|
1286
|
+
return;
|
|
1287
|
+
}
|
|
1288
|
+
defaultRuntime.log(params.successMessage);
|
|
1289
|
+
}
|
|
1290
|
+
//#endregion
|
|
1291
|
+
//#region extensions/browser/src/cli/browser-cli-actions-input/register.navigation.ts
|
|
1292
|
+
function registerBrowserNavigationCommands(browser, parentOpts) {
|
|
1293
|
+
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) => {
|
|
1294
|
+
const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
|
|
1295
|
+
try {
|
|
1296
|
+
const result = await callBrowserRequest(parent, {
|
|
1297
|
+
method: "POST",
|
|
1298
|
+
path: "/navigate",
|
|
1299
|
+
query: profile ? { profile } : void 0,
|
|
1300
|
+
body: {
|
|
1301
|
+
url,
|
|
1302
|
+
targetId: opts.targetId?.trim() || void 0
|
|
1303
|
+
}
|
|
1304
|
+
}, { timeoutMs: 2e4 });
|
|
1305
|
+
if (parent?.json) {
|
|
1306
|
+
defaultRuntime.writeJson(result);
|
|
1307
|
+
return;
|
|
1308
|
+
}
|
|
1309
|
+
defaultRuntime.log(`navigated to ${result.url ?? url}`);
|
|
1310
|
+
} catch (err) {
|
|
1311
|
+
defaultRuntime.error(danger(String(err)));
|
|
1312
|
+
defaultRuntime.exit(1);
|
|
1313
|
+
}
|
|
1314
|
+
});
|
|
1315
|
+
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) => {
|
|
1316
|
+
const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);
|
|
1317
|
+
try {
|
|
1318
|
+
await runBrowserResizeWithOutput({
|
|
1319
|
+
parent,
|
|
1320
|
+
profile,
|
|
1321
|
+
width,
|
|
1322
|
+
height,
|
|
1323
|
+
targetId: opts.targetId,
|
|
1324
|
+
timeoutMs: 2e4,
|
|
1325
|
+
successMessage: `resized to ${width}x${height}`
|
|
1326
|
+
});
|
|
1327
|
+
} catch (err) {
|
|
1328
|
+
defaultRuntime.error(danger(String(err)));
|
|
1329
|
+
defaultRuntime.exit(1);
|
|
1330
|
+
}
|
|
1331
|
+
});
|
|
1332
|
+
}
|
|
1333
|
+
//#endregion
|
|
1334
|
+
//#region extensions/browser/src/cli/browser-cli-actions-input/register.ts
|
|
1335
|
+
function registerBrowserActionInputCommands(browser, parentOpts) {
|
|
1336
|
+
registerBrowserNavigationCommands(browser, parentOpts);
|
|
1337
|
+
registerBrowserElementCommands(browser, parentOpts);
|
|
1338
|
+
registerBrowserFilesAndDownloadsCommands(browser, parentOpts);
|
|
1339
|
+
registerBrowserFormWaitEvalCommands(browser, parentOpts);
|
|
1340
|
+
}
|
|
1341
|
+
//#endregion
|
|
1342
|
+
//#region extensions/browser/src/cli/browser-cli-actions-observe.ts
|
|
1343
|
+
function runBrowserObserve(action) {
|
|
1344
|
+
return runCommandWithRuntime(defaultRuntime, action, (err) => {
|
|
1345
|
+
defaultRuntime.error(danger(String(err)));
|
|
1346
|
+
defaultRuntime.exit(1);
|
|
1347
|
+
});
|
|
1348
|
+
}
|
|
1349
|
+
function registerBrowserActionObserveCommands(browser, parentOpts) {
|
|
1350
|
+
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) => {
|
|
1351
|
+
const parent = parentOpts(cmd);
|
|
1352
|
+
const profile = parent?.browserProfile;
|
|
1353
|
+
await runBrowserObserve(async () => {
|
|
1354
|
+
const result = await callBrowserRequest(parent, {
|
|
1355
|
+
method: "GET",
|
|
1356
|
+
path: "/console",
|
|
1357
|
+
query: {
|
|
1358
|
+
level: opts.level?.trim() || void 0,
|
|
1359
|
+
targetId: opts.targetId?.trim() || void 0,
|
|
1360
|
+
profile
|
|
1361
|
+
}
|
|
1362
|
+
}, { timeoutMs: 2e4 });
|
|
1363
|
+
if (parent?.json) {
|
|
1364
|
+
defaultRuntime.writeJson(result);
|
|
1365
|
+
return;
|
|
1366
|
+
}
|
|
1367
|
+
defaultRuntime.writeJson(result.messages);
|
|
1368
|
+
});
|
|
1369
|
+
});
|
|
1370
|
+
browser.command("pdf").description("Save page as PDF").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (opts, cmd) => {
|
|
1371
|
+
const parent = parentOpts(cmd);
|
|
1372
|
+
const profile = parent?.browserProfile;
|
|
1373
|
+
await runBrowserObserve(async () => {
|
|
1374
|
+
const result = await callBrowserRequest(parent, {
|
|
1375
|
+
method: "POST",
|
|
1376
|
+
path: "/pdf",
|
|
1377
|
+
query: profile ? { profile } : void 0,
|
|
1378
|
+
body: { targetId: opts.targetId?.trim() || void 0 }
|
|
1379
|
+
}, { timeoutMs: 2e4 });
|
|
1380
|
+
if (parent?.json) {
|
|
1381
|
+
defaultRuntime.writeJson(result);
|
|
1382
|
+
return;
|
|
1383
|
+
}
|
|
1384
|
+
defaultRuntime.log(`PDF: ${shortenHomePath(result.path)}`);
|
|
1385
|
+
});
|
|
1386
|
+
});
|
|
1387
|
+
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) => {
|
|
1388
|
+
const parent = parentOpts(cmd);
|
|
1389
|
+
const profile = parent?.browserProfile;
|
|
1390
|
+
await runBrowserObserve(async () => {
|
|
1391
|
+
const timeoutMs = Number.isFinite(opts.timeoutMs) ? opts.timeoutMs : void 0;
|
|
1392
|
+
const maxChars = Number.isFinite(opts.maxChars) ? opts.maxChars : void 0;
|
|
1393
|
+
const result = await callBrowserRequest(parent, {
|
|
1394
|
+
method: "POST",
|
|
1395
|
+
path: "/response/body",
|
|
1396
|
+
query: profile ? { profile } : void 0,
|
|
1397
|
+
body: {
|
|
1398
|
+
url,
|
|
1399
|
+
targetId: opts.targetId?.trim() || void 0,
|
|
1400
|
+
timeoutMs,
|
|
1401
|
+
maxChars
|
|
1402
|
+
}
|
|
1403
|
+
}, { timeoutMs: timeoutMs ?? 2e4 });
|
|
1404
|
+
if (parent?.json) {
|
|
1405
|
+
defaultRuntime.writeJson(result);
|
|
1406
|
+
return;
|
|
1407
|
+
}
|
|
1408
|
+
defaultRuntime.log(result.response.body);
|
|
1409
|
+
});
|
|
1410
|
+
});
|
|
1411
|
+
}
|
|
1412
|
+
//#endregion
|
|
1413
|
+
//#region extensions/browser/src/cli/browser-cli-debug.ts
|
|
1414
|
+
const BROWSER_DEBUG_TIMEOUT_MS = 2e4;
|
|
1415
|
+
function runBrowserDebug(action) {
|
|
1416
|
+
return runCommandWithRuntime(defaultRuntime, action, (err) => {
|
|
1417
|
+
defaultRuntime.error(danger(String(err)));
|
|
1418
|
+
defaultRuntime.exit(1);
|
|
1419
|
+
});
|
|
1420
|
+
}
|
|
1421
|
+
async function withDebugContext(cmd, parentOpts, action) {
|
|
1422
|
+
const parent = parentOpts(cmd);
|
|
1423
|
+
await runBrowserDebug(() => action({
|
|
1424
|
+
parent,
|
|
1425
|
+
profile: parent.browserProfile
|
|
1426
|
+
}));
|
|
1427
|
+
}
|
|
1428
|
+
function printJsonResult$1(parent, result) {
|
|
1429
|
+
if (!parent.json) return false;
|
|
1430
|
+
defaultRuntime.writeJson(result);
|
|
1431
|
+
return true;
|
|
1432
|
+
}
|
|
1433
|
+
async function callDebugRequest(parent, params) {
|
|
1434
|
+
return callBrowserRequest(parent, params, { timeoutMs: BROWSER_DEBUG_TIMEOUT_MS });
|
|
1435
|
+
}
|
|
1436
|
+
function resolveProfileQuery$1(profile) {
|
|
1437
|
+
return profile ? { profile } : void 0;
|
|
1438
|
+
}
|
|
1439
|
+
function resolveDebugQuery(params) {
|
|
1440
|
+
return {
|
|
1441
|
+
targetId: typeof params.targetId === "string" ? params.targetId.trim() || void 0 : void 0,
|
|
1442
|
+
filter: typeof params.filter === "string" ? params.filter.trim() || void 0 : void 0,
|
|
1443
|
+
clear: Boolean(params.clear),
|
|
1444
|
+
profile: params.profile
|
|
1445
|
+
};
|
|
1446
|
+
}
|
|
1447
|
+
function registerBrowserDebugCommands(browser, parentOpts) {
|
|
1448
|
+
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) => {
|
|
1449
|
+
await withDebugContext(cmd, parentOpts, async ({ parent, profile }) => {
|
|
1450
|
+
if (printJsonResult$1(parent, await callDebugRequest(parent, {
|
|
1451
|
+
method: "POST",
|
|
1452
|
+
path: "/highlight",
|
|
1453
|
+
query: resolveProfileQuery$1(profile),
|
|
1454
|
+
body: {
|
|
1455
|
+
ref: ref.trim(),
|
|
1456
|
+
targetId: opts.targetId?.trim() || void 0
|
|
1457
|
+
}
|
|
1458
|
+
}))) return;
|
|
1459
|
+
defaultRuntime.log(`highlighted ${ref.trim()}`);
|
|
1460
|
+
});
|
|
1461
|
+
});
|
|
1462
|
+
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) => {
|
|
1463
|
+
await withDebugContext(cmd, parentOpts, async ({ parent, profile }) => {
|
|
1464
|
+
const result = await callDebugRequest(parent, {
|
|
1465
|
+
method: "GET",
|
|
1466
|
+
path: "/errors",
|
|
1467
|
+
query: resolveDebugQuery({
|
|
1468
|
+
targetId: opts.targetId,
|
|
1469
|
+
clear: opts.clear,
|
|
1470
|
+
profile
|
|
1471
|
+
})
|
|
1472
|
+
});
|
|
1473
|
+
if (printJsonResult$1(parent, result)) return;
|
|
1474
|
+
if (!result.errors.length) {
|
|
1475
|
+
defaultRuntime.log("No page errors.");
|
|
1476
|
+
return;
|
|
1477
|
+
}
|
|
1478
|
+
defaultRuntime.log(result.errors.map((e) => `${e.timestamp} ${e.name ? `${e.name}: ` : ""}${e.message}`).join("\n"));
|
|
1479
|
+
});
|
|
1480
|
+
});
|
|
1481
|
+
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) => {
|
|
1482
|
+
await withDebugContext(cmd, parentOpts, async ({ parent, profile }) => {
|
|
1483
|
+
const result = await callDebugRequest(parent, {
|
|
1484
|
+
method: "GET",
|
|
1485
|
+
path: "/requests",
|
|
1486
|
+
query: resolveDebugQuery({
|
|
1487
|
+
targetId: opts.targetId,
|
|
1488
|
+
filter: opts.filter,
|
|
1489
|
+
clear: opts.clear,
|
|
1490
|
+
profile
|
|
1491
|
+
})
|
|
1492
|
+
});
|
|
1493
|
+
if (printJsonResult$1(parent, result)) return;
|
|
1494
|
+
if (!result.requests.length) {
|
|
1495
|
+
defaultRuntime.log("No requests recorded.");
|
|
1496
|
+
return;
|
|
1497
|
+
}
|
|
1498
|
+
defaultRuntime.log(result.requests.map((r) => {
|
|
1499
|
+
const status = typeof r.status === "number" ? ` ${r.status}` : "";
|
|
1500
|
+
const ok = r.ok === true ? " ok" : r.ok === false ? " fail" : "";
|
|
1501
|
+
const fail = r.failureText ? ` (${r.failureText})` : "";
|
|
1502
|
+
return `${r.timestamp} ${r.method}${status}${ok} ${r.url}${fail}`;
|
|
1503
|
+
}).join("\n"));
|
|
1504
|
+
});
|
|
1505
|
+
});
|
|
1506
|
+
const trace = browser.command("trace").description("Record a Playwright trace");
|
|
1507
|
+
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) => {
|
|
1508
|
+
await withDebugContext(cmd, parentOpts, async ({ parent, profile }) => {
|
|
1509
|
+
if (printJsonResult$1(parent, await callDebugRequest(parent, {
|
|
1510
|
+
method: "POST",
|
|
1511
|
+
path: "/trace/start",
|
|
1512
|
+
query: resolveProfileQuery$1(profile),
|
|
1513
|
+
body: {
|
|
1514
|
+
targetId: opts.targetId?.trim() || void 0,
|
|
1515
|
+
screenshots: Boolean(opts.screenshots),
|
|
1516
|
+
snapshots: Boolean(opts.snapshots),
|
|
1517
|
+
sources: Boolean(opts.sources)
|
|
1518
|
+
}
|
|
1519
|
+
}))) return;
|
|
1520
|
+
defaultRuntime.log("trace started");
|
|
1521
|
+
});
|
|
1522
|
+
});
|
|
1523
|
+
trace.command("stop").description("Stop trace recording and write a .zip").option("--out <path>", "Output path within vora temp dir (e.g. trace.zip or /tmp/vora/trace.zip)").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (opts, cmd) => {
|
|
1524
|
+
await withDebugContext(cmd, parentOpts, async ({ parent, profile }) => {
|
|
1525
|
+
const result = await callDebugRequest(parent, {
|
|
1526
|
+
method: "POST",
|
|
1527
|
+
path: "/trace/stop",
|
|
1528
|
+
query: resolveProfileQuery$1(profile),
|
|
1529
|
+
body: {
|
|
1530
|
+
targetId: opts.targetId?.trim() || void 0,
|
|
1531
|
+
path: opts.out?.trim() || void 0
|
|
1532
|
+
}
|
|
1533
|
+
});
|
|
1534
|
+
if (printJsonResult$1(parent, result)) return;
|
|
1535
|
+
defaultRuntime.log(`TRACE:${shortenHomePath(result.path)}`);
|
|
1536
|
+
});
|
|
1537
|
+
});
|
|
1538
|
+
}
|
|
1539
|
+
//#endregion
|
|
1540
|
+
//#region extensions/browser/src/cli/browser-cli-examples.ts
|
|
1541
|
+
const browserCoreExamples = [
|
|
1542
|
+
"vora browser status",
|
|
1543
|
+
"vora browser start",
|
|
1544
|
+
"vora browser stop",
|
|
1545
|
+
"vora browser tabs",
|
|
1546
|
+
"vora browser open https://example.com",
|
|
1547
|
+
"vora browser focus abcd1234",
|
|
1548
|
+
"vora browser close abcd1234",
|
|
1549
|
+
"vora browser screenshot",
|
|
1550
|
+
"vora browser screenshot --full-page",
|
|
1551
|
+
"vora browser screenshot --ref 12",
|
|
1552
|
+
"vora browser snapshot",
|
|
1553
|
+
"vora browser snapshot --format aria --limit 200",
|
|
1554
|
+
"vora browser snapshot --efficient",
|
|
1555
|
+
"vora browser snapshot --labels"
|
|
1556
|
+
];
|
|
1557
|
+
const browserActionExamples = [
|
|
1558
|
+
"vora browser navigate https://example.com",
|
|
1559
|
+
"vora browser resize 1280 720",
|
|
1560
|
+
"vora browser click 12 --double",
|
|
1561
|
+
"vora browser type 23 \"hello\" --submit",
|
|
1562
|
+
"vora browser press Enter",
|
|
1563
|
+
"vora browser hover 44",
|
|
1564
|
+
"vora browser drag 10 11",
|
|
1565
|
+
"vora browser select 9 OptionA OptionB",
|
|
1566
|
+
"vora browser upload /tmp/vora/uploads/file.pdf",
|
|
1567
|
+
"vora browser fill --fields '[{\"ref\":\"1\",\"value\":\"Ada\"}]'",
|
|
1568
|
+
"vora browser dialog --accept",
|
|
1569
|
+
"vora browser wait --text \"Done\"",
|
|
1570
|
+
"vora browser evaluate --fn '(el) => el.textContent' --ref 7",
|
|
1571
|
+
"vora browser console --level error",
|
|
1572
|
+
"vora browser pdf"
|
|
1573
|
+
];
|
|
1574
|
+
//#endregion
|
|
1575
|
+
//#region extensions/browser/src/cli/browser-cli-inspect.ts
|
|
1576
|
+
function registerBrowserInspectCommands(browser, parentOpts) {
|
|
1577
|
+
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) => {
|
|
1578
|
+
const parent = parentOpts(cmd);
|
|
1579
|
+
const profile = parent?.browserProfile;
|
|
1580
|
+
try {
|
|
1581
|
+
const result = await callBrowserRequest(parent, {
|
|
1582
|
+
method: "POST",
|
|
1583
|
+
path: "/screenshot",
|
|
1584
|
+
query: profile ? { profile } : void 0,
|
|
1585
|
+
body: {
|
|
1586
|
+
targetId: targetId?.trim() || void 0,
|
|
1587
|
+
fullPage: Boolean(opts.fullPage),
|
|
1588
|
+
ref: opts.ref?.trim() || void 0,
|
|
1589
|
+
element: opts.element?.trim() || void 0,
|
|
1590
|
+
type: opts.type === "jpeg" ? "jpeg" : "png"
|
|
1591
|
+
}
|
|
1592
|
+
}, { timeoutMs: 2e4 });
|
|
1593
|
+
if (parent?.json) {
|
|
1594
|
+
defaultRuntime.writeJson(result);
|
|
1595
|
+
return;
|
|
1596
|
+
}
|
|
1597
|
+
defaultRuntime.log(`MEDIA:${shortenHomePath(result.path)}`);
|
|
1598
|
+
} catch (err) {
|
|
1599
|
+
defaultRuntime.error(danger(String(err)));
|
|
1600
|
+
defaultRuntime.exit(1);
|
|
1601
|
+
}
|
|
1602
|
+
});
|
|
1603
|
+
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) => {
|
|
1604
|
+
const parent = parentOpts(cmd);
|
|
1605
|
+
const profile = parent?.browserProfile;
|
|
1606
|
+
const format = opts.format === "aria" ? "aria" : "ai";
|
|
1607
|
+
const configMode = format === "ai" && loadConfig().browser?.snapshotDefaults?.mode === "efficient" ? "efficient" : void 0;
|
|
1608
|
+
const mode = opts.efficient === true || opts.mode === "efficient" ? "efficient" : configMode;
|
|
1609
|
+
try {
|
|
1610
|
+
const result = await callBrowserRequest(parent, {
|
|
1611
|
+
method: "GET",
|
|
1612
|
+
path: "/snapshot",
|
|
1613
|
+
query: {
|
|
1614
|
+
format,
|
|
1615
|
+
targetId: opts.targetId?.trim() || void 0,
|
|
1616
|
+
limit: Number.isFinite(opts.limit) ? opts.limit : void 0,
|
|
1617
|
+
interactive: opts.interactive ? true : void 0,
|
|
1618
|
+
compact: opts.compact ? true : void 0,
|
|
1619
|
+
depth: Number.isFinite(opts.depth) ? opts.depth : void 0,
|
|
1620
|
+
selector: opts.selector?.trim() || void 0,
|
|
1621
|
+
frame: opts.frame?.trim() || void 0,
|
|
1622
|
+
labels: opts.labels ? true : void 0,
|
|
1623
|
+
mode,
|
|
1624
|
+
profile
|
|
1625
|
+
}
|
|
1626
|
+
}, { timeoutMs: 2e4 });
|
|
1627
|
+
if (opts.out) {
|
|
1628
|
+
const fs = await import("node:fs/promises");
|
|
1629
|
+
if (result.format === "ai") await fs.writeFile(opts.out, result.snapshot, "utf8");
|
|
1630
|
+
else {
|
|
1631
|
+
const payload = JSON.stringify(result, null, 2);
|
|
1632
|
+
await fs.writeFile(opts.out, payload, "utf8");
|
|
1633
|
+
}
|
|
1634
|
+
if (parent?.json) defaultRuntime.writeJson({
|
|
1635
|
+
ok: true,
|
|
1636
|
+
out: opts.out,
|
|
1637
|
+
...result.format === "ai" && result.imagePath ? { imagePath: result.imagePath } : {}
|
|
1638
|
+
});
|
|
1639
|
+
else {
|
|
1640
|
+
defaultRuntime.log(shortenHomePath(opts.out));
|
|
1641
|
+
if (result.format === "ai" && result.imagePath) defaultRuntime.log(`MEDIA:${shortenHomePath(result.imagePath)}`);
|
|
1642
|
+
}
|
|
1643
|
+
return;
|
|
1644
|
+
}
|
|
1645
|
+
if (parent?.json) {
|
|
1646
|
+
defaultRuntime.writeJson(result);
|
|
1647
|
+
return;
|
|
1648
|
+
}
|
|
1649
|
+
if (result.format === "ai") {
|
|
1650
|
+
defaultRuntime.log(result.snapshot);
|
|
1651
|
+
if (result.imagePath) defaultRuntime.log(`MEDIA:${shortenHomePath(result.imagePath)}`);
|
|
1652
|
+
return;
|
|
1653
|
+
}
|
|
1654
|
+
const nodes = "nodes" in result ? result.nodes : [];
|
|
1655
|
+
defaultRuntime.log(nodes.map((n) => {
|
|
1656
|
+
const indent = " ".repeat(Math.min(20, n.depth));
|
|
1657
|
+
const name = n.name ? ` "${n.name}"` : "";
|
|
1658
|
+
const value = n.value ? ` = "${n.value}"` : "";
|
|
1659
|
+
return `${indent}- ${n.role}${name}${value}`;
|
|
1660
|
+
}).join("\n"));
|
|
1661
|
+
} catch (err) {
|
|
1662
|
+
defaultRuntime.error(danger(String(err)));
|
|
1663
|
+
defaultRuntime.exit(1);
|
|
1664
|
+
}
|
|
1665
|
+
});
|
|
1666
|
+
}
|
|
1667
|
+
//#endregion
|
|
1668
|
+
//#region extensions/browser/src/cli/browser-cli-manage.ts
|
|
1669
|
+
const BROWSER_MANAGE_REQUEST_TIMEOUT_MS = 45e3;
|
|
1670
|
+
function resolveProfileQuery(profile) {
|
|
1671
|
+
return profile ? { profile } : void 0;
|
|
1672
|
+
}
|
|
1673
|
+
function printJsonResult(parent, payload) {
|
|
1674
|
+
if (!parent?.json) return false;
|
|
1675
|
+
defaultRuntime.writeJson(payload);
|
|
1676
|
+
return true;
|
|
1677
|
+
}
|
|
1678
|
+
async function callTabAction(parent, profile, body) {
|
|
1679
|
+
return callBrowserRequest(parent, {
|
|
1680
|
+
method: "POST",
|
|
1681
|
+
path: "/tabs/action",
|
|
1682
|
+
query: resolveProfileQuery(profile),
|
|
1683
|
+
body
|
|
1684
|
+
}, { timeoutMs: BROWSER_MANAGE_REQUEST_TIMEOUT_MS });
|
|
1685
|
+
}
|
|
1686
|
+
async function fetchBrowserStatus(parent, profile) {
|
|
1687
|
+
return await callBrowserRequest(parent, {
|
|
1688
|
+
method: "GET",
|
|
1689
|
+
path: "/",
|
|
1690
|
+
query: resolveProfileQuery(profile)
|
|
1691
|
+
}, { timeoutMs: BROWSER_MANAGE_REQUEST_TIMEOUT_MS });
|
|
1692
|
+
}
|
|
1693
|
+
async function runBrowserToggle(parent, params) {
|
|
1694
|
+
await callBrowserRequest(parent, {
|
|
1695
|
+
method: "POST",
|
|
1696
|
+
path: params.path,
|
|
1697
|
+
query: resolveProfileQuery(params.profile)
|
|
1698
|
+
});
|
|
1699
|
+
const status = await fetchBrowserStatus(parent, params.profile);
|
|
1700
|
+
if (printJsonResult(parent, status)) return;
|
|
1701
|
+
const name = status.profile ?? "vora";
|
|
1702
|
+
defaultRuntime.log(info(`🦞 browser [${name}] running: ${status.running}`));
|
|
1703
|
+
}
|
|
1704
|
+
function runBrowserCommand$1(action) {
|
|
1705
|
+
return runCommandWithRuntime(defaultRuntime, action, (err) => {
|
|
1706
|
+
defaultRuntime.error(danger(String(err)));
|
|
1707
|
+
defaultRuntime.exit(1);
|
|
1708
|
+
});
|
|
1709
|
+
}
|
|
1710
|
+
function logBrowserTabs(tabs, json) {
|
|
1711
|
+
if (json) {
|
|
1712
|
+
defaultRuntime.writeJson({ tabs });
|
|
1713
|
+
return;
|
|
1714
|
+
}
|
|
1715
|
+
if (tabs.length === 0) {
|
|
1716
|
+
defaultRuntime.log("No tabs (browser closed or no targets).");
|
|
1717
|
+
return;
|
|
1718
|
+
}
|
|
1719
|
+
defaultRuntime.log(tabs.map((t, i) => `${i + 1}. ${t.title || "(untitled)"}\n ${t.url}\n id: ${t.targetId}`).join("\n"));
|
|
1720
|
+
}
|
|
1721
|
+
function usesChromeMcpTransport(params) {
|
|
1722
|
+
return params.transport === "chrome-mcp" || params.driver === "existing-session";
|
|
1723
|
+
}
|
|
1724
|
+
function formatBrowserConnectionSummary(params) {
|
|
1725
|
+
if (usesChromeMcpTransport(params)) {
|
|
1726
|
+
const userDataDir = params.userDataDir ? shortenHomePath(params.userDataDir) : null;
|
|
1727
|
+
return userDataDir ? `transport: chrome-mcp, userDataDir: ${userDataDir}` : "transport: chrome-mcp";
|
|
1728
|
+
}
|
|
1729
|
+
if (params.isRemote) return `cdpUrl: ${params.cdpUrl ?? "(unset)"}`;
|
|
1730
|
+
return `port: ${params.cdpPort ?? "(unset)"}`;
|
|
1731
|
+
}
|
|
1732
|
+
function registerBrowserManageCommands(browser, parentOpts) {
|
|
1733
|
+
browser.command("status").description("Show browser status").action(async (_opts, cmd) => {
|
|
1734
|
+
const parent = parentOpts(cmd);
|
|
1735
|
+
await runBrowserCommand$1(async () => {
|
|
1736
|
+
const status = await fetchBrowserStatus(parent, parent?.browserProfile);
|
|
1737
|
+
if (printJsonResult(parent, status)) return;
|
|
1738
|
+
const detectedPath = status.detectedExecutablePath ?? status.executablePath;
|
|
1739
|
+
const detectedDisplay = detectedPath ? shortenHomePath(detectedPath) : "auto";
|
|
1740
|
+
defaultRuntime.log([
|
|
1741
|
+
`profile: ${status.profile ?? "vora"}`,
|
|
1742
|
+
`enabled: ${status.enabled}`,
|
|
1743
|
+
`running: ${status.running}`,
|
|
1744
|
+
`transport: ${usesChromeMcpTransport(status) ? "chrome-mcp" : status.transport ?? "cdp"}`,
|
|
1745
|
+
...!usesChromeMcpTransport(status) ? [`cdpPort: ${status.cdpPort ?? "(unset)"}`, `cdpUrl: ${redactCdpUrl(status.cdpUrl ?? `http://127.0.0.1:${status.cdpPort}`)}`] : status.userDataDir ? [`userDataDir: ${shortenHomePath(status.userDataDir)}`] : [],
|
|
1746
|
+
`browser: ${status.chosenBrowser ?? "unknown"}`,
|
|
1747
|
+
`detectedBrowser: ${status.detectedBrowser ?? "unknown"}`,
|
|
1748
|
+
`detectedPath: ${detectedDisplay}`,
|
|
1749
|
+
`profileColor: ${status.color}`,
|
|
1750
|
+
...status.detectError ? [`detectError: ${status.detectError}`] : []
|
|
1751
|
+
].join("\n"));
|
|
1752
|
+
});
|
|
1753
|
+
});
|
|
1754
|
+
browser.command("start").description("Start the browser (no-op if already running)").action(async (_opts, cmd) => {
|
|
1755
|
+
const parent = parentOpts(cmd);
|
|
1756
|
+
const profile = parent?.browserProfile;
|
|
1757
|
+
await runBrowserCommand$1(async () => {
|
|
1758
|
+
await runBrowserToggle(parent, {
|
|
1759
|
+
profile,
|
|
1760
|
+
path: "/start"
|
|
1761
|
+
});
|
|
1762
|
+
});
|
|
1763
|
+
});
|
|
1764
|
+
browser.command("stop").description("Stop the browser (best-effort)").action(async (_opts, cmd) => {
|
|
1765
|
+
const parent = parentOpts(cmd);
|
|
1766
|
+
const profile = parent?.browserProfile;
|
|
1767
|
+
await runBrowserCommand$1(async () => {
|
|
1768
|
+
await runBrowserToggle(parent, {
|
|
1769
|
+
profile,
|
|
1770
|
+
path: "/stop"
|
|
1771
|
+
});
|
|
1772
|
+
});
|
|
1773
|
+
});
|
|
1774
|
+
browser.command("reset-profile").description("Reset browser profile (moves it to Trash)").action(async (_opts, cmd) => {
|
|
1775
|
+
const parent = parentOpts(cmd);
|
|
1776
|
+
const profile = parent?.browserProfile;
|
|
1777
|
+
await runBrowserCommand$1(async () => {
|
|
1778
|
+
const result = await callBrowserRequest(parent, {
|
|
1779
|
+
method: "POST",
|
|
1780
|
+
path: "/reset-profile",
|
|
1781
|
+
query: resolveProfileQuery(profile)
|
|
1782
|
+
}, { timeoutMs: 2e4 });
|
|
1783
|
+
if (printJsonResult(parent, result)) return;
|
|
1784
|
+
if (!result.moved) {
|
|
1785
|
+
defaultRuntime.log(info(`🦞 browser profile already missing.`));
|
|
1786
|
+
return;
|
|
1787
|
+
}
|
|
1788
|
+
const dest = result.to ?? result.from;
|
|
1789
|
+
defaultRuntime.log(info(`🦞 browser profile moved to Trash (${dest})`));
|
|
1790
|
+
});
|
|
1791
|
+
});
|
|
1792
|
+
browser.command("tabs").description("List open tabs").action(async (_opts, cmd) => {
|
|
1793
|
+
const parent = parentOpts(cmd);
|
|
1794
|
+
const profile = parent?.browserProfile;
|
|
1795
|
+
await runBrowserCommand$1(async () => {
|
|
1796
|
+
logBrowserTabs((await callBrowserRequest(parent, {
|
|
1797
|
+
method: "GET",
|
|
1798
|
+
path: "/tabs",
|
|
1799
|
+
query: resolveProfileQuery(profile)
|
|
1800
|
+
}, { timeoutMs: BROWSER_MANAGE_REQUEST_TIMEOUT_MS })).tabs ?? [], parent?.json);
|
|
1801
|
+
});
|
|
1802
|
+
});
|
|
1803
|
+
const tab = browser.command("tab").description("Tab shortcuts (index-based)").action(async (_opts, cmd) => {
|
|
1804
|
+
const parent = parentOpts(cmd);
|
|
1805
|
+
const profile = parent?.browserProfile;
|
|
1806
|
+
await runBrowserCommand$1(async () => {
|
|
1807
|
+
logBrowserTabs((await callBrowserRequest(parent, {
|
|
1808
|
+
method: "POST",
|
|
1809
|
+
path: "/tabs/action",
|
|
1810
|
+
query: resolveProfileQuery(profile),
|
|
1811
|
+
body: { action: "list" }
|
|
1812
|
+
}, { timeoutMs: BROWSER_MANAGE_REQUEST_TIMEOUT_MS })).tabs ?? [], parent?.json);
|
|
1813
|
+
});
|
|
1814
|
+
});
|
|
1815
|
+
tab.command("new").description("Open a new tab (about:blank)").action(async (_opts, cmd) => {
|
|
1816
|
+
const parent = parentOpts(cmd);
|
|
1817
|
+
const profile = parent?.browserProfile;
|
|
1818
|
+
await runBrowserCommand$1(async () => {
|
|
1819
|
+
if (printJsonResult(parent, await callTabAction(parent, profile, { action: "new" }))) return;
|
|
1820
|
+
defaultRuntime.log("opened new tab");
|
|
1821
|
+
});
|
|
1822
|
+
});
|
|
1823
|
+
tab.command("select").description("Focus tab by index (1-based)").argument("<index>", "Tab index (1-based)", (v) => Number(v)).action(async (index, _opts, cmd) => {
|
|
1824
|
+
const parent = parentOpts(cmd);
|
|
1825
|
+
const profile = parent?.browserProfile;
|
|
1826
|
+
if (!Number.isFinite(index) || index < 1) {
|
|
1827
|
+
defaultRuntime.error(danger("index must be a positive number"));
|
|
1828
|
+
defaultRuntime.exit(1);
|
|
1829
|
+
return;
|
|
1830
|
+
}
|
|
1831
|
+
await runBrowserCommand$1(async () => {
|
|
1832
|
+
if (printJsonResult(parent, await callTabAction(parent, profile, {
|
|
1833
|
+
action: "select",
|
|
1834
|
+
index: Math.floor(index) - 1
|
|
1835
|
+
}))) return;
|
|
1836
|
+
defaultRuntime.log(`selected tab ${Math.floor(index)}`);
|
|
1837
|
+
});
|
|
1838
|
+
});
|
|
1839
|
+
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) => {
|
|
1840
|
+
const parent = parentOpts(cmd);
|
|
1841
|
+
const profile = parent?.browserProfile;
|
|
1842
|
+
const idx = typeof index === "number" && Number.isFinite(index) ? Math.floor(index) - 1 : void 0;
|
|
1843
|
+
if (typeof idx === "number" && idx < 0) {
|
|
1844
|
+
defaultRuntime.error(danger("index must be >= 1"));
|
|
1845
|
+
defaultRuntime.exit(1);
|
|
1846
|
+
return;
|
|
1847
|
+
}
|
|
1848
|
+
await runBrowserCommand$1(async () => {
|
|
1849
|
+
if (printJsonResult(parent, await callTabAction(parent, profile, {
|
|
1850
|
+
action: "close",
|
|
1851
|
+
index: idx
|
|
1852
|
+
}))) return;
|
|
1853
|
+
defaultRuntime.log("closed tab");
|
|
1854
|
+
});
|
|
1855
|
+
});
|
|
1856
|
+
browser.command("open").description("Open a URL in a new tab").argument("<url>", "URL to open").action(async (url, _opts, cmd) => {
|
|
1857
|
+
const parent = parentOpts(cmd);
|
|
1858
|
+
const profile = parent?.browserProfile;
|
|
1859
|
+
await runBrowserCommand$1(async () => {
|
|
1860
|
+
const tab = await callBrowserRequest(parent, {
|
|
1861
|
+
method: "POST",
|
|
1862
|
+
path: "/tabs/open",
|
|
1863
|
+
query: resolveProfileQuery(profile),
|
|
1864
|
+
body: { url }
|
|
1865
|
+
}, { timeoutMs: BROWSER_MANAGE_REQUEST_TIMEOUT_MS });
|
|
1866
|
+
if (printJsonResult(parent, tab)) return;
|
|
1867
|
+
defaultRuntime.log(`opened: ${tab.url}\nid: ${tab.targetId}`);
|
|
1868
|
+
});
|
|
1869
|
+
});
|
|
1870
|
+
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) => {
|
|
1871
|
+
const parent = parentOpts(cmd);
|
|
1872
|
+
const profile = parent?.browserProfile;
|
|
1873
|
+
await runBrowserCommand$1(async () => {
|
|
1874
|
+
await callBrowserRequest(parent, {
|
|
1875
|
+
method: "POST",
|
|
1876
|
+
path: "/tabs/focus",
|
|
1877
|
+
query: resolveProfileQuery(profile),
|
|
1878
|
+
body: { targetId }
|
|
1879
|
+
}, { timeoutMs: BROWSER_MANAGE_REQUEST_TIMEOUT_MS });
|
|
1880
|
+
if (printJsonResult(parent, { ok: true })) return;
|
|
1881
|
+
defaultRuntime.log(`focused tab ${targetId}`);
|
|
1882
|
+
});
|
|
1883
|
+
});
|
|
1884
|
+
browser.command("close").description("Close a tab (target id optional)").argument("[targetId]", "Target id or unique prefix (optional)").action(async (targetId, _opts, cmd) => {
|
|
1885
|
+
const parent = parentOpts(cmd);
|
|
1886
|
+
const profile = parent?.browserProfile;
|
|
1887
|
+
await runBrowserCommand$1(async () => {
|
|
1888
|
+
if (targetId?.trim()) await callBrowserRequest(parent, {
|
|
1889
|
+
method: "DELETE",
|
|
1890
|
+
path: `/tabs/${encodeURIComponent(targetId.trim())}`,
|
|
1891
|
+
query: resolveProfileQuery(profile)
|
|
1892
|
+
}, { timeoutMs: BROWSER_MANAGE_REQUEST_TIMEOUT_MS });
|
|
1893
|
+
else await callBrowserRequest(parent, {
|
|
1894
|
+
method: "POST",
|
|
1895
|
+
path: "/act",
|
|
1896
|
+
query: resolveProfileQuery(profile),
|
|
1897
|
+
body: { kind: "close" }
|
|
1898
|
+
}, { timeoutMs: BROWSER_MANAGE_REQUEST_TIMEOUT_MS });
|
|
1899
|
+
if (printJsonResult(parent, { ok: true })) return;
|
|
1900
|
+
defaultRuntime.log("closed tab");
|
|
1901
|
+
});
|
|
1902
|
+
});
|
|
1903
|
+
browser.command("profiles").description("List all browser profiles").action(async (_opts, cmd) => {
|
|
1904
|
+
const parent = parentOpts(cmd);
|
|
1905
|
+
await runBrowserCommand$1(async () => {
|
|
1906
|
+
const profiles = (await callBrowserRequest(parent, {
|
|
1907
|
+
method: "GET",
|
|
1908
|
+
path: "/profiles"
|
|
1909
|
+
}, { timeoutMs: BROWSER_MANAGE_REQUEST_TIMEOUT_MS })).profiles ?? [];
|
|
1910
|
+
if (printJsonResult(parent, { profiles })) return;
|
|
1911
|
+
if (profiles.length === 0) {
|
|
1912
|
+
defaultRuntime.log("No profiles configured.");
|
|
1913
|
+
return;
|
|
1914
|
+
}
|
|
1915
|
+
defaultRuntime.log(profiles.map((p) => {
|
|
1916
|
+
const status = p.running ? "running" : "stopped";
|
|
1917
|
+
const tabs = p.running ? ` (${p.tabCount} tabs)` : "";
|
|
1918
|
+
const def = p.isDefault ? " [default]" : "";
|
|
1919
|
+
const loc = formatBrowserConnectionSummary(p);
|
|
1920
|
+
const remote = p.isRemote ? " [remote]" : "";
|
|
1921
|
+
const driver = p.driver !== "vora" ? ` [${p.driver}]` : "";
|
|
1922
|
+
return `${p.name}: ${status}${tabs}${def}${remote}${driver}\n ${loc}, color: ${p.color}`;
|
|
1923
|
+
}).join("\n"));
|
|
1924
|
+
});
|
|
1925
|
+
});
|
|
1926
|
+
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("--user-data-dir <path>", "User data dir for existing-session Chromium attach").option("--driver <driver>", "Profile driver (vora|existing-session). Default: vora").action(async (opts, cmd) => {
|
|
1927
|
+
const parent = parentOpts(cmd);
|
|
1928
|
+
await runBrowserCommand$1(async () => {
|
|
1929
|
+
const result = await callBrowserRequest(parent, {
|
|
1930
|
+
method: "POST",
|
|
1931
|
+
path: "/profiles/create",
|
|
1932
|
+
body: {
|
|
1933
|
+
name: opts.name,
|
|
1934
|
+
color: opts.color,
|
|
1935
|
+
cdpUrl: opts.cdpUrl,
|
|
1936
|
+
userDataDir: opts.userDataDir,
|
|
1937
|
+
driver: opts.driver === "existing-session" ? "existing-session" : void 0
|
|
1938
|
+
}
|
|
1939
|
+
}, { timeoutMs: 1e4 });
|
|
1940
|
+
if (printJsonResult(parent, result)) return;
|
|
1941
|
+
const loc = ` ${formatBrowserConnectionSummary(result)}`;
|
|
1942
|
+
defaultRuntime.log(info(`🦞 Created profile "${result.profile}"\n${loc}\n color: ${result.color}${result.userDataDir ? `\n userDataDir: ${shortenHomePath(result.userDataDir)}` : ""}${opts.driver === "existing-session" ? "\n driver: existing-session" : ""}`));
|
|
1943
|
+
});
|
|
1944
|
+
});
|
|
1945
|
+
browser.command("delete-profile").description("Delete a browser profile").requiredOption("--name <name>", "Profile name to delete").action(async (opts, cmd) => {
|
|
1946
|
+
const parent = parentOpts(cmd);
|
|
1947
|
+
await runBrowserCommand$1(async () => {
|
|
1948
|
+
const result = await callBrowserRequest(parent, {
|
|
1949
|
+
method: "DELETE",
|
|
1950
|
+
path: `/profiles/${encodeURIComponent(opts.name)}`
|
|
1951
|
+
}, { timeoutMs: 2e4 });
|
|
1952
|
+
if (printJsonResult(parent, result)) return;
|
|
1953
|
+
const msg = result.deleted ? `🦞 Deleted profile "${result.profile}" (user data removed)` : `🦞 Deleted profile "${result.profile}" (no user data found)`;
|
|
1954
|
+
defaultRuntime.log(info(msg));
|
|
1955
|
+
});
|
|
1956
|
+
});
|
|
1957
|
+
}
|
|
1958
|
+
//#endregion
|
|
1959
|
+
//#region extensions/browser/src/cli/browser-cli-state.cookies-storage.ts
|
|
1960
|
+
function resolveUrl(opts, command) {
|
|
1961
|
+
if (typeof opts.url === "string" && opts.url.trim()) return opts.url.trim();
|
|
1962
|
+
const inherited = inheritOptionFromParent(command, "url");
|
|
1963
|
+
if (typeof inherited === "string" && inherited.trim()) return inherited.trim();
|
|
1964
|
+
}
|
|
1965
|
+
function resolveTargetId(rawTargetId, command) {
|
|
1966
|
+
const local = typeof rawTargetId === "string" ? rawTargetId.trim() : "";
|
|
1967
|
+
if (local) return local;
|
|
1968
|
+
const inherited = inheritOptionFromParent(command, "targetId");
|
|
1969
|
+
if (typeof inherited !== "string") return;
|
|
1970
|
+
const trimmed = inherited.trim();
|
|
1971
|
+
return trimmed ? trimmed : void 0;
|
|
1972
|
+
}
|
|
1973
|
+
async function runMutationRequest(params) {
|
|
1974
|
+
try {
|
|
1975
|
+
const result = await callBrowserRequest(params.parent, params.request, { timeoutMs: 2e4 });
|
|
1976
|
+
if (params.parent?.json) {
|
|
1977
|
+
defaultRuntime.writeJson(result);
|
|
1978
|
+
return;
|
|
1979
|
+
}
|
|
1980
|
+
defaultRuntime.log(params.successMessage);
|
|
1981
|
+
} catch (err) {
|
|
1982
|
+
defaultRuntime.error(danger(String(err)));
|
|
1983
|
+
defaultRuntime.exit(1);
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
function registerBrowserCookiesAndStorageCommands(browser, parentOpts) {
|
|
1987
|
+
const cookies = browser.command("cookies").description("Read/write cookies");
|
|
1988
|
+
cookies.option("--target-id <id>", "CDP target id (or unique prefix)").action(async (opts, cmd) => {
|
|
1989
|
+
const parent = parentOpts(cmd);
|
|
1990
|
+
const profile = parent?.browserProfile;
|
|
1991
|
+
const targetId = resolveTargetId(opts.targetId, cmd);
|
|
1992
|
+
try {
|
|
1993
|
+
const result = await callBrowserRequest(parent, {
|
|
1994
|
+
method: "GET",
|
|
1995
|
+
path: "/cookies",
|
|
1996
|
+
query: {
|
|
1997
|
+
targetId,
|
|
1998
|
+
profile
|
|
1999
|
+
}
|
|
2000
|
+
}, { timeoutMs: 2e4 });
|
|
2001
|
+
if (parent?.json) {
|
|
2002
|
+
defaultRuntime.writeJson(result);
|
|
2003
|
+
return;
|
|
2004
|
+
}
|
|
2005
|
+
defaultRuntime.writeJson(result.cookies ?? []);
|
|
2006
|
+
} catch (err) {
|
|
2007
|
+
defaultRuntime.error(danger(String(err)));
|
|
2008
|
+
defaultRuntime.exit(1);
|
|
2009
|
+
}
|
|
2010
|
+
});
|
|
2011
|
+
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) => {
|
|
2012
|
+
const parent = parentOpts(cmd);
|
|
2013
|
+
const profile = parent?.browserProfile;
|
|
2014
|
+
const targetId = resolveTargetId(opts.targetId, cmd);
|
|
2015
|
+
const url = resolveUrl(opts, cmd);
|
|
2016
|
+
if (!url) {
|
|
2017
|
+
defaultRuntime.error(danger("Missing required --url option for cookies set"));
|
|
2018
|
+
defaultRuntime.exit(1);
|
|
2019
|
+
return;
|
|
2020
|
+
}
|
|
2021
|
+
await runMutationRequest({
|
|
2022
|
+
parent,
|
|
2023
|
+
request: {
|
|
2024
|
+
method: "POST",
|
|
2025
|
+
path: "/cookies/set",
|
|
2026
|
+
query: profile ? { profile } : void 0,
|
|
2027
|
+
body: {
|
|
2028
|
+
targetId,
|
|
2029
|
+
cookie: {
|
|
2030
|
+
name,
|
|
2031
|
+
value,
|
|
2032
|
+
url
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
},
|
|
2036
|
+
successMessage: `cookie set: ${name}`
|
|
2037
|
+
});
|
|
2038
|
+
});
|
|
2039
|
+
cookies.command("clear").description("Clear all cookies").option("--target-id <id>", "CDP target id (or unique prefix)").action(async (opts, cmd) => {
|
|
2040
|
+
const parent = parentOpts(cmd);
|
|
2041
|
+
const profile = parent?.browserProfile;
|
|
2042
|
+
const targetId = resolveTargetId(opts.targetId, cmd);
|
|
2043
|
+
await runMutationRequest({
|
|
2044
|
+
parent,
|
|
2045
|
+
request: {
|
|
2046
|
+
method: "POST",
|
|
2047
|
+
path: "/cookies/clear",
|
|
2048
|
+
query: profile ? { profile } : void 0,
|
|
2049
|
+
body: { targetId }
|
|
2050
|
+
},
|
|
2051
|
+
successMessage: "cookies cleared"
|
|
2052
|
+
});
|
|
2053
|
+
});
|
|
2054
|
+
const storage = browser.command("storage").description("Read/write localStorage/sessionStorage");
|
|
2055
|
+
function registerStorageKind(kind) {
|
|
2056
|
+
const cmd = storage.command(kind).description(`${kind}Storage commands`);
|
|
2057
|
+
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) => {
|
|
2058
|
+
const parent = parentOpts(cmd2);
|
|
2059
|
+
const profile = parent?.browserProfile;
|
|
2060
|
+
const targetId = resolveTargetId(opts.targetId, cmd2);
|
|
2061
|
+
try {
|
|
2062
|
+
const result = await callBrowserRequest(parent, {
|
|
2063
|
+
method: "GET",
|
|
2064
|
+
path: `/storage/${kind}`,
|
|
2065
|
+
query: {
|
|
2066
|
+
key: key?.trim() || void 0,
|
|
2067
|
+
targetId,
|
|
2068
|
+
profile
|
|
2069
|
+
}
|
|
2070
|
+
}, { timeoutMs: 2e4 });
|
|
2071
|
+
if (parent?.json) {
|
|
2072
|
+
defaultRuntime.writeJson(result);
|
|
2073
|
+
return;
|
|
2074
|
+
}
|
|
2075
|
+
defaultRuntime.writeJson(result.values ?? {});
|
|
2076
|
+
} catch (err) {
|
|
2077
|
+
defaultRuntime.error(danger(String(err)));
|
|
2078
|
+
defaultRuntime.exit(1);
|
|
2079
|
+
}
|
|
2080
|
+
});
|
|
2081
|
+
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) => {
|
|
2082
|
+
const parent = parentOpts(cmd2);
|
|
2083
|
+
const profile = parent?.browserProfile;
|
|
2084
|
+
const targetId = resolveTargetId(opts.targetId, cmd2);
|
|
2085
|
+
await runMutationRequest({
|
|
2086
|
+
parent,
|
|
2087
|
+
request: {
|
|
2088
|
+
method: "POST",
|
|
2089
|
+
path: `/storage/${kind}/set`,
|
|
2090
|
+
query: profile ? { profile } : void 0,
|
|
2091
|
+
body: {
|
|
2092
|
+
key,
|
|
2093
|
+
value,
|
|
2094
|
+
targetId
|
|
2095
|
+
}
|
|
2096
|
+
},
|
|
2097
|
+
successMessage: `${kind}Storage set: ${key}`
|
|
2098
|
+
});
|
|
2099
|
+
});
|
|
2100
|
+
cmd.command("clear").description(`Clear all ${kind}Storage keys`).option("--target-id <id>", "CDP target id (or unique prefix)").action(async (opts, cmd2) => {
|
|
2101
|
+
const parent = parentOpts(cmd2);
|
|
2102
|
+
const profile = parent?.browserProfile;
|
|
2103
|
+
const targetId = resolveTargetId(opts.targetId, cmd2);
|
|
2104
|
+
await runMutationRequest({
|
|
2105
|
+
parent,
|
|
2106
|
+
request: {
|
|
2107
|
+
method: "POST",
|
|
2108
|
+
path: `/storage/${kind}/clear`,
|
|
2109
|
+
query: profile ? { profile } : void 0,
|
|
2110
|
+
body: { targetId }
|
|
2111
|
+
},
|
|
2112
|
+
successMessage: `${kind}Storage cleared`
|
|
2113
|
+
});
|
|
2114
|
+
});
|
|
2115
|
+
}
|
|
2116
|
+
registerStorageKind("local");
|
|
2117
|
+
registerStorageKind("session");
|
|
2118
|
+
}
|
|
2119
|
+
//#endregion
|
|
2120
|
+
//#region extensions/browser/src/cli/browser-cli-state.ts
|
|
2121
|
+
function parseOnOff(raw) {
|
|
2122
|
+
const parsed = parseBooleanValue(raw);
|
|
2123
|
+
return parsed === void 0 ? null : parsed;
|
|
2124
|
+
}
|
|
2125
|
+
function runBrowserCommand(action) {
|
|
2126
|
+
return runCommandWithRuntime(defaultRuntime, action, (err) => {
|
|
2127
|
+
defaultRuntime.error(danger(String(err)));
|
|
2128
|
+
defaultRuntime.exit(1);
|
|
2129
|
+
});
|
|
2130
|
+
}
|
|
2131
|
+
async function runBrowserSetRequest(params) {
|
|
2132
|
+
await runBrowserCommand(async () => {
|
|
2133
|
+
const profile = params.parent?.browserProfile;
|
|
2134
|
+
const result = await callBrowserRequest(params.parent, {
|
|
2135
|
+
method: "POST",
|
|
2136
|
+
path: params.path,
|
|
2137
|
+
query: profile ? { profile } : void 0,
|
|
2138
|
+
body: params.body
|
|
2139
|
+
}, { timeoutMs: 2e4 });
|
|
2140
|
+
if (params.parent?.json) {
|
|
2141
|
+
defaultRuntime.writeJson(result);
|
|
2142
|
+
return;
|
|
2143
|
+
}
|
|
2144
|
+
defaultRuntime.log(params.successMessage);
|
|
2145
|
+
});
|
|
2146
|
+
}
|
|
2147
|
+
function registerBrowserStateCommands(browser, parentOpts) {
|
|
2148
|
+
registerBrowserCookiesAndStorageCommands(browser, parentOpts);
|
|
2149
|
+
const set = browser.command("set").description("Browser environment settings");
|
|
2150
|
+
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) => {
|
|
2151
|
+
const parent = parentOpts(cmd);
|
|
2152
|
+
const profile = parent?.browserProfile;
|
|
2153
|
+
await runBrowserCommand(async () => {
|
|
2154
|
+
await runBrowserResizeWithOutput({
|
|
2155
|
+
parent,
|
|
2156
|
+
profile,
|
|
2157
|
+
width,
|
|
2158
|
+
height,
|
|
2159
|
+
targetId: opts.targetId,
|
|
2160
|
+
timeoutMs: 2e4,
|
|
2161
|
+
successMessage: `viewport set: ${width}x${height}`
|
|
2162
|
+
});
|
|
2163
|
+
});
|
|
2164
|
+
});
|
|
2165
|
+
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) => {
|
|
2166
|
+
const parent = parentOpts(cmd);
|
|
2167
|
+
const offline = parseOnOff(value);
|
|
2168
|
+
if (offline === null) {
|
|
2169
|
+
defaultRuntime.error(danger("Expected on|off"));
|
|
2170
|
+
defaultRuntime.exit(1);
|
|
2171
|
+
return;
|
|
2172
|
+
}
|
|
2173
|
+
await runBrowserSetRequest({
|
|
2174
|
+
parent,
|
|
2175
|
+
path: "/set/offline",
|
|
2176
|
+
body: {
|
|
2177
|
+
offline,
|
|
2178
|
+
targetId: opts.targetId?.trim() || void 0
|
|
2179
|
+
},
|
|
2180
|
+
successMessage: `offline: ${offline}`
|
|
2181
|
+
});
|
|
2182
|
+
});
|
|
2183
|
+
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) => {
|
|
2184
|
+
const parent = parentOpts(cmd);
|
|
2185
|
+
await runBrowserCommand(async () => {
|
|
2186
|
+
const headersJsonValue = typeof opts.headersJson === "string" && opts.headersJson.trim() || (headersJson?.trim() ? headersJson.trim() : void 0);
|
|
2187
|
+
if (!headersJsonValue) throw new Error("Missing headers JSON (pass --headers-json or positional JSON argument)");
|
|
2188
|
+
const parsed = JSON.parse(String(headersJsonValue));
|
|
2189
|
+
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) throw new Error("Headers JSON must be a JSON object");
|
|
2190
|
+
const headers = {};
|
|
2191
|
+
for (const [k, v] of Object.entries(parsed)) if (typeof v === "string") headers[k] = v;
|
|
2192
|
+
const profile = parent?.browserProfile;
|
|
2193
|
+
const result = await callBrowserRequest(parent, {
|
|
2194
|
+
method: "POST",
|
|
2195
|
+
path: "/set/headers",
|
|
2196
|
+
query: profile ? { profile } : void 0,
|
|
2197
|
+
body: {
|
|
2198
|
+
headers,
|
|
2199
|
+
targetId: opts.targetId?.trim() || void 0
|
|
2200
|
+
}
|
|
2201
|
+
}, { timeoutMs: 2e4 });
|
|
2202
|
+
if (parent?.json) {
|
|
2203
|
+
defaultRuntime.writeJson(result);
|
|
2204
|
+
return;
|
|
2205
|
+
}
|
|
2206
|
+
defaultRuntime.log("headers set");
|
|
2207
|
+
});
|
|
2208
|
+
});
|
|
2209
|
+
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) => {
|
|
2210
|
+
await runBrowserSetRequest({
|
|
2211
|
+
parent: parentOpts(cmd),
|
|
2212
|
+
path: "/set/credentials",
|
|
2213
|
+
body: {
|
|
2214
|
+
username: username?.trim() || void 0,
|
|
2215
|
+
password,
|
|
2216
|
+
clear: Boolean(opts.clear),
|
|
2217
|
+
targetId: opts.targetId?.trim() || void 0
|
|
2218
|
+
},
|
|
2219
|
+
successMessage: opts.clear ? "credentials cleared" : "credentials set"
|
|
2220
|
+
});
|
|
2221
|
+
});
|
|
2222
|
+
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) => {
|
|
2223
|
+
await runBrowserSetRequest({
|
|
2224
|
+
parent: parentOpts(cmd),
|
|
2225
|
+
path: "/set/geolocation",
|
|
2226
|
+
body: {
|
|
2227
|
+
latitude: Number.isFinite(latitude) ? latitude : void 0,
|
|
2228
|
+
longitude: Number.isFinite(longitude) ? longitude : void 0,
|
|
2229
|
+
accuracy: Number.isFinite(opts.accuracy) ? opts.accuracy : void 0,
|
|
2230
|
+
origin: opts.origin?.trim() || void 0,
|
|
2231
|
+
clear: Boolean(opts.clear),
|
|
2232
|
+
targetId: opts.targetId?.trim() || void 0
|
|
2233
|
+
},
|
|
2234
|
+
successMessage: opts.clear ? "geolocation cleared" : "geolocation set"
|
|
2235
|
+
});
|
|
2236
|
+
});
|
|
2237
|
+
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) => {
|
|
2238
|
+
const parent = parentOpts(cmd);
|
|
2239
|
+
const v = value.trim().toLowerCase();
|
|
2240
|
+
const colorScheme = v === "dark" ? "dark" : v === "light" ? "light" : v === "none" ? "none" : null;
|
|
2241
|
+
if (!colorScheme) {
|
|
2242
|
+
defaultRuntime.error(danger("Expected dark|light|none"));
|
|
2243
|
+
defaultRuntime.exit(1);
|
|
2244
|
+
return;
|
|
2245
|
+
}
|
|
2246
|
+
await runBrowserSetRequest({
|
|
2247
|
+
parent,
|
|
2248
|
+
path: "/set/media",
|
|
2249
|
+
body: {
|
|
2250
|
+
colorScheme,
|
|
2251
|
+
targetId: opts.targetId?.trim() || void 0
|
|
2252
|
+
},
|
|
2253
|
+
successMessage: `media colorScheme: ${colorScheme}`
|
|
2254
|
+
});
|
|
2255
|
+
});
|
|
2256
|
+
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) => {
|
|
2257
|
+
await runBrowserSetRequest({
|
|
2258
|
+
parent: parentOpts(cmd),
|
|
2259
|
+
path: "/set/timezone",
|
|
2260
|
+
body: {
|
|
2261
|
+
timezoneId,
|
|
2262
|
+
targetId: opts.targetId?.trim() || void 0
|
|
2263
|
+
},
|
|
2264
|
+
successMessage: `timezone: ${timezoneId}`
|
|
2265
|
+
});
|
|
2266
|
+
});
|
|
2267
|
+
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) => {
|
|
2268
|
+
await runBrowserSetRequest({
|
|
2269
|
+
parent: parentOpts(cmd),
|
|
2270
|
+
path: "/set/locale",
|
|
2271
|
+
body: {
|
|
2272
|
+
locale,
|
|
2273
|
+
targetId: opts.targetId?.trim() || void 0
|
|
2274
|
+
},
|
|
2275
|
+
successMessage: `locale: ${locale}`
|
|
2276
|
+
});
|
|
2277
|
+
});
|
|
2278
|
+
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) => {
|
|
2279
|
+
await runBrowserSetRequest({
|
|
2280
|
+
parent: parentOpts(cmd),
|
|
2281
|
+
path: "/set/device",
|
|
2282
|
+
body: {
|
|
2283
|
+
name,
|
|
2284
|
+
targetId: opts.targetId?.trim() || void 0
|
|
2285
|
+
},
|
|
2286
|
+
successMessage: `device: ${name}`
|
|
2287
|
+
});
|
|
2288
|
+
});
|
|
2289
|
+
}
|
|
2290
|
+
//#endregion
|
|
2291
|
+
//#region extensions/browser/src/cli/browser-cli.ts
|
|
2292
|
+
function registerBrowserCli(program) {
|
|
2293
|
+
const browser = program.command("browser").description("Manage Vora'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.vora.ai/cli/browser")}\n`).action(() => {
|
|
2294
|
+
browser.outputHelp();
|
|
2295
|
+
defaultRuntime.error(danger(`Missing subcommand. Try: "${formatCliCommand("vora browser status")}"`));
|
|
2296
|
+
defaultRuntime.exit(1);
|
|
2297
|
+
});
|
|
2298
|
+
addGatewayClientOptions(browser);
|
|
2299
|
+
const parentOpts = (cmd) => cmd.parent?.opts?.();
|
|
2300
|
+
registerBrowserManageCommands(browser, parentOpts);
|
|
2301
|
+
registerBrowserInspectCommands(browser, parentOpts);
|
|
2302
|
+
registerBrowserActionInputCommands(browser, parentOpts);
|
|
2303
|
+
registerBrowserActionObserveCommands(browser, parentOpts);
|
|
2304
|
+
registerBrowserDebugCommands(browser, parentOpts);
|
|
2305
|
+
registerBrowserStateCommands(browser, parentOpts);
|
|
2306
|
+
}
|
|
2307
|
+
//#endregion
|
|
2308
|
+
//#region extensions/browser/src/plugin-service.ts
|
|
2309
|
+
function createBrowserPluginService() {
|
|
2310
|
+
let handle = null;
|
|
2311
|
+
return {
|
|
2312
|
+
id: "browser-control",
|
|
2313
|
+
start: async () => {
|
|
2314
|
+
if (handle) return;
|
|
2315
|
+
handle = await startLazyPluginServiceModule({
|
|
2316
|
+
skipEnvVar: "VORA_SKIP_BROWSER_CONTROL_SERVER",
|
|
2317
|
+
overrideEnvVar: "VORA_BROWSER_CONTROL_MODULE",
|
|
2318
|
+
loadDefaultModule: async () => await import("./server-BPOSwT-c.js"),
|
|
2319
|
+
startExportNames: ["startBrowserControlServiceFromConfig", "startBrowserControlServerFromConfig"],
|
|
2320
|
+
stopExportNames: ["stopBrowserControlService", "stopBrowserControlServer"]
|
|
2321
|
+
});
|
|
2322
|
+
},
|
|
2323
|
+
stop: async () => {
|
|
2324
|
+
const current = handle;
|
|
2325
|
+
handle = null;
|
|
2326
|
+
if (!current) return;
|
|
2327
|
+
await current.stop().catch(() => {});
|
|
2328
|
+
}
|
|
2329
|
+
};
|
|
2330
|
+
}
|
|
2331
|
+
//#endregion
|
|
2332
|
+
//#region extensions/browser/src/gateway/browser-request.ts
|
|
2333
|
+
function isBrowserNode(node) {
|
|
2334
|
+
const caps = Array.isArray(node.caps) ? node.caps : [];
|
|
2335
|
+
const commands = Array.isArray(node.commands) ? node.commands : [];
|
|
2336
|
+
return caps.includes("browser") || commands.includes("browser.proxy");
|
|
2337
|
+
}
|
|
2338
|
+
function normalizeNodeKey(value) {
|
|
2339
|
+
return value.trim().toLowerCase().replace(/[^a-z0-9]+/g, "");
|
|
2340
|
+
}
|
|
2341
|
+
function resolveBrowserNode(nodes, query) {
|
|
2342
|
+
const q = query.trim();
|
|
2343
|
+
if (!q) return null;
|
|
2344
|
+
const qNorm = normalizeNodeKey(q);
|
|
2345
|
+
const matches = nodes.filter((node) => {
|
|
2346
|
+
if (node.nodeId === q) return true;
|
|
2347
|
+
if (typeof node.remoteIp === "string" && node.remoteIp === q) return true;
|
|
2348
|
+
const name = typeof node.displayName === "string" ? node.displayName : "";
|
|
2349
|
+
if (name && normalizeNodeKey(name) === qNorm) return true;
|
|
2350
|
+
if (q.length >= 6 && node.nodeId.startsWith(q)) return true;
|
|
2351
|
+
return false;
|
|
2352
|
+
});
|
|
2353
|
+
if (matches.length === 1) return matches[0] ?? null;
|
|
2354
|
+
if (matches.length === 0) return null;
|
|
2355
|
+
throw new Error(`ambiguous node: ${q} (matches: ${matches.map((node) => node.displayName || node.remoteIp || node.nodeId).join(", ")})`);
|
|
2356
|
+
}
|
|
2357
|
+
function resolveBrowserNodeTarget(params) {
|
|
2358
|
+
const policy = params.cfg.gateway?.nodes?.browser;
|
|
2359
|
+
const mode = policy?.mode ?? "auto";
|
|
2360
|
+
if (mode === "off") return null;
|
|
2361
|
+
const browserNodes = params.nodes.filter((node) => isBrowserNode(node));
|
|
2362
|
+
if (browserNodes.length === 0) {
|
|
2363
|
+
if (policy?.node?.trim()) throw new Error("No connected browser-capable nodes.");
|
|
2364
|
+
return null;
|
|
2365
|
+
}
|
|
2366
|
+
const requested = policy?.node?.trim() || "";
|
|
2367
|
+
if (requested) {
|
|
2368
|
+
const resolved = resolveBrowserNode(browserNodes, requested);
|
|
2369
|
+
if (!resolved) throw new Error(`Configured browser node not connected: ${requested}`);
|
|
2370
|
+
return resolved;
|
|
2371
|
+
}
|
|
2372
|
+
if (mode === "manual") return null;
|
|
2373
|
+
if (browserNodes.length === 1) return browserNodes[0] ?? null;
|
|
2374
|
+
return null;
|
|
2375
|
+
}
|
|
2376
|
+
async function persistProxyFiles(files) {
|
|
2377
|
+
return await persistBrowserProxyFiles(files);
|
|
2378
|
+
}
|
|
2379
|
+
function applyProxyPaths(result, mapping) {
|
|
2380
|
+
applyBrowserProxyPaths(result, mapping);
|
|
2381
|
+
}
|
|
2382
|
+
async function handleBrowserGatewayRequest({ params, respond, context }) {
|
|
2383
|
+
const typed = params;
|
|
2384
|
+
const methodRaw = typeof typed.method === "string" ? typed.method.trim().toUpperCase() : "";
|
|
2385
|
+
const path = typeof typed.path === "string" ? typed.path.trim() : "";
|
|
2386
|
+
const query = typed.query && typeof typed.query === "object" ? typed.query : void 0;
|
|
2387
|
+
const body = typed.body;
|
|
2388
|
+
const timeoutMs = typeof typed.timeoutMs === "number" && Number.isFinite(typed.timeoutMs) ? Math.max(1, Math.floor(typed.timeoutMs)) : void 0;
|
|
2389
|
+
if (!methodRaw || !path) {
|
|
2390
|
+
respond(false, void 0, errorShape(ErrorCodes.INVALID_REQUEST, "method and path are required"));
|
|
2391
|
+
return;
|
|
2392
|
+
}
|
|
2393
|
+
if (methodRaw !== "GET" && methodRaw !== "POST" && methodRaw !== "DELETE") {
|
|
2394
|
+
respond(false, void 0, errorShape(ErrorCodes.INVALID_REQUEST, "method must be GET, POST, or DELETE"));
|
|
2395
|
+
return;
|
|
2396
|
+
}
|
|
2397
|
+
if (isPersistentBrowserProfileMutation(methodRaw, path)) {
|
|
2398
|
+
respond(false, void 0, errorShape(ErrorCodes.INVALID_REQUEST, "browser.request cannot mutate persistent browser profiles"));
|
|
2399
|
+
return;
|
|
2400
|
+
}
|
|
2401
|
+
const cfg = loadConfig();
|
|
2402
|
+
let nodeTarget = null;
|
|
2403
|
+
try {
|
|
2404
|
+
nodeTarget = resolveBrowserNodeTarget({
|
|
2405
|
+
cfg,
|
|
2406
|
+
nodes: context.nodeRegistry.listConnected()
|
|
2407
|
+
});
|
|
2408
|
+
} catch (err) {
|
|
2409
|
+
respond(false, void 0, errorShape(ErrorCodes.UNAVAILABLE, String(err)));
|
|
2410
|
+
return;
|
|
2411
|
+
}
|
|
2412
|
+
if (nodeTarget) {
|
|
2413
|
+
const allowlist = resolveNodeCommandAllowlist(cfg, nodeTarget);
|
|
2414
|
+
const allowed = isNodeCommandAllowed({
|
|
2415
|
+
command: "browser.proxy",
|
|
2416
|
+
declaredCommands: nodeTarget.commands,
|
|
2417
|
+
allowlist
|
|
2418
|
+
});
|
|
2419
|
+
if (!allowed.ok) {
|
|
2420
|
+
const platform = nodeTarget.platform ?? "unknown";
|
|
2421
|
+
const hint = `node command not allowed: ${allowed.reason} (platform: ${platform}, command: browser.proxy)`;
|
|
2422
|
+
respond(false, void 0, errorShape(ErrorCodes.INVALID_REQUEST, hint, { details: {
|
|
2423
|
+
reason: allowed.reason,
|
|
2424
|
+
command: "browser.proxy"
|
|
2425
|
+
} }));
|
|
2426
|
+
return;
|
|
2427
|
+
}
|
|
2428
|
+
const proxyParams = {
|
|
2429
|
+
method: methodRaw,
|
|
2430
|
+
path,
|
|
2431
|
+
query,
|
|
2432
|
+
body,
|
|
2433
|
+
timeoutMs,
|
|
2434
|
+
profile: resolveRequestedBrowserProfile({
|
|
2435
|
+
query,
|
|
2436
|
+
body
|
|
2437
|
+
})
|
|
2438
|
+
};
|
|
2439
|
+
const res = await context.nodeRegistry.invoke({
|
|
2440
|
+
nodeId: nodeTarget.nodeId,
|
|
2441
|
+
command: "browser.proxy",
|
|
2442
|
+
params: proxyParams,
|
|
2443
|
+
timeoutMs,
|
|
2444
|
+
idempotencyKey: crypto.randomUUID()
|
|
2445
|
+
});
|
|
2446
|
+
if (!respondUnavailableOnNodeInvokeError(respond, res)) return;
|
|
2447
|
+
const payload = res.payloadJSON ? safeParseJson(res.payloadJSON) : res.payload;
|
|
2448
|
+
const proxy = payload && typeof payload === "object" ? payload : null;
|
|
2449
|
+
if (!proxy || !("result" in proxy)) {
|
|
2450
|
+
respond(false, void 0, errorShape(ErrorCodes.UNAVAILABLE, "browser proxy failed"));
|
|
2451
|
+
return;
|
|
2452
|
+
}
|
|
2453
|
+
const mapping = await persistProxyFiles(proxy.files);
|
|
2454
|
+
applyProxyPaths(proxy.result, mapping);
|
|
2455
|
+
respond(true, proxy.result);
|
|
2456
|
+
return;
|
|
2457
|
+
}
|
|
2458
|
+
if (!await startBrowserControlServiceFromConfig()) {
|
|
2459
|
+
respond(false, void 0, errorShape(ErrorCodes.UNAVAILABLE, "browser control is disabled"));
|
|
2460
|
+
return;
|
|
2461
|
+
}
|
|
2462
|
+
let dispatcher;
|
|
2463
|
+
try {
|
|
2464
|
+
dispatcher = createBrowserRouteDispatcher(createBrowserControlContext());
|
|
2465
|
+
} catch (err) {
|
|
2466
|
+
respond(false, void 0, errorShape(ErrorCodes.UNAVAILABLE, String(err)));
|
|
2467
|
+
return;
|
|
2468
|
+
}
|
|
2469
|
+
const result = await dispatcher.dispatch({
|
|
2470
|
+
method: methodRaw,
|
|
2471
|
+
path,
|
|
2472
|
+
query,
|
|
2473
|
+
body
|
|
2474
|
+
});
|
|
2475
|
+
if (result.status >= 400) {
|
|
2476
|
+
const message = result.body && typeof result.body === "object" && "error" in result.body ? String(result.body.error) : `browser request failed (${result.status})`;
|
|
2477
|
+
respond(false, void 0, errorShape(result.status >= 500 ? ErrorCodes.UNAVAILABLE : ErrorCodes.INVALID_REQUEST, message, { details: result.body }));
|
|
2478
|
+
return;
|
|
2479
|
+
}
|
|
2480
|
+
respond(true, result.body);
|
|
2481
|
+
}
|
|
2482
|
+
const browserHandlers = { "browser.request": handleBrowserGatewayRequest };
|
|
2483
|
+
//#endregion
|
|
2484
|
+
export { createBrowserTool as a, registerBrowserCli as i, handleBrowserGatewayRequest as n, createBrowserPluginService as r, browserHandlers as t };
|