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,2201 @@
|
|
|
1
|
+
import { n as defaultRuntime } from "./runtime-D0VpiCHi.js";
|
|
2
|
+
import { t as formatDocsLink } from "./links-Dew9XRNK.js";
|
|
3
|
+
import { r as theme, t as colorize } from "./theme-BJIQPogA.js";
|
|
4
|
+
import { t as sameFileIdentity } from "./file-identity-CFjEVvlD.js";
|
|
5
|
+
import { i as resolveAgentConfig } from "./agent-scope-BsqFyt8u.js";
|
|
6
|
+
import { a as logWarn } from "./logger-BOH4EG1g.js";
|
|
7
|
+
import { Ct as unwrapKnownShellMultiplexerInvocation, Et as resolveInlineCommandMatch, Ot as unwrapKnownDispatchWrapperInvocation, X as analyzeArgvCommand, c as loadConfig, ct as resolveApprovalAuditCandidatePath, gt as resolveExecutableFromPathEnv, kt as normalizeExecutableToken, nt as resolvePlannedSegmentArgv, ut as resolveCommandResolutionFromArgv, vt as POSIX_SHELL_WRAPPERS, wt as POSIX_INLINE_COMMAND_FLAGS } from "./io-B07IaARR.js";
|
|
8
|
+
import { a as sanitizeHostExecEnv, s as sanitizeSystemRunEnvOverrides, t as inspectHostExecEnvOverrides } from "./host-env-security-Cks-ZF3X.js";
|
|
9
|
+
import { n as VERSION } from "./version-B8PcQo5n.js";
|
|
10
|
+
import { t as splitShellArgs } from "./shell-argv-Z5ptFecq.js";
|
|
11
|
+
import "./config-CKbWnj3S.js";
|
|
12
|
+
import { t as formatCliCommand } from "./command-format-DmvS76BD.js";
|
|
13
|
+
import { _ as resolveNodeWindowsTaskName, c as formatNodeServiceDescription, g as resolveNodeSystemdServiceName, h as resolveNodeLaunchAgentLabel } from "./constants-lHqfjBOu.js";
|
|
14
|
+
import { a as resolveNodeProgramArguments, n as resolveDaemonInstallRuntimeInputs, r as resolveDaemonNodeBinDir, t as emitDaemonInstallRuntimeWarning } from "./daemon-install-plan.shared-Dm6sK7Lg.js";
|
|
15
|
+
import { c as buildNodeServiceEnvironment } from "./runtime-paths-C22j-CNR.js";
|
|
16
|
+
import { r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-DPejcJWG.js";
|
|
17
|
+
import { _ as GATEWAY_CLIENT_NAMES, g as GATEWAY_CLIENT_MODES } from "./message-channel-Di9LQZCg.js";
|
|
18
|
+
import { n as loadOrCreateDeviceIdentity } from "./device-identity-DH-dBXN2.js";
|
|
19
|
+
import { u as GatewayClient } from "./method-scopes-1fMDkPgy.js";
|
|
20
|
+
import { d as resolveRuntimeStatusColor, h as installDaemonServiceAndEmit, n as createDaemonInstallActionContext, p as buildDaemonServiceSnapshot, r as failIfNixDaemonInstallMode, t as createCliStatusTextStyles } from "./shared-rGax8vC3.js";
|
|
21
|
+
import { c as buildPlatformRuntimeLogHints, l as buildPlatformServiceStartHints, u as formatRuntimeStatus } from "./systemd-hints-DexZGkZU.js";
|
|
22
|
+
import { t as parsePort } from "./parse-port-CfkrReDG.js";
|
|
23
|
+
import { i as runServiceUninstall, r as runServiceStop, t as runServiceRestart } from "./lifecycle-core-LQrm8n7o.js";
|
|
24
|
+
import { d as getMachineDisplayName, n as resolveSystemRunCommandRequest, s as normalizeSystemRunApprovalPlan, t as formatExecCommand } from "./system-run-command-CeFzgmkE.js";
|
|
25
|
+
import { a as resolveAllowAlwaysPatterns, c as detectInterpreterInlineEvalArgv, n as evaluateShellAllowlist, s as describeInterpreterInlineEval, t as evaluateExecAllowlist } from "./exec-approvals-allowlist-B90zHMFx.js";
|
|
26
|
+
import { r as resolveExecSafeBinRuntimePolicy, t as isInterpreterLikeSafeBin } from "./exec-safe-bin-runtime-policy-CQ_6FV8z.js";
|
|
27
|
+
import { S as requestJsonlSocket, _ as resolveExecApprovals, c as normalizeExecApprovals, g as requiresExecApproval, m as recordAllowlistUse, n as addAllowlistEntry, o as mergeExecApprovalsSocketDefaults, p as readExecApprovalsSnapshot, r as ensureExecApprovals, x as saveExecApprovals } from "./exec-approvals-XWl5Qihe.js";
|
|
28
|
+
import { i as NODE_SYSTEM_RUN_COMMANDS, n as NODE_EXEC_APPROVALS_COMMANDS, t as NODE_BROWSER_PROXY_COMMAND } from "./node-commands-CtUW-J-z.js";
|
|
29
|
+
import { $ as resolveBrowserConfig, at as runBrowserProxyCommand } from "./browser-runtime-C9uxHbGW.js";
|
|
30
|
+
import { t as resolveGatewayConnectionAuth } from "./connection-auth-Cs3qTX0J.js";
|
|
31
|
+
import { t as formatHelpExamples } from "./help-format-Dad85O74.js";
|
|
32
|
+
import { t as ensureVoraCliOnPath } from "./path-env-Coe9j6U3.js";
|
|
33
|
+
import { t as resolveNodeService } from "./node-service-BTIQHcIe.js";
|
|
34
|
+
import { n as loadNodeHostConfig, r as saveNodeHostConfig, t as ensureNodeHostConfig } from "./config-B8J_0cJd.js";
|
|
35
|
+
import fsSync from "node:fs";
|
|
36
|
+
import path from "node:path";
|
|
37
|
+
import { spawn, spawnSync } from "node:child_process";
|
|
38
|
+
import crypto from "node:crypto";
|
|
39
|
+
//#region src/infra/exec-host.ts
|
|
40
|
+
async function requestExecHostViaSocket(params) {
|
|
41
|
+
const { socketPath, token, request } = params;
|
|
42
|
+
if (!socketPath || !token) return null;
|
|
43
|
+
const timeoutMs = params.timeoutMs ?? 2e4;
|
|
44
|
+
const requestJson = JSON.stringify(request);
|
|
45
|
+
const nonce = crypto.randomBytes(16).toString("hex");
|
|
46
|
+
const ts = Date.now();
|
|
47
|
+
const hmac = crypto.createHmac("sha256", token).update(`${nonce}:${ts}:${requestJson}`).digest("hex");
|
|
48
|
+
return await requestJsonlSocket({
|
|
49
|
+
socketPath,
|
|
50
|
+
payload: JSON.stringify({
|
|
51
|
+
type: "exec",
|
|
52
|
+
id: crypto.randomUUID(),
|
|
53
|
+
nonce,
|
|
54
|
+
ts,
|
|
55
|
+
hmac,
|
|
56
|
+
requestJson
|
|
57
|
+
}),
|
|
58
|
+
timeoutMs,
|
|
59
|
+
accept: (value) => {
|
|
60
|
+
const msg = value;
|
|
61
|
+
if (msg?.type !== "exec-res") return;
|
|
62
|
+
if (msg.ok === true && msg.payload) return {
|
|
63
|
+
ok: true,
|
|
64
|
+
payload: msg.payload
|
|
65
|
+
};
|
|
66
|
+
if (msg.ok === false && msg.error) return {
|
|
67
|
+
ok: false,
|
|
68
|
+
error: msg.error
|
|
69
|
+
};
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/node-host/exec-policy.ts
|
|
76
|
+
function resolveExecApprovalDecision(value) {
|
|
77
|
+
if (value === "allow-once" || value === "allow-always") return value;
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
function formatSystemRunAllowlistMissMessage(params) {
|
|
81
|
+
if (params?.windowsShellWrapperBlocked) return "SYSTEM_RUN_DENIED: allowlist miss (Windows shell wrappers like cmd.exe /c require approval; approve once/always or run with --ask on-miss|always)";
|
|
82
|
+
if (params?.shellWrapperBlocked) return "SYSTEM_RUN_DENIED: allowlist miss (shell wrappers like sh/bash/zsh -c require approval; approve once/always or run with --ask on-miss|always)";
|
|
83
|
+
return "SYSTEM_RUN_DENIED: allowlist miss";
|
|
84
|
+
}
|
|
85
|
+
function evaluateSystemRunPolicy(params) {
|
|
86
|
+
const shellWrapperBlocked = params.security === "allowlist" && params.shellWrapperInvocation;
|
|
87
|
+
const windowsShellWrapperBlocked = shellWrapperBlocked && params.isWindows && params.cmdInvocation;
|
|
88
|
+
const analysisOk = shellWrapperBlocked ? false : params.analysisOk;
|
|
89
|
+
const allowlistSatisfied = shellWrapperBlocked ? false : params.allowlistSatisfied;
|
|
90
|
+
const approvedByAsk = params.approvalDecision !== null || params.approved === true;
|
|
91
|
+
if (params.security === "deny") return {
|
|
92
|
+
allowed: false,
|
|
93
|
+
eventReason: "security=deny",
|
|
94
|
+
errorMessage: "SYSTEM_RUN_DISABLED: security=deny",
|
|
95
|
+
analysisOk,
|
|
96
|
+
allowlistSatisfied,
|
|
97
|
+
shellWrapperBlocked,
|
|
98
|
+
windowsShellWrapperBlocked,
|
|
99
|
+
requiresAsk: false,
|
|
100
|
+
approvalDecision: params.approvalDecision,
|
|
101
|
+
approvedByAsk
|
|
102
|
+
};
|
|
103
|
+
const requiresAsk = requiresExecApproval({
|
|
104
|
+
ask: params.ask,
|
|
105
|
+
security: params.security,
|
|
106
|
+
analysisOk,
|
|
107
|
+
allowlistSatisfied
|
|
108
|
+
});
|
|
109
|
+
if (requiresAsk && !approvedByAsk) return {
|
|
110
|
+
allowed: false,
|
|
111
|
+
eventReason: "approval-required",
|
|
112
|
+
errorMessage: "SYSTEM_RUN_DENIED: approval required",
|
|
113
|
+
analysisOk,
|
|
114
|
+
allowlistSatisfied,
|
|
115
|
+
shellWrapperBlocked,
|
|
116
|
+
windowsShellWrapperBlocked,
|
|
117
|
+
requiresAsk,
|
|
118
|
+
approvalDecision: params.approvalDecision,
|
|
119
|
+
approvedByAsk
|
|
120
|
+
};
|
|
121
|
+
if (params.security === "allowlist" && (!analysisOk || !allowlistSatisfied) && !approvedByAsk) return {
|
|
122
|
+
allowed: false,
|
|
123
|
+
eventReason: "allowlist-miss",
|
|
124
|
+
errorMessage: formatSystemRunAllowlistMissMessage({
|
|
125
|
+
shellWrapperBlocked,
|
|
126
|
+
windowsShellWrapperBlocked
|
|
127
|
+
}),
|
|
128
|
+
analysisOk,
|
|
129
|
+
allowlistSatisfied,
|
|
130
|
+
shellWrapperBlocked,
|
|
131
|
+
windowsShellWrapperBlocked,
|
|
132
|
+
requiresAsk,
|
|
133
|
+
approvalDecision: params.approvalDecision,
|
|
134
|
+
approvedByAsk
|
|
135
|
+
};
|
|
136
|
+
return {
|
|
137
|
+
allowed: true,
|
|
138
|
+
analysisOk,
|
|
139
|
+
allowlistSatisfied,
|
|
140
|
+
shellWrapperBlocked,
|
|
141
|
+
windowsShellWrapperBlocked,
|
|
142
|
+
requiresAsk,
|
|
143
|
+
approvalDecision: params.approvalDecision,
|
|
144
|
+
approvedByAsk
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region src/node-host/invoke-system-run-allowlist.ts
|
|
149
|
+
function evaluateSystemRunAllowlist(params) {
|
|
150
|
+
if (params.shellCommand) {
|
|
151
|
+
const allowlistEval = evaluateShellAllowlist({
|
|
152
|
+
command: params.shellCommand,
|
|
153
|
+
allowlist: params.approvals.allowlist,
|
|
154
|
+
safeBins: params.safeBins,
|
|
155
|
+
safeBinProfiles: params.safeBinProfiles,
|
|
156
|
+
cwd: params.cwd,
|
|
157
|
+
env: params.env,
|
|
158
|
+
trustedSafeBinDirs: params.trustedSafeBinDirs,
|
|
159
|
+
skillBins: params.skillBins,
|
|
160
|
+
autoAllowSkills: params.autoAllowSkills,
|
|
161
|
+
platform: process.platform
|
|
162
|
+
});
|
|
163
|
+
return {
|
|
164
|
+
analysisOk: allowlistEval.analysisOk,
|
|
165
|
+
allowlistMatches: allowlistEval.allowlistMatches,
|
|
166
|
+
allowlistSatisfied: params.security === "allowlist" && allowlistEval.analysisOk ? allowlistEval.allowlistSatisfied : false,
|
|
167
|
+
segments: allowlistEval.segments
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
const analysis = analyzeArgvCommand({
|
|
171
|
+
argv: params.argv,
|
|
172
|
+
cwd: params.cwd,
|
|
173
|
+
env: params.env
|
|
174
|
+
});
|
|
175
|
+
const allowlistEval = evaluateExecAllowlist({
|
|
176
|
+
analysis,
|
|
177
|
+
allowlist: params.approvals.allowlist,
|
|
178
|
+
safeBins: params.safeBins,
|
|
179
|
+
safeBinProfiles: params.safeBinProfiles,
|
|
180
|
+
cwd: params.cwd,
|
|
181
|
+
trustedSafeBinDirs: params.trustedSafeBinDirs,
|
|
182
|
+
skillBins: params.skillBins,
|
|
183
|
+
autoAllowSkills: params.autoAllowSkills
|
|
184
|
+
});
|
|
185
|
+
return {
|
|
186
|
+
analysisOk: analysis.ok,
|
|
187
|
+
allowlistMatches: allowlistEval.allowlistMatches,
|
|
188
|
+
allowlistSatisfied: params.security === "allowlist" && analysis.ok ? allowlistEval.allowlistSatisfied : false,
|
|
189
|
+
segments: analysis.segments
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
function resolvePlannedAllowlistArgv(params) {
|
|
193
|
+
if (params.security !== "allowlist" || params.policy.approvedByAsk || params.shellCommand || !params.policy.analysisOk || !params.policy.allowlistSatisfied || params.segments.length !== 1) return;
|
|
194
|
+
const plannedAllowlistArgv = resolvePlannedSegmentArgv(params.segments[0]);
|
|
195
|
+
return plannedAllowlistArgv && plannedAllowlistArgv.length > 0 ? plannedAllowlistArgv : null;
|
|
196
|
+
}
|
|
197
|
+
function resolveSystemRunExecArgv(params) {
|
|
198
|
+
let execArgv = params.plannedAllowlistArgv ?? params.argv;
|
|
199
|
+
if (params.security === "allowlist" && params.isWindows && !params.policy.approvedByAsk && params.shellCommand && params.policy.analysisOk && params.policy.allowlistSatisfied && params.segments.length === 1 && params.segments[0]?.argv.length > 0) execArgv = params.segments[0].argv;
|
|
200
|
+
return execArgv;
|
|
201
|
+
}
|
|
202
|
+
function applyOutputTruncation(result) {
|
|
203
|
+
if (!result.truncated) return;
|
|
204
|
+
const suffix = "... (truncated)";
|
|
205
|
+
if (result.stderr.trim().length > 0) result.stderr = `${result.stderr}\n${suffix}`;
|
|
206
|
+
else result.stdout = `${result.stdout}\n${suffix}`;
|
|
207
|
+
}
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region src/node-host/invoke-system-run-plan.ts
|
|
210
|
+
const MUTABLE_ARGV1_INTERPRETER_PATTERNS = [
|
|
211
|
+
/^(?:node|nodejs)$/,
|
|
212
|
+
/^perl$/,
|
|
213
|
+
/^php$/,
|
|
214
|
+
/^python(?:\d+(?:\.\d+)*)?$/,
|
|
215
|
+
/^ruby$/
|
|
216
|
+
];
|
|
217
|
+
const GENERIC_MUTABLE_SCRIPT_RUNNERS = new Set([
|
|
218
|
+
"esno",
|
|
219
|
+
"jiti",
|
|
220
|
+
"ts-node",
|
|
221
|
+
"ts-node-esm",
|
|
222
|
+
"tsx",
|
|
223
|
+
"vite-node"
|
|
224
|
+
]);
|
|
225
|
+
const BUN_SUBCOMMANDS = new Set([
|
|
226
|
+
"add",
|
|
227
|
+
"audit",
|
|
228
|
+
"completions",
|
|
229
|
+
"create",
|
|
230
|
+
"exec",
|
|
231
|
+
"help",
|
|
232
|
+
"init",
|
|
233
|
+
"install",
|
|
234
|
+
"link",
|
|
235
|
+
"outdated",
|
|
236
|
+
"patch",
|
|
237
|
+
"pm",
|
|
238
|
+
"publish",
|
|
239
|
+
"remove",
|
|
240
|
+
"repl",
|
|
241
|
+
"run",
|
|
242
|
+
"test",
|
|
243
|
+
"unlink",
|
|
244
|
+
"update",
|
|
245
|
+
"upgrade",
|
|
246
|
+
"x"
|
|
247
|
+
]);
|
|
248
|
+
const BUN_OPTIONS_WITH_VALUE = new Set([
|
|
249
|
+
"--backend",
|
|
250
|
+
"--bunfig",
|
|
251
|
+
"--conditions",
|
|
252
|
+
"--config",
|
|
253
|
+
"--console-depth",
|
|
254
|
+
"--cwd",
|
|
255
|
+
"--define",
|
|
256
|
+
"--elide-lines",
|
|
257
|
+
"--env-file",
|
|
258
|
+
"--extension-order",
|
|
259
|
+
"--filter",
|
|
260
|
+
"--hot",
|
|
261
|
+
"--inspect",
|
|
262
|
+
"--inspect-brk",
|
|
263
|
+
"--inspect-wait",
|
|
264
|
+
"--install",
|
|
265
|
+
"--jsx-factory",
|
|
266
|
+
"--jsx-fragment",
|
|
267
|
+
"--jsx-import-source",
|
|
268
|
+
"--loader",
|
|
269
|
+
"--origin",
|
|
270
|
+
"--port",
|
|
271
|
+
"--preload",
|
|
272
|
+
"--smol",
|
|
273
|
+
"--tsconfig-override",
|
|
274
|
+
"-c",
|
|
275
|
+
"-e",
|
|
276
|
+
"-p",
|
|
277
|
+
"-r"
|
|
278
|
+
]);
|
|
279
|
+
const DENO_RUN_OPTIONS_WITH_VALUE = new Set([
|
|
280
|
+
"--cached-only",
|
|
281
|
+
"--cert",
|
|
282
|
+
"--config",
|
|
283
|
+
"--env-file",
|
|
284
|
+
"--ext",
|
|
285
|
+
"--harmony-import-attributes",
|
|
286
|
+
"--import-map",
|
|
287
|
+
"--inspect",
|
|
288
|
+
"--inspect-brk",
|
|
289
|
+
"--inspect-wait",
|
|
290
|
+
"--location",
|
|
291
|
+
"--log-level",
|
|
292
|
+
"--lock",
|
|
293
|
+
"--node-modules-dir",
|
|
294
|
+
"--no-check",
|
|
295
|
+
"--preload",
|
|
296
|
+
"--reload",
|
|
297
|
+
"--seed",
|
|
298
|
+
"--strace-ops",
|
|
299
|
+
"--unstable-bare-node-builtins",
|
|
300
|
+
"--v8-flags",
|
|
301
|
+
"--watch",
|
|
302
|
+
"--watch-exclude",
|
|
303
|
+
"-L"
|
|
304
|
+
]);
|
|
305
|
+
const NODE_OPTIONS_WITH_FILE_VALUE = new Set([
|
|
306
|
+
"-r",
|
|
307
|
+
"--experimental-loader",
|
|
308
|
+
"--import",
|
|
309
|
+
"--loader",
|
|
310
|
+
"--require"
|
|
311
|
+
]);
|
|
312
|
+
const RUBY_UNSAFE_APPROVAL_FLAGS = new Set([
|
|
313
|
+
"-I",
|
|
314
|
+
"-r",
|
|
315
|
+
"--require"
|
|
316
|
+
]);
|
|
317
|
+
const PERL_UNSAFE_APPROVAL_FLAGS = new Set([
|
|
318
|
+
"-I",
|
|
319
|
+
"-M",
|
|
320
|
+
"-m"
|
|
321
|
+
]);
|
|
322
|
+
const POSIX_SHELL_OPTIONS_WITH_VALUE = new Set([
|
|
323
|
+
"--init-file",
|
|
324
|
+
"--rcfile",
|
|
325
|
+
"--startup-script",
|
|
326
|
+
"-o"
|
|
327
|
+
]);
|
|
328
|
+
const NPM_EXEC_OPTIONS_WITH_VALUE = new Set([
|
|
329
|
+
"--cache",
|
|
330
|
+
"--package",
|
|
331
|
+
"--prefix",
|
|
332
|
+
"--script-shell",
|
|
333
|
+
"--userconfig",
|
|
334
|
+
"--workspace",
|
|
335
|
+
"-p",
|
|
336
|
+
"-w"
|
|
337
|
+
]);
|
|
338
|
+
const NPM_EXEC_FLAG_OPTIONS = new Set([
|
|
339
|
+
"--no",
|
|
340
|
+
"--quiet",
|
|
341
|
+
"--ws",
|
|
342
|
+
"--workspaces",
|
|
343
|
+
"--yes",
|
|
344
|
+
"-q",
|
|
345
|
+
"-y"
|
|
346
|
+
]);
|
|
347
|
+
const PNPM_OPTIONS_WITH_VALUE = new Set([
|
|
348
|
+
"--config",
|
|
349
|
+
"--dir",
|
|
350
|
+
"--filter",
|
|
351
|
+
"--reporter",
|
|
352
|
+
"--stream",
|
|
353
|
+
"--test-pattern",
|
|
354
|
+
"--workspace-concurrency",
|
|
355
|
+
"-C"
|
|
356
|
+
]);
|
|
357
|
+
const PNPM_FLAG_OPTIONS = new Set([
|
|
358
|
+
"--aggregate-output",
|
|
359
|
+
"--color",
|
|
360
|
+
"--recursive",
|
|
361
|
+
"--silent",
|
|
362
|
+
"--workspace-root",
|
|
363
|
+
"-r"
|
|
364
|
+
]);
|
|
365
|
+
function normalizeString(value) {
|
|
366
|
+
if (typeof value !== "string") return null;
|
|
367
|
+
const trimmed = value.trim();
|
|
368
|
+
return trimmed ? trimmed : null;
|
|
369
|
+
}
|
|
370
|
+
function pathComponentsFromRootSync(targetPath) {
|
|
371
|
+
const absolute = path.resolve(targetPath);
|
|
372
|
+
const parts = [];
|
|
373
|
+
let cursor = absolute;
|
|
374
|
+
while (true) {
|
|
375
|
+
parts.unshift(cursor);
|
|
376
|
+
const parent = path.dirname(cursor);
|
|
377
|
+
if (parent === cursor) return parts;
|
|
378
|
+
cursor = parent;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
function isWritableByCurrentProcessSync(candidate) {
|
|
382
|
+
try {
|
|
383
|
+
fsSync.accessSync(candidate, fsSync.constants.W_OK);
|
|
384
|
+
return true;
|
|
385
|
+
} catch {
|
|
386
|
+
return false;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
function hasMutableSymlinkPathComponentSync(targetPath) {
|
|
390
|
+
for (const component of pathComponentsFromRootSync(targetPath)) try {
|
|
391
|
+
if (!fsSync.lstatSync(component).isSymbolicLink()) continue;
|
|
392
|
+
if (isWritableByCurrentProcessSync(path.dirname(component))) return true;
|
|
393
|
+
} catch {
|
|
394
|
+
return true;
|
|
395
|
+
}
|
|
396
|
+
return false;
|
|
397
|
+
}
|
|
398
|
+
function shouldPinExecutableForApproval(params) {
|
|
399
|
+
if (params.shellCommand !== null) return false;
|
|
400
|
+
return (params.wrapperChain?.length ?? 0) === 0;
|
|
401
|
+
}
|
|
402
|
+
function hashFileContentsSync(filePath) {
|
|
403
|
+
return crypto.createHash("sha256").update(fsSync.readFileSync(filePath)).digest("hex");
|
|
404
|
+
}
|
|
405
|
+
function looksLikePathToken(token) {
|
|
406
|
+
return token.startsWith(".") || token.startsWith("/") || token.startsWith("\\") || token.includes("/") || token.includes("\\") || path.extname(token).length > 0;
|
|
407
|
+
}
|
|
408
|
+
function resolvesToExistingFileSync(rawOperand, cwd) {
|
|
409
|
+
if (!rawOperand) return false;
|
|
410
|
+
try {
|
|
411
|
+
return fsSync.statSync(path.resolve(cwd ?? process.cwd(), rawOperand)).isFile();
|
|
412
|
+
} catch {
|
|
413
|
+
return false;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
function unwrapArgvForMutableOperand(argv) {
|
|
417
|
+
let current = argv;
|
|
418
|
+
let baseIndex = 0;
|
|
419
|
+
while (true) {
|
|
420
|
+
const dispatchUnwrap = unwrapKnownDispatchWrapperInvocation(current);
|
|
421
|
+
if (dispatchUnwrap.kind === "unwrapped") {
|
|
422
|
+
baseIndex += current.length - dispatchUnwrap.argv.length;
|
|
423
|
+
current = dispatchUnwrap.argv;
|
|
424
|
+
continue;
|
|
425
|
+
}
|
|
426
|
+
const shellMultiplexerUnwrap = unwrapKnownShellMultiplexerInvocation(current);
|
|
427
|
+
if (shellMultiplexerUnwrap.kind === "unwrapped") {
|
|
428
|
+
baseIndex += current.length - shellMultiplexerUnwrap.argv.length;
|
|
429
|
+
current = shellMultiplexerUnwrap.argv;
|
|
430
|
+
continue;
|
|
431
|
+
}
|
|
432
|
+
const packageManagerUnwrap = unwrapKnownPackageManagerExecInvocation(current);
|
|
433
|
+
if (packageManagerUnwrap) {
|
|
434
|
+
baseIndex += current.length - packageManagerUnwrap.length;
|
|
435
|
+
current = packageManagerUnwrap;
|
|
436
|
+
continue;
|
|
437
|
+
}
|
|
438
|
+
return {
|
|
439
|
+
argv: current,
|
|
440
|
+
baseIndex
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
function unwrapKnownPackageManagerExecInvocation(argv) {
|
|
445
|
+
switch (normalizePackageManagerExecToken(argv[0] ?? "")) {
|
|
446
|
+
case "npm": return unwrapNpmExecInvocation(argv);
|
|
447
|
+
case "npx":
|
|
448
|
+
case "bunx": return unwrapDirectPackageExecInvocation(argv);
|
|
449
|
+
case "pnpm": return unwrapPnpmExecInvocation(argv);
|
|
450
|
+
default: return null;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
function normalizePackageManagerExecToken(token) {
|
|
454
|
+
const normalized = normalizeExecutableToken(token);
|
|
455
|
+
if (!normalized) return normalized;
|
|
456
|
+
return normalized.replace(/\.(?:c|m)?js$/i, "");
|
|
457
|
+
}
|
|
458
|
+
function unwrapPnpmExecInvocation(argv) {
|
|
459
|
+
let idx = 1;
|
|
460
|
+
while (idx < argv.length) {
|
|
461
|
+
const token = argv[idx]?.trim() ?? "";
|
|
462
|
+
if (!token) {
|
|
463
|
+
idx += 1;
|
|
464
|
+
continue;
|
|
465
|
+
}
|
|
466
|
+
if (token === "--") {
|
|
467
|
+
idx += 1;
|
|
468
|
+
continue;
|
|
469
|
+
}
|
|
470
|
+
if (!token.startsWith("-")) {
|
|
471
|
+
if (token === "exec") {
|
|
472
|
+
if (idx + 1 >= argv.length) return null;
|
|
473
|
+
const tail = argv.slice(idx + 1);
|
|
474
|
+
return tail[0] === "--" ? tail.length > 1 ? tail.slice(1) : null : tail;
|
|
475
|
+
}
|
|
476
|
+
if (token === "node") {
|
|
477
|
+
const tail = argv.slice(idx + 1);
|
|
478
|
+
return ["node", ...tail[0] === "--" ? tail.slice(1) : tail];
|
|
479
|
+
}
|
|
480
|
+
return null;
|
|
481
|
+
}
|
|
482
|
+
const [flag] = token.toLowerCase().split("=", 2);
|
|
483
|
+
if (PNPM_OPTIONS_WITH_VALUE.has(flag)) {
|
|
484
|
+
idx += token.includes("=") ? 1 : 2;
|
|
485
|
+
continue;
|
|
486
|
+
}
|
|
487
|
+
if (PNPM_FLAG_OPTIONS.has(flag)) {
|
|
488
|
+
idx += 1;
|
|
489
|
+
continue;
|
|
490
|
+
}
|
|
491
|
+
return null;
|
|
492
|
+
}
|
|
493
|
+
return null;
|
|
494
|
+
}
|
|
495
|
+
function unwrapDirectPackageExecInvocation(argv) {
|
|
496
|
+
let idx = 1;
|
|
497
|
+
while (idx < argv.length) {
|
|
498
|
+
const token = argv[idx]?.trim() ?? "";
|
|
499
|
+
if (!token) {
|
|
500
|
+
idx += 1;
|
|
501
|
+
continue;
|
|
502
|
+
}
|
|
503
|
+
if (!token.startsWith("-")) return argv.slice(idx);
|
|
504
|
+
const [flag] = token.toLowerCase().split("=", 2);
|
|
505
|
+
if (flag === "-c" || flag === "--call") return null;
|
|
506
|
+
if (NPM_EXEC_OPTIONS_WITH_VALUE.has(flag)) {
|
|
507
|
+
idx += token.includes("=") ? 1 : 2;
|
|
508
|
+
continue;
|
|
509
|
+
}
|
|
510
|
+
if (NPM_EXEC_FLAG_OPTIONS.has(flag)) {
|
|
511
|
+
idx += 1;
|
|
512
|
+
continue;
|
|
513
|
+
}
|
|
514
|
+
return null;
|
|
515
|
+
}
|
|
516
|
+
return null;
|
|
517
|
+
}
|
|
518
|
+
function unwrapNpmExecInvocation(argv) {
|
|
519
|
+
let idx = 1;
|
|
520
|
+
while (idx < argv.length) {
|
|
521
|
+
const token = argv[idx]?.trim() ?? "";
|
|
522
|
+
if (!token) {
|
|
523
|
+
idx += 1;
|
|
524
|
+
continue;
|
|
525
|
+
}
|
|
526
|
+
if (!token.startsWith("-")) {
|
|
527
|
+
if (token !== "exec") return null;
|
|
528
|
+
idx += 1;
|
|
529
|
+
break;
|
|
530
|
+
}
|
|
531
|
+
if ((token === "-C" || token === "--prefix" || token === "--userconfig") && !token.includes("=")) {
|
|
532
|
+
idx += 2;
|
|
533
|
+
continue;
|
|
534
|
+
}
|
|
535
|
+
idx += 1;
|
|
536
|
+
}
|
|
537
|
+
if (idx >= argv.length) return null;
|
|
538
|
+
const tail = argv.slice(idx);
|
|
539
|
+
if (tail[0] === "--") return tail.length > 1 ? tail.slice(1) : null;
|
|
540
|
+
return unwrapDirectPackageExecInvocation(["npx", ...tail]);
|
|
541
|
+
}
|
|
542
|
+
function resolvePosixShellScriptOperandIndex(argv) {
|
|
543
|
+
if (resolveInlineCommandMatch(argv, POSIX_INLINE_COMMAND_FLAGS, { allowCombinedC: true }).valueTokenIndex !== null) return null;
|
|
544
|
+
let afterDoubleDash = false;
|
|
545
|
+
for (let i = 1; i < argv.length; i += 1) {
|
|
546
|
+
const token = argv[i]?.trim() ?? "";
|
|
547
|
+
if (!token) continue;
|
|
548
|
+
if (token === "-") return null;
|
|
549
|
+
if (!afterDoubleDash && token === "--") {
|
|
550
|
+
afterDoubleDash = true;
|
|
551
|
+
continue;
|
|
552
|
+
}
|
|
553
|
+
if (!afterDoubleDash && token === "-s") return null;
|
|
554
|
+
if (!afterDoubleDash && token.startsWith("-")) {
|
|
555
|
+
const [flag] = token.toLowerCase().split("=", 2);
|
|
556
|
+
if (POSIX_SHELL_OPTIONS_WITH_VALUE.has(flag)) {
|
|
557
|
+
if (!token.includes("=")) i += 1;
|
|
558
|
+
continue;
|
|
559
|
+
}
|
|
560
|
+
continue;
|
|
561
|
+
}
|
|
562
|
+
return i;
|
|
563
|
+
}
|
|
564
|
+
return null;
|
|
565
|
+
}
|
|
566
|
+
function resolveOptionFilteredFileOperandIndex(params) {
|
|
567
|
+
let afterDoubleDash = false;
|
|
568
|
+
for (let i = params.startIndex; i < params.argv.length; i += 1) {
|
|
569
|
+
const token = params.argv[i]?.trim() ?? "";
|
|
570
|
+
if (!token) continue;
|
|
571
|
+
if (afterDoubleDash) return resolvesToExistingFileSync(token, params.cwd) ? i : null;
|
|
572
|
+
if (token === "--") {
|
|
573
|
+
afterDoubleDash = true;
|
|
574
|
+
continue;
|
|
575
|
+
}
|
|
576
|
+
if (token === "-") return null;
|
|
577
|
+
if (token.startsWith("-")) {
|
|
578
|
+
if (!token.includes("=") && params.optionsWithValue?.has(token)) i += 1;
|
|
579
|
+
continue;
|
|
580
|
+
}
|
|
581
|
+
return resolvesToExistingFileSync(token, params.cwd) ? i : null;
|
|
582
|
+
}
|
|
583
|
+
return null;
|
|
584
|
+
}
|
|
585
|
+
function resolveOptionFilteredPositionalIndex(params) {
|
|
586
|
+
let afterDoubleDash = false;
|
|
587
|
+
for (let i = params.startIndex; i < params.argv.length; i += 1) {
|
|
588
|
+
const token = params.argv[i]?.trim() ?? "";
|
|
589
|
+
if (!token) continue;
|
|
590
|
+
if (afterDoubleDash) return i;
|
|
591
|
+
if (token === "--") {
|
|
592
|
+
afterDoubleDash = true;
|
|
593
|
+
continue;
|
|
594
|
+
}
|
|
595
|
+
if (token === "-") return null;
|
|
596
|
+
if (token.startsWith("-")) {
|
|
597
|
+
if (!token.includes("=") && params.optionsWithValue?.has(token)) i += 1;
|
|
598
|
+
continue;
|
|
599
|
+
}
|
|
600
|
+
return i;
|
|
601
|
+
}
|
|
602
|
+
return null;
|
|
603
|
+
}
|
|
604
|
+
function collectExistingFileOperandIndexes(params) {
|
|
605
|
+
let afterDoubleDash = false;
|
|
606
|
+
const hits = [];
|
|
607
|
+
for (let i = params.startIndex; i < params.argv.length; i += 1) {
|
|
608
|
+
const token = params.argv[i]?.trim() ?? "";
|
|
609
|
+
if (!token) continue;
|
|
610
|
+
if (afterDoubleDash) {
|
|
611
|
+
if (resolvesToExistingFileSync(token, params.cwd)) hits.push(i);
|
|
612
|
+
continue;
|
|
613
|
+
}
|
|
614
|
+
if (token === "--") {
|
|
615
|
+
afterDoubleDash = true;
|
|
616
|
+
continue;
|
|
617
|
+
}
|
|
618
|
+
if (token === "-") return {
|
|
619
|
+
hits: [],
|
|
620
|
+
sawOptionValueFile: false
|
|
621
|
+
};
|
|
622
|
+
if (token.startsWith("-")) {
|
|
623
|
+
const [flag, inlineValue] = token.split("=", 2);
|
|
624
|
+
if (params.optionsWithFileValue?.has(flag.toLowerCase())) {
|
|
625
|
+
if (inlineValue && resolvesToExistingFileSync(inlineValue, params.cwd)) {
|
|
626
|
+
hits.push(i);
|
|
627
|
+
return {
|
|
628
|
+
hits,
|
|
629
|
+
sawOptionValueFile: true
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
const nextToken = params.argv[i + 1]?.trim() ?? "";
|
|
633
|
+
if (!inlineValue && nextToken && resolvesToExistingFileSync(nextToken, params.cwd)) {
|
|
634
|
+
hits.push(i + 1);
|
|
635
|
+
return {
|
|
636
|
+
hits,
|
|
637
|
+
sawOptionValueFile: true
|
|
638
|
+
};
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
continue;
|
|
642
|
+
}
|
|
643
|
+
if (resolvesToExistingFileSync(token, params.cwd)) hits.push(i);
|
|
644
|
+
}
|
|
645
|
+
return {
|
|
646
|
+
hits,
|
|
647
|
+
sawOptionValueFile: false
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
function resolveGenericInterpreterScriptOperandIndex(params) {
|
|
651
|
+
const collection = collectExistingFileOperandIndexes({
|
|
652
|
+
argv: params.argv,
|
|
653
|
+
startIndex: 1,
|
|
654
|
+
cwd: params.cwd,
|
|
655
|
+
optionsWithFileValue: params.optionsWithFileValue
|
|
656
|
+
});
|
|
657
|
+
if (collection.sawOptionValueFile) return null;
|
|
658
|
+
return collection.hits.length === 1 ? collection.hits[0] : null;
|
|
659
|
+
}
|
|
660
|
+
function resolveBunScriptOperandIndex(params) {
|
|
661
|
+
const directIndex = resolveOptionFilteredPositionalIndex({
|
|
662
|
+
argv: params.argv,
|
|
663
|
+
startIndex: 1,
|
|
664
|
+
optionsWithValue: BUN_OPTIONS_WITH_VALUE
|
|
665
|
+
});
|
|
666
|
+
if (directIndex === null) return null;
|
|
667
|
+
const directToken = params.argv[directIndex]?.trim() ?? "";
|
|
668
|
+
if (directToken === "run") return resolveOptionFilteredFileOperandIndex({
|
|
669
|
+
argv: params.argv,
|
|
670
|
+
startIndex: directIndex + 1,
|
|
671
|
+
cwd: params.cwd,
|
|
672
|
+
optionsWithValue: BUN_OPTIONS_WITH_VALUE
|
|
673
|
+
});
|
|
674
|
+
if (BUN_SUBCOMMANDS.has(directToken)) return null;
|
|
675
|
+
if (!looksLikePathToken(directToken)) return null;
|
|
676
|
+
return directIndex;
|
|
677
|
+
}
|
|
678
|
+
function resolveDenoRunScriptOperandIndex(params) {
|
|
679
|
+
if ((params.argv[1]?.trim() ?? "") !== "run") return null;
|
|
680
|
+
return resolveOptionFilteredFileOperandIndex({
|
|
681
|
+
argv: params.argv,
|
|
682
|
+
startIndex: 2,
|
|
683
|
+
cwd: params.cwd,
|
|
684
|
+
optionsWithValue: DENO_RUN_OPTIONS_WITH_VALUE
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
function hasRubyUnsafeApprovalFlag(argv) {
|
|
688
|
+
let afterDoubleDash = false;
|
|
689
|
+
for (let i = 1; i < argv.length; i += 1) {
|
|
690
|
+
const token = argv[i]?.trim() ?? "";
|
|
691
|
+
if (!token) continue;
|
|
692
|
+
if (afterDoubleDash) return false;
|
|
693
|
+
if (token === "--") {
|
|
694
|
+
afterDoubleDash = true;
|
|
695
|
+
continue;
|
|
696
|
+
}
|
|
697
|
+
if (token === "-I" || token === "-r") return true;
|
|
698
|
+
if (token.startsWith("-I") || token.startsWith("-r")) return true;
|
|
699
|
+
if (RUBY_UNSAFE_APPROVAL_FLAGS.has(token.toLowerCase())) return true;
|
|
700
|
+
}
|
|
701
|
+
return false;
|
|
702
|
+
}
|
|
703
|
+
function hasPerlUnsafeApprovalFlag(argv) {
|
|
704
|
+
let afterDoubleDash = false;
|
|
705
|
+
for (let i = 1; i < argv.length; i += 1) {
|
|
706
|
+
const token = argv[i]?.trim() ?? "";
|
|
707
|
+
if (!token) continue;
|
|
708
|
+
if (afterDoubleDash) return false;
|
|
709
|
+
if (token === "--") {
|
|
710
|
+
afterDoubleDash = true;
|
|
711
|
+
continue;
|
|
712
|
+
}
|
|
713
|
+
if (token === "-I" || token === "-M" || token === "-m") return true;
|
|
714
|
+
if (token.startsWith("-I") || token.startsWith("-M") || token.startsWith("-m")) return true;
|
|
715
|
+
if (PERL_UNSAFE_APPROVAL_FLAGS.has(token)) return true;
|
|
716
|
+
}
|
|
717
|
+
return false;
|
|
718
|
+
}
|
|
719
|
+
function isMutableScriptRunner(executable) {
|
|
720
|
+
return GENERIC_MUTABLE_SCRIPT_RUNNERS.has(executable) || isInterpreterLikeSafeBin(executable);
|
|
721
|
+
}
|
|
722
|
+
function resolveMutableFileOperandIndex(argv, cwd) {
|
|
723
|
+
const unwrapped = unwrapArgvForMutableOperand(argv);
|
|
724
|
+
const executable = normalizeExecutableToken(unwrapped.argv[0] ?? "");
|
|
725
|
+
if (!executable) return null;
|
|
726
|
+
if (POSIX_SHELL_WRAPPERS.has(executable)) {
|
|
727
|
+
const shellIndex = resolvePosixShellScriptOperandIndex(unwrapped.argv);
|
|
728
|
+
return shellIndex === null ? null : unwrapped.baseIndex + shellIndex;
|
|
729
|
+
}
|
|
730
|
+
if (MUTABLE_ARGV1_INTERPRETER_PATTERNS.some((pattern) => pattern.test(executable))) {
|
|
731
|
+
const operand = unwrapped.argv[1]?.trim() ?? "";
|
|
732
|
+
if (operand && operand !== "-" && !operand.startsWith("-")) return unwrapped.baseIndex + 1;
|
|
733
|
+
}
|
|
734
|
+
if (executable === "bun") {
|
|
735
|
+
const bunIndex = resolveBunScriptOperandIndex({
|
|
736
|
+
argv: unwrapped.argv,
|
|
737
|
+
cwd
|
|
738
|
+
});
|
|
739
|
+
if (bunIndex !== null) return unwrapped.baseIndex + bunIndex;
|
|
740
|
+
}
|
|
741
|
+
if (executable === "deno") {
|
|
742
|
+
const denoIndex = resolveDenoRunScriptOperandIndex({
|
|
743
|
+
argv: unwrapped.argv,
|
|
744
|
+
cwd
|
|
745
|
+
});
|
|
746
|
+
if (denoIndex !== null) return unwrapped.baseIndex + denoIndex;
|
|
747
|
+
}
|
|
748
|
+
if (executable === "ruby" && hasRubyUnsafeApprovalFlag(unwrapped.argv)) return null;
|
|
749
|
+
if (executable === "perl" && hasPerlUnsafeApprovalFlag(unwrapped.argv)) return null;
|
|
750
|
+
if (!isMutableScriptRunner(executable)) return null;
|
|
751
|
+
const genericIndex = resolveGenericInterpreterScriptOperandIndex({
|
|
752
|
+
argv: unwrapped.argv,
|
|
753
|
+
cwd,
|
|
754
|
+
optionsWithFileValue: executable === "node" || executable === "nodejs" ? NODE_OPTIONS_WITH_FILE_VALUE : void 0
|
|
755
|
+
});
|
|
756
|
+
return genericIndex === null ? null : unwrapped.baseIndex + genericIndex;
|
|
757
|
+
}
|
|
758
|
+
function shellPayloadNeedsStableBinding(shellCommand, cwd) {
|
|
759
|
+
const argv = splitShellArgs(shellCommand);
|
|
760
|
+
if (!argv || argv.length === 0) return false;
|
|
761
|
+
const snapshot = resolveMutableFileOperandSnapshotSync({
|
|
762
|
+
argv,
|
|
763
|
+
cwd,
|
|
764
|
+
shellCommand: null
|
|
765
|
+
});
|
|
766
|
+
if (!snapshot.ok) return true;
|
|
767
|
+
if (snapshot.snapshot) return true;
|
|
768
|
+
return resolvesToExistingFileSync(argv[0]?.trim() ?? "", cwd);
|
|
769
|
+
}
|
|
770
|
+
function requiresStableInterpreterApprovalBindingWithShellCommand(params) {
|
|
771
|
+
if (params.shellCommand !== null) return shellPayloadNeedsStableBinding(params.shellCommand, params.cwd);
|
|
772
|
+
const executable = normalizeExecutableToken(unwrapArgvForMutableOperand(params.argv).argv[0] ?? "");
|
|
773
|
+
if (!executable) return false;
|
|
774
|
+
if (POSIX_SHELL_WRAPPERS.has(executable)) return false;
|
|
775
|
+
return isMutableScriptRunner(executable);
|
|
776
|
+
}
|
|
777
|
+
function resolveMutableFileOperandSnapshotSync(params) {
|
|
778
|
+
const argvIndex = resolveMutableFileOperandIndex(params.argv, params.cwd);
|
|
779
|
+
if (argvIndex === null) {
|
|
780
|
+
if (requiresStableInterpreterApprovalBindingWithShellCommand({
|
|
781
|
+
argv: params.argv,
|
|
782
|
+
shellCommand: params.shellCommand,
|
|
783
|
+
cwd: params.cwd
|
|
784
|
+
})) return {
|
|
785
|
+
ok: false,
|
|
786
|
+
message: "SYSTEM_RUN_DENIED: approval cannot safely bind this interpreter/runtime command"
|
|
787
|
+
};
|
|
788
|
+
return {
|
|
789
|
+
ok: true,
|
|
790
|
+
snapshot: null
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
const rawOperand = params.argv[argvIndex]?.trim();
|
|
794
|
+
if (!rawOperand) return {
|
|
795
|
+
ok: false,
|
|
796
|
+
message: "SYSTEM_RUN_DENIED: approval requires a stable script operand"
|
|
797
|
+
};
|
|
798
|
+
const resolvedPath = path.resolve(params.cwd ?? process.cwd(), rawOperand);
|
|
799
|
+
let realPath;
|
|
800
|
+
let stat;
|
|
801
|
+
try {
|
|
802
|
+
realPath = fsSync.realpathSync(resolvedPath);
|
|
803
|
+
stat = fsSync.statSync(realPath);
|
|
804
|
+
} catch {
|
|
805
|
+
return {
|
|
806
|
+
ok: false,
|
|
807
|
+
message: "SYSTEM_RUN_DENIED: approval requires an existing script operand"
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
if (!stat.isFile()) return {
|
|
811
|
+
ok: false,
|
|
812
|
+
message: "SYSTEM_RUN_DENIED: approval requires a file script operand"
|
|
813
|
+
};
|
|
814
|
+
return {
|
|
815
|
+
ok: true,
|
|
816
|
+
snapshot: {
|
|
817
|
+
argvIndex,
|
|
818
|
+
path: realPath,
|
|
819
|
+
sha256: hashFileContentsSync(realPath)
|
|
820
|
+
}
|
|
821
|
+
};
|
|
822
|
+
}
|
|
823
|
+
function resolveCanonicalApprovalCwdSync(cwd) {
|
|
824
|
+
const requestedCwd = path.resolve(cwd);
|
|
825
|
+
let cwdLstat;
|
|
826
|
+
let cwdStat;
|
|
827
|
+
let cwdReal;
|
|
828
|
+
let cwdRealStat;
|
|
829
|
+
try {
|
|
830
|
+
cwdLstat = fsSync.lstatSync(requestedCwd);
|
|
831
|
+
cwdStat = fsSync.statSync(requestedCwd);
|
|
832
|
+
cwdReal = fsSync.realpathSync(requestedCwd);
|
|
833
|
+
cwdRealStat = fsSync.statSync(cwdReal);
|
|
834
|
+
} catch {
|
|
835
|
+
return {
|
|
836
|
+
ok: false,
|
|
837
|
+
message: "SYSTEM_RUN_DENIED: approval requires an existing canonical cwd"
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
if (!cwdStat.isDirectory()) return {
|
|
841
|
+
ok: false,
|
|
842
|
+
message: "SYSTEM_RUN_DENIED: approval requires cwd to be a directory"
|
|
843
|
+
};
|
|
844
|
+
if (hasMutableSymlinkPathComponentSync(requestedCwd)) return {
|
|
845
|
+
ok: false,
|
|
846
|
+
message: "SYSTEM_RUN_DENIED: approval requires canonical cwd (no symlink path components)"
|
|
847
|
+
};
|
|
848
|
+
if (cwdLstat.isSymbolicLink()) return {
|
|
849
|
+
ok: false,
|
|
850
|
+
message: "SYSTEM_RUN_DENIED: approval requires canonical cwd (no symlink cwd)"
|
|
851
|
+
};
|
|
852
|
+
if (!sameFileIdentity(cwdStat, cwdLstat) || !sameFileIdentity(cwdStat, cwdRealStat) || !sameFileIdentity(cwdLstat, cwdRealStat)) return {
|
|
853
|
+
ok: false,
|
|
854
|
+
message: "SYSTEM_RUN_DENIED: approval cwd identity mismatch"
|
|
855
|
+
};
|
|
856
|
+
return {
|
|
857
|
+
ok: true,
|
|
858
|
+
snapshot: {
|
|
859
|
+
cwd: cwdReal,
|
|
860
|
+
stat: cwdStat
|
|
861
|
+
}
|
|
862
|
+
};
|
|
863
|
+
}
|
|
864
|
+
function revalidateApprovedCwdSnapshot(params) {
|
|
865
|
+
const current = resolveCanonicalApprovalCwdSync(params.snapshot.cwd);
|
|
866
|
+
if (!current.ok) return false;
|
|
867
|
+
return sameFileIdentity(params.snapshot.stat, current.snapshot.stat);
|
|
868
|
+
}
|
|
869
|
+
function revalidateApprovedMutableFileOperand(params) {
|
|
870
|
+
const operand = params.argv[params.snapshot.argvIndex]?.trim();
|
|
871
|
+
if (!operand) return false;
|
|
872
|
+
const resolvedPath = path.resolve(params.cwd ?? process.cwd(), operand);
|
|
873
|
+
let realPath;
|
|
874
|
+
try {
|
|
875
|
+
realPath = fsSync.realpathSync(resolvedPath);
|
|
876
|
+
} catch {
|
|
877
|
+
return false;
|
|
878
|
+
}
|
|
879
|
+
if (realPath !== params.snapshot.path) return false;
|
|
880
|
+
try {
|
|
881
|
+
return hashFileContentsSync(realPath) === params.snapshot.sha256;
|
|
882
|
+
} catch {
|
|
883
|
+
return false;
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
function hardenApprovedExecutionPaths(params) {
|
|
887
|
+
if (!params.approvedByAsk) return {
|
|
888
|
+
ok: true,
|
|
889
|
+
argv: params.argv,
|
|
890
|
+
argvChanged: false,
|
|
891
|
+
cwd: params.cwd,
|
|
892
|
+
approvedCwdSnapshot: void 0
|
|
893
|
+
};
|
|
894
|
+
let hardenedCwd = params.cwd;
|
|
895
|
+
let approvedCwdSnapshot;
|
|
896
|
+
if (hardenedCwd) {
|
|
897
|
+
const canonicalCwd = resolveCanonicalApprovalCwdSync(hardenedCwd);
|
|
898
|
+
if (!canonicalCwd.ok) return canonicalCwd;
|
|
899
|
+
hardenedCwd = canonicalCwd.snapshot.cwd;
|
|
900
|
+
approvedCwdSnapshot = canonicalCwd.snapshot;
|
|
901
|
+
}
|
|
902
|
+
if (params.argv.length === 0) return {
|
|
903
|
+
ok: true,
|
|
904
|
+
argv: params.argv,
|
|
905
|
+
argvChanged: false,
|
|
906
|
+
cwd: hardenedCwd,
|
|
907
|
+
approvedCwdSnapshot
|
|
908
|
+
};
|
|
909
|
+
const resolution = resolveCommandResolutionFromArgv(params.argv, hardenedCwd);
|
|
910
|
+
if (!shouldPinExecutableForApproval({
|
|
911
|
+
shellCommand: params.shellCommand,
|
|
912
|
+
wrapperChain: resolution?.wrapperChain
|
|
913
|
+
})) return {
|
|
914
|
+
ok: true,
|
|
915
|
+
argv: params.argv,
|
|
916
|
+
argvChanged: false,
|
|
917
|
+
cwd: hardenedCwd,
|
|
918
|
+
approvedCwdSnapshot
|
|
919
|
+
};
|
|
920
|
+
const pinnedExecutable = resolution?.execution.resolvedRealPath ?? resolution?.execution.resolvedPath;
|
|
921
|
+
if (!pinnedExecutable) return {
|
|
922
|
+
ok: false,
|
|
923
|
+
message: "SYSTEM_RUN_DENIED: approval requires a stable executable path"
|
|
924
|
+
};
|
|
925
|
+
if (pinnedExecutable === params.argv[0]) return {
|
|
926
|
+
ok: true,
|
|
927
|
+
argv: params.argv,
|
|
928
|
+
argvChanged: false,
|
|
929
|
+
cwd: hardenedCwd,
|
|
930
|
+
approvedCwdSnapshot
|
|
931
|
+
};
|
|
932
|
+
const argv = [...params.argv];
|
|
933
|
+
argv[0] = pinnedExecutable;
|
|
934
|
+
return {
|
|
935
|
+
ok: true,
|
|
936
|
+
argv,
|
|
937
|
+
argvChanged: true,
|
|
938
|
+
cwd: hardenedCwd,
|
|
939
|
+
approvedCwdSnapshot
|
|
940
|
+
};
|
|
941
|
+
}
|
|
942
|
+
function buildSystemRunApprovalPlan(params) {
|
|
943
|
+
const command = resolveSystemRunCommandRequest({
|
|
944
|
+
command: params.command,
|
|
945
|
+
rawCommand: params.rawCommand
|
|
946
|
+
});
|
|
947
|
+
if (!command.ok) return {
|
|
948
|
+
ok: false,
|
|
949
|
+
message: command.message
|
|
950
|
+
};
|
|
951
|
+
if (command.argv.length === 0) return {
|
|
952
|
+
ok: false,
|
|
953
|
+
message: "command required"
|
|
954
|
+
};
|
|
955
|
+
const hardening = hardenApprovedExecutionPaths({
|
|
956
|
+
approvedByAsk: true,
|
|
957
|
+
argv: command.argv,
|
|
958
|
+
shellCommand: command.shellPayload,
|
|
959
|
+
cwd: normalizeString(params.cwd) ?? void 0
|
|
960
|
+
});
|
|
961
|
+
if (!hardening.ok) return {
|
|
962
|
+
ok: false,
|
|
963
|
+
message: hardening.message
|
|
964
|
+
};
|
|
965
|
+
const commandText = formatExecCommand(hardening.argv);
|
|
966
|
+
const commandPreview = command.previewText?.trim() && command.previewText.trim() !== commandText ? command.previewText.trim() : null;
|
|
967
|
+
const mutableFileOperand = resolveMutableFileOperandSnapshotSync({
|
|
968
|
+
argv: hardening.argv,
|
|
969
|
+
cwd: hardening.cwd,
|
|
970
|
+
shellCommand: command.shellPayload
|
|
971
|
+
});
|
|
972
|
+
if (!mutableFileOperand.ok) return {
|
|
973
|
+
ok: false,
|
|
974
|
+
message: mutableFileOperand.message
|
|
975
|
+
};
|
|
976
|
+
return {
|
|
977
|
+
ok: true,
|
|
978
|
+
plan: {
|
|
979
|
+
argv: hardening.argv,
|
|
980
|
+
cwd: hardening.cwd ?? null,
|
|
981
|
+
commandText,
|
|
982
|
+
commandPreview,
|
|
983
|
+
agentId: normalizeString(params.agentId),
|
|
984
|
+
sessionKey: normalizeString(params.sessionKey),
|
|
985
|
+
mutableFileOperand: mutableFileOperand.snapshot ?? void 0
|
|
986
|
+
}
|
|
987
|
+
};
|
|
988
|
+
}
|
|
989
|
+
//#endregion
|
|
990
|
+
//#region src/node-host/invoke-system-run.ts
|
|
991
|
+
const safeBinTrustedDirWarningCache = /* @__PURE__ */ new Set();
|
|
992
|
+
const APPROVAL_CWD_DRIFT_DENIED_MESSAGE = "SYSTEM_RUN_DENIED: approval cwd changed before execution";
|
|
993
|
+
const APPROVAL_SCRIPT_OPERAND_BINDING_DENIED_MESSAGE = "SYSTEM_RUN_DENIED: approval missing script operand binding";
|
|
994
|
+
const APPROVAL_SCRIPT_OPERAND_DRIFT_DENIED_MESSAGE = "SYSTEM_RUN_DENIED: approval script operand changed before execution";
|
|
995
|
+
function warnWritableTrustedDirOnce(message) {
|
|
996
|
+
if (safeBinTrustedDirWarningCache.has(message)) return;
|
|
997
|
+
safeBinTrustedDirWarningCache.add(message);
|
|
998
|
+
logWarn(message);
|
|
999
|
+
}
|
|
1000
|
+
function normalizeDeniedReason(reason) {
|
|
1001
|
+
switch (reason) {
|
|
1002
|
+
case "security=deny":
|
|
1003
|
+
case "approval-required":
|
|
1004
|
+
case "allowlist-miss":
|
|
1005
|
+
case "execution-plan-miss":
|
|
1006
|
+
case "companion-unavailable":
|
|
1007
|
+
case "permission:screenRecording": return reason;
|
|
1008
|
+
default: return "approval-required";
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
async function sendSystemRunDenied(opts, execution, params) {
|
|
1012
|
+
await opts.sendNodeEvent(opts.client, "exec.denied", opts.buildExecEventPayload({
|
|
1013
|
+
sessionKey: execution.sessionKey,
|
|
1014
|
+
runId: execution.runId,
|
|
1015
|
+
host: "node",
|
|
1016
|
+
command: execution.commandText,
|
|
1017
|
+
reason: params.reason,
|
|
1018
|
+
suppressNotifyOnExit: execution.suppressNotifyOnExit
|
|
1019
|
+
}));
|
|
1020
|
+
await opts.sendInvokeResult({
|
|
1021
|
+
ok: false,
|
|
1022
|
+
error: {
|
|
1023
|
+
code: "UNAVAILABLE",
|
|
1024
|
+
message: params.message
|
|
1025
|
+
}
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
async function sendSystemRunCompleted(opts, execution, result, payloadJSON) {
|
|
1029
|
+
await opts.sendExecFinishedEvent({
|
|
1030
|
+
sessionKey: execution.sessionKey,
|
|
1031
|
+
runId: execution.runId,
|
|
1032
|
+
commandText: execution.commandText,
|
|
1033
|
+
result,
|
|
1034
|
+
suppressNotifyOnExit: execution.suppressNotifyOnExit
|
|
1035
|
+
});
|
|
1036
|
+
await opts.sendInvokeResult({
|
|
1037
|
+
ok: true,
|
|
1038
|
+
payloadJSON
|
|
1039
|
+
});
|
|
1040
|
+
}
|
|
1041
|
+
async function parseSystemRunPhase(opts) {
|
|
1042
|
+
const command = resolveSystemRunCommandRequest({
|
|
1043
|
+
command: opts.params.command,
|
|
1044
|
+
rawCommand: opts.params.rawCommand
|
|
1045
|
+
});
|
|
1046
|
+
if (!command.ok) {
|
|
1047
|
+
await opts.sendInvokeResult({
|
|
1048
|
+
ok: false,
|
|
1049
|
+
error: {
|
|
1050
|
+
code: "INVALID_REQUEST",
|
|
1051
|
+
message: command.message
|
|
1052
|
+
}
|
|
1053
|
+
});
|
|
1054
|
+
return null;
|
|
1055
|
+
}
|
|
1056
|
+
if (command.argv.length === 0) {
|
|
1057
|
+
await opts.sendInvokeResult({
|
|
1058
|
+
ok: false,
|
|
1059
|
+
error: {
|
|
1060
|
+
code: "INVALID_REQUEST",
|
|
1061
|
+
message: "command required"
|
|
1062
|
+
}
|
|
1063
|
+
});
|
|
1064
|
+
return null;
|
|
1065
|
+
}
|
|
1066
|
+
const shellPayload = command.shellPayload;
|
|
1067
|
+
const commandText = command.commandText;
|
|
1068
|
+
const approvalPlan = opts.params.systemRunPlan === void 0 ? null : normalizeSystemRunApprovalPlan(opts.params.systemRunPlan);
|
|
1069
|
+
if (opts.params.systemRunPlan !== void 0 && !approvalPlan) {
|
|
1070
|
+
await opts.sendInvokeResult({
|
|
1071
|
+
ok: false,
|
|
1072
|
+
error: {
|
|
1073
|
+
code: "INVALID_REQUEST",
|
|
1074
|
+
message: "systemRunPlan invalid"
|
|
1075
|
+
}
|
|
1076
|
+
});
|
|
1077
|
+
return null;
|
|
1078
|
+
}
|
|
1079
|
+
const agentId = opts.params.agentId?.trim() || void 0;
|
|
1080
|
+
const sessionKey = opts.params.sessionKey?.trim() || "node";
|
|
1081
|
+
const runId = opts.params.runId?.trim() || crypto.randomUUID();
|
|
1082
|
+
const suppressNotifyOnExit = opts.params.suppressNotifyOnExit === true;
|
|
1083
|
+
const envOverrideDiagnostics = inspectHostExecEnvOverrides({
|
|
1084
|
+
overrides: opts.params.env ?? void 0,
|
|
1085
|
+
blockPathOverrides: true
|
|
1086
|
+
});
|
|
1087
|
+
if (envOverrideDiagnostics.rejectedOverrideBlockedKeys.length > 0 || envOverrideDiagnostics.rejectedOverrideInvalidKeys.length > 0) {
|
|
1088
|
+
const details = [];
|
|
1089
|
+
if (envOverrideDiagnostics.rejectedOverrideBlockedKeys.length > 0) details.push(`blocked override keys: ${envOverrideDiagnostics.rejectedOverrideBlockedKeys.join(", ")}`);
|
|
1090
|
+
if (envOverrideDiagnostics.rejectedOverrideInvalidKeys.length > 0) details.push(`invalid non-portable override keys: ${envOverrideDiagnostics.rejectedOverrideInvalidKeys.join(", ")}`);
|
|
1091
|
+
await opts.sendInvokeResult({
|
|
1092
|
+
ok: false,
|
|
1093
|
+
error: {
|
|
1094
|
+
code: "INVALID_REQUEST",
|
|
1095
|
+
message: `SYSTEM_RUN_DENIED: environment override rejected (${details.join("; ")})`
|
|
1096
|
+
}
|
|
1097
|
+
});
|
|
1098
|
+
return null;
|
|
1099
|
+
}
|
|
1100
|
+
const envOverrides = sanitizeSystemRunEnvOverrides({
|
|
1101
|
+
overrides: opts.params.env ?? void 0,
|
|
1102
|
+
shellWrapper: shellPayload !== null
|
|
1103
|
+
});
|
|
1104
|
+
return {
|
|
1105
|
+
argv: command.argv,
|
|
1106
|
+
shellPayload,
|
|
1107
|
+
commandText,
|
|
1108
|
+
commandPreview: command.previewText,
|
|
1109
|
+
approvalPlan,
|
|
1110
|
+
agentId,
|
|
1111
|
+
sessionKey,
|
|
1112
|
+
runId,
|
|
1113
|
+
execution: {
|
|
1114
|
+
sessionKey,
|
|
1115
|
+
runId,
|
|
1116
|
+
commandText,
|
|
1117
|
+
suppressNotifyOnExit
|
|
1118
|
+
},
|
|
1119
|
+
approvalDecision: resolveExecApprovalDecision(opts.params.approvalDecision),
|
|
1120
|
+
envOverrides,
|
|
1121
|
+
env: opts.sanitizeEnv(envOverrides),
|
|
1122
|
+
cwd: opts.params.cwd?.trim() || void 0,
|
|
1123
|
+
timeoutMs: opts.params.timeoutMs ?? void 0,
|
|
1124
|
+
needsScreenRecording: opts.params.needsScreenRecording === true,
|
|
1125
|
+
approved: opts.params.approved === true,
|
|
1126
|
+
suppressNotifyOnExit
|
|
1127
|
+
};
|
|
1128
|
+
}
|
|
1129
|
+
async function evaluateSystemRunPolicyPhase(opts, parsed) {
|
|
1130
|
+
const cfg = loadConfig();
|
|
1131
|
+
const agentExec = parsed.agentId ? resolveAgentConfig(cfg, parsed.agentId)?.tools?.exec : void 0;
|
|
1132
|
+
const configuredSecurity = opts.resolveExecSecurity(agentExec?.security ?? cfg.tools?.exec?.security);
|
|
1133
|
+
const configuredAsk = opts.resolveExecAsk(agentExec?.ask ?? cfg.tools?.exec?.ask);
|
|
1134
|
+
const approvals = resolveExecApprovals(parsed.agentId, {
|
|
1135
|
+
security: configuredSecurity,
|
|
1136
|
+
ask: configuredAsk
|
|
1137
|
+
});
|
|
1138
|
+
const security = approvals.agent.security;
|
|
1139
|
+
const ask = approvals.agent.ask;
|
|
1140
|
+
const autoAllowSkills = approvals.agent.autoAllowSkills;
|
|
1141
|
+
const { safeBins, safeBinProfiles, trustedSafeBinDirs } = resolveExecSafeBinRuntimePolicy({
|
|
1142
|
+
global: cfg.tools?.exec,
|
|
1143
|
+
local: agentExec,
|
|
1144
|
+
onWarning: warnWritableTrustedDirOnce
|
|
1145
|
+
});
|
|
1146
|
+
const bins = autoAllowSkills ? await opts.skillBins.current() : [];
|
|
1147
|
+
let { analysisOk, allowlistMatches, allowlistSatisfied, segments } = evaluateSystemRunAllowlist({
|
|
1148
|
+
shellCommand: parsed.shellPayload,
|
|
1149
|
+
argv: parsed.argv,
|
|
1150
|
+
approvals,
|
|
1151
|
+
security,
|
|
1152
|
+
safeBins,
|
|
1153
|
+
safeBinProfiles,
|
|
1154
|
+
trustedSafeBinDirs,
|
|
1155
|
+
cwd: parsed.cwd,
|
|
1156
|
+
env: parsed.env,
|
|
1157
|
+
skillBins: bins,
|
|
1158
|
+
autoAllowSkills
|
|
1159
|
+
});
|
|
1160
|
+
const strictInlineEval = agentExec?.strictInlineEval === true || cfg.tools?.exec?.strictInlineEval === true;
|
|
1161
|
+
const inlineEvalHit = strictInlineEval ? segments.map((segment) => detectInterpreterInlineEvalArgv(segment.resolution?.effectiveArgv ?? segment.argv)).find((entry) => entry !== null) ?? null : null;
|
|
1162
|
+
const isWindows = process.platform === "win32";
|
|
1163
|
+
const cmdInvocation = parsed.shellPayload ? opts.isCmdExeInvocation(segments[0]?.argv ?? []) : opts.isCmdExeInvocation(parsed.argv);
|
|
1164
|
+
const policy = evaluateSystemRunPolicy({
|
|
1165
|
+
security,
|
|
1166
|
+
ask,
|
|
1167
|
+
analysisOk,
|
|
1168
|
+
allowlistSatisfied,
|
|
1169
|
+
approvalDecision: parsed.approvalDecision,
|
|
1170
|
+
approved: parsed.approved,
|
|
1171
|
+
isWindows,
|
|
1172
|
+
cmdInvocation,
|
|
1173
|
+
shellWrapperInvocation: parsed.shellPayload !== null
|
|
1174
|
+
});
|
|
1175
|
+
analysisOk = policy.analysisOk;
|
|
1176
|
+
allowlistSatisfied = policy.allowlistSatisfied;
|
|
1177
|
+
if (!policy.allowed) {
|
|
1178
|
+
await sendSystemRunDenied(opts, parsed.execution, {
|
|
1179
|
+
reason: policy.eventReason,
|
|
1180
|
+
message: policy.errorMessage
|
|
1181
|
+
});
|
|
1182
|
+
return null;
|
|
1183
|
+
}
|
|
1184
|
+
if (inlineEvalHit && !policy.approvedByAsk) {
|
|
1185
|
+
await sendSystemRunDenied(opts, parsed.execution, {
|
|
1186
|
+
reason: "approval-required",
|
|
1187
|
+
message: `SYSTEM_RUN_DENIED: approval required (${describeInterpreterInlineEval(inlineEvalHit)} requires explicit approval in strictInlineEval mode)`
|
|
1188
|
+
});
|
|
1189
|
+
return null;
|
|
1190
|
+
}
|
|
1191
|
+
if (security === "allowlist" && parsed.shellPayload && !policy.approvedByAsk) {
|
|
1192
|
+
await sendSystemRunDenied(opts, parsed.execution, {
|
|
1193
|
+
reason: "approval-required",
|
|
1194
|
+
message: "SYSTEM_RUN_DENIED: approval required"
|
|
1195
|
+
});
|
|
1196
|
+
return null;
|
|
1197
|
+
}
|
|
1198
|
+
const hardenedPaths = hardenApprovedExecutionPaths({
|
|
1199
|
+
approvedByAsk: policy.approvedByAsk,
|
|
1200
|
+
argv: parsed.argv,
|
|
1201
|
+
shellCommand: parsed.shellPayload,
|
|
1202
|
+
cwd: parsed.cwd
|
|
1203
|
+
});
|
|
1204
|
+
if (!hardenedPaths.ok) {
|
|
1205
|
+
await sendSystemRunDenied(opts, parsed.execution, {
|
|
1206
|
+
reason: "approval-required",
|
|
1207
|
+
message: hardenedPaths.message
|
|
1208
|
+
});
|
|
1209
|
+
return null;
|
|
1210
|
+
}
|
|
1211
|
+
const approvedCwdSnapshot = policy.approvedByAsk ? hardenedPaths.approvedCwdSnapshot : void 0;
|
|
1212
|
+
if (policy.approvedByAsk && hardenedPaths.cwd && !approvedCwdSnapshot) {
|
|
1213
|
+
await sendSystemRunDenied(opts, parsed.execution, {
|
|
1214
|
+
reason: "approval-required",
|
|
1215
|
+
message: APPROVAL_CWD_DRIFT_DENIED_MESSAGE
|
|
1216
|
+
});
|
|
1217
|
+
return null;
|
|
1218
|
+
}
|
|
1219
|
+
const plannedAllowlistArgv = resolvePlannedAllowlistArgv({
|
|
1220
|
+
security,
|
|
1221
|
+
shellCommand: parsed.shellPayload,
|
|
1222
|
+
policy,
|
|
1223
|
+
segments
|
|
1224
|
+
});
|
|
1225
|
+
if (plannedAllowlistArgv === null) {
|
|
1226
|
+
await sendSystemRunDenied(opts, parsed.execution, {
|
|
1227
|
+
reason: "execution-plan-miss",
|
|
1228
|
+
message: "SYSTEM_RUN_DENIED: execution plan mismatch"
|
|
1229
|
+
});
|
|
1230
|
+
return null;
|
|
1231
|
+
}
|
|
1232
|
+
return {
|
|
1233
|
+
...parsed,
|
|
1234
|
+
argv: hardenedPaths.argv,
|
|
1235
|
+
cwd: hardenedPaths.cwd,
|
|
1236
|
+
approvals,
|
|
1237
|
+
security,
|
|
1238
|
+
policy,
|
|
1239
|
+
strictInlineEval,
|
|
1240
|
+
inlineEvalHit,
|
|
1241
|
+
allowlistMatches,
|
|
1242
|
+
analysisOk,
|
|
1243
|
+
allowlistSatisfied,
|
|
1244
|
+
segments,
|
|
1245
|
+
plannedAllowlistArgv: plannedAllowlistArgv ?? void 0,
|
|
1246
|
+
isWindows,
|
|
1247
|
+
approvedCwdSnapshot
|
|
1248
|
+
};
|
|
1249
|
+
}
|
|
1250
|
+
async function executeSystemRunPhase(opts, phase) {
|
|
1251
|
+
if (phase.approvedCwdSnapshot && !revalidateApprovedCwdSnapshot({ snapshot: phase.approvedCwdSnapshot })) {
|
|
1252
|
+
logWarn(`security: system.run approval cwd drift blocked (runId=${phase.runId})`);
|
|
1253
|
+
await sendSystemRunDenied(opts, phase.execution, {
|
|
1254
|
+
reason: "approval-required",
|
|
1255
|
+
message: APPROVAL_CWD_DRIFT_DENIED_MESSAGE
|
|
1256
|
+
});
|
|
1257
|
+
return;
|
|
1258
|
+
}
|
|
1259
|
+
const expectedMutableFileOperand = phase.approvalPlan ? resolveMutableFileOperandSnapshotSync({
|
|
1260
|
+
argv: phase.argv,
|
|
1261
|
+
cwd: phase.cwd,
|
|
1262
|
+
shellCommand: phase.shellPayload
|
|
1263
|
+
}) : null;
|
|
1264
|
+
if (expectedMutableFileOperand && !expectedMutableFileOperand.ok) {
|
|
1265
|
+
logWarn(`security: system.run approval script binding blocked (runId=${phase.runId})`);
|
|
1266
|
+
await sendSystemRunDenied(opts, phase.execution, {
|
|
1267
|
+
reason: "approval-required",
|
|
1268
|
+
message: expectedMutableFileOperand.message
|
|
1269
|
+
});
|
|
1270
|
+
return;
|
|
1271
|
+
}
|
|
1272
|
+
if (expectedMutableFileOperand?.snapshot && !phase.approvalPlan?.mutableFileOperand) {
|
|
1273
|
+
logWarn(`security: system.run approval script binding missing (runId=${phase.runId})`);
|
|
1274
|
+
await sendSystemRunDenied(opts, phase.execution, {
|
|
1275
|
+
reason: "approval-required",
|
|
1276
|
+
message: APPROVAL_SCRIPT_OPERAND_BINDING_DENIED_MESSAGE
|
|
1277
|
+
});
|
|
1278
|
+
return;
|
|
1279
|
+
}
|
|
1280
|
+
if (phase.approvalPlan?.mutableFileOperand && !revalidateApprovedMutableFileOperand({
|
|
1281
|
+
snapshot: phase.approvalPlan.mutableFileOperand,
|
|
1282
|
+
argv: phase.argv,
|
|
1283
|
+
cwd: phase.cwd
|
|
1284
|
+
})) {
|
|
1285
|
+
logWarn(`security: system.run approval script drift blocked (runId=${phase.runId})`);
|
|
1286
|
+
await sendSystemRunDenied(opts, phase.execution, {
|
|
1287
|
+
reason: "approval-required",
|
|
1288
|
+
message: APPROVAL_SCRIPT_OPERAND_DRIFT_DENIED_MESSAGE
|
|
1289
|
+
});
|
|
1290
|
+
return;
|
|
1291
|
+
}
|
|
1292
|
+
if (opts.preferMacAppExecHost) {
|
|
1293
|
+
const execRequest = {
|
|
1294
|
+
command: phase.plannedAllowlistArgv ?? phase.argv,
|
|
1295
|
+
rawCommand: phase.commandText || null,
|
|
1296
|
+
cwd: phase.cwd ?? null,
|
|
1297
|
+
env: phase.envOverrides ?? null,
|
|
1298
|
+
timeoutMs: phase.timeoutMs ?? null,
|
|
1299
|
+
needsScreenRecording: phase.needsScreenRecording,
|
|
1300
|
+
agentId: phase.agentId ?? null,
|
|
1301
|
+
sessionKey: phase.sessionKey ?? null,
|
|
1302
|
+
approvalDecision: phase.approvalDecision
|
|
1303
|
+
};
|
|
1304
|
+
const response = await opts.runViaMacAppExecHost({
|
|
1305
|
+
approvals: phase.approvals,
|
|
1306
|
+
request: execRequest
|
|
1307
|
+
});
|
|
1308
|
+
if (!response) {
|
|
1309
|
+
if (opts.execHostEnforced || !opts.execHostFallbackAllowed) {
|
|
1310
|
+
await sendSystemRunDenied(opts, phase.execution, {
|
|
1311
|
+
reason: "companion-unavailable",
|
|
1312
|
+
message: "COMPANION_APP_UNAVAILABLE: macOS app exec host unreachable"
|
|
1313
|
+
});
|
|
1314
|
+
return;
|
|
1315
|
+
}
|
|
1316
|
+
} else if (!response.ok) {
|
|
1317
|
+
await sendSystemRunDenied(opts, phase.execution, {
|
|
1318
|
+
reason: normalizeDeniedReason(response.error.reason),
|
|
1319
|
+
message: response.error.message
|
|
1320
|
+
});
|
|
1321
|
+
return;
|
|
1322
|
+
} else {
|
|
1323
|
+
const result = response.payload;
|
|
1324
|
+
await sendSystemRunCompleted(opts, phase.execution, result, JSON.stringify(result));
|
|
1325
|
+
return;
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
if (phase.policy.approvalDecision === "allow-always" && phase.security === "allowlist" && phase.inlineEvalHit === null) {
|
|
1329
|
+
if (phase.policy.analysisOk) {
|
|
1330
|
+
const patterns = resolveAllowAlwaysPatterns({
|
|
1331
|
+
segments: phase.segments,
|
|
1332
|
+
cwd: phase.cwd,
|
|
1333
|
+
env: phase.env,
|
|
1334
|
+
platform: process.platform,
|
|
1335
|
+
strictInlineEval: phase.strictInlineEval
|
|
1336
|
+
});
|
|
1337
|
+
for (const pattern of patterns) if (pattern) addAllowlistEntry(phase.approvals.file, phase.agentId, pattern);
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
if (phase.allowlistMatches.length > 0) {
|
|
1341
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1342
|
+
for (const match of phase.allowlistMatches) {
|
|
1343
|
+
if (!match?.pattern || seen.has(match.pattern)) continue;
|
|
1344
|
+
seen.add(match.pattern);
|
|
1345
|
+
recordAllowlistUse(phase.approvals.file, phase.agentId, match, phase.commandText, resolveApprovalAuditCandidatePath(phase.segments[0]?.resolution ?? null, phase.cwd));
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
if (phase.needsScreenRecording) {
|
|
1349
|
+
await sendSystemRunDenied(opts, phase.execution, {
|
|
1350
|
+
reason: "permission:screenRecording",
|
|
1351
|
+
message: "PERMISSION_MISSING: screenRecording"
|
|
1352
|
+
});
|
|
1353
|
+
return;
|
|
1354
|
+
}
|
|
1355
|
+
const execArgv = resolveSystemRunExecArgv({
|
|
1356
|
+
plannedAllowlistArgv: phase.plannedAllowlistArgv,
|
|
1357
|
+
argv: phase.argv,
|
|
1358
|
+
security: phase.security,
|
|
1359
|
+
isWindows: phase.isWindows,
|
|
1360
|
+
policy: phase.policy,
|
|
1361
|
+
shellCommand: phase.shellPayload,
|
|
1362
|
+
segments: phase.segments
|
|
1363
|
+
});
|
|
1364
|
+
const result = await opts.runCommand(execArgv, phase.cwd, phase.env, phase.timeoutMs);
|
|
1365
|
+
applyOutputTruncation(result);
|
|
1366
|
+
await sendSystemRunCompleted(opts, phase.execution, result, JSON.stringify({
|
|
1367
|
+
exitCode: result.exitCode,
|
|
1368
|
+
timedOut: result.timedOut,
|
|
1369
|
+
success: result.success,
|
|
1370
|
+
stdout: result.stdout,
|
|
1371
|
+
stderr: result.stderr,
|
|
1372
|
+
error: result.error ?? null
|
|
1373
|
+
}));
|
|
1374
|
+
}
|
|
1375
|
+
async function handleSystemRunInvoke(opts) {
|
|
1376
|
+
const parsed = await parseSystemRunPhase(opts);
|
|
1377
|
+
if (!parsed) return;
|
|
1378
|
+
const policyPhase = await evaluateSystemRunPolicyPhase(opts, parsed);
|
|
1379
|
+
if (!policyPhase) return;
|
|
1380
|
+
await executeSystemRunPhase(opts, policyPhase);
|
|
1381
|
+
}
|
|
1382
|
+
//#endregion
|
|
1383
|
+
//#region src/node-host/invoke.ts
|
|
1384
|
+
const OUTPUT_CAP = 2e5;
|
|
1385
|
+
const OUTPUT_EVENT_TAIL = 2e4;
|
|
1386
|
+
const DEFAULT_NODE_PATH$1 = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin";
|
|
1387
|
+
const WINDOWS_CODEPAGE_ENCODING_MAP = {
|
|
1388
|
+
65001: "utf-8",
|
|
1389
|
+
54936: "gb18030",
|
|
1390
|
+
936: "gbk",
|
|
1391
|
+
950: "big5",
|
|
1392
|
+
932: "shift_jis",
|
|
1393
|
+
949: "euc-kr",
|
|
1394
|
+
1252: "windows-1252"
|
|
1395
|
+
};
|
|
1396
|
+
let cachedWindowsConsoleEncoding;
|
|
1397
|
+
const execHostEnforced = process.env.VORA_NODE_EXEC_HOST?.trim().toLowerCase() === "app";
|
|
1398
|
+
const execHostFallbackAllowed = process.env.VORA_NODE_EXEC_FALLBACK?.trim().toLowerCase() !== "0";
|
|
1399
|
+
const preferMacAppExecHost = process.platform === "darwin" && execHostEnforced;
|
|
1400
|
+
function resolveExecSecurity(value) {
|
|
1401
|
+
return value === "deny" || value === "allowlist" || value === "full" ? value : "allowlist";
|
|
1402
|
+
}
|
|
1403
|
+
function isCmdExeInvocation(argv) {
|
|
1404
|
+
const token = argv[0]?.trim();
|
|
1405
|
+
if (!token) return false;
|
|
1406
|
+
const base = path.win32.basename(token).toLowerCase();
|
|
1407
|
+
return base === "cmd.exe" || base === "cmd";
|
|
1408
|
+
}
|
|
1409
|
+
function resolveExecAsk(value) {
|
|
1410
|
+
return value === "off" || value === "on-miss" || value === "always" ? value : "on-miss";
|
|
1411
|
+
}
|
|
1412
|
+
function sanitizeEnv(overrides) {
|
|
1413
|
+
return sanitizeHostExecEnv({
|
|
1414
|
+
overrides,
|
|
1415
|
+
blockPathOverrides: true
|
|
1416
|
+
});
|
|
1417
|
+
}
|
|
1418
|
+
function truncateOutput(raw, maxChars) {
|
|
1419
|
+
if (raw.length <= maxChars) return {
|
|
1420
|
+
text: raw,
|
|
1421
|
+
truncated: false
|
|
1422
|
+
};
|
|
1423
|
+
return {
|
|
1424
|
+
text: `... (truncated) ${raw.slice(raw.length - maxChars)}`,
|
|
1425
|
+
truncated: true
|
|
1426
|
+
};
|
|
1427
|
+
}
|
|
1428
|
+
function parseWindowsCodePage(raw) {
|
|
1429
|
+
if (!raw) return null;
|
|
1430
|
+
const match = raw.match(/\b(\d{3,5})\b/);
|
|
1431
|
+
if (!match?.[1]) return null;
|
|
1432
|
+
const codePage = Number.parseInt(match[1], 10);
|
|
1433
|
+
if (!Number.isFinite(codePage) || codePage <= 0) return null;
|
|
1434
|
+
return codePage;
|
|
1435
|
+
}
|
|
1436
|
+
function resolveWindowsConsoleEncoding() {
|
|
1437
|
+
if (process.platform !== "win32") return null;
|
|
1438
|
+
if (cachedWindowsConsoleEncoding !== void 0) return cachedWindowsConsoleEncoding;
|
|
1439
|
+
try {
|
|
1440
|
+
const result = spawnSync("cmd.exe", [
|
|
1441
|
+
"/d",
|
|
1442
|
+
"/s",
|
|
1443
|
+
"/c",
|
|
1444
|
+
"chcp"
|
|
1445
|
+
], {
|
|
1446
|
+
windowsHide: true,
|
|
1447
|
+
encoding: "utf8",
|
|
1448
|
+
stdio: [
|
|
1449
|
+
"ignore",
|
|
1450
|
+
"pipe",
|
|
1451
|
+
"pipe"
|
|
1452
|
+
]
|
|
1453
|
+
});
|
|
1454
|
+
const codePage = parseWindowsCodePage(`${result.stdout ?? ""}\n${result.stderr ?? ""}`);
|
|
1455
|
+
cachedWindowsConsoleEncoding = codePage !== null ? WINDOWS_CODEPAGE_ENCODING_MAP[codePage] ?? null : null;
|
|
1456
|
+
} catch {
|
|
1457
|
+
cachedWindowsConsoleEncoding = null;
|
|
1458
|
+
}
|
|
1459
|
+
return cachedWindowsConsoleEncoding;
|
|
1460
|
+
}
|
|
1461
|
+
function decodeCapturedOutputBuffer(params) {
|
|
1462
|
+
const utf8 = params.buffer.toString("utf8");
|
|
1463
|
+
if ((params.platform ?? process.platform) !== "win32") return utf8;
|
|
1464
|
+
const encoding = params.windowsEncoding ?? resolveWindowsConsoleEncoding();
|
|
1465
|
+
if (!encoding || encoding.toLowerCase() === "utf-8") return utf8;
|
|
1466
|
+
try {
|
|
1467
|
+
return new TextDecoder(encoding).decode(params.buffer);
|
|
1468
|
+
} catch {
|
|
1469
|
+
return utf8;
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
function redactExecApprovals(file) {
|
|
1473
|
+
const socketPath = file.socket?.path?.trim();
|
|
1474
|
+
return {
|
|
1475
|
+
...file,
|
|
1476
|
+
socket: socketPath ? { path: socketPath } : void 0
|
|
1477
|
+
};
|
|
1478
|
+
}
|
|
1479
|
+
function requireExecApprovalsBaseHash(params, snapshot) {
|
|
1480
|
+
if (!snapshot.exists) return;
|
|
1481
|
+
if (!snapshot.hash) throw new Error("INVALID_REQUEST: exec approvals base hash unavailable; reload and retry");
|
|
1482
|
+
const baseHash = typeof params.baseHash === "string" ? params.baseHash.trim() : "";
|
|
1483
|
+
if (!baseHash) throw new Error("INVALID_REQUEST: exec approvals base hash required; reload and retry");
|
|
1484
|
+
if (baseHash !== snapshot.hash) throw new Error("INVALID_REQUEST: exec approvals changed; reload and retry");
|
|
1485
|
+
}
|
|
1486
|
+
async function runCommand(argv, cwd, env, timeoutMs) {
|
|
1487
|
+
return await new Promise((resolve) => {
|
|
1488
|
+
const stdoutChunks = [];
|
|
1489
|
+
const stderrChunks = [];
|
|
1490
|
+
let outputLen = 0;
|
|
1491
|
+
let truncated = false;
|
|
1492
|
+
let timedOut = false;
|
|
1493
|
+
let settled = false;
|
|
1494
|
+
const windowsEncoding = resolveWindowsConsoleEncoding();
|
|
1495
|
+
const child = spawn(argv[0], argv.slice(1), {
|
|
1496
|
+
cwd,
|
|
1497
|
+
env,
|
|
1498
|
+
stdio: [
|
|
1499
|
+
"ignore",
|
|
1500
|
+
"pipe",
|
|
1501
|
+
"pipe"
|
|
1502
|
+
],
|
|
1503
|
+
windowsHide: true
|
|
1504
|
+
});
|
|
1505
|
+
const onChunk = (chunk, target) => {
|
|
1506
|
+
if (outputLen >= OUTPUT_CAP) {
|
|
1507
|
+
truncated = true;
|
|
1508
|
+
return;
|
|
1509
|
+
}
|
|
1510
|
+
const remaining = OUTPUT_CAP - outputLen;
|
|
1511
|
+
const slice = chunk.length > remaining ? chunk.subarray(0, remaining) : chunk;
|
|
1512
|
+
outputLen += slice.length;
|
|
1513
|
+
if (target === "stdout") stdoutChunks.push(slice);
|
|
1514
|
+
else stderrChunks.push(slice);
|
|
1515
|
+
if (chunk.length > remaining) truncated = true;
|
|
1516
|
+
};
|
|
1517
|
+
child.stdout?.on("data", (chunk) => onChunk(chunk, "stdout"));
|
|
1518
|
+
child.stderr?.on("data", (chunk) => onChunk(chunk, "stderr"));
|
|
1519
|
+
let timer;
|
|
1520
|
+
if (timeoutMs && timeoutMs > 0) timer = setTimeout(() => {
|
|
1521
|
+
timedOut = true;
|
|
1522
|
+
try {
|
|
1523
|
+
child.kill("SIGKILL");
|
|
1524
|
+
} catch {}
|
|
1525
|
+
}, timeoutMs);
|
|
1526
|
+
const finalize = (exitCode, error) => {
|
|
1527
|
+
if (settled) return;
|
|
1528
|
+
settled = true;
|
|
1529
|
+
if (timer) clearTimeout(timer);
|
|
1530
|
+
const stdout = decodeCapturedOutputBuffer({
|
|
1531
|
+
buffer: Buffer.concat(stdoutChunks),
|
|
1532
|
+
windowsEncoding
|
|
1533
|
+
});
|
|
1534
|
+
const stderr = decodeCapturedOutputBuffer({
|
|
1535
|
+
buffer: Buffer.concat(stderrChunks),
|
|
1536
|
+
windowsEncoding
|
|
1537
|
+
});
|
|
1538
|
+
resolve({
|
|
1539
|
+
exitCode,
|
|
1540
|
+
timedOut,
|
|
1541
|
+
success: exitCode === 0 && !timedOut && !error,
|
|
1542
|
+
stdout,
|
|
1543
|
+
stderr,
|
|
1544
|
+
error: error ?? null,
|
|
1545
|
+
truncated
|
|
1546
|
+
});
|
|
1547
|
+
};
|
|
1548
|
+
child.on("error", (err) => {
|
|
1549
|
+
finalize(void 0, err.message);
|
|
1550
|
+
});
|
|
1551
|
+
child.on("exit", (code) => {
|
|
1552
|
+
finalize(code === null ? void 0 : code, null);
|
|
1553
|
+
});
|
|
1554
|
+
});
|
|
1555
|
+
}
|
|
1556
|
+
function resolveEnvPath(env) {
|
|
1557
|
+
return (env?.PATH ?? env?.Path ?? process.env.PATH ?? process.env.Path ?? DEFAULT_NODE_PATH$1).split(path.delimiter).filter(Boolean);
|
|
1558
|
+
}
|
|
1559
|
+
function resolveExecutable(bin, env) {
|
|
1560
|
+
if (bin.includes("/") || bin.includes("\\")) return null;
|
|
1561
|
+
const extensions = process.platform === "win32" ? (process.env.PATHEXT ?? process.env.PathExt ?? ".EXE;.CMD;.BAT;.COM").split(";").map((ext) => ext.toLowerCase()) : [""];
|
|
1562
|
+
for (const dir of resolveEnvPath(env)) for (const ext of extensions) {
|
|
1563
|
+
const candidate = path.join(dir, bin + ext);
|
|
1564
|
+
if (fsSync.existsSync(candidate)) return candidate;
|
|
1565
|
+
}
|
|
1566
|
+
return null;
|
|
1567
|
+
}
|
|
1568
|
+
async function handleSystemWhich(params, env) {
|
|
1569
|
+
const bins = params.bins.map((bin) => bin.trim()).filter(Boolean);
|
|
1570
|
+
const found = {};
|
|
1571
|
+
for (const bin of bins) {
|
|
1572
|
+
const path = resolveExecutable(bin, env);
|
|
1573
|
+
if (path) found[bin] = path;
|
|
1574
|
+
}
|
|
1575
|
+
return { bins: found };
|
|
1576
|
+
}
|
|
1577
|
+
function buildExecEventPayload(payload) {
|
|
1578
|
+
if (!payload.output) return payload;
|
|
1579
|
+
const trimmed = payload.output.trim();
|
|
1580
|
+
if (!trimmed) return payload;
|
|
1581
|
+
const { text } = truncateOutput(trimmed, OUTPUT_EVENT_TAIL);
|
|
1582
|
+
return {
|
|
1583
|
+
...payload,
|
|
1584
|
+
output: text
|
|
1585
|
+
};
|
|
1586
|
+
}
|
|
1587
|
+
async function sendExecFinishedEvent(params) {
|
|
1588
|
+
const combined = [
|
|
1589
|
+
params.result.stdout,
|
|
1590
|
+
params.result.stderr,
|
|
1591
|
+
params.result.error
|
|
1592
|
+
].filter(Boolean).join("\n");
|
|
1593
|
+
await sendNodeEvent(params.client, "exec.finished", buildExecEventPayload({
|
|
1594
|
+
sessionKey: params.sessionKey,
|
|
1595
|
+
runId: params.runId,
|
|
1596
|
+
host: "node",
|
|
1597
|
+
command: params.commandText,
|
|
1598
|
+
exitCode: params.result.exitCode ?? void 0,
|
|
1599
|
+
timedOut: params.result.timedOut,
|
|
1600
|
+
success: params.result.success,
|
|
1601
|
+
output: combined,
|
|
1602
|
+
suppressNotifyOnExit: params.suppressNotifyOnExit
|
|
1603
|
+
}));
|
|
1604
|
+
}
|
|
1605
|
+
async function runViaMacAppExecHost(params) {
|
|
1606
|
+
const { approvals, request } = params;
|
|
1607
|
+
return await requestExecHostViaSocket({
|
|
1608
|
+
socketPath: approvals.socketPath,
|
|
1609
|
+
token: approvals.token,
|
|
1610
|
+
request
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1613
|
+
async function sendJsonPayloadResult(client, frame, payload) {
|
|
1614
|
+
await sendInvokeResult(client, frame, {
|
|
1615
|
+
ok: true,
|
|
1616
|
+
payloadJSON: JSON.stringify(payload)
|
|
1617
|
+
});
|
|
1618
|
+
}
|
|
1619
|
+
async function sendRawPayloadResult(client, frame, payloadJSON) {
|
|
1620
|
+
await sendInvokeResult(client, frame, {
|
|
1621
|
+
ok: true,
|
|
1622
|
+
payloadJSON
|
|
1623
|
+
});
|
|
1624
|
+
}
|
|
1625
|
+
async function sendErrorResult(client, frame, code, message) {
|
|
1626
|
+
await sendInvokeResult(client, frame, {
|
|
1627
|
+
ok: false,
|
|
1628
|
+
error: {
|
|
1629
|
+
code,
|
|
1630
|
+
message
|
|
1631
|
+
}
|
|
1632
|
+
});
|
|
1633
|
+
}
|
|
1634
|
+
async function sendInvalidRequestResult(client, frame, err) {
|
|
1635
|
+
await sendErrorResult(client, frame, "INVALID_REQUEST", String(err));
|
|
1636
|
+
}
|
|
1637
|
+
async function handleInvoke(frame, client, skillBins) {
|
|
1638
|
+
const command = String(frame.command ?? "");
|
|
1639
|
+
if (command === "system.execApprovals.get") {
|
|
1640
|
+
try {
|
|
1641
|
+
ensureExecApprovals();
|
|
1642
|
+
const snapshot = readExecApprovalsSnapshot();
|
|
1643
|
+
await sendJsonPayloadResult(client, frame, {
|
|
1644
|
+
path: snapshot.path,
|
|
1645
|
+
exists: snapshot.exists,
|
|
1646
|
+
hash: snapshot.hash,
|
|
1647
|
+
file: redactExecApprovals(snapshot.file)
|
|
1648
|
+
});
|
|
1649
|
+
} catch (err) {
|
|
1650
|
+
const message = String(err);
|
|
1651
|
+
await sendErrorResult(client, frame, message.toLowerCase().includes("timed out") ? "TIMEOUT" : "INVALID_REQUEST", message);
|
|
1652
|
+
}
|
|
1653
|
+
return;
|
|
1654
|
+
}
|
|
1655
|
+
if (command === "system.execApprovals.set") {
|
|
1656
|
+
try {
|
|
1657
|
+
const params = decodeParams(frame.paramsJSON);
|
|
1658
|
+
if (!params.file || typeof params.file !== "object") throw new Error("INVALID_REQUEST: exec approvals file required");
|
|
1659
|
+
ensureExecApprovals();
|
|
1660
|
+
const snapshot = readExecApprovalsSnapshot();
|
|
1661
|
+
requireExecApprovalsBaseHash(params, snapshot);
|
|
1662
|
+
saveExecApprovals(mergeExecApprovalsSocketDefaults({
|
|
1663
|
+
normalized: normalizeExecApprovals(params.file),
|
|
1664
|
+
current: snapshot.file
|
|
1665
|
+
}));
|
|
1666
|
+
const nextSnapshot = readExecApprovalsSnapshot();
|
|
1667
|
+
await sendJsonPayloadResult(client, frame, {
|
|
1668
|
+
path: nextSnapshot.path,
|
|
1669
|
+
exists: nextSnapshot.exists,
|
|
1670
|
+
hash: nextSnapshot.hash,
|
|
1671
|
+
file: redactExecApprovals(nextSnapshot.file)
|
|
1672
|
+
});
|
|
1673
|
+
} catch (err) {
|
|
1674
|
+
await sendInvalidRequestResult(client, frame, err);
|
|
1675
|
+
}
|
|
1676
|
+
return;
|
|
1677
|
+
}
|
|
1678
|
+
if (command === "system.which") {
|
|
1679
|
+
try {
|
|
1680
|
+
const params = decodeParams(frame.paramsJSON);
|
|
1681
|
+
if (!Array.isArray(params.bins)) throw new Error("INVALID_REQUEST: bins required");
|
|
1682
|
+
await sendJsonPayloadResult(client, frame, await handleSystemWhich(params, sanitizeEnv(void 0)));
|
|
1683
|
+
} catch (err) {
|
|
1684
|
+
await sendInvalidRequestResult(client, frame, err);
|
|
1685
|
+
}
|
|
1686
|
+
return;
|
|
1687
|
+
}
|
|
1688
|
+
if (command === "browser.proxy") {
|
|
1689
|
+
try {
|
|
1690
|
+
await sendRawPayloadResult(client, frame, await runBrowserProxyCommand(frame.paramsJSON));
|
|
1691
|
+
} catch (err) {
|
|
1692
|
+
await sendInvalidRequestResult(client, frame, err);
|
|
1693
|
+
}
|
|
1694
|
+
return;
|
|
1695
|
+
}
|
|
1696
|
+
if (command === "system.run.prepare") {
|
|
1697
|
+
try {
|
|
1698
|
+
const prepared = buildSystemRunApprovalPlan(decodeParams(frame.paramsJSON));
|
|
1699
|
+
if (!prepared.ok) {
|
|
1700
|
+
await sendErrorResult(client, frame, "INVALID_REQUEST", prepared.message);
|
|
1701
|
+
return;
|
|
1702
|
+
}
|
|
1703
|
+
await sendJsonPayloadResult(client, frame, { plan: prepared.plan });
|
|
1704
|
+
} catch (err) {
|
|
1705
|
+
await sendInvalidRequestResult(client, frame, err);
|
|
1706
|
+
}
|
|
1707
|
+
return;
|
|
1708
|
+
}
|
|
1709
|
+
if (command !== "system.run") {
|
|
1710
|
+
await sendErrorResult(client, frame, "UNAVAILABLE", "command not supported");
|
|
1711
|
+
return;
|
|
1712
|
+
}
|
|
1713
|
+
let params;
|
|
1714
|
+
try {
|
|
1715
|
+
params = decodeParams(frame.paramsJSON);
|
|
1716
|
+
} catch (err) {
|
|
1717
|
+
await sendInvalidRequestResult(client, frame, err);
|
|
1718
|
+
return;
|
|
1719
|
+
}
|
|
1720
|
+
if (!Array.isArray(params.command) || params.command.length === 0) {
|
|
1721
|
+
await sendErrorResult(client, frame, "INVALID_REQUEST", "command required");
|
|
1722
|
+
return;
|
|
1723
|
+
}
|
|
1724
|
+
await handleSystemRunInvoke({
|
|
1725
|
+
client,
|
|
1726
|
+
params,
|
|
1727
|
+
skillBins,
|
|
1728
|
+
execHostEnforced,
|
|
1729
|
+
execHostFallbackAllowed,
|
|
1730
|
+
resolveExecSecurity,
|
|
1731
|
+
resolveExecAsk,
|
|
1732
|
+
isCmdExeInvocation,
|
|
1733
|
+
sanitizeEnv,
|
|
1734
|
+
runCommand,
|
|
1735
|
+
runViaMacAppExecHost,
|
|
1736
|
+
sendNodeEvent,
|
|
1737
|
+
buildExecEventPayload,
|
|
1738
|
+
sendInvokeResult: async (result) => {
|
|
1739
|
+
await sendInvokeResult(client, frame, result);
|
|
1740
|
+
},
|
|
1741
|
+
sendExecFinishedEvent: async ({ sessionKey, runId, commandText, result }) => {
|
|
1742
|
+
await sendExecFinishedEvent({
|
|
1743
|
+
client,
|
|
1744
|
+
sessionKey,
|
|
1745
|
+
runId,
|
|
1746
|
+
commandText,
|
|
1747
|
+
result
|
|
1748
|
+
});
|
|
1749
|
+
},
|
|
1750
|
+
preferMacAppExecHost
|
|
1751
|
+
});
|
|
1752
|
+
}
|
|
1753
|
+
function decodeParams(raw) {
|
|
1754
|
+
if (!raw) throw new Error("INVALID_REQUEST: paramsJSON required");
|
|
1755
|
+
return JSON.parse(raw);
|
|
1756
|
+
}
|
|
1757
|
+
function coerceNodeInvokePayload(payload) {
|
|
1758
|
+
if (!payload || typeof payload !== "object") return null;
|
|
1759
|
+
const obj = payload;
|
|
1760
|
+
const id = typeof obj.id === "string" ? obj.id.trim() : "";
|
|
1761
|
+
const nodeId = typeof obj.nodeId === "string" ? obj.nodeId.trim() : "";
|
|
1762
|
+
const command = typeof obj.command === "string" ? obj.command.trim() : "";
|
|
1763
|
+
if (!id || !nodeId || !command) return null;
|
|
1764
|
+
return {
|
|
1765
|
+
id,
|
|
1766
|
+
nodeId,
|
|
1767
|
+
command,
|
|
1768
|
+
paramsJSON: typeof obj.paramsJSON === "string" ? obj.paramsJSON : obj.params !== void 0 ? JSON.stringify(obj.params) : null,
|
|
1769
|
+
timeoutMs: typeof obj.timeoutMs === "number" ? obj.timeoutMs : null,
|
|
1770
|
+
idempotencyKey: typeof obj.idempotencyKey === "string" ? obj.idempotencyKey : null
|
|
1771
|
+
};
|
|
1772
|
+
}
|
|
1773
|
+
async function sendInvokeResult(client, frame, result) {
|
|
1774
|
+
try {
|
|
1775
|
+
await client.request("node.invoke.result", buildNodeInvokeResultParams(frame, result));
|
|
1776
|
+
} catch {}
|
|
1777
|
+
}
|
|
1778
|
+
function buildNodeInvokeResultParams(frame, result) {
|
|
1779
|
+
const params = {
|
|
1780
|
+
id: frame.id,
|
|
1781
|
+
nodeId: frame.nodeId,
|
|
1782
|
+
ok: result.ok
|
|
1783
|
+
};
|
|
1784
|
+
if (result.payload !== void 0) params.payload = result.payload;
|
|
1785
|
+
if (typeof result.payloadJSON === "string") params.payloadJSON = result.payloadJSON;
|
|
1786
|
+
if (result.error) params.error = result.error;
|
|
1787
|
+
return params;
|
|
1788
|
+
}
|
|
1789
|
+
async function sendNodeEvent(client, event, payload) {
|
|
1790
|
+
try {
|
|
1791
|
+
await client.request("node.event", {
|
|
1792
|
+
event,
|
|
1793
|
+
payloadJSON: payload ? JSON.stringify(payload) : null
|
|
1794
|
+
});
|
|
1795
|
+
} catch {}
|
|
1796
|
+
}
|
|
1797
|
+
//#endregion
|
|
1798
|
+
//#region src/node-host/runner.ts
|
|
1799
|
+
const DEFAULT_NODE_PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin";
|
|
1800
|
+
function writeStderrLine(message) {
|
|
1801
|
+
process.stderr.write(`${message}\n`);
|
|
1802
|
+
}
|
|
1803
|
+
function resolveExecutablePathFromEnv(bin, pathEnv) {
|
|
1804
|
+
if (bin.includes("/") || bin.includes("\\")) return null;
|
|
1805
|
+
return resolveExecutableFromPathEnv(bin, pathEnv) ?? null;
|
|
1806
|
+
}
|
|
1807
|
+
function resolveSkillBinTrustEntries(bins, pathEnv) {
|
|
1808
|
+
const trustEntries = [];
|
|
1809
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1810
|
+
for (const bin of bins) {
|
|
1811
|
+
const name = bin.trim();
|
|
1812
|
+
if (!name) continue;
|
|
1813
|
+
const resolvedPath = resolveExecutablePathFromEnv(name, pathEnv);
|
|
1814
|
+
if (!resolvedPath) continue;
|
|
1815
|
+
const key = `${name}\u0000${resolvedPath}`;
|
|
1816
|
+
if (seen.has(key)) continue;
|
|
1817
|
+
seen.add(key);
|
|
1818
|
+
trustEntries.push({
|
|
1819
|
+
name,
|
|
1820
|
+
resolvedPath
|
|
1821
|
+
});
|
|
1822
|
+
}
|
|
1823
|
+
return trustEntries.toSorted((left, right) => left.name.localeCompare(right.name) || left.resolvedPath.localeCompare(right.resolvedPath));
|
|
1824
|
+
}
|
|
1825
|
+
var SkillBinsCache = class {
|
|
1826
|
+
constructor(fetch, pathEnv) {
|
|
1827
|
+
this.bins = [];
|
|
1828
|
+
this.lastRefresh = 0;
|
|
1829
|
+
this.ttlMs = 9e4;
|
|
1830
|
+
this.fetch = fetch;
|
|
1831
|
+
this.pathEnv = pathEnv;
|
|
1832
|
+
}
|
|
1833
|
+
async current(force = false) {
|
|
1834
|
+
if (force || Date.now() - this.lastRefresh > this.ttlMs) await this.refresh();
|
|
1835
|
+
return this.bins;
|
|
1836
|
+
}
|
|
1837
|
+
async refresh() {
|
|
1838
|
+
try {
|
|
1839
|
+
this.bins = resolveSkillBinTrustEntries(await this.fetch(), this.pathEnv);
|
|
1840
|
+
this.lastRefresh = Date.now();
|
|
1841
|
+
} catch {
|
|
1842
|
+
if (!this.lastRefresh) this.bins = [];
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
};
|
|
1846
|
+
function ensureNodePathEnv() {
|
|
1847
|
+
ensureVoraCliOnPath({ pathEnv: process.env.PATH ?? "" });
|
|
1848
|
+
const current = process.env.PATH ?? "";
|
|
1849
|
+
if (current.trim()) return current;
|
|
1850
|
+
process.env.PATH = DEFAULT_NODE_PATH;
|
|
1851
|
+
return DEFAULT_NODE_PATH;
|
|
1852
|
+
}
|
|
1853
|
+
async function resolveNodeHostGatewayCredentials(params) {
|
|
1854
|
+
return await resolveGatewayConnectionAuth({
|
|
1855
|
+
config: (params.config.gateway?.mode === "remote" ? "remote" : "local") === "local" ? buildNodeHostLocalAuthConfig(params.config) : params.config,
|
|
1856
|
+
env: params.env,
|
|
1857
|
+
localTokenPrecedence: "env-first",
|
|
1858
|
+
localPasswordPrecedence: "env-first",
|
|
1859
|
+
remoteTokenPrecedence: "env-first",
|
|
1860
|
+
remotePasswordPrecedence: "env-first"
|
|
1861
|
+
});
|
|
1862
|
+
}
|
|
1863
|
+
function buildNodeHostLocalAuthConfig(config) {
|
|
1864
|
+
if (!config.gateway?.remote?.token && !config.gateway?.remote?.password) return config;
|
|
1865
|
+
const nextConfig = structuredClone(config);
|
|
1866
|
+
if (nextConfig.gateway?.remote) {
|
|
1867
|
+
nextConfig.gateway.remote.token = void 0;
|
|
1868
|
+
nextConfig.gateway.remote.password = void 0;
|
|
1869
|
+
}
|
|
1870
|
+
return nextConfig;
|
|
1871
|
+
}
|
|
1872
|
+
async function runNodeHost(opts) {
|
|
1873
|
+
const config = await ensureNodeHostConfig();
|
|
1874
|
+
const nodeId = opts.nodeId?.trim() || config.nodeId;
|
|
1875
|
+
if (nodeId !== config.nodeId) config.nodeId = nodeId;
|
|
1876
|
+
const displayName = opts.displayName?.trim() || config.displayName || await getMachineDisplayName();
|
|
1877
|
+
config.displayName = displayName;
|
|
1878
|
+
const gateway = {
|
|
1879
|
+
host: opts.gatewayHost,
|
|
1880
|
+
port: opts.gatewayPort,
|
|
1881
|
+
tls: opts.gatewayTls ?? loadConfig().gateway?.tls?.enabled ?? false,
|
|
1882
|
+
tlsFingerprint: opts.gatewayTlsFingerprint
|
|
1883
|
+
};
|
|
1884
|
+
config.gateway = gateway;
|
|
1885
|
+
await saveNodeHostConfig(config);
|
|
1886
|
+
const cfg = loadConfig();
|
|
1887
|
+
const resolvedBrowser = resolveBrowserConfig(cfg.browser, cfg);
|
|
1888
|
+
const browserProxyEnabled = cfg.nodeHost?.browserProxy?.enabled !== false && resolvedBrowser.enabled;
|
|
1889
|
+
const { token, password } = await resolveNodeHostGatewayCredentials({
|
|
1890
|
+
config: cfg,
|
|
1891
|
+
env: process.env
|
|
1892
|
+
});
|
|
1893
|
+
const host = gateway.host ?? "127.0.0.1";
|
|
1894
|
+
const port = gateway.port ?? 18789;
|
|
1895
|
+
const url = `${gateway.tls ? "wss" : "ws"}://${host}:${port}`;
|
|
1896
|
+
const pathEnv = ensureNodePathEnv();
|
|
1897
|
+
const client = new GatewayClient({
|
|
1898
|
+
url,
|
|
1899
|
+
token: token || void 0,
|
|
1900
|
+
password: password || void 0,
|
|
1901
|
+
instanceId: nodeId,
|
|
1902
|
+
clientName: GATEWAY_CLIENT_NAMES.NODE_HOST,
|
|
1903
|
+
clientDisplayName: displayName,
|
|
1904
|
+
clientVersion: VERSION,
|
|
1905
|
+
platform: process.platform,
|
|
1906
|
+
mode: GATEWAY_CLIENT_MODES.NODE,
|
|
1907
|
+
role: "node",
|
|
1908
|
+
scopes: [],
|
|
1909
|
+
caps: ["system", ...browserProxyEnabled ? ["browser"] : []],
|
|
1910
|
+
commands: [
|
|
1911
|
+
...NODE_SYSTEM_RUN_COMMANDS,
|
|
1912
|
+
...NODE_EXEC_APPROVALS_COMMANDS,
|
|
1913
|
+
...browserProxyEnabled ? [NODE_BROWSER_PROXY_COMMAND] : []
|
|
1914
|
+
],
|
|
1915
|
+
pathEnv,
|
|
1916
|
+
permissions: void 0,
|
|
1917
|
+
deviceIdentity: loadOrCreateDeviceIdentity(),
|
|
1918
|
+
tlsFingerprint: gateway.tlsFingerprint,
|
|
1919
|
+
onEvent: (evt) => {
|
|
1920
|
+
if (evt.event !== "node.invoke.request") return;
|
|
1921
|
+
const payload = coerceNodeInvokePayload(evt.payload);
|
|
1922
|
+
if (!payload) return;
|
|
1923
|
+
handleInvoke(payload, client, skillBins);
|
|
1924
|
+
},
|
|
1925
|
+
onConnectError: (err) => {
|
|
1926
|
+
writeStderrLine(`node host gateway connect failed: ${err.message}`);
|
|
1927
|
+
},
|
|
1928
|
+
onClose: (code, reason) => {
|
|
1929
|
+
writeStderrLine(`node host gateway closed (${code}): ${reason}`);
|
|
1930
|
+
}
|
|
1931
|
+
});
|
|
1932
|
+
const skillBins = new SkillBinsCache(async () => {
|
|
1933
|
+
const res = await client.request("skills.bins", {});
|
|
1934
|
+
return Array.isArray(res?.bins) ? res.bins.map((bin) => String(bin)) : [];
|
|
1935
|
+
}, pathEnv);
|
|
1936
|
+
client.start();
|
|
1937
|
+
await new Promise(() => {});
|
|
1938
|
+
}
|
|
1939
|
+
//#endregion
|
|
1940
|
+
//#region src/commands/node-daemon-install-helpers.ts
|
|
1941
|
+
async function buildNodeInstallPlan(params) {
|
|
1942
|
+
const { devMode, nodePath } = await resolveDaemonInstallRuntimeInputs({
|
|
1943
|
+
env: params.env,
|
|
1944
|
+
runtime: params.runtime,
|
|
1945
|
+
devMode: params.devMode,
|
|
1946
|
+
nodePath: params.nodePath
|
|
1947
|
+
});
|
|
1948
|
+
const { programArguments, workingDirectory } = await resolveNodeProgramArguments({
|
|
1949
|
+
host: params.host,
|
|
1950
|
+
port: params.port,
|
|
1951
|
+
tls: params.tls,
|
|
1952
|
+
tlsFingerprint: params.tlsFingerprint,
|
|
1953
|
+
nodeId: params.nodeId,
|
|
1954
|
+
displayName: params.displayName,
|
|
1955
|
+
dev: devMode,
|
|
1956
|
+
runtime: params.runtime,
|
|
1957
|
+
nodePath
|
|
1958
|
+
});
|
|
1959
|
+
await emitDaemonInstallRuntimeWarning({
|
|
1960
|
+
env: params.env,
|
|
1961
|
+
runtime: params.runtime,
|
|
1962
|
+
programArguments,
|
|
1963
|
+
warn: params.warn,
|
|
1964
|
+
title: "Node daemon runtime"
|
|
1965
|
+
});
|
|
1966
|
+
const environment = buildNodeServiceEnvironment({
|
|
1967
|
+
env: params.env,
|
|
1968
|
+
extraPathDirs: resolveDaemonNodeBinDir(nodePath)
|
|
1969
|
+
});
|
|
1970
|
+
return {
|
|
1971
|
+
programArguments,
|
|
1972
|
+
workingDirectory,
|
|
1973
|
+
environment,
|
|
1974
|
+
description: formatNodeServiceDescription({ version: environment.VORA_SERVICE_VERSION })
|
|
1975
|
+
};
|
|
1976
|
+
}
|
|
1977
|
+
//#endregion
|
|
1978
|
+
//#region src/commands/node-daemon-runtime.ts
|
|
1979
|
+
const DEFAULT_NODE_DAEMON_RUNTIME = DEFAULT_GATEWAY_DAEMON_RUNTIME;
|
|
1980
|
+
function isNodeDaemonRuntime(value) {
|
|
1981
|
+
return isGatewayDaemonRuntime(value);
|
|
1982
|
+
}
|
|
1983
|
+
//#endregion
|
|
1984
|
+
//#region src/cli/node-cli/daemon.ts
|
|
1985
|
+
function renderNodeServiceStartHints() {
|
|
1986
|
+
return buildPlatformServiceStartHints({
|
|
1987
|
+
installCommand: formatCliCommand("vora node install"),
|
|
1988
|
+
startCommand: formatCliCommand("vora node start"),
|
|
1989
|
+
launchAgentPlistPath: `~/Library/LaunchAgents/${resolveNodeLaunchAgentLabel()}.plist`,
|
|
1990
|
+
systemdServiceName: resolveNodeSystemdServiceName(),
|
|
1991
|
+
windowsTaskName: resolveNodeWindowsTaskName()
|
|
1992
|
+
});
|
|
1993
|
+
}
|
|
1994
|
+
function buildNodeRuntimeHints(env = process.env) {
|
|
1995
|
+
return buildPlatformRuntimeLogHints({
|
|
1996
|
+
env,
|
|
1997
|
+
systemdServiceName: resolveNodeSystemdServiceName(),
|
|
1998
|
+
windowsTaskName: resolveNodeWindowsTaskName()
|
|
1999
|
+
});
|
|
2000
|
+
}
|
|
2001
|
+
function resolveNodeDefaults(opts, config) {
|
|
2002
|
+
const host = opts.host?.trim() || config?.gateway?.host || "127.0.0.1";
|
|
2003
|
+
const portOverride = parsePort(opts.port);
|
|
2004
|
+
if (opts.port !== void 0 && portOverride === null) return {
|
|
2005
|
+
host,
|
|
2006
|
+
port: null
|
|
2007
|
+
};
|
|
2008
|
+
return {
|
|
2009
|
+
host,
|
|
2010
|
+
port: portOverride ?? config?.gateway?.port ?? 18789
|
|
2011
|
+
};
|
|
2012
|
+
}
|
|
2013
|
+
async function runNodeDaemonInstall(opts) {
|
|
2014
|
+
const { json, stdout, warnings, emit, fail } = createDaemonInstallActionContext(opts.json);
|
|
2015
|
+
if (failIfNixDaemonInstallMode(fail)) return;
|
|
2016
|
+
const config = await loadNodeHostConfig();
|
|
2017
|
+
const { host, port } = resolveNodeDefaults(opts, config);
|
|
2018
|
+
if (!Number.isFinite(port ?? NaN) || (port ?? 0) <= 0) {
|
|
2019
|
+
fail("Invalid port");
|
|
2020
|
+
return;
|
|
2021
|
+
}
|
|
2022
|
+
const runtimeRaw = opts.runtime ? String(opts.runtime) : DEFAULT_NODE_DAEMON_RUNTIME;
|
|
2023
|
+
if (!isNodeDaemonRuntime(runtimeRaw)) {
|
|
2024
|
+
fail("Invalid --runtime (use \"node\" or \"bun\")");
|
|
2025
|
+
return;
|
|
2026
|
+
}
|
|
2027
|
+
const service = resolveNodeService();
|
|
2028
|
+
let loaded = false;
|
|
2029
|
+
try {
|
|
2030
|
+
loaded = await service.isLoaded({ env: process.env });
|
|
2031
|
+
} catch (err) {
|
|
2032
|
+
fail(`Node service check failed: ${String(err)}`);
|
|
2033
|
+
return;
|
|
2034
|
+
}
|
|
2035
|
+
if (loaded && !opts.force) {
|
|
2036
|
+
emit({
|
|
2037
|
+
ok: true,
|
|
2038
|
+
result: "already-installed",
|
|
2039
|
+
message: `Node service already ${service.loadedText}.`,
|
|
2040
|
+
service: buildDaemonServiceSnapshot(service, loaded),
|
|
2041
|
+
warnings: warnings.length ? warnings : void 0
|
|
2042
|
+
});
|
|
2043
|
+
if (!json) {
|
|
2044
|
+
defaultRuntime.log(`Node service already ${service.loadedText}.`);
|
|
2045
|
+
defaultRuntime.log(`Reinstall with: ${formatCliCommand("vora node install --force")}`);
|
|
2046
|
+
}
|
|
2047
|
+
return;
|
|
2048
|
+
}
|
|
2049
|
+
const tlsFingerprint = opts.tlsFingerprint?.trim() || config?.gateway?.tlsFingerprint;
|
|
2050
|
+
const tls = Boolean(opts.tls) || Boolean(tlsFingerprint) || Boolean(config?.gateway?.tls);
|
|
2051
|
+
const { programArguments, workingDirectory, environment, description } = await buildNodeInstallPlan({
|
|
2052
|
+
env: process.env,
|
|
2053
|
+
host,
|
|
2054
|
+
port: port ?? 18789,
|
|
2055
|
+
tls,
|
|
2056
|
+
tlsFingerprint: tlsFingerprint || void 0,
|
|
2057
|
+
nodeId: opts.nodeId,
|
|
2058
|
+
displayName: opts.displayName,
|
|
2059
|
+
runtime: runtimeRaw,
|
|
2060
|
+
warn: (message) => {
|
|
2061
|
+
if (json) warnings.push(message);
|
|
2062
|
+
else defaultRuntime.log(message);
|
|
2063
|
+
}
|
|
2064
|
+
});
|
|
2065
|
+
await installDaemonServiceAndEmit({
|
|
2066
|
+
serviceNoun: "Node",
|
|
2067
|
+
service,
|
|
2068
|
+
warnings,
|
|
2069
|
+
emit,
|
|
2070
|
+
fail,
|
|
2071
|
+
install: async () => {
|
|
2072
|
+
await service.install({
|
|
2073
|
+
env: process.env,
|
|
2074
|
+
stdout,
|
|
2075
|
+
programArguments,
|
|
2076
|
+
workingDirectory,
|
|
2077
|
+
environment,
|
|
2078
|
+
description
|
|
2079
|
+
});
|
|
2080
|
+
}
|
|
2081
|
+
});
|
|
2082
|
+
}
|
|
2083
|
+
async function runNodeDaemonUninstall(opts = {}) {
|
|
2084
|
+
return await runServiceUninstall({
|
|
2085
|
+
serviceNoun: "Node",
|
|
2086
|
+
service: resolveNodeService(),
|
|
2087
|
+
opts,
|
|
2088
|
+
stopBeforeUninstall: false,
|
|
2089
|
+
assertNotLoadedAfterUninstall: false
|
|
2090
|
+
});
|
|
2091
|
+
}
|
|
2092
|
+
async function runNodeDaemonRestart(opts = {}) {
|
|
2093
|
+
await runServiceRestart({
|
|
2094
|
+
serviceNoun: "Node",
|
|
2095
|
+
service: resolveNodeService(),
|
|
2096
|
+
renderStartHints: renderNodeServiceStartHints,
|
|
2097
|
+
opts
|
|
2098
|
+
});
|
|
2099
|
+
}
|
|
2100
|
+
async function runNodeDaemonStop(opts = {}) {
|
|
2101
|
+
return await runServiceStop({
|
|
2102
|
+
serviceNoun: "Node",
|
|
2103
|
+
service: resolveNodeService(),
|
|
2104
|
+
opts
|
|
2105
|
+
});
|
|
2106
|
+
}
|
|
2107
|
+
async function runNodeDaemonStatus(opts = {}) {
|
|
2108
|
+
const json = Boolean(opts.json);
|
|
2109
|
+
const service = resolveNodeService();
|
|
2110
|
+
const [loaded, command, runtime] = await Promise.all([
|
|
2111
|
+
service.isLoaded({ env: process.env }).catch(() => false),
|
|
2112
|
+
service.readCommand(process.env).catch(() => null),
|
|
2113
|
+
service.readRuntime(process.env).catch((err) => ({
|
|
2114
|
+
status: "unknown",
|
|
2115
|
+
detail: String(err)
|
|
2116
|
+
}))
|
|
2117
|
+
]);
|
|
2118
|
+
const payload = { service: {
|
|
2119
|
+
...buildDaemonServiceSnapshot(service, loaded),
|
|
2120
|
+
command,
|
|
2121
|
+
runtime
|
|
2122
|
+
} };
|
|
2123
|
+
if (json) {
|
|
2124
|
+
defaultRuntime.writeJson(payload);
|
|
2125
|
+
return;
|
|
2126
|
+
}
|
|
2127
|
+
const { rich, label, accent, infoText, okText, warnText, errorText } = createCliStatusTextStyles();
|
|
2128
|
+
const serviceStatus = loaded ? okText(service.loadedText) : warnText(service.notLoadedText);
|
|
2129
|
+
defaultRuntime.log(`${label("Service:")} ${accent(service.label)} (${serviceStatus})`);
|
|
2130
|
+
if (command?.programArguments?.length) defaultRuntime.log(`${label("Command:")} ${infoText(command.programArguments.join(" "))}`);
|
|
2131
|
+
if (command?.sourcePath) defaultRuntime.log(`${label("Service file:")} ${infoText(command.sourcePath)}`);
|
|
2132
|
+
if (command?.workingDirectory) defaultRuntime.log(`${label("Working dir:")} ${infoText(command.workingDirectory)}`);
|
|
2133
|
+
const runtimeLine = formatRuntimeStatus(runtime);
|
|
2134
|
+
if (runtimeLine) {
|
|
2135
|
+
const runtimeColor = resolveRuntimeStatusColor(runtime?.status);
|
|
2136
|
+
defaultRuntime.log(`${label("Runtime:")} ${colorize(rich, runtimeColor, runtimeLine)}`);
|
|
2137
|
+
}
|
|
2138
|
+
if (!loaded) {
|
|
2139
|
+
defaultRuntime.log("");
|
|
2140
|
+
for (const hint of renderNodeServiceStartHints()) defaultRuntime.log(`${warnText("Start with:")} ${infoText(hint)}`);
|
|
2141
|
+
return;
|
|
2142
|
+
}
|
|
2143
|
+
const baseEnv = {
|
|
2144
|
+
...process.env,
|
|
2145
|
+
...command?.environment ?? void 0
|
|
2146
|
+
};
|
|
2147
|
+
const hintEnv = {
|
|
2148
|
+
...baseEnv,
|
|
2149
|
+
VORA_LOG_PREFIX: baseEnv.VORA_LOG_PREFIX ?? "node"
|
|
2150
|
+
};
|
|
2151
|
+
if (runtime?.missingUnit) {
|
|
2152
|
+
defaultRuntime.error(errorText("Service unit not found."));
|
|
2153
|
+
for (const hint of buildNodeRuntimeHints(hintEnv)) defaultRuntime.error(errorText(hint));
|
|
2154
|
+
return;
|
|
2155
|
+
}
|
|
2156
|
+
if (runtime?.status === "stopped") {
|
|
2157
|
+
defaultRuntime.error(errorText("Service is loaded but not running."));
|
|
2158
|
+
for (const hint of buildNodeRuntimeHints(hintEnv)) defaultRuntime.error(errorText(hint));
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
//#endregion
|
|
2162
|
+
//#region src/cli/node-cli/register.ts
|
|
2163
|
+
function parsePortWithFallback(value, fallback) {
|
|
2164
|
+
return parsePort(value) ?? fallback;
|
|
2165
|
+
}
|
|
2166
|
+
function registerNodeCli(program) {
|
|
2167
|
+
const node = program.command("node").description("Run and manage the headless node host service").addHelpText("after", () => `\n${theme.heading("Examples:")}\n${formatHelpExamples([
|
|
2168
|
+
["vora node run --host 127.0.0.1 --port 18789", "Run the node host in the foreground."],
|
|
2169
|
+
["vora node status", "Check node host service status."],
|
|
2170
|
+
["vora node install", "Install the node host service."],
|
|
2171
|
+
["vora node restart", "Restart the installed node host service."]
|
|
2172
|
+
])}\n\n${theme.muted("Docs:")} ${formatDocsLink("/cli/node", "docs.vora.ai/cli/node")}\n`);
|
|
2173
|
+
node.command("run").description("Run the headless node host (foreground)").option("--host <host>", "Gateway host").option("--port <port>", "Gateway port").option("--tls", "Use TLS for the gateway connection", false).option("--tls-fingerprint <sha256>", "Expected TLS certificate fingerprint (sha256)").option("--node-id <id>", "Override node id (clears pairing token)").option("--display-name <name>", "Override node display name").action(async (opts) => {
|
|
2174
|
+
const existing = await loadNodeHostConfig();
|
|
2175
|
+
await runNodeHost({
|
|
2176
|
+
gatewayHost: opts.host?.trim() || existing?.gateway?.host || "127.0.0.1",
|
|
2177
|
+
gatewayPort: parsePortWithFallback(opts.port, existing?.gateway?.port ?? 18789),
|
|
2178
|
+
gatewayTls: Boolean(opts.tls) || Boolean(opts.tlsFingerprint),
|
|
2179
|
+
gatewayTlsFingerprint: opts.tlsFingerprint,
|
|
2180
|
+
nodeId: opts.nodeId,
|
|
2181
|
+
displayName: opts.displayName
|
|
2182
|
+
});
|
|
2183
|
+
});
|
|
2184
|
+
node.command("status").description("Show node host status").option("--json", "Output JSON", false).action(async (opts) => {
|
|
2185
|
+
await runNodeDaemonStatus(opts);
|
|
2186
|
+
});
|
|
2187
|
+
node.command("install").description("Install the node host service (launchd/systemd/schtasks)").option("--host <host>", "Gateway host").option("--port <port>", "Gateway port").option("--tls", "Use TLS for the gateway connection", false).option("--tls-fingerprint <sha256>", "Expected TLS certificate fingerprint (sha256)").option("--node-id <id>", "Override node id (clears pairing token)").option("--display-name <name>", "Override node display name").option("--runtime <runtime>", "Service runtime (node|bun). Default: node").option("--force", "Reinstall/overwrite if already installed", false).option("--json", "Output JSON", false).action(async (opts) => {
|
|
2188
|
+
await runNodeDaemonInstall(opts);
|
|
2189
|
+
});
|
|
2190
|
+
node.command("uninstall").description("Uninstall the node host service (launchd/systemd/schtasks)").option("--json", "Output JSON", false).action(async (opts) => {
|
|
2191
|
+
await runNodeDaemonUninstall(opts);
|
|
2192
|
+
});
|
|
2193
|
+
node.command("stop").description("Stop the node host service (launchd/systemd/schtasks)").option("--json", "Output JSON", false).action(async (opts) => {
|
|
2194
|
+
await runNodeDaemonStop(opts);
|
|
2195
|
+
});
|
|
2196
|
+
node.command("restart").description("Restart the node host service (launchd/systemd/schtasks)").option("--json", "Output JSON", false).action(async (opts) => {
|
|
2197
|
+
await runNodeDaemonRestart(opts);
|
|
2198
|
+
});
|
|
2199
|
+
}
|
|
2200
|
+
//#endregion
|
|
2201
|
+
export { registerNodeCli };
|