kaijibot 2026.8.17 → 2026.8.21
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/dist/.buildstamp +1 -1
- package/dist/abort-BA4i4CO6.js +202 -0
- package/dist/abort-cutoff.runtime-140Dy9Z_.js +20 -0
- package/dist/abort-cutoff.runtime.js +1 -1
- package/dist/abort-primitives-DqU6syXA.js +93 -0
- package/dist/abort.runtime-D2xd_Jxq.js +2 -0
- package/dist/abort.runtime.js +1 -1
- package/dist/account-action-gate-w2MQyrck.js +114 -0
- package/dist/acp-cli-lUerPOt4.js +2171 -0
- package/dist/acp-spawn-CKu5HWZd.js +1024 -0
- package/dist/acp-stateful-target-driver-DNcDMame.js +88 -0
- package/dist/action-agents-bNO5zlxQ.js +67 -0
- package/dist/action-focus-BQH1yzA9.js +124 -0
- package/dist/action-help-Copk6G3d.js +7 -0
- package/dist/action-info-BUV_zoSU.js +58 -0
- package/dist/action-kill-BMDz9l_U.js +33 -0
- package/dist/action-list-CxkulhYF.js +21 -0
- package/dist/action-log-D0K9-YCV.js +30 -0
- package/dist/action-send-B8ggJVwC.js +39 -0
- package/dist/action-spawn-D9kSXA_K.js +46 -0
- package/dist/action-unfocus-bI4VBonB.js +28 -0
- package/dist/agent-CdxQT19_.js +2 -0
- package/dist/agent-command-Bu_cXSEL.js +1479 -0
- package/dist/agent-list-CPYyofv7.js +67 -0
- package/dist/agent-runner-utils--p6HAP6k.js +202 -0
- package/dist/agent-runner.runtime-BossnlL1.js +2825 -0
- package/dist/agent-runner.runtime.js +1 -1
- package/dist/agents/auth-profiles.runtime.js +1 -1
- package/dist/agents/model-catalog.runtime.js +1 -1
- package/dist/agents/models-config.runtime.js +1 -1
- package/dist/agents/pi-model-discovery-runtime.js +1 -1
- package/dist/agents-DA2-qNUI.js +887 -0
- package/dist/agents-DaKVGj9F.js +5 -0
- package/dist/allow-from-p586L6ne.js +164 -0
- package/dist/anthropic-cache-control-payload-N8EtT94O.js +28 -0
- package/dist/anthropic-payload-policy-D6dpwqVe.js +136 -0
- package/dist/anthropic-vertex-stream-CrF-fPgb.js +5666 -0
- package/dist/api-BPByI3-X.js +2 -0
- package/dist/api-BRJq6Aya.js +2 -0
- package/dist/api-BpAm-eRQ.js +2 -0
- package/dist/api-BvFPt7b2.js +19 -0
- package/dist/api-C6IdzdoP.js +5 -0
- package/dist/api-CSOm-O9I.js +5 -0
- package/dist/api-ChQfiSmG.js +4 -0
- package/dist/api-Cm3n-2Iw.js +3 -0
- package/dist/api-CqBQhm6r.js +2 -0
- package/dist/api-D7SjdU34.js +4 -0
- package/dist/api-D7qSjVDS.js +3 -0
- package/dist/api-DbRoXBTn.js +45 -0
- package/dist/api-_HshnS5J.js +35 -0
- package/dist/apply-G86rau7x.js +493 -0
- package/dist/apply.runtime-BoYc09wu.js +166 -0
- package/dist/apply.runtime-Dmh02lO-.js +2 -0
- package/dist/apply.runtime.js +1 -1
- package/dist/approval-client-helpers-cyaJyAMz.js +82 -0
- package/dist/approval-gateway-resolver-bdX78er-.js +58 -0
- package/dist/approval-gateway-runtime-CJm68vrp.js +2 -0
- package/dist/approval-handler-runtime-CT08B2_a.js +439 -0
- package/dist/approval-native-helpers-DagoPLtW.js +33 -0
- package/dist/approval-native-runtime-CN4meUkM.js +709 -0
- package/dist/approval-renderers-CnmO8wke.js +64 -0
- package/dist/asr-Cz-FH-3c.js +196 -0
- package/dist/audit-Cbfv4nmn.js +885 -0
- package/dist/audit-channel.collect.runtime.js +1 -1
- package/dist/audit-extra.async-DQv_s9K0.js +847 -0
- package/dist/audit.deep.runtime-CAPtrWg1.js +2 -0
- package/dist/audit.deep.runtime.js +1 -1
- package/dist/audit.nondeep.runtime-HUJ6INiD.js +859 -0
- package/dist/audit.nondeep.runtime.js +1 -1
- package/dist/audit.runtime-CAKbHyXK.js +7 -0
- package/dist/audit.runtime.js +1 -1
- package/dist/auth-CRAwpkC_.js +181 -0
- package/dist/auth-choice-Bhps2D29.js +3 -0
- package/dist/auth-choice-kMIs0xTd.js +71 -0
- package/dist/auth-choice-options-Bx_XsiW-.js +104 -0
- package/dist/auth-choice-prompt-B-koxVGL.js +2 -0
- package/dist/auth-choice-prompt-DytHsI5U.js +36 -0
- package/dist/auth-choice-vRXPONqL.js +353 -0
- package/dist/auth-choice.apply-helpers-D6x2bWVB.js +2 -0
- package/dist/auth-choice.plugin-providers.runtime-BNfpK_sp.js +11 -0
- package/dist/auth-choice.plugin-providers.runtime.js +1 -1
- package/dist/auth-health-BAxUQXZE.js +165 -0
- package/dist/auth-profiles-YXfmeEhu.js +438 -0
- package/dist/auth-profiles.runtime-CNNciZQU.js +7 -0
- package/dist/auth-profiles.runtime.js +1 -1
- package/dist/auto-disable-ABhUEc3O.js +69 -0
- package/dist/auto-disable-r26Mu7X0.js +2 -0
- package/dist/auto-recall-CsrNcQNa.js +78 -0
- package/dist/backup-create-DuIPhK_s.js +391 -0
- package/dist/banner-Bb9u_-IS.js +2 -0
- package/dist/banner-BkHTsqFt.js +281 -0
- package/dist/binding-routing-C6_mrNEN.js +50 -0
- package/dist/binding-targets-Cq2e7wRT.js +99 -0
- package/dist/block-streaming-BTtPFYsM.js +103 -0
- package/dist/bootstrap-files-DsmC0cJP.js +206 -0
- package/dist/bridge-server-Co3awCAM.js +103 -0
- package/dist/browser-config-runtime-BtkKPBMj.js +6 -0
- package/dist/browser-control-auth-Bqu1lakr.js +120 -0
- package/dist/browser-node-runtime-D8xut4fJ.js +12 -0
- package/dist/browser-open-BzpYLaas.js +94 -0
- package/dist/browser-profiles-gPG14SPk.js +170 -0
- package/dist/browser-runtime-BBkGI01q.js +377 -0
- package/dist/browser-security-runtime-CzhzXJ8D.js +10 -0
- package/dist/browser-setup-tools-CD_s48fd.js +12 -0
- package/dist/btw-command-Bgn_NviR.js +17 -0
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +5 -5
- package/dist/bundled/bootstrap-extra-files/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +6 -6
- package/dist/call-CiUZqjsN.js +2 -0
- package/dist/call-k_nZXTJ3.js +495 -0
- package/dist/call.runtime-CZI7yxSF.js +2 -0
- package/dist/call.runtime.js +1 -1
- package/dist/capability-cli-CIm_YhHH.js +1357 -0
- package/dist/catalog-provider-Ch4CMHLl.js +40 -0
- package/dist/cdp.helpers-BVl3YwYe.js +372 -0
- package/dist/channel-config-helpers-BO9yY1Zu.js +462 -0
- package/dist/channel-core-BB7pTANC.js +5 -0
- package/dist/channel-feedback-c7a-Gb7w.js +259 -0
- package/dist/channel-plugin-resolution-DHgXIZV6.js +146 -0
- package/dist/channel-policy-DO-ZWErE.js +270 -0
- package/dist/channel-reply-pipeline-2KImYC85.js +26 -0
- package/dist/channel-runtime-Bqn7zFyT.js +6 -0
- package/dist/channel-selection.runtime.js +1 -1
- package/dist/channel-setup.status-XI51qJ8U.js +2 -0
- package/dist/channel-setup.status-bJBbVDcA.js +754 -0
- package/dist/channel-summary-TxoZjGPA.js +139 -0
- package/dist/channel-summary-dKkFDRbe.js +2 -0
- package/dist/channel.runtime-2WY9MkoH.js +399 -0
- package/dist/channel.runtime.js +1 -1
- package/dist/channels-D66hRVnR.js +1147 -0
- package/dist/channels-cli-0DjAVaKh.js +248 -0
- package/dist/chat-Fv3LkEfF.js +213 -0
- package/dist/chat-history-text-CZhwQ5__.js +42 -0
- package/dist/chrome-CEE9kYYR.js +1080 -0
- package/dist/chrome.executables-Dp7W-RgV.js +550 -0
- package/dist/chunk-B9X-O7Vw.js +267 -0
- package/dist/clack-prompter-BSVVLa7H.js +113 -0
- package/dist/clawhub-Ina62jCa.js +400 -0
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/cli-BsNkLoFI.js +57 -0
- package/dist/cli-DQH9X5IE.js +2 -0
- package/dist/cli-DW_ou4hw.js +2 -0
- package/dist/cli-DuoVlLKx.js +154 -0
- package/dist/cli-QG03g_im.js +191 -0
- package/dist/cli-auth-seam-BrijKBRQ.js +14 -0
- package/dist/cli-backend-CIs4F7ip.js +66 -0
- package/dist/cli-migration-CVktTGRI.js +127 -0
- package/dist/cli-runner-12iECISR.js +1662 -0
- package/dist/cli-runner.runtime-C5noDuQ-.js +3 -0
- package/dist/cli-runner.runtime-YrAg_h19.js +2 -0
- package/dist/cli-runner.runtime.js +1 -1
- package/dist/cli-runtime-wB1rYZco.js +3 -0
- package/dist/cli-shared-BUW2okV2.js +142 -0
- package/dist/cli-startup-metadata.json +3 -3
- package/dist/cli.runtime-Bhxt80sB.js +819 -0
- package/dist/cli.runtime.js +1 -1
- package/dist/client-bootstrap-BWo-ZK_j.js +28 -0
- package/dist/codex-native-web-search-C6s55zGf.js +2 -0
- package/dist/codex-native-web-search-Cxf1u7R-.js +156 -0
- package/dist/collector-CRTTihSY.js +349 -0
- package/dist/collector-tJxrYXuY.js +2 -0
- package/dist/command-auth-Dlrd5CYD.js +75 -0
- package/dist/command-config-resolution-B8pxzh3W.js +2 -0
- package/dist/command-config-resolution-BXSCDJTh.js +23 -0
- package/dist/command-detection-DFlZHBMC.js +50 -0
- package/dist/command-execution-startup-DYXpKpvc.js +269 -0
- package/dist/command-format-JYoGhCek.js +2 -0
- package/dist/command-poll-backoff.runtime.js +1 -1
- package/dist/command-queue-CmX7XAL1.js +260 -0
- package/dist/command-registry-BF51N12E.js +3 -0
- package/dist/command-registry-BqpfCBbW.js +113 -0
- package/dist/command-secret-gateway-DuuctECr.js +528 -0
- package/dist/command-status-builders-CnD1rvYb.js +145 -0
- package/dist/commands-acp-DiLJUV45.js +1017 -0
- package/dist/commands-compact.runtime-BOM8PsWH.js +10 -0
- package/dist/commands-compact.runtime.js +1 -1
- package/dist/commands-context-C-jRwdK3.js +34 -0
- package/dist/commands-core.runtime-CH_aGeT-.js +2 -0
- package/dist/commands-core.runtime.js +1 -1
- package/dist/commands-handlers.runtime-Ca6xoeW5.js +3762 -0
- package/dist/commands-handlers.runtime.js +1 -1
- package/dist/commands-models-CRURuXR-.js +306 -0
- package/dist/commands-registry-CJw_6JDj.js +295 -0
- package/dist/commands-registry.runtime-78mbU8Il.js +2 -0
- package/dist/commands-registry.runtime.js +1 -1
- package/dist/commands-reset-hooks-D3RzsOIn.js +129 -0
- package/dist/commands-status-Cufj4x2j.js +223 -0
- package/dist/commands-status.runtime-C8Nz4Glk.js +2 -0
- package/dist/commands-status.runtime.js +1 -1
- package/dist/commands-subagents-control.runtime-DjhcmoRT.js +3 -0
- package/dist/commands-subagents-control.runtime-s_DYQWfW.js +2 -0
- package/dist/commands-subagents-control.runtime.js +1 -1
- package/dist/commands.runtime-ChfYOBeV.js +103 -0
- package/dist/commands.runtime.js +1 -1
- package/dist/comment-shared-DFEZzqhH.js +40 -0
- package/dist/compact-DEsHFhEL.js +11324 -0
- package/dist/compact.runtime-BzLFUSmk.js +7 -0
- package/dist/compact.runtime.js +1 -1
- package/dist/completion-cli-CiWtzUFQ.js +2 -0
- package/dist/completion-cli-h3zgpXGM.js +468 -0
- package/dist/config-B3cxNRyw.js +8 -0
- package/dist/config-Bd1PtH4x.js +166 -0
- package/dist/config-D5YvYnSX.js +136 -0
- package/dist/config-DuLfQQvE.js +53 -0
- package/dist/config-cli-BiEmyiRa.js +948 -0
- package/dist/config-defaults-Bw9wwyo1.js +163 -0
- package/dist/config-guard-BGGjXg_Y.js +94 -0
- package/dist/config-runtime-Bvdi0W59.js +14 -0
- package/dist/config-validation-BDeuMlc1.js +279 -0
- package/dist/configure-CUSDnrHs.js +2 -0
- package/dist/configure-FDqT3i_9.js +1162 -0
- package/dist/connection-auth-7izNv08V.js +30 -0
- package/dist/context-B2wCjR9D.js +249 -0
- package/dist/context-builder-BTAOEMTs.js +2 -0
- package/dist/context-n8ANhlMJ.js +2 -0
- package/dist/context-visibility-d6FHLhsq.js +14 -0
- package/dist/context-writer-COhxMkVz.js +290 -0
- package/dist/control-auth-Csa4b5CR.js +122 -0
- package/dist/control-ui/assets/agents-CYCtph5J.js +767 -0
- package/dist/control-ui/assets/anthropic-B66S-tt5.js +40 -0
- package/dist/control-ui/assets/azure-openai-responses-CRJyPvrW.js +2 -0
- package/dist/control-ui/assets/cron-DPaLQLTR.js +744 -0
- package/dist/control-ui/assets/dialogues-DPJy1B4C.js +83 -0
- package/dist/control-ui/assets/history-CT3DjMa7.js +71 -0
- package/dist/control-ui/assets/index-Ci2oc-eJ.css +1 -0
- package/dist/control-ui/assets/index-Ua-cFlP6.js +2686 -0
- package/dist/control-ui/assets/mistral-DWkPN1WM.js +72 -0
- package/dist/control-ui/assets/openai-codex-responses-CSJ_tbUW.js +8 -0
- package/dist/control-ui/assets/openai-completions-QUhkmdlC.js +6 -0
- package/dist/control-ui/assets/openai-responses-CjthZA3L.js +2 -0
- package/dist/control-ui/assets/openai-responses-shared-tozh4HQx.js +13 -0
- package/dist/control-ui/index.html +2 -2
- package/dist/control-ui-links-tILfT2Ek.js +70 -0
- package/dist/conversation-id-d7KXWjzV.js +140 -0
- package/dist/conversation-runtime-D-YmpVS2.js +31 -0
- package/dist/core-8TPCsNB-.js +210 -0
- package/dist/core-command-descriptors-CogWiUSt.js +112 -0
- package/dist/cron-cli-C5ok2iVK.js +637 -0
- package/dist/curator-9KwCnpXG.js +598 -0
- package/dist/curator-t_jLT3Ie.js +2 -0
- package/dist/daemon-cli-Cr_y38yv.js +476 -0
- package/dist/daemon-install-CrhzPiZ-.js +70 -0
- package/dist/delegate-r3VqUt34.js +61 -0
- package/dist/deliver-Cuu36rnv.js +3 -0
- package/dist/deliver-SAyi_F0e.js +782 -0
- package/dist/deliver-runtime-DKv9J6QE.js +2 -0
- package/dist/delivery-outbound.runtime-DDoInTnF.js +6 -0
- package/dist/delivery-outbound.runtime.js +1 -1
- package/dist/delivery-queue-CWi3kUit.js +372 -0
- package/dist/delivery-queue-ecSu6ZNL.js +2 -0
- package/dist/deps-BIU2SScd.js +60 -0
- package/dist/detect-9KcxEkJd.js +113 -0
- package/dist/device-bootstrap---geQnCr.js +4 -0
- package/dist/device-bootstrap-BEWox6at.js +248 -0
- package/dist/device-bootstrap-profile-BR1NnTGX.js +36 -0
- package/dist/device-identity-huL1Exh1.js +2 -0
- package/dist/device-pairing-DSkkI5A-.js +600 -0
- package/dist/devices-cli-BUAuMOOj.js +336 -0
- package/dist/diagnostic-BLwuJXPT.js +311 -0
- package/dist/diagnostics-Bh0Gbi4L.js +33 -0
- package/dist/diagnostics-BsUG_otQ.js +2 -0
- package/dist/direct-dm-D_7_vKGq.js +139 -0
- package/dist/directive-handling.fast-lane-C91i_iZm.js +2 -0
- package/dist/directive-handling.fast-lane-F7l0XNwG.js +64 -0
- package/dist/directive-handling.impl-8RAWZiZE.js +659 -0
- package/dist/directive-handling.impl-BxAIWFS-.js +2 -0
- package/dist/directive-handling.parse-B3O0CfXY.js +376 -0
- package/dist/directive-handling.persist-QXt7GHcD.js +139 -0
- package/dist/directive-handling.persist.runtime-CPPm2qYQ.js +2 -0
- package/dist/directive-handling.persist.runtime.js +1 -1
- package/dist/directive-handling.shared-C5ywsGJd.js +159 -0
- package/dist/directory-cli-D9v1dSPr.js +240 -0
- package/dist/dispatch-DoyBs65s.js +1126 -0
- package/dist/dispatch-acp-Dz8rU6t9.js +969 -0
- package/dist/dispatch-acp-command-bypass-CJ5xdqXR.js +38 -0
- package/dist/dispatch-acp-manager.runtime-tPUGDjl3.js +3 -0
- package/dist/dispatch-acp-manager.runtime.js +1 -1
- package/dist/dispatch-acp-media.runtime-rwYN3ewY.js +3 -0
- package/dist/dispatch-acp-media.runtime.js +1 -1
- package/dist/dispatch-acp-session.runtime-C9nyGih8.js +2 -0
- package/dist/dispatch-acp-session.runtime.js +1 -1
- package/dist/dispatch-acp-tts.runtime-B4jS8gyW.js +3 -0
- package/dist/dispatch-acp-tts.runtime.js +1 -1
- package/dist/dispatch-acp.runtime-Co-JFuKU.js +19 -0
- package/dist/dispatch-acp.runtime.js +1 -1
- package/dist/dns-cli-BRVJtnve.js +193 -0
- package/dist/docker-TZx6u2PT.js +826 -0
- package/dist/docs-cli-DvJd--iI.js +156 -0
- package/dist/doctor-completion-C46W5KI7.js +90 -0
- package/dist/doctor-config-preflight-B_UDrFsE.js +148 -0
- package/dist/doctor-config-preflight-DtvhOeuT.js +2 -0
- package/dist/doctor-state-migrations-Cd3yfnI1.js +2 -0
- package/dist/doctor-state-migrations-D3qorqjy.js +3 -0
- package/dist/drive-C2mxxJx5.js +718 -0
- package/dist/embedding-provider-C5S1sxvR.js +129 -0
- package/dist/embedding-provider-CNDA2uD3.js +26 -0
- package/dist/embedding-provider-CdVS1B85.js +33 -0
- package/dist/engine-B71iyBo0.js +72 -0
- package/dist/engine-CKgZ1obQ.js +82 -0
- package/dist/engine-embeddings-Bt1bTxtw.js +1489 -0
- package/dist/entry-capabilities-DrciJZn1.js +89 -0
- package/dist/entry.js +5 -5
- package/dist/env-overrides-DTd6EBBV.js +347 -0
- package/dist/env-overrides.runtime-Dxy8Shg7.js +7 -0
- package/dist/env-overrides.runtime.js +1 -1
- package/dist/exec-approval-forwarder.runtime-Dpa8Gi_P.js +3 -0
- package/dist/exec-approval-forwarder.runtime.js +1 -1
- package/dist/exec-approval-reply-BaUWuhD6.js +292 -0
- package/dist/exec-approval-session-target-BYtddDF5.js +165 -0
- package/dist/exec-approvals-cli-BuOJPaPp.js +485 -0
- package/dist/exec-defaults-B5egc-6t.js +1440 -0
- package/dist/extensionAPI.js +5 -5
- package/dist/extensions/alibaba/index.js +1 -1
- package/dist/extensions/alibaba/video-generation-provider.js +1 -1
- package/dist/extensions/anthropic/api.js +2 -2
- package/dist/extensions/anthropic/cli-auth-seam.js +1 -1
- package/dist/extensions/anthropic/cli-backend-api.js +2 -2
- package/dist/extensions/anthropic/cli-backend.js +1 -1
- package/dist/extensions/anthropic/cli-migration.js +1 -1
- package/dist/extensions/anthropic/cli-shared.js +1 -1
- package/dist/extensions/anthropic/config-defaults.js +1 -1
- package/dist/extensions/anthropic/contract-api.js +1 -1
- package/dist/extensions/anthropic/index.js +1 -1
- package/dist/extensions/anthropic/media-understanding-provider.js +1 -1
- package/dist/extensions/anthropic/provider-policy-api.js +1 -1
- package/dist/extensions/anthropic/register.runtime.js +1 -1
- package/dist/extensions/anthropic/replay-policy.js +1 -1
- package/dist/extensions/anthropic/setup-api.js +1 -1
- package/dist/extensions/anthropic/stream-wrappers.js +1 -1
- package/dist/extensions/anthropic/test-api.js +3 -3
- package/dist/extensions/anthropic-vertex/api.js +3 -3
- package/dist/extensions/anthropic-vertex/index.js +3 -3
- package/dist/extensions/anthropic-vertex/provider-catalog.js +1 -1
- package/dist/extensions/anthropic-vertex/region.js +1 -1
- package/dist/extensions/anthropic-vertex/setup-api.js +1 -1
- package/dist/extensions/arcee/index.js +4 -4
- package/dist/extensions/browser/browser-bridge.js +1 -1
- package/dist/extensions/browser/browser-cdp.js +1 -1
- package/dist/extensions/browser/browser-config.js +4 -4
- package/dist/extensions/browser/browser-control-auth.js +1 -1
- package/dist/extensions/browser/browser-doctor.js +5 -5
- package/dist/extensions/browser/browser-host-inspection.js +1 -1
- package/dist/extensions/browser/browser-maintenance.js +2 -2
- package/dist/extensions/browser/browser-profiles.js +2 -2
- package/dist/extensions/browser/browser-runtime-api.js +12 -12
- package/dist/extensions/browser/index.js +1 -1
- package/dist/extensions/browser/plugin-registration.js +1 -1
- package/dist/extensions/browser/register.runtime.js +3 -3
- package/dist/extensions/browser/runtime-api.js +13 -13
- package/dist/extensions/browser/setup-api.js +2 -2
- package/dist/extensions/browser/test-support.js +2 -2
- package/dist/extensions/byteplus/index.js +3 -3
- package/dist/extensions/byteplus/video-generation-provider.js +1 -1
- package/dist/extensions/cerebras/index.js +1 -1
- package/dist/extensions/chutes/api.js +3 -3
- package/dist/extensions/chutes/index.js +9 -9
- package/dist/extensions/chutes/models.js +1 -1
- package/dist/extensions/chutes/onboard.js +2 -2
- package/dist/extensions/chutes/provider-catalog.js +1 -1
- package/dist/extensions/cloudflare-ai-gateway/api.js +1 -1
- package/dist/extensions/cloudflare-ai-gateway/catalog-provider.js +1 -1
- package/dist/extensions/cloudflare-ai-gateway/index.js +7 -7
- package/dist/extensions/deepinfra/api.js +8 -8
- package/dist/extensions/deepinfra/embedding-provider.js +2 -2
- package/dist/extensions/deepinfra/image-generation-provider.js +1 -1
- package/dist/extensions/deepinfra/index.js +9 -9
- package/dist/extensions/deepinfra/media-models.js +2 -2
- package/dist/extensions/deepinfra/media-understanding-provider.js +1 -1
- package/dist/extensions/deepinfra/memory-embedding-adapter.js +1 -1
- package/dist/extensions/deepinfra/onboard.js +2 -2
- package/dist/extensions/deepinfra/provider-catalog.js +1 -1
- package/dist/extensions/deepinfra/provider-models.js +1 -1
- package/dist/extensions/deepinfra/speech-provider.js +1 -1
- package/dist/extensions/deepinfra/video-generation-provider.js +1 -1
- package/dist/extensions/deepseek/index.js +3 -3
- package/dist/extensions/device-pair/api.js +6 -6
- package/dist/extensions/device-pair/index.js +9 -9
- package/dist/extensions/device-pair/notify.js +1 -1
- package/dist/extensions/device-pair/pair-command-approve.js +1 -1
- package/dist/extensions/device-pair/qr-image.js +2 -2
- package/dist/extensions/diffs/.kaijibot-runtime-deps-stamp.json +1 -1
- package/dist/extensions/diffs/index.js +1 -1
- package/dist/extensions/diffs/node_modules/.package-lock.json +3 -3
- package/dist/extensions/diffs/node_modules/typebox/build/schema/engine/_stack.mjs +11 -12
- package/dist/extensions/diffs/node_modules/typebox/build/schema/resolve/resolve.d.mts +4 -1
- package/dist/extensions/diffs/node_modules/typebox/build/schema/resolve/resolve.mjs +202 -1
- package/dist/extensions/diffs/node_modules/typebox/package.json +1 -1
- package/dist/extensions/diffs/node_modules/typebox/readme.md +31 -31
- package/dist/extensions/exa/index.js +4 -4
- package/dist/extensions/feishu/.kaijibot-runtime-deps-stamp.json +1 -1
- package/dist/extensions/feishu/api.js +21 -21
- package/dist/extensions/feishu/contract-api.js +2 -2
- package/dist/extensions/feishu/node_modules/.package-lock.json +3 -3
- package/dist/extensions/feishu/node_modules/typebox/build/schema/engine/_stack.mjs +11 -12
- package/dist/extensions/feishu/node_modules/typebox/build/schema/resolve/resolve.d.mts +4 -1
- package/dist/extensions/feishu/node_modules/typebox/build/schema/resolve/resolve.mjs +202 -1
- package/dist/extensions/feishu/node_modules/typebox/package.json +1 -1
- package/dist/extensions/feishu/node_modules/typebox/readme.md +31 -31
- package/dist/extensions/feishu/runtime-api.js +4 -4
- package/dist/extensions/feishu/security-contract-api.js +1 -1
- package/dist/extensions/feishu/session-key-api.js +1 -1
- package/dist/extensions/feishu/setup-api.js +1 -1
- package/dist/extensions/fireworks/index.js +4 -4
- package/dist/extensions/fireworks/stream.js +1 -1
- package/dist/extensions/github-copilot/api.js +1 -1
- package/dist/extensions/github-copilot/index.js +7 -7
- package/dist/extensions/github-copilot/login.js +1 -1
- package/dist/extensions/github-copilot/models-defaults.js +1 -1
- package/dist/extensions/github-copilot/models.js +1 -1
- package/dist/extensions/github-copilot/register.runtime.js +6 -6
- package/dist/extensions/github-copilot/replay-policy.js +1 -1
- package/dist/extensions/github-copilot/stream.js +1 -1
- package/dist/extensions/google/api.js +1 -1
- package/dist/extensions/google/gemini-cli-provider.js +1 -1
- package/dist/extensions/google/google-shared.test-helpers.js +1 -1
- package/dist/extensions/google/image-generation-provider.js +1 -1
- package/dist/extensions/google/index.js +5 -5
- package/dist/extensions/google/media-understanding-provider.js +1 -1
- package/dist/extensions/google/music-generation-provider.js +1 -1
- package/dist/extensions/google/oauth-token-shared.js +1 -1
- package/dist/extensions/google/oauth.credentials.js +1 -1
- package/dist/extensions/google/oauth.flow.js +1 -1
- package/dist/extensions/google/oauth.http.js +1 -1
- package/dist/extensions/google/oauth.js +2 -2
- package/dist/extensions/google/oauth.project.js +1 -1
- package/dist/extensions/google/oauth.runtime.js +1 -1
- package/dist/extensions/google/oauth.settings.js +1 -1
- package/dist/extensions/google/oauth.token.js +1 -1
- package/dist/extensions/google/provider-models.js +1 -1
- package/dist/extensions/google/provider-registration.js +1 -1
- package/dist/extensions/google/runtime-api.js +2 -2
- package/dist/extensions/google/test-api.js +2 -2
- package/dist/extensions/google/video-generation-provider.js +1 -1
- package/dist/extensions/google/web-search-contract-api.js +1 -1
- package/dist/extensions/google/web-search-provider.js +1 -1
- package/dist/extensions/gradium/index.js +1 -1
- package/dist/extensions/gradium/speech-provider.js +1 -1
- package/dist/extensions/gradium/tts.js +1 -1
- package/dist/extensions/groq/index.js +1 -1
- package/dist/extensions/groq/media-understanding-provider.js +1 -1
- package/dist/extensions/groq/test-api.js +1 -1
- package/dist/extensions/huggingface/api.js +3 -3
- package/dist/extensions/huggingface/index.js +3 -3
- package/dist/extensions/huggingface/models.js +1 -1
- package/dist/extensions/huggingface/onboard.js +1 -1
- package/dist/extensions/huggingface/provider-catalog.js +2 -2
- package/dist/extensions/image-generation-core/api.js +2 -2
- package/dist/extensions/image-generation-core/runtime-api.js +2 -2
- package/dist/extensions/kilocode/api.js +2 -2
- package/dist/extensions/kilocode/index.js +8 -8
- package/dist/extensions/kilocode/onboard.js +2 -2
- package/dist/extensions/kilocode/provider-catalog.js +1 -1
- package/dist/extensions/kilocode/provider-models.js +1 -1
- package/dist/extensions/kilocode/shared.js +1 -1
- package/dist/extensions/kimi-coding/index.js +4 -4
- package/dist/extensions/kindle-portal/.kaijibot-runtime-deps-stamp.json +1 -1
- package/dist/extensions/kindle-portal/node_modules/.package-lock.json +3 -3
- package/dist/extensions/kindle-portal/node_modules/typebox/build/schema/engine/_stack.mjs +11 -12
- package/dist/extensions/kindle-portal/node_modules/typebox/build/schema/resolve/resolve.d.mts +4 -1
- package/dist/extensions/kindle-portal/node_modules/typebox/build/schema/resolve/resolve.mjs +202 -1
- package/dist/extensions/kindle-portal/node_modules/typebox/package.json +1 -1
- package/dist/extensions/kindle-portal/node_modules/typebox/readme.md +31 -31
- package/dist/extensions/knowledge-wiki/index.js +2 -2
- package/dist/extensions/litellm/index.js +1 -1
- package/dist/extensions/llm-task/index.js +1 -1
- package/dist/extensions/lmstudio/api.js +8 -8
- package/dist/extensions/lmstudio/index.js +3 -3
- package/dist/extensions/lmstudio/runtime-api.js +1 -1
- package/dist/extensions/media-understanding-core/runtime-api.js +2 -2
- package/dist/extensions/memory-core/cli-metadata.js +2 -2
- package/dist/extensions/memory-core/index.js +12 -12
- package/dist/extensions/memory-core/manager-runtime.js +1 -1
- package/dist/extensions/memory-core/runtime-api.js +5 -5
- package/dist/extensions/memory-lancedb/cli-metadata.js +1 -1
- package/dist/extensions/memory-lancedb/index.js +3 -3
- package/dist/extensions/microsoft/index.js +1 -1
- package/dist/extensions/microsoft/kaijibot.plugin.json +4 -0
- package/dist/extensions/microsoft/speech-provider.js +1 -1
- package/dist/extensions/microsoft/test-api.js +1 -1
- package/dist/extensions/microsoft/tts.js +1 -1
- package/dist/extensions/microsoft-foundry/auth.js +1 -1
- package/dist/extensions/microsoft-foundry/cli.js +1 -1
- package/dist/extensions/microsoft-foundry/index.js +1 -1
- package/dist/extensions/microsoft-foundry/onboard.js +2 -2
- package/dist/extensions/microsoft-foundry/provider.js +1 -1
- package/dist/extensions/microsoft-foundry/runtime.js +1 -1
- package/dist/extensions/microsoft-foundry/shared-runtime.js +2 -2
- package/dist/extensions/microsoft-foundry/shared.js +1 -1
- package/dist/extensions/minimax/api.js +5 -5
- package/dist/extensions/minimax/image-generation-provider.js +1 -1
- package/dist/extensions/minimax/index.js +7 -7
- package/dist/extensions/minimax/media-understanding-provider.js +1 -1
- package/dist/extensions/minimax/model-definitions.js +1 -1
- package/dist/extensions/minimax/music-generation-provider.js +1 -1
- package/dist/extensions/minimax/oauth.js +1 -1
- package/dist/extensions/minimax/oauth.runtime.js +1 -1
- package/dist/extensions/minimax/onboard.js +1 -1
- package/dist/extensions/minimax/provider-catalog.js +1 -1
- package/dist/extensions/minimax/provider-http.test-helpers.js +1 -1
- package/dist/extensions/minimax/provider-models.js +1 -1
- package/dist/extensions/minimax/provider-registration.js +1 -1
- package/dist/extensions/minimax/speech-provider.js +1 -1
- package/dist/extensions/minimax/test-api.js +2 -2
- package/dist/extensions/minimax/video-generation-provider.js +1 -1
- package/dist/extensions/minimax/web-search-contract-api.js +1 -1
- package/dist/extensions/minimax/web-search-provider.js +1 -1
- package/dist/extensions/mistral/embedding-provider.js +1 -1
- package/dist/extensions/mistral/index.js +3 -3
- package/dist/extensions/mistral/media-understanding-provider.js +1 -1
- package/dist/extensions/mistral/memory-embedding-adapter.js +3 -3
- package/dist/extensions/mistral/provider-compat.js +1 -1
- package/dist/extensions/mistral/test-api.js +1 -1
- package/dist/extensions/moonshot/api.js +3 -3
- package/dist/extensions/moonshot/index.js +9 -9
- package/dist/extensions/moonshot/media-understanding-provider.js +1 -1
- package/dist/extensions/moonshot/onboard.js +1 -1
- package/dist/extensions/moonshot/provider-catalog.js +1 -1
- package/dist/extensions/moonshot/test-api.js +2 -2
- package/dist/extensions/moonshot/web-search-contract-api.js +1 -1
- package/dist/extensions/moonshot/web-search-provider.js +1 -1
- package/dist/extensions/nvidia/index.js +1 -1
- package/dist/extensions/ollama/api.js +4 -4
- package/dist/extensions/ollama/index.js +8 -8
- package/dist/extensions/ollama/provider-discovery.js +1 -1
- package/dist/extensions/ollama/runtime-api.js +2 -2
- package/dist/extensions/ollama/web-search-contract-api.js +1 -1
- package/dist/extensions/ollama/web-search-provider.js +1 -1
- package/dist/extensions/openai/api.js +3 -3
- package/dist/extensions/openai/image-generation-provider.js +1 -1
- package/dist/extensions/openai/index.js +9 -9
- package/dist/extensions/openai/media-understanding-provider.js +1 -1
- package/dist/extensions/openai/openai-codex-auth-identity.js +1 -1
- package/dist/extensions/openai/openai-codex-cli-auth.js +1 -1
- package/dist/extensions/openai/openai-codex-provider.js +1 -1
- package/dist/extensions/openai/openai-codex-provider.runtime.js +2 -2
- package/dist/extensions/openai/openai-codex-shared.js +1 -1
- package/dist/extensions/openai/openai-provider.js +1 -1
- package/dist/extensions/openai/prompt-overlay.js +1 -1
- package/dist/extensions/openai/realtime-provider-shared.js +1 -1
- package/dist/extensions/openai/realtime-transcription-provider.js +1 -1
- package/dist/extensions/openai/realtime-voice-provider.js +1 -1
- package/dist/extensions/openai/register.runtime.js +8 -8
- package/dist/extensions/openai/shared.js +3 -3
- package/dist/extensions/openai/speech-provider.js +1 -1
- package/dist/extensions/openai/test-api.js +5 -5
- package/dist/extensions/openai/transport-policy.js +1 -1
- package/dist/extensions/openai/video-generation-provider.js +1 -1
- package/dist/extensions/opencode/index.js +4 -4
- package/dist/extensions/opencode-go/index.js +3 -3
- package/dist/extensions/openrouter/api.js +2 -2
- package/dist/extensions/openrouter/image-generation-provider.js +1 -1
- package/dist/extensions/openrouter/index.js +8 -8
- package/dist/extensions/openrouter/media-understanding-provider.js +1 -1
- package/dist/extensions/openrouter/music-generation-provider.js +1 -1
- package/dist/extensions/openrouter/stream.js +1 -1
- package/dist/extensions/openrouter/test-api.js +3 -3
- package/dist/extensions/openrouter/video-generation-provider.js +6 -6
- package/dist/extensions/openrouter/video-http.js +1 -1
- package/dist/extensions/openrouter/video-model-catalog.js +1 -1
- package/dist/extensions/openshell/index.js +4 -4
- package/dist/extensions/perplexity/index.js +1 -1
- package/dist/extensions/perplexity/test-api.js +1 -1
- package/dist/extensions/perplexity/web-search-contract-api.js +1 -1
- package/dist/extensions/perplexity/web-search-provider.js +1 -1
- package/dist/extensions/qianfan/index.js +1 -1
- package/dist/extensions/qwen/api.js +4 -4
- package/dist/extensions/qwen/index.js +8 -8
- package/dist/extensions/qwen/media-understanding-provider.js +1 -1
- package/dist/extensions/qwen/model-definitions.js +1 -1
- package/dist/extensions/qwen/models.js +1 -1
- package/dist/extensions/qwen/onboard.js +1 -1
- package/dist/extensions/qwen/provider-catalog.js +1 -1
- package/dist/extensions/qwen/stream.js +1 -1
- package/dist/extensions/qwen/test-api.js +2 -2
- package/dist/extensions/qwen/video-generation-provider.js +1 -1
- package/dist/extensions/runway/index.js +1 -1
- package/dist/extensions/runway/video-generation-provider.js +1 -1
- package/dist/extensions/sglang/api.js +2 -2
- package/dist/extensions/sglang/index.js +2 -2
- package/dist/extensions/sglang/models.js +1 -1
- package/dist/extensions/sherpa-speech/asr.js +2 -0
- package/dist/extensions/sherpa-speech/engine.js +3 -0
- package/dist/extensions/sherpa-speech/index.js +36 -0
- package/dist/extensions/sherpa-speech/kaijibot.plugin.json +20 -0
- package/dist/extensions/sherpa-speech/model-manager.js +2 -0
- package/dist/extensions/sherpa-speech/models.js +2 -0
- package/dist/extensions/sherpa-speech/package.json +12 -0
- package/dist/extensions/sherpa-speech/runtime.js +2 -0
- package/dist/extensions/speech-core/api.js +3 -3
- package/dist/extensions/speech-core/runtime-api.js +5 -5
- package/dist/extensions/stepfun/index.js +4 -4
- package/dist/extensions/stepfun/onboard.js +1 -1
- package/dist/extensions/stepfun/provider-catalog.js +1 -1
- package/dist/extensions/talk-voice/api.js +1 -1
- package/dist/extensions/talk-voice/index.js +3 -3
- package/dist/extensions/tavily/index.js +5 -5
- package/dist/extensions/together/api.js +3 -3
- package/dist/extensions/together/index.js +3 -3
- package/dist/extensions/together/models.js +1 -1
- package/dist/extensions/together/onboard.js +1 -1
- package/dist/extensions/together/provider-catalog.js +1 -1
- package/dist/extensions/together/video-generation-provider.js +5 -5
- package/dist/extensions/venice/api.js +3 -3
- package/dist/extensions/venice/index.js +6 -6
- package/dist/extensions/venice/models.js +1 -1
- package/dist/extensions/venice/onboard.js +2 -2
- package/dist/extensions/venice/provider-catalog.js +1 -1
- package/dist/extensions/vercel-ai-gateway/api.js +3 -3
- package/dist/extensions/vercel-ai-gateway/index.js +3 -3
- package/dist/extensions/vercel-ai-gateway/models.js +1 -1
- package/dist/extensions/vercel-ai-gateway/onboard.js +1 -1
- package/dist/extensions/vercel-ai-gateway/provider-catalog.js +1 -1
- package/dist/extensions/vllm/api.js +3 -3
- package/dist/extensions/vllm/defaults.js +1 -1
- package/dist/extensions/vllm/index.js +3 -3
- package/dist/extensions/vllm/models.js +1 -1
- package/dist/extensions/vllm/register.runtime.js +3 -3
- package/dist/extensions/volcengine/api.js +2 -2
- package/dist/extensions/volcengine/index.js +4 -4
- package/dist/extensions/volcengine/models.js +1 -1
- package/dist/extensions/volcengine/provider-catalog.js +1 -1
- package/dist/extensions/vydra/image-generation-provider.js +1 -1
- package/dist/extensions/vydra/index.js +6 -6
- package/dist/extensions/vydra/onboard.js +1 -1
- package/dist/extensions/vydra/shared.js +1 -1
- package/dist/extensions/vydra/speech-provider.js +1 -1
- package/dist/extensions/vydra/video-generation-provider.js +1 -1
- package/dist/extensions/webhooks/.kaijibot-runtime-deps-stamp.json +1 -1
- package/dist/extensions/webhooks/api.js +1 -1
- package/dist/extensions/webhooks/index.js +4 -4
- package/dist/extensions/webhooks/runtime-api.js +1 -1
- package/dist/extensions/wechat/api.js +32 -10
- package/dist/extensions/xai/api.js +6 -6
- package/dist/extensions/xai/code-execution.js +6 -6
- package/dist/extensions/xai/index.js +15 -15
- package/dist/extensions/xai/model-definitions.js +1 -1
- package/dist/extensions/xai/model-id.js +1 -1
- package/dist/extensions/xai/onboard.js +1 -1
- package/dist/extensions/xai/provider-catalog.js +1 -1
- package/dist/extensions/xai/provider-models.js +1 -1
- package/dist/extensions/xai/setup-api.js +1 -1
- package/dist/extensions/xai/stream.js +1 -1
- package/dist/extensions/xai/video-generation-provider.js +1 -1
- package/dist/extensions/xai/web-search-contract-api.js +1 -1
- package/dist/extensions/xai/web-search.js +1 -1
- package/dist/extensions/xai/x-search-tool-shared.js +1 -1
- package/dist/extensions/xai/x-search.js +6 -6
- package/dist/extensions/xiaomi/api.js +2 -2
- package/dist/extensions/xiaomi/index.js +3 -3
- package/dist/extensions/xiaomi/onboard.js +1 -1
- package/dist/extensions/xiaomi/provider-catalog.js +1 -1
- package/dist/extensions/zai/api.js +3 -3
- package/dist/extensions/zai/detect.js +1 -1
- package/dist/extensions/zai/index.js +12 -12
- package/dist/extensions/zai/media-understanding-provider.js +1 -1
- package/dist/extensions/zai/model-definitions.js +1 -1
- package/dist/extensions/zai/onboard.js +1 -1
- package/dist/extensions/zai/runtime-api.js +1 -1
- package/dist/extensions/zai/test-api.js +1 -1
- package/dist/extra-params-Bfdm7Piq.js +295 -0
- package/dist/fetch-4HO0k3hc.js +65 -0
- package/dist/fetch-guard-BWtRcc5b.js +224 -0
- package/dist/fetch-jNI8hIPZ.js +256 -0
- package/dist/format-KzNAm6y6.js +245 -0
- package/dist/fragment-collector-DEW1fwlc.js +189 -0
- package/dist/fragment-store-C9tRSlBU.js +2 -0
- package/dist/fragment-store-F7KNJ21T.js +230 -0
- package/dist/gateway-CR7RtTbI.js +2 -0
- package/dist/gateway-CuQC7wph.js +119 -0
- package/dist/gateway-cli-CWHsIpm8.js +1532 -0
- package/dist/gateway-discovery-targets-Bww-Rx4g.js +431 -0
- package/dist/gateway-install-token-CcpoWcqs.js +284 -0
- package/dist/gateway-lock-B4umteJZ.js +238 -0
- package/dist/gateway-rpc-Do_3fQSm.js +14 -0
- package/dist/gateway-rpc.runtime-C4kzyrJj.js +23 -0
- package/dist/gateway-rpc.runtime.js +1 -1
- package/dist/gateway-secret-options-DT6lYhI9.js +38 -0
- package/dist/gemini-cli-provider-YULRMcs8.js +106 -0
- package/dist/gemini-web-search-provider-D_QJZMM3.js +167 -0
- package/dist/get-reply-from-config.runtime-BpdriKtr.js +2 -0
- package/dist/get-reply-from-config.runtime.js +1 -1
- package/dist/git-commit-Cblh675s.js +2 -0
- package/dist/gmail-setup-utils-D_e1q-h_.js +422 -0
- package/dist/group-policy-BxTxJeKP.js +202 -0
- package/dist/groups.runtime.js +1 -1
- package/dist/hard-trigger-D6Zoztuc.js +106 -0
- package/dist/health-B5YmS_bW.js +2 -0
- package/dist/health-CQ4zXQ-2.js +579 -0
- package/dist/heartbeat-B1UJqney.js +184 -0
- package/dist/heartbeat-runner--rVDmB2Z.js +1365 -0
- package/dist/heartbeat-runner-CwtXIPI-.js +4 -0
- package/dist/heartbeat-runner.runtime-D_5UeAsX.js +2 -0
- package/dist/heartbeat-runner.runtime.js +1 -1
- package/dist/heartbeat-summary-Cf17FCYf.js +58 -0
- package/dist/heartbeat-visibility-BpEZ4Xf-.js +86 -0
- package/dist/help-CAj5xloH.js +76 -0
- package/dist/hooks-cli-BGDBJqzt.js +364 -0
- package/dist/hooks-status-DmEGo9Fp.js +86 -0
- package/dist/identity-Bwhl61jK.js +30 -0
- package/dist/identity-avatar-Bu5l4dFW.js +87 -0
- package/dist/image-DiK7kcmJ.js +152 -0
- package/dist/image-generation-core-Cwutmg_V.js +17 -0
- package/dist/image-generation-core.auth.runtime-DA7XD5V2.js +2 -0
- package/dist/image-generation-core.auth.runtime.js +1 -1
- package/dist/image-generation-provider-B-0SxnvJ.js +280 -0
- package/dist/image-generation-provider-B-UW3NU_.js +94 -0
- package/dist/image-generation-provider-BR1_oIU4.js +130 -0
- package/dist/image-generation-provider-BvAaZO7K.js +86 -0
- package/dist/image-generation-provider-CnGMLnE9.js +163 -0
- package/dist/image-generation-provider-DHvw6TSJ.js +136 -0
- package/dist/image-generation-runtime-DCWf9P6F.js +2 -0
- package/dist/image-runtime-DGNzvqkb.js +7 -0
- package/dist/images-BwT2L5zh.js +586 -0
- package/dist/inbound-reply-dispatch-DgEqNffL.js +73 -0
- package/dist/inbound.runtime-CloYEZJO.js +4 -0
- package/dist/inbound.runtime-DLbKJWOY.js +3 -0
- package/dist/inbound.runtime.js +1 -1
- package/dist/index.js +2 -2
- package/dist/infra-runtime-DE-Vi3Dn.js +25 -0
- package/dist/ingest-DbZJju1a.js +842 -0
- package/dist/ingest-Dyj9M3ZM.js +2 -0
- package/dist/input-files-tzSehEsO.js +252 -0
- package/dist/inspect-_4i1jBjC.js +2 -0
- package/dist/inspect-dprTBmSB.js +282 -0
- package/dist/install-DCsrCvd1.js +662 -0
- package/dist/install-security-scan-CckHbywU.js +22 -0
- package/dist/install-security-scan.runtime-BgROR-cq.js +299 -0
- package/dist/install-security-scan.runtime.js +1 -1
- package/dist/install-skills-BcVojHit.js +70 -0
- package/dist/install.runtime-C3_WB-H4.js +12 -0
- package/dist/install.runtime-CoXV-73Y.js +27 -0
- package/dist/install.runtime.js +1 -1
- package/dist/io-Bz-M35LC.js +7184 -0
- package/dist/io-DacBLjh1.js +5 -0
- package/dist/issue-format-CoEMThLD.js +2 -0
- package/dist/kaijibot-tools-Df_9YJcO.js +9434 -0
- package/dist/kaijibot-tools.runtime-CZId-V1O.js +2 -0
- package/dist/kaijibot-tools.runtime.js +1 -1
- package/dist/kill-tree-DerqhtJm.js +2 -0
- package/dist/kimi-web-search-provider-DunVVASJ.js +308 -0
- package/dist/launchd-Bh7KL8au.js +556 -0
- package/dist/library-BqMFzJMy.js +45 -0
- package/dist/lifecycle-core-DD_IXtH-.js +422 -0
- package/dist/list.runtime-DU0ctAjd.js +12 -0
- package/dist/list.runtime-DXWlaAJq.js +9 -0
- package/dist/list.runtime.js +1 -1
- package/dist/llm-draft-generator-B9jtO6H9.js +2 -0
- package/dist/llm-draft-generator-bfVpcuQF.js +567 -0
- package/dist/llm-engine-CMR9RxLA.js +1792 -0
- package/dist/llm-engine-VKRjaGY_.js +2 -0
- package/dist/llm-extractor-BCPvoWmb.js +445 -0
- package/dist/llm-slug-generator.js +2 -2
- package/dist/load-context-DV3B4twI.js +51 -0
- package/dist/logging-BMNGvpuz.js +13 -0
- package/dist/logging-CN3VAZ70.js +2 -0
- package/dist/login-Dex1JqnY.js +108 -0
- package/dist/logs-cli-BZFJyrsk.js +264 -0
- package/dist/logs-cli.runtime-bBS2Sbi6.js +2 -0
- package/dist/logs-cli.runtime.js +1 -1
- package/dist/manager-BmS2ofc4.js +2049 -0
- package/dist/manager-CabVEPeE.js +3314 -0
- package/dist/markdown-tables-DyVly8kN.js +51 -0
- package/dist/mcp/plugin-tools-serve.js +3 -3
- package/dist/mcp-cli-DGrmbpsu.js +733 -0
- package/dist/mcp-config-CY_3tJVi.js +115 -0
- package/dist/media-models-Dw0Y1LxG.js +49 -0
- package/dist/media-runtime-CAa8uHqv.js +312 -0
- package/dist/media-understanding-D_VRj6xY.js +83 -0
- package/dist/media-understanding-provider-B9Jfjq6L.js +13 -0
- package/dist/media-understanding-provider-BWksuEBw.js +30 -0
- package/dist/media-understanding-provider-Bhtq5Kpe.js +14 -0
- package/dist/media-understanding-provider-BzsmDAMk.js +67 -0
- package/dist/media-understanding-provider-C6_6yxvP.js +123 -0
- package/dist/media-understanding-provider-CdRlAb9s.js +18 -0
- package/dist/media-understanding-provider-D5m-2RW8.js +21 -0
- package/dist/media-understanding-provider-PmVmfI6p.js +112 -0
- package/dist/media-understanding-provider-cmLTPd8x.js +18 -0
- package/dist/media-understanding-provider-nPxfFv8l.js +37 -0
- package/dist/media-understanding-provider-yp9gxov6.js +69 -0
- package/dist/media-understanding-runtime-Bu7m-lVs.js +2 -0
- package/dist/memory-5jlpYBqx.js +242 -0
- package/dist/memory-BFKl6oSn.js +3 -0
- package/dist/memory-core-host-engine-embeddings-p06288xV.js +2 -0
- package/dist/memory-core-host-engine-foundation-DHbdNLgZ.js +11 -0
- package/dist/memory-core-host-runtime-cli-BnvAiNzO.js +9 -0
- package/dist/memory-core-host-runtime-core-CnVg69Uw.js +8 -0
- package/dist/memory-embedding-adapter-Cux48Bvk.js +33 -0
- package/dist/memory-host-search.runtime-D6ORyqHq.js +2 -0
- package/dist/memory-host-search.runtime.js +1 -1
- package/dist/memory-index-DSbV_yD0.js +2 -0
- package/dist/memory-index-EFkCRTeh.js +514 -0
- package/dist/memory-runtime-BKqNwQ9X.js +2 -0
- package/dist/memory-runtime-Cn41W0bC.js +26 -0
- package/dist/message-CMCdNyAT.js +223 -0
- package/dist/message-action-runner-CG2CcWaS.js +1628 -0
- package/dist/message-action-runner-DUZQ7nmt.js +2 -0
- package/dist/message.config.runtime-B3ztIjsr.js +3 -0
- package/dist/message.config.runtime.js +1 -1
- package/dist/message.gateway.runtime-COLMRCv4.js +2 -0
- package/dist/message.gateway.runtime.js +1 -1
- package/dist/metadata-registry-loader-BSyFpHop.js +15 -0
- package/dist/metadata-registry-loader-Ci3mcmNV.js +2 -0
- package/dist/method-scopes-BNjBMlqM.js +2883 -0
- package/dist/minimax-vlm-D1DbVSjC.js +183 -0
- package/dist/minimax-web-search-provider-BzgvahXM.js +165 -0
- package/dist/mmr-Clamw4uq.js +146 -0
- package/dist/model-CJIbRRp9.js +630 -0
- package/dist/model-auth-BQpkMtoP.js +427 -0
- package/dist/model-auth-env-BWJjZ_uc.js +53 -0
- package/dist/model-auth-env-CZXe-GO2.js +2 -0
- package/dist/model-auth-label-dLSkL9EI.js +45 -0
- package/dist/model-catalog-DgqowW_L.js +204 -0
- package/dist/model-definitions-BOTIDDWJ.js +258 -0
- package/dist/model-definitions-mx0Ogg9X.js +74 -0
- package/dist/model-discovery-live.runtime-D2J8zvfK.js +419 -0
- package/dist/model-discovery-live.runtime.js +1 -1
- package/dist/model-discovery-modelsdev-BKijFiV8.js +174 -0
- package/dist/model-manager-D6ZJxU6i.js +213 -0
- package/dist/model-picker-B4SuA28P.js +3 -0
- package/dist/model-picker-buwrc8kM.js +500 -0
- package/dist/model-picker.runtime-DXgS2Rab.js +15 -0
- package/dist/model-picker.runtime.js +1 -1
- package/dist/model-selection-CBuo2hSg.js +381 -0
- package/dist/model-suppression-CthTVW_x.js +28 -0
- package/dist/model-suppression.runtime-R-qnGNBa.js +7 -0
- package/dist/model-suppression.runtime.js +1 -1
- package/dist/models-B3UnmjRf.js +18 -0
- package/dist/models-BmveqjOE.js +126 -0
- package/dist/models-BucP8NI1.js +760 -0
- package/dist/models-C3w7hz3K.js +18 -0
- package/dist/models-C4-eAnR7.js +157 -0
- package/dist/models-Ce7KsgeW.js +90 -0
- package/dist/models-DMLYOe4h.js +2 -0
- package/dist/models-DNNfkS3j.js +2584 -0
- package/dist/models-D_V6hTy-.js +166 -0
- package/dist/models-DkiHZi9S.js +47 -0
- package/dist/models-OhM18fW_.js +555 -0
- package/dist/models-cli-CfvtZXPd.js +198 -0
- package/dist/models-config-BLMZzgfx.js +900 -0
- package/dist/models-config.providers.secrets-rjdH8T5l.js +299 -0
- package/dist/models-yLN-WhXt.js +19 -0
- package/dist/models.fetch-D1o7sMO8.js +518 -0
- package/dist/monitor-CJdL31iS.js +4435 -0
- package/dist/monitor-DB732mUY.js +1023 -0
- package/dist/music-generation-provider-BrUTQBmG.js +169 -0
- package/dist/music-generation-provider-D6aYWSSm.js +238 -0
- package/dist/music-generation-provider-dpX_Oiuw.js +142 -0
- package/dist/node-cli-BSrC37hh.js +2374 -0
- package/dist/node-command-policy-J_sy6jJz.js +205 -0
- package/dist/node-service-Bz1OVtIc.js +69 -0
- package/dist/nodes-cli-uwgDIsqv.js +1046 -0
- package/dist/nodes-screen-EQaXZCHa.js +216 -0
- package/dist/nodes-utils-ChvZvxK1.js +196 -0
- package/dist/nodes.helpers-WGb2Q8DZ.js +34 -0
- package/dist/normalize-reply-B7T9vV8x.js +72 -0
- package/dist/note-9YcA8RtG.js +110 -0
- package/dist/notify-C9-q0Rdu.js +305 -0
- package/dist/oauth-CVAbqwnx.js +152 -0
- package/dist/oauth-RbN-L8pg.js +57 -0
- package/dist/oauth-token-shared-CCzflFLG.js +28 -0
- package/dist/oauth.credentials-BeCOUsTe.js +165 -0
- package/dist/oauth.flow-C2PFyq_h.js +122 -0
- package/dist/oauth.http-BgZeCfvj.js +23 -0
- package/dist/oauth.project-jFMmutMJ.js +123 -0
- package/dist/oauth.settings-CBmYrmAk.js +44 -0
- package/dist/oauth.token-DSow_5Ie.js +43 -0
- package/dist/onboard-8SmAjhIH.js +67 -0
- package/dist/onboard-B-ZJptUZ.js +25 -0
- package/dist/onboard-BXjJLJku.js +22 -0
- package/dist/onboard-Beu-mw_-.js +29 -0
- package/dist/onboard-BzUrcgZ5.js +25 -0
- package/dist/onboard-CPuf8esc.js +25 -0
- package/dist/onboard-CR4uUkKJ.js +36 -0
- package/dist/onboard-CRIds5S5.js +34 -0
- package/dist/onboard-CTfex1XR2.js +58 -0
- package/dist/onboard-CWwwe5B4.js +48 -0
- package/dist/onboard-Cksl3HNo.js +54 -0
- package/dist/onboard-D-ccZlbM.js +312 -0
- package/dist/onboard-DHXNhsF7.js +621 -0
- package/dist/onboard-Dd6X5k1s.js +25 -0
- package/dist/onboard-channels-BRKpgYQD.js +524 -0
- package/dist/onboard-channels-C1HMTw0C.js +3 -0
- package/dist/onboard-config-Crb6F0O5.js +2 -0
- package/dist/onboard-custom-9KIp_ybR.js +647 -0
- package/dist/onboard-custom-CbXUFVN6.js +2 -0
- package/dist/onboard-helpers-BFknCN7m.js +223 -0
- package/dist/onboard-helpers-DSJ_xWpL.js +5 -0
- package/dist/onboard-hooks-CDjwsD6n.js +35 -0
- package/dist/onboard-maT5oxKX.js +29 -0
- package/dist/onboard-remote-C28pAu4b.js +193 -0
- package/dist/onboard-remote-DQxyE18D.js +2 -0
- package/dist/onboard-search-CPHGVmos.js +324 -0
- package/dist/onboard-skills-B642NK1o.js +2 -0
- package/dist/onboard-skills-CI4B6Kx5.js +134 -0
- package/dist/openai-codex-auth-identity-PqpqYz4a.js +45 -0
- package/dist/openai-codex-cli-auth-cFTkwXjR.js +57 -0
- package/dist/openai-codex-provider-DjUpM_l9.js +299 -0
- package/dist/openai-codex-shared-o0pq7UkS.js +6 -0
- package/dist/openai-provider-ChZN4Q0c.js +283 -0
- package/dist/openai-transport-stream-DXBBlxJ9.js +1632 -0
- package/dist/openclaw-migrator-CMpCBNkK.js +2 -0
- package/dist/operator-approvals-client-RJESCyw4.js +68 -0
- package/dist/order-D863tCt-.js +794 -0
- package/dist/outbound-runtime-Bhs-eGEn.js +2 -0
- package/dist/pair-command-approve-5Jr6xo-1.js +34 -0
- package/dist/pairing-cli-BF3jieZo.js +118 -0
- package/dist/parse-DH0T3Cu9.js +168 -0
- package/dist/perplexity-web-search-provider-DqEogUCL.js +92 -0
- package/dist/perplexity-web-search-provider.runtime-Clsvb0kX.js +332 -0
- package/dist/perplexity-web-search-provider.runtime-bOr3A0b4.js +2 -0
- package/dist/perplexity-web-search-provider.runtime.js +1 -1
- package/dist/perplexity-web-search-provider.shared-DzXnzvHH.js +73 -0
- package/dist/persistent-bindings.lifecycle-CjXEQUMz.js +94 -0
- package/dist/pi-bundle-mcp-tools-DPVGNVRw.js +709 -0
- package/dist/pi-embedded-Cp3OIZy9.js +2 -0
- package/dist/pi-embedded-DJN2vlNF.js +6 -0
- package/dist/pi-embedded-runner-DXHhhGRS.js +8348 -0
- package/dist/pi-embedded-subscribe.handlers.compaction.runtime-D1jUEg-R.js +23 -0
- package/dist/pi-embedded-subscribe.handlers.compaction.runtime.js +1 -1
- package/dist/pi-embedded-utils-CtraRgVx.js +212 -0
- package/dist/pi-embedded.runtime-DQPfEvkF.js +5 -0
- package/dist/pi-embedded.runtime.js +1 -1
- package/dist/pi-model-discovery-B9q9ykaA.js +232 -0
- package/dist/pi-tools.before-tool-call.runtime-vGvkJ6V9.js +354 -0
- package/dist/pi-tools.before-tool-call.runtime.js +1 -1
- package/dist/plugin-enabled-CMdiRqJS.js +71 -0
- package/dist/plugin-install-Cgd9nFeK.js +2 -0
- package/dist/plugin-install-DpYtmnGU.js +227 -0
- package/dist/plugin-install-config-policy-32D2JJMl.js +137 -0
- package/dist/plugin-install-plan-DR1__A8c.js +50 -0
- package/dist/plugin-registration-BhPJI7wp.js +23 -0
- package/dist/plugin-registry-Bo4RF_Fn.js +2 -0
- package/dist/plugin-registry-C4M8QkVh.js +3 -0
- package/dist/plugin-registry-loader-ZzUapRh3.js +22 -0
- package/dist/plugin-sdk/.boundary-entry-shims.stamp +1 -1
- package/dist/plugin-sdk/account-core.js +2 -2
- package/dist/plugin-sdk/account-helpers.js +1 -1
- package/dist/plugin-sdk/account-resolution.js +2 -2
- package/dist/plugin-sdk/acp-binding-runtime.js +1 -1
- package/dist/plugin-sdk/acp-runtime.js +3 -3
- package/dist/plugin-sdk/agent-harness-runtime.js +9 -9
- package/dist/plugin-sdk/agent-runtime.js +16 -16
- package/dist/plugin-sdk/allow-from.js +1 -1
- package/dist/plugin-sdk/approval-client-runtime.js +2 -2
- package/dist/plugin-sdk/approval-gateway-runtime.js +2 -2
- package/dist/plugin-sdk/approval-handler-runtime.js +3 -3
- package/dist/plugin-sdk/approval-native-runtime.js +2 -2
- package/dist/plugin-sdk/approval-reply-runtime.js +2 -2
- package/dist/plugin-sdk/approval-runtime.js +7 -7
- package/dist/plugin-sdk/browser-config-runtime.js +2 -2
- package/dist/plugin-sdk/browser-config.js +2 -2
- package/dist/plugin-sdk/browser-control-auth.js +1 -1
- package/dist/plugin-sdk/browser-node-runtime.js +6 -6
- package/dist/plugin-sdk/browser-profiles.js +1 -1
- package/dist/plugin-sdk/browser-security-runtime.js +2 -2
- package/dist/plugin-sdk/browser-setup-tools.js +3 -3
- package/dist/plugin-sdk/browser-support.js +13 -13
- package/dist/plugin-sdk/channel-config-helpers.js +1 -1
- package/dist/plugin-sdk/channel-config-writes.js +1 -1
- package/dist/plugin-sdk/channel-core.js +2 -2
- package/dist/plugin-sdk/channel-feedback.js +2 -2
- package/dist/plugin-sdk/channel-inbound.js +4 -4
- package/dist/plugin-sdk/channel-message.js +2 -2
- package/dist/plugin-sdk/channel-policy.js +2 -2
- package/dist/plugin-sdk/channel-reply-pipeline.js +2 -2
- package/dist/plugin-sdk/channel-runtime.js +4 -4
- package/dist/plugin-sdk/channel-setup.js +1 -1
- package/dist/plugin-sdk/cli-runtime.js +2 -2
- package/dist/plugin-sdk/command-auth-native.js +1 -1
- package/dist/plugin-sdk/command-auth.js +6 -6
- package/dist/plugin-sdk/command-detection.js +1 -1
- package/dist/plugin-sdk/command-status.js +1 -1
- package/dist/plugin-sdk/command-surface.js +1 -1
- package/dist/plugin-sdk/compat.js +6 -6
- package/dist/plugin-sdk/config-mutation.js +4 -4
- package/dist/plugin-sdk/config-runtime.js +10 -10
- package/dist/plugin-sdk/conversation-binding-runtime.js +1 -1
- package/dist/plugin-sdk/conversation-runtime.js +4 -4
- package/dist/plugin-sdk/core.js +4 -4
- package/dist/plugin-sdk/device-bootstrap.js +4 -4
- package/dist/plugin-sdk/direct-dm.js +1 -1
- package/dist/plugin-sdk/extension-shared.js +1 -1
- package/dist/plugin-sdk/feishu.js +5 -5
- package/dist/plugin-sdk/fetch-runtime.js +2 -2
- package/dist/plugin-sdk/gateway-method-runtime.js +1 -1
- package/dist/plugin-sdk/gateway-runtime.js +2 -2
- package/dist/plugin-sdk/generate-text.js +1 -1
- package/dist/plugin-sdk/image-generation-core.js +2 -2
- package/dist/plugin-sdk/image-generation-runtime.js +2 -2
- package/dist/plugin-sdk/inbound-reply-dispatch.js +1 -1
- package/dist/plugin-sdk/index.js +1 -1
- package/dist/plugin-sdk/infra-runtime.js +17 -17
- package/dist/plugin-sdk/markdown-table-runtime.js +1 -1
- package/dist/plugin-sdk/media-generation-runtime-shared.js +1 -1
- package/dist/plugin-sdk/media-generation-runtime.js +1 -1
- package/dist/plugin-sdk/media-runtime.js +7 -7
- package/dist/plugin-sdk/media-understanding-runtime.js +2 -2
- package/dist/plugin-sdk/media-understanding.js +2 -2
- package/dist/plugin-sdk/memory-core-host-engine-embeddings.js +2 -2
- package/dist/plugin-sdk/memory-core-host-engine-foundation.js +3 -3
- package/dist/plugin-sdk/memory-core-host-runtime-cli.js +2 -2
- package/dist/plugin-sdk/memory-core-host-runtime-core.js +3 -3
- package/dist/plugin-sdk/memory-core.js +5 -5
- package/dist/plugin-sdk/memory-host-core.js +3 -3
- package/dist/plugin-sdk/memory-host-search.js +1 -1
- package/dist/plugin-sdk/models-provider-runtime.js +1 -1
- package/dist/plugin-sdk/native-command-registry.js +1 -1
- package/dist/plugin-sdk/outbound-media.js +2 -2
- package/dist/plugin-sdk/outbound-runtime.js +2 -2
- package/dist/plugin-sdk/plugin-test-contracts.js +1 -1
- package/dist/plugin-sdk/plugin-test-runtime.js +4 -4
- package/dist/plugin-sdk/provider-auth-api-key.js +5 -5
- package/dist/plugin-sdk/provider-auth-login.js +1 -1
- package/dist/plugin-sdk/provider-auth-runtime.js +4 -4
- package/dist/plugin-sdk/provider-auth.js +10 -10
- package/dist/plugin-sdk/provider-catalog-shared.js +1 -1
- package/dist/plugin-sdk/provider-entry.js +1 -1
- package/dist/plugin-sdk/provider-http-test-mocks.js +1 -1
- package/dist/plugin-sdk/provider-http.js +3 -3
- package/dist/plugin-sdk/provider-model-shared.js +2 -2
- package/dist/plugin-sdk/provider-setup.js +2 -2
- package/dist/plugin-sdk/provider-stream-family.js +5 -5
- package/dist/plugin-sdk/provider-stream-shared.js +3 -3
- package/dist/plugin-sdk/provider-stream.js +4 -4
- package/dist/plugin-sdk/provider-test-contracts.js +4 -4
- package/dist/plugin-sdk/provider-tools.js +1 -1
- package/dist/plugin-sdk/provider-transport-runtime.js +2 -2
- package/dist/plugin-sdk/provider-web-fetch.js +1 -1
- package/dist/plugin-sdk/provider-web-search-config-contract.js +2 -2
- package/dist/plugin-sdk/provider-web-search-contract.js +2 -2
- package/dist/plugin-sdk/provider-web-search.js +4 -4
- package/dist/plugin-sdk/provider-zai-endpoint.js +1 -1
- package/dist/plugin-sdk/reply-chunking.js +2 -2
- package/dist/plugin-sdk/reply-dispatch-runtime.js +2 -2
- package/dist/plugin-sdk/reply-runtime.js +13 -13
- package/dist/plugin-sdk/retry-runtime.js +2 -2
- package/dist/plugin-sdk/routing.js +1 -1
- package/dist/plugin-sdk/runtime-doctor.js +1 -1
- package/dist/plugin-sdk/runtime-env.js +5 -5
- package/dist/plugin-sdk/runtime-secret-resolution.js +1 -1
- package/dist/plugin-sdk/runtime.js +4 -4
- package/dist/plugin-sdk/sandbox.js +2 -2
- package/dist/plugin-sdk/self-hosted-provider-setup.js +1 -1
- package/dist/plugin-sdk/session-store-runtime.js +2 -2
- package/dist/plugin-sdk/setup-runtime.js +1 -1
- package/dist/plugin-sdk/setup-tools.js +2 -2
- package/dist/plugin-sdk/setup.js +3 -3
- package/dist/plugin-sdk/simple-completion-runtime.js +2 -2
- package/dist/plugin-sdk/skill-commands-runtime.js +1 -1
- package/dist/plugin-sdk/speech-core.js +2 -2
- package/dist/plugin-sdk/speech.js +1 -1
- package/dist/plugin-sdk/src/config/sessions/transcript.d.ts +5 -0
- package/dist/plugin-sdk/src/gateway/server-methods/stt.d.ts +2 -0
- package/dist/plugin-sdk/src/infra/heartbeat-degeneration-guard.d.ts +31 -0
- package/dist/plugin-sdk/src/infra/heartbeat-events.d.ts +6 -0
- package/dist/plugin-sdk/ssrf-runtime.js +2 -2
- package/dist/plugin-sdk/test-env.js +1 -1
- package/dist/plugin-sdk/testing.js +6 -6
- package/dist/plugin-sdk/text-runtime.js +5 -5
- package/dist/plugin-sdk/text-utility-runtime.js +1 -1
- package/dist/plugin-sdk/video-generation-core.js +1 -1
- package/dist/plugin-sdk/video-generation-runtime.js +1 -1
- package/dist/plugin-sdk/video-generation.js +1 -1
- package/dist/plugin-sdk/web-media.js +2 -2
- package/dist/plugin-service-31XQtuZr.js +2494 -0
- package/dist/plugins/provider-discovery.runtime.js +1 -1
- package/dist/plugins/provider-runtime.runtime.js +1 -1
- package/dist/plugins/runtime/index.js +1 -1
- package/dist/plugins-cli-20A8dYUN.js +576 -0
- package/dist/plugins-command-helpers-C3Qls10N.js +117 -0
- package/dist/plugins-install-persist-DEr-zA4G.js +121 -0
- package/dist/plugins-update-command-D0Iv4BPb.js +1009 -0
- package/dist/policy-BEVsx7jw.js +172 -0
- package/dist/ports-CwmEcxRS.js +433 -0
- package/dist/ports-Dr-FwKZD.js +263 -0
- package/dist/preemptive-compaction-DlRJt7Zq.js +430 -0
- package/dist/proactive-scheduler-B3w5rW0h.js +1444 -0
- package/dist/probe-BY1GUZvs.js +178 -0
- package/dist/probe-CCTEVLB2.js +54 -0
- package/dist/probe-CcQ1ucSE.js +2 -0
- package/dist/probe-DcSW0ngD.js +426 -0
- package/dist/probe-auth-C7DjgU_m.js +69 -0
- package/dist/probe-auth-Cfwc8qaj.js +3 -0
- package/dist/profiles-BYudUysD.js +117 -0
- package/dist/program-E_Dt_QTp.js +111 -0
- package/dist/program-context-mb1YzlIX.js +2 -0
- package/dist/prompt-overlay-DsEnjhTn.js +72 -0
- package/dist/prompt-select-styled-Dtw90p2J.js +5305 -0
- package/dist/provider-api-key-auth-CerNsquw.js +113 -0
- package/dist/provider-api-key-auth.runtime-B0BpFkRm.js +14 -0
- package/dist/provider-api-key-auth.runtime.js +1 -1
- package/dist/provider-auth-DwgUXcgu.js +36 -0
- package/dist/provider-auth-api-key-BQfXwqgU.js +5 -0
- package/dist/provider-auth-choice-BKxMQwxd.js +134 -0
- package/dist/provider-auth-choice-preference-DeDdHlsY.js +62 -0
- package/dist/provider-auth-choice.runtime-BJxc73Ex.js +2 -0
- package/dist/provider-auth-choice.runtime-DBcrr0Ab.js +14 -0
- package/dist/provider-auth-choice.runtime.js +1 -1
- package/dist/provider-auth-guidance-Cqo9An-I.js +34 -0
- package/dist/provider-auth-helpers-r9kVb6L3.js +168 -0
- package/dist/provider-auth-input-BfXB22nt.js +117 -0
- package/dist/provider-auth-login-BYMTrXdl.js +8 -0
- package/dist/provider-auth-login.runtime-CCwO-k5h.js +206 -0
- package/dist/provider-auth-login.runtime.js +1 -1
- package/dist/provider-auth-runtime-p93v7b23.js +36 -0
- package/dist/provider-catalog-BA7O6Faq.js +18 -0
- package/dist/provider-catalog-BZJt3Ew2.js +75 -0
- package/dist/provider-catalog-CjNAbR9b.js +12 -0
- package/dist/provider-catalog-CpTP4D3p.js +56 -0
- package/dist/provider-catalog-CzVEmVzS.js +11 -0
- package/dist/provider-catalog-D1iJW59q.js +11 -0
- package/dist/provider-catalog-Dc48HHhB.js +11 -0
- package/dist/provider-catalog-KHD3te_R.js +61 -0
- package/dist/provider-catalog-jKq2UIeG.js +17 -0
- package/dist/provider-catalog-pmlFBXYr.js +26 -0
- package/dist/provider-catalog-shared-Cra7j-_m.js +104 -0
- package/dist/provider-catalog-vjgVLYrd.js +18 -0
- package/dist/provider-catalog-xzYpukvK.js +13 -0
- package/dist/provider-catalog-yaur8Igb.js +16 -0
- package/dist/provider-compat-CCwXKQGq.js +37 -0
- package/dist/provider-discovery-DubIrc_R.js +2 -0
- package/dist/provider-dispatcher-Dl07uV70.js +22 -0
- package/dist/provider-entry-DkwXZuZY.js +97 -0
- package/dist/provider-flow-CmI4jkWV.js +66 -0
- package/dist/provider-http-CHFd_hrC.js +26 -0
- package/dist/provider-iVtrs6XY.js +70 -0
- package/dist/provider-model-shared-CxQysvS-.js +171 -0
- package/dist/provider-models-B3FlcSqf.js +225 -0
- package/dist/provider-models-B63rx638.js +22 -0
- package/dist/provider-models-BXMZj2p1.js +119 -0
- package/dist/provider-models-Bq_MZ0xR.js +35 -0
- package/dist/provider-models-CsUYkHTw.js +116 -0
- package/dist/provider-models-DCvjBHoV.js +169 -0
- package/dist/provider-openai-codex-oauth-tls-DbmKevdp.js +99 -0
- package/dist/provider-registration-DkqLtXSj.js +57 -0
- package/dist/provider-registration-vrLHkywc.js +238 -0
- package/dist/provider-runtime-C_ebc-4l.js +2 -0
- package/dist/provider-runtime-Czioyn5w.js +366 -0
- package/dist/provider-runtime.runtime-lPuF4lqy.js +26 -0
- package/dist/provider-runtime.runtime.js +1 -1
- package/dist/provider-self-hosted-setup-Bjk91HZ7.js +249 -0
- package/dist/provider-setup-hUbxRciz.js +2 -0
- package/dist/provider-stream-DTbeHqKf.js +285 -0
- package/dist/provider-stream-family-Cz7SHqeS.js +2 -0
- package/dist/provider-stream-shared-CTpijFfV.js +80 -0
- package/dist/provider-tools-X4kNlvXF.js +332 -0
- package/dist/provider-usage-4x0im5xP.js +3 -0
- package/dist/provider-usage-CdkW3Bkb.js +289 -0
- package/dist/provider-web-search-CyGNmODH.js +55 -0
- package/dist/provider-web-search-contract-BEZzFHD8.js +12 -0
- package/dist/provider-web-search-contract-fields-DNH2_b3H.js +38 -0
- package/dist/provider-wizard-BPkIa2bk.js +166 -0
- package/dist/providers.runtime-CawuCJXc.js +125 -0
- package/dist/providers.runtime.js +1 -1
- package/dist/proxy-stream-wrappers-BcJuaE24.js +480 -0
- package/dist/push-apns-CO3sqbX3.js +1061 -0
- package/dist/pw-ai-DEf5tZLp.js +2268 -0
- package/dist/qmd-manager-CrqmeTuY.js +1799 -0
- package/dist/qr-cli-g_Pkqstu.js +359 -0
- package/dist/qr-image-DcG1bUox.js +2 -0
- package/dist/queue-BveCZpTb.js +636 -0
- package/dist/realtime-provider-shared-BIili3oc.js +21 -0
- package/dist/realtime-transcription-provider-DqEHy_Jr.js +180 -0
- package/dist/realtime-voice-provider-Dau1KlKK.js +342 -0
- package/dist/record-shared-CC55xbFE.js +10 -0
- package/dist/refresh-BXJ80ji4.js +115 -0
- package/dist/region-CPFmncMW.js +74 -0
- package/dist/register-command-groups-9L1b4CbV.js +121 -0
- package/dist/register.agent-D5el253o.js +241 -0
- package/dist/register.backup-CBhoChp-.js +234 -0
- package/dist/register.configure-DeqUaelp.js +15 -0
- package/dist/register.maintenance-Dv5x9ZE6.js +443 -0
- package/dist/register.message-e2Pbh8A_.js +601 -0
- package/dist/register.migrate-B4iac1EW.js +195 -0
- package/dist/register.onboard-COuTKpAw.js +83 -0
- package/dist/register.runtime-BjOIl4eF.js +81 -0
- package/dist/register.runtime-BzJ6RkQN.js +343 -0
- package/dist/register.runtime.js +1 -1
- package/dist/register.setup-DQYY7K4K.js +104 -0
- package/dist/register.status-health-sessions-CXNGQh_O.js +1211 -0
- package/dist/register.subclis-B6uy_ogx.js +232 -0
- package/dist/register.subclis-Cmdrfiej.js +3 -0
- package/dist/remote-env-DU45InJB.js +12 -0
- package/dist/repair-C8v1vNU-.js +112 -0
- package/dist/replay-policy-BKyiI8sk.js +10 -0
- package/dist/replay-policy-C6igC4nS.js +8 -0
- package/dist/reply-Bd8ShNWW.js +3523 -0
- package/dist/reply-payloads-CFKnBOGu.js +78 -0
- package/dist/reply-payloads-dedupe.runtime.js +1 -1
- package/dist/reply-prefix-D43zayDn.js +33 -0
- package/dist/reply.runtime-ByKwE5dg.js +2 -0
- package/dist/reply.runtime.js +1 -1
- package/dist/resolve-CSTOvc_c.js +280 -0
- package/dist/restart-C0QhPXk1.js +454 -0
- package/dist/restart-handoff-Dd9C10Ns.js +2 -0
- package/dist/restart-health-BAtQdyZh.js +203 -0
- package/dist/restart-health-CnQMSvvJ.js +2 -0
- package/dist/restart-stale-pids-CiBNQGrr.js +529 -0
- package/dist/retry-C1lmuHl8.js +76 -0
- package/dist/retry-policy-B_7wH7D2.js +58 -0
- package/dist/root-help-D2vz4lbV.js +44 -0
- package/dist/route-reply-CXZFXlfK.js +141 -0
- package/dist/route-reply.runtime-BK8V9NEg.js +2 -0
- package/dist/route-reply.runtime.js +1 -1
- package/dist/rpc-f0OkPaI1.js +61 -0
- package/dist/rpc.runtime-BQ78T_pB.js +21 -0
- package/dist/rpc.runtime.js +1 -1
- package/dist/run-main-CkwrrhfI.js +453 -0
- package/dist/run-wait-B4pXPLkF.js +118 -0
- package/dist/runner-BSA9M_M9.js +1497 -0
- package/dist/runs-CEDW87Fd.js +495 -0
- package/dist/runtime-C18YgW822.js +242 -0
- package/dist/runtime-C3OJQ1Xd.js +200 -0
- package/dist/runtime-CDNVtwVk.js +72 -0
- package/dist/runtime-CMNHfJtF.js +725 -0
- package/dist/runtime-C_o_otMV.js +355 -0
- package/dist/runtime-CiJWy5Ce.js +9 -0
- package/dist/runtime-D-PNDlkm.js +35 -0
- package/dist/runtime-D8bLKXLh.js +253 -0
- package/dist/runtime-DM4z9RVx.js +2 -0
- package/dist/runtime-Di50Fr1z.js +191 -0
- package/dist/runtime-W3qG5LHM.js +2 -0
- package/dist/runtime-api-Bx7nlc4w.js +12 -0
- package/dist/runtime-api-DCNC_FTy2.js +2 -0
- package/dist/runtime-api-_Z8MjR0l.js +3 -0
- package/dist/runtime-embedded-pi.runtime-Cv0MW9ps.js +3 -0
- package/dist/runtime-embedded-pi.runtime.js +1 -1
- package/dist/runtime-env-BeD13rEG.js +9 -0
- package/dist/runtime-internal-DclGtT-e.js +2 -0
- package/dist/runtime-manifest.runtime.js +1 -1
- package/dist/runtime-model-auth.runtime-Bjl23_fr.js +39 -0
- package/dist/runtime-model-auth.runtime.js +1 -1
- package/dist/runtime-oEwr_zQb.js +107 -0
- package/dist/runtime-plugins-CwWhqXLJ.js +69 -0
- package/dist/runtime-prepare.runtime-Bi-YD5R-.js +80 -0
- package/dist/runtime-prepare.runtime.js +1 -1
- package/dist/runtime-provider-CSEDbSxr.js +21 -0
- package/dist/runtime-registry-loader-CbbaZCXY.js +58 -0
- package/dist/runtime-registry-loader-kqiMFCUa.js +2 -0
- package/dist/runtime-schema-CDuvvU7B.js +28383 -0
- package/dist/runtime-shared-BxJFDFe6.js +249 -0
- package/dist/runtime-taskflow-RwpXng2l.js +250 -0
- package/dist/runtime-web-channel-plugin-Bw74Ar_q.js +215 -0
- package/dist/runtime-web-tools-CEaAGeYr.js +1467 -0
- package/dist/runtime-web-tools-fallback.runtime-DU8Hp_QZ.js +9 -0
- package/dist/runtime-web-tools-fallback.runtime.js +1 -1
- package/dist/runtime-web-tools-manifest.runtime.js +1 -1
- package/dist/runtime-web-tools-public-artifacts.runtime.js +1 -1
- package/dist/sandbox-BC2XUWcW.js +4 -0
- package/dist/sandbox-cli-ain0MYTB.js +447 -0
- package/dist/sandbox-epLgxWBQ.js +2586 -0
- package/dist/schtasks-CL3tJAH5.js +785 -0
- package/dist/secrets-cli-iLwRZbRt.js +2114 -0
- package/dist/security-audit-DfrokBuq.js +34 -0
- package/dist/security-cli-BqsMM550.js +486 -0
- package/dist/semantic-dedup-BBpIPaSV.js +95 -0
- package/dist/send-C5LHdZqP.js +993 -0
- package/dist/send-media-Df0E2Z_m.js +2123 -0
- package/dist/server-2CD2yd73.js +13 -0
- package/dist/server-B44RMlVT.js +77 -0
- package/dist/server-context-SulhWpXY.js +4164 -0
- package/dist/server-methods-BPzzX5VC.js +11937 -0
- package/dist/server-middleware-WQzQIrD4.js +110 -0
- package/dist/server-node-events-Ug_Atc7G.js +451 -0
- package/dist/server.impl-InfVdwPj.js +19765 -0
- package/dist/service-CK-XuLCu.js +132 -0
- package/dist/service-D9X-uqEA.js +2 -0
- package/dist/service-audit-BQx1zTWD.js +2 -0
- package/dist/service-audit-CQC1FeD7.js +254 -0
- package/dist/session-B5RmIL21.js +48 -0
- package/dist/session-archive.runtime-B1x5wHBw.js +2 -0
- package/dist/session-archive.runtime.js +1 -1
- package/dist/session-conversation-CFty7VTc.js +27 -0
- package/dist/session-cost-usage-CckjvorH.js +2 -0
- package/dist/session-cost-usage-DMRjhi4B.js +648 -0
- package/dist/session-file-DGJqy_ea.js +44 -0
- package/dist/session-fork.runtime.js +1 -1
- package/dist/session-key-D-jBcxEp.js +65 -0
- package/dist/session-meta-BijZlLS3.js +109 -0
- package/dist/session-override-1YQHEAlz.js +103 -0
- package/dist/session-reset-model.runtime-CEWrfXLr.js +120 -0
- package/dist/session-reset-model.runtime.js +1 -1
- package/dist/session-reset-service-Dphtb16d.js +474 -0
- package/dist/session-subagent-reactivation.runtime-CF4aqSpn.js +2 -0
- package/dist/session-subagent-reactivation.runtime.js +1 -1
- package/dist/session-system-events-BSVIh760.js +63 -0
- package/dist/session-tab-registry-DG9SGi0I.js +553 -0
- package/dist/session-updates-BRFvmIoC.js +234 -0
- package/dist/session-updates.runtime-CiHARWGr.js +2 -0
- package/dist/session-updates.runtime.js +1 -1
- package/dist/session-utils-Cai4P9ih.js +930 -0
- package/dist/session-utils.fs-DV8bxCEw.js +537 -0
- package/dist/sessions-BTcXDmCA.js +2 -0
- package/dist/sessions-CyYVTseV.js +45 -0
- package/dist/sessions-Fb0ep3uj.js +231 -0
- package/dist/sessions.runtime-BGyynSR4.js +2 -0
- package/dist/sessions.runtime.js +1 -1
- package/dist/setup-CjEjg8Ci.js +505 -0
- package/dist/setup-D-ypxGnK.js +329 -0
- package/dist/setup-DjympYIJ.js +15 -0
- package/dist/setup-binary-BKTpThn7.js +2 -0
- package/dist/setup-surface-QaubzT60.js +586 -0
- package/dist/setup-tools-6s2MNbj0.js +4 -0
- package/dist/setup-wizard-proxy-BscKn1FO.js +139 -0
- package/dist/setup.finalize-B3MWkUF9.js +436 -0
- package/dist/setup.gateway-config-BdK0tA_r.js +246 -0
- package/dist/shared-0JcWj8-R.js +224 -0
- package/dist/shared-BAqqhcWT.js +127 -0
- package/dist/shared-BOd3OCF0.js +36 -0
- package/dist/shared-D5_A7-ng.js +219 -0
- package/dist/shared-DICWV0-6.js +218 -0
- package/dist/shared-DiGX-JK8.js +137 -0
- package/dist/shared-DktX3NHd.js +175 -0
- package/dist/shared-runtime-BltNIfGY.js +7 -0
- package/dist/short-term-promotion-CT1zdD1r.js +1631 -0
- package/dist/simple-completion-runtime-CZyp8rJ3.js +131 -0
- package/dist/simple-completion-transport-BWyoXghG.js +32 -0
- package/dist/skill-commands-BC_2IdwF.js +82 -0
- package/dist/skill-commands.runtime-BP6BnOeq.js +2 -0
- package/dist/skill-commands.runtime.js +1 -1
- package/dist/skill-lifecycle-DssJKfEF.js +105 -0
- package/dist/skill-quality-gate-CNGgGfsz.js +127 -0
- package/dist/skill-usage-tracker-BXJov40v.js +31 -0
- package/dist/skills-BQX1AsbM.js +4 -0
- package/dist/skills-D7XPR8N-.js +1075 -0
- package/dist/skills-cli-CxmgxC7X.js +382 -0
- package/dist/skills-install-CHUWYiLs.js +822 -0
- package/dist/skills-status-DRTnP8E3.js +170 -0
- package/dist/skills-status-v28wm8HD.js +2 -0
- package/dist/soul-cli-B1-3BHbA.js +110 -0
- package/dist/speech-core-aXx4I3sB.js +126 -0
- package/dist/speech-provider-B2yBILHX.js +101 -0
- package/dist/speech-provider-BTBQ5VOv.js +103 -0
- package/dist/speech-provider-BciszvJf.js +184 -0
- package/dist/speech-provider-BoQDEC_Y.js +167 -0
- package/dist/speech-provider-C-wTEx8k.js +182 -0
- package/dist/speech-provider-DYJcz4pW.js +39 -0
- package/dist/ssh-tunnel-B-uzzPcH.js +2 -0
- package/dist/ssh-tunnel-Bu9s0zUo.js +159 -0
- package/dist/ssrf-runtime-D1skzXnx.js +6 -0
- package/dist/stage-sandbox-media.runtime-DhlTQjXA.js +230 -0
- package/dist/stage-sandbox-media.runtime.js +1 -1
- package/dist/standalone-generate-BRvNW_O7.js +2 -0
- package/dist/standalone-generate-CDfZss4x.js +217 -0
- package/dist/startup-auth-B5V0AaIU.js +151 -0
- package/dist/state-dir-env-Deo1QHMe.js +156 -0
- package/dist/state-migrations-BNib6l8O.js +823 -0
- package/dist/status-8clcfnN0.js +473 -0
- package/dist/status-C9YBVOov.js +278 -0
- package/dist/status-CNcOKUs2.js +500 -0
- package/dist/status-D1l9Tu3s.js +399 -0
- package/dist/status-DKth_wbp.js +2 -0
- package/dist/status-P3bvFirO.js +3 -0
- package/dist/status-TmH9qSMG.js +2 -0
- package/dist/status-all-BeyVXDNT.js +495 -0
- package/dist/status-json-Cj42CVZZ.js +14 -0
- package/dist/status-json-command-DWk5RiyN.js +92 -0
- package/dist/status-runtime-shared-orzti3tZ.js +271 -0
- package/dist/status.agent-local-BEtIuLEr.js +58 -0
- package/dist/status.command.text-runtime-B-tNLc3T.js +15 -0
- package/dist/status.format-VfGIeDvx.js +60 -0
- package/dist/status.gateway-connection.runtime-BrkaJ2f5.js +2 -0
- package/dist/status.gateway-connection.runtime.js +1 -1
- package/dist/status.gateway-probe-BwuiZk1h.js +16 -0
- package/dist/status.link-channel-CxzAOOKY.js +35 -0
- package/dist/status.node-mode-D0ZTWhza.js +2 -0
- package/dist/status.node-mode-DS1aLs_t.js +32 -0
- package/dist/status.scan-DegSjLE2.js +62 -0
- package/dist/status.scan-overview-CrSELCru.js +395 -0
- package/dist/status.scan.deps.runtime-DrUvBz4e.js +18 -0
- package/dist/status.scan.deps.runtime.js +1 -1
- package/dist/status.scan.fast-json-Bm5lN6IK.js +2 -0
- package/dist/status.scan.fast-json-Ch2Zw813.js +128 -0
- package/dist/status.scan.runtime-D-LvzBYN.js +417 -0
- package/dist/status.scan.runtime.js +1 -1
- package/dist/status.summary-OB-43Bvk.js +2 -0
- package/dist/status.summary-gJukahkb.js +209 -0
- package/dist/status.update-BFj-9E8m.js +79 -0
- package/dist/status.update-DYICl5t8.js +2 -0
- package/dist/store-CB-0r9De.js +296 -0
- package/dist/store-D5JODeba.js +421 -0
- package/dist/store-D_vXZ7m9.js +1112 -0
- package/dist/store-yc7MvXdd.js +1075 -0
- package/dist/store.runtime-6eaZtPq6.js +2 -0
- package/dist/store.runtime.js +1 -1
- package/dist/stream-B84y4XQY.js +76 -0
- package/dist/stream-BgcqyefI.js +649 -0
- package/dist/stream-C_VJaXT6.js +26 -0
- package/dist/stream-D5lrRuHb.js +129 -0
- package/dist/stream-DXG7L3j5.js +27 -0
- package/dist/stream-UtEiCziE.js +153 -0
- package/dist/stream-wrappers-B7-5gN0i.js +144 -0
- package/dist/strip-inbound-meta-BSHFFiJd.js +155 -0
- package/dist/subagent-announce.registry.runtime-R2bop0gW.js +3 -0
- package/dist/subagent-announce.registry.runtime.js +1 -1
- package/dist/subagent-control-UyMtkJwo.js +485 -0
- package/dist/subagent-followup.runtime-bTK0TymS.js +68 -0
- package/dist/subagent-followup.runtime.js +1 -1
- package/dist/subagent-list-c0JKZR0g.js +168 -0
- package/dist/subagent-orphan-recovery-CSEzwva5.js +214 -0
- package/dist/subagent-registry-Be219RP1.js +2889 -0
- package/dist/subagent-registry-read-IQtTTWj3.js +57 -0
- package/dist/subagent-registry-runtime-Dk57Y91p.js +2 -0
- package/dist/subagent-registry.runtime-D6h_BK2i.js +3 -0
- package/dist/subagent-registry.runtime.js +1 -1
- package/dist/subagent-spawn-BeyYZuFf.js +782 -0
- package/dist/subagents-format-ZcZBg1Vh.js +629 -0
- package/dist/subcli-descriptors-GyzJF8gS.js +174 -0
- package/dist/supervisor-DVGQ2rPX.js +737 -0
- package/dist/supervisor-log.runtime.js +1 -1
- package/dist/system-cli-_3czEwa7.js +60 -0
- package/dist/system-prompt-BBrWR8Ef.js +711 -0
- package/dist/system-prompt-Dc6Xr30m.js +2 -0
- package/dist/system-prompt-cache-boundary-BqVZ8lnu.js +25 -0
- package/dist/system-run-command-W-wf2HqZ.js +300 -0
- package/dist/systemd-BeYwG5kN.js +591 -0
- package/dist/systemd-hints-BpWajEeA.js +76 -0
- package/dist/systemd-linger-DsTUkfUn.js +68 -0
- package/dist/systemd-linger-X-aDLDla.js +2 -0
- package/dist/tables-BGTNKk6h.js +832 -0
- package/dist/tailscale-status-CCyq-VvN.js +72 -0
- package/dist/targets-BN0-h0GJ.js +300 -0
- package/dist/targets-CXrDP8_l.js +595 -0
- package/dist/targets.runtime-BvBk-CQ8.js +2 -0
- package/dist/targets.runtime.js +1 -1
- package/dist/task-executor-DNUNtRg8.js +350 -0
- package/dist/task-owner-access--E5Vkg9U.js +48 -0
- package/dist/task-registry-COE-B6MO.js +2346 -0
- package/dist/task-registry-control.runtime-BzsTfRw1.js +3 -0
- package/dist/task-registry-control.runtime.js +1 -1
- package/dist/task-registry-delivery-runtime-Cv6xz8KP.js +2 -0
- package/dist/task-registry-delivery-runtime-DSfcd2LA.js +3 -0
- package/dist/task-registry.maintenance-Bhd9abl9.js +2 -0
- package/dist/task-registry.maintenance-W3lTkY0l.js +425 -0
- package/dist/test.DNmyFkvJ-CWD5psK-.js +13549 -0
- package/dist/testing-CQ_-oCQB.js +441 -0
- package/dist/text-report-BgqWDKJR.js +587 -0
- package/dist/text-runtime-asv4kIxS.js +313 -0
- package/dist/thread-bindings-BCRWofo_.js +223 -0
- package/dist/tool-auth-shared-BWZwTobX.js +53 -0
- package/dist/tool-config-shared-BleK697I.js +19 -0
- package/dist/tool-schema-runtime-DZsW_KR4.js +1892 -0
- package/dist/tools-C7lv9rSD.js +110 -0
- package/dist/tools-effective-inventory-SB9JwX-y.js +152 -0
- package/dist/tools.runtime-J5rhfXQp.js +4 -0
- package/dist/tools.runtime.js +1 -1
- package/dist/transcript-B8bIvyol.js +2 -0
- package/dist/transcript-CxdKo8Wl.js +222 -0
- package/dist/transcript-DxWx6dVc.js +233 -0
- package/dist/transcript.runtime-CmBnobSv.js +2 -0
- package/dist/transcript.runtime.js +1 -1
- package/dist/transport-policy-BGfaKNz0.js +75 -0
- package/dist/transport-ready-MwpvBxBB.js +36 -0
- package/dist/tts-C1GyTLOi.js +31 -0
- package/dist/tts-JSdoZrZA.js +40 -0
- package/dist/tts.runtime-Bz1k778L.js +3 -0
- package/dist/tts.runtime.js +1 -1
- package/dist/tui-Cqdp1x16.js +4018 -0
- package/dist/tui-cli-BC4O3H6r.js +31 -0
- package/dist/typing-mode-BoJYxUas.js +84 -0
- package/dist/undici-global-dispatcher-BLnQvRel.js +99 -0
- package/dist/uninstall-BIQ5bjBC.js +172 -0
- package/dist/update-BrD8yWSp.js +1253 -0
- package/dist/update-check-gcnsxBqT.js +431 -0
- package/dist/update-cli-BzaCTuax.js +1779 -0
- package/dist/update-runner-Cvxezvhf.js +1492 -0
- package/dist/usage-CG1Nshi3.js +71 -0
- package/dist/usage-format-DQTT4pqY.js +507 -0
- package/dist/usage-format-sR4xu0xw.js +2 -0
- package/dist/utils-CBnbWiRL.js +189 -0
- package/dist/video-generation-CksImGdK.js +167 -0
- package/dist/video-generation-provider-7YR4_ldd.js +171 -0
- package/dist/video-generation-provider-AlAZkYIW.js +181 -0
- package/dist/video-generation-provider-BEqi4pUJ.js +104 -0
- package/dist/video-generation-provider-CraaZaR7.js +77 -0
- package/dist/video-generation-provider-CuvO2Hzh.js +246 -0
- package/dist/video-generation-provider-D-t16ACe.js +240 -0
- package/dist/video-generation-provider-DeowxvLt.js +233 -0
- package/dist/video-generation-provider-HbOZ3qzI.js +227 -0
- package/dist/video-generation-provider-_apx1yFE.js +263 -0
- package/dist/video-generation-provider-bvpb6cdV.js +64 -0
- package/dist/video-http-DRLB0lIA.js +29 -0
- package/dist/video-model-catalog-BE5LhQSo.js +187 -0
- package/dist/web-fetch-providers.runtime-m66rypbB.js +33 -0
- package/dist/web-fetch-providers.runtime.js +1 -1
- package/dist/web-media-BYZC5tOg.js +330 -0
- package/dist/web-media-DKpK9EDb.js +2 -0
- package/dist/web-search-DSDz1iyf.js +221 -0
- package/dist/web-search-provider-DnYRRBVM.js +155 -0
- package/dist/web-search-provider-common-B9jozd8T.js +206 -0
- package/dist/web-search-provider-config-DCqeS6ct.js +52 -0
- package/dist/web-search-providers.runtime-Cv56XIGr.js +206 -0
- package/dist/web-search-providers.runtime.js +1 -1
- package/dist/web-shared--44LWgiH.js +414 -0
- package/dist/webhooks-cli-DQ_JTSNA.js +321 -0
- package/dist/workspace-CuBIOQ7n.js +306 -0
- package/dist/x-search-shared-DKPdPR5_.js +109 -0
- package/docs/platforms/termux.md +47 -0
- package/package.json +1 -1
- package/scripts/postinstall-bundled-plugins.mjs +1 -1
- package/dist/abort-cutoff.runtime-D-lbC9pe.js +0 -20
- package/dist/abort-f4MVTGHG.js +0 -202
- package/dist/abort-primitives-B6Qmun6I.js +0 -93
- package/dist/abort.runtime-CT-b0BZ6.js +0 -2
- package/dist/account-action-gate-BT_vXl45.js +0 -114
- package/dist/acp-cli-BIxxrCHO.js +0 -2171
- package/dist/acp-spawn-BAWg4qLm.js +0 -1024
- package/dist/acp-stateful-target-driver-8BC9cYRV.js +0 -88
- package/dist/action-agents-DvCfYb6Z.js +0 -67
- package/dist/action-focus-CbhWsRP9.js +0 -124
- package/dist/action-help-C851nJ6a.js +0 -7
- package/dist/action-info-Dds2t3iQ.js +0 -58
- package/dist/action-kill-B37zrHxb.js +0 -33
- package/dist/action-list-IuwtwBeu.js +0 -21
- package/dist/action-log-C8PlZdLy.js +0 -30
- package/dist/action-send-BNxBDuTc.js +0 -39
- package/dist/action-spawn-DlOYaba6.js +0 -46
- package/dist/action-unfocus-BIqluT1T.js +0 -28
- package/dist/agent-3PHkVvAe.js +0 -2
- package/dist/agent-command-C5Xt1hn0.js +0 -1479
- package/dist/agent-list-3PG6_Efg.js +0 -67
- package/dist/agent-runner-utils-DJvfzu40.js +0 -202
- package/dist/agent-runner.runtime-CMkbJlNP.js +0 -2825
- package/dist/agents-DKfujTrw.js +0 -887
- package/dist/agents-zm3fl28x.js +0 -5
- package/dist/allow-from-REaY_RBI.js +0 -164
- package/dist/anthropic-cache-control-payload-CvmvKgnD.js +0 -28
- package/dist/anthropic-payload-policy-CANcBjYh.js +0 -136
- package/dist/anthropic-vertex-stream-BaVLrx0V.js +0 -5666
- package/dist/api-2zjn_e7O.js +0 -19
- package/dist/api-BQr2q6_t.js +0 -4
- package/dist/api-BUgkRX8J.js +0 -2
- package/dist/api-Bt3NjHXq.js +0 -2
- package/dist/api-Bx2CFNaV.js +0 -45
- package/dist/api-CGjh29Sn.js +0 -3
- package/dist/api-CafX9ntL.js +0 -5
- package/dist/api-Cg5HZ6tl.js +0 -35
- package/dist/api-Cl6p3xM5.js +0 -2
- package/dist/api-CvN3buT5.js +0 -3
- package/dist/api-D0lK_Z09.js +0 -4
- package/dist/api-D7OkY2ha.js +0 -5
- package/dist/api-jjRkd0P3.js +0 -2
- package/dist/apply-BsZfM6Et.js +0 -493
- package/dist/apply.runtime-5whx300m.js +0 -166
- package/dist/apply.runtime-CLuFK3gk.js +0 -2
- package/dist/approval-client-helpers-Zaq3P9hT.js +0 -82
- package/dist/approval-gateway-resolver-DR-gkHMR.js +0 -58
- package/dist/approval-gateway-runtime-Bik0UBZF.js +0 -2
- package/dist/approval-handler-runtime-ChSsiysV.js +0 -439
- package/dist/approval-native-helpers-Dy60ZISZ.js +0 -33
- package/dist/approval-native-runtime-CXWGiUWA.js +0 -709
- package/dist/approval-renderers-DIuHRnBC.js +0 -64
- package/dist/audit-B6y81bdh.js +0 -885
- package/dist/audit-extra.async-Ck--K1W3.js +0 -847
- package/dist/audit.deep.runtime-C-cBrm0D.js +0 -2
- package/dist/audit.nondeep.runtime-DoE__Egq.js +0 -859
- package/dist/audit.runtime-IolMbix9.js +0 -7
- package/dist/auth-Bn4U0W36.js +0 -181
- package/dist/auth-choice-CFCE2lnL.js +0 -353
- package/dist/auth-choice-DNT3vqLj.js +0 -71
- package/dist/auth-choice-DSvRrafM.js +0 -3
- package/dist/auth-choice-options-CjOGl86G.js +0 -104
- package/dist/auth-choice-prompt-DethoDfy.js +0 -2
- package/dist/auth-choice-prompt-gzfGxEDS.js +0 -36
- package/dist/auth-choice.apply-helpers-Dj-d59IP.js +0 -2
- package/dist/auth-choice.plugin-providers.runtime-CX8AYJqj.js +0 -11
- package/dist/auth-health-DRSKAT80.js +0 -165
- package/dist/auth-profiles-BCAAlKMo.js +0 -438
- package/dist/auth-profiles.runtime-DsG_oD9s.js +0 -7
- package/dist/auto-disable-BQOHkr64.js +0 -2
- package/dist/auto-disable-DjpDISYk.js +0 -69
- package/dist/auto-recall-D-NhJBRA.js +0 -78
- package/dist/backup-create-DOXA9k65.js +0 -391
- package/dist/banner--gau7tjH.js +0 -2
- package/dist/banner-hOncQFT2.js +0 -281
- package/dist/binding-routing-DTW9nxjk.js +0 -50
- package/dist/binding-targets-l8eRvEwa.js +0 -99
- package/dist/block-streaming-CEz8_YvV.js +0 -103
- package/dist/bootstrap-files-MSqLqaFY.js +0 -206
- package/dist/bridge-server-DwE8zfJM.js +0 -103
- package/dist/browser-config-runtime-Dh8sLJM5.js +0 -6
- package/dist/browser-control-auth-1ZBLoiPo.js +0 -120
- package/dist/browser-node-runtime-pJbk47Fh.js +0 -12
- package/dist/browser-open-BP0tUM0r.js +0 -94
- package/dist/browser-profiles-23asqolb.js +0 -170
- package/dist/browser-runtime-H_R2tXVt.js +0 -377
- package/dist/browser-security-runtime-Ci12HfND.js +0 -10
- package/dist/browser-setup-tools-Dqro1AjE.js +0 -12
- package/dist/btw-command-YUgszbXM.js +0 -17
- package/dist/call-DL6LtukH.js +0 -2
- package/dist/call-DOfj00l8.js +0 -495
- package/dist/call.runtime-TvKrmg7B.js +0 -2
- package/dist/capability-cli-D-kRACJl.js +0 -1357
- package/dist/catalog-provider-DLOYEKT0.js +0 -40
- package/dist/cdp.helpers-Bpj6w6qw.js +0 -372
- package/dist/channel-config-helpers-XmE0KJZk.js +0 -462
- package/dist/channel-core-D7a3TBGx.js +0 -5
- package/dist/channel-feedback-1aAUqgjY.js +0 -259
- package/dist/channel-plugin-resolution-Bg9imchm.js +0 -146
- package/dist/channel-policy-B4aZ_llS.js +0 -270
- package/dist/channel-reply-pipeline-CKLpE2fN.js +0 -26
- package/dist/channel-runtime-B5LPKA4v.js +0 -6
- package/dist/channel-summary-CKKb_Yip.js +0 -2
- package/dist/channel-summary-qu8GdDSR.js +0 -139
- package/dist/channel.runtime-BQ2sQS76.js +0 -399
- package/dist/channels-Dnebu-Z2.js +0 -1146
- package/dist/channels-cli-CrrYDwyP.js +0 -248
- package/dist/chat-C7d4yEQj.js +0 -213
- package/dist/chat-history-text-BzdTyI1F.js +0 -42
- package/dist/chrome-BrX1X-Xu.js +0 -1080
- package/dist/chrome.executables-D9AsUrzE.js +0 -550
- package/dist/chunk-DgPObAqu.js +0 -267
- package/dist/clack-prompter-dDhoBpFq.js +0 -113
- package/dist/clawhub-BZ4uIkf9.js +0 -400
- package/dist/cli-CbzczoYW.js +0 -57
- package/dist/cli-DUHNTnCc.js +0 -2
- package/dist/cli-DWdaFLjz.js +0 -2
- package/dist/cli-DdsJJ5_Z.js +0 -191
- package/dist/cli-DgxZqXoY.js +0 -154
- package/dist/cli-auth-seam-ms_Y9P0q.js +0 -14
- package/dist/cli-backend-8ivUo47l.js +0 -66
- package/dist/cli-migration-D4Ed8qCX.js +0 -127
- package/dist/cli-runner-Crv7rNhq.js +0 -1662
- package/dist/cli-runner.runtime-CCXup5Mk.js +0 -3
- package/dist/cli-runner.runtime-CXhvyxfI.js +0 -2
- package/dist/cli-runtime-BTdQg8Pm.js +0 -3
- package/dist/cli-shared-BlHdVi2I.js +0 -142
- package/dist/cli.runtime-DM1J_Mdq.js +0 -819
- package/dist/client-bootstrap-C-meQM4y.js +0 -28
- package/dist/codex-native-web-search-2aA4uR0A.js +0 -149
- package/dist/codex-native-web-search-Dcc5Voe_.js +0 -2
- package/dist/collector-CM6e07XI.js +0 -2
- package/dist/collector-D2Y5qkIr.js +0 -349
- package/dist/command-auth-SFBdAt8s.js +0 -75
- package/dist/command-config-resolution-00LeDa9E.js +0 -23
- package/dist/command-config-resolution-CFoxxgJv.js +0 -2
- package/dist/command-detection-q0CJzVXY.js +0 -50
- package/dist/command-execution-startup-CDFlXP-H.js +0 -269
- package/dist/command-format-C4Pb3hfN.js +0 -2
- package/dist/command-queue-pXNZboyT.js +0 -260
- package/dist/command-registry-Bo7XSe1Q.js +0 -3
- package/dist/command-registry-CIJHAcQl.js +0 -113
- package/dist/command-secret-gateway-Dge_nif2.js +0 -528
- package/dist/command-status-builders-DykmScCm.js +0 -145
- package/dist/commands-acp-DMtvZXhv.js +0 -1017
- package/dist/commands-compact.runtime-DVcam08G.js +0 -10
- package/dist/commands-context-B5MBVGe2.js +0 -34
- package/dist/commands-core.runtime-hitqnxeE.js +0 -2
- package/dist/commands-handlers.runtime-bzi2wxAt.js +0 -3762
- package/dist/commands-models-DUISkN0p.js +0 -306
- package/dist/commands-registry-vcJhtPD2.js +0 -295
- package/dist/commands-registry.runtime-BYfD9VYg.js +0 -2
- package/dist/commands-reset-hooks-Dh86NTWQ.js +0 -129
- package/dist/commands-status-BSy7MtCk.js +0 -223
- package/dist/commands-status.runtime-Ck7v0LZJ.js +0 -2
- package/dist/commands-subagents-control.runtime-BeqJMQDW.js +0 -2
- package/dist/commands-subagents-control.runtime-BqdBqL9t.js +0 -3
- package/dist/commands.runtime-Gc7qJA-c.js +0 -103
- package/dist/comment-shared-DH9DoH_x.js +0 -40
- package/dist/compact-3ebI-sS9.js +0 -11324
- package/dist/compact.runtime-BPETvMY-.js +0 -7
- package/dist/completion-cli-CjXlpMci.js +0 -468
- package/dist/completion-cli-vslfbC9X.js +0 -2
- package/dist/config-B8yp5kYn.js +0 -136
- package/dist/config-CCY-pig0.js +0 -8
- package/dist/config-DNuLuSsf.js +0 -166
- package/dist/config-DSwbWXI1.js +0 -53
- package/dist/config-cli-VD6OEYW6.js +0 -948
- package/dist/config-defaults-qktW8sQ3.js +0 -163
- package/dist/config-guard-BSmnvKrj.js +0 -94
- package/dist/config-runtime-C6I-HVna.js +0 -14
- package/dist/config-validation-1MYzzOwN.js +0 -279
- package/dist/configure-DR28xSJH.js +0 -1161
- package/dist/configure-DlDeWMkO.js +0 -2
- package/dist/connection-auth-D-SqlhKg.js +0 -30
- package/dist/context-B5SnLjZO.js +0 -249
- package/dist/context-DFv9P-FH.js +0 -2
- package/dist/context-builder-D_FDDuDM.js +0 -2
- package/dist/context-visibility-2p0h1zWp.js +0 -14
- package/dist/context-writer-CeQDqgjO.js +0 -290
- package/dist/control-auth-DnYOaHsI.js +0 -122
- package/dist/control-ui/assets/agents-C1zCMAtn.js +0 -767
- package/dist/control-ui/assets/anthropic-CJRRuMgc.js +0 -40
- package/dist/control-ui/assets/azure-openai-responses-Di59_Cmp.js +0 -2
- package/dist/control-ui/assets/cron-D6g52nqI.js +0 -744
- package/dist/control-ui/assets/dialogues-DYAUErGq.js +0 -83
- package/dist/control-ui/assets/history-DYm34nRN.js +0 -71
- package/dist/control-ui/assets/index-B2vTvM2B.js +0 -2622
- package/dist/control-ui/assets/index-d3bUvw-B.css +0 -1
- package/dist/control-ui/assets/mistral-BZ0vS_iC.js +0 -72
- package/dist/control-ui/assets/openai-codex-responses-DzDPSQ5h.js +0 -8
- package/dist/control-ui/assets/openai-completions-QU8QkVDL.js +0 -6
- package/dist/control-ui/assets/openai-responses-CcWHDwZi.js +0 -2
- package/dist/control-ui/assets/openai-responses-shared-CM1nnVm8.js +0 -13
- package/dist/control-ui-links-DEuG_GSl.js +0 -70
- package/dist/conversation-id-YKsAPevE.js +0 -140
- package/dist/conversation-runtime-CbQInS0o.js +0 -31
- package/dist/core-Ci2tfNDf.js +0 -210
- package/dist/core-command-descriptors-D4olju_R.js +0 -112
- package/dist/cron-cli-CZOqbORC.js +0 -637
- package/dist/curator-CNQLoxP-.js +0 -2
- package/dist/curator-CS2qQobF.js +0 -598
- package/dist/daemon-cli-C5yHexZ5.js +0 -476
- package/dist/daemon-install-CTt5WwKP.js +0 -70
- package/dist/delegate-DtePi541.js +0 -61
- package/dist/deliver-Ckh3gTn8.js +0 -782
- package/dist/deliver-OgIjEM9H.js +0 -3
- package/dist/deliver-runtime-Bkv7BCow.js +0 -2
- package/dist/delivery-outbound.runtime-BCeIkXYz.js +0 -6
- package/dist/delivery-queue-DkWo6Ph_.js +0 -372
- package/dist/delivery-queue-W1vbRb8L.js +0 -2
- package/dist/deps-DbatnFkY.js +0 -60
- package/dist/detect-CzoDsq6C.js +0 -113
- package/dist/device-bootstrap-D8veEU4x.js +0 -4
- package/dist/device-bootstrap-DyTx6egK.js +0 -248
- package/dist/device-bootstrap-profile-I2zbsVdf.js +0 -36
- package/dist/device-identity-HSVRQkzQ.js +0 -2
- package/dist/device-pairing-BCo5v6N5.js +0 -600
- package/dist/devices-cli-B1O89aja.js +0 -336
- package/dist/diagnostic-Ds3dY4QI.js +0 -311
- package/dist/diagnostics-DPXDETG1.js +0 -2
- package/dist/diagnostics-QjuefiNT.js +0 -33
- package/dist/direct-dm-C8F1_e3A.js +0 -139
- package/dist/directive-handling.fast-lane-C8OicY17.js +0 -64
- package/dist/directive-handling.fast-lane-Dpi7fuWl.js +0 -2
- package/dist/directive-handling.impl-C1LcSNWm.js +0 -659
- package/dist/directive-handling.impl-DkIUEEHV.js +0 -2
- package/dist/directive-handling.parse-BLNxH-OL.js +0 -376
- package/dist/directive-handling.persist-Blk7POiT.js +0 -139
- package/dist/directive-handling.persist.runtime-DfgDPqlm.js +0 -2
- package/dist/directive-handling.shared-BTc8BSk8.js +0 -159
- package/dist/directory-cli-p4-6gL8K.js +0 -240
- package/dist/dispatch-CTsZMdlK.js +0 -1126
- package/dist/dispatch-acp-D_YySGLh.js +0 -969
- package/dist/dispatch-acp-command-bypass-DxDV0zYx.js +0 -38
- package/dist/dispatch-acp-manager.runtime-BFUXpAra.js +0 -3
- package/dist/dispatch-acp-media.runtime-DTMhMdh7.js +0 -3
- package/dist/dispatch-acp-session.runtime-Bv71yGqh.js +0 -2
- package/dist/dispatch-acp-tts.runtime-C7s5Bvqa.js +0 -3
- package/dist/dispatch-acp.runtime-BRB1Cg-T.js +0 -19
- package/dist/dns-cli-C7kZ35HQ.js +0 -193
- package/dist/docker-WeeHs5I_.js +0 -826
- package/dist/docs-cli-RFkNh5UP.js +0 -156
- package/dist/doctor-completion-B0xrCws1.js +0 -90
- package/dist/doctor-config-preflight-DUoMyrCF.js +0 -148
- package/dist/doctor-config-preflight-DWWImrXw.js +0 -2
- package/dist/doctor-state-migrations-B4I2_V16.js +0 -2
- package/dist/doctor-state-migrations-nhfeI2B0.js +0 -3
- package/dist/drive--6to33M3.js +0 -718
- package/dist/embedding-provider-BtkFLfRN.js +0 -26
- package/dist/embedding-provider-DgONMEgu.js +0 -33
- package/dist/embedding-provider-ZLwH2prV.js +0 -129
- package/dist/engine-CsT7VerD.js +0 -72
- package/dist/engine-embeddings-BpEydMJi.js +0 -1489
- package/dist/entry-capabilities-DuKEdmG2.js +0 -89
- package/dist/env-overrides-6Wa5Xk0N.js +0 -347
- package/dist/env-overrides.runtime-DH3Daeun.js +0 -7
- package/dist/exec-approval-forwarder.runtime-Au-VUhpk.js +0 -3
- package/dist/exec-approval-reply-2-xn0vFY.js +0 -292
- package/dist/exec-approval-session-target-B9-fNjez.js +0 -165
- package/dist/exec-approvals-cli-DWNqy_yE.js +0 -485
- package/dist/exec-defaults-3zZOuu5Q.js +0 -1440
- package/dist/extensions/diffs/node_modules/typebox/build/schema/resolve/ref.d.mts +0 -4
- package/dist/extensions/diffs/node_modules/typebox/build/schema/resolve/ref.mjs +0 -156
- package/dist/extensions/feishu/node_modules/typebox/build/schema/resolve/ref.d.mts +0 -4
- package/dist/extensions/feishu/node_modules/typebox/build/schema/resolve/ref.mjs +0 -156
- package/dist/extensions/kindle-portal/node_modules/typebox/build/schema/resolve/ref.d.mts +0 -4
- package/dist/extensions/kindle-portal/node_modules/typebox/build/schema/resolve/ref.mjs +0 -156
- package/dist/extra-params-Ujx7IlOq.js +0 -295
- package/dist/fetch-DnGnGfIj.js +0 -65
- package/dist/fetch-PlNhlY1D.js +0 -256
- package/dist/fetch-guard-DjigeYAg.js +0 -224
- package/dist/format-CcwaoG_5.js +0 -245
- package/dist/fragment-collector-BxoA9LrO.js +0 -189
- package/dist/fragment-store-CH-ruSJT.js +0 -2
- package/dist/fragment-store-lmF5kmGt.js +0 -230
- package/dist/gateway-DML9FbXS.js +0 -2
- package/dist/gateway-cli-DdtDWIYS.js +0 -1532
- package/dist/gateway-discovery-targets-D2lBNlv8.js +0 -431
- package/dist/gateway-install-token-DzTk4pqb.js +0 -284
- package/dist/gateway-lock-CeDiGyTv.js +0 -238
- package/dist/gateway-mGyPIOuQ.js +0 -119
- package/dist/gateway-rpc-DSe_1f9v.js +0 -14
- package/dist/gateway-rpc.runtime-7zGvUGmX.js +0 -23
- package/dist/gateway-secret-options-C4M1UPRj.js +0 -38
- package/dist/gemini-cli-provider-CxLrsVzr.js +0 -106
- package/dist/gemini-web-search-provider-CXr5noNb.js +0 -167
- package/dist/get-reply-from-config.runtime-22OaqrkY.js +0 -2
- package/dist/git-commit-CmbQ0R7l.js +0 -2
- package/dist/gmail-setup-utils-CYfpQJf3.js +0 -422
- package/dist/group-policy-F3YMiMAb.js +0 -202
- package/dist/hard-trigger-Cj2nYtiI.js +0 -106
- package/dist/health-BOflqD4z.js +0 -2
- package/dist/health-DJr5eOoL.js +0 -579
- package/dist/heartbeat-OI7GfQHK.js +0 -184
- package/dist/heartbeat-runner-DoT-pE2K.js +0 -4
- package/dist/heartbeat-runner-Urusnt52.js +0 -1289
- package/dist/heartbeat-runner.runtime-CyMxa8lC.js +0 -2
- package/dist/heartbeat-summary-Brqv8KYX.js +0 -58
- package/dist/heartbeat-visibility-D03CCH71.js +0 -81
- package/dist/help-DsZQFu6h.js +0 -76
- package/dist/hooks-cli-CL7QLMtO.js +0 -364
- package/dist/hooks-status-B5Zkfd83.js +0 -86
- package/dist/identity-Bxp0hRpo.js +0 -30
- package/dist/identity-avatar-Di47l4kX.js +0 -87
- package/dist/image-E9tFaoF0.js +0 -152
- package/dist/image-generation-core-BFD6kQaR.js +0 -17
- package/dist/image-generation-core.auth.runtime-BXxkxK67.js +0 -2
- package/dist/image-generation-provider-B6Mys52b.js +0 -280
- package/dist/image-generation-provider-Bkh8lMdL.js +0 -163
- package/dist/image-generation-provider-BsUqjrhi.js +0 -130
- package/dist/image-generation-provider-C_Gpk9aj.js +0 -136
- package/dist/image-generation-provider-ClCCfRD1.js +0 -94
- package/dist/image-generation-provider-CvFrycEI.js +0 -86
- package/dist/image-generation-runtime-DF454sB4.js +0 -2
- package/dist/image-runtime-Bz6kPBoi.js +0 -7
- package/dist/images-DKmW2P-z.js +0 -586
- package/dist/inbound-reply-dispatch-Bc1Q_xbX.js +0 -73
- package/dist/inbound.runtime-BBS9vn45.js +0 -4
- package/dist/inbound.runtime-CRXEfsJb.js +0 -3
- package/dist/infra-runtime-D2zkJhi6.js +0 -25
- package/dist/ingest-CaRlpNoI.js +0 -842
- package/dist/ingest-DVDjSnJ2.js +0 -2
- package/dist/input-files-CoHcEEch.js +0 -252
- package/dist/inspect-DOgFXMYn.js +0 -2
- package/dist/inspect-Ysjfnqlj.js +0 -282
- package/dist/install-8dxMsCGR.js +0 -662
- package/dist/install-security-scan-BGKx7npE.js +0 -22
- package/dist/install-security-scan.runtime-CM3pdRz_.js +0 -299
- package/dist/install-skills-CcCqsJDw.js +0 -70
- package/dist/install.runtime-BcE_gljl.js +0 -12
- package/dist/install.runtime-CXaroKqa.js +0 -27
- package/dist/io-CFug8sfU.js +0 -5
- package/dist/io-jqC0nnCj.js +0 -7181
- package/dist/issue-format-DjVI0gtD.js +0 -2
- package/dist/kaijibot-tools-CWU_rxa1.js +0 -9434
- package/dist/kaijibot-tools.runtime-BdkiUHPr.js +0 -2
- package/dist/kill-tree-0Qfa0fPs.js +0 -2
- package/dist/kimi-web-search-provider-D88yKthU.js +0 -308
- package/dist/launchd-upj2lSvL.js +0 -556
- package/dist/library-DupTA6t-.js +0 -45
- package/dist/lifecycle-core-BgkN5Ivp.js +0 -422
- package/dist/list.runtime-AlXBW4vo.js +0 -12
- package/dist/list.runtime-DayQOc4X.js +0 -9
- package/dist/llm-draft-generator-Bm97qKX4.js +0 -2
- package/dist/llm-draft-generator-DNcNszu5.js +0 -567
- package/dist/llm-engine-CiiuwTwC.js +0 -1792
- package/dist/llm-engine-Ur1T1MqO.js +0 -2
- package/dist/llm-extractor-De2TMG0s.js +0 -445
- package/dist/load-context-DegYZsvB.js +0 -51
- package/dist/logging-Cye_Xa4w.js +0 -13
- package/dist/logging-DTZsIROt.js +0 -2
- package/dist/login-B8M7ZMjk.js +0 -108
- package/dist/logs-cli-BOmoQIQo.js +0 -264
- package/dist/logs-cli.runtime-eBdNRC2O.js +0 -2
- package/dist/manager-BK_yf4TA.js +0 -3314
- package/dist/manager-D9txET8l.js +0 -2049
- package/dist/markdown-tables-DQxQ2v3M.js +0 -51
- package/dist/mcp-cli-BjyTsaR8.js +0 -733
- package/dist/mcp-config-C1hTLHpm.js +0 -115
- package/dist/media-models-CuHKr-jc.js +0 -49
- package/dist/media-runtime-to7sOM_Y.js +0 -312
- package/dist/media-understanding-BUPY06pW.js +0 -83
- package/dist/media-understanding-provider-2O5CWfpE.js +0 -21
- package/dist/media-understanding-provider-B27RH58K.js +0 -67
- package/dist/media-understanding-provider-B9cOLnSy.js +0 -13
- package/dist/media-understanding-provider-BBBobR_S.js +0 -14
- package/dist/media-understanding-provider-Btuo9DtU.js +0 -18
- package/dist/media-understanding-provider-D25JjKp6.js +0 -18
- package/dist/media-understanding-provider-D2MPF86c.js +0 -30
- package/dist/media-understanding-provider-DZRMrC7u.js +0 -123
- package/dist/media-understanding-provider-Dn1_mRNP.js +0 -112
- package/dist/media-understanding-provider-Q0qUL2Xc.js +0 -69
- package/dist/media-understanding-provider-SbIinVQB.js +0 -37
- package/dist/media-understanding-runtime-mR4yaZPY.js +0 -2
- package/dist/memory-BSChYKnu.js +0 -242
- package/dist/memory-CS0PpaBY.js +0 -3
- package/dist/memory-core-host-engine-embeddings-CwflR2IF.js +0 -2
- package/dist/memory-core-host-engine-foundation-CT4BWopI.js +0 -11
- package/dist/memory-core-host-runtime-cli-RmKhX5yL.js +0 -9
- package/dist/memory-core-host-runtime-core-CHMXUkUu.js +0 -8
- package/dist/memory-embedding-adapter-Be7sgtnM.js +0 -33
- package/dist/memory-host-search.runtime-BgQBV8Fk.js +0 -2
- package/dist/memory-index-CtBBLME7.js +0 -514
- package/dist/memory-index-DNq40JEQ.js +0 -2
- package/dist/memory-runtime-CPNFah1O.js +0 -26
- package/dist/memory-runtime-xc6oO34R.js +0 -2
- package/dist/message-BjXihlGd.js +0 -223
- package/dist/message-action-runner-BxfzjS-u.js +0 -1628
- package/dist/message-action-runner-C_LnF0uN.js +0 -2
- package/dist/message.config.runtime-DT-WFPwG.js +0 -3
- package/dist/message.gateway.runtime-D-4ACz7z.js +0 -2
- package/dist/metadata-registry-loader-Cq9GeiUK.js +0 -15
- package/dist/metadata-registry-loader-DKg37M29.js +0 -2
- package/dist/method-scopes-BNCaRohy.js +0 -2882
- package/dist/minimax-vlm-XkKlqE0H.js +0 -183
- package/dist/minimax-web-search-provider-Baj_6j_7.js +0 -165
- package/dist/mmr-CUCGW0Nx.js +0 -146
- package/dist/model-CZ_a3HtW.js +0 -630
- package/dist/model-auth-BZ5kt-1f.js +0 -427
- package/dist/model-auth-env-Ckzim7ba.js +0 -2
- package/dist/model-auth-env-qNUE5jbD.js +0 -53
- package/dist/model-auth-label-LN4o5uqO.js +0 -45
- package/dist/model-catalog-DIUg3n77.js +0 -204
- package/dist/model-definitions-DJm7w6s6.js +0 -74
- package/dist/model-definitions-DgGu9VIM.js +0 -258
- package/dist/model-discovery-live.runtime-B_7x6hLb.js +0 -419
- package/dist/model-discovery-modelsdev-B_Cpy5zK.js +0 -174
- package/dist/model-picker-D4_-5f9B.js +0 -3
- package/dist/model-picker-DvArjhst.js +0 -490
- package/dist/model-picker.runtime-Dj3FkZ-S.js +0 -15
- package/dist/model-selection-ByfoGmCG.js +0 -381
- package/dist/model-suppression-D2CmPrIy.js +0 -28
- package/dist/model-suppression.runtime-CIjX9NlA.js +0 -7
- package/dist/models-9mxq_QiD.js +0 -2
- package/dist/models-B5klbRNl.js +0 -18
- package/dist/models-BEEXc36p.js +0 -166
- package/dist/models-BcADhq5N.js +0 -126
- package/dist/models-CM9-QkVe.js +0 -19
- package/dist/models-CjYlowYN.js +0 -555
- package/dist/models-DG2rsESP.js +0 -157
- package/dist/models-DR12QL2c.js +0 -47
- package/dist/models-DaLjq4r0.js +0 -18
- package/dist/models-cli-CeRr4GDr.js +0 -198
- package/dist/models-config-BFlDXU_f.js +0 -900
- package/dist/models-config.providers.secrets-BzYBOrUA.js +0 -299
- package/dist/models-pvzUdDkE.js +0 -2584
- package/dist/models-qhmey5pY.js +0 -760
- package/dist/models.fetch-M6V7bcX_.js +0 -518
- package/dist/monitor-BLmIpjr8.js +0 -4435
- package/dist/monitor-DsXA1TBF.js +0 -1023
- package/dist/music-generation-provider-BxRuGWj1.js +0 -169
- package/dist/music-generation-provider-ByrJF4DP.js +0 -238
- package/dist/music-generation-provider-CLvSbBFV.js +0 -142
- package/dist/node-cli-CSl9YNEF.js +0 -2374
- package/dist/node-command-policy-NrFO7Yy5.js +0 -205
- package/dist/node-service-C5TgmiSv.js +0 -69
- package/dist/nodes-cli-CYYhr2Cr.js +0 -1046
- package/dist/nodes-screen-DXF9W1E2.js +0 -216
- package/dist/nodes-utils-DitAVxex.js +0 -196
- package/dist/nodes.helpers-3JZhoraJ.js +0 -34
- package/dist/normalize-reply-lOvnPpkZ.js +0 -72
- package/dist/note-C-MCr2CR.js +0 -110
- package/dist/notify-Bnyw52y9.js +0 -305
- package/dist/oauth-CPq7fFbG.js +0 -152
- package/dist/oauth-sCynaMs_.js +0 -57
- package/dist/oauth-token-shared-DsL6dJB_.js +0 -28
- package/dist/oauth.credentials-CxmXx187.js +0 -165
- package/dist/oauth.flow-BaDaI2a6.js +0 -122
- package/dist/oauth.http-BWxW_gXO.js +0 -23
- package/dist/oauth.project-Cb5OEIsJ.js +0 -123
- package/dist/oauth.settings-DTKwg34C.js +0 -44
- package/dist/oauth.token-Cq9_Mlsz.js +0 -43
- package/dist/onboard-BWi2goQe.js +0 -22
- package/dist/onboard-BX_UVeJs.js +0 -48
- package/dist/onboard-BaDvNiGt.js +0 -29
- package/dist/onboard-BmpPXiqN2.js +0 -58
- package/dist/onboard-Bxlop59E.js +0 -25
- package/dist/onboard-C1B08y2Y.js +0 -25
- package/dist/onboard-CKEn2xHD.js +0 -29
- package/dist/onboard-CRczKKEG.js +0 -621
- package/dist/onboard-CWW99Rzj.js +0 -25
- package/dist/onboard-CfYR_NXu.js +0 -25
- package/dist/onboard-DIMihTCh.js +0 -36
- package/dist/onboard-DVhexP5q.js +0 -54
- package/dist/onboard-Dpzl4IRI.js +0 -34
- package/dist/onboard-R8-I3hmu.js +0 -67
- package/dist/onboard-channels-B_4jowIn.js +0 -1260
- package/dist/onboard-channels-DHEFgumO.js +0 -2
- package/dist/onboard-config-fkSSjbwz.js +0 -2
- package/dist/onboard-custom-D6Uop5na.js +0 -647
- package/dist/onboard-custom-oMh6NPfh.js +0 -2
- package/dist/onboard-helpers-Lgk8IMHf.js +0 -223
- package/dist/onboard-helpers-Mj_BIThw.js +0 -5
- package/dist/onboard-hooks-kzEmZp3M.js +0 -35
- package/dist/onboard-nkBC9Zpi.js +0 -312
- package/dist/onboard-remote-BWvP49_r.js +0 -2
- package/dist/onboard-remote-OM6MI7-n.js +0 -193
- package/dist/onboard-search-C_yMehYl.js +0 -324
- package/dist/onboard-skills-B7QaCIP8.js +0 -2
- package/dist/onboard-skills-DnTH5fGc.js +0 -134
- package/dist/openai-codex-auth-identity-B17fKWEn.js +0 -45
- package/dist/openai-codex-cli-auth-Cl-PMKNs.js +0 -57
- package/dist/openai-codex-provider-BO9QBMyI.js +0 -299
- package/dist/openai-codex-shared-khAwBJ9v.js +0 -6
- package/dist/openai-provider-BJZNCGfx.js +0 -283
- package/dist/openai-transport-stream-Bfwyx0DL.js +0 -1632
- package/dist/openclaw-migrator-a2Mc7WOU.js +0 -2
- package/dist/operator-approvals-client-CWSFLEWa.js +0 -68
- package/dist/order-B6fzFCuC.js +0 -794
- package/dist/outbound-runtime-DhL6nVw0.js +0 -2
- package/dist/pair-command-approve-G0uqjCOh.js +0 -34
- package/dist/pairing-cli-BTMScFNF.js +0 -118
- package/dist/parse-DLTK-NVk.js +0 -168
- package/dist/perplexity-web-search-provider-uU3my6N4.js +0 -92
- package/dist/perplexity-web-search-provider.runtime-4zsB5_nx.js +0 -2
- package/dist/perplexity-web-search-provider.runtime-C7OOMB_b.js +0 -332
- package/dist/perplexity-web-search-provider.shared-BXQXODBs.js +0 -73
- package/dist/persistent-bindings.lifecycle-DZoj-DF8.js +0 -94
- package/dist/pi-bundle-mcp-tools-o-CMfj6F.js +0 -709
- package/dist/pi-embedded-CcN4r2lN.js +0 -2
- package/dist/pi-embedded-DpCl1xxW.js +0 -6
- package/dist/pi-embedded-runner-BH8m5Ek2.js +0 -8348
- package/dist/pi-embedded-subscribe.handlers.compaction.runtime-CL42c7j6.js +0 -23
- package/dist/pi-embedded-utils-qmoBiSxI.js +0 -212
- package/dist/pi-embedded.runtime-DH07ZQfG.js +0 -5
- package/dist/pi-model-discovery-DAdZXCcr.js +0 -232
- package/dist/pi-tools.before-tool-call.runtime-oD9VtK_r.js +0 -354
- package/dist/plugin-enabled-Bat2sClf.js +0 -71
- package/dist/plugin-install-BfwsbbEi.js +0 -2
- package/dist/plugin-install-Dx94fIXT.js +0 -227
- package/dist/plugin-install-config-policy-6tSijL5D.js +0 -137
- package/dist/plugin-install-plan-BmZAE503.js +0 -50
- package/dist/plugin-registration-DBPyjT8A.js +0 -23
- package/dist/plugin-registry-BxkQz7gt.js +0 -2
- package/dist/plugin-registry-Do_oXBB1.js +0 -3
- package/dist/plugin-registry-loader-2_-yHVmz.js +0 -22
- package/dist/plugin-service-DS-pRdlU.js +0 -2494
- package/dist/plugins-cli-sRXCzuRw.js +0 -576
- package/dist/plugins-command-helpers-Bj7EktUT.js +0 -117
- package/dist/plugins-install-persist-89YNeDu5.js +0 -121
- package/dist/plugins-update-command-d7lz3MHq.js +0 -1009
- package/dist/policy-aIhvOunx.js +0 -172
- package/dist/ports-2fHnkw5y.js +0 -433
- package/dist/ports-y2MKuVvs.js +0 -263
- package/dist/preemptive-compaction-BR6IYUQv.js +0 -430
- package/dist/proactive-scheduler-Du3kRlQb.js +0 -1444
- package/dist/probe-C7GwSpDS.js +0 -426
- package/dist/probe-CZ6BUVJj.js +0 -178
- package/dist/probe-auth-BB6Ja95k.js +0 -3
- package/dist/probe-auth-pWGpURUh.js +0 -69
- package/dist/probe-hJkDixY1.js +0 -2
- package/dist/probe-rf98dB-3.js +0 -54
- package/dist/profiles-BPDe8qb5.js +0 -117
- package/dist/program-context-Bk8VQcWK.js +0 -2
- package/dist/program-sIPk-Phn.js +0 -111
- package/dist/prompt-overlay-0RLiIIBU.js +0 -72
- package/dist/prompt-select-styled-CIhWc-jk.js +0 -5305
- package/dist/provider-api-key-auth-DDNqXzKj.js +0 -113
- package/dist/provider-api-key-auth.runtime-BXQ6_jmJ.js +0 -14
- package/dist/provider-auth-DTXed4qC.js +0 -36
- package/dist/provider-auth-api-key-BBpwvslY.js +0 -5
- package/dist/provider-auth-choice-CY2jmJCu.js +0 -134
- package/dist/provider-auth-choice-preference-Dr0IDF93.js +0 -62
- package/dist/provider-auth-choice.runtime-CUFjn3Mi.js +0 -14
- package/dist/provider-auth-choice.runtime-d4FyinH1.js +0 -2
- package/dist/provider-auth-guidance-DeOBKjFe.js +0 -34
- package/dist/provider-auth-helpers-Cae0FJpz.js +0 -168
- package/dist/provider-auth-input-Duh7v6fc.js +0 -117
- package/dist/provider-auth-login-BzpkiJ8a.js +0 -8
- package/dist/provider-auth-login.runtime-ClFDC4RN.js +0 -206
- package/dist/provider-auth-runtime-Bep_6xgO.js +0 -36
- package/dist/provider-catalog-BgakmlJX.js +0 -17
- package/dist/provider-catalog-Biq45Yem.js +0 -26
- package/dist/provider-catalog-BpAgZBb5.js +0 -11
- package/dist/provider-catalog-Bpqcb1Lf.js +0 -56
- package/dist/provider-catalog-Bs11UuqM.js +0 -11
- package/dist/provider-catalog-COSwNV9M.js +0 -61
- package/dist/provider-catalog-DUa_pOgJ.js +0 -75
- package/dist/provider-catalog-D_y8my55.js +0 -12
- package/dist/provider-catalog-DeCIvPpR.js +0 -18
- package/dist/provider-catalog-_qlQKmNX.js +0 -13
- package/dist/provider-catalog-e5v0B4DI.js +0 -11
- package/dist/provider-catalog-kLIlcQiR.js +0 -18
- package/dist/provider-catalog-qzO3WA-y.js +0 -16
- package/dist/provider-catalog-shared-CUCxLlCb.js +0 -104
- package/dist/provider-compat-CFb-paAS.js +0 -37
- package/dist/provider-discovery-D9udizRd.js +0 -2
- package/dist/provider-dispatcher-CpobYXeH.js +0 -22
- package/dist/provider-entry-DPuHH8KZ.js +0 -97
- package/dist/provider-flow-DpxAVxAq.js +0 -66
- package/dist/provider-http-CCWzhnsk.js +0 -26
- package/dist/provider-model-shared-TaFcxfzp.js +0 -171
- package/dist/provider-models-3mIjIjQp.js +0 -22
- package/dist/provider-models-CS0wJZJ5.js +0 -116
- package/dist/provider-models-CaZ-Aeoj.js +0 -119
- package/dist/provider-models-CvYgNrs5.js +0 -225
- package/dist/provider-models-D3D1lxRx.js +0 -169
- package/dist/provider-models-DfvyA63S.js +0 -35
- package/dist/provider-openai-codex-oauth-tls-ml4vKShG.js +0 -99
- package/dist/provider-rGfXjuTP.js +0 -70
- package/dist/provider-registration-BiwyYM-G.js +0 -57
- package/dist/provider-registration-ar6a4KcO.js +0 -238
- package/dist/provider-runtime-D60YrjWV.js +0 -2
- package/dist/provider-runtime-DlsEjiuo.js +0 -366
- package/dist/provider-runtime.runtime-BPeSkHxR.js +0 -26
- package/dist/provider-self-hosted-setup-5OmWafub.js +0 -249
- package/dist/provider-setup-tqWc26t1.js +0 -2
- package/dist/provider-stream-Dy9CFOxw.js +0 -285
- package/dist/provider-stream-family-CWsJY6l5.js +0 -2
- package/dist/provider-stream-shared-DiqyLpmc.js +0 -80
- package/dist/provider-tools-C8ePitIe.js +0 -332
- package/dist/provider-usage-DHBq1-N_.js +0 -3
- package/dist/provider-usage-DZ4vVbP6.js +0 -289
- package/dist/provider-web-search-DNrh74o2.js +0 -55
- package/dist/provider-web-search-contract-CD7a3E_j.js +0 -12
- package/dist/provider-web-search-contract-fields-CZpi7HIW.js +0 -38
- package/dist/provider-wizard-BlIgoAui.js +0 -166
- package/dist/providers.runtime-DUpqP3f8.js +0 -125
- package/dist/proxy-stream-wrappers-BBuH4e3Y.js +0 -480
- package/dist/push-apns-datkwHqM.js +0 -1061
- package/dist/pw-ai-ZAeid36y.js +0 -2268
- package/dist/qmd-manager-BFoyv6wl.js +0 -1799
- package/dist/qr-cli-CsVWBjvI.js +0 -359
- package/dist/qr-image-Clh1VoO8.js +0 -2
- package/dist/queue-D5a9w4iL.js +0 -636
- package/dist/realtime-provider-shared-CcJJy5LG.js +0 -21
- package/dist/realtime-transcription-provider-DJZBEHdh.js +0 -180
- package/dist/realtime-voice-provider-D_HLsBY-.js +0 -342
- package/dist/record-shared-CqhYuBoa.js +0 -10
- package/dist/refresh-CwNiDzvO.js +0 -115
- package/dist/region-FRlBzDc1.js +0 -74
- package/dist/register-command-groups-gxjHRBzB.js +0 -121
- package/dist/register.agent-QYak9Grv.js +0 -241
- package/dist/register.backup-BcFdIDsf.js +0 -234
- package/dist/register.configure-D20bnjIf.js +0 -15
- package/dist/register.maintenance-CFEcGADj.js +0 -443
- package/dist/register.message-CA_IJdMR.js +0 -601
- package/dist/register.migrate-CyHs2gyJ.js +0 -195
- package/dist/register.onboard-BTe7yt58.js +0 -83
- package/dist/register.runtime-CHJaT--O.js +0 -81
- package/dist/register.runtime-CjmIn42C.js +0 -343
- package/dist/register.setup-fcq_hZCH.js +0 -104
- package/dist/register.status-health-sessions-BBLhNnfs.js +0 -1211
- package/dist/register.subclis-BMKAZCX_.js +0 -232
- package/dist/register.subclis-JVDnA5Ih.js +0 -3
- package/dist/remote-env-2q04LuwQ.js +0 -12
- package/dist/repair-DNxJbWq8.js +0 -112
- package/dist/replay-policy-D4RdgaIZ.js +0 -10
- package/dist/replay-policy-DF668ume.js +0 -8
- package/dist/reply-Dp41LlFy.js +0 -3523
- package/dist/reply-payloads-DaWnvZFb.js +0 -78
- package/dist/reply-prefix-D_x6MM3Q.js +0 -33
- package/dist/reply.runtime-B3qMXkAa.js +0 -2
- package/dist/resolve-BxnY1Y0P.js +0 -280
- package/dist/restart-BTemxlpT.js +0 -454
- package/dist/restart-handoff-lV2xM09Z.js +0 -2
- package/dist/restart-health-CbsvDtnk.js +0 -2
- package/dist/restart-health-CvoNg6kT.js +0 -203
- package/dist/restart-stale-pids-DCtlWGBh.js +0 -529
- package/dist/retry-DSboRh9T.js +0 -76
- package/dist/retry-policy-CkDNftgh.js +0 -58
- package/dist/root-help-CbP63X2B.js +0 -44
- package/dist/route-reply-D4iLWqi8.js +0 -141
- package/dist/route-reply.runtime-DfhDlYwI.js +0 -2
- package/dist/rpc-BzxGDKQi.js +0 -61
- package/dist/rpc.runtime-B8npXano.js +0 -21
- package/dist/run-main-B_3B444F.js +0 -453
- package/dist/run-wait-DfwJbctd.js +0 -118
- package/dist/runner-Bq--JOxW.js +0 -1497
- package/dist/runs-B8BkTE5s.js +0 -495
- package/dist/runtime-9nd5Vnqo.js +0 -725
- package/dist/runtime-AzBVm8GH.js +0 -9
- package/dist/runtime-BsL8SByk.js +0 -253
- package/dist/runtime-Bt0p-8KG.js +0 -2
- package/dist/runtime-Czi9LJYu.js +0 -355
- package/dist/runtime-D4VTGXfu.js +0 -72
- package/dist/runtime-D4fBMloE.js +0 -200
- package/dist/runtime-DfBJ2CUS.js +0 -2
- package/dist/runtime-Di4Vh6yT2.js +0 -242
- package/dist/runtime-Gw1LMmF3.js +0 -191
- package/dist/runtime-api-38YAKTr3.js +0 -12
- package/dist/runtime-api-DVNSx5RM2.js +0 -2
- package/dist/runtime-api-DVxb5CCl.js +0 -3
- package/dist/runtime-cNtCXDff.js +0 -107
- package/dist/runtime-embedded-pi.runtime-Ca9Iylv7.js +0 -3
- package/dist/runtime-env-Clh0MW-d.js +0 -9
- package/dist/runtime-internal-D_EVbLoq.js +0 -2
- package/dist/runtime-model-auth.runtime-Db4xdojg.js +0 -39
- package/dist/runtime-plugins-CTXfWYb_.js +0 -69
- package/dist/runtime-prepare.runtime-C3ZR1iU5.js +0 -80
- package/dist/runtime-provider-DDeE81mK.js +0 -21
- package/dist/runtime-registry-loader-B2xOXVPK.js +0 -58
- package/dist/runtime-registry-loader-C5xxOfM0.js +0 -2
- package/dist/runtime-schema-Rce5jii6.js +0 -28383
- package/dist/runtime-shared-VTsPwExD.js +0 -249
- package/dist/runtime-taskflow-CHmtjSlF.js +0 -250
- package/dist/runtime-web-channel-plugin-DSXA1lnD.js +0 -215
- package/dist/runtime-web-tools-BBCJl629.js +0 -1467
- package/dist/runtime-web-tools-fallback.runtime-B2dwt38I.js +0 -9
- package/dist/sandbox-Bs4qtn7i.js +0 -4
- package/dist/sandbox-CwQ1zNXr.js +0 -2586
- package/dist/sandbox-cli-CFR4xMj0.js +0 -447
- package/dist/schtasks-jmQncr1-.js +0 -785
- package/dist/secrets-cli-D2MzNlq9.js +0 -2114
- package/dist/security-audit-MSBFxuZO.js +0 -34
- package/dist/security-cli-CyLFEXFK.js +0 -486
- package/dist/semantic-dedup-Bqflyeek.js +0 -95
- package/dist/send-D9izwSy3.js +0 -993
- package/dist/send-media-BjiwwtZH.js +0 -2123
- package/dist/server-DApOCk9r.js +0 -13
- package/dist/server-context-LZDbgxn5.js +0 -4164
- package/dist/server-methods-DLDI8rlu.js +0 -11827
- package/dist/server-middleware-B5ZNhGV1.js +0 -110
- package/dist/server-node-events-COo9ihwW.js +0 -451
- package/dist/server-wWM1a8y_.js +0 -77
- package/dist/server.impl-BhBceUhA.js +0 -19758
- package/dist/service-BI1Vz4Xe.js +0 -132
- package/dist/service-CHv4oM_x.js +0 -2
- package/dist/service-audit-DUt5vf5G.js +0 -254
- package/dist/service-audit-VJKA2Zjk.js +0 -2
- package/dist/session-BM6MJ_fx.js +0 -48
- package/dist/session-archive.runtime-6wxi7NBr.js +0 -2
- package/dist/session-conversation-CaxN7-m4.js +0 -27
- package/dist/session-cost-usage-CKgDTfyK.js +0 -2
- package/dist/session-cost-usage-rtoddk_D.js +0 -648
- package/dist/session-file-BaS8wO2e.js +0 -44
- package/dist/session-key-D12IZ26p.js +0 -65
- package/dist/session-meta-C7zPXGyf.js +0 -109
- package/dist/session-override-BWMnmq9K.js +0 -103
- package/dist/session-reset-model.runtime-BJekjjZ1.js +0 -120
- package/dist/session-reset-service-Clx7kNoI.js +0 -474
- package/dist/session-subagent-reactivation.runtime-B5VMaUf4.js +0 -2
- package/dist/session-system-events-DqUwf4D8.js +0 -63
- package/dist/session-tab-registry-a-_FAPhD.js +0 -553
- package/dist/session-updates-jTsbd65U.js +0 -234
- package/dist/session-updates.runtime-CJs2Wmpc.js +0 -2
- package/dist/session-utils-HYCaRwDS.js +0 -930
- package/dist/session-utils.fs-CYcamwPP.js +0 -537
- package/dist/sessions-D-EL9xre.js +0 -2
- package/dist/sessions-DFZL16O4.js +0 -45
- package/dist/sessions-FoJWLJgu.js +0 -226
- package/dist/sessions.runtime-DHIyM7E1.js +0 -2
- package/dist/setup-BQ53YXTC.js +0 -500
- package/dist/setup-Dm1kEe1b.js +0 -15
- package/dist/setup-DuAMFbAI.js +0 -329
- package/dist/setup-binary-BJMUy4FP.js +0 -2
- package/dist/setup-surface-D-In43nb.js +0 -586
- package/dist/setup-tools-B1DDAQcl.js +0 -4
- package/dist/setup-wizard-proxy-CXecAj2f.js +0 -139
- package/dist/setup.finalize-BSDCkR15.js +0 -436
- package/dist/setup.gateway-config-BKiYKvWk.js +0 -246
- package/dist/shared-Bzi2E64E.js +0 -218
- package/dist/shared-CIgFLTPv.js +0 -127
- package/dist/shared-CQhbwWcx.js +0 -219
- package/dist/shared-DP3EPmNx.js +0 -137
- package/dist/shared-GP6OsDGm.js +0 -224
- package/dist/shared-Kg0ysUjM.js +0 -175
- package/dist/shared-runtime-C857iT_Z.js +0 -7
- package/dist/shared-wJu1HSpr.js +0 -36
- package/dist/short-term-promotion-NMHC7sF-.js +0 -1631
- package/dist/simple-completion-runtime-CODXf2KQ.js +0 -131
- package/dist/simple-completion-transport-BqHYWL_H.js +0 -32
- package/dist/skill-commands-n4P37TTT.js +0 -82
- package/dist/skill-commands.runtime-euFmRZmn.js +0 -2
- package/dist/skill-lifecycle-ChEI3HEu.js +0 -105
- package/dist/skill-quality-gate-DYGJHgD_.js +0 -127
- package/dist/skill-usage-tracker-DOTutd6c.js +0 -31
- package/dist/skills-CDbNigal.js +0 -4
- package/dist/skills-CyZVptCK.js +0 -1075
- package/dist/skills-cli-QKIPu7mf.js +0 -382
- package/dist/skills-install-C_wDr3Yn.js +0 -822
- package/dist/skills-status-CRAMSqYC.js +0 -170
- package/dist/skills-status-Cidl9y_f.js +0 -2
- package/dist/soul-cli-BLzmjdCC.js +0 -110
- package/dist/speech-core-D6gbwLzS.js +0 -126
- package/dist/speech-provider-B9cT4Gjm.js +0 -39
- package/dist/speech-provider-BWGp5zle.js +0 -103
- package/dist/speech-provider-BraysNbH.js +0 -167
- package/dist/speech-provider-CZSo12LO.js +0 -101
- package/dist/speech-provider-ccV7I8Ix.js +0 -182
- package/dist/speech-provider-fldQqtyB.js +0 -184
- package/dist/ssh-tunnel-dSVKikW0.js +0 -159
- package/dist/ssh-tunnel-tfx0yANN.js +0 -2
- package/dist/ssrf-runtime-CGgU7d_A.js +0 -6
- package/dist/stage-sandbox-media.runtime-BFJ3cI5E.js +0 -230
- package/dist/standalone-generate-BKcScCKr.js +0 -217
- package/dist/standalone-generate-yEOzazHq.js +0 -2
- package/dist/startup-auth-DMhNYQWZ.js +0 -151
- package/dist/state-dir-env-Lo02ozFZ.js +0 -156
- package/dist/state-migrations-Dh_7NcB_.js +0 -823
- package/dist/status-BHNQZCLW.js +0 -2
- package/dist/status-BLL9siSW.js +0 -3
- package/dist/status-DEDZAhkE.js +0 -473
- package/dist/status-Dx7ATP7d.js +0 -278
- package/dist/status-Dy-2gjX4.js +0 -2
- package/dist/status-DyESaQIF.js +0 -399
- package/dist/status-all-Df45B-IL.js +0 -495
- package/dist/status-json-D4OQ-0cB.js +0 -14
- package/dist/status-json-command-BF5Ubpet.js +0 -92
- package/dist/status-pEsGMlCT.js +0 -500
- package/dist/status-runtime-shared-DBFbh_4j.js +0 -271
- package/dist/status.agent-local-DaJwHpO-.js +0 -58
- package/dist/status.command.text-runtime-DL5JjKUM.js +0 -15
- package/dist/status.format-BB7s3jni.js +0 -60
- package/dist/status.gateway-connection.runtime-DWgn4d1k.js +0 -2
- package/dist/status.gateway-probe-BpvLQ-KZ.js +0 -16
- package/dist/status.link-channel-DBwS2rj0.js +0 -35
- package/dist/status.node-mode-B7rN-_mc.js +0 -32
- package/dist/status.node-mode-CiGZWgis.js +0 -2
- package/dist/status.scan-BCSiOHpj.js +0 -62
- package/dist/status.scan-overview-CWvqkRRi.js +0 -395
- package/dist/status.scan.deps.runtime-OxqqgpNN.js +0 -18
- package/dist/status.scan.fast-json-At2BL9pr.js +0 -128
- package/dist/status.scan.fast-json-DUKoMAxG.js +0 -2
- package/dist/status.scan.runtime-CPzkdkBL.js +0 -417
- package/dist/status.summary-BJOdPDru.js +0 -209
- package/dist/status.summary-DRHwbpBE.js +0 -2
- package/dist/status.update-D0v2dhjh.js +0 -2
- package/dist/status.update-fG9weCeY.js +0 -79
- package/dist/store-CnbV_v4i.js +0 -1075
- package/dist/store-DEH_mAUq.js +0 -421
- package/dist/store-UtXO-V4U.js +0 -1112
- package/dist/store-wIjWeFYl.js +0 -296
- package/dist/store.runtime-CDPwlRWv.js +0 -2
- package/dist/stream-Cj2d1y0c.js +0 -129
- package/dist/stream-CxHR78zN.js +0 -26
- package/dist/stream-DBSqjZK_.js +0 -153
- package/dist/stream-DnQfYsj6.js +0 -27
- package/dist/stream-W2dOHnSg.js +0 -76
- package/dist/stream-pDP7GUBb.js +0 -649
- package/dist/stream-wrappers-BRVvwnDu.js +0 -144
- package/dist/strip-inbound-meta-BltI8kVf.js +0 -155
- package/dist/subagent-announce.registry.runtime-BH63IC3w.js +0 -3
- package/dist/subagent-control-Cy2-30UQ.js +0 -485
- package/dist/subagent-followup.runtime-Bv4Ek4Am.js +0 -68
- package/dist/subagent-list-Wz1QeiD7.js +0 -168
- package/dist/subagent-orphan-recovery-Dc03y0FO.js +0 -214
- package/dist/subagent-registry-I3k-o-Nd.js +0 -2889
- package/dist/subagent-registry-read-C8xgeh3J.js +0 -57
- package/dist/subagent-registry-runtime-B8EcVp4z.js +0 -2
- package/dist/subagent-registry.runtime-J1wFiENA.js +0 -3
- package/dist/subagent-spawn-B_YkzMDM.js +0 -782
- package/dist/subagents-format-mYISVAR0.js +0 -629
- package/dist/subcli-descriptors-BcYaj0tK.js +0 -174
- package/dist/supervisor-eA5CZ9ni.js +0 -737
- package/dist/system-cli-Bmr6iKmB.js +0 -60
- package/dist/system-prompt-C414pRhO.js +0 -2
- package/dist/system-prompt-T5mXJ7TP.js +0 -711
- package/dist/system-prompt-cache-boundary-NtELRwVL.js +0 -25
- package/dist/system-run-command-DKJXglyj.js +0 -300
- package/dist/systemd-CuaTSaBa.js +0 -591
- package/dist/systemd-hints-B_h09Mzm.js +0 -76
- package/dist/systemd-linger-DE_Fg46b.js +0 -68
- package/dist/systemd-linger-Mr1QtLLn.js +0 -2
- package/dist/tables-DFdELq_3.js +0 -832
- package/dist/tailscale-status-PTtL7jnj.js +0 -72
- package/dist/targets-CNCX90Yv.js +0 -595
- package/dist/targets-CRHINrER.js +0 -300
- package/dist/targets.runtime-NhznjXPy.js +0 -2
- package/dist/task-executor-esRPaf9b.js +0 -350
- package/dist/task-owner-access-DrWYhRWd.js +0 -48
- package/dist/task-registry-99Z_Z9h2.js +0 -2346
- package/dist/task-registry-control.runtime-B6ince9b.js +0 -3
- package/dist/task-registry-delivery-runtime-CvNHgv_t.js +0 -2
- package/dist/task-registry-delivery-runtime-DvtrlNwu.js +0 -3
- package/dist/task-registry.maintenance-BYQsqVxN.js +0 -425
- package/dist/task-registry.maintenance-ZYzfHTTq.js +0 -2
- package/dist/test.DNmyFkvJ-k8NJ4Bmh.js +0 -13549
- package/dist/testing-D_bofHRA.js +0 -441
- package/dist/text-report-CkkKmBEq.js +0 -587
- package/dist/text-runtime-mBCqEES4.js +0 -313
- package/dist/thread-bindings-iTrRkLzQ.js +0 -223
- package/dist/tool-auth-shared-D-QPgeom.js +0 -53
- package/dist/tool-config-shared-D6_m3gGr.js +0 -19
- package/dist/tool-schema-runtime-B_exwg7V.js +0 -1892
- package/dist/tools-DOCf-D1O.js +0 -110
- package/dist/tools-effective-inventory-ByTHgwZ3.js +0 -152
- package/dist/tools.runtime-B91t6gA1.js +0 -4
- package/dist/transcript-0fLDbW8-.js +0 -222
- package/dist/transcript-B0nNP1bi.js +0 -191
- package/dist/transcript-DQsKeQyR.js +0 -2
- package/dist/transcript.runtime-CsPaloHz.js +0 -2
- package/dist/transport-policy-BFNf1-9h.js +0 -75
- package/dist/transport-ready-CjD7QFVT.js +0 -36
- package/dist/tts-BKZmS4xr.js +0 -40
- package/dist/tts-Br2otWLy.js +0 -31
- package/dist/tts.runtime-pJ42sd4M.js +0 -3
- package/dist/tui-Dvbh1BOb.js +0 -4018
- package/dist/tui-cli-frG91oxp.js +0 -31
- package/dist/typing-mode-BueK7uiv.js +0 -84
- package/dist/undici-global-dispatcher-eRWmqD02.js +0 -99
- package/dist/uninstall-CQxsblrz.js +0 -172
- package/dist/update-CqprWvFy.js +0 -1253
- package/dist/update-check-JM7VVIJX.js +0 -431
- package/dist/update-cli-4oFlMshW.js +0 -1779
- package/dist/update-runner-BLsea7TF.js +0 -1492
- package/dist/usage-AvsukxPf.js +0 -71
- package/dist/usage-format-CxKKzsv8.js +0 -2
- package/dist/usage-format-DVbAh1EI.js +0 -507
- package/dist/utils-BwORcPSF.js +0 -189
- package/dist/video-generation-D4NjX7OM.js +0 -167
- package/dist/video-generation-provider-B6dkZGU2.js +0 -171
- package/dist/video-generation-provider-BIqnhibW.js +0 -263
- package/dist/video-generation-provider-BfUmxHum.js +0 -233
- package/dist/video-generation-provider-C2FSvm96.js +0 -181
- package/dist/video-generation-provider-C_fy5kYb.js +0 -240
- package/dist/video-generation-provider-Cqvdmy-7.js +0 -104
- package/dist/video-generation-provider-Cr5dQ5-Y.js +0 -77
- package/dist/video-generation-provider-DZF-F5Ao.js +0 -64
- package/dist/video-generation-provider-PuCcXFdo.js +0 -227
- package/dist/video-generation-provider-e-M9VqII.js +0 -246
- package/dist/video-http-CqiFyKro.js +0 -29
- package/dist/video-model-catalog-Dujyv6aJ.js +0 -187
- package/dist/web-fetch-providers.runtime-ayN9rZBJ.js +0 -33
- package/dist/web-media-B770i-06.js +0 -2
- package/dist/web-media-CfbPpWDK.js +0 -330
- package/dist/web-search-C2oRdo-K.js +0 -221
- package/dist/web-search-provider-ChE5ssV7.js +0 -155
- package/dist/web-search-provider-common-DxHMfm5S.js +0 -206
- package/dist/web-search-provider-config-DopQHA3M.js +0 -52
- package/dist/web-search-providers.runtime-Co-XwN8c.js +0 -206
- package/dist/web-shared-BQmfD1uO.js +0 -414
- package/dist/webhooks-cli-BPynigdk.js +0 -321
- package/dist/workspace-BbNiOKCq.js +0 -306
- package/dist/x-search-shared-B6nTB07f.js +0 -109
- /package/dist/{account-lookup-44DR0qFz.js → account-lookup-DvZ7IbyB.js} +0 -0
- /package/dist/{api-Bscnsaay.js → api-o6w96t-n.js} +0 -0
- /package/dist/{audit-channel.collect.runtime-BAK_7igU.js → audit-channel.collect.runtime-CmRt-Vtg.js} +0 -0
- /package/dist/{audit-log-BDrZBg3k.js → audit-log-C8AUJlPm.js} +0 -0
- /package/dist/{auth-choice-legacy-CYu9EVM5.js → auth-choice-legacy-DBeZmOvF.js} +0 -0
- /package/dist/{auth-surface-resolution-CPk6looU.js → auth-surface-resolution-8mDG-EDa.js} +0 -0
- /package/dist/{backoff-CoEL_G0O.js → backoff-D10eQVn6.js} +0 -0
- /package/dist/{block-reply-pipeline-CP-hIXtp.js → block-reply-pipeline-BFCpQM1A.js} +0 -0
- /package/dist/{channel-account-context-ChXT_QXz.js → channel-account-context-CLJUy3h3.js} +0 -0
- /package/dist/{channel-options-Gu8RxE7y.js → channel-options-BiNEyim3.js} +0 -0
- /package/dist/{channel-plugin-ids-Cdh34d9L.js → channel-plugin-ids-C_TPz1Uu.js} +0 -0
- /package/dist/{channel-selection.runtime-Dh6-3MJD.js → channel-selection.runtime-DxtxDaqe.js} +0 -0
- /package/dist/{channels-status-issues-nqyQ0Evv.js → channels-status-issues-DZCoj3wt.js} +0 -0
- /package/dist/{chat-envelope-C8CaVGEc.js → chat-envelope-C14DhfdY.js} +0 -0
- /package/dist/{chat-message-content-BmiUVjys.js → chat-message-content-N9aXPKj0.js} +0 -0
- /package/dist/{close-reason-DgNNQTUr.js → close-reason-BUP99WO2.js} +0 -0
- /package/dist/{cognitive-delivery-BQ21zS8V.js → cognitive-delivery-2v98ODTY.js} +0 -0
- /package/dist/{command-poll-backoff.runtime-BS9_DhCh.js → command-poll-backoff.runtime-CT-as2yH.js} +0 -0
- /package/dist/{command-registration-policy-CBGSxVcp.js → command-registration-policy-Cic6BBCo.js} +0 -0
- /package/dist/{commands-H3Ab0eU8.js → commands-BNMz19sX.js} +0 -0
- /package/dist/{config-xqDcwygz.js → config-Cf9PwxU0.js} +0 -0
- /package/dist/{config-value-DrQEX08M.js → config-value-CFTkgtE_.js} +0 -0
- /package/dist/{consolidation-userid-CWW9Rg3G.js → consolidation-userid-BIPR4Xb3.js} +0 -0
- /package/dist/{context-builder-Bf6cYQGQ.js → context-builder-qhLwO35b.js} +0 -0
- /package/dist/{context-manifest-AkIidQ_d.js → context-manifest-DJgFhmvf.js} +0 -0
- /package/dist/{control-ui-shared-upny-T3O.js → control-ui-shared-Bdc3sIMw.js} +0 -0
- /package/dist/{dangerous-tools-GRkSUsw5.js → dangerous-tools-Bh7pfw4x.js} +0 -0
- /package/dist/{defaults-CkfIX_lg.js → defaults-DW-KEml1.js} +0 -0
- /package/dist/{detect-binary-BF7GWFFn.js → detect-binary-DykWiFpV.js} +0 -0
- /package/dist/{device-auth-ChMjC2OY.js → device-auth-Co78c3Fk.js} +0 -0
- /package/dist/{device-identity-CnWSzhCW.js → device-identity-BbqzkeXB.js} +0 -0
- /package/dist/{device-metadata-normalization-BCk_oevU.js → device-metadata-normalization-_VVweA-R.js} +0 -0
- /package/dist/{directive-tags-C-tVOPf_.js → directive-tags-DISVLDCp.js} +0 -0
- /package/dist/{dotenv-B0Ninvzt.js → dotenv-BVFKHTQc.js} +0 -0
- /package/dist/{exec-approvals-effective-8HnjEtIL.js → exec-approvals-effective-CLbTYTav.js} +0 -0
- /package/dist/{exec-file-CMG8z0ly.js → exec-file-CJGGCNuX.js} +0 -0
- /package/dist/{extractor-zuZXdT3R.js → extractor-BB1zo9Wy.js} +0 -0
- /package/dist/{fallback-state-DxOz1LA0.js → fallback-state-DcYqyCEy.js} +0 -0
- /package/dist/{fetch-timeout-BAjBTvFf.js → fetch-timeout-BCovYv8d.js} +0 -0
- /package/dist/{fingerprint-vRPYSVrE.js → fingerprint-Dl8U2WD6.js} +0 -0
- /package/dist/{fragment-types-DaQY3JTf.js → fragment-types-D5gnAz5U.js} +0 -0
- /package/dist/{frontmatter-CtMG8SHH.js → frontmatter-BlXOniKN.js} +0 -0
- /package/dist/{gateway-presence-C9CVPS3M.js → gateway-presence-BOHdope3.js} +0 -0
- /package/dist/{gaxios-fetch-compat-C7uLN0yt.js → gaxios-fetch-compat-DBQ2FOTr.js} +0 -0
- /package/dist/{git-commit-BlgTui6o.js → git-commit-C0NqDaJx.js} +0 -0
- /package/dist/{groups.runtime-CDspPvbm.js → groups.runtime-Biyz6BVj.js} +0 -0
- /package/dist/{health-format-Dr-28EXc.js → health-format-BAdMOv0G.js} +0 -0
- /package/dist/{helpers-CbJsWCnj.js → helpers-2xO4B-57.js} +0 -0
- /package/dist/{hooks-policy-Dx4ZMX1n.js → hooks-policy-Co4GDvwp.js} +0 -0
- /package/dist/{identity-BtgZsd-F.js → identity-Dplh_aWR.js} +0 -0
- /package/dist/{includes-scan-dP1_GHm1.js → includes-scan-DQ58cU6W.js} +0 -0
- /package/dist/{info-scan-source-B7go_Oc2.js → info-scan-source-CJZU0g-3.js} +0 -0
- /package/dist/{input-provenance-CqVg_UvP.js → input-provenance-DXlFriXS.js} +0 -0
- /package/dist/{install-target-CEzsONC0.js → install-target-BePL4Kza.js} +0 -0
- /package/dist/{installs-TINOTdOb.js → installs-6mOb-tQ-.js} +0 -0
- /package/dist/{ipv4-Crsp1rWd.js → ipv4-CTuRjRc8.js} +0 -0
- /package/dist/{issue-format-BJCe7wW8.js → issue-format-CxtLa4Cu.js} +0 -0
- /package/dist/{json-mode-KT6243ws.js → json-mode-7wpPHQL6.js} +0 -0
- /package/dist/{kaijibot.plugin-DO7iROUw.js → kaijibot.plugin-DlbL2Ru2.js} +0 -0
- /package/dist/{kill-tree-cyGT7uvN.js → kill-tree-DCyfVQx0.js} +0 -0
- /package/dist/{lib-Ml3xh0LZ.js → lib-D8A9tlN-.js} +0 -0
- /package/dist/{lifecycle-DaUmjkGK.js → lifecycle-lZ5BtT_X.js} +0 -0
- /package/dist/{llm-key-probe-taLN8k5G.js → llm-key-probe-DEQ2jygx.js} +0 -0
- /package/dist/{magic-string.es-CFjqKY18.js → magic-string.es-NXfdbfy9.js} +0 -0
- /package/dist/{model-auth-markers-CrDTQj4i.js → model-auth-markers-BR92KCie.js} +0 -0
- /package/dist/{model-auth-runtime-shared-Dlg_9I8x.js → model-auth-runtime-shared-7sMIRCy3.js} +0 -0
- /package/dist/{model-definitions-DUm9_cBo.js → model-definitions-DTmWdph5.js} +0 -0
- /package/dist/{model-id-ClMKKyMX.js → model-id-josvS7_f.js} +0 -0
- /package/dist/{model-param-b-C1zLPOVI.js → model-param-b-BA2a8ys5.js} +0 -0
- /package/dist/{models-C6zeLda-.js → models-DafdVx4b.js} +0 -0
- /package/dist/{number-coercion-D1JCit9l.js → number-coercion-Cmu1aJr8.js} +0 -0
- /package/dist/{oauth-refresh-failure-Bm7PU-lI.js → oauth-refresh-failure-D4qLGlz9.js} +0 -0
- /package/dist/{onboard-DxdyhKkv.js → onboard-BQDmoIfO.js} +0 -0
- /package/dist/{onboard-z2i2uWin.js → onboard-DQ3NotUx.js} +0 -0
- /package/dist/{onboard-config-D6HSppfR.js → onboard-config-BaBypGxb.js} +0 -0
- /package/dist/{openclaw-migrator-U-BFS_Y3.js → openclaw-migrator-DDJDf_fP.js} +0 -0
- /package/dist/{package-update-utils-CPAScCHs.js → package-update-utils-CriM_ABA.js} +0 -0
- /package/dist/{parse-log-line-CC2WEGwM.js → parse-log-line-BGXLvgmK.js} +0 -0
- /package/dist/{path-env-D0YqoJmh.js → path-env-BqQ62jS8.js} +0 -0
- /package/dist/{persona-change-source-DPNY1vyZ.js → persona-change-source-BayRH7Yd.js} +0 -0
- /package/dist/{plugin-approvals-D2nSmWGQ.js → plugin-approvals-BVOH9uWd.js} +0 -0
- /package/dist/{plugin-web-search-config-CM7ac77h.js → plugin-web-search-config-Vy4SBasR.js} +0 -0
- /package/dist/{ports-lsof-rC3_YG8t.js → ports-lsof-C7nTF2Et.js} +0 -0
- /package/dist/{ports-probe-CKr2RdYw.js → ports-probe-BFA3MD3-.js} +0 -0
- /package/dist/{preference-learner-D-x6hOZc.js → preference-learner-BDRd2YZ7.js} +0 -0
- /package/dist/{probe-target-BCTuiZqm.js → probe-target-LcJauh0W.js} +0 -0
- /package/dist/{program-context-beQs52o_.js → program-context-B3G__AI_.js} +0 -0
- /package/dist/{prompt-cache-stability-DdwE3HeP.js → prompt-cache-stability-CgXAu47S.js} +0 -0
- /package/dist/{prompt-style-BCo80D6m.js → prompt-style-BCVDnx1C.js} +0 -0
- /package/dist/{provider-auth-choice-helpers-iOfeFAnv.js → provider-auth-choice-helpers-wXOAgzFT.js} +0 -0
- /package/dist/{provider-catalog-Cj1om2Fk.js → provider-catalog-CFmQ4vw9.js} +0 -0
- /package/dist/{provider-catalog-CjqnxOnp.js → provider-catalog-CSp5wIkO.js} +0 -0
- /package/dist/{provider-discovery-RmybjjET.js → provider-discovery-DfcBjamA.js} +0 -0
- /package/dist/{provider-model-compat-CsF2NGa6.js → provider-model-compat-DfOMY_2L.js} +0 -0
- /package/dist/{provider-oauth-flow-Dyp5m-iG.js → provider-oauth-flow-BlUhVfpW.js} +0 -0
- /package/dist/{qa-cli-Czvxw_Gf.js → qa-cli-DNHouwrc.js} +0 -0
- /package/dist/{register.android-install-CFC21hJx.js → register.android-install-BKTH5mXO.js} +0 -0
- /package/dist/{reply-payloads-dedupe.runtime-CQRYt4cT.js → reply-payloads-dedupe.runtime-Y6x_m1r3.js} +0 -0
- /package/dist/{resolve-CziruFEe.js → resolve-B-YGj7MS.js} +0 -0
- /package/dist/{responses-tool-shared-DQ-w_2Ok.js → responses-tool-shared-Bp63wGvZ.js} +0 -0
- /package/dist/{restart-handoff-B3HMjoAC.js → restart-handoff-CUig5xgo.js} +0 -0
- /package/dist/{root-help-metadata-B56QuaDg.js → root-help-metadata-DKln3V98.js} +0 -0
- /package/dist/{runtime-manifest.runtime-DgzvTWxI.js → runtime-manifest.runtime-BMhOQl1D.js} +0 -0
- /package/dist/{runtime-parse-D4az8KIY.js → runtime-parse-DYEtqXT6.js} +0 -0
- /package/dist/{runtime-status-Di5Hf2P6.js → runtime-status-Cph8qA_2.js} +0 -0
- /package/dist/{runtime-web-tools-manifest.runtime-9Feh8w--.js → runtime-web-tools-manifest.runtime-C9TRV0jQ.js} +0 -0
- /package/dist/{runtime-web-tools-public-artifacts.runtime-CBOtSULk.js → runtime-web-tools-public-artifacts.runtime-Pll_c9Y7.js} +0 -0
- /package/dist/{schedule-Cc2eXy4A.js → schedule-Dbhedkt2.js} +0 -0
- /package/dist/{schtasks-exec-BgQqxhbL.js → schtasks-exec-wK5FEC9N.js} +0 -0
- /package/dist/{secret-file-_eFsf9j0.js → secret-file-Da3YlfBp.js} +0 -0
- /package/dist/{session-fork.runtime-Jwj0bXs7.js → session-fork.runtime-B_FyKI81.js} +0 -0
- /package/dist/{session-transcript-files.fs-CTjDzbyc.js → session-transcript-files.fs-98DIXUOq.js} +0 -0
- /package/dist/{setup.plugin-config-CyzblkGd.js → setup.plugin-config-DicRLpNt.js} +0 -0
- /package/dist/{setup.secret-input-K_qSH6id.js → setup.secret-input-_xfjuFpR.js} +0 -0
- /package/dist/{skill-draft-generator-BdEjPAqk.js → skill-draft-generator-CEnZCApW.js} +0 -0
- /package/dist/{skill-reviewer-YJgdYe4X.js → skill-reviewer-BJ0eED6E.js} +0 -0
- /package/dist/{skill-scanner-BVHCxyxt.js → skill-scanner-4eRxi2qj.js} +0 -0
- /package/dist/{skill-writer-CrrWOMGT.js → skill-writer-CGbRGRnJ.js} +0 -0
- /package/dist/{ssh-config-BU3F9f2c.js → ssh-config-Bq3o6jik.js} +0 -0
- /package/dist/{status-config-UwTO8Wvv.js → status-config-oMZ_A68q.js} +0 -0
- /package/dist/{store-DK_u7Vxr.js → store-BqlEtQMW.js} +0 -0
- /package/dist/{store-VNDZK044.js → store-xR8gNpX6.js} +0 -0
- /package/dist/{subagent-followup-hints-BlYKyyQ0.js → subagent-followup-hints-DUbpIh2D.js} +0 -0
- /package/dist/{subagent-registry-state-zLMA_MzM.js → subagent-registry-state-CjRrrVgp.js} +0 -0
- /package/dist/{subagent-session-metrics-BgoCTpFX.js → subagent-session-metrics-8IQoh3DH.js} +0 -0
- /package/dist/{supervisor-log.runtime-D53IonaD.js → supervisor-log.runtime-DTqzZ8Bv.js} +0 -0
- /package/dist/{table-CeEBFHtM.js → table-BUbO1fqP.js} +0 -0
- /package/dist/{targets-DOJmrCN8.js → targets-uT1GHLfz.js} +0 -0
- /package/dist/{task-registry.audit.shared-DPSVqAxg.js → task-registry.audit.shared-BvC-fQTz.js} +0 -0
- /package/dist/{text-similarity-CII8oAS-.js → text-similarity-ckJcEBCN.js} +0 -0
- /package/dist/{thread-info-BvQiu1xr.js → thread-info-DjVKrfI6.js} +0 -0
- /package/dist/{tokens-DIzGgGwL.js → tokens-CB2-NTu5.js} +0 -0
- /package/dist/{transcript-events-BC4_m8-c.js → transcript-events-B4kB35M0.js} +0 -0
- /package/dist/{transcript-mirror-BlMhpuHP.js → transcript-mirror-BQwPaEwA.js} +0 -0
- /package/dist/{trust-calculator-BebDau66.js → trust-calculator-ehG2IihQ.js} +0 -0
- /package/dist/{tts.runtime-DBX6LFeO.js → tts.runtime-Bgfon7Cb.js} +0 -0
- /package/dist/{types-D-x2Rbid.js → types-DvE7xIVm.js} +0 -0
- /package/dist/{widearea-dns-atdAOupV.js → widearea-dns-BFgpZSmq.js} +0 -0
- /package/dist/{wsl-DQ0RgjjQ.js → wsl-084fnhGP.js} +0 -0
- /package/dist/{x-search-tool-shared-DX-6O1NP.js → x-search-tool-shared-BKwKoAM7.js} +0 -0
- /package/dist/{zod-parse-Cu9hgbVC.js → zod-parse-DRCmgWgX.js} +0 -0
package/dist/models-pvzUdDkE.js
DELETED
|
@@ -1,2584 +0,0 @@
|
|
|
1
|
-
import { i as normalizeLowercaseStringOrEmpty, s as normalizeOptionalString, u as normalizeStringifiedOptionalString } from "./string-coerce-xZwG7Dq8.js";
|
|
2
|
-
import { r as formatErrorMessage } from "./errors-Ez4cKI2Y.js";
|
|
3
|
-
import { r as writeRuntimeJson } from "./runtime-CGvKIwIL.js";
|
|
4
|
-
import { _ as shortenHomePath } from "./utils-C8dt4mi-.js";
|
|
5
|
-
import { s as normalizeStringEntries } from "./string-normalization-BlAM8fvN.js";
|
|
6
|
-
import { n as isRich$1, r as theme, t as colorize } from "./theme-BpHrcKx7.js";
|
|
7
|
-
import { h as resolveAuthStorePathForDisplay, n as ensureAuthProfileStore, o as loadAuthProfileStoreForRuntime, p as resolveAuthStatePathForDisplay } from "./store-CnbV_v4i.js";
|
|
8
|
-
import { r as resolveAuthProfileDisplayLabel } from "./auth-profiles-BCAAlKMo.js";
|
|
9
|
-
import { n as resolveAgentModelPrimaryValue, r as toAgentModelListLike, t as resolveAgentModelFallbackValues } from "./model-input-BUoH19hk.js";
|
|
10
|
-
import { E as parseModelRef, f as resolveConfiguredModelRef, h as resolveModelRefFromString, i as buildModelAliasIndex, p as resolveDefaultModelForAgent, s as isCliProvider, w as modelKey } from "./model-selection-Bq91MzO2.js";
|
|
11
|
-
import { n as findNormalizedProviderValue, r as normalizeProviderId } from "./provider-id-DjOGAXK8.js";
|
|
12
|
-
import { a as resolveAgentDir, m as resolveDefaultAgentId, p as resolveAgentWorkspaceDir, s as resolveAgentExplicitModelPrimary, u as resolveAgentModelFallbacksOverride } from "./agent-scope-z3lpbLWu.js";
|
|
13
|
-
import { g as resolveDefaultAgentWorkspaceDir } from "./workspace-4a1dwE_K.js";
|
|
14
|
-
import "./defaults-ZxwOnZ1C.js";
|
|
15
|
-
import { a as getRuntimeConfig, i as createConfigIO, p as readSourceConfigSnapshotForWrite } from "./io-jqC0nnCj.js";
|
|
16
|
-
import { i as coerceSecretRef, l as normalizeSecretInputString } from "./types.secrets-i3-0qtd4.js";
|
|
17
|
-
import { o as shouldEnableShellEnvFallback, t as getShellEnvAppliedKeys } from "./shell-env-DXihTL3S.js";
|
|
18
|
-
import { u as setRuntimeConfigSnapshot } from "./runtime-snapshot-DaE9cWKG.js";
|
|
19
|
-
import { t as parseDurationMs } from "./parse-duration-Bjee977D.js";
|
|
20
|
-
import "./config-DSwbWXI1.js";
|
|
21
|
-
import { i as resolveSecretRefString } from "./resolve-npTToMpX.js";
|
|
22
|
-
import { d as resolveProfileUnusableUntilForDisplay, i as clearAuthProfileCooldown, n as resolveAuthProfileOrder, t as resolveAuthProfileEligibility } from "./order-B6fzFCuC.js";
|
|
23
|
-
import { t as resolveKaijiBotAgentDir } from "./agent-paths-CPHQ7X4K.js";
|
|
24
|
-
import { n as resolvePluginProviders } from "./providers.runtime-DUpqP3f8.js";
|
|
25
|
-
import { a as setAuthProfileOrder, n as listProfilesForProvider, o as upsertAuthProfile } from "./profiles-BPDe8qb5.js";
|
|
26
|
-
import { t as formatCliCommand } from "./command-format-BZyfOXIE.js";
|
|
27
|
-
import { a as resolveSessionTranscriptPath, c as resolveSessionTranscriptsDirForAgent } from "./paths-DrQr2my6.js";
|
|
28
|
-
import { n as openUrl } from "./browser-open-BP0tUM0r.js";
|
|
29
|
-
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-BCo80D6m.js";
|
|
30
|
-
import "./onboard-helpers-Lgk8IMHf.js";
|
|
31
|
-
import { _ as resolveProviderEnvApiKeyCandidates, u as isNonSecretApiKeyMarker } from "./model-auth-markers-CrDTQj4i.js";
|
|
32
|
-
import { t as resolveEnvApiKey } from "./model-auth-env-qNUE5jbD.js";
|
|
33
|
-
import { n as resolveAwsSdkEnvVarName } from "./model-auth-runtime-shared-Dlg_9I8x.js";
|
|
34
|
-
import { a as loadModelCatalog } from "./model-catalog-DIUg3n77.js";
|
|
35
|
-
import { a as discoverModels, i as discoverAuthStorage } from "./pi-model-discovery-DAdZXCcr.js";
|
|
36
|
-
import { i as getCustomProviderApiKey, l as resolveUsableCustomProviderApiKey, o as hasUsableCustomProviderApiKey, s as resolveApiKeyForProvider } from "./model-auth-BZ5kt-1f.js";
|
|
37
|
-
import { r as describeFailoverError } from "./failover-error-DhuV9hFr.js";
|
|
38
|
-
import "./command-secret-gateway-Dge_nif2.js";
|
|
39
|
-
import { r as getModelsCommandSecretTargetIds } from "./command-secret-targets-BaTPVvYa.js";
|
|
40
|
-
import { n as shouldSuppressBuiltInModel } from "./model-suppression-D2CmPrIy.js";
|
|
41
|
-
import { r as resolveModelWithRegistry } from "./model-CZ_a3HtW.js";
|
|
42
|
-
import { o as resolveUsageProviderId } from "./provider-usage.shared-C-Peao5p.js";
|
|
43
|
-
import { t as applyAuthProfileConfig } from "./provider-auth-helpers-Cae0FJpz.js";
|
|
44
|
-
import { n as logConfigUpdated } from "./logging-Cye_Xa4w.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-DP3EPmNx.js";
|
|
46
|
-
import { t as resolveCommandConfigWithSecrets } from "./command-config-resolution-00LeDa9E.js";
|
|
47
|
-
import { n as buildAuthHealthSummary, r as formatRemainingShort, t as DEFAULT_OAUTH_WARN_MS } from "./auth-health-DRSKAT80.js";
|
|
48
|
-
import { t as maskApiKey } from "./mask-api-key-BT4QVgju.js";
|
|
49
|
-
import { r as withProgressTotals } from "./progress-Ba68eFEC.js";
|
|
50
|
-
import { n as validateAnthropicSetupToken } from "./provider-auth-token-0R6Ih-2k.js";
|
|
51
|
-
import { f as redactSecrets } from "./format-CcwaoG_5.js";
|
|
52
|
-
import { i as formatUsageWindowSummary, t as loadProviderUsageSummary } from "./provider-usage-DZ4vVbP6.js";
|
|
53
|
-
import { t as createClackPrompter } from "./clack-prompter-dDhoBpFq.js";
|
|
54
|
-
import { t as isRemoteEnvironment } from "./remote-env-2q04LuwQ.js";
|
|
55
|
-
import { t as createVpsAwareOAuthHandlers } from "./provider-oauth-flow-Dyp5m-iG.js";
|
|
56
|
-
import { i as resolveProviderMatch, n as applyProviderAuthConfigPatch, r as pickAuthMethod, t as applyDefaultModel } from "./provider-auth-choice-helpers-iOfeFAnv.js";
|
|
57
|
-
import "./list.runtime-DayQOc4X.js";
|
|
58
|
-
import { n as renderTable, t as getTerminalTableWidth } from "./table-CeEBFHtM.js";
|
|
59
|
-
import { t as buildProviderAuthRecoveryHint } from "./provider-auth-guidance-DeOBKjFe.js";
|
|
60
|
-
import { t as inferParamBFromIdOrName } from "./model-param-b-C1zLPOVI.js";
|
|
61
|
-
import path from "node:path";
|
|
62
|
-
import fs from "node:fs/promises";
|
|
63
|
-
import crypto from "node:crypto";
|
|
64
|
-
import { cancel, confirm, isCancel, multiselect, select, text } from "@clack/prompts";
|
|
65
|
-
import { Type } from "typebox";
|
|
66
|
-
import { complete, getEnvApiKey, getModel } from "@earendil-works/pi-ai";
|
|
67
|
-
//#region src/commands/models/load-config.ts
|
|
68
|
-
async function loadSourceConfigSnapshot(fallback) {
|
|
69
|
-
try {
|
|
70
|
-
const { snapshot } = await readSourceConfigSnapshotForWrite();
|
|
71
|
-
if (snapshot.valid) return snapshot.sourceConfig;
|
|
72
|
-
} catch {}
|
|
73
|
-
return fallback;
|
|
74
|
-
}
|
|
75
|
-
async function loadModelsConfigWithSource(params) {
|
|
76
|
-
const runtimeConfig = getRuntimeConfig();
|
|
77
|
-
const sourceConfig = await loadSourceConfigSnapshot(runtimeConfig);
|
|
78
|
-
const { resolvedConfig, diagnostics } = await resolveCommandConfigWithSecrets({
|
|
79
|
-
config: runtimeConfig,
|
|
80
|
-
commandName: params.commandName,
|
|
81
|
-
targetIds: getModelsCommandSecretTargetIds(),
|
|
82
|
-
runtime: params.runtime
|
|
83
|
-
});
|
|
84
|
-
setRuntimeConfigSnapshot(resolvedConfig, sourceConfig);
|
|
85
|
-
return {
|
|
86
|
-
sourceConfig,
|
|
87
|
-
resolvedConfig,
|
|
88
|
-
diagnostics
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
async function loadModelsConfig(params) {
|
|
92
|
-
return (await loadModelsConfigWithSource(params)).resolvedConfig;
|
|
93
|
-
}
|
|
94
|
-
//#endregion
|
|
95
|
-
//#region src/commands/models/aliases.ts
|
|
96
|
-
async function modelsAliasesListCommand(opts, runtime) {
|
|
97
|
-
ensureFlagCompatibility(opts);
|
|
98
|
-
const models = (await loadModelsConfig({
|
|
99
|
-
commandName: "models aliases list",
|
|
100
|
-
runtime
|
|
101
|
-
})).agents?.defaults?.models ?? {};
|
|
102
|
-
const aliases = Object.entries(models).reduce((acc, [modelKey, entry]) => {
|
|
103
|
-
const alias = entry?.alias?.trim();
|
|
104
|
-
if (alias) acc[alias] = modelKey;
|
|
105
|
-
return acc;
|
|
106
|
-
}, {});
|
|
107
|
-
if (opts.json) {
|
|
108
|
-
writeRuntimeJson(runtime, { aliases });
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
if (opts.plain) {
|
|
112
|
-
for (const [alias, target] of Object.entries(aliases)) runtime.log(`${alias} ${target}`);
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
runtime.log(`Aliases (${Object.keys(aliases).length}):`);
|
|
116
|
-
if (Object.keys(aliases).length === 0) {
|
|
117
|
-
runtime.log("- none");
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
for (const [alias, target] of Object.entries(aliases)) runtime.log(`- ${alias} -> ${target}`);
|
|
121
|
-
}
|
|
122
|
-
async function modelsAliasesAddCommand(aliasRaw, modelRaw, runtime) {
|
|
123
|
-
const alias = normalizeAlias(aliasRaw);
|
|
124
|
-
const resolved = resolveModelTarget({
|
|
125
|
-
raw: modelRaw,
|
|
126
|
-
cfg: await loadModelsConfig({
|
|
127
|
-
commandName: "models aliases add",
|
|
128
|
-
runtime
|
|
129
|
-
})
|
|
130
|
-
});
|
|
131
|
-
await updateConfig((cfg) => {
|
|
132
|
-
const modelKey = `${resolved.provider}/${resolved.model}`;
|
|
133
|
-
const nextModels = { ...cfg.agents?.defaults?.models };
|
|
134
|
-
for (const [key, entry] of Object.entries(nextModels)) {
|
|
135
|
-
const existing = entry?.alias?.trim();
|
|
136
|
-
if (existing && existing === alias && key !== modelKey) throw new Error(`Alias ${alias} already points to ${key}.`);
|
|
137
|
-
}
|
|
138
|
-
nextModels[modelKey] = {
|
|
139
|
-
...nextModels[modelKey] ?? {},
|
|
140
|
-
alias
|
|
141
|
-
};
|
|
142
|
-
return {
|
|
143
|
-
...cfg,
|
|
144
|
-
agents: {
|
|
145
|
-
...cfg.agents,
|
|
146
|
-
defaults: {
|
|
147
|
-
...cfg.agents?.defaults,
|
|
148
|
-
models: nextModels
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
});
|
|
153
|
-
logConfigUpdated(runtime);
|
|
154
|
-
runtime.log(`Alias ${alias} -> ${resolved.provider}/${resolved.model}`);
|
|
155
|
-
}
|
|
156
|
-
async function modelsAliasesRemoveCommand(aliasRaw, runtime) {
|
|
157
|
-
const alias = normalizeAlias(aliasRaw);
|
|
158
|
-
const updated = await updateConfig((cfg) => {
|
|
159
|
-
const nextModels = { ...cfg.agents?.defaults?.models };
|
|
160
|
-
let found = false;
|
|
161
|
-
for (const [key, entry] of Object.entries(nextModels)) if (entry?.alias?.trim() === alias) {
|
|
162
|
-
nextModels[key] = {
|
|
163
|
-
...entry,
|
|
164
|
-
alias: void 0
|
|
165
|
-
};
|
|
166
|
-
found = true;
|
|
167
|
-
break;
|
|
168
|
-
}
|
|
169
|
-
if (!found) throw new Error(`Alias not found: ${alias}`);
|
|
170
|
-
return {
|
|
171
|
-
...cfg,
|
|
172
|
-
agents: {
|
|
173
|
-
...cfg.agents,
|
|
174
|
-
defaults: {
|
|
175
|
-
...cfg.agents?.defaults,
|
|
176
|
-
models: nextModels
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
});
|
|
181
|
-
logConfigUpdated(runtime);
|
|
182
|
-
if (!updated.agents?.defaults?.models || Object.values(updated.agents.defaults.models).every((entry) => !entry?.alias?.trim())) runtime.log("No aliases configured.");
|
|
183
|
-
}
|
|
184
|
-
//#endregion
|
|
185
|
-
//#region src/commands/models/auth.ts
|
|
186
|
-
function guardCancel(value) {
|
|
187
|
-
if (typeof value === "symbol" || isCancel(value)) {
|
|
188
|
-
cancel("Cancelled.");
|
|
189
|
-
process.exit(0);
|
|
190
|
-
}
|
|
191
|
-
return value;
|
|
192
|
-
}
|
|
193
|
-
const confirm$1 = async (params) => guardCancel(await confirm({
|
|
194
|
-
...params,
|
|
195
|
-
message: stylePromptMessage(params.message)
|
|
196
|
-
}));
|
|
197
|
-
const text$1 = async (params) => guardCancel(await text({
|
|
198
|
-
...params,
|
|
199
|
-
message: stylePromptMessage(params.message)
|
|
200
|
-
}));
|
|
201
|
-
const select$1 = async (params) => guardCancel(await select({
|
|
202
|
-
...params,
|
|
203
|
-
message: stylePromptMessage(params.message),
|
|
204
|
-
options: params.options.map((opt) => opt.hint === void 0 ? opt : {
|
|
205
|
-
...opt,
|
|
206
|
-
hint: stylePromptHint(opt.hint)
|
|
207
|
-
})
|
|
208
|
-
}));
|
|
209
|
-
function resolveDefaultTokenProfileId(provider) {
|
|
210
|
-
return `${normalizeProviderId(provider)}:manual`;
|
|
211
|
-
}
|
|
212
|
-
function listProvidersWithAuthMethods(providers) {
|
|
213
|
-
return providers.filter((provider) => provider.auth.length > 0);
|
|
214
|
-
}
|
|
215
|
-
function listTokenAuthMethods(provider) {
|
|
216
|
-
return provider.auth.filter((method) => method.kind === "token");
|
|
217
|
-
}
|
|
218
|
-
function listProvidersWithTokenMethods(providers) {
|
|
219
|
-
return providers.filter((provider) => listTokenAuthMethods(provider).length > 0);
|
|
220
|
-
}
|
|
221
|
-
async function resolveModelsAuthContext(params) {
|
|
222
|
-
const config = await loadValidConfigOrThrow();
|
|
223
|
-
const defaultAgentId = resolveDefaultAgentId(config);
|
|
224
|
-
const agentDir = resolveAgentDir(config, defaultAgentId);
|
|
225
|
-
const workspaceDir = resolveAgentWorkspaceDir(config, defaultAgentId) ?? resolveDefaultAgentWorkspaceDir();
|
|
226
|
-
return {
|
|
227
|
-
config,
|
|
228
|
-
agentDir,
|
|
229
|
-
workspaceDir,
|
|
230
|
-
providers: resolvePluginProviders({
|
|
231
|
-
config,
|
|
232
|
-
workspaceDir,
|
|
233
|
-
mode: "setup",
|
|
234
|
-
bundledProviderAllowlistCompat: true,
|
|
235
|
-
bundledProviderVitestCompat: true,
|
|
236
|
-
...params?.requestedProvider?.trim() ? {
|
|
237
|
-
providerRefs: [params.requestedProvider],
|
|
238
|
-
activate: true
|
|
239
|
-
} : {}
|
|
240
|
-
})
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
function resolveRequestedProviderOrThrow(providers, rawProvider) {
|
|
244
|
-
const requested = rawProvider?.trim();
|
|
245
|
-
if (!requested) return null;
|
|
246
|
-
const matched = resolveProviderMatch(providers, requested);
|
|
247
|
-
if (matched) return matched;
|
|
248
|
-
const available = providers.map((provider) => provider.id).filter(Boolean).toSorted((a, b) => a.localeCompare(b));
|
|
249
|
-
const availableText = available.length > 0 ? available.join(", ") : "(none)";
|
|
250
|
-
throw new Error(`Unknown provider "${requested}". Loaded providers: ${availableText}. Verify plugins via \`${formatCliCommand("kaijibot plugins list --json")}\`.`);
|
|
251
|
-
}
|
|
252
|
-
function resolveTokenMethodOrThrow(provider, rawMethod) {
|
|
253
|
-
const tokenMethods = listTokenAuthMethods(provider);
|
|
254
|
-
if (rawMethod?.trim()) {
|
|
255
|
-
const matched = pickAuthMethod(provider, rawMethod);
|
|
256
|
-
if (matched && matched.kind === "token") return matched;
|
|
257
|
-
const available = tokenMethods.map((method) => method.id).join(", ") || "(none)";
|
|
258
|
-
throw new Error(`Unknown token auth method "${rawMethod}" for provider "${provider.id}". Available token methods: ${available}.`);
|
|
259
|
-
}
|
|
260
|
-
return null;
|
|
261
|
-
}
|
|
262
|
-
async function pickProviderAuthMethod(params) {
|
|
263
|
-
const requestedMethod = pickAuthMethod(params.provider, params.requestedMethod);
|
|
264
|
-
if (requestedMethod) return requestedMethod;
|
|
265
|
-
if (params.provider.auth.length === 1) return params.provider.auth[0] ?? null;
|
|
266
|
-
return await params.prompter.select({
|
|
267
|
-
message: `Auth method for ${params.provider.label}`,
|
|
268
|
-
options: params.provider.auth.map((method) => ({
|
|
269
|
-
value: method.id,
|
|
270
|
-
label: method.label,
|
|
271
|
-
hint: method.hint
|
|
272
|
-
}))
|
|
273
|
-
}).then((id) => params.provider.auth.find((method) => method.id === String(id)) ?? null);
|
|
274
|
-
}
|
|
275
|
-
async function pickProviderTokenMethod(params) {
|
|
276
|
-
const explicitTokenMethod = resolveTokenMethodOrThrow(params.provider, params.requestedMethod);
|
|
277
|
-
if (explicitTokenMethod) return explicitTokenMethod;
|
|
278
|
-
const tokenMethods = listTokenAuthMethods(params.provider);
|
|
279
|
-
if (tokenMethods.length === 0) return null;
|
|
280
|
-
const setupTokenMethod = tokenMethods.find((method) => method.id === "setup-token");
|
|
281
|
-
if (setupTokenMethod) return setupTokenMethod;
|
|
282
|
-
if (tokenMethods.length === 1) return tokenMethods[0] ?? null;
|
|
283
|
-
return await params.prompter.select({
|
|
284
|
-
message: `Token method for ${params.provider.label}`,
|
|
285
|
-
options: tokenMethods.map((method) => ({
|
|
286
|
-
value: method.id,
|
|
287
|
-
label: method.label,
|
|
288
|
-
hint: method.hint
|
|
289
|
-
}))
|
|
290
|
-
}).then((id) => tokenMethods.find((method) => method.id === String(id)) ?? null);
|
|
291
|
-
}
|
|
292
|
-
async function persistProviderAuthResult(params) {
|
|
293
|
-
for (const profile of params.result.profiles) upsertAuthProfile({
|
|
294
|
-
profileId: profile.profileId,
|
|
295
|
-
credential: profile.credential,
|
|
296
|
-
agentDir: params.agentDir
|
|
297
|
-
});
|
|
298
|
-
await updateConfig((cfg) => {
|
|
299
|
-
let next = cfg;
|
|
300
|
-
if (params.result.configPatch) next = applyProviderAuthConfigPatch(next, params.result.configPatch);
|
|
301
|
-
for (const profile of params.result.profiles) next = applyAuthProfileConfig(next, {
|
|
302
|
-
profileId: profile.profileId,
|
|
303
|
-
provider: profile.credential.provider,
|
|
304
|
-
mode: credentialMode(profile.credential)
|
|
305
|
-
});
|
|
306
|
-
if (params.setDefault && params.result.defaultModel) next = applyDefaultModel(next, params.result.defaultModel);
|
|
307
|
-
return next;
|
|
308
|
-
});
|
|
309
|
-
logConfigUpdated(params.runtime);
|
|
310
|
-
for (const profile of params.result.profiles) params.runtime.log(`Auth profile: ${profile.profileId} (${profile.credential.provider}/${credentialMode(profile.credential)})`);
|
|
311
|
-
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)`);
|
|
312
|
-
if (params.result.notes && params.result.notes.length > 0) await params.prompter.note(params.result.notes.join("\n"), "Provider notes");
|
|
313
|
-
}
|
|
314
|
-
async function runProviderAuthMethod(params) {
|
|
315
|
-
await clearStaleProfileLockouts(params.provider.id, params.agentDir);
|
|
316
|
-
await persistProviderAuthResult({
|
|
317
|
-
result: await params.method.run({
|
|
318
|
-
config: params.config,
|
|
319
|
-
env: process.env,
|
|
320
|
-
agentDir: params.agentDir,
|
|
321
|
-
workspaceDir: params.workspaceDir,
|
|
322
|
-
prompter: params.prompter,
|
|
323
|
-
runtime: params.runtime,
|
|
324
|
-
allowSecretRefPrompt: false,
|
|
325
|
-
isRemote: isRemoteEnvironment(),
|
|
326
|
-
openUrl: async (url) => {
|
|
327
|
-
await openUrl(url);
|
|
328
|
-
},
|
|
329
|
-
oauth: { createVpsAwareHandlers: (runtimeParams) => createVpsAwareOAuthHandlers(runtimeParams) }
|
|
330
|
-
}),
|
|
331
|
-
agentDir: params.agentDir,
|
|
332
|
-
runtime: params.runtime,
|
|
333
|
-
prompter: params.prompter,
|
|
334
|
-
setDefault: params.setDefault
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
async function modelsAuthSetupTokenCommand(opts, runtime) {
|
|
338
|
-
if (!process.stdin.isTTY) throw new Error("setup-token requires an interactive TTY.");
|
|
339
|
-
const { config, agentDir, workspaceDir, providers } = await resolveModelsAuthContext({ requestedProvider: opts.provider });
|
|
340
|
-
const tokenProviders = listProvidersWithTokenMethods(providers);
|
|
341
|
-
if (tokenProviders.length === 0) throw new Error(`No provider token-auth plugins found. Install one via \`${formatCliCommand("kaijibot plugins install")}\`.`);
|
|
342
|
-
const provider = resolveRequestedProviderOrThrow(tokenProviders, opts.provider) ?? tokenProviders[0] ?? null;
|
|
343
|
-
if (!provider) throw new Error("No token-capable provider is available.");
|
|
344
|
-
if (!opts.yes) {
|
|
345
|
-
if (!await confirm$1({
|
|
346
|
-
message: `Continue with ${provider.label} token auth?`,
|
|
347
|
-
initialValue: true
|
|
348
|
-
})) return;
|
|
349
|
-
}
|
|
350
|
-
const prompter = createClackPrompter();
|
|
351
|
-
const method = await pickProviderTokenMethod({
|
|
352
|
-
provider,
|
|
353
|
-
prompter
|
|
354
|
-
});
|
|
355
|
-
if (!method) throw new Error(`Provider "${provider.id}" does not expose a token auth method.`);
|
|
356
|
-
await runProviderAuthMethod({
|
|
357
|
-
config,
|
|
358
|
-
agentDir,
|
|
359
|
-
workspaceDir,
|
|
360
|
-
provider,
|
|
361
|
-
method,
|
|
362
|
-
runtime,
|
|
363
|
-
prompter
|
|
364
|
-
});
|
|
365
|
-
}
|
|
366
|
-
async function modelsAuthPasteTokenCommand(opts, runtime) {
|
|
367
|
-
const { agentDir } = await resolveModelsAuthContext();
|
|
368
|
-
const rawProvider = normalizeOptionalString(opts.provider);
|
|
369
|
-
if (!rawProvider) throw new Error("Missing --provider.");
|
|
370
|
-
const provider = normalizeProviderId(rawProvider);
|
|
371
|
-
const profileId = normalizeOptionalString(opts.profileId) || resolveDefaultTokenProfileId(provider);
|
|
372
|
-
const tokenInput = await text$1({
|
|
373
|
-
message: `Paste token for ${provider}`,
|
|
374
|
-
validate: (value) => {
|
|
375
|
-
const trimmed = value?.trim();
|
|
376
|
-
if (!trimmed) return "Required";
|
|
377
|
-
if (provider === "anthropic") return validateAnthropicSetupToken(trimmed.replaceAll(/\s+/g, ""));
|
|
378
|
-
}
|
|
379
|
-
});
|
|
380
|
-
const token = provider === "anthropic" ? String(tokenInput ?? "").replaceAll(/\s+/g, "").trim() : normalizeOptionalString(tokenInput) ?? "";
|
|
381
|
-
const expires = normalizeStringifiedOptionalString(opts.expiresIn) ? Date.now() + parseDurationMs(normalizeStringifiedOptionalString(opts.expiresIn) ?? "", { defaultUnit: "d" }) : void 0;
|
|
382
|
-
upsertAuthProfile({
|
|
383
|
-
profileId,
|
|
384
|
-
credential: {
|
|
385
|
-
type: "token",
|
|
386
|
-
provider,
|
|
387
|
-
token,
|
|
388
|
-
...expires ? { expires } : {}
|
|
389
|
-
},
|
|
390
|
-
agentDir
|
|
391
|
-
});
|
|
392
|
-
await updateConfig((cfg) => applyAuthProfileConfig(cfg, {
|
|
393
|
-
profileId,
|
|
394
|
-
provider,
|
|
395
|
-
mode: "token"
|
|
396
|
-
}));
|
|
397
|
-
logConfigUpdated(runtime);
|
|
398
|
-
runtime.log(`Auth profile: ${profileId} (${provider}/token)`);
|
|
399
|
-
if (provider === "anthropic") {
|
|
400
|
-
runtime.log("Anthropic setup-token auth is supported in KaijiBot.");
|
|
401
|
-
runtime.log("KaijiBot prefers Claude CLI reuse when it is available on the host.");
|
|
402
|
-
runtime.log("Anthropic staff told us this KaijiBot path is allowed again.");
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
async function modelsAuthAddCommand(_opts, runtime) {
|
|
406
|
-
const { config, agentDir, workspaceDir, providers } = await resolveModelsAuthContext();
|
|
407
|
-
const tokenProviders = listProvidersWithTokenMethods(providers);
|
|
408
|
-
const provider = await select$1({
|
|
409
|
-
message: "Token provider",
|
|
410
|
-
options: [...tokenProviders.map((providerPlugin) => ({
|
|
411
|
-
value: providerPlugin.id,
|
|
412
|
-
label: providerPlugin.id,
|
|
413
|
-
hint: providerPlugin.docsPath ? `Docs: ${providerPlugin.docsPath}` : void 0
|
|
414
|
-
})), {
|
|
415
|
-
value: "custom",
|
|
416
|
-
label: "custom (type provider id)"
|
|
417
|
-
}]
|
|
418
|
-
});
|
|
419
|
-
const providerId = provider === "custom" ? normalizeProviderId(String(await text$1({
|
|
420
|
-
message: "Provider id",
|
|
421
|
-
validate: (value) => value?.trim() ? void 0 : "Required"
|
|
422
|
-
}))) : provider;
|
|
423
|
-
const providerPlugin = provider === "custom" ? null : resolveRequestedProviderOrThrow(tokenProviders, providerId);
|
|
424
|
-
if (providerPlugin) {
|
|
425
|
-
const tokenMethods = listTokenAuthMethods(providerPlugin);
|
|
426
|
-
const methodId = tokenMethods.length > 0 ? await select$1({
|
|
427
|
-
message: "Token method",
|
|
428
|
-
options: [...tokenMethods.map((method) => ({
|
|
429
|
-
value: method.id,
|
|
430
|
-
label: method.label,
|
|
431
|
-
hint: method.hint
|
|
432
|
-
})), {
|
|
433
|
-
value: "paste",
|
|
434
|
-
label: "paste token"
|
|
435
|
-
}]
|
|
436
|
-
}) : "paste";
|
|
437
|
-
if (methodId !== "paste") {
|
|
438
|
-
const prompter = createClackPrompter();
|
|
439
|
-
const method = tokenMethods.find((candidate) => candidate.id === methodId);
|
|
440
|
-
if (!method) throw new Error(`Unknown token auth method "${String(methodId)}".`);
|
|
441
|
-
await runProviderAuthMethod({
|
|
442
|
-
config,
|
|
443
|
-
agentDir,
|
|
444
|
-
workspaceDir,
|
|
445
|
-
provider: providerPlugin,
|
|
446
|
-
method,
|
|
447
|
-
runtime,
|
|
448
|
-
prompter
|
|
449
|
-
});
|
|
450
|
-
return;
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
const profileIdDefault = resolveDefaultTokenProfileId(providerId);
|
|
454
|
-
await modelsAuthPasteTokenCommand({
|
|
455
|
-
provider: providerId,
|
|
456
|
-
profileId: String(await text$1({
|
|
457
|
-
message: "Profile id",
|
|
458
|
-
initialValue: profileIdDefault,
|
|
459
|
-
validate: (value) => value?.trim() ? void 0 : "Required"
|
|
460
|
-
})).trim(),
|
|
461
|
-
expiresIn: await confirm$1({
|
|
462
|
-
message: "Does this token expire?",
|
|
463
|
-
initialValue: false
|
|
464
|
-
}) ? String(await text$1({
|
|
465
|
-
message: "Expires in (duration)",
|
|
466
|
-
initialValue: "365d",
|
|
467
|
-
validate: (value) => {
|
|
468
|
-
try {
|
|
469
|
-
parseDurationMs(String(value ?? ""), { defaultUnit: "d" });
|
|
470
|
-
return;
|
|
471
|
-
} catch {
|
|
472
|
-
return "Invalid duration (e.g. 365d, 12h, 30m)";
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
})).trim() : void 0
|
|
476
|
-
}, runtime);
|
|
477
|
-
}
|
|
478
|
-
/**
|
|
479
|
-
* Clear stale cooldown/disabled state for all profiles matching a provider.
|
|
480
|
-
* When a user explicitly runs `models auth login`, they intend to fix auth —
|
|
481
|
-
* stale `auth_permanent` / `billing` lockouts should not persist across
|
|
482
|
-
* a deliberate re-authentication attempt.
|
|
483
|
-
*/
|
|
484
|
-
async function clearStaleProfileLockouts(provider, agentDir) {
|
|
485
|
-
try {
|
|
486
|
-
const store = loadAuthProfileStoreForRuntime(agentDir);
|
|
487
|
-
const profileIds = listProfilesForProvider(store, provider);
|
|
488
|
-
for (const profileId of profileIds) await clearAuthProfileCooldown({
|
|
489
|
-
store,
|
|
490
|
-
profileId,
|
|
491
|
-
agentDir
|
|
492
|
-
});
|
|
493
|
-
} catch {}
|
|
494
|
-
}
|
|
495
|
-
function resolveRequestedLoginProviderOrThrow(providers, rawProvider) {
|
|
496
|
-
return resolveRequestedProviderOrThrow(providers, rawProvider);
|
|
497
|
-
}
|
|
498
|
-
function credentialMode(credential) {
|
|
499
|
-
if (credential.type === "api_key") return "api_key";
|
|
500
|
-
if (credential.type === "token") return "token";
|
|
501
|
-
return "oauth";
|
|
502
|
-
}
|
|
503
|
-
function maybeLogOpenAICodexNativeSearchTip(runtime, providerId) {
|
|
504
|
-
if (providerId !== "openai-codex") return;
|
|
505
|
-
runtime.log("Tip: Codex-capable models can use native Codex web search. Enable it with kaijibot configure --section web (recommended mode: cached). Docs: https://gitee.com/kaiji1126/kaijibot/blob/main/docs/tools/web.md");
|
|
506
|
-
}
|
|
507
|
-
async function modelsAuthLoginCommand(opts, runtime) {
|
|
508
|
-
if (!process.stdin.isTTY) throw new Error("models auth login requires an interactive TTY.");
|
|
509
|
-
const { config, agentDir, workspaceDir, providers } = await resolveModelsAuthContext({ requestedProvider: opts.provider });
|
|
510
|
-
const prompter = createClackPrompter();
|
|
511
|
-
const authProviders = listProvidersWithAuthMethods(providers);
|
|
512
|
-
if (authProviders.length === 0) throw new Error(`No provider plugins found. Install one via \`${formatCliCommand("kaijibot plugins install")}\`.`);
|
|
513
|
-
const selectedProvider = resolveRequestedLoginProviderOrThrow(authProviders, opts.provider) ?? await prompter.select({
|
|
514
|
-
message: "Select a provider",
|
|
515
|
-
options: authProviders.map((provider) => ({
|
|
516
|
-
value: provider.id,
|
|
517
|
-
label: provider.label,
|
|
518
|
-
hint: provider.docsPath ? `Docs: ${provider.docsPath}` : void 0
|
|
519
|
-
}))
|
|
520
|
-
}).then((id) => resolveProviderMatch(authProviders, String(id)));
|
|
521
|
-
if (!selectedProvider) throw new Error("Unknown provider. Use --provider <id> to pick a provider plugin.");
|
|
522
|
-
const chosenMethod = await pickProviderAuthMethod({
|
|
523
|
-
provider: selectedProvider,
|
|
524
|
-
requestedMethod: opts.method,
|
|
525
|
-
prompter
|
|
526
|
-
});
|
|
527
|
-
if (!chosenMethod) throw new Error("Unknown auth method. Use --method <id> to select one.");
|
|
528
|
-
await runProviderAuthMethod({
|
|
529
|
-
config,
|
|
530
|
-
agentDir,
|
|
531
|
-
workspaceDir,
|
|
532
|
-
provider: selectedProvider,
|
|
533
|
-
method: chosenMethod,
|
|
534
|
-
runtime,
|
|
535
|
-
prompter,
|
|
536
|
-
setDefault: opts.setDefault
|
|
537
|
-
});
|
|
538
|
-
maybeLogOpenAICodexNativeSearchTip(runtime, selectedProvider.id);
|
|
539
|
-
}
|
|
540
|
-
//#endregion
|
|
541
|
-
//#region src/commands/models/auth-order.ts
|
|
542
|
-
function resolveTargetAgent(cfg, raw) {
|
|
543
|
-
const agentId = resolveKnownAgentId({
|
|
544
|
-
cfg,
|
|
545
|
-
rawAgentId: raw
|
|
546
|
-
}) ?? resolveDefaultAgentId(cfg);
|
|
547
|
-
return {
|
|
548
|
-
agentId,
|
|
549
|
-
agentDir: resolveAgentDir(cfg, agentId)
|
|
550
|
-
};
|
|
551
|
-
}
|
|
552
|
-
function describeOrder(store, provider) {
|
|
553
|
-
const providerKey = normalizeProviderId(provider);
|
|
554
|
-
const order = store.order?.[providerKey];
|
|
555
|
-
return Array.isArray(order) ? order : [];
|
|
556
|
-
}
|
|
557
|
-
async function resolveAuthOrderContext(opts, runtime) {
|
|
558
|
-
const rawProvider = opts.provider?.trim();
|
|
559
|
-
if (!rawProvider) throw new Error("Missing --provider.");
|
|
560
|
-
const provider = normalizeProviderId(rawProvider);
|
|
561
|
-
const cfg = await loadModelsConfig({
|
|
562
|
-
commandName: "models auth-order",
|
|
563
|
-
runtime
|
|
564
|
-
});
|
|
565
|
-
const { agentId, agentDir } = resolveTargetAgent(cfg, opts.agent);
|
|
566
|
-
return {
|
|
567
|
-
cfg,
|
|
568
|
-
agentId,
|
|
569
|
-
agentDir,
|
|
570
|
-
provider
|
|
571
|
-
};
|
|
572
|
-
}
|
|
573
|
-
async function modelsAuthOrderGetCommand(opts, runtime) {
|
|
574
|
-
const { agentId, agentDir, provider } = await resolveAuthOrderContext(opts, runtime);
|
|
575
|
-
const order = describeOrder(ensureAuthProfileStore(agentDir, { allowKeychainPrompt: false }), provider);
|
|
576
|
-
if (opts.json) {
|
|
577
|
-
writeRuntimeJson(runtime, {
|
|
578
|
-
agentId,
|
|
579
|
-
agentDir,
|
|
580
|
-
provider,
|
|
581
|
-
authStatePath: shortenHomePath(resolveAuthStatePathForDisplay(agentDir)),
|
|
582
|
-
order: order.length > 0 ? order : null
|
|
583
|
-
});
|
|
584
|
-
return;
|
|
585
|
-
}
|
|
586
|
-
runtime.log(`Agent: ${agentId}`);
|
|
587
|
-
runtime.log(`Provider: ${provider}`);
|
|
588
|
-
runtime.log(`Auth state file: ${shortenHomePath(resolveAuthStatePathForDisplay(agentDir))}`);
|
|
589
|
-
runtime.log(order.length > 0 ? `Order override: ${order.join(", ")}` : "Order override: (none)");
|
|
590
|
-
}
|
|
591
|
-
async function modelsAuthOrderClearCommand(opts, runtime) {
|
|
592
|
-
const { agentId, agentDir, provider } = await resolveAuthOrderContext(opts, runtime);
|
|
593
|
-
if (!await setAuthProfileOrder({
|
|
594
|
-
agentDir,
|
|
595
|
-
provider,
|
|
596
|
-
order: null
|
|
597
|
-
})) throw new Error("Failed to update auth-state.json (lock busy?).");
|
|
598
|
-
runtime.log(`Agent: ${agentId}`);
|
|
599
|
-
runtime.log(`Provider: ${provider}`);
|
|
600
|
-
runtime.log("Cleared per-agent order override.");
|
|
601
|
-
}
|
|
602
|
-
async function modelsAuthOrderSetCommand(opts, runtime) {
|
|
603
|
-
const { agentId, agentDir, provider } = await resolveAuthOrderContext(opts, runtime);
|
|
604
|
-
const store = ensureAuthProfileStore(agentDir, { allowKeychainPrompt: false });
|
|
605
|
-
const providerKey = provider;
|
|
606
|
-
const requested = normalizeStringEntries(opts.order ?? []);
|
|
607
|
-
if (requested.length === 0) throw new Error("Missing profile ids. Provide one or more profile ids.");
|
|
608
|
-
for (const profileId of requested) {
|
|
609
|
-
const cred = store.profiles[profileId];
|
|
610
|
-
if (!cred) throw new Error(`Auth profile "${profileId}" not found in ${agentDir}.`);
|
|
611
|
-
if (normalizeProviderId(cred.provider) !== providerKey) throw new Error(`Auth profile "${profileId}" is for ${cred.provider}, not ${provider}.`);
|
|
612
|
-
}
|
|
613
|
-
const updated = await setAuthProfileOrder({
|
|
614
|
-
agentDir,
|
|
615
|
-
provider,
|
|
616
|
-
order: requested
|
|
617
|
-
});
|
|
618
|
-
if (!updated) throw new Error("Failed to update auth-state.json (lock busy?).");
|
|
619
|
-
runtime.log(`Agent: ${agentId}`);
|
|
620
|
-
runtime.log(`Provider: ${provider}`);
|
|
621
|
-
runtime.log(`Order override: ${describeOrder(updated, provider).join(", ")}`);
|
|
622
|
-
}
|
|
623
|
-
//#endregion
|
|
624
|
-
//#region src/commands/models/fallbacks-shared.ts
|
|
625
|
-
function getFallbacks(cfg, key) {
|
|
626
|
-
return resolveAgentModelFallbackValues(cfg.agents?.defaults?.[key]);
|
|
627
|
-
}
|
|
628
|
-
function patchDefaultsFallbacks(cfg, params) {
|
|
629
|
-
const existing = toAgentModelListLike(cfg.agents?.defaults?.[params.key]);
|
|
630
|
-
return {
|
|
631
|
-
...cfg,
|
|
632
|
-
agents: {
|
|
633
|
-
...cfg.agents,
|
|
634
|
-
defaults: {
|
|
635
|
-
...cfg.agents?.defaults,
|
|
636
|
-
[params.key]: mergePrimaryFallbackConfig(existing, { fallbacks: params.fallbacks }),
|
|
637
|
-
...params.models ? { models: params.models } : void 0
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
};
|
|
641
|
-
}
|
|
642
|
-
async function listFallbacksCommand(params, opts, runtime) {
|
|
643
|
-
ensureFlagCompatibility(opts);
|
|
644
|
-
const fallbacks = getFallbacks(await loadModelsConfig({
|
|
645
|
-
commandName: `models ${params.key} list`,
|
|
646
|
-
runtime
|
|
647
|
-
}), params.key);
|
|
648
|
-
if (opts.json) {
|
|
649
|
-
writeRuntimeJson(runtime, { fallbacks });
|
|
650
|
-
return;
|
|
651
|
-
}
|
|
652
|
-
if (opts.plain) {
|
|
653
|
-
for (const entry of fallbacks) runtime.log(entry);
|
|
654
|
-
return;
|
|
655
|
-
}
|
|
656
|
-
runtime.log(`${params.label} (${fallbacks.length}):`);
|
|
657
|
-
if (fallbacks.length === 0) {
|
|
658
|
-
runtime.log("- none");
|
|
659
|
-
return;
|
|
660
|
-
}
|
|
661
|
-
for (const entry of fallbacks) runtime.log(`- ${entry}`);
|
|
662
|
-
}
|
|
663
|
-
async function addFallbackCommand(params, modelRaw, runtime) {
|
|
664
|
-
const updated = await updateConfig((cfg) => {
|
|
665
|
-
const resolved = resolveModelTarget({
|
|
666
|
-
raw: modelRaw,
|
|
667
|
-
cfg
|
|
668
|
-
});
|
|
669
|
-
const nextModels = { ...cfg.agents?.defaults?.models };
|
|
670
|
-
const targetKey = upsertCanonicalModelConfigEntry(nextModels, resolved);
|
|
671
|
-
const existing = getFallbacks(cfg, params.key);
|
|
672
|
-
if (resolveModelKeysFromEntries({
|
|
673
|
-
cfg,
|
|
674
|
-
entries: existing
|
|
675
|
-
}).includes(targetKey)) return cfg;
|
|
676
|
-
return patchDefaultsFallbacks(cfg, {
|
|
677
|
-
key: params.key,
|
|
678
|
-
fallbacks: [...existing, targetKey],
|
|
679
|
-
models: nextModels
|
|
680
|
-
});
|
|
681
|
-
});
|
|
682
|
-
logConfigUpdated(runtime);
|
|
683
|
-
runtime.log(`${params.logPrefix}: ${getFallbacks(updated, params.key).join(", ")}`);
|
|
684
|
-
}
|
|
685
|
-
async function removeFallbackCommand(params, modelRaw, runtime) {
|
|
686
|
-
const updated = await updateConfig((cfg) => {
|
|
687
|
-
const resolved = resolveModelTarget({
|
|
688
|
-
raw: modelRaw,
|
|
689
|
-
cfg
|
|
690
|
-
});
|
|
691
|
-
const targetKey = modelKey(resolved.provider, resolved.model);
|
|
692
|
-
const aliasIndex = buildModelAliasIndex({
|
|
693
|
-
cfg,
|
|
694
|
-
defaultProvider: ""
|
|
695
|
-
});
|
|
696
|
-
const existing = getFallbacks(cfg, params.key);
|
|
697
|
-
const filtered = existing.filter((entry) => {
|
|
698
|
-
const resolvedEntry = resolveModelRefFromString({
|
|
699
|
-
raw: String(entry ?? ""),
|
|
700
|
-
defaultProvider: "",
|
|
701
|
-
aliasIndex
|
|
702
|
-
});
|
|
703
|
-
if (!resolvedEntry) return true;
|
|
704
|
-
return modelKey(resolvedEntry.ref.provider, resolvedEntry.ref.model) !== targetKey;
|
|
705
|
-
});
|
|
706
|
-
if (filtered.length === existing.length) throw new Error(`${params.notFoundLabel} not found: ${targetKey}`);
|
|
707
|
-
return patchDefaultsFallbacks(cfg, {
|
|
708
|
-
key: params.key,
|
|
709
|
-
fallbacks: filtered
|
|
710
|
-
});
|
|
711
|
-
});
|
|
712
|
-
logConfigUpdated(runtime);
|
|
713
|
-
runtime.log(`${params.logPrefix}: ${getFallbacks(updated, params.key).join(", ")}`);
|
|
714
|
-
}
|
|
715
|
-
async function clearFallbacksCommand(params, runtime) {
|
|
716
|
-
await updateConfig((cfg) => {
|
|
717
|
-
return patchDefaultsFallbacks(cfg, {
|
|
718
|
-
key: params.key,
|
|
719
|
-
fallbacks: []
|
|
720
|
-
});
|
|
721
|
-
});
|
|
722
|
-
logConfigUpdated(runtime);
|
|
723
|
-
runtime.log(params.clearedMessage);
|
|
724
|
-
}
|
|
725
|
-
//#endregion
|
|
726
|
-
//#region src/commands/models/fallbacks.ts
|
|
727
|
-
async function modelsFallbacksListCommand(opts, runtime) {
|
|
728
|
-
return await listFallbacksCommand({
|
|
729
|
-
label: "Fallbacks",
|
|
730
|
-
key: "model"
|
|
731
|
-
}, opts, runtime);
|
|
732
|
-
}
|
|
733
|
-
async function modelsFallbacksAddCommand(modelRaw, runtime) {
|
|
734
|
-
return await addFallbackCommand({
|
|
735
|
-
label: "Fallbacks",
|
|
736
|
-
key: "model",
|
|
737
|
-
logPrefix: "Fallbacks"
|
|
738
|
-
}, modelRaw, runtime);
|
|
739
|
-
}
|
|
740
|
-
async function modelsFallbacksRemoveCommand(modelRaw, runtime) {
|
|
741
|
-
return await removeFallbackCommand({
|
|
742
|
-
label: "Fallbacks",
|
|
743
|
-
key: "model",
|
|
744
|
-
notFoundLabel: "Fallback",
|
|
745
|
-
logPrefix: "Fallbacks"
|
|
746
|
-
}, modelRaw, runtime);
|
|
747
|
-
}
|
|
748
|
-
async function modelsFallbacksClearCommand(runtime) {
|
|
749
|
-
return await clearFallbacksCommand({
|
|
750
|
-
key: "model",
|
|
751
|
-
clearedMessage: "Fallback list cleared."
|
|
752
|
-
}, runtime);
|
|
753
|
-
}
|
|
754
|
-
//#endregion
|
|
755
|
-
//#region src/commands/models/image-fallbacks.ts
|
|
756
|
-
async function modelsImageFallbacksListCommand(opts, runtime) {
|
|
757
|
-
return await listFallbacksCommand({
|
|
758
|
-
label: "Image fallbacks",
|
|
759
|
-
key: "imageModel"
|
|
760
|
-
}, opts, runtime);
|
|
761
|
-
}
|
|
762
|
-
async function modelsImageFallbacksAddCommand(modelRaw, runtime) {
|
|
763
|
-
return await addFallbackCommand({
|
|
764
|
-
label: "Image fallbacks",
|
|
765
|
-
key: "imageModel",
|
|
766
|
-
logPrefix: "Image fallbacks"
|
|
767
|
-
}, modelRaw, runtime);
|
|
768
|
-
}
|
|
769
|
-
async function modelsImageFallbacksRemoveCommand(modelRaw, runtime) {
|
|
770
|
-
return await removeFallbackCommand({
|
|
771
|
-
label: "Image fallbacks",
|
|
772
|
-
key: "imageModel",
|
|
773
|
-
notFoundLabel: "Image fallback",
|
|
774
|
-
logPrefix: "Image fallbacks"
|
|
775
|
-
}, modelRaw, runtime);
|
|
776
|
-
}
|
|
777
|
-
async function modelsImageFallbacksClearCommand(runtime) {
|
|
778
|
-
return await clearFallbacksCommand({
|
|
779
|
-
key: "imageModel",
|
|
780
|
-
clearedMessage: "Image fallback list cleared."
|
|
781
|
-
}, runtime);
|
|
782
|
-
}
|
|
783
|
-
//#endregion
|
|
784
|
-
//#region src/commands/models/list.configured.ts
|
|
785
|
-
function resolveConfiguredEntries(cfg) {
|
|
786
|
-
const resolvedDefault = resolveConfiguredModelRef({
|
|
787
|
-
cfg,
|
|
788
|
-
defaultProvider: "",
|
|
789
|
-
defaultModel: ""
|
|
790
|
-
});
|
|
791
|
-
const aliasIndex = buildModelAliasIndex({
|
|
792
|
-
cfg,
|
|
793
|
-
defaultProvider: ""
|
|
794
|
-
});
|
|
795
|
-
const order = [];
|
|
796
|
-
const tagsByKey = /* @__PURE__ */ new Map();
|
|
797
|
-
const aliasesByKey = /* @__PURE__ */ new Map();
|
|
798
|
-
for (const [key, aliases] of aliasIndex.byKey.entries()) aliasesByKey.set(key, aliases);
|
|
799
|
-
const addEntry = (ref, tag) => {
|
|
800
|
-
const key = modelKey(ref.provider, ref.model);
|
|
801
|
-
if (!tagsByKey.has(key)) {
|
|
802
|
-
tagsByKey.set(key, /* @__PURE__ */ new Set());
|
|
803
|
-
order.push(key);
|
|
804
|
-
}
|
|
805
|
-
tagsByKey.get(key)?.add(tag);
|
|
806
|
-
};
|
|
807
|
-
const addResolvedModelRef = (raw, tag) => {
|
|
808
|
-
const resolved = resolveModelRefFromString({
|
|
809
|
-
raw,
|
|
810
|
-
defaultProvider: "",
|
|
811
|
-
aliasIndex
|
|
812
|
-
});
|
|
813
|
-
if (resolved) addEntry(resolved.ref, tag);
|
|
814
|
-
};
|
|
815
|
-
addEntry(resolvedDefault, "default");
|
|
816
|
-
const modelFallbacks = resolveAgentModelFallbackValues(cfg.agents?.defaults?.model);
|
|
817
|
-
const imageFallbacks = resolveAgentModelFallbackValues(cfg.agents?.defaults?.imageModel);
|
|
818
|
-
const imagePrimary = resolveAgentModelPrimaryValue(cfg.agents?.defaults?.imageModel) ?? "";
|
|
819
|
-
modelFallbacks.forEach((raw, idx) => {
|
|
820
|
-
addResolvedModelRef(String(raw ?? ""), `fallback#${idx + 1}`);
|
|
821
|
-
});
|
|
822
|
-
if (imagePrimary) addResolvedModelRef(imagePrimary, "image");
|
|
823
|
-
imageFallbacks.forEach((raw, idx) => {
|
|
824
|
-
addResolvedModelRef(String(raw ?? ""), `img-fallback#${idx + 1}`);
|
|
825
|
-
});
|
|
826
|
-
for (const key of Object.keys(cfg.agents?.defaults?.models ?? {})) {
|
|
827
|
-
const parsed = parseModelRef(String(key ?? ""), "");
|
|
828
|
-
if (!parsed) continue;
|
|
829
|
-
addEntry(parsed, "configured");
|
|
830
|
-
}
|
|
831
|
-
return { entries: order.map((key) => {
|
|
832
|
-
const slash = key.indexOf("/");
|
|
833
|
-
return {
|
|
834
|
-
key,
|
|
835
|
-
ref: {
|
|
836
|
-
provider: slash === -1 ? key : key.slice(0, slash),
|
|
837
|
-
model: slash === -1 ? "" : key.slice(slash + 1)
|
|
838
|
-
},
|
|
839
|
-
tags: tagsByKey.get(key) ?? /* @__PURE__ */ new Set(),
|
|
840
|
-
aliases: aliasesByKey.get(key) ?? []
|
|
841
|
-
};
|
|
842
|
-
}) };
|
|
843
|
-
}
|
|
844
|
-
//#endregion
|
|
845
|
-
//#region src/commands/models/list.errors.ts
|
|
846
|
-
const MODEL_AVAILABILITY_UNAVAILABLE_CODE = "MODEL_AVAILABILITY_UNAVAILABLE";
|
|
847
|
-
function formatErrorWithStack(err) {
|
|
848
|
-
if (err instanceof Error) return err.stack ?? `${err.name}: ${err.message}`;
|
|
849
|
-
return String(err);
|
|
850
|
-
}
|
|
851
|
-
function shouldFallbackToAuthHeuristics(err) {
|
|
852
|
-
if (!(err instanceof Error)) return false;
|
|
853
|
-
return err.code === MODEL_AVAILABILITY_UNAVAILABLE_CODE;
|
|
854
|
-
}
|
|
855
|
-
//#endregion
|
|
856
|
-
//#region src/commands/models/list.registry.ts
|
|
857
|
-
const hasAuthForProvider = (provider, cfg, authStore) => {
|
|
858
|
-
if (!cfg || !authStore) return false;
|
|
859
|
-
if (listProfilesForProvider(authStore, provider).length > 0) return true;
|
|
860
|
-
if (provider === "amazon-bedrock" && resolveAwsSdkEnvVarName()) return true;
|
|
861
|
-
if (resolveEnvApiKey(provider)) return true;
|
|
862
|
-
if (hasUsableCustomProviderApiKey(cfg, provider)) return true;
|
|
863
|
-
return false;
|
|
864
|
-
};
|
|
865
|
-
function createAvailabilityUnavailableError(message) {
|
|
866
|
-
const err = new Error(message);
|
|
867
|
-
err.code = MODEL_AVAILABILITY_UNAVAILABLE_CODE;
|
|
868
|
-
return err;
|
|
869
|
-
}
|
|
870
|
-
function normalizeAvailabilityError(err) {
|
|
871
|
-
if (shouldFallbackToAuthHeuristics(err) && err instanceof Error) return err;
|
|
872
|
-
return createAvailabilityUnavailableError(`Model availability unavailable: getAvailable() failed.\n${formatErrorWithStack(err)}`);
|
|
873
|
-
}
|
|
874
|
-
function validateAvailableModels(availableModels) {
|
|
875
|
-
if (!Array.isArray(availableModels)) throw createAvailabilityUnavailableError("Model availability unavailable: getAvailable() returned a non-array value.");
|
|
876
|
-
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.");
|
|
877
|
-
return availableModels;
|
|
878
|
-
}
|
|
879
|
-
function loadAvailableModels(registry, cfg) {
|
|
880
|
-
let availableModels;
|
|
881
|
-
try {
|
|
882
|
-
availableModels = registry.getAvailable();
|
|
883
|
-
} catch (err) {
|
|
884
|
-
throw normalizeAvailabilityError(err);
|
|
885
|
-
}
|
|
886
|
-
try {
|
|
887
|
-
return validateAvailableModels(availableModels).filter((model) => !shouldSuppressBuiltInModel({
|
|
888
|
-
provider: model.provider,
|
|
889
|
-
id: model.id,
|
|
890
|
-
baseUrl: model.baseUrl,
|
|
891
|
-
config: cfg
|
|
892
|
-
}));
|
|
893
|
-
} catch (err) {
|
|
894
|
-
throw normalizeAvailabilityError(err);
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
async function loadModelRegistry(cfg, _opts) {
|
|
898
|
-
const agentDir = resolveKaijiBotAgentDir();
|
|
899
|
-
const registry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
900
|
-
const models = registry.getAll().filter((model) => !shouldSuppressBuiltInModel({
|
|
901
|
-
provider: model.provider,
|
|
902
|
-
id: model.id,
|
|
903
|
-
baseUrl: model.baseUrl,
|
|
904
|
-
config: cfg
|
|
905
|
-
}));
|
|
906
|
-
let availableKeys;
|
|
907
|
-
let availabilityErrorMessage;
|
|
908
|
-
try {
|
|
909
|
-
const availableModels = loadAvailableModels(registry, cfg);
|
|
910
|
-
availableKeys = new Set(availableModels.map((model) => modelKey(model.provider, model.id)));
|
|
911
|
-
} catch (err) {
|
|
912
|
-
if (!shouldFallbackToAuthHeuristics(err)) throw err;
|
|
913
|
-
availableKeys = void 0;
|
|
914
|
-
if (!availabilityErrorMessage) availabilityErrorMessage = formatErrorWithStack(err);
|
|
915
|
-
}
|
|
916
|
-
return {
|
|
917
|
-
registry,
|
|
918
|
-
models,
|
|
919
|
-
availableKeys,
|
|
920
|
-
availabilityErrorMessage
|
|
921
|
-
};
|
|
922
|
-
}
|
|
923
|
-
function toModelRow(params) {
|
|
924
|
-
const { model, key, tags, aliases = [], availableKeys, cfg, authStore, allowProviderAvailabilityFallback = false } = params;
|
|
925
|
-
if (!model) return {
|
|
926
|
-
key,
|
|
927
|
-
name: key,
|
|
928
|
-
input: "-",
|
|
929
|
-
contextWindow: null,
|
|
930
|
-
local: null,
|
|
931
|
-
available: null,
|
|
932
|
-
tags: [...tags, "missing"],
|
|
933
|
-
missing: true
|
|
934
|
-
};
|
|
935
|
-
const input = model.input.join("+") || "text";
|
|
936
|
-
const local = isLocalBaseUrl(model.baseUrl);
|
|
937
|
-
const modelIsAvailable = availableKeys?.has(modelKey(model.provider, model.id)) ?? false;
|
|
938
|
-
const available = availableKeys !== void 0 && !allowProviderAvailabilityFallback ? modelIsAvailable : modelIsAvailable || (cfg && authStore ? hasAuthForProvider(model.provider, cfg, authStore) : false);
|
|
939
|
-
const aliasTags = aliases.length > 0 ? [`alias:${aliases.join(",")}`] : [];
|
|
940
|
-
const mergedTags = new Set(tags);
|
|
941
|
-
if (aliasTags.length > 0) {
|
|
942
|
-
for (const tag of mergedTags) if (tag === "alias" || tag.startsWith("alias:")) mergedTags.delete(tag);
|
|
943
|
-
for (const tag of aliasTags) mergedTags.add(tag);
|
|
944
|
-
}
|
|
945
|
-
return {
|
|
946
|
-
key,
|
|
947
|
-
name: model.name || model.id,
|
|
948
|
-
input,
|
|
949
|
-
contextWindow: model.contextWindow ?? null,
|
|
950
|
-
local,
|
|
951
|
-
available,
|
|
952
|
-
tags: Array.from(mergedTags),
|
|
953
|
-
missing: false
|
|
954
|
-
};
|
|
955
|
-
}
|
|
956
|
-
//#endregion
|
|
957
|
-
//#region src/commands/models/list.rows.ts
|
|
958
|
-
function matchesRowFilter(filter, model) {
|
|
959
|
-
if (filter.provider && normalizeProviderId(model.provider) !== filter.provider) return false;
|
|
960
|
-
if (filter.local && !isLocalBaseUrl(model.baseUrl ?? "")) return false;
|
|
961
|
-
return true;
|
|
962
|
-
}
|
|
963
|
-
function buildRow(params) {
|
|
964
|
-
const configured = params.context.configuredByKey.get(params.key);
|
|
965
|
-
return toModelRow({
|
|
966
|
-
model: params.model,
|
|
967
|
-
key: params.key,
|
|
968
|
-
tags: configured ? Array.from(configured.tags) : [],
|
|
969
|
-
aliases: configured?.aliases ?? [],
|
|
970
|
-
availableKeys: params.context.availableKeys,
|
|
971
|
-
cfg: params.context.cfg,
|
|
972
|
-
authStore: params.context.authStore,
|
|
973
|
-
allowProviderAvailabilityFallback: params.allowProviderAvailabilityFallback ?? false
|
|
974
|
-
});
|
|
975
|
-
}
|
|
976
|
-
async function loadListModelRegistry(cfg, opts) {
|
|
977
|
-
const loaded = await loadModelRegistry(cfg, opts);
|
|
978
|
-
return {
|
|
979
|
-
...loaded,
|
|
980
|
-
discoveredKeys: new Set(loaded.models.map((model) => modelKey(model.provider, model.id)))
|
|
981
|
-
};
|
|
982
|
-
}
|
|
983
|
-
function appendDiscoveredRows(params) {
|
|
984
|
-
const seenKeys = /* @__PURE__ */ new Set();
|
|
985
|
-
const sorted = [...params.models].toSorted((a, b) => {
|
|
986
|
-
const providerCompare = a.provider.localeCompare(b.provider);
|
|
987
|
-
if (providerCompare !== 0) return providerCompare;
|
|
988
|
-
return a.id.localeCompare(b.id);
|
|
989
|
-
});
|
|
990
|
-
for (const model of sorted) {
|
|
991
|
-
if (shouldSuppressBuiltInModel({
|
|
992
|
-
provider: model.provider,
|
|
993
|
-
id: model.id,
|
|
994
|
-
baseUrl: model.baseUrl,
|
|
995
|
-
config: params.context.cfg
|
|
996
|
-
})) continue;
|
|
997
|
-
if (!matchesRowFilter(params.context.filter, model)) continue;
|
|
998
|
-
const key = modelKey(model.provider, model.id);
|
|
999
|
-
params.rows.push(buildRow({
|
|
1000
|
-
model,
|
|
1001
|
-
key,
|
|
1002
|
-
context: params.context
|
|
1003
|
-
}));
|
|
1004
|
-
seenKeys.add(key);
|
|
1005
|
-
}
|
|
1006
|
-
return seenKeys;
|
|
1007
|
-
}
|
|
1008
|
-
async function appendCatalogSupplementRows(params) {
|
|
1009
|
-
const catalog = await loadModelCatalog({ config: params.context.cfg });
|
|
1010
|
-
for (const entry of catalog) {
|
|
1011
|
-
if (params.context.filter.provider && normalizeProviderId(entry.provider) !== params.context.filter.provider) continue;
|
|
1012
|
-
const key = modelKey(entry.provider, entry.id);
|
|
1013
|
-
if (params.seenKeys.has(key)) continue;
|
|
1014
|
-
const model = resolveModelWithRegistry({
|
|
1015
|
-
provider: entry.provider,
|
|
1016
|
-
modelId: entry.id,
|
|
1017
|
-
modelRegistry: params.modelRegistry,
|
|
1018
|
-
cfg: params.context.cfg
|
|
1019
|
-
});
|
|
1020
|
-
if (!model || !matchesRowFilter(params.context.filter, model)) continue;
|
|
1021
|
-
if (shouldSuppressBuiltInModel({
|
|
1022
|
-
provider: model.provider,
|
|
1023
|
-
id: model.id,
|
|
1024
|
-
baseUrl: model.baseUrl,
|
|
1025
|
-
config: params.context.cfg
|
|
1026
|
-
})) continue;
|
|
1027
|
-
params.rows.push(buildRow({
|
|
1028
|
-
model,
|
|
1029
|
-
key,
|
|
1030
|
-
context: params.context,
|
|
1031
|
-
allowProviderAvailabilityFallback: !params.context.discoveredKeys.has(key)
|
|
1032
|
-
}));
|
|
1033
|
-
params.seenKeys.add(key);
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
function appendConfiguredRows(params) {
|
|
1037
|
-
for (const entry of params.entries) {
|
|
1038
|
-
if (params.context.filter.provider && normalizeProviderId(entry.ref.provider) !== params.context.filter.provider) continue;
|
|
1039
|
-
const model = resolveModelWithRegistry({
|
|
1040
|
-
provider: entry.ref.provider,
|
|
1041
|
-
modelId: entry.ref.model,
|
|
1042
|
-
modelRegistry: params.modelRegistry,
|
|
1043
|
-
cfg: params.context.cfg
|
|
1044
|
-
});
|
|
1045
|
-
if (params.context.filter.local && model && !isLocalBaseUrl(model.baseUrl ?? "")) continue;
|
|
1046
|
-
if (params.context.filter.local && !model) continue;
|
|
1047
|
-
if (model && shouldSuppressBuiltInModel({
|
|
1048
|
-
provider: model.provider,
|
|
1049
|
-
id: model.id,
|
|
1050
|
-
baseUrl: model.baseUrl,
|
|
1051
|
-
config: params.context.cfg
|
|
1052
|
-
})) continue;
|
|
1053
|
-
params.rows.push(toModelRow({
|
|
1054
|
-
model,
|
|
1055
|
-
key: entry.key,
|
|
1056
|
-
tags: Array.from(entry.tags),
|
|
1057
|
-
aliases: entry.aliases,
|
|
1058
|
-
availableKeys: params.context.availableKeys,
|
|
1059
|
-
cfg: params.context.cfg,
|
|
1060
|
-
authStore: params.context.authStore,
|
|
1061
|
-
allowProviderAvailabilityFallback: model ? !params.context.discoveredKeys.has(modelKey(model.provider, model.id)) : false
|
|
1062
|
-
}));
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
//#endregion
|
|
1066
|
-
//#region src/commands/models/list.format.ts
|
|
1067
|
-
const isRich = (opts) => Boolean(isRich$1() && !opts?.json && !opts?.plain);
|
|
1068
|
-
const pad = (value, size) => value.padEnd(size);
|
|
1069
|
-
const formatTag = (tag, rich) => {
|
|
1070
|
-
if (!rich) return tag;
|
|
1071
|
-
if (tag === "default") return theme.success(tag);
|
|
1072
|
-
if (tag === "image") return theme.accentBright(tag);
|
|
1073
|
-
if (tag === "configured") return theme.accent(tag);
|
|
1074
|
-
if (tag === "missing") return theme.error(tag);
|
|
1075
|
-
if (tag.startsWith("fallback#")) return theme.warn(tag);
|
|
1076
|
-
if (tag.startsWith("img-fallback#")) return theme.warn(tag);
|
|
1077
|
-
if (tag.startsWith("alias:")) return theme.accentDim(tag);
|
|
1078
|
-
return theme.muted(tag);
|
|
1079
|
-
};
|
|
1080
|
-
const truncate = (value, max) => {
|
|
1081
|
-
if (value.length <= max) return value;
|
|
1082
|
-
if (max <= 3) return value.slice(0, max);
|
|
1083
|
-
return `${value.slice(0, max - 3)}...`;
|
|
1084
|
-
};
|
|
1085
|
-
//#endregion
|
|
1086
|
-
//#region src/commands/models/list.table.ts
|
|
1087
|
-
const MODEL_PAD$1 = 42;
|
|
1088
|
-
const INPUT_PAD = 10;
|
|
1089
|
-
const CTX_PAD$1 = 8;
|
|
1090
|
-
const LOCAL_PAD = 5;
|
|
1091
|
-
const AUTH_PAD = 5;
|
|
1092
|
-
function printModelTable(rows, runtime, opts = {}) {
|
|
1093
|
-
if (opts.json) {
|
|
1094
|
-
writeRuntimeJson(runtime, {
|
|
1095
|
-
count: rows.length,
|
|
1096
|
-
models: rows
|
|
1097
|
-
});
|
|
1098
|
-
return;
|
|
1099
|
-
}
|
|
1100
|
-
if (opts.plain) {
|
|
1101
|
-
for (const row of rows) runtime.log(row.key);
|
|
1102
|
-
return;
|
|
1103
|
-
}
|
|
1104
|
-
const rich = isRich(opts);
|
|
1105
|
-
const header = [
|
|
1106
|
-
pad("Model", MODEL_PAD$1),
|
|
1107
|
-
pad("Input", INPUT_PAD),
|
|
1108
|
-
pad("Ctx", CTX_PAD$1),
|
|
1109
|
-
pad("Local", LOCAL_PAD),
|
|
1110
|
-
pad("Auth", AUTH_PAD),
|
|
1111
|
-
"Tags"
|
|
1112
|
-
].join(" ");
|
|
1113
|
-
runtime.log(rich ? theme.heading(header) : header);
|
|
1114
|
-
for (const row of rows) {
|
|
1115
|
-
const keyLabel = pad(truncate(row.key, MODEL_PAD$1), MODEL_PAD$1);
|
|
1116
|
-
const inputLabel = pad(row.input || "-", INPUT_PAD);
|
|
1117
|
-
const ctxLabel = pad(formatTokenK(row.contextWindow), CTX_PAD$1);
|
|
1118
|
-
const localLabel = pad(row.local === null ? "-" : row.local ? "yes" : "no", LOCAL_PAD);
|
|
1119
|
-
const authLabel = pad(row.available === null ? "-" : row.available ? "yes" : "no", AUTH_PAD);
|
|
1120
|
-
const tagsLabel = row.tags.length > 0 ? rich ? row.tags.map((tag) => formatTag(tag, rich)).join(",") : row.tags.join(",") : "";
|
|
1121
|
-
const coloredInput = colorize(rich, row.input.includes("image") ? theme.accentBright : theme.info, inputLabel);
|
|
1122
|
-
const coloredLocal = colorize(rich, row.local === null ? theme.muted : row.local ? theme.success : theme.muted, localLabel);
|
|
1123
|
-
const coloredAuth = colorize(rich, row.available === null ? theme.muted : row.available ? theme.success : theme.error, authLabel);
|
|
1124
|
-
const line = [
|
|
1125
|
-
rich ? theme.accent(keyLabel) : keyLabel,
|
|
1126
|
-
coloredInput,
|
|
1127
|
-
ctxLabel,
|
|
1128
|
-
coloredLocal,
|
|
1129
|
-
coloredAuth,
|
|
1130
|
-
tagsLabel
|
|
1131
|
-
].join(" ");
|
|
1132
|
-
runtime.log(line);
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
//#endregion
|
|
1136
|
-
//#region src/commands/models/list.list-command.ts
|
|
1137
|
-
async function modelsListCommand(opts, runtime) {
|
|
1138
|
-
ensureFlagCompatibility(opts);
|
|
1139
|
-
const { ensureAuthProfileStore, ensureKaijiBotModelsJson } = await import("./list.runtime-AlXBW4vo.js");
|
|
1140
|
-
const { sourceConfig, resolvedConfig: cfg } = await loadModelsConfigWithSource({
|
|
1141
|
-
commandName: "models list",
|
|
1142
|
-
runtime
|
|
1143
|
-
});
|
|
1144
|
-
const authStore = ensureAuthProfileStore();
|
|
1145
|
-
const providerFilter = (() => {
|
|
1146
|
-
const raw = opts.provider?.trim();
|
|
1147
|
-
if (!raw) return;
|
|
1148
|
-
return parseModelRef(`${raw}/_`, "")?.provider ?? normalizeLowercaseStringOrEmpty(raw);
|
|
1149
|
-
})();
|
|
1150
|
-
let modelRegistry;
|
|
1151
|
-
let discoveredKeys = /* @__PURE__ */ new Set();
|
|
1152
|
-
let availableKeys;
|
|
1153
|
-
let availabilityErrorMessage;
|
|
1154
|
-
try {
|
|
1155
|
-
await ensureKaijiBotModelsJson(sourceConfig ?? cfg);
|
|
1156
|
-
const loaded = await loadListModelRegistry(cfg, { sourceConfig });
|
|
1157
|
-
modelRegistry = loaded.registry;
|
|
1158
|
-
discoveredKeys = loaded.discoveredKeys;
|
|
1159
|
-
availableKeys = loaded.availableKeys;
|
|
1160
|
-
availabilityErrorMessage = loaded.availabilityErrorMessage;
|
|
1161
|
-
} catch (err) {
|
|
1162
|
-
runtime.error(`Model registry unavailable:\n${formatErrorWithStack(err)}`);
|
|
1163
|
-
process.exitCode = 1;
|
|
1164
|
-
return;
|
|
1165
|
-
}
|
|
1166
|
-
if (availabilityErrorMessage !== void 0) runtime.error(`Model availability lookup failed; falling back to auth heuristics for discovered models: ${availabilityErrorMessage}`);
|
|
1167
|
-
const { entries } = resolveConfiguredEntries(cfg);
|
|
1168
|
-
const configuredByKey = new Map(entries.map((entry) => [entry.key, entry]));
|
|
1169
|
-
const rows = [];
|
|
1170
|
-
const rowContext = {
|
|
1171
|
-
cfg,
|
|
1172
|
-
authStore,
|
|
1173
|
-
availableKeys,
|
|
1174
|
-
configuredByKey,
|
|
1175
|
-
discoveredKeys,
|
|
1176
|
-
filter: {
|
|
1177
|
-
provider: providerFilter,
|
|
1178
|
-
local: opts.local
|
|
1179
|
-
}
|
|
1180
|
-
};
|
|
1181
|
-
if (opts.all) {
|
|
1182
|
-
const seenKeys = appendDiscoveredRows({
|
|
1183
|
-
rows,
|
|
1184
|
-
models: modelRegistry?.getAll() ?? [],
|
|
1185
|
-
context: rowContext
|
|
1186
|
-
});
|
|
1187
|
-
if (modelRegistry) await appendCatalogSupplementRows({
|
|
1188
|
-
rows,
|
|
1189
|
-
modelRegistry,
|
|
1190
|
-
context: rowContext,
|
|
1191
|
-
seenKeys
|
|
1192
|
-
});
|
|
1193
|
-
} else {
|
|
1194
|
-
const registry = modelRegistry;
|
|
1195
|
-
if (!registry) {
|
|
1196
|
-
runtime.error("Model registry unavailable.");
|
|
1197
|
-
process.exitCode = 1;
|
|
1198
|
-
return;
|
|
1199
|
-
}
|
|
1200
|
-
appendConfiguredRows({
|
|
1201
|
-
rows,
|
|
1202
|
-
entries,
|
|
1203
|
-
modelRegistry: registry,
|
|
1204
|
-
context: rowContext
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
if (rows.length === 0) {
|
|
1208
|
-
runtime.log("No models found.");
|
|
1209
|
-
return;
|
|
1210
|
-
}
|
|
1211
|
-
printModelTable(rows, runtime, opts);
|
|
1212
|
-
}
|
|
1213
|
-
//#endregion
|
|
1214
|
-
//#region src/commands/models/list.auth-overview.ts
|
|
1215
|
-
function formatMarkerOrSecret(value) {
|
|
1216
|
-
return isNonSecretApiKeyMarker(value, { includeEnvVarName: false }) ? `marker(${value.trim()})` : maskApiKey(value);
|
|
1217
|
-
}
|
|
1218
|
-
function formatProfileSecretLabel(params) {
|
|
1219
|
-
const value = normalizeOptionalString(params.value) ?? "";
|
|
1220
|
-
if (value) {
|
|
1221
|
-
const display = formatMarkerOrSecret(value);
|
|
1222
|
-
return params.kind === "token" ? `token:${display}` : display;
|
|
1223
|
-
}
|
|
1224
|
-
if (params.ref) {
|
|
1225
|
-
const refLabel = `ref(${params.ref.source}:${params.ref.id})`;
|
|
1226
|
-
return params.kind === "token" ? `token:${refLabel}` : refLabel;
|
|
1227
|
-
}
|
|
1228
|
-
return params.kind === "token" ? "token:missing" : "missing";
|
|
1229
|
-
}
|
|
1230
|
-
function resolveProviderAuthOverview(params) {
|
|
1231
|
-
const { provider, cfg, store } = params;
|
|
1232
|
-
const now = Date.now();
|
|
1233
|
-
const profiles = listProfilesForProvider(store, provider);
|
|
1234
|
-
const withUnusableSuffix = (base, profileId) => {
|
|
1235
|
-
const unusableUntil = resolveProfileUnusableUntilForDisplay(store, profileId);
|
|
1236
|
-
if (!unusableUntil || now >= unusableUntil) return base;
|
|
1237
|
-
const stats = store.usageStats?.[profileId];
|
|
1238
|
-
return `${base} [${typeof stats?.disabledUntil === "number" && now < stats.disabledUntil ? `disabled${stats.disabledReason ? `:${stats.disabledReason}` : ""}` : "cooldown"} ${formatRemainingShort(unusableUntil - now)}]`;
|
|
1239
|
-
};
|
|
1240
|
-
const labels = profiles.map((profileId) => {
|
|
1241
|
-
const profile = store.profiles[profileId];
|
|
1242
|
-
if (!profile) return `${profileId}=missing`;
|
|
1243
|
-
if (profile.type === "api_key") return withUnusableSuffix(`${profileId}=${formatProfileSecretLabel({
|
|
1244
|
-
value: profile.key,
|
|
1245
|
-
ref: profile.keyRef,
|
|
1246
|
-
kind: "api-key"
|
|
1247
|
-
})}`, profileId);
|
|
1248
|
-
if (profile.type === "token") return withUnusableSuffix(`${profileId}=${formatProfileSecretLabel({
|
|
1249
|
-
value: profile.token,
|
|
1250
|
-
ref: profile.tokenRef,
|
|
1251
|
-
kind: "token"
|
|
1252
|
-
})}`, profileId);
|
|
1253
|
-
const display = resolveAuthProfileDisplayLabel({
|
|
1254
|
-
cfg,
|
|
1255
|
-
store,
|
|
1256
|
-
profileId
|
|
1257
|
-
});
|
|
1258
|
-
const suffix = display === profileId ? "" : display.startsWith(profileId) ? display.slice(profileId.length).trim() : `(${display})`;
|
|
1259
|
-
return withUnusableSuffix(`${profileId}=OAuth${suffix ? ` ${suffix}` : ""}`, profileId);
|
|
1260
|
-
});
|
|
1261
|
-
const oauthCount = profiles.filter((id) => store.profiles[id]?.type === "oauth").length;
|
|
1262
|
-
const tokenCount = profiles.filter((id) => store.profiles[id]?.type === "token").length;
|
|
1263
|
-
const apiKeyCount = profiles.filter((id) => store.profiles[id]?.type === "api_key").length;
|
|
1264
|
-
const envKey = resolveEnvApiKey(provider);
|
|
1265
|
-
const customKey = getCustomProviderApiKey(cfg, provider);
|
|
1266
|
-
const usableCustomKey = resolveUsableCustomProviderApiKey({
|
|
1267
|
-
cfg,
|
|
1268
|
-
provider
|
|
1269
|
-
});
|
|
1270
|
-
return {
|
|
1271
|
-
provider,
|
|
1272
|
-
effective: (() => {
|
|
1273
|
-
if (profiles.length > 0) return {
|
|
1274
|
-
kind: "profiles",
|
|
1275
|
-
detail: shortenHomePath(resolveAuthStorePathForDisplay())
|
|
1276
|
-
};
|
|
1277
|
-
if (envKey) {
|
|
1278
|
-
const normalizedSource = normalizeLowercaseStringOrEmpty(envKey.source);
|
|
1279
|
-
return {
|
|
1280
|
-
kind: "env",
|
|
1281
|
-
detail: envKey.source.includes("OAUTH_TOKEN") || normalizedSource.includes("oauth") ? "OAuth (env)" : maskApiKey(envKey.apiKey)
|
|
1282
|
-
};
|
|
1283
|
-
}
|
|
1284
|
-
if (usableCustomKey) return {
|
|
1285
|
-
kind: "models.json",
|
|
1286
|
-
detail: formatMarkerOrSecret(usableCustomKey.apiKey)
|
|
1287
|
-
};
|
|
1288
|
-
return {
|
|
1289
|
-
kind: "missing",
|
|
1290
|
-
detail: "missing"
|
|
1291
|
-
};
|
|
1292
|
-
})(),
|
|
1293
|
-
profiles: {
|
|
1294
|
-
count: profiles.length,
|
|
1295
|
-
oauth: oauthCount,
|
|
1296
|
-
token: tokenCount,
|
|
1297
|
-
apiKey: apiKeyCount,
|
|
1298
|
-
labels
|
|
1299
|
-
},
|
|
1300
|
-
...envKey ? { env: {
|
|
1301
|
-
value: (() => {
|
|
1302
|
-
const normalizedSource = normalizeLowercaseStringOrEmpty(envKey.source);
|
|
1303
|
-
return envKey.source.includes("OAUTH_TOKEN") || normalizedSource.includes("oauth") ? "OAuth (env)" : maskApiKey(envKey.apiKey);
|
|
1304
|
-
})(),
|
|
1305
|
-
source: envKey.source
|
|
1306
|
-
} } : {},
|
|
1307
|
-
...customKey ? { modelsJson: {
|
|
1308
|
-
value: formatMarkerOrSecret(customKey),
|
|
1309
|
-
source: `models.json: ${shortenHomePath(params.modelsPath)}`
|
|
1310
|
-
} } : {}
|
|
1311
|
-
};
|
|
1312
|
-
}
|
|
1313
|
-
//#endregion
|
|
1314
|
-
//#region src/commands/models/list.probe.ts
|
|
1315
|
-
const PROBE_PROMPT = "Reply with OK. Do not use tools.";
|
|
1316
|
-
let embeddedRunnerModulePromise;
|
|
1317
|
-
function loadEmbeddedRunnerModule() {
|
|
1318
|
-
embeddedRunnerModulePromise ??= import("./pi-embedded-DpCl1xxW.js");
|
|
1319
|
-
return embeddedRunnerModulePromise;
|
|
1320
|
-
}
|
|
1321
|
-
function mapFailoverReasonToProbeStatus(reason) {
|
|
1322
|
-
if (!reason) return "unknown";
|
|
1323
|
-
if (reason === "auth" || reason === "auth_permanent") return "auth";
|
|
1324
|
-
if (reason === "rate_limit" || reason === "overloaded") return "rate_limit";
|
|
1325
|
-
if (reason === "billing") return "billing";
|
|
1326
|
-
if (reason === "timeout") return "timeout";
|
|
1327
|
-
if (reason === "format") return "format";
|
|
1328
|
-
return "unknown";
|
|
1329
|
-
}
|
|
1330
|
-
function buildCandidateMap(modelCandidates) {
|
|
1331
|
-
const map = /* @__PURE__ */ new Map();
|
|
1332
|
-
for (const raw of modelCandidates) {
|
|
1333
|
-
const parsed = parseModelRef(String(raw ?? ""), "");
|
|
1334
|
-
if (!parsed) continue;
|
|
1335
|
-
const list = map.get(parsed.provider) ?? [];
|
|
1336
|
-
if (!list.includes(parsed.model)) list.push(parsed.model);
|
|
1337
|
-
map.set(parsed.provider, list);
|
|
1338
|
-
}
|
|
1339
|
-
return map;
|
|
1340
|
-
}
|
|
1341
|
-
function selectProbeModel(params) {
|
|
1342
|
-
const { provider, candidates, catalog } = params;
|
|
1343
|
-
const direct = candidates.get(provider);
|
|
1344
|
-
if (direct && direct.length > 0) return {
|
|
1345
|
-
provider,
|
|
1346
|
-
model: direct[0]
|
|
1347
|
-
};
|
|
1348
|
-
const fromCatalog = catalog.find((entry) => normalizeProviderId(entry.provider) === provider);
|
|
1349
|
-
if (fromCatalog) return {
|
|
1350
|
-
provider,
|
|
1351
|
-
model: fromCatalog.id
|
|
1352
|
-
};
|
|
1353
|
-
return null;
|
|
1354
|
-
}
|
|
1355
|
-
function mapEligibilityReasonToProbeReasonCode(reasonCode) {
|
|
1356
|
-
if (reasonCode === "missing_credential") return "missing_credential";
|
|
1357
|
-
if (reasonCode === "expired") return "expired";
|
|
1358
|
-
if (reasonCode === "invalid_expires") return "invalid_expires";
|
|
1359
|
-
if (reasonCode === "unresolved_ref") return "unresolved_ref";
|
|
1360
|
-
return "ineligible_profile";
|
|
1361
|
-
}
|
|
1362
|
-
function formatMissingCredentialProbeError(reasonCode) {
|
|
1363
|
-
const legacyLine = "Auth profile credentials are missing or expired.";
|
|
1364
|
-
if (reasonCode === "expired") return `${legacyLine}\n↳ Auth reason [expired]: token credentials are expired.`;
|
|
1365
|
-
if (reasonCode === "invalid_expires") return `${legacyLine}\n↳ Auth reason [invalid_expires]: token expires must be a positive Unix ms timestamp.`;
|
|
1366
|
-
if (reasonCode === "missing_credential") return `${legacyLine}\n↳ Auth reason [missing_credential]: no inline credential or SecretRef is configured.`;
|
|
1367
|
-
if (reasonCode === "unresolved_ref") return `${legacyLine}\n↳ Auth reason [unresolved_ref]: configured SecretRef could not be resolved.`;
|
|
1368
|
-
return `${legacyLine}\n↳ Auth reason [ineligible_profile]: profile is incompatible with provider config.`;
|
|
1369
|
-
}
|
|
1370
|
-
function resolveProbeSecretRef(profile, cfg) {
|
|
1371
|
-
const defaults = cfg.secrets?.defaults;
|
|
1372
|
-
if (profile.type === "api_key") {
|
|
1373
|
-
if (normalizeSecretInputString(profile.key) !== void 0) return null;
|
|
1374
|
-
return coerceSecretRef(profile.keyRef, defaults);
|
|
1375
|
-
}
|
|
1376
|
-
if (profile.type === "token") {
|
|
1377
|
-
if (normalizeSecretInputString(profile.token) !== void 0) return null;
|
|
1378
|
-
return coerceSecretRef(profile.tokenRef, defaults);
|
|
1379
|
-
}
|
|
1380
|
-
return null;
|
|
1381
|
-
}
|
|
1382
|
-
function formatUnresolvedRefProbeError(refLabel) {
|
|
1383
|
-
return `Auth profile credentials are missing or expired.\n↳ Auth reason [unresolved_ref]: could not resolve SecretRef "${refLabel}".`;
|
|
1384
|
-
}
|
|
1385
|
-
async function maybeResolveUnresolvedRefIssue(params) {
|
|
1386
|
-
if (!params.profile) return null;
|
|
1387
|
-
const ref = resolveProbeSecretRef(params.profile, params.cfg);
|
|
1388
|
-
if (!ref) return null;
|
|
1389
|
-
try {
|
|
1390
|
-
await resolveSecretRefString(ref, {
|
|
1391
|
-
config: params.cfg,
|
|
1392
|
-
env: process.env,
|
|
1393
|
-
cache: params.cache
|
|
1394
|
-
});
|
|
1395
|
-
return null;
|
|
1396
|
-
} catch {
|
|
1397
|
-
return {
|
|
1398
|
-
reasonCode: "unresolved_ref",
|
|
1399
|
-
error: formatUnresolvedRefProbeError(`${ref.source}:${ref.provider}:${ref.id}`)
|
|
1400
|
-
};
|
|
1401
|
-
}
|
|
1402
|
-
}
|
|
1403
|
-
async function buildProbeTargets(params) {
|
|
1404
|
-
const { cfg, providers, modelCandidates, options } = params;
|
|
1405
|
-
const store = ensureAuthProfileStore();
|
|
1406
|
-
const providerFilter = options.provider?.trim();
|
|
1407
|
-
const providerFilterKey = providerFilter ? normalizeProviderId(providerFilter) : null;
|
|
1408
|
-
const profileFilter = new Set((options.profileIds ?? []).map((id) => id.trim()).filter(Boolean));
|
|
1409
|
-
const refResolveCache = {};
|
|
1410
|
-
const catalog = await loadModelCatalog({ config: cfg });
|
|
1411
|
-
const candidates = buildCandidateMap(modelCandidates);
|
|
1412
|
-
const targets = [];
|
|
1413
|
-
const results = [];
|
|
1414
|
-
for (const provider of providers) {
|
|
1415
|
-
const providerKey = normalizeProviderId(provider);
|
|
1416
|
-
if (providerFilterKey && providerKey !== providerFilterKey) continue;
|
|
1417
|
-
const model = selectProbeModel({
|
|
1418
|
-
provider: providerKey,
|
|
1419
|
-
candidates,
|
|
1420
|
-
catalog
|
|
1421
|
-
});
|
|
1422
|
-
const profileIds = listProfilesForProvider(store, providerKey);
|
|
1423
|
-
const explicitOrder = findNormalizedProviderValue(store.order, providerKey) ?? findNormalizedProviderValue(cfg?.auth?.order, providerKey);
|
|
1424
|
-
const allowedProfiles = explicitOrder && explicitOrder.length > 0 ? new Set(resolveAuthProfileOrder({
|
|
1425
|
-
cfg,
|
|
1426
|
-
store,
|
|
1427
|
-
provider: providerKey
|
|
1428
|
-
})) : null;
|
|
1429
|
-
const filteredProfiles = profileFilter.size ? profileIds.filter((id) => profileFilter.has(id)) : profileIds;
|
|
1430
|
-
if (filteredProfiles.length > 0) {
|
|
1431
|
-
for (const profileId of filteredProfiles) {
|
|
1432
|
-
const profile = store.profiles[profileId];
|
|
1433
|
-
const mode = profile?.type;
|
|
1434
|
-
const label = resolveAuthProfileDisplayLabel({
|
|
1435
|
-
cfg,
|
|
1436
|
-
store,
|
|
1437
|
-
profileId
|
|
1438
|
-
});
|
|
1439
|
-
if (explicitOrder && !explicitOrder.includes(profileId)) {
|
|
1440
|
-
results.push({
|
|
1441
|
-
provider: providerKey,
|
|
1442
|
-
profileId,
|
|
1443
|
-
model: model ? `${model.provider}/${model.model}` : void 0,
|
|
1444
|
-
label,
|
|
1445
|
-
source: "profile",
|
|
1446
|
-
mode,
|
|
1447
|
-
status: "unknown",
|
|
1448
|
-
reasonCode: "excluded_by_auth_order",
|
|
1449
|
-
error: "Excluded by auth.order for this provider."
|
|
1450
|
-
});
|
|
1451
|
-
continue;
|
|
1452
|
-
}
|
|
1453
|
-
if (allowedProfiles && !allowedProfiles.has(profileId)) {
|
|
1454
|
-
const reasonCode = mapEligibilityReasonToProbeReasonCode(resolveAuthProfileEligibility({
|
|
1455
|
-
cfg,
|
|
1456
|
-
store,
|
|
1457
|
-
provider: providerKey,
|
|
1458
|
-
profileId
|
|
1459
|
-
}).reasonCode);
|
|
1460
|
-
results.push({
|
|
1461
|
-
provider: providerKey,
|
|
1462
|
-
model: model ? `${model.provider}/${model.model}` : void 0,
|
|
1463
|
-
profileId,
|
|
1464
|
-
label,
|
|
1465
|
-
source: "profile",
|
|
1466
|
-
mode,
|
|
1467
|
-
status: "unknown",
|
|
1468
|
-
reasonCode,
|
|
1469
|
-
error: formatMissingCredentialProbeError(reasonCode)
|
|
1470
|
-
});
|
|
1471
|
-
continue;
|
|
1472
|
-
}
|
|
1473
|
-
const unresolvedRefIssue = await maybeResolveUnresolvedRefIssue({
|
|
1474
|
-
cfg,
|
|
1475
|
-
profile,
|
|
1476
|
-
cache: refResolveCache
|
|
1477
|
-
});
|
|
1478
|
-
if (unresolvedRefIssue) {
|
|
1479
|
-
results.push({
|
|
1480
|
-
provider: providerKey,
|
|
1481
|
-
model: model ? `${model.provider}/${model.model}` : void 0,
|
|
1482
|
-
profileId,
|
|
1483
|
-
label,
|
|
1484
|
-
source: "profile",
|
|
1485
|
-
mode,
|
|
1486
|
-
status: "unknown",
|
|
1487
|
-
reasonCode: unresolvedRefIssue.reasonCode,
|
|
1488
|
-
error: unresolvedRefIssue.error
|
|
1489
|
-
});
|
|
1490
|
-
continue;
|
|
1491
|
-
}
|
|
1492
|
-
if (!model) {
|
|
1493
|
-
results.push({
|
|
1494
|
-
provider: providerKey,
|
|
1495
|
-
model: void 0,
|
|
1496
|
-
profileId,
|
|
1497
|
-
label,
|
|
1498
|
-
source: "profile",
|
|
1499
|
-
mode,
|
|
1500
|
-
status: "no_model",
|
|
1501
|
-
reasonCode: "no_model",
|
|
1502
|
-
error: "No model available for probe"
|
|
1503
|
-
});
|
|
1504
|
-
continue;
|
|
1505
|
-
}
|
|
1506
|
-
targets.push({
|
|
1507
|
-
provider: providerKey,
|
|
1508
|
-
model,
|
|
1509
|
-
profileId,
|
|
1510
|
-
label,
|
|
1511
|
-
source: "profile",
|
|
1512
|
-
mode
|
|
1513
|
-
});
|
|
1514
|
-
}
|
|
1515
|
-
continue;
|
|
1516
|
-
}
|
|
1517
|
-
if (profileFilter.size > 0) continue;
|
|
1518
|
-
const envKey = resolveEnvApiKey(providerKey);
|
|
1519
|
-
const hasUsableModelsJsonKey = hasUsableCustomProviderApiKey(cfg, providerKey);
|
|
1520
|
-
if (!envKey && !hasUsableModelsJsonKey) continue;
|
|
1521
|
-
const label = envKey ? "env" : "models.json";
|
|
1522
|
-
const source = envKey ? "env" : "models.json";
|
|
1523
|
-
const mode = envKey?.source.includes("OAUTH_TOKEN") ? "oauth" : "api_key";
|
|
1524
|
-
if (!model) {
|
|
1525
|
-
results.push({
|
|
1526
|
-
provider: providerKey,
|
|
1527
|
-
model: void 0,
|
|
1528
|
-
label,
|
|
1529
|
-
source,
|
|
1530
|
-
mode,
|
|
1531
|
-
status: "no_model",
|
|
1532
|
-
reasonCode: "no_model",
|
|
1533
|
-
error: "No model available for probe"
|
|
1534
|
-
});
|
|
1535
|
-
continue;
|
|
1536
|
-
}
|
|
1537
|
-
targets.push({
|
|
1538
|
-
provider: providerKey,
|
|
1539
|
-
model,
|
|
1540
|
-
label,
|
|
1541
|
-
source,
|
|
1542
|
-
mode
|
|
1543
|
-
});
|
|
1544
|
-
}
|
|
1545
|
-
return {
|
|
1546
|
-
targets,
|
|
1547
|
-
results
|
|
1548
|
-
};
|
|
1549
|
-
}
|
|
1550
|
-
async function probeTarget(params) {
|
|
1551
|
-
const { cfg, agentId, agentDir, workspaceDir, sessionDir, target, timeoutMs, maxTokens } = params;
|
|
1552
|
-
if (!target.model) return {
|
|
1553
|
-
provider: target.provider,
|
|
1554
|
-
model: void 0,
|
|
1555
|
-
profileId: target.profileId,
|
|
1556
|
-
label: target.label,
|
|
1557
|
-
source: target.source,
|
|
1558
|
-
mode: target.mode,
|
|
1559
|
-
status: "no_model",
|
|
1560
|
-
reasonCode: "no_model",
|
|
1561
|
-
error: "No model available for probe"
|
|
1562
|
-
};
|
|
1563
|
-
const model = target.model;
|
|
1564
|
-
const sessionId = `probe-${target.provider}-${crypto.randomUUID()}`;
|
|
1565
|
-
const sessionFile = resolveSessionTranscriptPath(sessionId, agentId);
|
|
1566
|
-
await fs.mkdir(sessionDir, { recursive: true });
|
|
1567
|
-
const start = Date.now();
|
|
1568
|
-
const buildResult = (status, error) => ({
|
|
1569
|
-
provider: target.provider,
|
|
1570
|
-
model: `${model.provider}/${model.model}`,
|
|
1571
|
-
profileId: target.profileId,
|
|
1572
|
-
label: target.label,
|
|
1573
|
-
source: target.source,
|
|
1574
|
-
mode: target.mode,
|
|
1575
|
-
status,
|
|
1576
|
-
...error ? { error } : {},
|
|
1577
|
-
latencyMs: Date.now() - start
|
|
1578
|
-
});
|
|
1579
|
-
try {
|
|
1580
|
-
const { runEmbeddedPiAgent } = await loadEmbeddedRunnerModule();
|
|
1581
|
-
await runEmbeddedPiAgent({
|
|
1582
|
-
sessionId,
|
|
1583
|
-
sessionFile,
|
|
1584
|
-
agentId,
|
|
1585
|
-
workspaceDir,
|
|
1586
|
-
agentDir,
|
|
1587
|
-
config: cfg,
|
|
1588
|
-
prompt: PROBE_PROMPT,
|
|
1589
|
-
provider: target.model.provider,
|
|
1590
|
-
model: target.model.model,
|
|
1591
|
-
authProfileId: target.profileId,
|
|
1592
|
-
authProfileIdSource: target.profileId ? "user" : void 0,
|
|
1593
|
-
timeoutMs,
|
|
1594
|
-
runId: `probe-${crypto.randomUUID()}`,
|
|
1595
|
-
lane: `auth-probe:${target.provider}:${target.profileId ?? target.source}`,
|
|
1596
|
-
thinkLevel: "off",
|
|
1597
|
-
reasoningLevel: "off",
|
|
1598
|
-
verboseLevel: "off",
|
|
1599
|
-
streamParams: { maxTokens }
|
|
1600
|
-
});
|
|
1601
|
-
return buildResult("ok");
|
|
1602
|
-
} catch (err) {
|
|
1603
|
-
const described = describeFailoverError(err);
|
|
1604
|
-
return buildResult(mapFailoverReasonToProbeStatus(described.reason), redactSecrets(described.message));
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
async function runTargetsWithConcurrency(params) {
|
|
1608
|
-
const { cfg, targets, timeoutMs, maxTokens, onProgress } = params;
|
|
1609
|
-
const concurrency = Math.max(1, Math.min(targets.length || 1, params.concurrency));
|
|
1610
|
-
const agentId = resolveDefaultAgentId(cfg);
|
|
1611
|
-
const agentDir = resolveKaijiBotAgentDir();
|
|
1612
|
-
const workspaceDir = resolveAgentWorkspaceDir(cfg, agentId) ?? resolveDefaultAgentWorkspaceDir();
|
|
1613
|
-
const sessionDir = resolveSessionTranscriptsDirForAgent(agentId);
|
|
1614
|
-
await fs.mkdir(workspaceDir, { recursive: true });
|
|
1615
|
-
let completed = 0;
|
|
1616
|
-
const results = Array.from({ length: targets.length });
|
|
1617
|
-
let cursor = 0;
|
|
1618
|
-
const worker = async () => {
|
|
1619
|
-
while (true) {
|
|
1620
|
-
const index = cursor;
|
|
1621
|
-
cursor += 1;
|
|
1622
|
-
if (index >= targets.length) return;
|
|
1623
|
-
const target = targets[index];
|
|
1624
|
-
onProgress?.({
|
|
1625
|
-
completed,
|
|
1626
|
-
total: targets.length,
|
|
1627
|
-
label: `Probing ${target.provider}${target.profileId ? ` (${target.label})` : ""}`
|
|
1628
|
-
});
|
|
1629
|
-
results[index] = await probeTarget({
|
|
1630
|
-
cfg,
|
|
1631
|
-
agentId,
|
|
1632
|
-
agentDir,
|
|
1633
|
-
workspaceDir,
|
|
1634
|
-
sessionDir,
|
|
1635
|
-
target,
|
|
1636
|
-
timeoutMs,
|
|
1637
|
-
maxTokens
|
|
1638
|
-
});
|
|
1639
|
-
completed += 1;
|
|
1640
|
-
onProgress?.({
|
|
1641
|
-
completed,
|
|
1642
|
-
total: targets.length
|
|
1643
|
-
});
|
|
1644
|
-
}
|
|
1645
|
-
};
|
|
1646
|
-
await Promise.all(Array.from({ length: concurrency }, () => worker()));
|
|
1647
|
-
return results.filter((entry) => Boolean(entry));
|
|
1648
|
-
}
|
|
1649
|
-
async function runAuthProbes(params) {
|
|
1650
|
-
const startedAt = Date.now();
|
|
1651
|
-
const plan = await buildProbeTargets({
|
|
1652
|
-
cfg: params.cfg,
|
|
1653
|
-
providers: params.providers,
|
|
1654
|
-
modelCandidates: params.modelCandidates,
|
|
1655
|
-
options: params.options
|
|
1656
|
-
});
|
|
1657
|
-
const totalTargets = plan.targets.length;
|
|
1658
|
-
params.onProgress?.({
|
|
1659
|
-
completed: 0,
|
|
1660
|
-
total: totalTargets
|
|
1661
|
-
});
|
|
1662
|
-
const results = totalTargets ? await runTargetsWithConcurrency({
|
|
1663
|
-
cfg: params.cfg,
|
|
1664
|
-
targets: plan.targets,
|
|
1665
|
-
timeoutMs: params.options.timeoutMs,
|
|
1666
|
-
maxTokens: params.options.maxTokens,
|
|
1667
|
-
concurrency: params.options.concurrency,
|
|
1668
|
-
onProgress: params.onProgress
|
|
1669
|
-
}) : [];
|
|
1670
|
-
const finishedAt = Date.now();
|
|
1671
|
-
return {
|
|
1672
|
-
startedAt,
|
|
1673
|
-
finishedAt,
|
|
1674
|
-
durationMs: finishedAt - startedAt,
|
|
1675
|
-
totalTargets,
|
|
1676
|
-
options: params.options,
|
|
1677
|
-
results: [...plan.results, ...results]
|
|
1678
|
-
};
|
|
1679
|
-
}
|
|
1680
|
-
function formatProbeLatency(latencyMs) {
|
|
1681
|
-
if (!latencyMs && latencyMs !== 0) return "-";
|
|
1682
|
-
return formatMs(latencyMs);
|
|
1683
|
-
}
|
|
1684
|
-
function sortProbeResults(results) {
|
|
1685
|
-
return results.slice().toSorted((a, b) => {
|
|
1686
|
-
const provider = a.provider.localeCompare(b.provider);
|
|
1687
|
-
if (provider !== 0) return provider;
|
|
1688
|
-
const aLabel = a.label || a.profileId || "";
|
|
1689
|
-
const bLabel = b.label || b.profileId || "";
|
|
1690
|
-
return aLabel.localeCompare(bLabel);
|
|
1691
|
-
});
|
|
1692
|
-
}
|
|
1693
|
-
function describeProbeSummary(summary) {
|
|
1694
|
-
if (summary.totalTargets === 0) return "No probe targets.";
|
|
1695
|
-
return `Probed ${summary.totalTargets} target${summary.totalTargets === 1 ? "" : "s"} in ${formatMs(summary.durationMs)}`;
|
|
1696
|
-
}
|
|
1697
|
-
//#endregion
|
|
1698
|
-
//#region src/commands/models/list.status-command.ts
|
|
1699
|
-
async function modelsStatusCommand(opts, runtime) {
|
|
1700
|
-
ensureFlagCompatibility(opts);
|
|
1701
|
-
if (opts.plain && opts.probe) throw new Error("--probe cannot be used with --plain output.");
|
|
1702
|
-
const configPath = createConfigIO().configPath;
|
|
1703
|
-
const cfg = await loadModelsConfig({
|
|
1704
|
-
commandName: "models status",
|
|
1705
|
-
runtime
|
|
1706
|
-
});
|
|
1707
|
-
const agentId = resolveKnownAgentId({
|
|
1708
|
-
cfg,
|
|
1709
|
-
rawAgentId: opts.agent
|
|
1710
|
-
});
|
|
1711
|
-
const agentDir = agentId ? resolveAgentDir(cfg, agentId) : resolveKaijiBotAgentDir();
|
|
1712
|
-
const agentModelPrimary = agentId ? resolveAgentExplicitModelPrimary(cfg, agentId) : void 0;
|
|
1713
|
-
const agentFallbacksOverride = agentId ? resolveAgentModelFallbacksOverride(cfg, agentId) : void 0;
|
|
1714
|
-
const resolved = agentId ? resolveDefaultModelForAgent({
|
|
1715
|
-
cfg,
|
|
1716
|
-
agentId
|
|
1717
|
-
}) : resolveConfiguredModelRef({
|
|
1718
|
-
cfg,
|
|
1719
|
-
defaultProvider: "",
|
|
1720
|
-
defaultModel: ""
|
|
1721
|
-
});
|
|
1722
|
-
const rawDefaultsModel = resolveAgentModelPrimaryValue(cfg.agents?.defaults?.model) ?? "";
|
|
1723
|
-
const rawModel = agentModelPrimary ?? rawDefaultsModel;
|
|
1724
|
-
const resolvedLabel = `${resolved.provider}/${resolved.model}`;
|
|
1725
|
-
const defaultLabel = rawModel || resolvedLabel;
|
|
1726
|
-
const defaultsFallbacks = resolveAgentModelFallbackValues(cfg.agents?.defaults?.model);
|
|
1727
|
-
const fallbacks = agentFallbacksOverride ?? defaultsFallbacks;
|
|
1728
|
-
const imageModel = resolveAgentModelPrimaryValue(cfg.agents?.defaults?.imageModel) ?? "";
|
|
1729
|
-
const imageFallbacks = resolveAgentModelFallbackValues(cfg.agents?.defaults?.imageModel);
|
|
1730
|
-
const aliases = Object.entries(cfg.agents?.defaults?.models ?? {}).reduce((acc, [key, entry]) => {
|
|
1731
|
-
const alias = normalizeOptionalString(entry?.alias);
|
|
1732
|
-
if (alias) acc[alias] = key;
|
|
1733
|
-
return acc;
|
|
1734
|
-
}, {});
|
|
1735
|
-
const allowed = Object.keys(cfg.agents?.defaults?.models ?? {});
|
|
1736
|
-
const store = ensureAuthProfileStore(agentDir);
|
|
1737
|
-
const modelsPath = path.join(agentDir, "models.json");
|
|
1738
|
-
const providersFromStore = new Set(Object.values(store.profiles).map((profile) => normalizeProviderId(profile.provider)).filter((p) => Boolean(p)));
|
|
1739
|
-
const providersFromConfig = new Set(Object.keys(cfg.models?.providers ?? {}).map((p) => typeof p === "string" ? normalizeProviderId(p) : "").filter(Boolean));
|
|
1740
|
-
const providersFromModels = /* @__PURE__ */ new Set();
|
|
1741
|
-
const providersInUse = /* @__PURE__ */ new Set();
|
|
1742
|
-
for (const raw of [
|
|
1743
|
-
defaultLabel,
|
|
1744
|
-
...fallbacks,
|
|
1745
|
-
imageModel,
|
|
1746
|
-
...imageFallbacks,
|
|
1747
|
-
...allowed
|
|
1748
|
-
]) {
|
|
1749
|
-
const parsed = parseModelRef(String(raw ?? ""), "");
|
|
1750
|
-
if (parsed?.provider) providersFromModels.add(normalizeProviderId(parsed.provider));
|
|
1751
|
-
}
|
|
1752
|
-
for (const raw of [
|
|
1753
|
-
defaultLabel,
|
|
1754
|
-
...fallbacks,
|
|
1755
|
-
imageModel,
|
|
1756
|
-
...imageFallbacks
|
|
1757
|
-
]) {
|
|
1758
|
-
const parsed = parseModelRef(String(raw ?? ""), "");
|
|
1759
|
-
if (parsed?.provider) providersInUse.add(normalizeProviderId(parsed.provider));
|
|
1760
|
-
}
|
|
1761
|
-
const providersFromEnv = /* @__PURE__ */ new Set();
|
|
1762
|
-
for (const provider of Object.keys(resolveProviderEnvApiKeyCandidates()).toSorted()) if (resolveEnvApiKey(provider)) providersFromEnv.add(provider);
|
|
1763
|
-
const providers = Array.from(new Set([
|
|
1764
|
-
...providersFromStore,
|
|
1765
|
-
...providersFromConfig,
|
|
1766
|
-
...providersFromModels,
|
|
1767
|
-
...providersFromEnv
|
|
1768
|
-
])).map((p) => normalizeOptionalString(p) ?? "").filter(Boolean).toSorted((a, b) => a.localeCompare(b));
|
|
1769
|
-
const applied = getShellEnvAppliedKeys();
|
|
1770
|
-
const shellFallbackEnabled = shouldEnableShellEnvFallback(process.env) || cfg.env?.shellEnv?.enabled === true;
|
|
1771
|
-
const providerAuth = providers.map((provider) => resolveProviderAuthOverview({
|
|
1772
|
-
provider,
|
|
1773
|
-
cfg,
|
|
1774
|
-
store,
|
|
1775
|
-
modelsPath
|
|
1776
|
-
})).filter((entry) => {
|
|
1777
|
-
return entry.profiles.count > 0 || Boolean(entry.env) || Boolean(entry.modelsJson);
|
|
1778
|
-
});
|
|
1779
|
-
const providerAuthMap = new Map(providerAuth.map((entry) => [entry.provider, entry]));
|
|
1780
|
-
const missingProvidersInUse = Array.from(providersInUse).filter((provider) => !providerAuthMap.has(provider)).filter((provider) => !isCliProvider(provider, cfg)).toSorted((a, b) => a.localeCompare(b));
|
|
1781
|
-
const probeProfileIds = (() => {
|
|
1782
|
-
if (!opts.probeProfile) return [];
|
|
1783
|
-
return (Array.isArray(opts.probeProfile) ? opts.probeProfile : [opts.probeProfile]).flatMap((value) => String(value ?? "").split(",")).map((value) => value.trim()).filter(Boolean);
|
|
1784
|
-
})();
|
|
1785
|
-
const probeTimeoutMs = opts.probeTimeout ? Number(opts.probeTimeout) : 8e3;
|
|
1786
|
-
if (!Number.isFinite(probeTimeoutMs) || probeTimeoutMs <= 0) throw new Error("--probe-timeout must be a positive number (ms).");
|
|
1787
|
-
const probeConcurrency = opts.probeConcurrency ? Number(opts.probeConcurrency) : 2;
|
|
1788
|
-
if (!Number.isFinite(probeConcurrency) || probeConcurrency <= 0) throw new Error("--probe-concurrency must be > 0.");
|
|
1789
|
-
const probeMaxTokens = opts.probeMaxTokens ? Number(opts.probeMaxTokens) : 8;
|
|
1790
|
-
if (!Number.isFinite(probeMaxTokens) || probeMaxTokens <= 0) throw new Error("--probe-max-tokens must be > 0.");
|
|
1791
|
-
const aliasIndex = buildModelAliasIndex({
|
|
1792
|
-
cfg,
|
|
1793
|
-
defaultProvider: ""
|
|
1794
|
-
});
|
|
1795
|
-
const modelCandidates = [
|
|
1796
|
-
rawModel || resolvedLabel,
|
|
1797
|
-
...fallbacks,
|
|
1798
|
-
imageModel,
|
|
1799
|
-
...imageFallbacks,
|
|
1800
|
-
...allowed
|
|
1801
|
-
].filter(Boolean).map((raw) => resolveModelRefFromString({
|
|
1802
|
-
raw: String(raw ?? ""),
|
|
1803
|
-
defaultProvider: "",
|
|
1804
|
-
aliasIndex
|
|
1805
|
-
})?.ref).filter((ref) => Boolean(ref)).map((ref) => `${ref.provider}/${ref.model}`);
|
|
1806
|
-
let probeSummary;
|
|
1807
|
-
if (opts.probe) probeSummary = await withProgressTotals({
|
|
1808
|
-
label: "Probing auth profiles…",
|
|
1809
|
-
total: 1
|
|
1810
|
-
}, async (update) => {
|
|
1811
|
-
return await runAuthProbes({
|
|
1812
|
-
cfg,
|
|
1813
|
-
providers,
|
|
1814
|
-
modelCandidates,
|
|
1815
|
-
options: {
|
|
1816
|
-
provider: opts.probeProvider,
|
|
1817
|
-
profileIds: probeProfileIds,
|
|
1818
|
-
timeoutMs: probeTimeoutMs,
|
|
1819
|
-
concurrency: probeConcurrency,
|
|
1820
|
-
maxTokens: probeMaxTokens
|
|
1821
|
-
},
|
|
1822
|
-
onProgress: update
|
|
1823
|
-
});
|
|
1824
|
-
});
|
|
1825
|
-
const providersWithOauth = providerAuth.filter((entry) => entry.profiles.oauth > 0 || entry.profiles.token > 0 || entry.env?.value === "OAuth (env)").map((entry) => {
|
|
1826
|
-
const count = entry.profiles.oauth + entry.profiles.token + (entry.env?.value === "OAuth (env)" ? 1 : 0);
|
|
1827
|
-
return `${entry.provider} (${count})`;
|
|
1828
|
-
});
|
|
1829
|
-
const authHealth = buildAuthHealthSummary({
|
|
1830
|
-
store,
|
|
1831
|
-
cfg,
|
|
1832
|
-
warnAfterMs: DEFAULT_OAUTH_WARN_MS
|
|
1833
|
-
});
|
|
1834
|
-
const oauthProfiles = authHealth.profiles.filter((profile) => profile.type === "oauth" || profile.type === "token");
|
|
1835
|
-
const unusableProfiles = (() => {
|
|
1836
|
-
const now = Date.now();
|
|
1837
|
-
const out = [];
|
|
1838
|
-
for (const profileId of Object.keys(store.usageStats ?? {})) {
|
|
1839
|
-
const unusableUntil = resolveProfileUnusableUntilForDisplay(store, profileId);
|
|
1840
|
-
if (!unusableUntil || now >= unusableUntil) continue;
|
|
1841
|
-
const stats = store.usageStats?.[profileId];
|
|
1842
|
-
const kind = typeof stats?.disabledUntil === "number" && now < stats.disabledUntil ? "disabled" : "cooldown";
|
|
1843
|
-
out.push({
|
|
1844
|
-
profileId,
|
|
1845
|
-
provider: store.profiles[profileId]?.provider,
|
|
1846
|
-
kind,
|
|
1847
|
-
reason: stats?.disabledReason,
|
|
1848
|
-
until: unusableUntil,
|
|
1849
|
-
remainingMs: unusableUntil - now
|
|
1850
|
-
});
|
|
1851
|
-
}
|
|
1852
|
-
return out.toSorted((a, b) => a.remainingMs - b.remainingMs);
|
|
1853
|
-
})();
|
|
1854
|
-
const checkStatus = (() => {
|
|
1855
|
-
const hasExpiredOrMissing = oauthProfiles.some((profile) => ["expired", "missing"].includes(profile.status)) || missingProvidersInUse.length > 0;
|
|
1856
|
-
const hasExpiring = oauthProfiles.some((profile) => profile.status === "expiring");
|
|
1857
|
-
if (hasExpiredOrMissing) return 1;
|
|
1858
|
-
if (hasExpiring) return 2;
|
|
1859
|
-
return 0;
|
|
1860
|
-
})();
|
|
1861
|
-
if (opts.json) {
|
|
1862
|
-
writeRuntimeJson(runtime, {
|
|
1863
|
-
configPath,
|
|
1864
|
-
...agentId ? { agentId } : {},
|
|
1865
|
-
agentDir,
|
|
1866
|
-
defaultModel: defaultLabel,
|
|
1867
|
-
resolvedDefault: resolvedLabel,
|
|
1868
|
-
fallbacks,
|
|
1869
|
-
imageModel: imageModel || null,
|
|
1870
|
-
imageFallbacks,
|
|
1871
|
-
...agentId ? { modelConfig: {
|
|
1872
|
-
defaultSource: agentModelPrimary ? "agent" : "defaults",
|
|
1873
|
-
fallbacksSource: agentFallbacksOverride !== void 0 ? "agent" : "defaults"
|
|
1874
|
-
} } : {},
|
|
1875
|
-
aliases,
|
|
1876
|
-
allowed,
|
|
1877
|
-
auth: {
|
|
1878
|
-
storePath: resolveAuthStorePathForDisplay(agentDir),
|
|
1879
|
-
shellEnvFallback: {
|
|
1880
|
-
enabled: shellFallbackEnabled,
|
|
1881
|
-
appliedKeys: applied
|
|
1882
|
-
},
|
|
1883
|
-
providersWithOAuth: providersWithOauth,
|
|
1884
|
-
missingProvidersInUse,
|
|
1885
|
-
providers: providerAuth,
|
|
1886
|
-
unusableProfiles,
|
|
1887
|
-
oauth: {
|
|
1888
|
-
warnAfterMs: authHealth.warnAfterMs,
|
|
1889
|
-
profiles: authHealth.profiles,
|
|
1890
|
-
providers: authHealth.providers
|
|
1891
|
-
},
|
|
1892
|
-
probes: probeSummary
|
|
1893
|
-
}
|
|
1894
|
-
});
|
|
1895
|
-
if (opts.check) runtime.exit(checkStatus);
|
|
1896
|
-
return;
|
|
1897
|
-
}
|
|
1898
|
-
if (opts.plain) {
|
|
1899
|
-
runtime.log(resolvedLabel);
|
|
1900
|
-
if (opts.check) runtime.exit(checkStatus);
|
|
1901
|
-
return;
|
|
1902
|
-
}
|
|
1903
|
-
const rich = isRich(opts);
|
|
1904
|
-
const label = (value) => colorize(rich, theme.accent, value.padEnd(14));
|
|
1905
|
-
const labelWithSource = (value, source) => label(source ? `${value} (${source})` : value);
|
|
1906
|
-
const displayDefault = rawModel && rawModel !== resolvedLabel ? `${resolvedLabel} (from ${rawModel})` : resolvedLabel;
|
|
1907
|
-
runtime.log(`${label("Config")}${colorize(rich, theme.muted, ":")} ${colorize(rich, theme.info, shortenHomePath(configPath))}`);
|
|
1908
|
-
runtime.log(`${label("Agent dir")}${colorize(rich, theme.muted, ":")} ${colorize(rich, theme.info, shortenHomePath(agentDir))}`);
|
|
1909
|
-
runtime.log(`${labelWithSource("Default", agentId ? agentModelPrimary ? "agent" : "defaults" : void 0)}${colorize(rich, theme.muted, ":")} ${colorize(rich, theme.success, displayDefault)}`);
|
|
1910
|
-
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(", ") : "-")}`);
|
|
1911
|
-
runtime.log(`${labelWithSource("Image model", agentId ? "defaults" : void 0)}${colorize(rich, theme.muted, ":")} ${colorize(rich, imageModel ? theme.accentBright : theme.muted, imageModel || "-")}`);
|
|
1912
|
-
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(", ") : "-")}`);
|
|
1913
|
-
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(", ") : "-")}`);
|
|
1914
|
-
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")}`);
|
|
1915
|
-
runtime.log("");
|
|
1916
|
-
runtime.log(colorize(rich, theme.heading, "Auth overview"));
|
|
1917
|
-
runtime.log(`${label("Auth store")}${colorize(rich, theme.muted, ":")} ${colorize(rich, theme.info, shortenHomePath(resolveAuthStorePathForDisplay(agentDir)))}`);
|
|
1918
|
-
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(", ")})`) : ""}`);
|
|
1919
|
-
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(", ") : "-")}`);
|
|
1920
|
-
const formatKey = (key) => colorize(rich, theme.warn, key);
|
|
1921
|
-
const formatKeyValue = (key, value) => `${formatKey(key)}=${colorize(rich, theme.info, value)}`;
|
|
1922
|
-
const formatSeparator = () => colorize(rich, theme.muted, " | ");
|
|
1923
|
-
for (const entry of providerAuth) {
|
|
1924
|
-
const separator = formatSeparator();
|
|
1925
|
-
const bits = [];
|
|
1926
|
-
bits.push(formatKeyValue("effective", `${colorize(rich, theme.accentBright, entry.effective.kind)}:${colorize(rich, theme.muted, entry.effective.detail)}`));
|
|
1927
|
-
if (entry.profiles.count > 0) {
|
|
1928
|
-
bits.push(formatKeyValue("profiles", `${entry.profiles.count} (oauth=${entry.profiles.oauth}, token=${entry.profiles.token}, api_key=${entry.profiles.apiKey})`));
|
|
1929
|
-
if (entry.profiles.labels.length > 0) bits.push(colorize(rich, theme.info, entry.profiles.labels.join(", ")));
|
|
1930
|
-
}
|
|
1931
|
-
if (entry.env) bits.push(formatKeyValue("env", `${entry.env.value}${separator}${formatKeyValue("source", entry.env.source)}`));
|
|
1932
|
-
if (entry.modelsJson) bits.push(formatKeyValue("models.json", `${entry.modelsJson.value}${separator}${formatKeyValue("source", entry.modelsJson.source)}`));
|
|
1933
|
-
runtime.log(`- ${theme.heading(entry.provider)} ${bits.join(separator)}`);
|
|
1934
|
-
}
|
|
1935
|
-
if (missingProvidersInUse.length > 0) {
|
|
1936
|
-
runtime.log("");
|
|
1937
|
-
runtime.log(colorize(rich, theme.heading, "Missing auth"));
|
|
1938
|
-
for (const provider of missingProvidersInUse) {
|
|
1939
|
-
const hint = buildProviderAuthRecoveryHint({
|
|
1940
|
-
provider,
|
|
1941
|
-
config: cfg,
|
|
1942
|
-
includeEnvVar: true
|
|
1943
|
-
});
|
|
1944
|
-
runtime.log(`- ${theme.heading(provider)} ${hint}`);
|
|
1945
|
-
}
|
|
1946
|
-
}
|
|
1947
|
-
runtime.log("");
|
|
1948
|
-
runtime.log(colorize(rich, theme.heading, "OAuth/token status"));
|
|
1949
|
-
if (oauthProfiles.length === 0) runtime.log(colorize(rich, theme.muted, "- none"));
|
|
1950
|
-
else {
|
|
1951
|
-
const usageByProvider = /* @__PURE__ */ new Map();
|
|
1952
|
-
const usageProviders = Array.from(new Set(oauthProfiles.map((profile) => resolveUsageProviderId(profile.provider)).filter((provider) => Boolean(provider))));
|
|
1953
|
-
if (usageProviders.length > 0) try {
|
|
1954
|
-
const usageSummary = await loadProviderUsageSummary({
|
|
1955
|
-
providers: usageProviders,
|
|
1956
|
-
agentDir,
|
|
1957
|
-
timeoutMs: 3500
|
|
1958
|
-
});
|
|
1959
|
-
for (const snapshot of usageSummary.providers) {
|
|
1960
|
-
const formatted = formatUsageWindowSummary(snapshot, {
|
|
1961
|
-
now: Date.now(),
|
|
1962
|
-
maxWindows: 2,
|
|
1963
|
-
includeResets: true
|
|
1964
|
-
});
|
|
1965
|
-
if (formatted) usageByProvider.set(snapshot.provider, formatted);
|
|
1966
|
-
}
|
|
1967
|
-
} catch {}
|
|
1968
|
-
const formatStatus = (status) => {
|
|
1969
|
-
if (status === "ok") return colorize(rich, theme.success, "ok");
|
|
1970
|
-
if (status === "static") return colorize(rich, theme.muted, "static");
|
|
1971
|
-
if (status === "expiring") return colorize(rich, theme.warn, "expiring");
|
|
1972
|
-
if (status === "missing") return colorize(rich, theme.warn, "unknown");
|
|
1973
|
-
return colorize(rich, theme.error, "expired");
|
|
1974
|
-
};
|
|
1975
|
-
const profilesByProvider = /* @__PURE__ */ new Map();
|
|
1976
|
-
for (const profile of oauthProfiles) {
|
|
1977
|
-
const current = profilesByProvider.get(profile.provider);
|
|
1978
|
-
if (current) current.push(profile);
|
|
1979
|
-
else profilesByProvider.set(profile.provider, [profile]);
|
|
1980
|
-
}
|
|
1981
|
-
for (const [provider, profiles] of profilesByProvider) {
|
|
1982
|
-
const usageKey = resolveUsageProviderId(provider);
|
|
1983
|
-
const usage = usageKey ? usageByProvider.get(usageKey) : void 0;
|
|
1984
|
-
const usageSuffix = usage ? colorize(rich, theme.muted, ` usage: ${usage}`) : "";
|
|
1985
|
-
runtime.log(`- ${colorize(rich, theme.heading, provider)}${usageSuffix}`);
|
|
1986
|
-
for (const profile of profiles) {
|
|
1987
|
-
const labelText = profile.label || profile.profileId;
|
|
1988
|
-
const label = colorize(rich, theme.accent, labelText);
|
|
1989
|
-
const status = formatStatus(profile.status);
|
|
1990
|
-
const expiry = profile.status === "static" ? "" : profile.expiresAt ? ` expires in ${formatRemainingShort(profile.remainingMs)}` : " expires unknown";
|
|
1991
|
-
runtime.log(` - ${label} ${status}${expiry}`);
|
|
1992
|
-
}
|
|
1993
|
-
}
|
|
1994
|
-
}
|
|
1995
|
-
if (probeSummary) {
|
|
1996
|
-
runtime.log("");
|
|
1997
|
-
runtime.log(colorize(rich, theme.heading, "Auth probes"));
|
|
1998
|
-
if (probeSummary.results.length === 0) runtime.log(colorize(rich, theme.muted, "- none"));
|
|
1999
|
-
else {
|
|
2000
|
-
const tableWidth = getTerminalTableWidth();
|
|
2001
|
-
const sorted = sortProbeResults(probeSummary.results);
|
|
2002
|
-
const statusColor = (status) => {
|
|
2003
|
-
if (status === "ok") return theme.success;
|
|
2004
|
-
if (status === "rate_limit") return theme.warn;
|
|
2005
|
-
if (status === "timeout" || status === "billing") return theme.warn;
|
|
2006
|
-
if (status === "auth" || status === "format") return theme.error;
|
|
2007
|
-
if (status === "no_model") return theme.muted;
|
|
2008
|
-
return theme.muted;
|
|
2009
|
-
};
|
|
2010
|
-
const rows = sorted.map((result) => {
|
|
2011
|
-
const status = colorize(rich, statusColor(result.status), result.status);
|
|
2012
|
-
const latency = formatProbeLatency(result.latencyMs);
|
|
2013
|
-
const modelLabel = result.model ?? `${result.provider}/-`;
|
|
2014
|
-
const modeLabel = result.mode ? ` ${colorize(rich, theme.muted, `(${result.mode})`)}` : "";
|
|
2015
|
-
const profile = `${colorize(rich, theme.accent, result.label)}${modeLabel}`;
|
|
2016
|
-
const detail = result.error?.trim();
|
|
2017
|
-
const detailLabel = detail ? `\n${colorize(rich, theme.muted, `↳ ${detail}`)}` : "";
|
|
2018
|
-
const statusLabel = `${status}${colorize(rich, theme.muted, ` · ${latency}`)}${detailLabel}`;
|
|
2019
|
-
return {
|
|
2020
|
-
Model: colorize(rich, theme.heading, modelLabel),
|
|
2021
|
-
Profile: profile,
|
|
2022
|
-
Status: statusLabel
|
|
2023
|
-
};
|
|
2024
|
-
});
|
|
2025
|
-
runtime.log(renderTable({
|
|
2026
|
-
width: tableWidth,
|
|
2027
|
-
columns: [
|
|
2028
|
-
{
|
|
2029
|
-
key: "Model",
|
|
2030
|
-
header: "Model",
|
|
2031
|
-
minWidth: 18
|
|
2032
|
-
},
|
|
2033
|
-
{
|
|
2034
|
-
key: "Profile",
|
|
2035
|
-
header: "Profile",
|
|
2036
|
-
minWidth: 24
|
|
2037
|
-
},
|
|
2038
|
-
{
|
|
2039
|
-
key: "Status",
|
|
2040
|
-
header: "Status",
|
|
2041
|
-
minWidth: 12
|
|
2042
|
-
}
|
|
2043
|
-
],
|
|
2044
|
-
rows
|
|
2045
|
-
}).trimEnd());
|
|
2046
|
-
runtime.log(colorize(rich, theme.muted, describeProbeSummary(probeSummary)));
|
|
2047
|
-
}
|
|
2048
|
-
}
|
|
2049
|
-
if (opts.check) runtime.exit(checkStatus);
|
|
2050
|
-
}
|
|
2051
|
-
//#endregion
|
|
2052
|
-
//#region src/agents/model-scan.ts
|
|
2053
|
-
const OPENROUTER_MODELS_URL = "https://openrouter.ai/api/v1/models";
|
|
2054
|
-
const DEFAULT_TIMEOUT_MS = 12e3;
|
|
2055
|
-
const DEFAULT_CONCURRENCY = 3;
|
|
2056
|
-
const BASE_IMAGE_PNG = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+X3mIAAAAASUVORK5CYII=";
|
|
2057
|
-
const TOOL_PING = {
|
|
2058
|
-
name: "ping",
|
|
2059
|
-
description: "Return OK.",
|
|
2060
|
-
parameters: Type.Object({})
|
|
2061
|
-
};
|
|
2062
|
-
function normalizeCreatedAtMs(value) {
|
|
2063
|
-
if (typeof value !== "number" || !Number.isFinite(value)) return null;
|
|
2064
|
-
if (value <= 0) return null;
|
|
2065
|
-
if (value > 0xe8d4a51000) return Math.round(value);
|
|
2066
|
-
return Math.round(value * 1e3);
|
|
2067
|
-
}
|
|
2068
|
-
function parseModality(modality) {
|
|
2069
|
-
if (!modality) return ["text"];
|
|
2070
|
-
return normalizeLowercaseStringOrEmpty(modality).split(/[^a-z]+/).filter(Boolean).includes("image") ? ["text", "image"] : ["text"];
|
|
2071
|
-
}
|
|
2072
|
-
function parseNumberString(value) {
|
|
2073
|
-
if (typeof value === "number" && Number.isFinite(value)) return value;
|
|
2074
|
-
if (typeof value !== "string") return null;
|
|
2075
|
-
const trimmed = value.trim();
|
|
2076
|
-
if (!trimmed) return null;
|
|
2077
|
-
const num = Number(trimmed);
|
|
2078
|
-
if (!Number.isFinite(num)) return null;
|
|
2079
|
-
return num;
|
|
2080
|
-
}
|
|
2081
|
-
function parseOpenRouterPricing(value) {
|
|
2082
|
-
if (!value || typeof value !== "object") return null;
|
|
2083
|
-
const obj = value;
|
|
2084
|
-
const prompt = parseNumberString(obj.prompt);
|
|
2085
|
-
const completion = parseNumberString(obj.completion);
|
|
2086
|
-
const request = parseNumberString(obj.request) ?? 0;
|
|
2087
|
-
const image = parseNumberString(obj.image) ?? 0;
|
|
2088
|
-
const webSearch = parseNumberString(obj.web_search) ?? 0;
|
|
2089
|
-
const internalReasoning = parseNumberString(obj.internal_reasoning) ?? 0;
|
|
2090
|
-
if (prompt === null || completion === null) return null;
|
|
2091
|
-
return {
|
|
2092
|
-
prompt,
|
|
2093
|
-
completion,
|
|
2094
|
-
request,
|
|
2095
|
-
image,
|
|
2096
|
-
webSearch,
|
|
2097
|
-
internalReasoning
|
|
2098
|
-
};
|
|
2099
|
-
}
|
|
2100
|
-
function isFreeOpenRouterModel(entry) {
|
|
2101
|
-
if (entry.id.endsWith(":free")) return true;
|
|
2102
|
-
if (!entry.pricing) return false;
|
|
2103
|
-
return entry.pricing.prompt === 0 && entry.pricing.completion === 0;
|
|
2104
|
-
}
|
|
2105
|
-
async function withTimeout(timeoutMs, fn) {
|
|
2106
|
-
const controller = new AbortController();
|
|
2107
|
-
const timer = setTimeout(controller.abort.bind(controller), timeoutMs);
|
|
2108
|
-
try {
|
|
2109
|
-
return await fn(controller.signal);
|
|
2110
|
-
} finally {
|
|
2111
|
-
clearTimeout(timer);
|
|
2112
|
-
}
|
|
2113
|
-
}
|
|
2114
|
-
async function fetchOpenRouterModels(fetchImpl) {
|
|
2115
|
-
const res = await fetchImpl(OPENROUTER_MODELS_URL, { headers: { Accept: "application/json" } });
|
|
2116
|
-
if (!res.ok) throw new Error(`OpenRouter /models failed: HTTP ${res.status}`);
|
|
2117
|
-
const payload = await res.json();
|
|
2118
|
-
return (Array.isArray(payload.data) ? payload.data : []).map((entry) => {
|
|
2119
|
-
if (!entry || typeof entry !== "object") return null;
|
|
2120
|
-
const obj = entry;
|
|
2121
|
-
const id = normalizeOptionalString(obj.id) ?? "";
|
|
2122
|
-
if (!id) return null;
|
|
2123
|
-
const name = typeof obj.name === "string" && obj.name.trim() ? obj.name.trim() : id;
|
|
2124
|
-
const contextLength = typeof obj.context_length === "number" && Number.isFinite(obj.context_length) ? obj.context_length : null;
|
|
2125
|
-
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;
|
|
2126
|
-
const supportedParameters = Array.isArray(obj.supported_parameters) ? obj.supported_parameters.filter((value) => typeof value === "string").map((value) => value.trim()).filter(Boolean) : [];
|
|
2127
|
-
return {
|
|
2128
|
-
id,
|
|
2129
|
-
name,
|
|
2130
|
-
contextLength,
|
|
2131
|
-
maxCompletionTokens,
|
|
2132
|
-
supportedParameters,
|
|
2133
|
-
supportedParametersCount: supportedParameters.length,
|
|
2134
|
-
supportsToolsMeta: supportedParameters.includes("tools"),
|
|
2135
|
-
modality: typeof obj.modality === "string" && obj.modality.trim() ? obj.modality.trim() : null,
|
|
2136
|
-
inferredParamB: inferParamBFromIdOrName(`${id} ${name}`),
|
|
2137
|
-
createdAtMs: normalizeCreatedAtMs(obj.created_at),
|
|
2138
|
-
pricing: parseOpenRouterPricing(obj.pricing)
|
|
2139
|
-
};
|
|
2140
|
-
}).filter((entry) => Boolean(entry));
|
|
2141
|
-
}
|
|
2142
|
-
async function probeTool(model, apiKey, timeoutMs) {
|
|
2143
|
-
const context = {
|
|
2144
|
-
messages: [{
|
|
2145
|
-
role: "user",
|
|
2146
|
-
content: "Call the ping tool with {} and nothing else.",
|
|
2147
|
-
timestamp: Date.now()
|
|
2148
|
-
}],
|
|
2149
|
-
tools: [TOOL_PING]
|
|
2150
|
-
};
|
|
2151
|
-
const startedAt = Date.now();
|
|
2152
|
-
try {
|
|
2153
|
-
if (!(await withTimeout(timeoutMs, (signal) => complete(model, context, {
|
|
2154
|
-
apiKey,
|
|
2155
|
-
maxTokens: 256,
|
|
2156
|
-
temperature: 0,
|
|
2157
|
-
toolChoice: "required",
|
|
2158
|
-
signal
|
|
2159
|
-
}))).content.some((block) => block.type === "toolCall")) return {
|
|
2160
|
-
ok: false,
|
|
2161
|
-
latencyMs: Date.now() - startedAt,
|
|
2162
|
-
error: "No tool call returned"
|
|
2163
|
-
};
|
|
2164
|
-
return {
|
|
2165
|
-
ok: true,
|
|
2166
|
-
latencyMs: Date.now() - startedAt
|
|
2167
|
-
};
|
|
2168
|
-
} catch (err) {
|
|
2169
|
-
return {
|
|
2170
|
-
ok: false,
|
|
2171
|
-
latencyMs: Date.now() - startedAt,
|
|
2172
|
-
error: formatErrorMessage(err)
|
|
2173
|
-
};
|
|
2174
|
-
}
|
|
2175
|
-
}
|
|
2176
|
-
async function probeImage(model, apiKey, timeoutMs) {
|
|
2177
|
-
const context = { messages: [{
|
|
2178
|
-
role: "user",
|
|
2179
|
-
content: [{
|
|
2180
|
-
type: "text",
|
|
2181
|
-
text: "Reply with OK."
|
|
2182
|
-
}, {
|
|
2183
|
-
type: "image",
|
|
2184
|
-
data: BASE_IMAGE_PNG,
|
|
2185
|
-
mimeType: "image/png"
|
|
2186
|
-
}],
|
|
2187
|
-
timestamp: Date.now()
|
|
2188
|
-
}] };
|
|
2189
|
-
const startedAt = Date.now();
|
|
2190
|
-
try {
|
|
2191
|
-
await withTimeout(timeoutMs, (signal) => complete(model, context, {
|
|
2192
|
-
apiKey,
|
|
2193
|
-
maxTokens: 16,
|
|
2194
|
-
temperature: 0,
|
|
2195
|
-
signal
|
|
2196
|
-
}));
|
|
2197
|
-
return {
|
|
2198
|
-
ok: true,
|
|
2199
|
-
latencyMs: Date.now() - startedAt
|
|
2200
|
-
};
|
|
2201
|
-
} catch (err) {
|
|
2202
|
-
return {
|
|
2203
|
-
ok: false,
|
|
2204
|
-
latencyMs: Date.now() - startedAt,
|
|
2205
|
-
error: formatErrorMessage(err)
|
|
2206
|
-
};
|
|
2207
|
-
}
|
|
2208
|
-
}
|
|
2209
|
-
function ensureImageInput(model) {
|
|
2210
|
-
if (model.input?.includes("image")) return model;
|
|
2211
|
-
return {
|
|
2212
|
-
...model,
|
|
2213
|
-
input: Array.from(new Set([...model.input ?? [], "image"]))
|
|
2214
|
-
};
|
|
2215
|
-
}
|
|
2216
|
-
function buildOpenRouterScanResult(params) {
|
|
2217
|
-
const { entry, isFree } = params;
|
|
2218
|
-
return {
|
|
2219
|
-
id: entry.id,
|
|
2220
|
-
name: entry.name,
|
|
2221
|
-
provider: "openrouter",
|
|
2222
|
-
modelRef: `openrouter/${entry.id}`,
|
|
2223
|
-
contextLength: entry.contextLength,
|
|
2224
|
-
maxCompletionTokens: entry.maxCompletionTokens,
|
|
2225
|
-
supportedParametersCount: entry.supportedParametersCount,
|
|
2226
|
-
supportsToolsMeta: entry.supportsToolsMeta,
|
|
2227
|
-
modality: entry.modality,
|
|
2228
|
-
inferredParamB: entry.inferredParamB,
|
|
2229
|
-
createdAtMs: entry.createdAtMs,
|
|
2230
|
-
pricing: entry.pricing,
|
|
2231
|
-
isFree,
|
|
2232
|
-
tool: params.tool,
|
|
2233
|
-
image: params.image
|
|
2234
|
-
};
|
|
2235
|
-
}
|
|
2236
|
-
async function mapWithConcurrency(items, concurrency, fn, opts) {
|
|
2237
|
-
const limit = Math.max(1, Math.floor(concurrency));
|
|
2238
|
-
const results = Array.from({ length: items.length }, () => void 0);
|
|
2239
|
-
let nextIndex = 0;
|
|
2240
|
-
let completed = 0;
|
|
2241
|
-
const worker = async () => {
|
|
2242
|
-
while (true) {
|
|
2243
|
-
const current = nextIndex;
|
|
2244
|
-
nextIndex += 1;
|
|
2245
|
-
if (current >= items.length) return;
|
|
2246
|
-
results[current] = await fn(items[current], current);
|
|
2247
|
-
completed += 1;
|
|
2248
|
-
opts?.onProgress?.(completed, items.length);
|
|
2249
|
-
}
|
|
2250
|
-
};
|
|
2251
|
-
if (items.length === 0) {
|
|
2252
|
-
opts?.onProgress?.(0, 0);
|
|
2253
|
-
return results;
|
|
2254
|
-
}
|
|
2255
|
-
await Promise.all(Array.from({ length: Math.min(limit, items.length) }, () => worker()));
|
|
2256
|
-
return results;
|
|
2257
|
-
}
|
|
2258
|
-
async function scanOpenRouterModels(options = {}) {
|
|
2259
|
-
const fetchImpl = options.fetchImpl ?? fetch;
|
|
2260
|
-
const probe = options.probe ?? true;
|
|
2261
|
-
const apiKey = options.apiKey?.trim() || getEnvApiKey("openrouter") || "";
|
|
2262
|
-
if (probe && !apiKey) throw new Error("Missing OpenRouter API key. Set OPENROUTER_API_KEY to run models scan.");
|
|
2263
|
-
const timeoutMs = Math.max(1, Math.floor(options.timeoutMs ?? DEFAULT_TIMEOUT_MS));
|
|
2264
|
-
const concurrency = Math.max(1, Math.floor(options.concurrency ?? DEFAULT_CONCURRENCY));
|
|
2265
|
-
const minParamB = Math.max(0, Math.floor(options.minParamB ?? 0));
|
|
2266
|
-
const maxAgeDays = Math.max(0, Math.floor(options.maxAgeDays ?? 0));
|
|
2267
|
-
const providerFilter = normalizeProviderId(options.providerFilter ?? "");
|
|
2268
|
-
const catalog = await fetchOpenRouterModels(fetchImpl);
|
|
2269
|
-
const now = Date.now();
|
|
2270
|
-
const filtered = catalog.filter((entry) => {
|
|
2271
|
-
if (!isFreeOpenRouterModel(entry)) return false;
|
|
2272
|
-
if (providerFilter) {
|
|
2273
|
-
if (normalizeProviderId(entry.id.split("/")[0] ?? "") !== providerFilter) return false;
|
|
2274
|
-
}
|
|
2275
|
-
if (minParamB > 0) {
|
|
2276
|
-
if ((entry.inferredParamB ?? 0) < minParamB) return false;
|
|
2277
|
-
}
|
|
2278
|
-
if (maxAgeDays > 0 && entry.createdAtMs) {
|
|
2279
|
-
if ((now - entry.createdAtMs) / (1440 * 60 * 1e3) > maxAgeDays) return false;
|
|
2280
|
-
}
|
|
2281
|
-
return true;
|
|
2282
|
-
});
|
|
2283
|
-
const baseModel = getModel("openrouter", "openrouter/auto");
|
|
2284
|
-
options.onProgress?.({
|
|
2285
|
-
phase: "probe",
|
|
2286
|
-
completed: 0,
|
|
2287
|
-
total: filtered.length
|
|
2288
|
-
});
|
|
2289
|
-
return mapWithConcurrency(filtered, concurrency, async (entry) => {
|
|
2290
|
-
const isFree = isFreeOpenRouterModel(entry);
|
|
2291
|
-
if (!probe) return buildOpenRouterScanResult({
|
|
2292
|
-
entry,
|
|
2293
|
-
isFree,
|
|
2294
|
-
tool: {
|
|
2295
|
-
ok: false,
|
|
2296
|
-
latencyMs: null,
|
|
2297
|
-
skipped: true
|
|
2298
|
-
},
|
|
2299
|
-
image: {
|
|
2300
|
-
ok: false,
|
|
2301
|
-
latencyMs: null,
|
|
2302
|
-
skipped: true
|
|
2303
|
-
}
|
|
2304
|
-
});
|
|
2305
|
-
const model = {
|
|
2306
|
-
...baseModel,
|
|
2307
|
-
id: entry.id,
|
|
2308
|
-
name: entry.name || entry.id,
|
|
2309
|
-
contextWindow: entry.contextLength ?? baseModel.contextWindow,
|
|
2310
|
-
maxTokens: entry.maxCompletionTokens ?? baseModel.maxTokens,
|
|
2311
|
-
input: parseModality(entry.modality),
|
|
2312
|
-
reasoning: baseModel.reasoning
|
|
2313
|
-
};
|
|
2314
|
-
return buildOpenRouterScanResult({
|
|
2315
|
-
entry,
|
|
2316
|
-
isFree,
|
|
2317
|
-
tool: await probeTool(model, apiKey, timeoutMs),
|
|
2318
|
-
image: model.input?.includes("image") ? await probeImage(ensureImageInput(model), apiKey, timeoutMs) : {
|
|
2319
|
-
ok: false,
|
|
2320
|
-
latencyMs: null,
|
|
2321
|
-
skipped: true
|
|
2322
|
-
}
|
|
2323
|
-
});
|
|
2324
|
-
}, { onProgress: (completed, total) => options.onProgress?.({
|
|
2325
|
-
phase: "probe",
|
|
2326
|
-
completed,
|
|
2327
|
-
total
|
|
2328
|
-
}) });
|
|
2329
|
-
}
|
|
2330
|
-
//#endregion
|
|
2331
|
-
//#region src/commands/models/scan.ts
|
|
2332
|
-
const MODEL_PAD = 42;
|
|
2333
|
-
const CTX_PAD = 8;
|
|
2334
|
-
const multiselect$1 = (params) => multiselect({
|
|
2335
|
-
...params,
|
|
2336
|
-
message: stylePromptMessage(params.message),
|
|
2337
|
-
options: params.options.map((opt) => opt.hint === void 0 ? opt : {
|
|
2338
|
-
...opt,
|
|
2339
|
-
hint: stylePromptHint(opt.hint)
|
|
2340
|
-
})
|
|
2341
|
-
});
|
|
2342
|
-
function guardPromptCancel(value, runtime) {
|
|
2343
|
-
if (isCancel(value)) {
|
|
2344
|
-
cancel(stylePromptTitle("Model scan cancelled.") ?? "Model scan cancelled.");
|
|
2345
|
-
runtime.exit(0);
|
|
2346
|
-
throw new Error("unreachable");
|
|
2347
|
-
}
|
|
2348
|
-
return value;
|
|
2349
|
-
}
|
|
2350
|
-
function sortScanResults(results) {
|
|
2351
|
-
return results.slice().toSorted((a, b) => {
|
|
2352
|
-
const aImage = a.image.ok ? 1 : 0;
|
|
2353
|
-
const bImage = b.image.ok ? 1 : 0;
|
|
2354
|
-
if (aImage !== bImage) return bImage - aImage;
|
|
2355
|
-
const aToolLatency = a.tool.latencyMs ?? Number.POSITIVE_INFINITY;
|
|
2356
|
-
const bToolLatency = b.tool.latencyMs ?? Number.POSITIVE_INFINITY;
|
|
2357
|
-
if (aToolLatency !== bToolLatency) return aToolLatency - bToolLatency;
|
|
2358
|
-
return compareScanMetadata(a, b);
|
|
2359
|
-
});
|
|
2360
|
-
}
|
|
2361
|
-
function sortImageResults(results) {
|
|
2362
|
-
return results.slice().toSorted((a, b) => {
|
|
2363
|
-
const aLatency = a.image.latencyMs ?? Number.POSITIVE_INFINITY;
|
|
2364
|
-
const bLatency = b.image.latencyMs ?? Number.POSITIVE_INFINITY;
|
|
2365
|
-
if (aLatency !== bLatency) return aLatency - bLatency;
|
|
2366
|
-
return compareScanMetadata(a, b);
|
|
2367
|
-
});
|
|
2368
|
-
}
|
|
2369
|
-
function compareScanMetadata(a, b) {
|
|
2370
|
-
const aCtx = a.contextLength ?? 0;
|
|
2371
|
-
const bCtx = b.contextLength ?? 0;
|
|
2372
|
-
if (aCtx !== bCtx) return bCtx - aCtx;
|
|
2373
|
-
const aParams = a.inferredParamB ?? 0;
|
|
2374
|
-
const bParams = b.inferredParamB ?? 0;
|
|
2375
|
-
if (aParams !== bParams) return bParams - aParams;
|
|
2376
|
-
return a.modelRef.localeCompare(b.modelRef);
|
|
2377
|
-
}
|
|
2378
|
-
function buildScanHint(result) {
|
|
2379
|
-
return [
|
|
2380
|
-
result.tool.ok ? `tool ${formatMs(result.tool.latencyMs)}` : "tool fail",
|
|
2381
|
-
result.image.skipped ? "img skip" : result.image.ok ? `img ${formatMs(result.image.latencyMs)}` : "img fail",
|
|
2382
|
-
result.contextLength ? `ctx ${formatTokenK(result.contextLength)}` : "ctx ?",
|
|
2383
|
-
result.inferredParamB ? `${result.inferredParamB}b` : null
|
|
2384
|
-
].filter(Boolean).join(" | ");
|
|
2385
|
-
}
|
|
2386
|
-
function printScanSummary(results, runtime) {
|
|
2387
|
-
const toolOk = results.filter((r) => r.tool.ok);
|
|
2388
|
-
const imageOk = results.filter((r) => r.image.ok);
|
|
2389
|
-
const toolImageOk = results.filter((r) => r.tool.ok && r.image.ok);
|
|
2390
|
-
const imageOnly = imageOk.filter((r) => !r.tool.ok);
|
|
2391
|
-
runtime.log(`Scan results: tested ${results.length}, tool ok ${toolOk.length}, image ok ${imageOk.length}, tool+image ok ${toolImageOk.length}, image only ${imageOnly.length}`);
|
|
2392
|
-
}
|
|
2393
|
-
function printScanTable(results, runtime) {
|
|
2394
|
-
const header = [
|
|
2395
|
-
pad("Model", MODEL_PAD),
|
|
2396
|
-
pad("Tool", 10),
|
|
2397
|
-
pad("Image", 10),
|
|
2398
|
-
pad("Ctx", CTX_PAD),
|
|
2399
|
-
pad("Params", 8),
|
|
2400
|
-
"Notes"
|
|
2401
|
-
].join(" ");
|
|
2402
|
-
runtime.log(header);
|
|
2403
|
-
for (const entry of results) {
|
|
2404
|
-
const modelLabel = pad(truncate(entry.modelRef, MODEL_PAD), MODEL_PAD);
|
|
2405
|
-
const toolLabel = pad(entry.tool.ok ? formatMs(entry.tool.latencyMs) : "fail", 10);
|
|
2406
|
-
const imageLabel = pad(entry.image.ok ? formatMs(entry.image.latencyMs) : entry.image.skipped ? "skip" : "fail", 10);
|
|
2407
|
-
const ctxLabel = pad(formatTokenK(entry.contextLength), CTX_PAD);
|
|
2408
|
-
const paramsLabel = pad(entry.inferredParamB ? `${entry.inferredParamB}b` : "-", 8);
|
|
2409
|
-
const notes = entry.modality ? `modality:${entry.modality}` : "";
|
|
2410
|
-
runtime.log([
|
|
2411
|
-
modelLabel,
|
|
2412
|
-
toolLabel,
|
|
2413
|
-
imageLabel,
|
|
2414
|
-
ctxLabel,
|
|
2415
|
-
paramsLabel,
|
|
2416
|
-
notes
|
|
2417
|
-
].join(" "));
|
|
2418
|
-
}
|
|
2419
|
-
}
|
|
2420
|
-
async function modelsScanCommand(opts, runtime) {
|
|
2421
|
-
const minParams = opts.minParams ? Number(opts.minParams) : void 0;
|
|
2422
|
-
if (minParams !== void 0 && (!Number.isFinite(minParams) || minParams < 0)) throw new Error("--min-params must be >= 0");
|
|
2423
|
-
const maxAgeDays = opts.maxAgeDays ? Number(opts.maxAgeDays) : void 0;
|
|
2424
|
-
if (maxAgeDays !== void 0 && (!Number.isFinite(maxAgeDays) || maxAgeDays < 0)) throw new Error("--max-age-days must be >= 0");
|
|
2425
|
-
const maxCandidates = opts.maxCandidates ? Number(opts.maxCandidates) : 6;
|
|
2426
|
-
if (!Number.isFinite(maxCandidates) || maxCandidates <= 0) throw new Error("--max-candidates must be > 0");
|
|
2427
|
-
const timeout = opts.timeout ? Number(opts.timeout) : void 0;
|
|
2428
|
-
if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout <= 0)) throw new Error("--timeout must be > 0");
|
|
2429
|
-
const concurrency = opts.concurrency ? Number(opts.concurrency) : void 0;
|
|
2430
|
-
if (concurrency !== void 0 && (!Number.isFinite(concurrency) || concurrency <= 0)) throw new Error("--concurrency must be > 0");
|
|
2431
|
-
const cfg = await loadModelsConfig({
|
|
2432
|
-
commandName: "models scan",
|
|
2433
|
-
runtime
|
|
2434
|
-
});
|
|
2435
|
-
const probe = opts.probe ?? true;
|
|
2436
|
-
let storedKey;
|
|
2437
|
-
if (probe) try {
|
|
2438
|
-
storedKey = (await resolveApiKeyForProvider({
|
|
2439
|
-
provider: "openrouter",
|
|
2440
|
-
cfg
|
|
2441
|
-
})).apiKey;
|
|
2442
|
-
} catch {
|
|
2443
|
-
storedKey = void 0;
|
|
2444
|
-
}
|
|
2445
|
-
const results = await withProgressTotals({
|
|
2446
|
-
label: "Scanning OpenRouter models...",
|
|
2447
|
-
indeterminate: false,
|
|
2448
|
-
enabled: opts.json !== true
|
|
2449
|
-
}, async (update) => await scanOpenRouterModels({
|
|
2450
|
-
apiKey: storedKey ?? void 0,
|
|
2451
|
-
minParamB: minParams,
|
|
2452
|
-
maxAgeDays,
|
|
2453
|
-
providerFilter: opts.provider,
|
|
2454
|
-
timeoutMs: timeout,
|
|
2455
|
-
concurrency,
|
|
2456
|
-
probe,
|
|
2457
|
-
onProgress: ({ phase, completed, total }) => {
|
|
2458
|
-
if (phase !== "probe") return;
|
|
2459
|
-
update({
|
|
2460
|
-
completed,
|
|
2461
|
-
total,
|
|
2462
|
-
label: `${probe ? "Probing models" : "Scanning models"} (${completed}/${total})`
|
|
2463
|
-
});
|
|
2464
|
-
}
|
|
2465
|
-
}));
|
|
2466
|
-
if (!probe) {
|
|
2467
|
-
if (!opts.json) {
|
|
2468
|
-
runtime.log(`Found ${results.length} OpenRouter free models (metadata only; pass --probe to test tools/images).`);
|
|
2469
|
-
printScanTable(sortScanResults(results), runtime);
|
|
2470
|
-
} else writeRuntimeJson(runtime, results);
|
|
2471
|
-
return;
|
|
2472
|
-
}
|
|
2473
|
-
const toolOk = results.filter((entry) => entry.tool.ok);
|
|
2474
|
-
if (toolOk.length === 0) throw new Error("No tool-capable OpenRouter free models found.");
|
|
2475
|
-
const sorted = sortScanResults(results);
|
|
2476
|
-
const toolSorted = sortScanResults(toolOk);
|
|
2477
|
-
const imageSorted = sortImageResults(results.filter((entry) => entry.image.ok));
|
|
2478
|
-
const imagePreferred = toolSorted.filter((entry) => entry.image.ok);
|
|
2479
|
-
const preselected = (imagePreferred.length > 0 ? imagePreferred : toolSorted).slice(0, Math.floor(maxCandidates)).map((entry) => entry.modelRef);
|
|
2480
|
-
const imagePreselected = imageSorted.slice(0, Math.floor(maxCandidates)).map((entry) => entry.modelRef);
|
|
2481
|
-
if (!opts.json) {
|
|
2482
|
-
printScanSummary(results, runtime);
|
|
2483
|
-
printScanTable(sorted, runtime);
|
|
2484
|
-
}
|
|
2485
|
-
const noInput = opts.input === false;
|
|
2486
|
-
const canPrompt = process.stdin.isTTY && !opts.yes && !noInput && !opts.json;
|
|
2487
|
-
let selected = preselected;
|
|
2488
|
-
let selectedImages = imagePreselected;
|
|
2489
|
-
if (canPrompt) {
|
|
2490
|
-
selected = guardPromptCancel(await multiselect$1({
|
|
2491
|
-
message: "Select fallback models (ordered)",
|
|
2492
|
-
options: toolSorted.map((entry) => ({
|
|
2493
|
-
value: entry.modelRef,
|
|
2494
|
-
label: entry.modelRef,
|
|
2495
|
-
hint: buildScanHint(entry)
|
|
2496
|
-
})),
|
|
2497
|
-
initialValues: preselected
|
|
2498
|
-
}), runtime);
|
|
2499
|
-
if (imageSorted.length > 0) selectedImages = guardPromptCancel(await multiselect$1({
|
|
2500
|
-
message: "Select image fallback models (ordered)",
|
|
2501
|
-
options: imageSorted.map((entry) => ({
|
|
2502
|
-
value: entry.modelRef,
|
|
2503
|
-
label: entry.modelRef,
|
|
2504
|
-
hint: buildScanHint(entry)
|
|
2505
|
-
})),
|
|
2506
|
-
initialValues: imagePreselected
|
|
2507
|
-
}), runtime);
|
|
2508
|
-
} else if (!process.stdin.isTTY && !opts.yes && !noInput && !opts.json) throw new Error("Non-interactive scan: pass --yes to apply defaults.");
|
|
2509
|
-
if (selected.length === 0) throw new Error("No models selected for fallbacks.");
|
|
2510
|
-
if (opts.setImage && selectedImages.length === 0) throw new Error("No image-capable models selected for image model.");
|
|
2511
|
-
await updateConfig((cfg) => {
|
|
2512
|
-
const nextModels = { ...cfg.agents?.defaults?.models };
|
|
2513
|
-
for (const entry of selected) if (!nextModels[entry]) nextModels[entry] = {};
|
|
2514
|
-
for (const entry of selectedImages) if (!nextModels[entry]) nextModels[entry] = {};
|
|
2515
|
-
const existingImageModel = toAgentModelListLike(cfg.agents?.defaults?.imageModel);
|
|
2516
|
-
const nextImageModel = selectedImages.length > 0 ? {
|
|
2517
|
-
...existingImageModel?.primary ? { primary: existingImageModel.primary } : void 0,
|
|
2518
|
-
fallbacks: selectedImages,
|
|
2519
|
-
...opts.setImage ? { primary: selectedImages[0] } : {}
|
|
2520
|
-
} : cfg.agents?.defaults?.imageModel;
|
|
2521
|
-
const existingModel = toAgentModelListLike(cfg.agents?.defaults?.model);
|
|
2522
|
-
const defaults = {
|
|
2523
|
-
...cfg.agents?.defaults,
|
|
2524
|
-
model: {
|
|
2525
|
-
...existingModel?.primary ? { primary: existingModel.primary } : void 0,
|
|
2526
|
-
fallbacks: selected,
|
|
2527
|
-
...opts.setDefault ? { primary: selected[0] } : {}
|
|
2528
|
-
},
|
|
2529
|
-
...nextImageModel ? { imageModel: nextImageModel } : {},
|
|
2530
|
-
models: nextModels
|
|
2531
|
-
};
|
|
2532
|
-
return {
|
|
2533
|
-
...cfg,
|
|
2534
|
-
agents: {
|
|
2535
|
-
...cfg.agents,
|
|
2536
|
-
defaults
|
|
2537
|
-
}
|
|
2538
|
-
};
|
|
2539
|
-
});
|
|
2540
|
-
if (opts.json) {
|
|
2541
|
-
writeRuntimeJson(runtime, {
|
|
2542
|
-
selected,
|
|
2543
|
-
selectedImages,
|
|
2544
|
-
setDefault: Boolean(opts.setDefault),
|
|
2545
|
-
setImage: Boolean(opts.setImage),
|
|
2546
|
-
results,
|
|
2547
|
-
warnings: []
|
|
2548
|
-
});
|
|
2549
|
-
return;
|
|
2550
|
-
}
|
|
2551
|
-
logConfigUpdated(runtime);
|
|
2552
|
-
runtime.log(`Fallbacks: ${selected.join(", ")}`);
|
|
2553
|
-
if (selectedImages.length > 0) runtime.log(`Image fallbacks: ${selectedImages.join(", ")}`);
|
|
2554
|
-
if (opts.setDefault) runtime.log(`Default model: ${selected[0]}`);
|
|
2555
|
-
if (opts.setImage && selectedImages.length > 0) runtime.log(`Image model: ${selectedImages[0]}`);
|
|
2556
|
-
}
|
|
2557
|
-
//#endregion
|
|
2558
|
-
//#region src/commands/models/set.ts
|
|
2559
|
-
async function modelsSetCommand(modelRaw, runtime) {
|
|
2560
|
-
const updated = await updateConfig((cfg) => {
|
|
2561
|
-
return applyDefaultModelPrimaryUpdate({
|
|
2562
|
-
cfg,
|
|
2563
|
-
modelRaw,
|
|
2564
|
-
field: "model"
|
|
2565
|
-
});
|
|
2566
|
-
});
|
|
2567
|
-
logConfigUpdated(runtime);
|
|
2568
|
-
runtime.log(`Default model: ${resolveAgentModelPrimaryValue(updated.agents?.defaults?.model) ?? modelRaw}`);
|
|
2569
|
-
}
|
|
2570
|
-
//#endregion
|
|
2571
|
-
//#region src/commands/models/set-image.ts
|
|
2572
|
-
async function modelsSetImageCommand(modelRaw, runtime) {
|
|
2573
|
-
const updated = await updateConfig((cfg) => {
|
|
2574
|
-
return applyDefaultModelPrimaryUpdate({
|
|
2575
|
-
cfg,
|
|
2576
|
-
modelRaw,
|
|
2577
|
-
field: "imageModel"
|
|
2578
|
-
});
|
|
2579
|
-
});
|
|
2580
|
-
logConfigUpdated(runtime);
|
|
2581
|
-
runtime.log(`Image model: ${resolveAgentModelPrimaryValue(updated.agents?.defaults?.imageModel) ?? modelRaw}`);
|
|
2582
|
-
}
|
|
2583
|
-
//#endregion
|
|
2584
|
-
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 };
|