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,2550 @@
|
|
|
1
|
+
import { r as writeRuntimeJson } from "./runtime-D0VpiCHi.js";
|
|
2
|
+
import { n as isRich$1, r as theme, t as colorize } from "./theme-BJIQPogA.js";
|
|
3
|
+
import { f as resolveAuthStorePathForDisplay, i as loadAuthProfileStoreForRuntime, n as ensureAuthProfileStore } from "./store-DwAEHdgR.js";
|
|
4
|
+
import { i as resolveAuthProfileDisplayLabel } from "./auth-profiles-DgsNxC4M.js";
|
|
5
|
+
import { n as DEFAULT_MODEL, r as DEFAULT_PROVIDER } from "./defaults-DAt--D9n.js";
|
|
6
|
+
import { n as findNormalizedProviderValue, r as normalizeProviderId } from "./provider-id-CTiEzT1T.js";
|
|
7
|
+
import { n as resolveAgentModelPrimaryValue, r as toAgentModelListLike, t as resolveAgentModelFallbackValues } from "./model-input-shLH7pnZ.js";
|
|
8
|
+
import { x as shortenHomePath } from "./utils-BiWzD1kh.js";
|
|
9
|
+
import { i as coerceSecretRef, l as normalizeSecretInputString } from "./types.secrets-CxoujPzV.js";
|
|
10
|
+
import { r as normalizeStringEntries } from "./string-normalization-k4ilMPRu.js";
|
|
11
|
+
import { a as resolveAgentDir, m as resolveDefaultAgentId, p as resolveAgentWorkspaceDir, s as resolveAgentExplicitModelPrimary, u as resolveAgentModelFallbacksOverride } from "./agent-scope-BsqFyt8u.js";
|
|
12
|
+
import { g as resolveDefaultAgentWorkspaceDir } from "./workspace-Byy6tyA9.js";
|
|
13
|
+
import { f as parseModelRef, g as resolveDefaultModelForAgent, h as resolveConfiguredModelRef, i as buildModelAliasIndex, l as modelKey, s as isCliProvider, v as resolveModelRefFromString } from "./model-selection-DLV9QudA.js";
|
|
14
|
+
import { a as getRuntimeConfig, h as readSourceConfigSnapshotForWrite, i as createConfigIO, y as setRuntimeConfigSnapshot } from "./io-B07IaARR.js";
|
|
15
|
+
import { o as shouldEnableShellEnvFallback, t as getShellEnvAppliedKeys } from "./shell-env-BSJycHpS.js";
|
|
16
|
+
import { t as parseDurationMs } from "./parse-duration-FGYGEVrK.js";
|
|
17
|
+
import "./config-CKbWnj3S.js";
|
|
18
|
+
import { i as resolveSecretRefString } from "./resolve-BjvAwAfZ.js";
|
|
19
|
+
import { d as resolveProfileUnusableUntilForDisplay, i as clearAuthProfileCooldown, n as resolveAuthProfileOrder, t as resolveAuthProfileEligibility } from "./order-EE5jGs_C.js";
|
|
20
|
+
import { t as resolveVoraAgentDir } from "./agent-paths-A_P9FLsb.js";
|
|
21
|
+
import { a as upsertAuthProfile, i as setAuthProfileOrder, n as listProfilesForProvider } from "./profiles-bHSSYfJl.js";
|
|
22
|
+
import { t as formatCliCommand } from "./command-format-DmvS76BD.js";
|
|
23
|
+
import { a as resolveSessionTranscriptPath, c as resolveSessionTranscriptsDirForAgent } from "./paths-dFp6bjkV.js";
|
|
24
|
+
import { n as openUrl } from "./browser-open-BU6ETbQQ.js";
|
|
25
|
+
import "./onboard-helpers-DQzH15KX.js";
|
|
26
|
+
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-DRmsfagi.js";
|
|
27
|
+
import { r as withProgressTotals } from "./progress-BvK_oMpz.js";
|
|
28
|
+
import { t as resolvePluginProviders } from "./providers.runtime-7kqrRLzO.js";
|
|
29
|
+
import { u as isNonSecretApiKeyMarker } from "./model-auth-markers-CAxoOhNr.js";
|
|
30
|
+
import { t as resolveEnvApiKey } from "./model-auth-env-aXebmtnO.js";
|
|
31
|
+
import { i as discoverModels, r as discoverAuthStorage } from "./pi-model-discovery-4V1cP6C-.js";
|
|
32
|
+
import { t as runEmbeddedVoraAgent } from "./vora-embedded-runner-CtRc9sK4.js";
|
|
33
|
+
import { n as resolveAwsSdkEnvVarName } from "./model-auth-runtime-shared-C6EfNsiC.js";
|
|
34
|
+
import { a as hasUsableCustomProviderApiKey, c as resolveUsableCustomProviderApiKey, o as resolveApiKeyForProvider, r as getCustomProviderApiKey } from "./model-auth-FAjaPIyj.js";
|
|
35
|
+
import { r as describeFailoverError } from "./failover-error-Bv6ZpTGn.js";
|
|
36
|
+
import { r as loadModelCatalog } from "./model-catalog-DcYmAWnK.js";
|
|
37
|
+
import { t as resolveCommandSecretRefsViaGateway } from "./command-secret-gateway-rXrG4_xf.js";
|
|
38
|
+
import { r as getModelsCommandSecretTargetIds } from "./command-secret-targets-BMcCyKKM.js";
|
|
39
|
+
import { m as resolveUsageProviderId } from "./provider-usage.fetch-BCNscJcf.js";
|
|
40
|
+
import { i as formatUsageWindowSummary, t as loadProviderUsageSummary } from "./provider-usage-BWLu6XJt.js";
|
|
41
|
+
import { i as resolveModelWithRegistry } from "./anthropic-vertex-stream-CDum4sTM.js";
|
|
42
|
+
import { n as shouldSuppressBuiltInModel } from "./model-suppression-DxU9Wl3w.js";
|
|
43
|
+
import { t as applyAuthProfileConfig } from "./provider-auth-helpers-Bk-AB5Wp.js";
|
|
44
|
+
import { n as logConfigUpdated } from "./logging-BVrQyk5K.js";
|
|
45
|
+
import { a as isLocalBaseUrl, c as normalizeAlias, d as resolveModelTarget, f as updateConfig, i as formatTokenK, l as resolveKnownAgentId, n as ensureFlagCompatibility, o as loadValidConfigOrThrow, p as upsertCanonicalModelConfigEntry, r as formatMs, s as mergePrimaryFallbackConfig, t as applyDefaultModelPrimaryUpdate, u as resolveModelKeysFromEntries } from "./shared-BsFd7tT-.js";
|
|
46
|
+
import { n as buildAuthHealthSummary, r as formatRemainingShort, t as DEFAULT_OAUTH_WARN_MS } from "./auth-health-CztAfAX3.js";
|
|
47
|
+
import { t as maskApiKey } from "./mask-api-key-Dxw856id.js";
|
|
48
|
+
import "./provider-auth-login-dOLrU5NV.js";
|
|
49
|
+
import { t as createClackPrompter } from "./clack-prompter-ByYhQnEc.js";
|
|
50
|
+
import { n as renderTable, t as getTerminalTableWidth } from "./table-BNAxmbtm.js";
|
|
51
|
+
import { a as isRemoteEnvironment, i as resolveProviderMatch, n as mergeConfigPatch, r as pickAuthMethod, t as applyDefaultModel } from "./provider-auth-choice-helpers-DLlNwVwg.js";
|
|
52
|
+
import { t as createVpsAwareOAuthHandlers } from "./provider-oauth-flow-DGhuMjqj.js";
|
|
53
|
+
import { t as buildProviderAuthRecoveryHint } from "./provider-auth-guidance-Bo67Hboq.js";
|
|
54
|
+
import { n as redactSecrets } from "./format-Cmirp0jV.js";
|
|
55
|
+
import { t as inferParamBFromIdOrName } from "./model-param-b-C9Se0GAW.js";
|
|
56
|
+
import path from "node:path";
|
|
57
|
+
import { complete, getEnvApiKey, getModel } from "@mariozechner/pi-ai";
|
|
58
|
+
import fs from "node:fs/promises";
|
|
59
|
+
import crypto from "node:crypto";
|
|
60
|
+
import { cancel, confirm, isCancel, multiselect, select, text } from "@clack/prompts";
|
|
61
|
+
import { Type } from "@sinclair/typebox";
|
|
62
|
+
//#region src/commands/models/load-config.ts
|
|
63
|
+
async function loadSourceConfigSnapshot(fallback) {
|
|
64
|
+
try {
|
|
65
|
+
const { snapshot } = await readSourceConfigSnapshotForWrite();
|
|
66
|
+
if (snapshot.valid) return snapshot.sourceConfig;
|
|
67
|
+
} catch {}
|
|
68
|
+
return fallback;
|
|
69
|
+
}
|
|
70
|
+
async function loadModelsConfigWithSource(params) {
|
|
71
|
+
const runtimeConfig = getRuntimeConfig();
|
|
72
|
+
const sourceConfig = await loadSourceConfigSnapshot(runtimeConfig);
|
|
73
|
+
const { resolvedConfig, diagnostics } = await resolveCommandSecretRefsViaGateway({
|
|
74
|
+
config: runtimeConfig,
|
|
75
|
+
commandName: params.commandName,
|
|
76
|
+
targetIds: getModelsCommandSecretTargetIds()
|
|
77
|
+
});
|
|
78
|
+
if (params.runtime) for (const entry of diagnostics) params.runtime.log(`[secrets] ${entry}`);
|
|
79
|
+
setRuntimeConfigSnapshot(resolvedConfig, sourceConfig);
|
|
80
|
+
return {
|
|
81
|
+
sourceConfig,
|
|
82
|
+
resolvedConfig,
|
|
83
|
+
diagnostics
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
async function loadModelsConfig(params) {
|
|
87
|
+
return (await loadModelsConfigWithSource(params)).resolvedConfig;
|
|
88
|
+
}
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/commands/models/aliases.ts
|
|
91
|
+
async function modelsAliasesListCommand(opts, runtime) {
|
|
92
|
+
ensureFlagCompatibility(opts);
|
|
93
|
+
const models = (await loadModelsConfig({
|
|
94
|
+
commandName: "models aliases list",
|
|
95
|
+
runtime
|
|
96
|
+
})).agents?.defaults?.models ?? {};
|
|
97
|
+
const aliases = Object.entries(models).reduce((acc, [modelKey, entry]) => {
|
|
98
|
+
const alias = entry?.alias?.trim();
|
|
99
|
+
if (alias) acc[alias] = modelKey;
|
|
100
|
+
return acc;
|
|
101
|
+
}, {});
|
|
102
|
+
if (opts.json) {
|
|
103
|
+
writeRuntimeJson(runtime, { aliases });
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
if (opts.plain) {
|
|
107
|
+
for (const [alias, target] of Object.entries(aliases)) runtime.log(`${alias} ${target}`);
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
runtime.log(`Aliases (${Object.keys(aliases).length}):`);
|
|
111
|
+
if (Object.keys(aliases).length === 0) {
|
|
112
|
+
runtime.log("- none");
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
for (const [alias, target] of Object.entries(aliases)) runtime.log(`- ${alias} -> ${target}`);
|
|
116
|
+
}
|
|
117
|
+
async function modelsAliasesAddCommand(aliasRaw, modelRaw, runtime) {
|
|
118
|
+
const alias = normalizeAlias(aliasRaw);
|
|
119
|
+
const resolved = resolveModelTarget({
|
|
120
|
+
raw: modelRaw,
|
|
121
|
+
cfg: await loadModelsConfig({
|
|
122
|
+
commandName: "models aliases add",
|
|
123
|
+
runtime
|
|
124
|
+
})
|
|
125
|
+
});
|
|
126
|
+
await updateConfig((cfg) => {
|
|
127
|
+
const modelKey = `${resolved.provider}/${resolved.model}`;
|
|
128
|
+
const nextModels = { ...cfg.agents?.defaults?.models };
|
|
129
|
+
for (const [key, entry] of Object.entries(nextModels)) {
|
|
130
|
+
const existing = entry?.alias?.trim();
|
|
131
|
+
if (existing && existing === alias && key !== modelKey) throw new Error(`Alias ${alias} already points to ${key}.`);
|
|
132
|
+
}
|
|
133
|
+
nextModels[modelKey] = {
|
|
134
|
+
...nextModels[modelKey] ?? {},
|
|
135
|
+
alias
|
|
136
|
+
};
|
|
137
|
+
return {
|
|
138
|
+
...cfg,
|
|
139
|
+
agents: {
|
|
140
|
+
...cfg.agents,
|
|
141
|
+
defaults: {
|
|
142
|
+
...cfg.agents?.defaults,
|
|
143
|
+
models: nextModels
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
});
|
|
148
|
+
logConfigUpdated(runtime);
|
|
149
|
+
runtime.log(`Alias ${alias} -> ${resolved.provider}/${resolved.model}`);
|
|
150
|
+
}
|
|
151
|
+
async function modelsAliasesRemoveCommand(aliasRaw, runtime) {
|
|
152
|
+
const alias = normalizeAlias(aliasRaw);
|
|
153
|
+
const updated = await updateConfig((cfg) => {
|
|
154
|
+
const nextModels = { ...cfg.agents?.defaults?.models };
|
|
155
|
+
let found = false;
|
|
156
|
+
for (const [key, entry] of Object.entries(nextModels)) if (entry?.alias?.trim() === alias) {
|
|
157
|
+
nextModels[key] = {
|
|
158
|
+
...entry,
|
|
159
|
+
alias: void 0
|
|
160
|
+
};
|
|
161
|
+
found = true;
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
if (!found) throw new Error(`Alias not found: ${alias}`);
|
|
165
|
+
return {
|
|
166
|
+
...cfg,
|
|
167
|
+
agents: {
|
|
168
|
+
...cfg.agents,
|
|
169
|
+
defaults: {
|
|
170
|
+
...cfg.agents?.defaults,
|
|
171
|
+
models: nextModels
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
});
|
|
176
|
+
logConfigUpdated(runtime);
|
|
177
|
+
if (!updated.agents?.defaults?.models || Object.values(updated.agents.defaults.models).every((entry) => !entry?.alias?.trim())) runtime.log("No aliases configured.");
|
|
178
|
+
}
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region src/commands/models/auth.ts
|
|
181
|
+
function guardCancel(value) {
|
|
182
|
+
if (typeof value === "symbol" || isCancel(value)) {
|
|
183
|
+
cancel("Cancelled.");
|
|
184
|
+
process.exit(0);
|
|
185
|
+
}
|
|
186
|
+
return value;
|
|
187
|
+
}
|
|
188
|
+
const confirm$1 = async (params) => guardCancel(await confirm({
|
|
189
|
+
...params,
|
|
190
|
+
message: stylePromptMessage(params.message)
|
|
191
|
+
}));
|
|
192
|
+
const text$1 = async (params) => guardCancel(await text({
|
|
193
|
+
...params,
|
|
194
|
+
message: stylePromptMessage(params.message)
|
|
195
|
+
}));
|
|
196
|
+
const select$1 = async (params) => guardCancel(await select({
|
|
197
|
+
...params,
|
|
198
|
+
message: stylePromptMessage(params.message),
|
|
199
|
+
options: params.options.map((opt) => opt.hint === void 0 ? opt : {
|
|
200
|
+
...opt,
|
|
201
|
+
hint: stylePromptHint(opt.hint)
|
|
202
|
+
})
|
|
203
|
+
}));
|
|
204
|
+
function resolveDefaultTokenProfileId(provider) {
|
|
205
|
+
return `${normalizeProviderId(provider)}:manual`;
|
|
206
|
+
}
|
|
207
|
+
function listProvidersWithAuthMethods(providers) {
|
|
208
|
+
return providers.filter((provider) => provider.auth.length > 0);
|
|
209
|
+
}
|
|
210
|
+
function listTokenAuthMethods(provider) {
|
|
211
|
+
return provider.auth.filter((method) => method.kind === "token");
|
|
212
|
+
}
|
|
213
|
+
function listProvidersWithTokenMethods(providers) {
|
|
214
|
+
return providers.filter((provider) => listTokenAuthMethods(provider).length > 0);
|
|
215
|
+
}
|
|
216
|
+
async function resolveModelsAuthContext() {
|
|
217
|
+
const config = await loadValidConfigOrThrow();
|
|
218
|
+
const defaultAgentId = resolveDefaultAgentId(config);
|
|
219
|
+
const agentDir = resolveAgentDir(config, defaultAgentId);
|
|
220
|
+
const workspaceDir = resolveAgentWorkspaceDir(config, defaultAgentId) ?? resolveDefaultAgentWorkspaceDir();
|
|
221
|
+
return {
|
|
222
|
+
config,
|
|
223
|
+
agentDir,
|
|
224
|
+
workspaceDir,
|
|
225
|
+
providers: resolvePluginProviders({
|
|
226
|
+
config,
|
|
227
|
+
workspaceDir,
|
|
228
|
+
bundledProviderAllowlistCompat: true,
|
|
229
|
+
bundledProviderVitestCompat: true
|
|
230
|
+
})
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
function resolveRequestedProviderOrThrow(providers, rawProvider) {
|
|
234
|
+
const requested = rawProvider?.trim();
|
|
235
|
+
if (!requested) return null;
|
|
236
|
+
const matched = resolveProviderMatch(providers, requested);
|
|
237
|
+
if (matched) return matched;
|
|
238
|
+
const available = providers.map((provider) => provider.id).filter(Boolean).toSorted((a, b) => a.localeCompare(b));
|
|
239
|
+
const availableText = available.length > 0 ? available.join(", ") : "(none)";
|
|
240
|
+
throw new Error(`Unknown provider "${requested}". Loaded providers: ${availableText}. Verify plugins via \`${formatCliCommand("vora plugins list --json")}\`.`);
|
|
241
|
+
}
|
|
242
|
+
function resolveTokenMethodOrThrow(provider, rawMethod) {
|
|
243
|
+
const tokenMethods = listTokenAuthMethods(provider);
|
|
244
|
+
if (rawMethod?.trim()) {
|
|
245
|
+
const matched = pickAuthMethod(provider, rawMethod);
|
|
246
|
+
if (matched && matched.kind === "token") return matched;
|
|
247
|
+
const available = tokenMethods.map((method) => method.id).join(", ") || "(none)";
|
|
248
|
+
throw new Error(`Unknown token auth method "${rawMethod}" for provider "${provider.id}". Available token methods: ${available}.`);
|
|
249
|
+
}
|
|
250
|
+
return null;
|
|
251
|
+
}
|
|
252
|
+
async function pickProviderAuthMethod(params) {
|
|
253
|
+
const requestedMethod = pickAuthMethod(params.provider, params.requestedMethod);
|
|
254
|
+
if (requestedMethod) return requestedMethod;
|
|
255
|
+
if (params.provider.auth.length === 1) return params.provider.auth[0] ?? null;
|
|
256
|
+
return await params.prompter.select({
|
|
257
|
+
message: `Auth method for ${params.provider.label}`,
|
|
258
|
+
options: params.provider.auth.map((method) => ({
|
|
259
|
+
value: method.id,
|
|
260
|
+
label: method.label,
|
|
261
|
+
hint: method.hint
|
|
262
|
+
}))
|
|
263
|
+
}).then((id) => params.provider.auth.find((method) => method.id === String(id)) ?? null);
|
|
264
|
+
}
|
|
265
|
+
async function pickProviderTokenMethod(params) {
|
|
266
|
+
const explicitTokenMethod = resolveTokenMethodOrThrow(params.provider, params.requestedMethod);
|
|
267
|
+
if (explicitTokenMethod) return explicitTokenMethod;
|
|
268
|
+
const tokenMethods = listTokenAuthMethods(params.provider);
|
|
269
|
+
if (tokenMethods.length === 0) return null;
|
|
270
|
+
const setupTokenMethod = tokenMethods.find((method) => method.id === "setup-token");
|
|
271
|
+
if (setupTokenMethod) return setupTokenMethod;
|
|
272
|
+
if (tokenMethods.length === 1) return tokenMethods[0] ?? null;
|
|
273
|
+
return await params.prompter.select({
|
|
274
|
+
message: `Token method for ${params.provider.label}`,
|
|
275
|
+
options: tokenMethods.map((method) => ({
|
|
276
|
+
value: method.id,
|
|
277
|
+
label: method.label,
|
|
278
|
+
hint: method.hint
|
|
279
|
+
}))
|
|
280
|
+
}).then((id) => tokenMethods.find((method) => method.id === String(id)) ?? null);
|
|
281
|
+
}
|
|
282
|
+
async function persistProviderAuthResult(params) {
|
|
283
|
+
for (const profile of params.result.profiles) upsertAuthProfile({
|
|
284
|
+
profileId: profile.profileId,
|
|
285
|
+
credential: profile.credential,
|
|
286
|
+
agentDir: params.agentDir
|
|
287
|
+
});
|
|
288
|
+
await updateConfig((cfg) => {
|
|
289
|
+
let next = cfg;
|
|
290
|
+
if (params.result.configPatch) next = mergeConfigPatch(next, params.result.configPatch);
|
|
291
|
+
for (const profile of params.result.profiles) next = applyAuthProfileConfig(next, {
|
|
292
|
+
profileId: profile.profileId,
|
|
293
|
+
provider: profile.credential.provider,
|
|
294
|
+
mode: credentialMode(profile.credential)
|
|
295
|
+
});
|
|
296
|
+
if (params.setDefault && params.result.defaultModel) next = applyDefaultModel(next, params.result.defaultModel);
|
|
297
|
+
return next;
|
|
298
|
+
});
|
|
299
|
+
logConfigUpdated(params.runtime);
|
|
300
|
+
for (const profile of params.result.profiles) params.runtime.log(`Auth profile: ${profile.profileId} (${profile.credential.provider}/${credentialMode(profile.credential)})`);
|
|
301
|
+
if (params.result.defaultModel) params.runtime.log(params.setDefault ? `Default model set to ${params.result.defaultModel}` : `Default model available: ${params.result.defaultModel} (use --set-default to apply)`);
|
|
302
|
+
if (params.result.notes && params.result.notes.length > 0) await params.prompter.note(params.result.notes.join("\n"), "Provider notes");
|
|
303
|
+
}
|
|
304
|
+
async function runProviderAuthMethod(params) {
|
|
305
|
+
await clearStaleProfileLockouts(params.provider.id, params.agentDir);
|
|
306
|
+
await persistProviderAuthResult({
|
|
307
|
+
result: await params.method.run({
|
|
308
|
+
config: params.config,
|
|
309
|
+
env: process.env,
|
|
310
|
+
agentDir: params.agentDir,
|
|
311
|
+
workspaceDir: params.workspaceDir,
|
|
312
|
+
prompter: params.prompter,
|
|
313
|
+
runtime: params.runtime,
|
|
314
|
+
allowSecretRefPrompt: false,
|
|
315
|
+
isRemote: isRemoteEnvironment(),
|
|
316
|
+
openUrl: async (url) => {
|
|
317
|
+
await openUrl(url);
|
|
318
|
+
},
|
|
319
|
+
oauth: { createVpsAwareHandlers: (runtimeParams) => createVpsAwareOAuthHandlers(runtimeParams) }
|
|
320
|
+
}),
|
|
321
|
+
agentDir: params.agentDir,
|
|
322
|
+
runtime: params.runtime,
|
|
323
|
+
prompter: params.prompter,
|
|
324
|
+
setDefault: params.setDefault
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
async function modelsAuthSetupTokenCommand(opts, runtime) {
|
|
328
|
+
if (!process.stdin.isTTY) throw new Error("setup-token requires an interactive TTY.");
|
|
329
|
+
const { config, agentDir, workspaceDir, providers } = await resolveModelsAuthContext();
|
|
330
|
+
const tokenProviders = listProvidersWithTokenMethods(providers);
|
|
331
|
+
if (tokenProviders.length === 0) throw new Error(`No provider token-auth plugins found. Install one via \`${formatCliCommand("vora plugins install")}\`.`);
|
|
332
|
+
const provider = resolveRequestedProviderOrThrow(tokenProviders, opts.provider ?? "anthropic") ?? tokenProviders.find((candidate) => normalizeProviderId(candidate.id) === "anthropic") ?? tokenProviders[0] ?? null;
|
|
333
|
+
if (!provider) throw new Error("No token-capable provider is available.");
|
|
334
|
+
if (!opts.yes) {
|
|
335
|
+
if (!await confirm$1({
|
|
336
|
+
message: `Continue with ${provider.label} token auth?`,
|
|
337
|
+
initialValue: true
|
|
338
|
+
})) return;
|
|
339
|
+
}
|
|
340
|
+
const prompter = createClackPrompter();
|
|
341
|
+
const method = await pickProviderTokenMethod({
|
|
342
|
+
provider,
|
|
343
|
+
prompter
|
|
344
|
+
});
|
|
345
|
+
if (!method) throw new Error(`Provider "${provider.id}" does not expose a token auth method.`);
|
|
346
|
+
await runProviderAuthMethod({
|
|
347
|
+
config,
|
|
348
|
+
agentDir,
|
|
349
|
+
workspaceDir,
|
|
350
|
+
provider,
|
|
351
|
+
method,
|
|
352
|
+
runtime,
|
|
353
|
+
prompter
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
async function modelsAuthPasteTokenCommand(opts, runtime) {
|
|
357
|
+
const { agentDir } = await resolveModelsAuthContext();
|
|
358
|
+
const rawProvider = opts.provider?.trim();
|
|
359
|
+
if (!rawProvider) throw new Error("Missing --provider.");
|
|
360
|
+
const provider = normalizeProviderId(rawProvider);
|
|
361
|
+
const profileId = opts.profileId?.trim() || resolveDefaultTokenProfileId(provider);
|
|
362
|
+
const tokenInput = await text$1({
|
|
363
|
+
message: `Paste token for ${provider}`,
|
|
364
|
+
validate: (value) => value?.trim() ? void 0 : "Required"
|
|
365
|
+
});
|
|
366
|
+
const token = String(tokenInput ?? "").trim();
|
|
367
|
+
const expires = opts.expiresIn?.trim() && opts.expiresIn.trim().length > 0 ? Date.now() + parseDurationMs(String(opts.expiresIn ?? "").trim(), { defaultUnit: "d" }) : void 0;
|
|
368
|
+
upsertAuthProfile({
|
|
369
|
+
profileId,
|
|
370
|
+
credential: {
|
|
371
|
+
type: "token",
|
|
372
|
+
provider,
|
|
373
|
+
token,
|
|
374
|
+
...expires ? { expires } : {}
|
|
375
|
+
},
|
|
376
|
+
agentDir
|
|
377
|
+
});
|
|
378
|
+
await updateConfig((cfg) => applyAuthProfileConfig(cfg, {
|
|
379
|
+
profileId,
|
|
380
|
+
provider,
|
|
381
|
+
mode: "token"
|
|
382
|
+
}));
|
|
383
|
+
logConfigUpdated(runtime);
|
|
384
|
+
runtime.log(`Auth profile: ${profileId} (${provider}/token)`);
|
|
385
|
+
}
|
|
386
|
+
async function modelsAuthAddCommand(_opts, runtime) {
|
|
387
|
+
const { config, agentDir, workspaceDir, providers } = await resolveModelsAuthContext();
|
|
388
|
+
const tokenProviders = listProvidersWithTokenMethods(providers);
|
|
389
|
+
const provider = await select$1({
|
|
390
|
+
message: "Token provider",
|
|
391
|
+
options: [...tokenProviders.map((providerPlugin) => ({
|
|
392
|
+
value: providerPlugin.id,
|
|
393
|
+
label: providerPlugin.id,
|
|
394
|
+
hint: providerPlugin.docsPath ? `Docs: ${providerPlugin.docsPath}` : void 0
|
|
395
|
+
})), {
|
|
396
|
+
value: "custom",
|
|
397
|
+
label: "custom (type provider id)"
|
|
398
|
+
}]
|
|
399
|
+
});
|
|
400
|
+
const providerId = provider === "custom" ? normalizeProviderId(String(await text$1({
|
|
401
|
+
message: "Provider id",
|
|
402
|
+
validate: (value) => value?.trim() ? void 0 : "Required"
|
|
403
|
+
}))) : provider;
|
|
404
|
+
const providerPlugin = provider === "custom" ? null : resolveRequestedProviderOrThrow(tokenProviders, providerId);
|
|
405
|
+
if (providerPlugin) {
|
|
406
|
+
const tokenMethods = listTokenAuthMethods(providerPlugin);
|
|
407
|
+
const methodId = tokenMethods.length > 0 ? await select$1({
|
|
408
|
+
message: "Token method",
|
|
409
|
+
options: [...tokenMethods.map((method) => ({
|
|
410
|
+
value: method.id,
|
|
411
|
+
label: method.label,
|
|
412
|
+
hint: method.hint
|
|
413
|
+
})), {
|
|
414
|
+
value: "paste",
|
|
415
|
+
label: "paste token"
|
|
416
|
+
}]
|
|
417
|
+
}) : "paste";
|
|
418
|
+
if (methodId !== "paste") {
|
|
419
|
+
const prompter = createClackPrompter();
|
|
420
|
+
const method = tokenMethods.find((candidate) => candidate.id === methodId);
|
|
421
|
+
if (!method) throw new Error(`Unknown token auth method "${String(methodId)}".`);
|
|
422
|
+
await runProviderAuthMethod({
|
|
423
|
+
config,
|
|
424
|
+
agentDir,
|
|
425
|
+
workspaceDir,
|
|
426
|
+
provider: providerPlugin,
|
|
427
|
+
method,
|
|
428
|
+
runtime,
|
|
429
|
+
prompter
|
|
430
|
+
});
|
|
431
|
+
return;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
const profileIdDefault = resolveDefaultTokenProfileId(providerId);
|
|
435
|
+
await modelsAuthPasteTokenCommand({
|
|
436
|
+
provider: providerId,
|
|
437
|
+
profileId: String(await text$1({
|
|
438
|
+
message: "Profile id",
|
|
439
|
+
initialValue: profileIdDefault,
|
|
440
|
+
validate: (value) => value?.trim() ? void 0 : "Required"
|
|
441
|
+
})).trim(),
|
|
442
|
+
expiresIn: await confirm$1({
|
|
443
|
+
message: "Does this token expire?",
|
|
444
|
+
initialValue: false
|
|
445
|
+
}) ? String(await text$1({
|
|
446
|
+
message: "Expires in (duration)",
|
|
447
|
+
initialValue: "365d",
|
|
448
|
+
validate: (value) => {
|
|
449
|
+
try {
|
|
450
|
+
parseDurationMs(String(value ?? ""), { defaultUnit: "d" });
|
|
451
|
+
return;
|
|
452
|
+
} catch {
|
|
453
|
+
return "Invalid duration (e.g. 365d, 12h, 30m)";
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
})).trim() : void 0
|
|
457
|
+
}, runtime);
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Clear stale cooldown/disabled state for all profiles matching a provider.
|
|
461
|
+
* When a user explicitly runs `models auth login`, they intend to fix auth —
|
|
462
|
+
* stale `auth_permanent` / `billing` lockouts should not persist across
|
|
463
|
+
* a deliberate re-authentication attempt.
|
|
464
|
+
*/
|
|
465
|
+
async function clearStaleProfileLockouts(provider, agentDir) {
|
|
466
|
+
try {
|
|
467
|
+
const store = loadAuthProfileStoreForRuntime(agentDir);
|
|
468
|
+
const profileIds = listProfilesForProvider(store, provider);
|
|
469
|
+
for (const profileId of profileIds) await clearAuthProfileCooldown({
|
|
470
|
+
store,
|
|
471
|
+
profileId,
|
|
472
|
+
agentDir
|
|
473
|
+
});
|
|
474
|
+
} catch {}
|
|
475
|
+
}
|
|
476
|
+
function resolveRequestedLoginProviderOrThrow(providers, rawProvider) {
|
|
477
|
+
return resolveRequestedProviderOrThrow(providers, rawProvider);
|
|
478
|
+
}
|
|
479
|
+
function credentialMode(credential) {
|
|
480
|
+
if (credential.type === "api_key") return "api_key";
|
|
481
|
+
if (credential.type === "token") return "token";
|
|
482
|
+
return "oauth";
|
|
483
|
+
}
|
|
484
|
+
function maybeLogOpenAICodexNativeSearchTip(runtime, providerId) {
|
|
485
|
+
if (providerId !== "openai-codex") return;
|
|
486
|
+
runtime.log("Tip: Codex-capable models can use native Codex web search. Enable it with vora configure --section web (recommended mode: cached). Docs: https://docs.vora.ai/tools/web");
|
|
487
|
+
}
|
|
488
|
+
async function modelsAuthLoginCommand(opts, runtime) {
|
|
489
|
+
if (!process.stdin.isTTY) throw new Error("models auth login requires an interactive TTY.");
|
|
490
|
+
const { config, agentDir, workspaceDir, providers } = await resolveModelsAuthContext();
|
|
491
|
+
const prompter = createClackPrompter();
|
|
492
|
+
const authProviders = listProvidersWithAuthMethods(providers);
|
|
493
|
+
if (authProviders.length === 0) throw new Error(`No provider plugins found. Install one via \`${formatCliCommand("vora plugins install")}\`.`);
|
|
494
|
+
const selectedProvider = resolveRequestedLoginProviderOrThrow(authProviders, opts.provider) ?? await prompter.select({
|
|
495
|
+
message: "Select a provider",
|
|
496
|
+
options: authProviders.map((provider) => ({
|
|
497
|
+
value: provider.id,
|
|
498
|
+
label: provider.label,
|
|
499
|
+
hint: provider.docsPath ? `Docs: ${provider.docsPath}` : void 0
|
|
500
|
+
}))
|
|
501
|
+
}).then((id) => resolveProviderMatch(authProviders, String(id)));
|
|
502
|
+
if (!selectedProvider) throw new Error("Unknown provider. Use --provider <id> to pick a provider plugin.");
|
|
503
|
+
const chosenMethod = await pickProviderAuthMethod({
|
|
504
|
+
provider: selectedProvider,
|
|
505
|
+
requestedMethod: opts.method,
|
|
506
|
+
prompter
|
|
507
|
+
});
|
|
508
|
+
if (!chosenMethod) throw new Error("Unknown auth method. Use --method <id> to select one.");
|
|
509
|
+
await runProviderAuthMethod({
|
|
510
|
+
config,
|
|
511
|
+
agentDir,
|
|
512
|
+
workspaceDir,
|
|
513
|
+
provider: selectedProvider,
|
|
514
|
+
method: chosenMethod,
|
|
515
|
+
runtime,
|
|
516
|
+
prompter,
|
|
517
|
+
setDefault: opts.setDefault
|
|
518
|
+
});
|
|
519
|
+
maybeLogOpenAICodexNativeSearchTip(runtime, selectedProvider.id);
|
|
520
|
+
}
|
|
521
|
+
//#endregion
|
|
522
|
+
//#region src/commands/models/auth-order.ts
|
|
523
|
+
function resolveTargetAgent(cfg, raw) {
|
|
524
|
+
const agentId = resolveKnownAgentId({
|
|
525
|
+
cfg,
|
|
526
|
+
rawAgentId: raw
|
|
527
|
+
}) ?? resolveDefaultAgentId(cfg);
|
|
528
|
+
return {
|
|
529
|
+
agentId,
|
|
530
|
+
agentDir: resolveAgentDir(cfg, agentId)
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
function describeOrder(store, provider) {
|
|
534
|
+
const providerKey = normalizeProviderId(provider);
|
|
535
|
+
const order = store.order?.[providerKey];
|
|
536
|
+
return Array.isArray(order) ? order : [];
|
|
537
|
+
}
|
|
538
|
+
async function resolveAuthOrderContext(opts, runtime) {
|
|
539
|
+
const rawProvider = opts.provider?.trim();
|
|
540
|
+
if (!rawProvider) throw new Error("Missing --provider.");
|
|
541
|
+
const provider = normalizeProviderId(rawProvider);
|
|
542
|
+
const cfg = await loadModelsConfig({
|
|
543
|
+
commandName: "models auth-order",
|
|
544
|
+
runtime
|
|
545
|
+
});
|
|
546
|
+
const { agentId, agentDir } = resolveTargetAgent(cfg, opts.agent);
|
|
547
|
+
return {
|
|
548
|
+
cfg,
|
|
549
|
+
agentId,
|
|
550
|
+
agentDir,
|
|
551
|
+
provider
|
|
552
|
+
};
|
|
553
|
+
}
|
|
554
|
+
async function modelsAuthOrderGetCommand(opts, runtime) {
|
|
555
|
+
const { agentId, agentDir, provider } = await resolveAuthOrderContext(opts, runtime);
|
|
556
|
+
const order = describeOrder(ensureAuthProfileStore(agentDir, { allowKeychainPrompt: false }), provider);
|
|
557
|
+
if (opts.json) {
|
|
558
|
+
writeRuntimeJson(runtime, {
|
|
559
|
+
agentId,
|
|
560
|
+
agentDir,
|
|
561
|
+
provider,
|
|
562
|
+
authStorePath: shortenHomePath(`${agentDir}/auth-profiles.json`),
|
|
563
|
+
order: order.length > 0 ? order : null
|
|
564
|
+
});
|
|
565
|
+
return;
|
|
566
|
+
}
|
|
567
|
+
runtime.log(`Agent: ${agentId}`);
|
|
568
|
+
runtime.log(`Provider: ${provider}`);
|
|
569
|
+
runtime.log(`Auth file: ${shortenHomePath(`${agentDir}/auth-profiles.json`)}`);
|
|
570
|
+
runtime.log(order.length > 0 ? `Order override: ${order.join(", ")}` : "Order override: (none)");
|
|
571
|
+
}
|
|
572
|
+
async function modelsAuthOrderClearCommand(opts, runtime) {
|
|
573
|
+
const { agentId, agentDir, provider } = await resolveAuthOrderContext(opts, runtime);
|
|
574
|
+
if (!await setAuthProfileOrder({
|
|
575
|
+
agentDir,
|
|
576
|
+
provider,
|
|
577
|
+
order: null
|
|
578
|
+
})) throw new Error("Failed to update auth-profiles.json (lock busy?).");
|
|
579
|
+
runtime.log(`Agent: ${agentId}`);
|
|
580
|
+
runtime.log(`Provider: ${provider}`);
|
|
581
|
+
runtime.log("Cleared per-agent order override.");
|
|
582
|
+
}
|
|
583
|
+
async function modelsAuthOrderSetCommand(opts, runtime) {
|
|
584
|
+
const { agentId, agentDir, provider } = await resolveAuthOrderContext(opts, runtime);
|
|
585
|
+
const store = ensureAuthProfileStore(agentDir, { allowKeychainPrompt: false });
|
|
586
|
+
const providerKey = provider;
|
|
587
|
+
const requested = normalizeStringEntries(opts.order ?? []);
|
|
588
|
+
if (requested.length === 0) throw new Error("Missing profile ids. Provide one or more profile ids.");
|
|
589
|
+
for (const profileId of requested) {
|
|
590
|
+
const cred = store.profiles[profileId];
|
|
591
|
+
if (!cred) throw new Error(`Auth profile "${profileId}" not found in ${agentDir}.`);
|
|
592
|
+
if (normalizeProviderId(cred.provider) !== providerKey) throw new Error(`Auth profile "${profileId}" is for ${cred.provider}, not ${provider}.`);
|
|
593
|
+
}
|
|
594
|
+
const updated = await setAuthProfileOrder({
|
|
595
|
+
agentDir,
|
|
596
|
+
provider,
|
|
597
|
+
order: requested
|
|
598
|
+
});
|
|
599
|
+
if (!updated) throw new Error("Failed to update auth-profiles.json (lock busy?).");
|
|
600
|
+
runtime.log(`Agent: ${agentId}`);
|
|
601
|
+
runtime.log(`Provider: ${provider}`);
|
|
602
|
+
runtime.log(`Order override: ${describeOrder(updated, provider).join(", ")}`);
|
|
603
|
+
}
|
|
604
|
+
//#endregion
|
|
605
|
+
//#region src/commands/models/fallbacks-shared.ts
|
|
606
|
+
function getFallbacks(cfg, key) {
|
|
607
|
+
return resolveAgentModelFallbackValues(cfg.agents?.defaults?.[key]);
|
|
608
|
+
}
|
|
609
|
+
function patchDefaultsFallbacks(cfg, params) {
|
|
610
|
+
const existing = toAgentModelListLike(cfg.agents?.defaults?.[params.key]);
|
|
611
|
+
return {
|
|
612
|
+
...cfg,
|
|
613
|
+
agents: {
|
|
614
|
+
...cfg.agents,
|
|
615
|
+
defaults: {
|
|
616
|
+
...cfg.agents?.defaults,
|
|
617
|
+
[params.key]: mergePrimaryFallbackConfig(existing, { fallbacks: params.fallbacks }),
|
|
618
|
+
...params.models ? { models: params.models } : void 0
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
async function listFallbacksCommand(params, opts, runtime) {
|
|
624
|
+
ensureFlagCompatibility(opts);
|
|
625
|
+
const fallbacks = getFallbacks(await loadModelsConfig({
|
|
626
|
+
commandName: `models ${params.key} list`,
|
|
627
|
+
runtime
|
|
628
|
+
}), params.key);
|
|
629
|
+
if (opts.json) {
|
|
630
|
+
writeRuntimeJson(runtime, { fallbacks });
|
|
631
|
+
return;
|
|
632
|
+
}
|
|
633
|
+
if (opts.plain) {
|
|
634
|
+
for (const entry of fallbacks) runtime.log(entry);
|
|
635
|
+
return;
|
|
636
|
+
}
|
|
637
|
+
runtime.log(`${params.label} (${fallbacks.length}):`);
|
|
638
|
+
if (fallbacks.length === 0) {
|
|
639
|
+
runtime.log("- none");
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
642
|
+
for (const entry of fallbacks) runtime.log(`- ${entry}`);
|
|
643
|
+
}
|
|
644
|
+
async function addFallbackCommand(params, modelRaw, runtime) {
|
|
645
|
+
const updated = await updateConfig((cfg) => {
|
|
646
|
+
const resolved = resolveModelTarget({
|
|
647
|
+
raw: modelRaw,
|
|
648
|
+
cfg
|
|
649
|
+
});
|
|
650
|
+
const nextModels = { ...cfg.agents?.defaults?.models };
|
|
651
|
+
const targetKey = upsertCanonicalModelConfigEntry(nextModels, resolved);
|
|
652
|
+
const existing = getFallbacks(cfg, params.key);
|
|
653
|
+
if (resolveModelKeysFromEntries({
|
|
654
|
+
cfg,
|
|
655
|
+
entries: existing
|
|
656
|
+
}).includes(targetKey)) return cfg;
|
|
657
|
+
return patchDefaultsFallbacks(cfg, {
|
|
658
|
+
key: params.key,
|
|
659
|
+
fallbacks: [...existing, targetKey],
|
|
660
|
+
models: nextModels
|
|
661
|
+
});
|
|
662
|
+
});
|
|
663
|
+
logConfigUpdated(runtime);
|
|
664
|
+
runtime.log(`${params.logPrefix}: ${getFallbacks(updated, params.key).join(", ")}`);
|
|
665
|
+
}
|
|
666
|
+
async function removeFallbackCommand(params, modelRaw, runtime) {
|
|
667
|
+
const updated = await updateConfig((cfg) => {
|
|
668
|
+
const resolved = resolveModelTarget({
|
|
669
|
+
raw: modelRaw,
|
|
670
|
+
cfg
|
|
671
|
+
});
|
|
672
|
+
const targetKey = modelKey(resolved.provider, resolved.model);
|
|
673
|
+
const aliasIndex = buildModelAliasIndex({
|
|
674
|
+
cfg,
|
|
675
|
+
defaultProvider: DEFAULT_PROVIDER
|
|
676
|
+
});
|
|
677
|
+
const existing = getFallbacks(cfg, params.key);
|
|
678
|
+
const filtered = existing.filter((entry) => {
|
|
679
|
+
const resolvedEntry = resolveModelRefFromString({
|
|
680
|
+
raw: String(entry ?? ""),
|
|
681
|
+
defaultProvider: DEFAULT_PROVIDER,
|
|
682
|
+
aliasIndex
|
|
683
|
+
});
|
|
684
|
+
if (!resolvedEntry) return true;
|
|
685
|
+
return modelKey(resolvedEntry.ref.provider, resolvedEntry.ref.model) !== targetKey;
|
|
686
|
+
});
|
|
687
|
+
if (filtered.length === existing.length) throw new Error(`${params.notFoundLabel} not found: ${targetKey}`);
|
|
688
|
+
return patchDefaultsFallbacks(cfg, {
|
|
689
|
+
key: params.key,
|
|
690
|
+
fallbacks: filtered
|
|
691
|
+
});
|
|
692
|
+
});
|
|
693
|
+
logConfigUpdated(runtime);
|
|
694
|
+
runtime.log(`${params.logPrefix}: ${getFallbacks(updated, params.key).join(", ")}`);
|
|
695
|
+
}
|
|
696
|
+
async function clearFallbacksCommand(params, runtime) {
|
|
697
|
+
await updateConfig((cfg) => {
|
|
698
|
+
return patchDefaultsFallbacks(cfg, {
|
|
699
|
+
key: params.key,
|
|
700
|
+
fallbacks: []
|
|
701
|
+
});
|
|
702
|
+
});
|
|
703
|
+
logConfigUpdated(runtime);
|
|
704
|
+
runtime.log(params.clearedMessage);
|
|
705
|
+
}
|
|
706
|
+
//#endregion
|
|
707
|
+
//#region src/commands/models/fallbacks.ts
|
|
708
|
+
async function modelsFallbacksListCommand(opts, runtime) {
|
|
709
|
+
return await listFallbacksCommand({
|
|
710
|
+
label: "Fallbacks",
|
|
711
|
+
key: "model"
|
|
712
|
+
}, opts, runtime);
|
|
713
|
+
}
|
|
714
|
+
async function modelsFallbacksAddCommand(modelRaw, runtime) {
|
|
715
|
+
return await addFallbackCommand({
|
|
716
|
+
label: "Fallbacks",
|
|
717
|
+
key: "model",
|
|
718
|
+
logPrefix: "Fallbacks"
|
|
719
|
+
}, modelRaw, runtime);
|
|
720
|
+
}
|
|
721
|
+
async function modelsFallbacksRemoveCommand(modelRaw, runtime) {
|
|
722
|
+
return await removeFallbackCommand({
|
|
723
|
+
label: "Fallbacks",
|
|
724
|
+
key: "model",
|
|
725
|
+
notFoundLabel: "Fallback",
|
|
726
|
+
logPrefix: "Fallbacks"
|
|
727
|
+
}, modelRaw, runtime);
|
|
728
|
+
}
|
|
729
|
+
async function modelsFallbacksClearCommand(runtime) {
|
|
730
|
+
return await clearFallbacksCommand({
|
|
731
|
+
key: "model",
|
|
732
|
+
clearedMessage: "Fallback list cleared."
|
|
733
|
+
}, runtime);
|
|
734
|
+
}
|
|
735
|
+
//#endregion
|
|
736
|
+
//#region src/commands/models/image-fallbacks.ts
|
|
737
|
+
async function modelsImageFallbacksListCommand(opts, runtime) {
|
|
738
|
+
return await listFallbacksCommand({
|
|
739
|
+
label: "Image fallbacks",
|
|
740
|
+
key: "imageModel"
|
|
741
|
+
}, opts, runtime);
|
|
742
|
+
}
|
|
743
|
+
async function modelsImageFallbacksAddCommand(modelRaw, runtime) {
|
|
744
|
+
return await addFallbackCommand({
|
|
745
|
+
label: "Image fallbacks",
|
|
746
|
+
key: "imageModel",
|
|
747
|
+
logPrefix: "Image fallbacks"
|
|
748
|
+
}, modelRaw, runtime);
|
|
749
|
+
}
|
|
750
|
+
async function modelsImageFallbacksRemoveCommand(modelRaw, runtime) {
|
|
751
|
+
return await removeFallbackCommand({
|
|
752
|
+
label: "Image fallbacks",
|
|
753
|
+
key: "imageModel",
|
|
754
|
+
notFoundLabel: "Image fallback",
|
|
755
|
+
logPrefix: "Image fallbacks"
|
|
756
|
+
}, modelRaw, runtime);
|
|
757
|
+
}
|
|
758
|
+
async function modelsImageFallbacksClearCommand(runtime) {
|
|
759
|
+
return await clearFallbacksCommand({
|
|
760
|
+
key: "imageModel",
|
|
761
|
+
clearedMessage: "Image fallback list cleared."
|
|
762
|
+
}, runtime);
|
|
763
|
+
}
|
|
764
|
+
//#endregion
|
|
765
|
+
//#region src/commands/models/list.configured.ts
|
|
766
|
+
function resolveConfiguredEntries(cfg) {
|
|
767
|
+
const resolvedDefault = resolveConfiguredModelRef({
|
|
768
|
+
cfg,
|
|
769
|
+
defaultProvider: DEFAULT_PROVIDER,
|
|
770
|
+
defaultModel: DEFAULT_MODEL
|
|
771
|
+
});
|
|
772
|
+
const aliasIndex = buildModelAliasIndex({
|
|
773
|
+
cfg,
|
|
774
|
+
defaultProvider: DEFAULT_PROVIDER
|
|
775
|
+
});
|
|
776
|
+
const order = [];
|
|
777
|
+
const tagsByKey = /* @__PURE__ */ new Map();
|
|
778
|
+
const aliasesByKey = /* @__PURE__ */ new Map();
|
|
779
|
+
for (const [key, aliases] of aliasIndex.byKey.entries()) aliasesByKey.set(key, aliases);
|
|
780
|
+
const addEntry = (ref, tag) => {
|
|
781
|
+
const key = modelKey(ref.provider, ref.model);
|
|
782
|
+
if (!tagsByKey.has(key)) {
|
|
783
|
+
tagsByKey.set(key, /* @__PURE__ */ new Set());
|
|
784
|
+
order.push(key);
|
|
785
|
+
}
|
|
786
|
+
tagsByKey.get(key)?.add(tag);
|
|
787
|
+
};
|
|
788
|
+
const addResolvedModelRef = (raw, tag) => {
|
|
789
|
+
const resolved = resolveModelRefFromString({
|
|
790
|
+
raw,
|
|
791
|
+
defaultProvider: DEFAULT_PROVIDER,
|
|
792
|
+
aliasIndex
|
|
793
|
+
});
|
|
794
|
+
if (resolved) addEntry(resolved.ref, tag);
|
|
795
|
+
};
|
|
796
|
+
addEntry(resolvedDefault, "default");
|
|
797
|
+
const modelFallbacks = resolveAgentModelFallbackValues(cfg.agents?.defaults?.model);
|
|
798
|
+
const imageFallbacks = resolveAgentModelFallbackValues(cfg.agents?.defaults?.imageModel);
|
|
799
|
+
const imagePrimary = resolveAgentModelPrimaryValue(cfg.agents?.defaults?.imageModel) ?? "";
|
|
800
|
+
modelFallbacks.forEach((raw, idx) => {
|
|
801
|
+
addResolvedModelRef(String(raw ?? ""), `fallback#${idx + 1}`);
|
|
802
|
+
});
|
|
803
|
+
if (imagePrimary) addResolvedModelRef(imagePrimary, "image");
|
|
804
|
+
imageFallbacks.forEach((raw, idx) => {
|
|
805
|
+
addResolvedModelRef(String(raw ?? ""), `img-fallback#${idx + 1}`);
|
|
806
|
+
});
|
|
807
|
+
for (const key of Object.keys(cfg.agents?.defaults?.models ?? {})) {
|
|
808
|
+
const parsed = parseModelRef(String(key ?? ""), DEFAULT_PROVIDER);
|
|
809
|
+
if (!parsed) continue;
|
|
810
|
+
addEntry(parsed, "configured");
|
|
811
|
+
}
|
|
812
|
+
return { entries: order.map((key) => {
|
|
813
|
+
const slash = key.indexOf("/");
|
|
814
|
+
return {
|
|
815
|
+
key,
|
|
816
|
+
ref: {
|
|
817
|
+
provider: slash === -1 ? key : key.slice(0, slash),
|
|
818
|
+
model: slash === -1 ? "" : key.slice(slash + 1)
|
|
819
|
+
},
|
|
820
|
+
tags: tagsByKey.get(key) ?? /* @__PURE__ */ new Set(),
|
|
821
|
+
aliases: aliasesByKey.get(key) ?? []
|
|
822
|
+
};
|
|
823
|
+
}) };
|
|
824
|
+
}
|
|
825
|
+
//#endregion
|
|
826
|
+
//#region src/commands/models/list.errors.ts
|
|
827
|
+
const MODEL_AVAILABILITY_UNAVAILABLE_CODE = "MODEL_AVAILABILITY_UNAVAILABLE";
|
|
828
|
+
function formatErrorWithStack(err) {
|
|
829
|
+
if (err instanceof Error) return err.stack ?? `${err.name}: ${err.message}`;
|
|
830
|
+
return String(err);
|
|
831
|
+
}
|
|
832
|
+
function shouldFallbackToAuthHeuristics(err) {
|
|
833
|
+
if (!(err instanceof Error)) return false;
|
|
834
|
+
return err.code === MODEL_AVAILABILITY_UNAVAILABLE_CODE;
|
|
835
|
+
}
|
|
836
|
+
//#endregion
|
|
837
|
+
//#region src/commands/models/list.registry.ts
|
|
838
|
+
const hasAuthForProvider = (provider, cfg, authStore) => {
|
|
839
|
+
if (!cfg || !authStore) return false;
|
|
840
|
+
if (listProfilesForProvider(authStore, provider).length > 0) return true;
|
|
841
|
+
if (provider === "amazon-bedrock" && resolveAwsSdkEnvVarName()) return true;
|
|
842
|
+
if (resolveEnvApiKey(provider)) return true;
|
|
843
|
+
if (hasUsableCustomProviderApiKey(cfg, provider)) return true;
|
|
844
|
+
return false;
|
|
845
|
+
};
|
|
846
|
+
function createAvailabilityUnavailableError(message) {
|
|
847
|
+
const err = new Error(message);
|
|
848
|
+
err.code = MODEL_AVAILABILITY_UNAVAILABLE_CODE;
|
|
849
|
+
return err;
|
|
850
|
+
}
|
|
851
|
+
function normalizeAvailabilityError(err) {
|
|
852
|
+
if (shouldFallbackToAuthHeuristics(err) && err instanceof Error) return err;
|
|
853
|
+
return createAvailabilityUnavailableError(`Model availability unavailable: getAvailable() failed.\n${formatErrorWithStack(err)}`);
|
|
854
|
+
}
|
|
855
|
+
function validateAvailableModels(availableModels) {
|
|
856
|
+
if (!Array.isArray(availableModels)) throw createAvailabilityUnavailableError("Model availability unavailable: getAvailable() returned a non-array value.");
|
|
857
|
+
for (const model of availableModels) if (!model || typeof model !== "object" || typeof model.provider !== "string" || typeof model.id !== "string") throw createAvailabilityUnavailableError("Model availability unavailable: getAvailable() returned invalid model entries.");
|
|
858
|
+
return availableModels;
|
|
859
|
+
}
|
|
860
|
+
function loadAvailableModels(registry) {
|
|
861
|
+
let availableModels;
|
|
862
|
+
try {
|
|
863
|
+
availableModels = registry.getAvailable();
|
|
864
|
+
} catch (err) {
|
|
865
|
+
throw normalizeAvailabilityError(err);
|
|
866
|
+
}
|
|
867
|
+
try {
|
|
868
|
+
return validateAvailableModels(availableModels).filter((model) => !shouldSuppressBuiltInModel({
|
|
869
|
+
provider: model.provider,
|
|
870
|
+
id: model.id
|
|
871
|
+
}));
|
|
872
|
+
} catch (err) {
|
|
873
|
+
throw normalizeAvailabilityError(err);
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
async function loadModelRegistry(_cfg, _opts) {
|
|
877
|
+
const agentDir = resolveVoraAgentDir();
|
|
878
|
+
const registry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
879
|
+
const models = registry.getAll().filter((model) => !shouldSuppressBuiltInModel({
|
|
880
|
+
provider: model.provider,
|
|
881
|
+
id: model.id
|
|
882
|
+
}));
|
|
883
|
+
let availableKeys;
|
|
884
|
+
let availabilityErrorMessage;
|
|
885
|
+
try {
|
|
886
|
+
const availableModels = loadAvailableModels(registry);
|
|
887
|
+
availableKeys = new Set(availableModels.map((model) => modelKey(model.provider, model.id)));
|
|
888
|
+
} catch (err) {
|
|
889
|
+
if (!shouldFallbackToAuthHeuristics(err)) throw err;
|
|
890
|
+
availableKeys = void 0;
|
|
891
|
+
if (!availabilityErrorMessage) availabilityErrorMessage = formatErrorWithStack(err);
|
|
892
|
+
}
|
|
893
|
+
return {
|
|
894
|
+
registry,
|
|
895
|
+
models,
|
|
896
|
+
availableKeys,
|
|
897
|
+
availabilityErrorMessage
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
function toModelRow(params) {
|
|
901
|
+
const { model, key, tags, aliases = [], availableKeys, cfg, authStore, allowProviderAvailabilityFallback = false } = params;
|
|
902
|
+
if (!model) return {
|
|
903
|
+
key,
|
|
904
|
+
name: key,
|
|
905
|
+
input: "-",
|
|
906
|
+
contextWindow: null,
|
|
907
|
+
local: null,
|
|
908
|
+
available: null,
|
|
909
|
+
tags: [...tags, "missing"],
|
|
910
|
+
missing: true
|
|
911
|
+
};
|
|
912
|
+
const input = model.input.join("+") || "text";
|
|
913
|
+
const local = isLocalBaseUrl(model.baseUrl);
|
|
914
|
+
const modelIsAvailable = availableKeys?.has(modelKey(model.provider, model.id)) ?? false;
|
|
915
|
+
const available = availableKeys !== void 0 && !allowProviderAvailabilityFallback ? modelIsAvailable : modelIsAvailable || (cfg && authStore ? hasAuthForProvider(model.provider, cfg, authStore) : false);
|
|
916
|
+
const aliasTags = aliases.length > 0 ? [`alias:${aliases.join(",")}`] : [];
|
|
917
|
+
const mergedTags = new Set(tags);
|
|
918
|
+
if (aliasTags.length > 0) {
|
|
919
|
+
for (const tag of mergedTags) if (tag === "alias" || tag.startsWith("alias:")) mergedTags.delete(tag);
|
|
920
|
+
for (const tag of aliasTags) mergedTags.add(tag);
|
|
921
|
+
}
|
|
922
|
+
return {
|
|
923
|
+
key,
|
|
924
|
+
name: model.name || model.id,
|
|
925
|
+
input,
|
|
926
|
+
contextWindow: model.contextWindow ?? null,
|
|
927
|
+
local,
|
|
928
|
+
available,
|
|
929
|
+
tags: Array.from(mergedTags),
|
|
930
|
+
missing: false
|
|
931
|
+
};
|
|
932
|
+
}
|
|
933
|
+
//#endregion
|
|
934
|
+
//#region src/commands/models/list.rows.ts
|
|
935
|
+
function matchesRowFilter(filter, model) {
|
|
936
|
+
if (filter.provider && normalizeProviderId(model.provider) !== filter.provider) return false;
|
|
937
|
+
if (filter.local && !isLocalBaseUrl(model.baseUrl ?? "")) return false;
|
|
938
|
+
return true;
|
|
939
|
+
}
|
|
940
|
+
function buildRow(params) {
|
|
941
|
+
const configured = params.context.configuredByKey.get(params.key);
|
|
942
|
+
return toModelRow({
|
|
943
|
+
model: params.model,
|
|
944
|
+
key: params.key,
|
|
945
|
+
tags: configured ? Array.from(configured.tags) : [],
|
|
946
|
+
aliases: configured?.aliases ?? [],
|
|
947
|
+
availableKeys: params.context.availableKeys,
|
|
948
|
+
cfg: params.context.cfg,
|
|
949
|
+
authStore: params.context.authStore,
|
|
950
|
+
allowProviderAvailabilityFallback: params.allowProviderAvailabilityFallback ?? false
|
|
951
|
+
});
|
|
952
|
+
}
|
|
953
|
+
async function loadListModelRegistry(cfg, opts) {
|
|
954
|
+
const loaded = await loadModelRegistry(cfg, opts);
|
|
955
|
+
return {
|
|
956
|
+
...loaded,
|
|
957
|
+
discoveredKeys: new Set(loaded.models.map((model) => modelKey(model.provider, model.id)))
|
|
958
|
+
};
|
|
959
|
+
}
|
|
960
|
+
function appendDiscoveredRows(params) {
|
|
961
|
+
const seenKeys = /* @__PURE__ */ new Set();
|
|
962
|
+
const sorted = [...params.models].toSorted((a, b) => {
|
|
963
|
+
const providerCompare = a.provider.localeCompare(b.provider);
|
|
964
|
+
if (providerCompare !== 0) return providerCompare;
|
|
965
|
+
return a.id.localeCompare(b.id);
|
|
966
|
+
});
|
|
967
|
+
for (const model of sorted) {
|
|
968
|
+
if (shouldSuppressBuiltInModel({
|
|
969
|
+
provider: model.provider,
|
|
970
|
+
id: model.id
|
|
971
|
+
})) continue;
|
|
972
|
+
if (!matchesRowFilter(params.context.filter, model)) continue;
|
|
973
|
+
const key = modelKey(model.provider, model.id);
|
|
974
|
+
params.rows.push(buildRow({
|
|
975
|
+
model,
|
|
976
|
+
key,
|
|
977
|
+
context: params.context
|
|
978
|
+
}));
|
|
979
|
+
seenKeys.add(key);
|
|
980
|
+
}
|
|
981
|
+
return seenKeys;
|
|
982
|
+
}
|
|
983
|
+
async function appendCatalogSupplementRows(params) {
|
|
984
|
+
const catalog = await loadModelCatalog({ config: params.context.cfg });
|
|
985
|
+
for (const entry of catalog) {
|
|
986
|
+
if (params.context.filter.provider && normalizeProviderId(entry.provider) !== params.context.filter.provider) continue;
|
|
987
|
+
const key = modelKey(entry.provider, entry.id);
|
|
988
|
+
if (params.seenKeys.has(key)) continue;
|
|
989
|
+
const model = resolveModelWithRegistry({
|
|
990
|
+
provider: entry.provider,
|
|
991
|
+
modelId: entry.id,
|
|
992
|
+
modelRegistry: params.modelRegistry,
|
|
993
|
+
cfg: params.context.cfg
|
|
994
|
+
});
|
|
995
|
+
if (!model || !matchesRowFilter(params.context.filter, model)) continue;
|
|
996
|
+
params.rows.push(buildRow({
|
|
997
|
+
model,
|
|
998
|
+
key,
|
|
999
|
+
context: params.context,
|
|
1000
|
+
allowProviderAvailabilityFallback: !params.context.discoveredKeys.has(key)
|
|
1001
|
+
}));
|
|
1002
|
+
params.seenKeys.add(key);
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
function appendConfiguredRows(params) {
|
|
1006
|
+
for (const entry of params.entries) {
|
|
1007
|
+
if (params.context.filter.provider && normalizeProviderId(entry.ref.provider) !== params.context.filter.provider) continue;
|
|
1008
|
+
const model = resolveModelWithRegistry({
|
|
1009
|
+
provider: entry.ref.provider,
|
|
1010
|
+
modelId: entry.ref.model,
|
|
1011
|
+
modelRegistry: params.modelRegistry,
|
|
1012
|
+
cfg: params.context.cfg
|
|
1013
|
+
});
|
|
1014
|
+
if (params.context.filter.local && model && !isLocalBaseUrl(model.baseUrl ?? "")) continue;
|
|
1015
|
+
if (params.context.filter.local && !model) continue;
|
|
1016
|
+
params.rows.push(toModelRow({
|
|
1017
|
+
model,
|
|
1018
|
+
key: entry.key,
|
|
1019
|
+
tags: Array.from(entry.tags),
|
|
1020
|
+
aliases: entry.aliases,
|
|
1021
|
+
availableKeys: params.context.availableKeys,
|
|
1022
|
+
cfg: params.context.cfg,
|
|
1023
|
+
authStore: params.context.authStore,
|
|
1024
|
+
allowProviderAvailabilityFallback: model ? !params.context.discoveredKeys.has(modelKey(model.provider, model.id)) : false
|
|
1025
|
+
}));
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
//#endregion
|
|
1029
|
+
//#region src/commands/models/list.format.ts
|
|
1030
|
+
const isRich = (opts) => Boolean(isRich$1() && !opts?.json && !opts?.plain);
|
|
1031
|
+
const pad = (value, size) => value.padEnd(size);
|
|
1032
|
+
const formatTag = (tag, rich) => {
|
|
1033
|
+
if (!rich) return tag;
|
|
1034
|
+
if (tag === "default") return theme.success(tag);
|
|
1035
|
+
if (tag === "image") return theme.accentBright(tag);
|
|
1036
|
+
if (tag === "configured") return theme.accent(tag);
|
|
1037
|
+
if (tag === "missing") return theme.error(tag);
|
|
1038
|
+
if (tag.startsWith("fallback#")) return theme.warn(tag);
|
|
1039
|
+
if (tag.startsWith("img-fallback#")) return theme.warn(tag);
|
|
1040
|
+
if (tag.startsWith("alias:")) return theme.accentDim(tag);
|
|
1041
|
+
return theme.muted(tag);
|
|
1042
|
+
};
|
|
1043
|
+
const truncate = (value, max) => {
|
|
1044
|
+
if (value.length <= max) return value;
|
|
1045
|
+
if (max <= 3) return value.slice(0, max);
|
|
1046
|
+
return `${value.slice(0, max - 3)}...`;
|
|
1047
|
+
};
|
|
1048
|
+
//#endregion
|
|
1049
|
+
//#region src/commands/models/list.table.ts
|
|
1050
|
+
const MODEL_PAD$1 = 42;
|
|
1051
|
+
const INPUT_PAD = 10;
|
|
1052
|
+
const CTX_PAD$1 = 8;
|
|
1053
|
+
const LOCAL_PAD = 5;
|
|
1054
|
+
const AUTH_PAD = 5;
|
|
1055
|
+
function printModelTable(rows, runtime, opts = {}) {
|
|
1056
|
+
if (opts.json) {
|
|
1057
|
+
writeRuntimeJson(runtime, {
|
|
1058
|
+
count: rows.length,
|
|
1059
|
+
models: rows
|
|
1060
|
+
});
|
|
1061
|
+
return;
|
|
1062
|
+
}
|
|
1063
|
+
if (opts.plain) {
|
|
1064
|
+
for (const row of rows) runtime.log(row.key);
|
|
1065
|
+
return;
|
|
1066
|
+
}
|
|
1067
|
+
const rich = isRich(opts);
|
|
1068
|
+
const header = [
|
|
1069
|
+
pad("Model", MODEL_PAD$1),
|
|
1070
|
+
pad("Input", INPUT_PAD),
|
|
1071
|
+
pad("Ctx", CTX_PAD$1),
|
|
1072
|
+
pad("Local", LOCAL_PAD),
|
|
1073
|
+
pad("Auth", AUTH_PAD),
|
|
1074
|
+
"Tags"
|
|
1075
|
+
].join(" ");
|
|
1076
|
+
runtime.log(rich ? theme.heading(header) : header);
|
|
1077
|
+
for (const row of rows) {
|
|
1078
|
+
const keyLabel = pad(truncate(row.key, MODEL_PAD$1), MODEL_PAD$1);
|
|
1079
|
+
const inputLabel = pad(row.input || "-", INPUT_PAD);
|
|
1080
|
+
const ctxLabel = pad(formatTokenK(row.contextWindow), CTX_PAD$1);
|
|
1081
|
+
const localLabel = pad(row.local === null ? "-" : row.local ? "yes" : "no", LOCAL_PAD);
|
|
1082
|
+
const authLabel = pad(row.available === null ? "-" : row.available ? "yes" : "no", AUTH_PAD);
|
|
1083
|
+
const tagsLabel = row.tags.length > 0 ? rich ? row.tags.map((tag) => formatTag(tag, rich)).join(",") : row.tags.join(",") : "";
|
|
1084
|
+
const coloredInput = colorize(rich, row.input.includes("image") ? theme.accentBright : theme.info, inputLabel);
|
|
1085
|
+
const coloredLocal = colorize(rich, row.local === null ? theme.muted : row.local ? theme.success : theme.muted, localLabel);
|
|
1086
|
+
const coloredAuth = colorize(rich, row.available === null ? theme.muted : row.available ? theme.success : theme.error, authLabel);
|
|
1087
|
+
const line = [
|
|
1088
|
+
rich ? theme.accent(keyLabel) : keyLabel,
|
|
1089
|
+
coloredInput,
|
|
1090
|
+
ctxLabel,
|
|
1091
|
+
coloredLocal,
|
|
1092
|
+
coloredAuth,
|
|
1093
|
+
tagsLabel
|
|
1094
|
+
].join(" ");
|
|
1095
|
+
runtime.log(line);
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
//#endregion
|
|
1099
|
+
//#region src/commands/models/list.list-command.ts
|
|
1100
|
+
async function modelsListCommand(opts, runtime) {
|
|
1101
|
+
ensureFlagCompatibility(opts);
|
|
1102
|
+
const { ensureAuthProfileStore } = await import("./agents/auth-profiles.runtime.js");
|
|
1103
|
+
const { ensureVoraModelsJson } = await import("./models-config-BrM95ZWn.js");
|
|
1104
|
+
const { sourceConfig, resolvedConfig: cfg } = await loadModelsConfigWithSource({
|
|
1105
|
+
commandName: "models list",
|
|
1106
|
+
runtime
|
|
1107
|
+
});
|
|
1108
|
+
const authStore = ensureAuthProfileStore();
|
|
1109
|
+
const providerFilter = (() => {
|
|
1110
|
+
const raw = opts.provider?.trim();
|
|
1111
|
+
if (!raw) return;
|
|
1112
|
+
return parseModelRef(`${raw}/_`, "anthropic")?.provider ?? raw.toLowerCase();
|
|
1113
|
+
})();
|
|
1114
|
+
let modelRegistry;
|
|
1115
|
+
let discoveredKeys = /* @__PURE__ */ new Set();
|
|
1116
|
+
let availableKeys;
|
|
1117
|
+
let availabilityErrorMessage;
|
|
1118
|
+
try {
|
|
1119
|
+
await ensureVoraModelsJson(sourceConfig ?? cfg);
|
|
1120
|
+
const loaded = await loadListModelRegistry(cfg, { sourceConfig });
|
|
1121
|
+
modelRegistry = loaded.registry;
|
|
1122
|
+
discoveredKeys = loaded.discoveredKeys;
|
|
1123
|
+
availableKeys = loaded.availableKeys;
|
|
1124
|
+
availabilityErrorMessage = loaded.availabilityErrorMessage;
|
|
1125
|
+
} catch (err) {
|
|
1126
|
+
runtime.error(`Model registry unavailable:\n${formatErrorWithStack(err)}`);
|
|
1127
|
+
process.exitCode = 1;
|
|
1128
|
+
return;
|
|
1129
|
+
}
|
|
1130
|
+
if (availabilityErrorMessage !== void 0) runtime.error(`Model availability lookup failed; falling back to auth heuristics for discovered models: ${availabilityErrorMessage}`);
|
|
1131
|
+
const { entries } = resolveConfiguredEntries(cfg);
|
|
1132
|
+
const configuredByKey = new Map(entries.map((entry) => [entry.key, entry]));
|
|
1133
|
+
const rows = [];
|
|
1134
|
+
const rowContext = {
|
|
1135
|
+
cfg,
|
|
1136
|
+
authStore,
|
|
1137
|
+
availableKeys,
|
|
1138
|
+
configuredByKey,
|
|
1139
|
+
discoveredKeys,
|
|
1140
|
+
filter: {
|
|
1141
|
+
provider: providerFilter,
|
|
1142
|
+
local: opts.local
|
|
1143
|
+
}
|
|
1144
|
+
};
|
|
1145
|
+
if (opts.all) {
|
|
1146
|
+
const seenKeys = appendDiscoveredRows({
|
|
1147
|
+
rows,
|
|
1148
|
+
models: modelRegistry?.getAll() ?? [],
|
|
1149
|
+
context: rowContext
|
|
1150
|
+
});
|
|
1151
|
+
if (modelRegistry) await appendCatalogSupplementRows({
|
|
1152
|
+
rows,
|
|
1153
|
+
modelRegistry,
|
|
1154
|
+
context: rowContext,
|
|
1155
|
+
seenKeys
|
|
1156
|
+
});
|
|
1157
|
+
} else {
|
|
1158
|
+
const registry = modelRegistry;
|
|
1159
|
+
if (!registry) {
|
|
1160
|
+
runtime.error("Model registry unavailable.");
|
|
1161
|
+
process.exitCode = 1;
|
|
1162
|
+
return;
|
|
1163
|
+
}
|
|
1164
|
+
appendConfiguredRows({
|
|
1165
|
+
rows,
|
|
1166
|
+
entries,
|
|
1167
|
+
modelRegistry: registry,
|
|
1168
|
+
context: rowContext
|
|
1169
|
+
});
|
|
1170
|
+
}
|
|
1171
|
+
if (rows.length === 0) {
|
|
1172
|
+
runtime.log("No models found.");
|
|
1173
|
+
return;
|
|
1174
|
+
}
|
|
1175
|
+
printModelTable(rows, runtime, opts);
|
|
1176
|
+
}
|
|
1177
|
+
//#endregion
|
|
1178
|
+
//#region src/commands/models/list.auth-overview.ts
|
|
1179
|
+
function formatMarkerOrSecret(value) {
|
|
1180
|
+
return isNonSecretApiKeyMarker(value, { includeEnvVarName: false }) ? `marker(${value.trim()})` : maskApiKey(value);
|
|
1181
|
+
}
|
|
1182
|
+
function formatProfileSecretLabel(params) {
|
|
1183
|
+
const value = typeof params.value === "string" ? params.value.trim() : "";
|
|
1184
|
+
if (value) {
|
|
1185
|
+
const display = formatMarkerOrSecret(value);
|
|
1186
|
+
return params.kind === "token" ? `token:${display}` : display;
|
|
1187
|
+
}
|
|
1188
|
+
if (params.ref) {
|
|
1189
|
+
const refLabel = `ref(${params.ref.source}:${params.ref.id})`;
|
|
1190
|
+
return params.kind === "token" ? `token:${refLabel}` : refLabel;
|
|
1191
|
+
}
|
|
1192
|
+
return params.kind === "token" ? "token:missing" : "missing";
|
|
1193
|
+
}
|
|
1194
|
+
function resolveProviderAuthOverview(params) {
|
|
1195
|
+
const { provider, cfg, store } = params;
|
|
1196
|
+
const now = Date.now();
|
|
1197
|
+
const profiles = listProfilesForProvider(store, provider);
|
|
1198
|
+
const withUnusableSuffix = (base, profileId) => {
|
|
1199
|
+
const unusableUntil = resolveProfileUnusableUntilForDisplay(store, profileId);
|
|
1200
|
+
if (!unusableUntil || now >= unusableUntil) return base;
|
|
1201
|
+
const stats = store.usageStats?.[profileId];
|
|
1202
|
+
return `${base} [${typeof stats?.disabledUntil === "number" && now < stats.disabledUntil ? `disabled${stats.disabledReason ? `:${stats.disabledReason}` : ""}` : "cooldown"} ${formatRemainingShort(unusableUntil - now)}]`;
|
|
1203
|
+
};
|
|
1204
|
+
const labels = profiles.map((profileId) => {
|
|
1205
|
+
const profile = store.profiles[profileId];
|
|
1206
|
+
if (!profile) return `${profileId}=missing`;
|
|
1207
|
+
if (profile.type === "api_key") return withUnusableSuffix(`${profileId}=${formatProfileSecretLabel({
|
|
1208
|
+
value: profile.key,
|
|
1209
|
+
ref: profile.keyRef,
|
|
1210
|
+
kind: "api-key"
|
|
1211
|
+
})}`, profileId);
|
|
1212
|
+
if (profile.type === "token") return withUnusableSuffix(`${profileId}=${formatProfileSecretLabel({
|
|
1213
|
+
value: profile.token,
|
|
1214
|
+
ref: profile.tokenRef,
|
|
1215
|
+
kind: "token"
|
|
1216
|
+
})}`, profileId);
|
|
1217
|
+
const display = resolveAuthProfileDisplayLabel({
|
|
1218
|
+
cfg,
|
|
1219
|
+
store,
|
|
1220
|
+
profileId
|
|
1221
|
+
});
|
|
1222
|
+
const suffix = display === profileId ? "" : display.startsWith(profileId) ? display.slice(profileId.length).trim() : `(${display})`;
|
|
1223
|
+
return withUnusableSuffix(`${profileId}=OAuth${suffix ? ` ${suffix}` : ""}`, profileId);
|
|
1224
|
+
});
|
|
1225
|
+
const oauthCount = profiles.filter((id) => store.profiles[id]?.type === "oauth").length;
|
|
1226
|
+
const tokenCount = profiles.filter((id) => store.profiles[id]?.type === "token").length;
|
|
1227
|
+
const apiKeyCount = profiles.filter((id) => store.profiles[id]?.type === "api_key").length;
|
|
1228
|
+
const envKey = resolveEnvApiKey(provider);
|
|
1229
|
+
const customKey = getCustomProviderApiKey(cfg, provider);
|
|
1230
|
+
const usableCustomKey = resolveUsableCustomProviderApiKey({
|
|
1231
|
+
cfg,
|
|
1232
|
+
provider
|
|
1233
|
+
});
|
|
1234
|
+
return {
|
|
1235
|
+
provider,
|
|
1236
|
+
effective: (() => {
|
|
1237
|
+
if (profiles.length > 0) return {
|
|
1238
|
+
kind: "profiles",
|
|
1239
|
+
detail: shortenHomePath(resolveAuthStorePathForDisplay())
|
|
1240
|
+
};
|
|
1241
|
+
if (envKey) return {
|
|
1242
|
+
kind: "env",
|
|
1243
|
+
detail: envKey.source.includes("OAUTH_TOKEN") || envKey.source.toLowerCase().includes("oauth") ? "OAuth (env)" : maskApiKey(envKey.apiKey)
|
|
1244
|
+
};
|
|
1245
|
+
if (usableCustomKey) return {
|
|
1246
|
+
kind: "models.json",
|
|
1247
|
+
detail: formatMarkerOrSecret(usableCustomKey.apiKey)
|
|
1248
|
+
};
|
|
1249
|
+
return {
|
|
1250
|
+
kind: "missing",
|
|
1251
|
+
detail: "missing"
|
|
1252
|
+
};
|
|
1253
|
+
})(),
|
|
1254
|
+
profiles: {
|
|
1255
|
+
count: profiles.length,
|
|
1256
|
+
oauth: oauthCount,
|
|
1257
|
+
token: tokenCount,
|
|
1258
|
+
apiKey: apiKeyCount,
|
|
1259
|
+
labels
|
|
1260
|
+
},
|
|
1261
|
+
...envKey ? { env: {
|
|
1262
|
+
value: envKey.source.includes("OAUTH_TOKEN") || envKey.source.toLowerCase().includes("oauth") ? "OAuth (env)" : maskApiKey(envKey.apiKey),
|
|
1263
|
+
source: envKey.source
|
|
1264
|
+
} } : {},
|
|
1265
|
+
...customKey ? { modelsJson: {
|
|
1266
|
+
value: formatMarkerOrSecret(customKey),
|
|
1267
|
+
source: `models.json: ${shortenHomePath(params.modelsPath)}`
|
|
1268
|
+
} } : {}
|
|
1269
|
+
};
|
|
1270
|
+
}
|
|
1271
|
+
//#endregion
|
|
1272
|
+
//#region src/commands/models/list.probe.ts
|
|
1273
|
+
const PROBE_PROMPT = "Reply with OK. Do not use tools.";
|
|
1274
|
+
function mapFailoverReasonToProbeStatus(reason) {
|
|
1275
|
+
if (!reason) return "unknown";
|
|
1276
|
+
if (reason === "auth" || reason === "auth_permanent") return "auth";
|
|
1277
|
+
if (reason === "rate_limit" || reason === "overloaded") return "rate_limit";
|
|
1278
|
+
if (reason === "billing") return "billing";
|
|
1279
|
+
if (reason === "timeout") return "timeout";
|
|
1280
|
+
if (reason === "format") return "format";
|
|
1281
|
+
return "unknown";
|
|
1282
|
+
}
|
|
1283
|
+
function buildCandidateMap(modelCandidates) {
|
|
1284
|
+
const map = /* @__PURE__ */ new Map();
|
|
1285
|
+
for (const raw of modelCandidates) {
|
|
1286
|
+
const parsed = parseModelRef(String(raw ?? ""), DEFAULT_PROVIDER);
|
|
1287
|
+
if (!parsed) continue;
|
|
1288
|
+
const list = map.get(parsed.provider) ?? [];
|
|
1289
|
+
if (!list.includes(parsed.model)) list.push(parsed.model);
|
|
1290
|
+
map.set(parsed.provider, list);
|
|
1291
|
+
}
|
|
1292
|
+
return map;
|
|
1293
|
+
}
|
|
1294
|
+
function selectProbeModel(params) {
|
|
1295
|
+
const { provider, candidates, catalog } = params;
|
|
1296
|
+
const direct = candidates.get(provider);
|
|
1297
|
+
if (direct && direct.length > 0) return {
|
|
1298
|
+
provider,
|
|
1299
|
+
model: direct[0]
|
|
1300
|
+
};
|
|
1301
|
+
const fromCatalog = catalog.find((entry) => normalizeProviderId(entry.provider) === provider);
|
|
1302
|
+
if (fromCatalog) return {
|
|
1303
|
+
provider,
|
|
1304
|
+
model: fromCatalog.id
|
|
1305
|
+
};
|
|
1306
|
+
return null;
|
|
1307
|
+
}
|
|
1308
|
+
function mapEligibilityReasonToProbeReasonCode(reasonCode) {
|
|
1309
|
+
if (reasonCode === "missing_credential") return "missing_credential";
|
|
1310
|
+
if (reasonCode === "expired") return "expired";
|
|
1311
|
+
if (reasonCode === "invalid_expires") return "invalid_expires";
|
|
1312
|
+
if (reasonCode === "unresolved_ref") return "unresolved_ref";
|
|
1313
|
+
return "ineligible_profile";
|
|
1314
|
+
}
|
|
1315
|
+
function formatMissingCredentialProbeError(reasonCode) {
|
|
1316
|
+
const legacyLine = "Auth profile credentials are missing or expired.";
|
|
1317
|
+
if (reasonCode === "expired") return `${legacyLine}\n↳ Auth reason [expired]: token credentials are expired.`;
|
|
1318
|
+
if (reasonCode === "invalid_expires") return `${legacyLine}\n↳ Auth reason [invalid_expires]: token expires must be a positive Unix ms timestamp.`;
|
|
1319
|
+
if (reasonCode === "missing_credential") return `${legacyLine}\n↳ Auth reason [missing_credential]: no inline credential or SecretRef is configured.`;
|
|
1320
|
+
if (reasonCode === "unresolved_ref") return `${legacyLine}\n↳ Auth reason [unresolved_ref]: configured SecretRef could not be resolved.`;
|
|
1321
|
+
return `${legacyLine}\n↳ Auth reason [ineligible_profile]: profile is incompatible with provider config.`;
|
|
1322
|
+
}
|
|
1323
|
+
function resolveProbeSecretRef(profile, cfg) {
|
|
1324
|
+
const defaults = cfg.secrets?.defaults;
|
|
1325
|
+
if (profile.type === "api_key") {
|
|
1326
|
+
if (normalizeSecretInputString(profile.key) !== void 0) return null;
|
|
1327
|
+
return coerceSecretRef(profile.keyRef, defaults);
|
|
1328
|
+
}
|
|
1329
|
+
if (profile.type === "token") {
|
|
1330
|
+
if (normalizeSecretInputString(profile.token) !== void 0) return null;
|
|
1331
|
+
return coerceSecretRef(profile.tokenRef, defaults);
|
|
1332
|
+
}
|
|
1333
|
+
return null;
|
|
1334
|
+
}
|
|
1335
|
+
function formatUnresolvedRefProbeError(refLabel) {
|
|
1336
|
+
return `Auth profile credentials are missing or expired.\n↳ Auth reason [unresolved_ref]: could not resolve SecretRef "${refLabel}".`;
|
|
1337
|
+
}
|
|
1338
|
+
async function maybeResolveUnresolvedRefIssue(params) {
|
|
1339
|
+
if (!params.profile) return null;
|
|
1340
|
+
const ref = resolveProbeSecretRef(params.profile, params.cfg);
|
|
1341
|
+
if (!ref) return null;
|
|
1342
|
+
try {
|
|
1343
|
+
await resolveSecretRefString(ref, {
|
|
1344
|
+
config: params.cfg,
|
|
1345
|
+
env: process.env,
|
|
1346
|
+
cache: params.cache
|
|
1347
|
+
});
|
|
1348
|
+
return null;
|
|
1349
|
+
} catch {
|
|
1350
|
+
return {
|
|
1351
|
+
reasonCode: "unresolved_ref",
|
|
1352
|
+
error: formatUnresolvedRefProbeError(`${ref.source}:${ref.provider}:${ref.id}`)
|
|
1353
|
+
};
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
async function buildProbeTargets(params) {
|
|
1357
|
+
const { cfg, providers, modelCandidates, options } = params;
|
|
1358
|
+
const store = ensureAuthProfileStore();
|
|
1359
|
+
const providerFilter = options.provider?.trim();
|
|
1360
|
+
const providerFilterKey = providerFilter ? normalizeProviderId(providerFilter) : null;
|
|
1361
|
+
const profileFilter = new Set((options.profileIds ?? []).map((id) => id.trim()).filter(Boolean));
|
|
1362
|
+
const refResolveCache = {};
|
|
1363
|
+
const catalog = await loadModelCatalog({ config: cfg });
|
|
1364
|
+
const candidates = buildCandidateMap(modelCandidates);
|
|
1365
|
+
const targets = [];
|
|
1366
|
+
const results = [];
|
|
1367
|
+
for (const provider of providers) {
|
|
1368
|
+
const providerKey = normalizeProviderId(provider);
|
|
1369
|
+
if (providerFilterKey && providerKey !== providerFilterKey) continue;
|
|
1370
|
+
const model = selectProbeModel({
|
|
1371
|
+
provider: providerKey,
|
|
1372
|
+
candidates,
|
|
1373
|
+
catalog
|
|
1374
|
+
});
|
|
1375
|
+
const profileIds = listProfilesForProvider(store, providerKey);
|
|
1376
|
+
const explicitOrder = findNormalizedProviderValue(store.order, providerKey) ?? findNormalizedProviderValue(cfg?.auth?.order, providerKey);
|
|
1377
|
+
const allowedProfiles = explicitOrder && explicitOrder.length > 0 ? new Set(resolveAuthProfileOrder({
|
|
1378
|
+
cfg,
|
|
1379
|
+
store,
|
|
1380
|
+
provider: providerKey
|
|
1381
|
+
})) : null;
|
|
1382
|
+
const filteredProfiles = profileFilter.size ? profileIds.filter((id) => profileFilter.has(id)) : profileIds;
|
|
1383
|
+
if (filteredProfiles.length > 0) {
|
|
1384
|
+
for (const profileId of filteredProfiles) {
|
|
1385
|
+
const profile = store.profiles[profileId];
|
|
1386
|
+
const mode = profile?.type;
|
|
1387
|
+
const label = resolveAuthProfileDisplayLabel({
|
|
1388
|
+
cfg,
|
|
1389
|
+
store,
|
|
1390
|
+
profileId
|
|
1391
|
+
});
|
|
1392
|
+
if (explicitOrder && !explicitOrder.includes(profileId)) {
|
|
1393
|
+
results.push({
|
|
1394
|
+
provider: providerKey,
|
|
1395
|
+
profileId,
|
|
1396
|
+
model: model ? `${model.provider}/${model.model}` : void 0,
|
|
1397
|
+
label,
|
|
1398
|
+
source: "profile",
|
|
1399
|
+
mode,
|
|
1400
|
+
status: "unknown",
|
|
1401
|
+
reasonCode: "excluded_by_auth_order",
|
|
1402
|
+
error: "Excluded by auth.order for this provider."
|
|
1403
|
+
});
|
|
1404
|
+
continue;
|
|
1405
|
+
}
|
|
1406
|
+
if (allowedProfiles && !allowedProfiles.has(profileId)) {
|
|
1407
|
+
const reasonCode = mapEligibilityReasonToProbeReasonCode(resolveAuthProfileEligibility({
|
|
1408
|
+
cfg,
|
|
1409
|
+
store,
|
|
1410
|
+
provider: providerKey,
|
|
1411
|
+
profileId
|
|
1412
|
+
}).reasonCode);
|
|
1413
|
+
results.push({
|
|
1414
|
+
provider: providerKey,
|
|
1415
|
+
model: model ? `${model.provider}/${model.model}` : void 0,
|
|
1416
|
+
profileId,
|
|
1417
|
+
label,
|
|
1418
|
+
source: "profile",
|
|
1419
|
+
mode,
|
|
1420
|
+
status: "unknown",
|
|
1421
|
+
reasonCode,
|
|
1422
|
+
error: formatMissingCredentialProbeError(reasonCode)
|
|
1423
|
+
});
|
|
1424
|
+
continue;
|
|
1425
|
+
}
|
|
1426
|
+
const unresolvedRefIssue = await maybeResolveUnresolvedRefIssue({
|
|
1427
|
+
cfg,
|
|
1428
|
+
profile,
|
|
1429
|
+
cache: refResolveCache
|
|
1430
|
+
});
|
|
1431
|
+
if (unresolvedRefIssue) {
|
|
1432
|
+
results.push({
|
|
1433
|
+
provider: providerKey,
|
|
1434
|
+
model: model ? `${model.provider}/${model.model}` : void 0,
|
|
1435
|
+
profileId,
|
|
1436
|
+
label,
|
|
1437
|
+
source: "profile",
|
|
1438
|
+
mode,
|
|
1439
|
+
status: "unknown",
|
|
1440
|
+
reasonCode: unresolvedRefIssue.reasonCode,
|
|
1441
|
+
error: unresolvedRefIssue.error
|
|
1442
|
+
});
|
|
1443
|
+
continue;
|
|
1444
|
+
}
|
|
1445
|
+
if (!model) {
|
|
1446
|
+
results.push({
|
|
1447
|
+
provider: providerKey,
|
|
1448
|
+
model: void 0,
|
|
1449
|
+
profileId,
|
|
1450
|
+
label,
|
|
1451
|
+
source: "profile",
|
|
1452
|
+
mode,
|
|
1453
|
+
status: "no_model",
|
|
1454
|
+
reasonCode: "no_model",
|
|
1455
|
+
error: "No model available for probe"
|
|
1456
|
+
});
|
|
1457
|
+
continue;
|
|
1458
|
+
}
|
|
1459
|
+
targets.push({
|
|
1460
|
+
provider: providerKey,
|
|
1461
|
+
model,
|
|
1462
|
+
profileId,
|
|
1463
|
+
label,
|
|
1464
|
+
source: "profile",
|
|
1465
|
+
mode
|
|
1466
|
+
});
|
|
1467
|
+
}
|
|
1468
|
+
continue;
|
|
1469
|
+
}
|
|
1470
|
+
if (profileFilter.size > 0) continue;
|
|
1471
|
+
const envKey = resolveEnvApiKey(providerKey);
|
|
1472
|
+
const hasUsableModelsJsonKey = hasUsableCustomProviderApiKey(cfg, providerKey);
|
|
1473
|
+
if (!envKey && !hasUsableModelsJsonKey) continue;
|
|
1474
|
+
const label = envKey ? "env" : "models.json";
|
|
1475
|
+
const source = envKey ? "env" : "models.json";
|
|
1476
|
+
const mode = envKey?.source.includes("OAUTH_TOKEN") ? "oauth" : "api_key";
|
|
1477
|
+
if (!model) {
|
|
1478
|
+
results.push({
|
|
1479
|
+
provider: providerKey,
|
|
1480
|
+
model: void 0,
|
|
1481
|
+
label,
|
|
1482
|
+
source,
|
|
1483
|
+
mode,
|
|
1484
|
+
status: "no_model",
|
|
1485
|
+
reasonCode: "no_model",
|
|
1486
|
+
error: "No model available for probe"
|
|
1487
|
+
});
|
|
1488
|
+
continue;
|
|
1489
|
+
}
|
|
1490
|
+
targets.push({
|
|
1491
|
+
provider: providerKey,
|
|
1492
|
+
model,
|
|
1493
|
+
label,
|
|
1494
|
+
source,
|
|
1495
|
+
mode
|
|
1496
|
+
});
|
|
1497
|
+
}
|
|
1498
|
+
return {
|
|
1499
|
+
targets,
|
|
1500
|
+
results
|
|
1501
|
+
};
|
|
1502
|
+
}
|
|
1503
|
+
async function probeTarget(params) {
|
|
1504
|
+
const { cfg, agentId, agentDir, workspaceDir, sessionDir, target, timeoutMs, maxTokens } = params;
|
|
1505
|
+
if (!target.model) return {
|
|
1506
|
+
provider: target.provider,
|
|
1507
|
+
model: void 0,
|
|
1508
|
+
profileId: target.profileId,
|
|
1509
|
+
label: target.label,
|
|
1510
|
+
source: target.source,
|
|
1511
|
+
mode: target.mode,
|
|
1512
|
+
status: "no_model",
|
|
1513
|
+
reasonCode: "no_model",
|
|
1514
|
+
error: "No model available for probe"
|
|
1515
|
+
};
|
|
1516
|
+
const model = target.model;
|
|
1517
|
+
const sessionId = `probe-${target.provider}-${crypto.randomUUID()}`;
|
|
1518
|
+
const sessionFile = resolveSessionTranscriptPath(sessionId, agentId);
|
|
1519
|
+
await fs.mkdir(sessionDir, { recursive: true });
|
|
1520
|
+
const start = Date.now();
|
|
1521
|
+
const buildResult = (status, error) => ({
|
|
1522
|
+
provider: target.provider,
|
|
1523
|
+
model: `${model.provider}/${model.model}`,
|
|
1524
|
+
profileId: target.profileId,
|
|
1525
|
+
label: target.label,
|
|
1526
|
+
source: target.source,
|
|
1527
|
+
mode: target.mode,
|
|
1528
|
+
status,
|
|
1529
|
+
...error ? { error } : {},
|
|
1530
|
+
latencyMs: Date.now() - start
|
|
1531
|
+
});
|
|
1532
|
+
try {
|
|
1533
|
+
await runEmbeddedVoraAgent({
|
|
1534
|
+
sessionId,
|
|
1535
|
+
sessionFile,
|
|
1536
|
+
agentId,
|
|
1537
|
+
workspaceDir,
|
|
1538
|
+
agentDir,
|
|
1539
|
+
config: cfg,
|
|
1540
|
+
prompt: PROBE_PROMPT,
|
|
1541
|
+
provider: target.model.provider,
|
|
1542
|
+
model: target.model.model,
|
|
1543
|
+
authProfileId: target.profileId,
|
|
1544
|
+
authProfileIdSource: target.profileId ? "user" : void 0,
|
|
1545
|
+
timeoutMs,
|
|
1546
|
+
runId: `probe-${crypto.randomUUID()}`,
|
|
1547
|
+
lane: `auth-probe:${target.provider}:${target.profileId ?? target.source}`,
|
|
1548
|
+
thinkLevel: "off",
|
|
1549
|
+
reasoningLevel: "off",
|
|
1550
|
+
verboseLevel: "off",
|
|
1551
|
+
streamParams: { maxTokens }
|
|
1552
|
+
});
|
|
1553
|
+
return buildResult("ok");
|
|
1554
|
+
} catch (err) {
|
|
1555
|
+
const described = describeFailoverError(err);
|
|
1556
|
+
return buildResult(mapFailoverReasonToProbeStatus(described.reason), redactSecrets(described.message));
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
async function runTargetsWithConcurrency(params) {
|
|
1560
|
+
const { cfg, targets, timeoutMs, maxTokens, onProgress } = params;
|
|
1561
|
+
const concurrency = Math.max(1, Math.min(targets.length || 1, params.concurrency));
|
|
1562
|
+
const agentId = resolveDefaultAgentId(cfg);
|
|
1563
|
+
const agentDir = resolveVoraAgentDir();
|
|
1564
|
+
const workspaceDir = resolveAgentWorkspaceDir(cfg, agentId) ?? resolveDefaultAgentWorkspaceDir();
|
|
1565
|
+
const sessionDir = resolveSessionTranscriptsDirForAgent(agentId);
|
|
1566
|
+
await fs.mkdir(workspaceDir, { recursive: true });
|
|
1567
|
+
let completed = 0;
|
|
1568
|
+
const results = Array.from({ length: targets.length });
|
|
1569
|
+
let cursor = 0;
|
|
1570
|
+
const worker = async () => {
|
|
1571
|
+
while (true) {
|
|
1572
|
+
const index = cursor;
|
|
1573
|
+
cursor += 1;
|
|
1574
|
+
if (index >= targets.length) return;
|
|
1575
|
+
const target = targets[index];
|
|
1576
|
+
onProgress?.({
|
|
1577
|
+
completed,
|
|
1578
|
+
total: targets.length,
|
|
1579
|
+
label: `Probing ${target.provider}${target.profileId ? ` (${target.label})` : ""}`
|
|
1580
|
+
});
|
|
1581
|
+
results[index] = await probeTarget({
|
|
1582
|
+
cfg,
|
|
1583
|
+
agentId,
|
|
1584
|
+
agentDir,
|
|
1585
|
+
workspaceDir,
|
|
1586
|
+
sessionDir,
|
|
1587
|
+
target,
|
|
1588
|
+
timeoutMs,
|
|
1589
|
+
maxTokens
|
|
1590
|
+
});
|
|
1591
|
+
completed += 1;
|
|
1592
|
+
onProgress?.({
|
|
1593
|
+
completed,
|
|
1594
|
+
total: targets.length
|
|
1595
|
+
});
|
|
1596
|
+
}
|
|
1597
|
+
};
|
|
1598
|
+
await Promise.all(Array.from({ length: concurrency }, () => worker()));
|
|
1599
|
+
return results.filter((entry) => Boolean(entry));
|
|
1600
|
+
}
|
|
1601
|
+
async function runAuthProbes(params) {
|
|
1602
|
+
const startedAt = Date.now();
|
|
1603
|
+
const plan = await buildProbeTargets({
|
|
1604
|
+
cfg: params.cfg,
|
|
1605
|
+
providers: params.providers,
|
|
1606
|
+
modelCandidates: params.modelCandidates,
|
|
1607
|
+
options: params.options
|
|
1608
|
+
});
|
|
1609
|
+
const totalTargets = plan.targets.length;
|
|
1610
|
+
params.onProgress?.({
|
|
1611
|
+
completed: 0,
|
|
1612
|
+
total: totalTargets
|
|
1613
|
+
});
|
|
1614
|
+
const results = totalTargets ? await runTargetsWithConcurrency({
|
|
1615
|
+
cfg: params.cfg,
|
|
1616
|
+
targets: plan.targets,
|
|
1617
|
+
timeoutMs: params.options.timeoutMs,
|
|
1618
|
+
maxTokens: params.options.maxTokens,
|
|
1619
|
+
concurrency: params.options.concurrency,
|
|
1620
|
+
onProgress: params.onProgress
|
|
1621
|
+
}) : [];
|
|
1622
|
+
const finishedAt = Date.now();
|
|
1623
|
+
return {
|
|
1624
|
+
startedAt,
|
|
1625
|
+
finishedAt,
|
|
1626
|
+
durationMs: finishedAt - startedAt,
|
|
1627
|
+
totalTargets,
|
|
1628
|
+
options: params.options,
|
|
1629
|
+
results: [...plan.results, ...results]
|
|
1630
|
+
};
|
|
1631
|
+
}
|
|
1632
|
+
function formatProbeLatency(latencyMs) {
|
|
1633
|
+
if (!latencyMs && latencyMs !== 0) return "-";
|
|
1634
|
+
return formatMs(latencyMs);
|
|
1635
|
+
}
|
|
1636
|
+
function sortProbeResults(results) {
|
|
1637
|
+
return results.slice().toSorted((a, b) => {
|
|
1638
|
+
const provider = a.provider.localeCompare(b.provider);
|
|
1639
|
+
if (provider !== 0) return provider;
|
|
1640
|
+
const aLabel = a.label || a.profileId || "";
|
|
1641
|
+
const bLabel = b.label || b.profileId || "";
|
|
1642
|
+
return aLabel.localeCompare(bLabel);
|
|
1643
|
+
});
|
|
1644
|
+
}
|
|
1645
|
+
function describeProbeSummary(summary) {
|
|
1646
|
+
if (summary.totalTargets === 0) return "No probe targets.";
|
|
1647
|
+
return `Probed ${summary.totalTargets} target${summary.totalTargets === 1 ? "" : "s"} in ${formatMs(summary.durationMs)}`;
|
|
1648
|
+
}
|
|
1649
|
+
//#endregion
|
|
1650
|
+
//#region src/commands/models/list.status-command.ts
|
|
1651
|
+
async function modelsStatusCommand(opts, runtime) {
|
|
1652
|
+
ensureFlagCompatibility(opts);
|
|
1653
|
+
if (opts.plain && opts.probe) throw new Error("--probe cannot be used with --plain output.");
|
|
1654
|
+
const configPath = createConfigIO().configPath;
|
|
1655
|
+
const cfg = await loadModelsConfig({
|
|
1656
|
+
commandName: "models status",
|
|
1657
|
+
runtime
|
|
1658
|
+
});
|
|
1659
|
+
const agentId = resolveKnownAgentId({
|
|
1660
|
+
cfg,
|
|
1661
|
+
rawAgentId: opts.agent
|
|
1662
|
+
});
|
|
1663
|
+
const agentDir = agentId ? resolveAgentDir(cfg, agentId) : resolveVoraAgentDir();
|
|
1664
|
+
const agentModelPrimary = agentId ? resolveAgentExplicitModelPrimary(cfg, agentId) : void 0;
|
|
1665
|
+
const agentFallbacksOverride = agentId ? resolveAgentModelFallbacksOverride(cfg, agentId) : void 0;
|
|
1666
|
+
const resolved = agentId ? resolveDefaultModelForAgent({
|
|
1667
|
+
cfg,
|
|
1668
|
+
agentId
|
|
1669
|
+
}) : resolveConfiguredModelRef({
|
|
1670
|
+
cfg,
|
|
1671
|
+
defaultProvider: DEFAULT_PROVIDER,
|
|
1672
|
+
defaultModel: DEFAULT_MODEL
|
|
1673
|
+
});
|
|
1674
|
+
const rawDefaultsModel = resolveAgentModelPrimaryValue(cfg.agents?.defaults?.model) ?? "";
|
|
1675
|
+
const rawModel = agentModelPrimary ?? rawDefaultsModel;
|
|
1676
|
+
const resolvedLabel = `${resolved.provider}/${resolved.model}`;
|
|
1677
|
+
const defaultLabel = rawModel || resolvedLabel;
|
|
1678
|
+
const defaultsFallbacks = resolveAgentModelFallbackValues(cfg.agents?.defaults?.model);
|
|
1679
|
+
const fallbacks = agentFallbacksOverride ?? defaultsFallbacks;
|
|
1680
|
+
const imageModel = resolveAgentModelPrimaryValue(cfg.agents?.defaults?.imageModel) ?? "";
|
|
1681
|
+
const imageFallbacks = resolveAgentModelFallbackValues(cfg.agents?.defaults?.imageModel);
|
|
1682
|
+
const aliases = Object.entries(cfg.agents?.defaults?.models ?? {}).reduce((acc, [key, entry]) => {
|
|
1683
|
+
const alias = typeof entry?.alias === "string" ? entry.alias.trim() : void 0;
|
|
1684
|
+
if (alias) acc[alias] = key;
|
|
1685
|
+
return acc;
|
|
1686
|
+
}, {});
|
|
1687
|
+
const allowed = Object.keys(cfg.agents?.defaults?.models ?? {});
|
|
1688
|
+
const store = ensureAuthProfileStore(agentDir);
|
|
1689
|
+
const modelsPath = path.join(agentDir, "models.json");
|
|
1690
|
+
const providersFromStore = new Set(Object.values(store.profiles).map((profile) => normalizeProviderId(profile.provider)).filter((p) => Boolean(p)));
|
|
1691
|
+
const providersFromConfig = new Set(Object.keys(cfg.models?.providers ?? {}).map((p) => typeof p === "string" ? normalizeProviderId(p) : "").filter(Boolean));
|
|
1692
|
+
const providersFromModels = /* @__PURE__ */ new Set();
|
|
1693
|
+
const providersInUse = /* @__PURE__ */ new Set();
|
|
1694
|
+
for (const raw of [
|
|
1695
|
+
defaultLabel,
|
|
1696
|
+
...fallbacks,
|
|
1697
|
+
imageModel,
|
|
1698
|
+
...imageFallbacks,
|
|
1699
|
+
...allowed
|
|
1700
|
+
]) {
|
|
1701
|
+
const parsed = parseModelRef(String(raw ?? ""), DEFAULT_PROVIDER);
|
|
1702
|
+
if (parsed?.provider) providersFromModels.add(normalizeProviderId(parsed.provider));
|
|
1703
|
+
}
|
|
1704
|
+
for (const raw of [
|
|
1705
|
+
defaultLabel,
|
|
1706
|
+
...fallbacks,
|
|
1707
|
+
imageModel,
|
|
1708
|
+
...imageFallbacks
|
|
1709
|
+
]) {
|
|
1710
|
+
const parsed = parseModelRef(String(raw ?? ""), DEFAULT_PROVIDER);
|
|
1711
|
+
if (parsed?.provider) providersInUse.add(normalizeProviderId(parsed.provider));
|
|
1712
|
+
}
|
|
1713
|
+
const providersFromEnv = /* @__PURE__ */ new Set();
|
|
1714
|
+
for (const provider of [
|
|
1715
|
+
"anthropic",
|
|
1716
|
+
"github-copilot",
|
|
1717
|
+
"google-vertex",
|
|
1718
|
+
"openai",
|
|
1719
|
+
"google",
|
|
1720
|
+
"groq",
|
|
1721
|
+
"cerebras",
|
|
1722
|
+
"xai",
|
|
1723
|
+
"openrouter",
|
|
1724
|
+
"zai",
|
|
1725
|
+
"mistral",
|
|
1726
|
+
"synthetic"
|
|
1727
|
+
]) if (resolveEnvApiKey(provider)) providersFromEnv.add(provider);
|
|
1728
|
+
const providers = Array.from(new Set([
|
|
1729
|
+
...providersFromStore,
|
|
1730
|
+
...providersFromConfig,
|
|
1731
|
+
...providersFromModels,
|
|
1732
|
+
...providersFromEnv
|
|
1733
|
+
])).map((p) => typeof p === "string" ? p.trim() : "").filter(Boolean).toSorted((a, b) => a.localeCompare(b));
|
|
1734
|
+
const applied = getShellEnvAppliedKeys();
|
|
1735
|
+
const shellFallbackEnabled = shouldEnableShellEnvFallback(process.env) || cfg.env?.shellEnv?.enabled === true;
|
|
1736
|
+
const providerAuth = providers.map((provider) => resolveProviderAuthOverview({
|
|
1737
|
+
provider,
|
|
1738
|
+
cfg,
|
|
1739
|
+
store,
|
|
1740
|
+
modelsPath
|
|
1741
|
+
})).filter((entry) => {
|
|
1742
|
+
return entry.profiles.count > 0 || Boolean(entry.env) || Boolean(entry.modelsJson);
|
|
1743
|
+
});
|
|
1744
|
+
const providerAuthMap = new Map(providerAuth.map((entry) => [entry.provider, entry]));
|
|
1745
|
+
const missingProvidersInUse = Array.from(providersInUse).filter((provider) => !providerAuthMap.has(provider)).filter((provider) => !isCliProvider(provider, cfg)).toSorted((a, b) => a.localeCompare(b));
|
|
1746
|
+
const probeProfileIds = (() => {
|
|
1747
|
+
if (!opts.probeProfile) return [];
|
|
1748
|
+
return (Array.isArray(opts.probeProfile) ? opts.probeProfile : [opts.probeProfile]).flatMap((value) => String(value ?? "").split(",")).map((value) => value.trim()).filter(Boolean);
|
|
1749
|
+
})();
|
|
1750
|
+
const probeTimeoutMs = opts.probeTimeout ? Number(opts.probeTimeout) : 8e3;
|
|
1751
|
+
if (!Number.isFinite(probeTimeoutMs) || probeTimeoutMs <= 0) throw new Error("--probe-timeout must be a positive number (ms).");
|
|
1752
|
+
const probeConcurrency = opts.probeConcurrency ? Number(opts.probeConcurrency) : 2;
|
|
1753
|
+
if (!Number.isFinite(probeConcurrency) || probeConcurrency <= 0) throw new Error("--probe-concurrency must be > 0.");
|
|
1754
|
+
const probeMaxTokens = opts.probeMaxTokens ? Number(opts.probeMaxTokens) : 8;
|
|
1755
|
+
if (!Number.isFinite(probeMaxTokens) || probeMaxTokens <= 0) throw new Error("--probe-max-tokens must be > 0.");
|
|
1756
|
+
const aliasIndex = buildModelAliasIndex({
|
|
1757
|
+
cfg,
|
|
1758
|
+
defaultProvider: DEFAULT_PROVIDER
|
|
1759
|
+
});
|
|
1760
|
+
const modelCandidates = [
|
|
1761
|
+
rawModel || resolvedLabel,
|
|
1762
|
+
...fallbacks,
|
|
1763
|
+
imageModel,
|
|
1764
|
+
...imageFallbacks,
|
|
1765
|
+
...allowed
|
|
1766
|
+
].filter(Boolean).map((raw) => resolveModelRefFromString({
|
|
1767
|
+
raw: String(raw ?? ""),
|
|
1768
|
+
defaultProvider: DEFAULT_PROVIDER,
|
|
1769
|
+
aliasIndex
|
|
1770
|
+
})?.ref).filter((ref) => Boolean(ref)).map((ref) => `${ref.provider}/${ref.model}`);
|
|
1771
|
+
let probeSummary;
|
|
1772
|
+
if (opts.probe) probeSummary = await withProgressTotals({
|
|
1773
|
+
label: "Probing auth profiles…",
|
|
1774
|
+
total: 1
|
|
1775
|
+
}, async (update) => {
|
|
1776
|
+
return await runAuthProbes({
|
|
1777
|
+
cfg,
|
|
1778
|
+
providers,
|
|
1779
|
+
modelCandidates,
|
|
1780
|
+
options: {
|
|
1781
|
+
provider: opts.probeProvider,
|
|
1782
|
+
profileIds: probeProfileIds,
|
|
1783
|
+
timeoutMs: probeTimeoutMs,
|
|
1784
|
+
concurrency: probeConcurrency,
|
|
1785
|
+
maxTokens: probeMaxTokens
|
|
1786
|
+
},
|
|
1787
|
+
onProgress: update
|
|
1788
|
+
});
|
|
1789
|
+
});
|
|
1790
|
+
const providersWithOauth = providerAuth.filter((entry) => entry.profiles.oauth > 0 || entry.profiles.token > 0 || entry.env?.value === "OAuth (env)").map((entry) => {
|
|
1791
|
+
const count = entry.profiles.oauth + entry.profiles.token + (entry.env?.value === "OAuth (env)" ? 1 : 0);
|
|
1792
|
+
return `${entry.provider} (${count})`;
|
|
1793
|
+
});
|
|
1794
|
+
const authHealth = buildAuthHealthSummary({
|
|
1795
|
+
store,
|
|
1796
|
+
cfg,
|
|
1797
|
+
warnAfterMs: DEFAULT_OAUTH_WARN_MS,
|
|
1798
|
+
providers
|
|
1799
|
+
});
|
|
1800
|
+
const oauthProfiles = authHealth.profiles.filter((profile) => profile.type === "oauth" || profile.type === "token");
|
|
1801
|
+
const unusableProfiles = (() => {
|
|
1802
|
+
const now = Date.now();
|
|
1803
|
+
const out = [];
|
|
1804
|
+
for (const profileId of Object.keys(store.usageStats ?? {})) {
|
|
1805
|
+
const unusableUntil = resolveProfileUnusableUntilForDisplay(store, profileId);
|
|
1806
|
+
if (!unusableUntil || now >= unusableUntil) continue;
|
|
1807
|
+
const stats = store.usageStats?.[profileId];
|
|
1808
|
+
const kind = typeof stats?.disabledUntil === "number" && now < stats.disabledUntil ? "disabled" : "cooldown";
|
|
1809
|
+
out.push({
|
|
1810
|
+
profileId,
|
|
1811
|
+
provider: store.profiles[profileId]?.provider,
|
|
1812
|
+
kind,
|
|
1813
|
+
reason: stats?.disabledReason,
|
|
1814
|
+
until: unusableUntil,
|
|
1815
|
+
remainingMs: unusableUntil - now
|
|
1816
|
+
});
|
|
1817
|
+
}
|
|
1818
|
+
return out.toSorted((a, b) => a.remainingMs - b.remainingMs);
|
|
1819
|
+
})();
|
|
1820
|
+
const checkStatus = (() => {
|
|
1821
|
+
const hasExpiredOrMissing = oauthProfiles.some((profile) => ["expired", "missing"].includes(profile.status)) || missingProvidersInUse.length > 0;
|
|
1822
|
+
const hasExpiring = oauthProfiles.some((profile) => profile.status === "expiring");
|
|
1823
|
+
if (hasExpiredOrMissing) return 1;
|
|
1824
|
+
if (hasExpiring) return 2;
|
|
1825
|
+
return 0;
|
|
1826
|
+
})();
|
|
1827
|
+
if (opts.json) {
|
|
1828
|
+
writeRuntimeJson(runtime, {
|
|
1829
|
+
configPath,
|
|
1830
|
+
...agentId ? { agentId } : {},
|
|
1831
|
+
agentDir,
|
|
1832
|
+
defaultModel: defaultLabel,
|
|
1833
|
+
resolvedDefault: resolvedLabel,
|
|
1834
|
+
fallbacks,
|
|
1835
|
+
imageModel: imageModel || null,
|
|
1836
|
+
imageFallbacks,
|
|
1837
|
+
...agentId ? { modelConfig: {
|
|
1838
|
+
defaultSource: agentModelPrimary ? "agent" : "defaults",
|
|
1839
|
+
fallbacksSource: agentFallbacksOverride !== void 0 ? "agent" : "defaults"
|
|
1840
|
+
} } : {},
|
|
1841
|
+
aliases,
|
|
1842
|
+
allowed,
|
|
1843
|
+
auth: {
|
|
1844
|
+
storePath: resolveAuthStorePathForDisplay(agentDir),
|
|
1845
|
+
shellEnvFallback: {
|
|
1846
|
+
enabled: shellFallbackEnabled,
|
|
1847
|
+
appliedKeys: applied
|
|
1848
|
+
},
|
|
1849
|
+
providersWithOAuth: providersWithOauth,
|
|
1850
|
+
missingProvidersInUse,
|
|
1851
|
+
providers: providerAuth,
|
|
1852
|
+
unusableProfiles,
|
|
1853
|
+
oauth: {
|
|
1854
|
+
warnAfterMs: authHealth.warnAfterMs,
|
|
1855
|
+
profiles: authHealth.profiles,
|
|
1856
|
+
providers: authHealth.providers
|
|
1857
|
+
},
|
|
1858
|
+
probes: probeSummary
|
|
1859
|
+
}
|
|
1860
|
+
});
|
|
1861
|
+
if (opts.check) runtime.exit(checkStatus);
|
|
1862
|
+
return;
|
|
1863
|
+
}
|
|
1864
|
+
if (opts.plain) {
|
|
1865
|
+
runtime.log(resolvedLabel);
|
|
1866
|
+
if (opts.check) runtime.exit(checkStatus);
|
|
1867
|
+
return;
|
|
1868
|
+
}
|
|
1869
|
+
const rich = isRich(opts);
|
|
1870
|
+
const label = (value) => colorize(rich, theme.accent, value.padEnd(14));
|
|
1871
|
+
const labelWithSource = (value, source) => label(source ? `${value} (${source})` : value);
|
|
1872
|
+
const displayDefault = rawModel && rawModel !== resolvedLabel ? `${resolvedLabel} (from ${rawModel})` : resolvedLabel;
|
|
1873
|
+
runtime.log(`${label("Config")}${colorize(rich, theme.muted, ":")} ${colorize(rich, theme.info, shortenHomePath(configPath))}`);
|
|
1874
|
+
runtime.log(`${label("Agent dir")}${colorize(rich, theme.muted, ":")} ${colorize(rich, theme.info, shortenHomePath(agentDir))}`);
|
|
1875
|
+
runtime.log(`${labelWithSource("Default", agentId ? agentModelPrimary ? "agent" : "defaults" : void 0)}${colorize(rich, theme.muted, ":")} ${colorize(rich, theme.success, displayDefault)}`);
|
|
1876
|
+
runtime.log(`${labelWithSource(`Fallbacks (${fallbacks.length || 0})`, agentId ? agentFallbacksOverride !== void 0 ? "agent" : "defaults" : void 0)}${colorize(rich, theme.muted, ":")} ${colorize(rich, fallbacks.length ? theme.warn : theme.muted, fallbacks.length ? fallbacks.join(", ") : "-")}`);
|
|
1877
|
+
runtime.log(`${labelWithSource("Image model", agentId ? "defaults" : void 0)}${colorize(rich, theme.muted, ":")} ${colorize(rich, imageModel ? theme.accentBright : theme.muted, imageModel || "-")}`);
|
|
1878
|
+
runtime.log(`${labelWithSource(`Image fallbacks (${imageFallbacks.length || 0})`, agentId ? "defaults" : void 0)}${colorize(rich, theme.muted, ":")} ${colorize(rich, imageFallbacks.length ? theme.accentBright : theme.muted, imageFallbacks.length ? imageFallbacks.join(", ") : "-")}`);
|
|
1879
|
+
runtime.log(`${label(`Aliases (${Object.keys(aliases).length || 0})`)}${colorize(rich, theme.muted, ":")} ${colorize(rich, Object.keys(aliases).length ? theme.accent : theme.muted, Object.keys(aliases).length ? Object.entries(aliases).map(([alias, target]) => rich ? `${theme.accentDim(alias)} ${theme.muted("->")} ${theme.info(target)}` : `${alias} -> ${target}`).join(", ") : "-")}`);
|
|
1880
|
+
runtime.log(`${label(`Configured models (${allowed.length || 0})`)}${colorize(rich, theme.muted, ":")} ${colorize(rich, allowed.length ? theme.info : theme.muted, allowed.length ? allowed.join(", ") : "all")}`);
|
|
1881
|
+
runtime.log("");
|
|
1882
|
+
runtime.log(colorize(rich, theme.heading, "Auth overview"));
|
|
1883
|
+
runtime.log(`${label("Auth store")}${colorize(rich, theme.muted, ":")} ${colorize(rich, theme.info, shortenHomePath(resolveAuthStorePathForDisplay(agentDir)))}`);
|
|
1884
|
+
runtime.log(`${label("Shell env")}${colorize(rich, theme.muted, ":")} ${colorize(rich, shellFallbackEnabled ? theme.success : theme.muted, shellFallbackEnabled ? "on" : "off")}${applied.length ? colorize(rich, theme.muted, ` (applied: ${applied.join(", ")})`) : ""}`);
|
|
1885
|
+
runtime.log(`${label(`Providers w/ OAuth/tokens (${providersWithOauth.length || 0})`)}${colorize(rich, theme.muted, ":")} ${colorize(rich, providersWithOauth.length ? theme.info : theme.muted, providersWithOauth.length ? providersWithOauth.join(", ") : "-")}`);
|
|
1886
|
+
const formatKey = (key) => colorize(rich, theme.warn, key);
|
|
1887
|
+
const formatKeyValue = (key, value) => `${formatKey(key)}=${colorize(rich, theme.info, value)}`;
|
|
1888
|
+
const formatSeparator = () => colorize(rich, theme.muted, " | ");
|
|
1889
|
+
for (const entry of providerAuth) {
|
|
1890
|
+
const separator = formatSeparator();
|
|
1891
|
+
const bits = [];
|
|
1892
|
+
bits.push(formatKeyValue("effective", `${colorize(rich, theme.accentBright, entry.effective.kind)}:${colorize(rich, theme.muted, entry.effective.detail)}`));
|
|
1893
|
+
if (entry.profiles.count > 0) {
|
|
1894
|
+
bits.push(formatKeyValue("profiles", `${entry.profiles.count} (oauth=${entry.profiles.oauth}, token=${entry.profiles.token}, api_key=${entry.profiles.apiKey})`));
|
|
1895
|
+
if (entry.profiles.labels.length > 0) bits.push(colorize(rich, theme.info, entry.profiles.labels.join(", ")));
|
|
1896
|
+
}
|
|
1897
|
+
if (entry.env) bits.push(formatKeyValue("env", `${entry.env.value}${separator}${formatKeyValue("source", entry.env.source)}`));
|
|
1898
|
+
if (entry.modelsJson) bits.push(formatKeyValue("models.json", `${entry.modelsJson.value}${separator}${formatKeyValue("source", entry.modelsJson.source)}`));
|
|
1899
|
+
runtime.log(`- ${theme.heading(entry.provider)} ${bits.join(separator)}`);
|
|
1900
|
+
}
|
|
1901
|
+
if (missingProvidersInUse.length > 0) {
|
|
1902
|
+
runtime.log("");
|
|
1903
|
+
runtime.log(colorize(rich, theme.heading, "Missing auth"));
|
|
1904
|
+
for (const provider of missingProvidersInUse) {
|
|
1905
|
+
const hint = buildProviderAuthRecoveryHint({
|
|
1906
|
+
provider,
|
|
1907
|
+
config: cfg,
|
|
1908
|
+
includeEnvVar: true
|
|
1909
|
+
});
|
|
1910
|
+
runtime.log(`- ${theme.heading(provider)} ${hint}`);
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
runtime.log("");
|
|
1914
|
+
runtime.log(colorize(rich, theme.heading, "OAuth/token status"));
|
|
1915
|
+
if (oauthProfiles.length === 0) runtime.log(colorize(rich, theme.muted, "- none"));
|
|
1916
|
+
else {
|
|
1917
|
+
const usageByProvider = /* @__PURE__ */ new Map();
|
|
1918
|
+
const usageProviders = Array.from(new Set(oauthProfiles.map((profile) => resolveUsageProviderId(profile.provider)).filter((provider) => Boolean(provider))));
|
|
1919
|
+
if (usageProviders.length > 0) try {
|
|
1920
|
+
const usageSummary = await loadProviderUsageSummary({
|
|
1921
|
+
providers: usageProviders,
|
|
1922
|
+
agentDir,
|
|
1923
|
+
timeoutMs: 3500
|
|
1924
|
+
});
|
|
1925
|
+
for (const snapshot of usageSummary.providers) {
|
|
1926
|
+
const formatted = formatUsageWindowSummary(snapshot, {
|
|
1927
|
+
now: Date.now(),
|
|
1928
|
+
maxWindows: 2,
|
|
1929
|
+
includeResets: true
|
|
1930
|
+
});
|
|
1931
|
+
if (formatted) usageByProvider.set(snapshot.provider, formatted);
|
|
1932
|
+
}
|
|
1933
|
+
} catch {}
|
|
1934
|
+
const formatStatus = (status) => {
|
|
1935
|
+
if (status === "ok") return colorize(rich, theme.success, "ok");
|
|
1936
|
+
if (status === "static") return colorize(rich, theme.muted, "static");
|
|
1937
|
+
if (status === "expiring") return colorize(rich, theme.warn, "expiring");
|
|
1938
|
+
if (status === "missing") return colorize(rich, theme.warn, "unknown");
|
|
1939
|
+
return colorize(rich, theme.error, "expired");
|
|
1940
|
+
};
|
|
1941
|
+
const profilesByProvider = /* @__PURE__ */ new Map();
|
|
1942
|
+
for (const profile of oauthProfiles) {
|
|
1943
|
+
const current = profilesByProvider.get(profile.provider);
|
|
1944
|
+
if (current) current.push(profile);
|
|
1945
|
+
else profilesByProvider.set(profile.provider, [profile]);
|
|
1946
|
+
}
|
|
1947
|
+
for (const [provider, profiles] of profilesByProvider) {
|
|
1948
|
+
const usageKey = resolveUsageProviderId(provider);
|
|
1949
|
+
const usage = usageKey ? usageByProvider.get(usageKey) : void 0;
|
|
1950
|
+
const usageSuffix = usage ? colorize(rich, theme.muted, ` usage: ${usage}`) : "";
|
|
1951
|
+
runtime.log(`- ${colorize(rich, theme.heading, provider)}${usageSuffix}`);
|
|
1952
|
+
for (const profile of profiles) {
|
|
1953
|
+
const labelText = profile.label || profile.profileId;
|
|
1954
|
+
const label = colorize(rich, theme.accent, labelText);
|
|
1955
|
+
const status = formatStatus(profile.status);
|
|
1956
|
+
const expiry = profile.status === "static" ? "" : profile.expiresAt ? ` expires in ${formatRemainingShort(profile.remainingMs)}` : " expires unknown";
|
|
1957
|
+
runtime.log(` - ${label} ${status}${expiry}`);
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
}
|
|
1961
|
+
if (probeSummary) {
|
|
1962
|
+
runtime.log("");
|
|
1963
|
+
runtime.log(colorize(rich, theme.heading, "Auth probes"));
|
|
1964
|
+
if (probeSummary.results.length === 0) runtime.log(colorize(rich, theme.muted, "- none"));
|
|
1965
|
+
else {
|
|
1966
|
+
const tableWidth = getTerminalTableWidth();
|
|
1967
|
+
const sorted = sortProbeResults(probeSummary.results);
|
|
1968
|
+
const statusColor = (status) => {
|
|
1969
|
+
if (status === "ok") return theme.success;
|
|
1970
|
+
if (status === "rate_limit") return theme.warn;
|
|
1971
|
+
if (status === "timeout" || status === "billing") return theme.warn;
|
|
1972
|
+
if (status === "auth" || status === "format") return theme.error;
|
|
1973
|
+
if (status === "no_model") return theme.muted;
|
|
1974
|
+
return theme.muted;
|
|
1975
|
+
};
|
|
1976
|
+
const rows = sorted.map((result) => {
|
|
1977
|
+
const status = colorize(rich, statusColor(result.status), result.status);
|
|
1978
|
+
const latency = formatProbeLatency(result.latencyMs);
|
|
1979
|
+
const modelLabel = result.model ?? `${result.provider}/-`;
|
|
1980
|
+
const modeLabel = result.mode ? ` ${colorize(rich, theme.muted, `(${result.mode})`)}` : "";
|
|
1981
|
+
const profile = `${colorize(rich, theme.accent, result.label)}${modeLabel}`;
|
|
1982
|
+
const detail = result.error?.trim();
|
|
1983
|
+
const detailLabel = detail ? `\n${colorize(rich, theme.muted, `↳ ${detail}`)}` : "";
|
|
1984
|
+
const statusLabel = `${status}${colorize(rich, theme.muted, ` · ${latency}`)}${detailLabel}`;
|
|
1985
|
+
return {
|
|
1986
|
+
Model: colorize(rich, theme.heading, modelLabel),
|
|
1987
|
+
Profile: profile,
|
|
1988
|
+
Status: statusLabel
|
|
1989
|
+
};
|
|
1990
|
+
});
|
|
1991
|
+
runtime.log(renderTable({
|
|
1992
|
+
width: tableWidth,
|
|
1993
|
+
columns: [
|
|
1994
|
+
{
|
|
1995
|
+
key: "Model",
|
|
1996
|
+
header: "Model",
|
|
1997
|
+
minWidth: 18
|
|
1998
|
+
},
|
|
1999
|
+
{
|
|
2000
|
+
key: "Profile",
|
|
2001
|
+
header: "Profile",
|
|
2002
|
+
minWidth: 24
|
|
2003
|
+
},
|
|
2004
|
+
{
|
|
2005
|
+
key: "Status",
|
|
2006
|
+
header: "Status",
|
|
2007
|
+
minWidth: 12
|
|
2008
|
+
}
|
|
2009
|
+
],
|
|
2010
|
+
rows
|
|
2011
|
+
}).trimEnd());
|
|
2012
|
+
runtime.log(colorize(rich, theme.muted, describeProbeSummary(probeSummary)));
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
if (opts.check) runtime.exit(checkStatus);
|
|
2016
|
+
}
|
|
2017
|
+
//#endregion
|
|
2018
|
+
//#region src/agents/model-scan.ts
|
|
2019
|
+
const OPENROUTER_MODELS_URL = "https://openrouter.ai/api/v1/models";
|
|
2020
|
+
const DEFAULT_TIMEOUT_MS = 12e3;
|
|
2021
|
+
const DEFAULT_CONCURRENCY = 3;
|
|
2022
|
+
const BASE_IMAGE_PNG = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+X3mIAAAAASUVORK5CYII=";
|
|
2023
|
+
const TOOL_PING = {
|
|
2024
|
+
name: "ping",
|
|
2025
|
+
description: "Return OK.",
|
|
2026
|
+
parameters: Type.Object({})
|
|
2027
|
+
};
|
|
2028
|
+
function normalizeCreatedAtMs(value) {
|
|
2029
|
+
if (typeof value !== "number" || !Number.isFinite(value)) return null;
|
|
2030
|
+
if (value <= 0) return null;
|
|
2031
|
+
if (value > 0xe8d4a51000) return Math.round(value);
|
|
2032
|
+
return Math.round(value * 1e3);
|
|
2033
|
+
}
|
|
2034
|
+
function parseModality(modality) {
|
|
2035
|
+
if (!modality) return ["text"];
|
|
2036
|
+
return modality.toLowerCase().split(/[^a-z]+/).filter(Boolean).includes("image") ? ["text", "image"] : ["text"];
|
|
2037
|
+
}
|
|
2038
|
+
function parseNumberString(value) {
|
|
2039
|
+
if (typeof value === "number" && Number.isFinite(value)) return value;
|
|
2040
|
+
if (typeof value !== "string") return null;
|
|
2041
|
+
const trimmed = value.trim();
|
|
2042
|
+
if (!trimmed) return null;
|
|
2043
|
+
const num = Number(trimmed);
|
|
2044
|
+
if (!Number.isFinite(num)) return null;
|
|
2045
|
+
return num;
|
|
2046
|
+
}
|
|
2047
|
+
function parseOpenRouterPricing(value) {
|
|
2048
|
+
if (!value || typeof value !== "object") return null;
|
|
2049
|
+
const obj = value;
|
|
2050
|
+
const prompt = parseNumberString(obj.prompt);
|
|
2051
|
+
const completion = parseNumberString(obj.completion);
|
|
2052
|
+
const request = parseNumberString(obj.request) ?? 0;
|
|
2053
|
+
const image = parseNumberString(obj.image) ?? 0;
|
|
2054
|
+
const webSearch = parseNumberString(obj.web_search) ?? 0;
|
|
2055
|
+
const internalReasoning = parseNumberString(obj.internal_reasoning) ?? 0;
|
|
2056
|
+
if (prompt === null || completion === null) return null;
|
|
2057
|
+
return {
|
|
2058
|
+
prompt,
|
|
2059
|
+
completion,
|
|
2060
|
+
request,
|
|
2061
|
+
image,
|
|
2062
|
+
webSearch,
|
|
2063
|
+
internalReasoning
|
|
2064
|
+
};
|
|
2065
|
+
}
|
|
2066
|
+
function isFreeOpenRouterModel(entry) {
|
|
2067
|
+
if (entry.id.endsWith(":free")) return true;
|
|
2068
|
+
if (!entry.pricing) return false;
|
|
2069
|
+
return entry.pricing.prompt === 0 && entry.pricing.completion === 0;
|
|
2070
|
+
}
|
|
2071
|
+
async function withTimeout(timeoutMs, fn) {
|
|
2072
|
+
const controller = new AbortController();
|
|
2073
|
+
const timer = setTimeout(controller.abort.bind(controller), timeoutMs);
|
|
2074
|
+
try {
|
|
2075
|
+
return await fn(controller.signal);
|
|
2076
|
+
} finally {
|
|
2077
|
+
clearTimeout(timer);
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
async function fetchOpenRouterModels(fetchImpl) {
|
|
2081
|
+
const res = await fetchImpl(OPENROUTER_MODELS_URL, { headers: { Accept: "application/json" } });
|
|
2082
|
+
if (!res.ok) throw new Error(`OpenRouter /models failed: HTTP ${res.status}`);
|
|
2083
|
+
const payload = await res.json();
|
|
2084
|
+
return (Array.isArray(payload.data) ? payload.data : []).map((entry) => {
|
|
2085
|
+
if (!entry || typeof entry !== "object") return null;
|
|
2086
|
+
const obj = entry;
|
|
2087
|
+
const id = typeof obj.id === "string" ? obj.id.trim() : "";
|
|
2088
|
+
if (!id) return null;
|
|
2089
|
+
const name = typeof obj.name === "string" && obj.name.trim() ? obj.name.trim() : id;
|
|
2090
|
+
const contextLength = typeof obj.context_length === "number" && Number.isFinite(obj.context_length) ? obj.context_length : null;
|
|
2091
|
+
const maxCompletionTokens = typeof obj.max_completion_tokens === "number" && Number.isFinite(obj.max_completion_tokens) ? obj.max_completion_tokens : typeof obj.max_output_tokens === "number" && Number.isFinite(obj.max_output_tokens) ? obj.max_output_tokens : null;
|
|
2092
|
+
const supportedParameters = Array.isArray(obj.supported_parameters) ? obj.supported_parameters.filter((value) => typeof value === "string").map((value) => value.trim()).filter(Boolean) : [];
|
|
2093
|
+
return {
|
|
2094
|
+
id,
|
|
2095
|
+
name,
|
|
2096
|
+
contextLength,
|
|
2097
|
+
maxCompletionTokens,
|
|
2098
|
+
supportedParameters,
|
|
2099
|
+
supportedParametersCount: supportedParameters.length,
|
|
2100
|
+
supportsToolsMeta: supportedParameters.includes("tools"),
|
|
2101
|
+
modality: typeof obj.modality === "string" && obj.modality.trim() ? obj.modality.trim() : null,
|
|
2102
|
+
inferredParamB: inferParamBFromIdOrName(`${id} ${name}`),
|
|
2103
|
+
createdAtMs: normalizeCreatedAtMs(obj.created_at),
|
|
2104
|
+
pricing: parseOpenRouterPricing(obj.pricing)
|
|
2105
|
+
};
|
|
2106
|
+
}).filter((entry) => Boolean(entry));
|
|
2107
|
+
}
|
|
2108
|
+
async function probeTool(model, apiKey, timeoutMs) {
|
|
2109
|
+
const context = {
|
|
2110
|
+
messages: [{
|
|
2111
|
+
role: "user",
|
|
2112
|
+
content: "Call the ping tool with {} and nothing else.",
|
|
2113
|
+
timestamp: Date.now()
|
|
2114
|
+
}],
|
|
2115
|
+
tools: [TOOL_PING]
|
|
2116
|
+
};
|
|
2117
|
+
const startedAt = Date.now();
|
|
2118
|
+
try {
|
|
2119
|
+
if (!(await withTimeout(timeoutMs, (signal) => complete(model, context, {
|
|
2120
|
+
apiKey,
|
|
2121
|
+
maxTokens: 256,
|
|
2122
|
+
temperature: 0,
|
|
2123
|
+
toolChoice: "required",
|
|
2124
|
+
signal
|
|
2125
|
+
}))).content.some((block) => block.type === "toolCall")) return {
|
|
2126
|
+
ok: false,
|
|
2127
|
+
latencyMs: Date.now() - startedAt,
|
|
2128
|
+
error: "No tool call returned"
|
|
2129
|
+
};
|
|
2130
|
+
return {
|
|
2131
|
+
ok: true,
|
|
2132
|
+
latencyMs: Date.now() - startedAt
|
|
2133
|
+
};
|
|
2134
|
+
} catch (err) {
|
|
2135
|
+
return {
|
|
2136
|
+
ok: false,
|
|
2137
|
+
latencyMs: Date.now() - startedAt,
|
|
2138
|
+
error: err instanceof Error ? err.message : String(err)
|
|
2139
|
+
};
|
|
2140
|
+
}
|
|
2141
|
+
}
|
|
2142
|
+
async function probeImage(model, apiKey, timeoutMs) {
|
|
2143
|
+
const context = { messages: [{
|
|
2144
|
+
role: "user",
|
|
2145
|
+
content: [{
|
|
2146
|
+
type: "text",
|
|
2147
|
+
text: "Reply with OK."
|
|
2148
|
+
}, {
|
|
2149
|
+
type: "image",
|
|
2150
|
+
data: BASE_IMAGE_PNG,
|
|
2151
|
+
mimeType: "image/png"
|
|
2152
|
+
}],
|
|
2153
|
+
timestamp: Date.now()
|
|
2154
|
+
}] };
|
|
2155
|
+
const startedAt = Date.now();
|
|
2156
|
+
try {
|
|
2157
|
+
await withTimeout(timeoutMs, (signal) => complete(model, context, {
|
|
2158
|
+
apiKey,
|
|
2159
|
+
maxTokens: 16,
|
|
2160
|
+
temperature: 0,
|
|
2161
|
+
signal
|
|
2162
|
+
}));
|
|
2163
|
+
return {
|
|
2164
|
+
ok: true,
|
|
2165
|
+
latencyMs: Date.now() - startedAt
|
|
2166
|
+
};
|
|
2167
|
+
} catch (err) {
|
|
2168
|
+
return {
|
|
2169
|
+
ok: false,
|
|
2170
|
+
latencyMs: Date.now() - startedAt,
|
|
2171
|
+
error: err instanceof Error ? err.message : String(err)
|
|
2172
|
+
};
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2175
|
+
function ensureImageInput(model) {
|
|
2176
|
+
if (model.input?.includes("image")) return model;
|
|
2177
|
+
return {
|
|
2178
|
+
...model,
|
|
2179
|
+
input: Array.from(new Set([...model.input ?? [], "image"]))
|
|
2180
|
+
};
|
|
2181
|
+
}
|
|
2182
|
+
function buildOpenRouterScanResult(params) {
|
|
2183
|
+
const { entry, isFree } = params;
|
|
2184
|
+
return {
|
|
2185
|
+
id: entry.id,
|
|
2186
|
+
name: entry.name,
|
|
2187
|
+
provider: "openrouter",
|
|
2188
|
+
modelRef: `openrouter/${entry.id}`,
|
|
2189
|
+
contextLength: entry.contextLength,
|
|
2190
|
+
maxCompletionTokens: entry.maxCompletionTokens,
|
|
2191
|
+
supportedParametersCount: entry.supportedParametersCount,
|
|
2192
|
+
supportsToolsMeta: entry.supportsToolsMeta,
|
|
2193
|
+
modality: entry.modality,
|
|
2194
|
+
inferredParamB: entry.inferredParamB,
|
|
2195
|
+
createdAtMs: entry.createdAtMs,
|
|
2196
|
+
pricing: entry.pricing,
|
|
2197
|
+
isFree,
|
|
2198
|
+
tool: params.tool,
|
|
2199
|
+
image: params.image
|
|
2200
|
+
};
|
|
2201
|
+
}
|
|
2202
|
+
async function mapWithConcurrency(items, concurrency, fn, opts) {
|
|
2203
|
+
const limit = Math.max(1, Math.floor(concurrency));
|
|
2204
|
+
const results = Array.from({ length: items.length }, () => void 0);
|
|
2205
|
+
let nextIndex = 0;
|
|
2206
|
+
let completed = 0;
|
|
2207
|
+
const worker = async () => {
|
|
2208
|
+
while (true) {
|
|
2209
|
+
const current = nextIndex;
|
|
2210
|
+
nextIndex += 1;
|
|
2211
|
+
if (current >= items.length) return;
|
|
2212
|
+
results[current] = await fn(items[current], current);
|
|
2213
|
+
completed += 1;
|
|
2214
|
+
opts?.onProgress?.(completed, items.length);
|
|
2215
|
+
}
|
|
2216
|
+
};
|
|
2217
|
+
if (items.length === 0) {
|
|
2218
|
+
opts?.onProgress?.(0, 0);
|
|
2219
|
+
return results;
|
|
2220
|
+
}
|
|
2221
|
+
await Promise.all(Array.from({ length: Math.min(limit, items.length) }, () => worker()));
|
|
2222
|
+
return results;
|
|
2223
|
+
}
|
|
2224
|
+
async function scanOpenRouterModels(options = {}) {
|
|
2225
|
+
const fetchImpl = options.fetchImpl ?? fetch;
|
|
2226
|
+
const probe = options.probe ?? true;
|
|
2227
|
+
const apiKey = options.apiKey?.trim() || getEnvApiKey("openrouter") || "";
|
|
2228
|
+
if (probe && !apiKey) throw new Error("Missing OpenRouter API key. Set OPENROUTER_API_KEY to run models scan.");
|
|
2229
|
+
const timeoutMs = Math.max(1, Math.floor(options.timeoutMs ?? DEFAULT_TIMEOUT_MS));
|
|
2230
|
+
const concurrency = Math.max(1, Math.floor(options.concurrency ?? DEFAULT_CONCURRENCY));
|
|
2231
|
+
const minParamB = Math.max(0, Math.floor(options.minParamB ?? 0));
|
|
2232
|
+
const maxAgeDays = Math.max(0, Math.floor(options.maxAgeDays ?? 0));
|
|
2233
|
+
const providerFilter = normalizeProviderId(options.providerFilter ?? "");
|
|
2234
|
+
const catalog = await fetchOpenRouterModels(fetchImpl);
|
|
2235
|
+
const now = Date.now();
|
|
2236
|
+
const filtered = catalog.filter((entry) => {
|
|
2237
|
+
if (!isFreeOpenRouterModel(entry)) return false;
|
|
2238
|
+
if (providerFilter) {
|
|
2239
|
+
if (normalizeProviderId(entry.id.split("/")[0] ?? "") !== providerFilter) return false;
|
|
2240
|
+
}
|
|
2241
|
+
if (minParamB > 0) {
|
|
2242
|
+
if ((entry.inferredParamB ?? 0) < minParamB) return false;
|
|
2243
|
+
}
|
|
2244
|
+
if (maxAgeDays > 0 && entry.createdAtMs) {
|
|
2245
|
+
if ((now - entry.createdAtMs) / (1440 * 60 * 1e3) > maxAgeDays) return false;
|
|
2246
|
+
}
|
|
2247
|
+
return true;
|
|
2248
|
+
});
|
|
2249
|
+
const baseModel = getModel("openrouter", "openrouter/auto");
|
|
2250
|
+
options.onProgress?.({
|
|
2251
|
+
phase: "probe",
|
|
2252
|
+
completed: 0,
|
|
2253
|
+
total: filtered.length
|
|
2254
|
+
});
|
|
2255
|
+
return mapWithConcurrency(filtered, concurrency, async (entry) => {
|
|
2256
|
+
const isFree = isFreeOpenRouterModel(entry);
|
|
2257
|
+
if (!probe) return buildOpenRouterScanResult({
|
|
2258
|
+
entry,
|
|
2259
|
+
isFree,
|
|
2260
|
+
tool: {
|
|
2261
|
+
ok: false,
|
|
2262
|
+
latencyMs: null,
|
|
2263
|
+
skipped: true
|
|
2264
|
+
},
|
|
2265
|
+
image: {
|
|
2266
|
+
ok: false,
|
|
2267
|
+
latencyMs: null,
|
|
2268
|
+
skipped: true
|
|
2269
|
+
}
|
|
2270
|
+
});
|
|
2271
|
+
const model = {
|
|
2272
|
+
...baseModel,
|
|
2273
|
+
id: entry.id,
|
|
2274
|
+
name: entry.name || entry.id,
|
|
2275
|
+
contextWindow: entry.contextLength ?? baseModel.contextWindow,
|
|
2276
|
+
maxTokens: entry.maxCompletionTokens ?? baseModel.maxTokens,
|
|
2277
|
+
input: parseModality(entry.modality),
|
|
2278
|
+
reasoning: baseModel.reasoning
|
|
2279
|
+
};
|
|
2280
|
+
return buildOpenRouterScanResult({
|
|
2281
|
+
entry,
|
|
2282
|
+
isFree,
|
|
2283
|
+
tool: await probeTool(model, apiKey, timeoutMs),
|
|
2284
|
+
image: model.input?.includes("image") ? await probeImage(ensureImageInput(model), apiKey, timeoutMs) : {
|
|
2285
|
+
ok: false,
|
|
2286
|
+
latencyMs: null,
|
|
2287
|
+
skipped: true
|
|
2288
|
+
}
|
|
2289
|
+
});
|
|
2290
|
+
}, { onProgress: (completed, total) => options.onProgress?.({
|
|
2291
|
+
phase: "probe",
|
|
2292
|
+
completed,
|
|
2293
|
+
total
|
|
2294
|
+
}) });
|
|
2295
|
+
}
|
|
2296
|
+
//#endregion
|
|
2297
|
+
//#region src/commands/models/scan.ts
|
|
2298
|
+
const MODEL_PAD = 42;
|
|
2299
|
+
const CTX_PAD = 8;
|
|
2300
|
+
const multiselect$1 = (params) => multiselect({
|
|
2301
|
+
...params,
|
|
2302
|
+
message: stylePromptMessage(params.message),
|
|
2303
|
+
options: params.options.map((opt) => opt.hint === void 0 ? opt : {
|
|
2304
|
+
...opt,
|
|
2305
|
+
hint: stylePromptHint(opt.hint)
|
|
2306
|
+
})
|
|
2307
|
+
});
|
|
2308
|
+
function guardPromptCancel(value, runtime) {
|
|
2309
|
+
if (isCancel(value)) {
|
|
2310
|
+
cancel(stylePromptTitle("Model scan cancelled.") ?? "Model scan cancelled.");
|
|
2311
|
+
runtime.exit(0);
|
|
2312
|
+
throw new Error("unreachable");
|
|
2313
|
+
}
|
|
2314
|
+
return value;
|
|
2315
|
+
}
|
|
2316
|
+
function sortScanResults(results) {
|
|
2317
|
+
return results.slice().toSorted((a, b) => {
|
|
2318
|
+
const aImage = a.image.ok ? 1 : 0;
|
|
2319
|
+
const bImage = b.image.ok ? 1 : 0;
|
|
2320
|
+
if (aImage !== bImage) return bImage - aImage;
|
|
2321
|
+
const aToolLatency = a.tool.latencyMs ?? Number.POSITIVE_INFINITY;
|
|
2322
|
+
const bToolLatency = b.tool.latencyMs ?? Number.POSITIVE_INFINITY;
|
|
2323
|
+
if (aToolLatency !== bToolLatency) return aToolLatency - bToolLatency;
|
|
2324
|
+
return compareScanMetadata(a, b);
|
|
2325
|
+
});
|
|
2326
|
+
}
|
|
2327
|
+
function sortImageResults(results) {
|
|
2328
|
+
return results.slice().toSorted((a, b) => {
|
|
2329
|
+
const aLatency = a.image.latencyMs ?? Number.POSITIVE_INFINITY;
|
|
2330
|
+
const bLatency = b.image.latencyMs ?? Number.POSITIVE_INFINITY;
|
|
2331
|
+
if (aLatency !== bLatency) return aLatency - bLatency;
|
|
2332
|
+
return compareScanMetadata(a, b);
|
|
2333
|
+
});
|
|
2334
|
+
}
|
|
2335
|
+
function compareScanMetadata(a, b) {
|
|
2336
|
+
const aCtx = a.contextLength ?? 0;
|
|
2337
|
+
const bCtx = b.contextLength ?? 0;
|
|
2338
|
+
if (aCtx !== bCtx) return bCtx - aCtx;
|
|
2339
|
+
const aParams = a.inferredParamB ?? 0;
|
|
2340
|
+
const bParams = b.inferredParamB ?? 0;
|
|
2341
|
+
if (aParams !== bParams) return bParams - aParams;
|
|
2342
|
+
return a.modelRef.localeCompare(b.modelRef);
|
|
2343
|
+
}
|
|
2344
|
+
function buildScanHint(result) {
|
|
2345
|
+
return [
|
|
2346
|
+
result.tool.ok ? `tool ${formatMs(result.tool.latencyMs)}` : "tool fail",
|
|
2347
|
+
result.image.skipped ? "img skip" : result.image.ok ? `img ${formatMs(result.image.latencyMs)}` : "img fail",
|
|
2348
|
+
result.contextLength ? `ctx ${formatTokenK(result.contextLength)}` : "ctx ?",
|
|
2349
|
+
result.inferredParamB ? `${result.inferredParamB}b` : null
|
|
2350
|
+
].filter(Boolean).join(" | ");
|
|
2351
|
+
}
|
|
2352
|
+
function printScanSummary(results, runtime) {
|
|
2353
|
+
const toolOk = results.filter((r) => r.tool.ok);
|
|
2354
|
+
const imageOk = results.filter((r) => r.image.ok);
|
|
2355
|
+
const toolImageOk = results.filter((r) => r.tool.ok && r.image.ok);
|
|
2356
|
+
const imageOnly = imageOk.filter((r) => !r.tool.ok);
|
|
2357
|
+
runtime.log(`Scan results: tested ${results.length}, tool ok ${toolOk.length}, image ok ${imageOk.length}, tool+image ok ${toolImageOk.length}, image only ${imageOnly.length}`);
|
|
2358
|
+
}
|
|
2359
|
+
function printScanTable(results, runtime) {
|
|
2360
|
+
const header = [
|
|
2361
|
+
pad("Model", MODEL_PAD),
|
|
2362
|
+
pad("Tool", 10),
|
|
2363
|
+
pad("Image", 10),
|
|
2364
|
+
pad("Ctx", CTX_PAD),
|
|
2365
|
+
pad("Params", 8),
|
|
2366
|
+
"Notes"
|
|
2367
|
+
].join(" ");
|
|
2368
|
+
runtime.log(header);
|
|
2369
|
+
for (const entry of results) {
|
|
2370
|
+
const modelLabel = pad(truncate(entry.modelRef, MODEL_PAD), MODEL_PAD);
|
|
2371
|
+
const toolLabel = pad(entry.tool.ok ? formatMs(entry.tool.latencyMs) : "fail", 10);
|
|
2372
|
+
const imageLabel = pad(entry.image.ok ? formatMs(entry.image.latencyMs) : entry.image.skipped ? "skip" : "fail", 10);
|
|
2373
|
+
const ctxLabel = pad(formatTokenK(entry.contextLength), CTX_PAD);
|
|
2374
|
+
const paramsLabel = pad(entry.inferredParamB ? `${entry.inferredParamB}b` : "-", 8);
|
|
2375
|
+
const notes = entry.modality ? `modality:${entry.modality}` : "";
|
|
2376
|
+
runtime.log([
|
|
2377
|
+
modelLabel,
|
|
2378
|
+
toolLabel,
|
|
2379
|
+
imageLabel,
|
|
2380
|
+
ctxLabel,
|
|
2381
|
+
paramsLabel,
|
|
2382
|
+
notes
|
|
2383
|
+
].join(" "));
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
async function modelsScanCommand(opts, runtime) {
|
|
2387
|
+
const minParams = opts.minParams ? Number(opts.minParams) : void 0;
|
|
2388
|
+
if (minParams !== void 0 && (!Number.isFinite(minParams) || minParams < 0)) throw new Error("--min-params must be >= 0");
|
|
2389
|
+
const maxAgeDays = opts.maxAgeDays ? Number(opts.maxAgeDays) : void 0;
|
|
2390
|
+
if (maxAgeDays !== void 0 && (!Number.isFinite(maxAgeDays) || maxAgeDays < 0)) throw new Error("--max-age-days must be >= 0");
|
|
2391
|
+
const maxCandidates = opts.maxCandidates ? Number(opts.maxCandidates) : 6;
|
|
2392
|
+
if (!Number.isFinite(maxCandidates) || maxCandidates <= 0) throw new Error("--max-candidates must be > 0");
|
|
2393
|
+
const timeout = opts.timeout ? Number(opts.timeout) : void 0;
|
|
2394
|
+
if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout <= 0)) throw new Error("--timeout must be > 0");
|
|
2395
|
+
const concurrency = opts.concurrency ? Number(opts.concurrency) : void 0;
|
|
2396
|
+
if (concurrency !== void 0 && (!Number.isFinite(concurrency) || concurrency <= 0)) throw new Error("--concurrency must be > 0");
|
|
2397
|
+
const cfg = await loadModelsConfig({
|
|
2398
|
+
commandName: "models scan",
|
|
2399
|
+
runtime
|
|
2400
|
+
});
|
|
2401
|
+
const probe = opts.probe ?? true;
|
|
2402
|
+
let storedKey;
|
|
2403
|
+
if (probe) try {
|
|
2404
|
+
storedKey = (await resolveApiKeyForProvider({
|
|
2405
|
+
provider: "openrouter",
|
|
2406
|
+
cfg
|
|
2407
|
+
})).apiKey;
|
|
2408
|
+
} catch {
|
|
2409
|
+
storedKey = void 0;
|
|
2410
|
+
}
|
|
2411
|
+
const results = await withProgressTotals({
|
|
2412
|
+
label: "Scanning OpenRouter models...",
|
|
2413
|
+
indeterminate: false,
|
|
2414
|
+
enabled: opts.json !== true
|
|
2415
|
+
}, async (update) => await scanOpenRouterModels({
|
|
2416
|
+
apiKey: storedKey ?? void 0,
|
|
2417
|
+
minParamB: minParams,
|
|
2418
|
+
maxAgeDays,
|
|
2419
|
+
providerFilter: opts.provider,
|
|
2420
|
+
timeoutMs: timeout,
|
|
2421
|
+
concurrency,
|
|
2422
|
+
probe,
|
|
2423
|
+
onProgress: ({ phase, completed, total }) => {
|
|
2424
|
+
if (phase !== "probe") return;
|
|
2425
|
+
update({
|
|
2426
|
+
completed,
|
|
2427
|
+
total,
|
|
2428
|
+
label: `${probe ? "Probing models" : "Scanning models"} (${completed}/${total})`
|
|
2429
|
+
});
|
|
2430
|
+
}
|
|
2431
|
+
}));
|
|
2432
|
+
if (!probe) {
|
|
2433
|
+
if (!opts.json) {
|
|
2434
|
+
runtime.log(`Found ${results.length} OpenRouter free models (metadata only; pass --probe to test tools/images).`);
|
|
2435
|
+
printScanTable(sortScanResults(results), runtime);
|
|
2436
|
+
} else writeRuntimeJson(runtime, results);
|
|
2437
|
+
return;
|
|
2438
|
+
}
|
|
2439
|
+
const toolOk = results.filter((entry) => entry.tool.ok);
|
|
2440
|
+
if (toolOk.length === 0) throw new Error("No tool-capable OpenRouter free models found.");
|
|
2441
|
+
const sorted = sortScanResults(results);
|
|
2442
|
+
const toolSorted = sortScanResults(toolOk);
|
|
2443
|
+
const imageSorted = sortImageResults(results.filter((entry) => entry.image.ok));
|
|
2444
|
+
const imagePreferred = toolSorted.filter((entry) => entry.image.ok);
|
|
2445
|
+
const preselected = (imagePreferred.length > 0 ? imagePreferred : toolSorted).slice(0, Math.floor(maxCandidates)).map((entry) => entry.modelRef);
|
|
2446
|
+
const imagePreselected = imageSorted.slice(0, Math.floor(maxCandidates)).map((entry) => entry.modelRef);
|
|
2447
|
+
if (!opts.json) {
|
|
2448
|
+
printScanSummary(results, runtime);
|
|
2449
|
+
printScanTable(sorted, runtime);
|
|
2450
|
+
}
|
|
2451
|
+
const noInput = opts.input === false;
|
|
2452
|
+
const canPrompt = process.stdin.isTTY && !opts.yes && !noInput && !opts.json;
|
|
2453
|
+
let selected = preselected;
|
|
2454
|
+
let selectedImages = imagePreselected;
|
|
2455
|
+
if (canPrompt) {
|
|
2456
|
+
selected = guardPromptCancel(await multiselect$1({
|
|
2457
|
+
message: "Select fallback models (ordered)",
|
|
2458
|
+
options: toolSorted.map((entry) => ({
|
|
2459
|
+
value: entry.modelRef,
|
|
2460
|
+
label: entry.modelRef,
|
|
2461
|
+
hint: buildScanHint(entry)
|
|
2462
|
+
})),
|
|
2463
|
+
initialValues: preselected
|
|
2464
|
+
}), runtime);
|
|
2465
|
+
if (imageSorted.length > 0) selectedImages = guardPromptCancel(await multiselect$1({
|
|
2466
|
+
message: "Select image fallback models (ordered)",
|
|
2467
|
+
options: imageSorted.map((entry) => ({
|
|
2468
|
+
value: entry.modelRef,
|
|
2469
|
+
label: entry.modelRef,
|
|
2470
|
+
hint: buildScanHint(entry)
|
|
2471
|
+
})),
|
|
2472
|
+
initialValues: imagePreselected
|
|
2473
|
+
}), runtime);
|
|
2474
|
+
} else if (!process.stdin.isTTY && !opts.yes && !noInput && !opts.json) throw new Error("Non-interactive scan: pass --yes to apply defaults.");
|
|
2475
|
+
if (selected.length === 0) throw new Error("No models selected for fallbacks.");
|
|
2476
|
+
if (opts.setImage && selectedImages.length === 0) throw new Error("No image-capable models selected for image model.");
|
|
2477
|
+
await updateConfig((cfg) => {
|
|
2478
|
+
const nextModels = { ...cfg.agents?.defaults?.models };
|
|
2479
|
+
for (const entry of selected) if (!nextModels[entry]) nextModels[entry] = {};
|
|
2480
|
+
for (const entry of selectedImages) if (!nextModels[entry]) nextModels[entry] = {};
|
|
2481
|
+
const existingImageModel = toAgentModelListLike(cfg.agents?.defaults?.imageModel);
|
|
2482
|
+
const nextImageModel = selectedImages.length > 0 ? {
|
|
2483
|
+
...existingImageModel?.primary ? { primary: existingImageModel.primary } : void 0,
|
|
2484
|
+
fallbacks: selectedImages,
|
|
2485
|
+
...opts.setImage ? { primary: selectedImages[0] } : {}
|
|
2486
|
+
} : cfg.agents?.defaults?.imageModel;
|
|
2487
|
+
const existingModel = toAgentModelListLike(cfg.agents?.defaults?.model);
|
|
2488
|
+
const defaults = {
|
|
2489
|
+
...cfg.agents?.defaults,
|
|
2490
|
+
model: {
|
|
2491
|
+
...existingModel?.primary ? { primary: existingModel.primary } : void 0,
|
|
2492
|
+
fallbacks: selected,
|
|
2493
|
+
...opts.setDefault ? { primary: selected[0] } : {}
|
|
2494
|
+
},
|
|
2495
|
+
...nextImageModel ? { imageModel: nextImageModel } : {},
|
|
2496
|
+
models: nextModels
|
|
2497
|
+
};
|
|
2498
|
+
return {
|
|
2499
|
+
...cfg,
|
|
2500
|
+
agents: {
|
|
2501
|
+
...cfg.agents,
|
|
2502
|
+
defaults
|
|
2503
|
+
}
|
|
2504
|
+
};
|
|
2505
|
+
});
|
|
2506
|
+
if (opts.json) {
|
|
2507
|
+
writeRuntimeJson(runtime, {
|
|
2508
|
+
selected,
|
|
2509
|
+
selectedImages,
|
|
2510
|
+
setDefault: Boolean(opts.setDefault),
|
|
2511
|
+
setImage: Boolean(opts.setImage),
|
|
2512
|
+
results,
|
|
2513
|
+
warnings: []
|
|
2514
|
+
});
|
|
2515
|
+
return;
|
|
2516
|
+
}
|
|
2517
|
+
logConfigUpdated(runtime);
|
|
2518
|
+
runtime.log(`Fallbacks: ${selected.join(", ")}`);
|
|
2519
|
+
if (selectedImages.length > 0) runtime.log(`Image fallbacks: ${selectedImages.join(", ")}`);
|
|
2520
|
+
if (opts.setDefault) runtime.log(`Default model: ${selected[0]}`);
|
|
2521
|
+
if (opts.setImage && selectedImages.length > 0) runtime.log(`Image model: ${selectedImages[0]}`);
|
|
2522
|
+
}
|
|
2523
|
+
//#endregion
|
|
2524
|
+
//#region src/commands/models/set.ts
|
|
2525
|
+
async function modelsSetCommand(modelRaw, runtime) {
|
|
2526
|
+
const updated = await updateConfig((cfg) => {
|
|
2527
|
+
return applyDefaultModelPrimaryUpdate({
|
|
2528
|
+
cfg,
|
|
2529
|
+
modelRaw,
|
|
2530
|
+
field: "model"
|
|
2531
|
+
});
|
|
2532
|
+
});
|
|
2533
|
+
logConfigUpdated(runtime);
|
|
2534
|
+
runtime.log(`Default model: ${resolveAgentModelPrimaryValue(updated.agents?.defaults?.model) ?? modelRaw}`);
|
|
2535
|
+
}
|
|
2536
|
+
//#endregion
|
|
2537
|
+
//#region src/commands/models/set-image.ts
|
|
2538
|
+
async function modelsSetImageCommand(modelRaw, runtime) {
|
|
2539
|
+
const updated = await updateConfig((cfg) => {
|
|
2540
|
+
return applyDefaultModelPrimaryUpdate({
|
|
2541
|
+
cfg,
|
|
2542
|
+
modelRaw,
|
|
2543
|
+
field: "imageModel"
|
|
2544
|
+
});
|
|
2545
|
+
});
|
|
2546
|
+
logConfigUpdated(runtime);
|
|
2547
|
+
runtime.log(`Image model: ${resolveAgentModelPrimaryValue(updated.agents?.defaults?.imageModel) ?? modelRaw}`);
|
|
2548
|
+
}
|
|
2549
|
+
//#endregion
|
|
2550
|
+
export { modelsAliasesRemoveCommand as C, modelsAliasesListCommand as S, modelsAuthAddCommand as _, modelsListCommand as a, modelsAuthSetupTokenCommand as b, modelsImageFallbacksListCommand as c, modelsFallbacksClearCommand as d, modelsFallbacksListCommand as f, modelsAuthOrderSetCommand as g, modelsAuthOrderGetCommand as h, modelsStatusCommand as i, modelsImageFallbacksRemoveCommand as l, modelsAuthOrderClearCommand as m, modelsSetCommand as n, modelsImageFallbacksAddCommand as o, modelsFallbacksRemoveCommand as p, modelsScanCommand as r, modelsImageFallbacksClearCommand as s, modelsSetImageCommand as t, modelsFallbacksAddCommand as u, modelsAuthLoginCommand as v, modelsAliasesAddCommand as x, modelsAuthPasteTokenCommand as y };
|