kaijibot 2026.8.20 → 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-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-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-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-vRXPONqL.js +353 -0
- package/dist/auth-choice.apply-helpers-D6x2bWVB.js +2 -0
- package/dist/auth-profiles.runtime.js +1 -1
- 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-node-runtime-D8xut4fJ.js +12 -0
- package/dist/browser-open-BzpYLaas.js +94 -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 +4 -4
- package/dist/bundled/session-memory/handler.js +3 -3
- 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.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/cli/daemon-cli.js +1 -1
- package/dist/cli-BsNkLoFI.js +57 -0
- package/dist/cli-DQH9X5IE.js +2 -0
- package/dist/cli-DuoVlLKx.js +154 -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 +1 -1
- 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/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-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-Bd1PtH4x.js +166 -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-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-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/cron-cli-C5ok2iVK.js +637 -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/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/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.runtime-Co-JFuKU.js +19 -0
- package/dist/dispatch-acp.runtime.js +1 -1
- package/dist/docker-TZx6u2PT.js +826 -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-CKgZ1obQ.js +82 -0
- package/dist/engine-embeddings-Bt1bTxtw.js +1489 -0
- package/dist/entry-capabilities-DrciJZn1.js +89 -0
- package/dist/entry.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-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 +1 -1
- 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 +4 -4
- 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/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/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 +5 -5
- 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 +4 -4
- 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/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/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 +4 -4
- 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/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-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/sherpa-speech/asr.js +1 -1
- package/dist/extensions/sherpa-speech/engine.js +1 -1
- package/dist/extensions/sherpa-speech/index.js +1 -1
- 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 +2 -2
- package/dist/extensions/talk-voice/index.js +2 -2
- package/dist/extensions/tavily/index.js +5 -5
- package/dist/extensions/together/index.js +1 -1
- package/dist/extensions/together/video-generation-provider.js +4 -4
- 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 +2 -2
- package/dist/extensions/vercel-ai-gateway/index.js +2 -2
- package/dist/extensions/vercel-ai-gateway/models.js +1 -1
- package/dist/extensions/vercel-ai-gateway/provider-catalog.js +1 -1
- package/dist/extensions/volcengine/index.js +2 -2
- package/dist/extensions/vydra/image-generation-provider.js +1 -1
- package/dist/extensions/vydra/index.js +5 -5
- 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 +3 -3
- package/dist/extensions/xai/api.js +6 -6
- package/dist/extensions/xai/code-execution.js +5 -5
- package/dist/extensions/xai/index.js +14 -14
- package/dist/extensions/xai/model-definitions.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.js +5 -5
- package/dist/extensions/xiaomi/index.js +1 -1
- package/dist/extensions/zai/index.js +7 -7
- package/dist/extensions/zai/media-understanding-provider.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/gateway-CR7RtTbI.js +2 -0
- package/dist/gateway-CuQC7wph.js +119 -0
- package/dist/gateway-cli-CWHsIpm8.js +1532 -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/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/group-policy-BxTxJeKP.js +202 -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/hooks-cli-BGDBJqzt.js +364 -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/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-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/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-cli-DGrmbpsu.js +733 -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-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-index-DSbV_yD0.js +2 -0
- package/dist/memory-index-EFkCRTeh.js +514 -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.gateway.runtime-COLMRCv4.js +2 -0
- package/dist/message.gateway.runtime.js +1 -1
- 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-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/models-BmveqjOE.js +126 -0
- package/dist/models-BucP8NI1.js +760 -0
- package/dist/models-C4-eAnR7.js +157 -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.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-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-CTfex1XR2.js +58 -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-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-remote-C28pAu4b.js +193 -0
- package/dist/onboard-remote-DQxyE18D.js +2 -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/operator-approvals-client-RJESCyw4.js +68 -0
- package/dist/outbound-runtime-Bhs-eGEn.js +2 -0
- package/dist/pair-command-approve-5Jr6xo-1.js +34 -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-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/plugin-enabled-CMdiRqJS.js +71 -0
- package/dist/plugin-registration-BhPJI7wp.js +23 -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 +8 -8
- package/dist/plugin-sdk/agent-runtime.js +11 -11
- package/dist/plugin-sdk/allow-from.js +1 -1
- 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 +1 -1
- package/dist/plugin-sdk/approval-runtime.js +5 -5
- package/dist/plugin-sdk/browser-node-runtime.js +5 -5
- 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 +10 -10
- 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 +5 -5
- package/dist/plugin-sdk/config-mutation.js +1 -1
- package/dist/plugin-sdk/config-runtime.js +8 -8
- 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 +16 -16
- 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 +1 -1
- package/dist/plugin-sdk/memory-core-host-runtime-cli.js +2 -2
- package/dist/plugin-sdk/memory-core-host-runtime-core.js +2 -2
- package/dist/plugin-sdk/memory-core.js +4 -4
- package/dist/plugin-sdk/memory-host-core.js +2 -2
- 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-runtime.js +2 -2
- package/dist/plugin-sdk/provider-auth-api-key.js +3 -3
- 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 +6 -6
- 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.js +3 -3
- package/dist/plugin-sdk/provider-model-shared.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 +1 -1
- 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-env.js +5 -5
- package/dist/plugin-sdk/runtime-secret-resolution.js +1 -1
- package/dist/plugin-sdk/runtime.js +2 -2
- package/dist/plugin-sdk/sandbox.js +2 -2
- 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/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/testing.js +4 -4
- package/dist/plugin-sdk/text-runtime.js +4 -4
- 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/runtime/index.js +1 -1
- package/dist/plugins-cli-20A8dYUN.js +576 -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/program-E_Dt_QTp.js +111 -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-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-xzYpukvK.js +13 -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-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-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/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/region-CPFmncMW.js +74 -0
- package/dist/register.agent-D5el253o.js +241 -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.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/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-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/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/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-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-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-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/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-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-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/skills-install-CHUWYiLs.js +822 -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/state-migrations-BNib6l8O.js +823 -0
- package/dist/status-8clcfnN0.js +473 -0
- package/dist/status-CNcOKUs2.js +500 -0
- package/dist/status-D1l9Tu3s.js +399 -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.scan-DegSjLE2.js +62 -0
- package/dist/status.scan-overview-CrSELCru.js +395 -0
- 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-D_vXZ7m9.js +1112 -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/supervisor-DVGQ2rPX.js +737 -0
- 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/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-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/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/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-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-shared--44LWgiH.js +414 -0
- package/dist/x-search-shared-DKPdPR5_.js +109 -0
- package/docs/platforms/termux.md +3 -3
- package/package.json +1 -1
- package/dist/abort-D8E9Viul.js +0 -202
- package/dist/abort-cutoff.runtime-buOT5TQ9.js +0 -20
- package/dist/abort-primitives-B6Qmun6I.js +0 -93
- package/dist/abort.runtime-DBAOcoA0.js +0 -2
- package/dist/account-action-gate-BT_vXl45.js +0 -114
- package/dist/acp-cli-CK-PaZW1.js +0 -2171
- package/dist/acp-spawn-DREGP-Dg.js +0 -1024
- package/dist/acp-stateful-target-driver-BCNEZ0qY.js +0 -88
- package/dist/action-agents-Bghuxxiu.js +0 -67
- package/dist/action-focus-DsDsKPpt.js +0 -124
- package/dist/action-help-Dea7LzSX.js +0 -7
- package/dist/action-info-BeSnrfUx.js +0 -58
- package/dist/action-kill-A8Gm3ASV.js +0 -33
- package/dist/action-list-BkyeGY4Y.js +0 -21
- package/dist/action-log-C-PshBJC.js +0 -30
- package/dist/action-send-B7O-Cyik.js +0 -39
- package/dist/action-spawn-0DHhLXka.js +0 -46
- package/dist/action-unfocus-DQ3mnyh6.js +0 -28
- package/dist/agent-ChCFDEkx.js +0 -2
- package/dist/agent-command-HwJps2h3.js +0 -1479
- package/dist/agent-list-3PG6_Efg.js +0 -67
- package/dist/agent-runner-utils-dAUhMPP0.js +0 -202
- package/dist/agent-runner.runtime-BvOJ3ms5.js +0 -2825
- package/dist/agents-DGs1CWL1.js +0 -5
- package/dist/agents-R-PuEDKr.js +0 -887
- 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-BOdy5JqE.js +0 -5666
- package/dist/api-BChlvn8B.js +0 -5
- package/dist/api-BEM__kGA.js +0 -4
- package/dist/api-BQr2q6_t.js +0 -4
- package/dist/api-BzKZ27N_.js +0 -2
- package/dist/api-C7GkbUyn.js +0 -35
- package/dist/api-Cbv-utnp.js +0 -45
- package/dist/api-Csv5YmWm.js +0 -3
- package/dist/api-CvN3buT5.js +0 -3
- package/dist/api-D7OkY2ha.js +0 -5
- package/dist/api-D7cDr4c5.js +0 -19
- package/dist/api-Df793QOm.js +0 -2
- package/dist/apply-DG2_D6J9.js +0 -493
- package/dist/apply.runtime-4Oo5FMhm.js +0 -166
- package/dist/apply.runtime-O1GHmKzQ.js +0 -2
- package/dist/approval-gateway-resolver-By95iflu.js +0 -58
- package/dist/approval-gateway-runtime-C_2l5m0E.js +0 -2
- package/dist/approval-handler-runtime-BcIBxW0i.js +0 -439
- package/dist/approval-native-helpers-Dy60ZISZ.js +0 -33
- package/dist/approval-native-runtime-zPzOoZlr.js +0 -709
- package/dist/approval-renderers-oIQzoEfU.js +0 -64
- package/dist/asr-ChZCFIGe.js +0 -195
- package/dist/audit-DfEhlnGH.js +0 -885
- package/dist/audit-extra.async-B-_wy7Tg.js +0 -847
- package/dist/audit.deep.runtime-CqfZhQYQ.js +0 -2
- package/dist/audit.nondeep.runtime-BEYvNUL0.js +0 -859
- package/dist/audit.runtime-BZIKjR29.js +0 -7
- package/dist/auth-B4RCO9pL.js +0 -181
- package/dist/auth-choice-BKccwE1z.js +0 -353
- package/dist/auth-choice-BjfYwU59.js +0 -71
- package/dist/auth-choice-D5arr50x.js +0 -3
- package/dist/auth-choice.apply-helpers-Bte42LAy.js +0 -2
- package/dist/binding-routing-BOSLYF1b.js +0 -50
- package/dist/binding-targets-JPaoc1qf.js +0 -99
- package/dist/block-streaming-CEz8_YvV.js +0 -103
- package/dist/bootstrap-files-MSqLqaFY.js +0 -206
- package/dist/bridge-server-vuRzCH3N.js +0 -103
- package/dist/browser-node-runtime-C3g2gsaZ.js +0 -12
- package/dist/browser-open-BP0tUM0r.js +0 -94
- package/dist/browser-runtime-BF4n8YQ5.js +0 -377
- package/dist/browser-security-runtime-Ci12HfND.js +0 -10
- package/dist/browser-setup-tools-6xFifQZE.js +0 -12
- package/dist/btw-command-YUgszbXM.js +0 -17
- package/dist/call-5P034-jt.js +0 -495
- package/dist/call-BUDlcDxf.js +0 -2
- package/dist/call.runtime-DUm_Bttq.js +0 -2
- package/dist/capability-cli-Dedr9-5P.js +0 -1357
- package/dist/catalog-provider-B6R9uezh.js +0 -40
- package/dist/cdp.helpers-BIDb2U4E.js +0 -372
- package/dist/channel-config-helpers-XmE0KJZk.js +0 -462
- package/dist/channel-core-CjiYN8RW.js +0 -5
- package/dist/channel-feedback-1aAUqgjY.js +0 -259
- package/dist/channel-plugin-resolution-CN215YtG.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.runtime-dnBq2L1v.js +0 -399
- package/dist/channels-CYG1q9PH.js +0 -1147
- package/dist/channels-cli-BoG2L78B.js +0 -248
- package/dist/chat-DnjpEdFB.js +0 -213
- package/dist/chat-history-text-BzdTyI1F.js +0 -42
- package/dist/chrome-e2X2vBVg.js +0 -1080
- package/dist/chrome.executables-CnUVYt-H.js +0 -550
- package/dist/chunk-DgPObAqu.js +0 -267
- package/dist/clack-prompter-BWIrYn8q.js +0 -113
- package/dist/cli-CMvRUMSs.js +0 -154
- package/dist/cli-CYvUljnp.js +0 -57
- package/dist/cli-Cw69q4uo.js +0 -2
- package/dist/cli-auth-seam-BL5t2dya.js +0 -14
- package/dist/cli-backend-Cykx4ud8.js +0 -66
- package/dist/cli-migration-CSx1vbkG.js +0 -127
- package/dist/cli-runner-No9Uhffw.js +0 -1662
- package/dist/cli-runner.runtime-COquWuXM.js +0 -3
- package/dist/cli-runner.runtime-egfGJUTe.js +0 -2
- package/dist/cli-runtime-BTdQg8Pm.js +0 -3
- package/dist/cli-shared-DkBvc2Y5.js +0 -142
- package/dist/cli.runtime-djxOgvtS.js +0 -819
- package/dist/client-bootstrap-Dyqi3fZr.js +0 -28
- package/dist/command-auth-D6uvRaCj.js +0 -75
- package/dist/command-config-resolution-2RDsbHMM.js +0 -2
- package/dist/command-config-resolution-DRvqZFqh.js +0 -23
- package/dist/command-detection-q0CJzVXY.js +0 -50
- package/dist/command-execution-startup-BZH7rNOz.js +0 -269
- package/dist/command-format-BNut7VFf.js +0 -2
- package/dist/command-registry-BsP1NxvH.js +0 -3
- package/dist/command-registry-YDJgbbaF.js +0 -113
- package/dist/command-secret-gateway-DFgAUeer.js +0 -528
- package/dist/command-status-builders-DykmScCm.js +0 -145
- package/dist/commands-acp-BblekZyF.js +0 -1017
- package/dist/commands-compact.runtime-CjyTQ5zv.js +0 -10
- package/dist/commands-context-B5MBVGe2.js +0 -34
- package/dist/commands-core.runtime-CnZNxnAO.js +0 -2
- package/dist/commands-handlers.runtime-DDqt62Dn.js +0 -3762
- package/dist/commands-models-DTev55uI.js +0 -306
- package/dist/commands-registry-vcJhtPD2.js +0 -295
- package/dist/commands-registry.runtime-CgwuBxnW.js +0 -2
- package/dist/commands-reset-hooks-BTmweR6W.js +0 -129
- package/dist/commands-status-DkWx-VSd.js +0 -223
- package/dist/commands-status.runtime-B6nbPpK_.js +0 -2
- package/dist/commands-subagents-control.runtime-B3F_rMws.js +0 -3
- package/dist/commands-subagents-control.runtime-D7PSJsuS.js +0 -2
- package/dist/commands.runtime-D0Qr8f98.js +0 -103
- package/dist/comment-shared-C3tQmrNA.js +0 -40
- package/dist/compact-DBa1TeO8.js +0 -11324
- package/dist/compact.runtime-DLdGjZpf.js +0 -7
- package/dist/completion-cli-CywOElFT.js +0 -468
- package/dist/completion-cli-DK-0MXVG.js +0 -2
- package/dist/config-CYhAmlA1.js +0 -166
- package/dist/config-cli-Cd2yLD4r.js +0 -948
- package/dist/config-defaults-ClVNRdCi.js +0 -163
- package/dist/config-guard-C-3SAUrc.js +0 -94
- package/dist/config-runtime-ofeq3zSi.js +0 -14
- package/dist/config-validation-6s7vNOEX.js +0 -279
- package/dist/configure-C-7Lttr2.js +0 -2
- package/dist/configure-D_7K9hWl.js +0 -1162
- package/dist/connection-auth-47Ob5Igi.js +0 -30
- package/dist/context-6q3_7y5g.js +0 -249
- package/dist/context-BEEy1M1I.js +0 -2
- package/dist/context-visibility-2p0h1zWp.js +0 -14
- package/dist/context-writer-CwqLN0tS.js +0 -290
- package/dist/control-auth-BIgC7VS3.js +0 -122
- package/dist/control-ui-links-DEuG_GSl.js +0 -70
- package/dist/conversation-id-Ztzvbgi8.js +0 -140
- package/dist/conversation-runtime-DdIJJiVg.js +0 -31
- package/dist/core-BNu-9utc.js +0 -210
- package/dist/cron-cli-DRRlvCJ_.js +0 -637
- package/dist/daemon-cli-B9FyFrQ6.js +0 -476
- package/dist/daemon-install-TThZ0lbE.js +0 -70
- package/dist/delegate-Cw2paU9j.js +0 -61
- package/dist/deliver-C5UOgw2b.js +0 -3
- package/dist/deliver-DrIu_P0l.js +0 -782
- package/dist/deliver-runtime-Bc7cK2WN.js +0 -2
- package/dist/delivery-outbound.runtime-BjOSpQD-.js +0 -6
- package/dist/delivery-queue-B19gpiaY.js +0 -372
- package/dist/delivery-queue-Cu4I41c4.js +0 -2
- 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-CLWd-IeZ.js +0 -336
- package/dist/diagnostics-DPXDETG1.js +0 -2
- package/dist/diagnostics-QjuefiNT.js +0 -33
- package/dist/direct-dm-CNgsDTy-.js +0 -139
- package/dist/directive-handling.fast-lane-BD5lnzxN.js +0 -2
- package/dist/directive-handling.fast-lane-BTy2s6gs.js +0 -64
- package/dist/directive-handling.impl-CX9FZ-B9.js +0 -2
- package/dist/directive-handling.impl-RaR111-L.js +0 -659
- package/dist/directive-handling.parse-DoJ6BVS3.js +0 -376
- package/dist/directive-handling.persist-BLK-h7OI.js +0 -139
- package/dist/directive-handling.persist.runtime-BzAa2gYU.js +0 -2
- package/dist/directive-handling.shared-D1rGNZt5.js +0 -159
- package/dist/directory-cli-C7aTBxHk.js +0 -240
- package/dist/dispatch-DZk7ttx4.js +0 -1126
- package/dist/dispatch-acp-command-bypass-CASB-Big.js +0 -38
- package/dist/dispatch-acp-fiE-20qf.js +0 -969
- package/dist/dispatch-acp-manager.runtime-CXbLrETb.js +0 -3
- package/dist/dispatch-acp-media.runtime-DBNkTr9w.js +0 -3
- package/dist/dispatch-acp-session.runtime-C37eUPyo.js +0 -2
- package/dist/dispatch-acp.runtime-DNcxyRdr.js +0 -19
- package/dist/docker-WeeHs5I_.js +0 -826
- package/dist/doctor-completion-BndMTWBa.js +0 -90
- package/dist/doctor-config-preflight-CSR8GR_C.js +0 -148
- package/dist/doctor-config-preflight-uNP9xifp.js +0 -2
- package/dist/doctor-state-migrations-Cx5F1a8u.js +0 -3
- package/dist/doctor-state-migrations-Dfz-deYl.js +0 -2
- package/dist/drive-DBvfSweP.js +0 -718
- package/dist/embedding-provider-CFWlEX1d.js +0 -26
- package/dist/embedding-provider-CIycGLf5.js +0 -33
- package/dist/embedding-provider-CWndQr_-.js +0 -129
- package/dist/engine-DP8OY9SI.js +0 -82
- package/dist/engine-embeddings-UKC8SpiN.js +0 -1489
- package/dist/entry-capabilities-E73Yz1yg.js +0 -89
- package/dist/exec-approval-forwarder.runtime-B2duci0j.js +0 -3
- package/dist/exec-approval-session-target-B9-fNjez.js +0 -165
- package/dist/exec-approvals-cli-DLdT3aSv.js +0 -485
- package/dist/exec-defaults-VRp473Sn.js +0 -1440
- package/dist/extra-params-CTzuV0V2.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-DqUmaubt.js +0 -245
- package/dist/fragment-collector-PpItYLA6.js +0 -189
- package/dist/gateway-DML9FbXS.js +0 -2
- package/dist/gateway-cli-DVL048Zj.js +0 -1532
- package/dist/gateway-install-token-BamWepdY.js +0 -284
- package/dist/gateway-lock-CYNSW8aZ.js +0 -238
- package/dist/gateway-mGyPIOuQ.js +0 -119
- package/dist/gateway-rpc-CyLUAd7r.js +0 -14
- package/dist/gateway-rpc.runtime-DK8N4h7v.js +0 -23
- package/dist/gemini-cli-provider-CS_UZ3WR.js +0 -106
- package/dist/gemini-web-search-provider-DL5e-EZn.js +0 -167
- package/dist/get-reply-from-config.runtime-D64zRtWj.js +0 -2
- package/dist/group-policy-F3YMiMAb.js +0 -202
- package/dist/health-4aL9xNMP.js +0 -579
- package/dist/health-DdFGarRx.js +0 -2
- package/dist/heartbeat-OI7GfQHK.js +0 -184
- package/dist/heartbeat-runner-Duz5xcLR.js +0 -1289
- package/dist/heartbeat-runner-aaEswJ0B.js +0 -4
- package/dist/heartbeat-runner.runtime-D_qxPkdL.js +0 -2
- package/dist/heartbeat-summary-Brqv8KYX.js +0 -58
- package/dist/heartbeat-visibility-D03CCH71.js +0 -81
- package/dist/hooks-cli-BzctiLUS.js +0 -364
- package/dist/identity-Bxp0hRpo.js +0 -30
- package/dist/identity-avatar-Di47l4kX.js +0 -87
- package/dist/image-B7CPx51h.js +0 -152
- package/dist/image-generation-core-Q4HhEwJY.js +0 -17
- package/dist/image-generation-core.auth.runtime-Bb2j1_UK.js +0 -2
- package/dist/image-generation-provider-0fSo5h6u.js +0 -136
- package/dist/image-generation-provider-CvFrycEI.js +0 -86
- package/dist/image-generation-provider-DA9kPptM.js +0 -163
- package/dist/image-generation-provider-DF7Y6NGy.js +0 -130
- package/dist/image-generation-provider-DTBiXZGp.js +0 -280
- package/dist/image-generation-provider-xgflECGv.js +0 -94
- package/dist/image-generation-runtime-ovbXa2gS.js +0 -2
- package/dist/image-runtime-LoZZdTXn.js +0 -7
- package/dist/images-DKmW2P-z.js +0 -586
- package/dist/inbound-reply-dispatch-C9NpDPnv.js +0 -73
- package/dist/inbound.runtime-CjLChnR7.js +0 -4
- package/dist/inbound.runtime-hVoRWxJ7.js +0 -3
- package/dist/infra-runtime-C8p_6KK_.js +0 -25
- package/dist/ingest-CdJaLY6Q.js +0 -2
- package/dist/ingest-e1icVEK-.js +0 -842
- package/dist/input-files-CT4CpkOx.js +0 -252
- package/dist/inspect-DOgFXMYn.js +0 -2
- package/dist/inspect-Ysjfnqlj.js +0 -282
- package/dist/issue-format-DjVI0gtD.js +0 -2
- package/dist/kaijibot-tools-rpqkBcQN.js +0 -9434
- package/dist/kaijibot-tools.runtime-BfIawT2J.js +0 -2
- package/dist/kill-tree-0Qfa0fPs.js +0 -2
- package/dist/kimi-web-search-provider-CEDoiAGa.js +0 -308
- package/dist/launchd-upj2lSvL.js +0 -556
- package/dist/library-DbtNtgzd.js +0 -45
- package/dist/lifecycle-core-QhQwW6wK.js +0 -422
- package/dist/list.runtime-DfPgbfBV.js +0 -9
- package/dist/list.runtime-X8TKiP_H.js +0 -12
- package/dist/llm-engine-B-oDIukn.js +0 -2
- package/dist/llm-engine-qg7Gd_hc.js +0 -1792
- package/dist/llm-extractor-CU3Bv_HG.js +0 -445
- package/dist/login-DVTUoRIz.js +0 -108
- package/dist/logs-cli-CaPofk7V.js +0 -264
- package/dist/logs-cli.runtime-DbvBADru.js +0 -2
- package/dist/manager-Dgu69d8y.js +0 -3314
- package/dist/manager-DwHThjE2.js +0 -2049
- package/dist/markdown-tables-DQxQ2v3M.js +0 -51
- package/dist/mcp-cli-CbzoZsr0.js +0 -733
- package/dist/media-models-CuHKr-jc.js +0 -49
- package/dist/media-runtime-bKQT2hiX.js +0 -312
- package/dist/media-understanding-BH3AUOGs.js +0 -83
- package/dist/media-understanding-provider-74lVtrOy.js +0 -69
- package/dist/media-understanding-provider-8BsFirXn.js +0 -18
- package/dist/media-understanding-provider-BP6_w_P_.js +0 -67
- package/dist/media-understanding-provider-BpQmj7qs.js +0 -21
- package/dist/media-understanding-provider-BycEDsFD.js +0 -123
- package/dist/media-understanding-provider-C84Ved45.js +0 -14
- package/dist/media-understanding-provider-CK_eMz1X.js +0 -37
- package/dist/media-understanding-provider-DaSwJ4pP.js +0 -18
- package/dist/media-understanding-provider-Dbs2lNmG.js +0 -112
- package/dist/media-understanding-provider-DqLVMGtn.js +0 -30
- package/dist/media-understanding-provider-QqsNUSwt.js +0 -13
- package/dist/media-understanding-runtime-BZA_6tIW.js +0 -2
- package/dist/memory-DEFXUqME.js +0 -3
- package/dist/memory-VUm9E4xZ.js +0 -242
- package/dist/memory-core-host-engine-embeddings-DT26N-48.js +0 -2
- package/dist/memory-core-host-runtime-cli-ByvpXhTk.js +0 -9
- package/dist/memory-core-host-runtime-core-49LtYnDz.js +0 -8
- package/dist/memory-embedding-adapter-BhBdY21w.js +0 -33
- package/dist/memory-index-D1k6rjci.js +0 -2
- package/dist/memory-index-DGv1BQqr.js +0 -514
- package/dist/message-DktPWsWA.js +0 -223
- package/dist/message-action-runner-D5h5Bbhw.js +0 -2
- package/dist/message-action-runner-ezKz_h2P.js +0 -1628
- package/dist/message.gateway.runtime-ZPAymL77.js +0 -2
- package/dist/method-scopes-Dj9nhnXI.js +0 -2883
- package/dist/minimax-vlm-CtLVue6p.js +0 -183
- package/dist/minimax-web-search-provider-Cd-P4xbp.js +0 -165
- package/dist/mmr-CYI_i9v5.js +0 -146
- package/dist/model-B_-8Dp2m.js +0 -630
- package/dist/model-auth-HL2aJaae.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-BcJD9v1K.js +0 -45
- package/dist/model-catalog-Bkr4CqDm.js +0 -204
- package/dist/model-definitions-D1o_PR5n.js +0 -258
- package/dist/model-definitions-DJm7w6s6.js +0 -74
- package/dist/model-discovery-live.runtime-Ct-IkaF1.js +0 -419
- package/dist/model-discovery-modelsdev-B_Cpy5zK.js +0 -174
- package/dist/model-picker-B-xpoNbr.js +0 -500
- package/dist/model-picker-R0G2MgB_.js +0 -3
- package/dist/model-picker.runtime-BYwcAdzp.js +0 -15
- package/dist/model-selection-BheFUUQH.js +0 -381
- package/dist/models-BEEXc36p.js +0 -166
- package/dist/models-BPkdENoW.js +0 -2
- package/dist/models-BX49tVvV.js +0 -555
- package/dist/models-C03H7fA8.js +0 -157
- package/dist/models-D7VoP8nw.js +0 -760
- package/dist/models-DtHue44_.js +0 -47
- package/dist/models-HYQ1KAk_.js +0 -126
- package/dist/models-cli-BbXVjf9R.js +0 -198
- package/dist/models-config-B85vfu4p.js +0 -900
- package/dist/models-config.providers.secrets-CpQyoJal.js +0 -299
- package/dist/models-xp1rDutG.js +0 -2584
- package/dist/models.fetch-4YMjSao8.js +0 -518
- package/dist/monitor-BRNovC_Y.js +0 -1023
- package/dist/monitor-CKCVK6S4.js +0 -4435
- package/dist/music-generation-provider-BYL9HM9M.js +0 -238
- package/dist/music-generation-provider-BxTgkF9N.js +0 -142
- package/dist/music-generation-provider-CIJ6A211.js +0 -169
- package/dist/node-cli-Btl_VPq-.js +0 -2374
- package/dist/node-command-policy-NrFO7Yy5.js +0 -205
- package/dist/node-service-C5TgmiSv.js +0 -69
- package/dist/nodes-cli-BV6_k5Dm.js +0 -1046
- package/dist/nodes-screen-DXF9W1E2.js +0 -216
- package/dist/nodes-utils-C50A34ps.js +0 -196
- package/dist/nodes.helpers--U8G3EK-.js +0 -34
- package/dist/normalize-reply-lOvnPpkZ.js +0 -72
- package/dist/note-C-MCr2CR.js +0 -110
- package/dist/notify-CQt_pnIb.js +0 -305
- package/dist/oauth-BiAql40W.js +0 -152
- package/dist/oauth-Ca6vDvKF.js +0 -57
- package/dist/oauth-token-shared-2mBrCAD0.js +0 -28
- package/dist/oauth.credentials-CZ0vMrEi.js +0 -165
- package/dist/oauth.flow-DYTskRLV.js +0 -122
- package/dist/oauth.http-BWxW_gXO.js +0 -23
- package/dist/oauth.project-Cb5OEIsJ.js +0 -123
- package/dist/oauth.settings-CDxrRPQK.js +0 -44
- package/dist/oauth.token-Bru4bLzC.js +0 -43
- package/dist/onboard-C1B08y2Y.js +0 -25
- package/dist/onboard-CJdBVSv3.js +0 -25
- package/dist/onboard-CtbzdbPe.js +0 -312
- package/dist/onboard-DBdkbwl4.js +0 -621
- package/dist/onboard-DBjMgyJ9.js +0 -25
- package/dist/onboard-DIMihTCh.js +0 -36
- package/dist/onboard-DVhexP5q.js +0 -54
- package/dist/onboard-DVnq8yjP.js +0 -25
- package/dist/onboard-DX6XRus52.js +0 -58
- package/dist/onboard-D_Vx-9lK.js +0 -29
- package/dist/onboard-R8-I3hmu.js +0 -67
- package/dist/onboard-custom-BGpsNoJc.js +0 -647
- package/dist/onboard-custom-BHvw3fAA.js +0 -2
- package/dist/onboard-helpers-BeAYS2Qq.js +0 -223
- package/dist/onboard-helpers-CKb-ZP-L.js +0 -5
- package/dist/onboard-remote-BTBfReZD.js +0 -2
- package/dist/onboard-remote-DX0VcrI6.js +0 -193
- package/dist/onboard-skills-CZi8Ky26.js +0 -134
- package/dist/onboard-skills-DLC4BbyM.js +0 -2
- package/dist/openai-codex-auth-identity-ASruZ_P2.js +0 -45
- package/dist/openai-codex-cli-auth-Bt_S0j_c.js +0 -57
- package/dist/openai-codex-provider-BouOhpJB.js +0 -299
- package/dist/openai-codex-shared-DedETK99.js +0 -6
- package/dist/openai-provider-Jci9fP5i.js +0 -283
- package/dist/openai-transport-stream-DJo_5UPR.js +0 -1632
- package/dist/operator-approvals-client-D_up6Wq0.js +0 -68
- package/dist/outbound-runtime-DhL6nVw0.js +0 -2
- package/dist/pair-command-approve-DUMQ1lrT.js +0 -34
- 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-Du2uuiGS.js +0 -94
- package/dist/pi-embedded-C4xYML3_.js +0 -6
- package/dist/pi-embedded-Cbug4fLp.js +0 -2
- package/dist/pi-embedded-runner-CjJ1OH7H.js +0 -8348
- package/dist/pi-embedded-subscribe.handlers.compaction.runtime-qoJmuaC3.js +0 -23
- package/dist/pi-embedded-utils-qmoBiSxI.js +0 -212
- package/dist/pi-embedded.runtime-PZWkJVMG.js +0 -5
- package/dist/pi-model-discovery-BhWyylI9.js +0 -232
- package/dist/plugin-enabled-BNJoHRI0.js +0 -71
- package/dist/plugin-registration-CdgdKLdK.js +0 -23
- package/dist/plugin-service-BjwQ0UnC.js +0 -2494
- package/dist/plugins-cli-Inx9NBeP.js +0 -576
- package/dist/plugins-update-command-DCBmHAcw.js +0 -1009
- package/dist/policy-C_NvSQ7D.js +0 -172
- package/dist/ports-2fHnkw5y.js +0 -433
- package/dist/ports-NdA63CHy.js +0 -263
- package/dist/preemptive-compaction-B2i0-LZS.js +0 -430
- package/dist/proactive-scheduler-CMe3amTs.js +0 -1444
- package/dist/probe-C5X2xHFS.js +0 -2
- package/dist/probe-D0gXnUmv.js +0 -426
- package/dist/probe-DwQLQHpB.js +0 -178
- package/dist/probe-aZFpBShN.js +0 -54
- package/dist/probe-auth-0-Td92Qd.js +0 -69
- package/dist/probe-auth-Zwhwfcyg.js +0 -3
- package/dist/program-DKVfTrYP.js +0 -111
- package/dist/prompt-overlay-BvX2tpcA.js +0 -72
- package/dist/prompt-select-styled-Cacsr7x1.js +0 -5305
- package/dist/provider-CWw9unv5.js +0 -70
- package/dist/provider-api-key-auth-DDqs17y7.js +0 -113
- package/dist/provider-api-key-auth.runtime-DFOWhO8H.js +0 -14
- package/dist/provider-auth-D28-DXtL.js +0 -36
- package/dist/provider-auth-api-key-BlUb_Gw8.js +0 -5
- package/dist/provider-auth-choice--RwbO1el.js +0 -134
- package/dist/provider-auth-choice-preference-Bay-KWTs.js +0 -62
- package/dist/provider-auth-input-Duh7v6fc.js +0 -117
- package/dist/provider-auth-login-CqDuosT-.js +0 -8
- package/dist/provider-auth-login.runtime-1ovWzWaE.js +0 -206
- package/dist/provider-auth-runtime-Bep_6xgO.js +0 -36
- package/dist/provider-catalog-B1UHTZ2J.js +0 -56
- package/dist/provider-catalog-BETTnkqQ.js +0 -11
- package/dist/provider-catalog-BgCSPWtg.js +0 -11
- package/dist/provider-catalog-COSwNV9M.js +0 -61
- package/dist/provider-catalog-CVtyzqed.js +0 -17
- package/dist/provider-catalog-D87LxNms.js +0 -26
- package/dist/provider-catalog-DUa_pOgJ.js +0 -75
- package/dist/provider-catalog-_qlQKmNX.js +0 -13
- package/dist/provider-catalog-fRX7Kwpd.js +0 -12
- package/dist/provider-catalog-fjbp4-73.js +0 -11
- package/dist/provider-catalog-kLIlcQiR.js +0 -18
- 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-CICWLOwX.js +0 -22
- package/dist/provider-entry-D_0kX9WL.js +0 -97
- 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-CvYgNrs5.js +0 -225
- package/dist/provider-models-D3D1lxRx.js +0 -169
- package/dist/provider-models-DACMEf7B.js +0 -116
- package/dist/provider-models-DoU8PeBb.js +0 -119
- package/dist/provider-models-gP-2JH8n.js +0 -35
- package/dist/provider-openai-codex-oauth-tls-CmSkuSt5.js +0 -99
- package/dist/provider-registration-CbWstPtp.js +0 -238
- package/dist/provider-registration-iGHQBjjx.js +0 -57
- package/dist/provider-stream-BwKmnNvt.js +0 -285
- package/dist/provider-stream-family-CuZuVwyU.js +0 -2
- package/dist/provider-stream-shared-DiqyLpmc.js +0 -80
- package/dist/provider-tools-C8ePitIe.js +0 -332
- package/dist/provider-usage-AerKfwcb.js +0 -289
- package/dist/provider-usage-B1OEBtrp.js +0 -3
- 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/proxy-stream-wrappers-C_X_spRH.js +0 -480
- package/dist/push-apns-CHUTf5fh.js +0 -1061
- package/dist/pw-ai-DPV1q8xc.js +0 -2268
- package/dist/qmd-manager-Dlyrllit.js +0 -1799
- package/dist/qr-cli-Dxp3C4eA.js +0 -359
- package/dist/qr-image-BqQWAdsz.js +0 -2
- package/dist/queue-B6wGsjBh.js +0 -636
- package/dist/realtime-provider-shared-CjyMmm-x.js +0 -21
- package/dist/realtime-transcription-provider-C3KDEeGw.js +0 -180
- package/dist/realtime-voice-provider-WpxiXAqx.js +0 -342
- package/dist/record-shared-B1JngQ0O.js +0 -10
- package/dist/region-eNoH-aE8.js +0 -74
- package/dist/register.agent-DjEMzHSM.js +0 -241
- package/dist/register.configure-VpDjmPim.js +0 -15
- package/dist/register.maintenance-Bfd-BrEw.js +0 -443
- package/dist/register.message-BUAWvHEW.js +0 -601
- package/dist/register.onboard-D8DOKdFA.js +0 -83
- package/dist/register.runtime-BnPl3ouC.js +0 -343
- package/dist/register.runtime-C3VwoQaW.js +0 -81
- package/dist/register.setup-ED3BxpQA.js +0 -104
- package/dist/register.status-health-sessions-C0kPqTo8.js +0 -1211
- package/dist/register.subclis-BGrRMx_K.js +0 -3
- package/dist/register.subclis-BgdtMdC4.js +0 -232
- package/dist/remote-env-BAi-jql2.js +0 -12
- package/dist/replay-policy-COnD0YJl.js +0 -8
- package/dist/replay-policy-D4RdgaIZ.js +0 -10
- package/dist/reply-B9iku3Vu.js +0 -3523
- package/dist/reply-payloads-DaWnvZFb.js +0 -78
- package/dist/reply-prefix-D_x6MM3Q.js +0 -33
- package/dist/reply.runtime-DC_qTxWc.js +0 -2
- package/dist/resolve-D3giEZj4.js +0 -280
- package/dist/restart-handoff-lV2xM09Z.js +0 -2
- package/dist/restart-health-35eesagj.js +0 -203
- package/dist/restart-health-BotG9-Zg.js +0 -2
- package/dist/restart-pf6Zqlgl.js +0 -454
- 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/route-reply-BFcr1fvj.js +0 -141
- package/dist/route-reply.runtime-HOUK8uDO.js +0 -2
- package/dist/rpc-CQwfsySN.js +0 -61
- package/dist/rpc.runtime-DiwjuRBV.js +0 -21
- package/dist/run-main-OjNMZyXa.js +0 -453
- package/dist/run-wait-DMiGPgPf.js +0 -118
- package/dist/runner-B--qu6Qm.js +0 -1497
- package/dist/runtime-BJ0UokoN.js +0 -2
- package/dist/runtime-BSuZXVXq.js +0 -355
- package/dist/runtime-B_DKJsuG.js +0 -725
- package/dist/runtime-CI87-tZg.js +0 -191
- package/dist/runtime-Cc6PgJbr.js +0 -107
- package/dist/runtime-DGF3I3_g.js +0 -9
- package/dist/runtime-Dfvvcuic.js +0 -72
- package/dist/runtime-TNNT_OrI.js +0 -200
- package/dist/runtime-YH3CE4eQ2.js +0 -242
- package/dist/runtime-api-B5xKNnZ9.js +0 -12
- package/dist/runtime-api-CMG5-b6Q2.js +0 -2
- package/dist/runtime-api-ChFdpsKY.js +0 -3
- package/dist/runtime-embedded-pi.runtime-BszFlzTt.js +0 -3
- package/dist/runtime-env-Clh0MW-d.js +0 -9
- package/dist/runtime-internal-CoQKvsS_.js +0 -2
- package/dist/runtime-model-auth.runtime-Cya-LuWL.js +0 -39
- package/dist/runtime-plugins-DNdpXSxM.js +0 -69
- package/dist/runtime-prepare.runtime-CayOPY9P.js +0 -80
- package/dist/runtime-provider-C-L4QipI.js +0 -21
- package/dist/runtime-shared-Dy_2RXMm.js +0 -249
- package/dist/runtime-taskflow-N2ChOWcS.js +0 -250
- package/dist/runtime-web-channel-plugin-C8CjwZRm.js +0 -215
- package/dist/runtime-web-tools-BvAG0LO3.js +0 -1467
- package/dist/sandbox-Bbc-GWm9.js +0 -2586
- package/dist/sandbox-CSOc5tM4.js +0 -4
- package/dist/sandbox-cli-CT-AarMn.js +0 -447
- package/dist/schtasks-jmQncr1-.js +0 -785
- package/dist/secrets-cli-D1EGuqKu.js +0 -2114
- package/dist/security-audit-BeFqdMin.js +0 -34
- package/dist/security-cli-DbD2JBGF.js +0 -486
- package/dist/semantic-dedup-CZxiDAfb.js +0 -95
- package/dist/send-CGF-mKH3.js +0 -993
- package/dist/send-media-BCm-tPYM.js +0 -2123
- package/dist/server-BWwUuJYL.js +0 -77
- package/dist/server-cBkUNKnZ.js +0 -13
- package/dist/server-context-D_30U_XN.js +0 -4164
- package/dist/server-methods-Bs4pJXUR.js +0 -11937
- package/dist/server-middleware-Dr3VqWzc.js +0 -110
- package/dist/server-node-events-DVfmqVwQ.js +0 -451
- package/dist/server.impl-BJbVZ0t9.js +0 -19765
- 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-SfhQH5KQ.js +0 -48
- package/dist/session-archive.runtime-B8CG4Ram.js +0 -2
- package/dist/session-conversation-l2xHTnMN.js +0 -27
- package/dist/session-cost-usage-BKZY5nPZ.js +0 -2
- package/dist/session-cost-usage-CmX6miDz.js +0 -648
- package/dist/session-file-CL6lkGa1.js +0 -44
- package/dist/session-key-BmBQ4szp.js +0 -65
- package/dist/session-meta-BR5xK9t1.js +0 -109
- package/dist/session-override-BKrEVfnV.js +0 -103
- package/dist/session-reset-model.runtime-Buk5p4ha.js +0 -120
- package/dist/session-reset-service-BVvvwdRa.js +0 -474
- package/dist/session-subagent-reactivation.runtime-BZNsC5wr.js +0 -2
- package/dist/session-tab-registry-XSWB4W6w.js +0 -553
- package/dist/session-updates-BteiRNzh.js +0 -234
- package/dist/session-updates.runtime-D2XSr1UE.js +0 -2
- package/dist/session-utils-B-CMvBgt.js +0 -930
- package/dist/session-utils.fs-CYcamwPP.js +0 -537
- package/dist/sessions-B5jygaWj.js +0 -231
- package/dist/sessions-BD7awYpY.js +0 -45
- package/dist/sessions-BzM5kMV8.js +0 -2
- package/dist/sessions.runtime-oTrbiPRt.js +0 -2
- package/dist/setup-BoZjwU6i.js +0 -505
- package/dist/setup-DQ_xc449.js +0 -329
- package/dist/setup-Dm1kEe1b.js +0 -15
- package/dist/setup-binary-BJMUy4FP.js +0 -2
- package/dist/setup-surface-D8PAGJCT.js +0 -586
- package/dist/setup-tools-B1DDAQcl.js +0 -4
- package/dist/setup-wizard-proxy-CXecAj2f.js +0 -139
- package/dist/setup.finalize-DYg55WnG.js +0 -436
- package/dist/setup.gateway-config-DWNIMpld.js +0 -246
- package/dist/shared-B1VFlQTd.js +0 -218
- package/dist/shared-B5czq-MF.js +0 -175
- package/dist/shared-BQt90p2U.js +0 -36
- package/dist/shared-CIgFLTPv.js +0 -127
- package/dist/shared-CQhbwWcx.js +0 -219
- package/dist/shared-DDPpwpbe.js +0 -137
- package/dist/shared-DyzdPKTA.js +0 -224
- package/dist/shared-runtime-D-MybTye.js +0 -7
- package/dist/short-term-promotion-Dj0a8ugl.js +0 -1631
- package/dist/simple-completion-runtime-BFLs1pEi.js +0 -131
- package/dist/simple-completion-transport-RE6NPD4B.js +0 -32
- package/dist/skill-commands-CskrC_3W.js +0 -82
- package/dist/skill-commands.runtime-BQvrQPdi.js +0 -2
- package/dist/skills-install-Dg0hrLqC.js +0 -822
- package/dist/speech-core-Dg6E-HQH.js +0 -126
- package/dist/speech-provider-B8AJ3snZ.js +0 -103
- package/dist/speech-provider-B9cT4Gjm.js +0 -39
- package/dist/speech-provider-Bi2E3iv8.js +0 -182
- package/dist/speech-provider-CZSo12LO.js +0 -101
- package/dist/speech-provider-Cj9cz2XB.js +0 -184
- package/dist/speech-provider-R64i_C4Y.js +0 -167
- 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-vS4_gqco.js +0 -230
- package/dist/standalone-generate-CEVB92OE.js +0 -217
- package/dist/standalone-generate-EPaOZgrf.js +0 -2
- package/dist/state-migrations-uFpgm1mQ.js +0 -823
- package/dist/status-BLvCM5Ba.js +0 -399
- package/dist/status-CjZEGpOn.js +0 -500
- package/dist/status-CtGb77xh.js +0 -473
- package/dist/status-DeOg-kac.js +0 -2
- package/dist/status-all-CUUt2uLK.js +0 -495
- package/dist/status-json-CKZoUDkl.js +0 -14
- package/dist/status-json-command-BZpfq-t-.js +0 -92
- package/dist/status-runtime-shared-3yS4P9VD.js +0 -271
- package/dist/status-scF4idaf.js +0 -3
- package/dist/status.agent-local-BjZrgfxM.js +0 -58
- package/dist/status.command.text-runtime-BJVN8JqQ.js +0 -15
- package/dist/status.format-BB7s3jni.js +0 -60
- package/dist/status.gateway-connection.runtime-Cdh_gMsz.js +0 -2
- package/dist/status.gateway-probe-Bx2GQ9TU.js +0 -16
- package/dist/status.scan-XFmv1sO8.js +0 -62
- package/dist/status.scan-overview-yDUTiScm.js +0 -395
- package/dist/status.scan.fast-json-CyTKi1z8.js +0 -128
- package/dist/status.scan.fast-json-FEegP0m5.js +0 -2
- package/dist/status.scan.runtime-DPX-O1i4.js +0 -417
- package/dist/status.summary-CLyVQFLP.js +0 -2
- package/dist/status.summary-DYD-kVqt.js +0 -209
- package/dist/status.update-D0v2dhjh.js +0 -2
- package/dist/status.update-fG9weCeY.js +0 -79
- package/dist/store-CB8cC8s0.js +0 -1112
- package/dist/store.runtime-ItAjV6eb.js +0 -2
- package/dist/stream-BPDfd8e1.js +0 -129
- package/dist/stream-BmplokBX.js +0 -649
- 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-wrappers-DarIRPWz.js +0 -144
- package/dist/strip-inbound-meta-BltI8kVf.js +0 -155
- package/dist/subagent-announce.registry.runtime-B2pfZw2p.js +0 -3
- package/dist/subagent-control-BTb1NZKm.js +0 -485
- package/dist/subagent-followup.runtime-CxXMev7H.js +0 -68
- package/dist/subagent-list-CU2DlTNj.js +0 -168
- package/dist/subagent-orphan-recovery-lqdIgbEP.js +0 -214
- package/dist/subagent-registry-apNqP8Xn.js +0 -2889
- package/dist/subagent-registry-read-C8xgeh3J.js +0 -57
- package/dist/subagent-registry-runtime-lzitxvG1.js +0 -2
- package/dist/subagent-registry.runtime-DMnY4uWu.js +0 -3
- package/dist/subagent-spawn-lUENqxqV.js +0 -782
- package/dist/subagents-format-CAP1ruPY.js +0 -629
- package/dist/supervisor-DLgjrm-c.js +0 -737
- package/dist/system-cli-BCgDARtJ.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-BA63Qx3W.js +0 -2
- package/dist/systemd-linger-DQ03a1ek.js +0 -68
- package/dist/tables-DFdELq_3.js +0 -832
- package/dist/tailscale-status-PTtL7jnj.js +0 -72
- package/dist/targets-CRHINrER.js +0 -300
- package/dist/targets-UyRPOuj6.js +0 -595
- package/dist/targets.runtime-vvzN_6WM.js +0 -2
- package/dist/task-executor-CtuKi2TZ.js +0 -350
- package/dist/task-owner-access-DhSShXSw.js +0 -48
- package/dist/task-registry-control.runtime-CsUj_KYA.js +0 -3
- package/dist/task-registry-delivery-runtime-Dic6aaTy.js +0 -3
- package/dist/task-registry-delivery-runtime-DtH77Z_E.js +0 -2
- package/dist/task-registry-tECWk779.js +0 -2346
- package/dist/task-registry.maintenance-Du91FMxz.js +0 -2
- package/dist/task-registry.maintenance-IBRK-koK.js +0 -425
- package/dist/testing-DyM4-o2f.js +0 -441
- package/dist/text-report-BEzLSDXl.js +0 -587
- package/dist/text-runtime-CjATQur1.js +0 -313
- package/dist/thread-bindings-BuyhU9E1.js +0 -223
- package/dist/tool-auth-shared-CPke5dxM.js +0 -53
- package/dist/tool-config-shared-DT9mUxpt.js +0 -19
- package/dist/tool-schema-runtime-DTZlFcMR.js +0 -1892
- package/dist/tools-effective-inventory-B16Ib7bd.js +0 -152
- package/dist/tools.runtime-B6sF2TBH.js +0 -4
- package/dist/transcript-0fLDbW8-.js +0 -222
- package/dist/transcript-B3chs9GK.js +0 -191
- package/dist/transcript-DQsKeQyR.js +0 -2
- package/dist/transcript.runtime-Bz9gTz-q.js +0 -2
- package/dist/transport-policy-BLTAZ-oe.js +0 -75
- package/dist/transport-ready-CjD7QFVT.js +0 -36
- package/dist/tts-BKZmS4xr.js +0 -40
- package/dist/tts-BObT55hT.js +0 -31
- package/dist/tui-B9QEI36P.js +0 -4018
- package/dist/tui-cli-D0ST19K6.js +0 -31
- package/dist/typing-mode-BueK7uiv.js +0 -84
- package/dist/undici-global-dispatcher-eRWmqD02.js +0 -99
- package/dist/update-Bhmi2Spr.js +0 -1253
- package/dist/update-check-JM7VVIJX.js +0 -431
- package/dist/update-cli-BlJMXLUZ.js +0 -1779
- package/dist/update-runner-BhQ8gYeg.js +0 -1492
- package/dist/usage-AvsukxPf.js +0 -71
- package/dist/usage-format-CiHAOGUv.js +0 -2
- package/dist/usage-format-DEkEYT6G.js +0 -507
- package/dist/utils-BwORcPSF.js +0 -189
- package/dist/video-generation-D4NjX7OM.js +0 -167
- package/dist/video-generation-provider--Hl1nMjg.js +0 -233
- package/dist/video-generation-provider-BYmO0XfA.js +0 -104
- package/dist/video-generation-provider-CTlDBaAN.js +0 -240
- package/dist/video-generation-provider-Cx3N6a-k.js +0 -263
- package/dist/video-generation-provider-CxAzTS6S.js +0 -181
- package/dist/video-generation-provider-D2-wBkk8.js +0 -246
- package/dist/video-generation-provider-DhD2Xpwp.js +0 -64
- package/dist/video-generation-provider-Dp7jqb8H.js +0 -77
- package/dist/video-generation-provider-WfRVn7Nn.js +0 -227
- package/dist/video-generation-provider-lCyC0SPc.js +0 -171
- package/dist/video-http-CqiFyKro.js +0 -29
- package/dist/video-model-catalog-Dujyv6aJ.js +0 -187
- package/dist/web-media-B770i-06.js +0 -2
- package/dist/web-media-CfbPpWDK.js +0 -330
- package/dist/web-search-C7rRmaDZ.js +0 -221
- package/dist/web-search-provider-DXmbjaIP.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-shared-BQmfD1uO.js +0 -414
- package/dist/x-search-shared-C-MC18vi.js +0 -109
- /package/dist/{account-lookup-44DR0qFz.js → account-lookup-DvZ7IbyB.js} +0 -0
- /package/dist/{auth-profiles.runtime-CeH05HY2.js → auth-profiles.runtime-CNNciZQU.js} +0 -0
- /package/dist/{backoff-CoEL_G0O.js → backoff-D10eQVn6.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/{commands-H3Ab0eU8.js → commands-BNMz19sX.js} +0 -0
- /package/dist/{control-ui-shared-upny-T3O.js → control-ui-shared-Bdc3sIMw.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/{exec-file-CMG8z0ly.js → exec-file-CJGGCNuX.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/{identity-BtgZsd-F.js → identity-Dplh_aWR.js} +0 -0
- /package/dist/{input-provenance-CqVg_UvP.js → input-provenance-DXlFriXS.js} +0 -0
- /package/dist/{issue-format-BJCe7wW8.js → issue-format-CxtLa4Cu.js} +0 -0
- /package/dist/{kill-tree-cyGT7uvN.js → kill-tree-DCyfVQx0.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/{number-coercion-D1JCit9l.js → number-coercion-Cmu1aJr8.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/{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-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/{restart-handoff-B3HMjoAC.js → restart-handoff-CUig5xgo.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/{schtasks-exec-BgQqxhbL.js → schtasks-exec-wK5FEC9N.js} +0 -0
- /package/dist/{session-transcript-files.fs-CTjDzbyc.js → session-transcript-files.fs-98DIXUOq.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/{targets-DOJmrCN8.js → targets-uT1GHLfz.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/{wsl-DQ0RgjjQ.js → wsl-084fnhGP.js} +0 -0
- /package/dist/{zod-parse-Cu9hgbVC.js → zod-parse-DRCmgWgX.js} +0 -0
|
@@ -0,0 +1,1489 @@
|
|
|
1
|
+
import { i as normalizeLowercaseStringOrEmpty, s as normalizeOptionalString } from "./string-coerce-xZwG7Dq8.js";
|
|
2
|
+
import { r as formatErrorMessage } from "./errors-Ez4cKI2Y.js";
|
|
3
|
+
import "./utils-C8dt4mi-.js";
|
|
4
|
+
import { t as createSubsystemLogger } from "./subsystem-BikUf0BS.js";
|
|
5
|
+
import { t as isTruthyEnvValue } from "./env-XRvlVcpF.js";
|
|
6
|
+
import { U as normalizeGoogleApiBaseUrl } from "./io-Bz-M35LC.js";
|
|
7
|
+
import { i as loadBundledPluginPublicSurfaceModuleSync } from "./facade-loader-BfXmlSKj.js";
|
|
8
|
+
import { n as loadBundledPluginPublicSurfaceModuleSync$1 } from "./facade-runtime-C8hhbfBh.js";
|
|
9
|
+
import { t as requireApiKey } from "./model-auth-runtime-shared-7sMIRCy3.js";
|
|
10
|
+
import { s as resolveApiKeyForProvider } from "./model-auth-BQpkMtoP.js";
|
|
11
|
+
import { n as fetchWithSsrFGuard } from "./fetch-guard-BWtRcc5b.js";
|
|
12
|
+
import { n as executeWithApiKeyRotation, t as collectProviderApiKeysForExecution } from "./api-key-rotation-DpM4forI.js";
|
|
13
|
+
import { t as parseGeminiAuth } from "./gemini-auth-D0iHYBtd.js";
|
|
14
|
+
import "./memory-embedding-provider-runtime-rD89o-fZ.js";
|
|
15
|
+
import { n as retryAsync } from "./retry-C1lmuHl8.js";
|
|
16
|
+
import { n as OPENAI_DEFAULT_EMBEDDING_MODEL } from "./provider-model-defaults-CWh9vLwl.js";
|
|
17
|
+
import { _ as estimateUtf8Bytes, f as runWithConcurrency, h as hasNonTextEmbeddingParts, o as hashText, v as splitTextToUtf8ByteLimit } from "./internal-TCZa_GcL.js";
|
|
18
|
+
import { n as resolveMemorySecretInputString } from "./secret-input-BmGhCgFQ.js";
|
|
19
|
+
import "node:fs";
|
|
20
|
+
import { Readable } from "node:stream";
|
|
21
|
+
import { createInterface } from "node:readline";
|
|
22
|
+
//#region src/memory-host-sdk/host/embedding-vectors.ts
|
|
23
|
+
function sanitizeAndNormalizeEmbedding(vec) {
|
|
24
|
+
const sanitized = vec.map((value) => Number.isFinite(value) ? value : 0);
|
|
25
|
+
const magnitude = Math.sqrt(sanitized.reduce((sum, value) => sum + value * value, 0));
|
|
26
|
+
if (magnitude < 1e-10) return sanitized;
|
|
27
|
+
return sanitized.map((value) => value / magnitude);
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/memory-host-sdk/host/embeddings-debug.ts
|
|
31
|
+
const debugEmbeddings = isTruthyEnvValue(process.env.KAIJIBOT_DEBUG_MEMORY_EMBEDDINGS || process.env.OPENCLAW_DEBUG_MEMORY_EMBEDDINGS);
|
|
32
|
+
const log$1 = createSubsystemLogger("memory/embeddings");
|
|
33
|
+
function debugEmbeddingsLog(message, meta) {
|
|
34
|
+
if (!debugEmbeddings) return;
|
|
35
|
+
const suffix = meta ? ` ${JSON.stringify(meta)}` : "";
|
|
36
|
+
log$1.raw(`${message}${suffix}`);
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/memory-host-sdk/host/remote-http.ts
|
|
40
|
+
function buildRemoteBaseUrlPolicy(baseUrl) {
|
|
41
|
+
const trimmed = baseUrl.trim();
|
|
42
|
+
if (!trimmed) return;
|
|
43
|
+
try {
|
|
44
|
+
const parsed = new URL(trimmed);
|
|
45
|
+
if (parsed.protocol !== "http:" && parsed.protocol !== "https:") return;
|
|
46
|
+
return { allowedHostnames: [parsed.hostname] };
|
|
47
|
+
} catch {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
async function withRemoteHttpResponse(params) {
|
|
52
|
+
const { response, release } = await fetchWithSsrFGuard({
|
|
53
|
+
url: params.url,
|
|
54
|
+
fetchImpl: params.fetchImpl,
|
|
55
|
+
init: params.init,
|
|
56
|
+
policy: params.ssrfPolicy,
|
|
57
|
+
auditContext: params.auditContext ?? "memory-remote"
|
|
58
|
+
});
|
|
59
|
+
try {
|
|
60
|
+
return await params.onResponse(response);
|
|
61
|
+
} finally {
|
|
62
|
+
await release();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/memory-host-sdk/host/embeddings-gemini.ts
|
|
67
|
+
const DEFAULT_GEMINI_EMBEDDING_MODEL = "gemini-embedding-001";
|
|
68
|
+
const GEMINI_MAX_INPUT_TOKENS = { "text-embedding-004": 2048 };
|
|
69
|
+
const GEMINI_EMBEDDING_2_MODELS = new Set(["gemini-embedding-2-preview"]);
|
|
70
|
+
const GEMINI_EMBEDDING_2_DEFAULT_DIMENSIONS = 3072;
|
|
71
|
+
const GEMINI_EMBEDDING_2_VALID_DIMENSIONS = [
|
|
72
|
+
768,
|
|
73
|
+
1536,
|
|
74
|
+
3072
|
|
75
|
+
];
|
|
76
|
+
/** Builds the text-only Gemini embedding request shape used across direct and batch APIs. */
|
|
77
|
+
function buildGeminiTextEmbeddingRequest(params) {
|
|
78
|
+
return buildGeminiEmbeddingRequest({
|
|
79
|
+
input: { text: params.text },
|
|
80
|
+
taskType: params.taskType,
|
|
81
|
+
outputDimensionality: params.outputDimensionality,
|
|
82
|
+
modelPath: params.modelPath
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function buildGeminiEmbeddingRequest(params) {
|
|
86
|
+
const request = {
|
|
87
|
+
content: { parts: params.input.parts?.map((part) => part.type === "text" ? { text: part.text } : { inlineData: {
|
|
88
|
+
mimeType: part.mimeType,
|
|
89
|
+
data: part.data
|
|
90
|
+
} }) ?? [{ text: params.input.text }] },
|
|
91
|
+
taskType: params.taskType
|
|
92
|
+
};
|
|
93
|
+
if (params.modelPath) request.model = params.modelPath;
|
|
94
|
+
if (params.outputDimensionality != null) request.outputDimensionality = params.outputDimensionality;
|
|
95
|
+
return request;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Returns true if the given model name is a gemini-embedding-2 variant that
|
|
99
|
+
* supports `outputDimensionality` and extended task types.
|
|
100
|
+
*/
|
|
101
|
+
function isGeminiEmbedding2Model(model) {
|
|
102
|
+
return GEMINI_EMBEDDING_2_MODELS.has(model);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Validate and return the `outputDimensionality` for gemini-embedding-2 models.
|
|
106
|
+
* Returns `undefined` for older models (they don't support the param).
|
|
107
|
+
*/
|
|
108
|
+
function resolveGeminiOutputDimensionality(model, requested) {
|
|
109
|
+
if (!isGeminiEmbedding2Model(model)) return;
|
|
110
|
+
if (requested == null) return GEMINI_EMBEDDING_2_DEFAULT_DIMENSIONS;
|
|
111
|
+
const valid = GEMINI_EMBEDDING_2_VALID_DIMENSIONS;
|
|
112
|
+
if (!valid.includes(requested)) throw new Error(`Invalid outputDimensionality ${requested} for ${model}. Valid values: ${valid.join(", ")}`);
|
|
113
|
+
return requested;
|
|
114
|
+
}
|
|
115
|
+
function resolveRemoteApiKey(remoteApiKey) {
|
|
116
|
+
const trimmed = resolveMemorySecretInputString({
|
|
117
|
+
value: remoteApiKey,
|
|
118
|
+
path: "agents.*.memorySearch.remote.apiKey"
|
|
119
|
+
});
|
|
120
|
+
if (!trimmed) return;
|
|
121
|
+
if (trimmed === "GOOGLE_API_KEY" || trimmed === "GEMINI_API_KEY") return process.env[trimmed]?.trim();
|
|
122
|
+
return trimmed;
|
|
123
|
+
}
|
|
124
|
+
function normalizeGeminiModel(model) {
|
|
125
|
+
const trimmed = model.trim();
|
|
126
|
+
if (!trimmed) return DEFAULT_GEMINI_EMBEDDING_MODEL;
|
|
127
|
+
const withoutPrefix = trimmed.replace(/^models\//, "");
|
|
128
|
+
if (withoutPrefix.startsWith("gemini/")) return withoutPrefix.slice(7);
|
|
129
|
+
if (withoutPrefix.startsWith("google/")) return withoutPrefix.slice(7);
|
|
130
|
+
return withoutPrefix;
|
|
131
|
+
}
|
|
132
|
+
async function fetchGeminiEmbeddingPayload(params) {
|
|
133
|
+
return await executeWithApiKeyRotation({
|
|
134
|
+
provider: "google",
|
|
135
|
+
apiKeys: params.client.apiKeys,
|
|
136
|
+
execute: async (apiKey) => {
|
|
137
|
+
const headers = {
|
|
138
|
+
...parseGeminiAuth(apiKey).headers,
|
|
139
|
+
...params.client.headers
|
|
140
|
+
};
|
|
141
|
+
return await withRemoteHttpResponse({
|
|
142
|
+
url: params.endpoint,
|
|
143
|
+
ssrfPolicy: params.client.ssrfPolicy,
|
|
144
|
+
init: {
|
|
145
|
+
method: "POST",
|
|
146
|
+
headers,
|
|
147
|
+
body: JSON.stringify(params.body)
|
|
148
|
+
},
|
|
149
|
+
onResponse: async (res) => {
|
|
150
|
+
if (!res.ok) {
|
|
151
|
+
const text = await res.text();
|
|
152
|
+
throw new Error(`gemini embeddings failed: ${res.status} ${text}`);
|
|
153
|
+
}
|
|
154
|
+
return await res.json();
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
function normalizeGeminiBaseUrl(raw) {
|
|
161
|
+
const trimmed = raw.replace(/\/+$/, "");
|
|
162
|
+
const openAiIndex = trimmed.indexOf("/openai");
|
|
163
|
+
if (openAiIndex > -1) return normalizeGoogleApiBaseUrl(trimmed.slice(0, openAiIndex));
|
|
164
|
+
return normalizeGoogleApiBaseUrl(trimmed);
|
|
165
|
+
}
|
|
166
|
+
function buildGeminiModelPath(model) {
|
|
167
|
+
return model.startsWith("models/") ? model : `models/${model}`;
|
|
168
|
+
}
|
|
169
|
+
async function createGeminiEmbeddingProvider(options) {
|
|
170
|
+
const client = await resolveGeminiEmbeddingClient(options);
|
|
171
|
+
const baseUrl = client.baseUrl.replace(/\/$/, "");
|
|
172
|
+
const embedUrl = `${baseUrl}/${client.modelPath}:embedContent`;
|
|
173
|
+
const batchUrl = `${baseUrl}/${client.modelPath}:batchEmbedContents`;
|
|
174
|
+
const isV2 = isGeminiEmbedding2Model(client.model);
|
|
175
|
+
const outputDimensionality = client.outputDimensionality;
|
|
176
|
+
const embedQuery = async (text) => {
|
|
177
|
+
if (!text.trim()) return [];
|
|
178
|
+
return sanitizeAndNormalizeEmbedding((await fetchGeminiEmbeddingPayload({
|
|
179
|
+
client,
|
|
180
|
+
endpoint: embedUrl,
|
|
181
|
+
body: buildGeminiTextEmbeddingRequest({
|
|
182
|
+
text,
|
|
183
|
+
taskType: options.taskType ?? "RETRIEVAL_QUERY",
|
|
184
|
+
outputDimensionality: isV2 ? outputDimensionality : void 0
|
|
185
|
+
})
|
|
186
|
+
})).embedding?.values ?? []);
|
|
187
|
+
};
|
|
188
|
+
const embedBatchInputs = async (inputs) => {
|
|
189
|
+
if (inputs.length === 0) return [];
|
|
190
|
+
const payload = await fetchGeminiEmbeddingPayload({
|
|
191
|
+
client,
|
|
192
|
+
endpoint: batchUrl,
|
|
193
|
+
body: { requests: inputs.map((input) => buildGeminiEmbeddingRequest({
|
|
194
|
+
input,
|
|
195
|
+
modelPath: client.modelPath,
|
|
196
|
+
taskType: options.taskType ?? "RETRIEVAL_DOCUMENT",
|
|
197
|
+
outputDimensionality: isV2 ? outputDimensionality : void 0
|
|
198
|
+
})) }
|
|
199
|
+
});
|
|
200
|
+
const embeddings = Array.isArray(payload.embeddings) ? payload.embeddings : [];
|
|
201
|
+
return inputs.map((_, index) => sanitizeAndNormalizeEmbedding(embeddings[index]?.values ?? []));
|
|
202
|
+
};
|
|
203
|
+
const embedBatch = async (texts) => {
|
|
204
|
+
return await embedBatchInputs(texts.map((text) => ({ text })));
|
|
205
|
+
};
|
|
206
|
+
return {
|
|
207
|
+
provider: {
|
|
208
|
+
id: "gemini",
|
|
209
|
+
model: client.model,
|
|
210
|
+
maxInputTokens: GEMINI_MAX_INPUT_TOKENS[client.model],
|
|
211
|
+
embedQuery,
|
|
212
|
+
embedBatch,
|
|
213
|
+
embedBatchInputs
|
|
214
|
+
},
|
|
215
|
+
client
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
async function resolveGeminiEmbeddingClient(options) {
|
|
219
|
+
const remote = options.remote;
|
|
220
|
+
const remoteApiKey = resolveRemoteApiKey(remote?.apiKey);
|
|
221
|
+
const remoteBaseUrl = remote?.baseUrl?.trim();
|
|
222
|
+
const apiKey = remoteApiKey ? remoteApiKey : requireApiKey(await resolveApiKeyForProvider({
|
|
223
|
+
provider: "google",
|
|
224
|
+
cfg: options.config,
|
|
225
|
+
agentDir: options.agentDir
|
|
226
|
+
}), "google");
|
|
227
|
+
const providerConfig = options.config.models?.providers?.google;
|
|
228
|
+
const rawBaseUrl = remoteBaseUrl || normalizeOptionalString(providerConfig?.baseUrl) || "https://generativelanguage.googleapis.com/v1beta";
|
|
229
|
+
const baseUrl = normalizeGeminiBaseUrl(rawBaseUrl);
|
|
230
|
+
const ssrfPolicy = buildRemoteBaseUrlPolicy(baseUrl);
|
|
231
|
+
const headers = { ...Object.assign({}, providerConfig?.headers, remote?.headers) };
|
|
232
|
+
const apiKeys = collectProviderApiKeysForExecution({
|
|
233
|
+
provider: "google",
|
|
234
|
+
primaryApiKey: apiKey
|
|
235
|
+
});
|
|
236
|
+
const model = normalizeGeminiModel(options.model);
|
|
237
|
+
const modelPath = buildGeminiModelPath(model);
|
|
238
|
+
const outputDimensionality = resolveGeminiOutputDimensionality(model, options.outputDimensionality);
|
|
239
|
+
debugEmbeddingsLog("memory embeddings: gemini client", {
|
|
240
|
+
rawBaseUrl,
|
|
241
|
+
baseUrl,
|
|
242
|
+
model,
|
|
243
|
+
modelPath,
|
|
244
|
+
outputDimensionality,
|
|
245
|
+
embedEndpoint: `${baseUrl}/${modelPath}:embedContent`,
|
|
246
|
+
batchEndpoint: `${baseUrl}/${modelPath}:batchEmbedContents`
|
|
247
|
+
});
|
|
248
|
+
return {
|
|
249
|
+
baseUrl,
|
|
250
|
+
headers,
|
|
251
|
+
ssrfPolicy,
|
|
252
|
+
model,
|
|
253
|
+
modelPath,
|
|
254
|
+
apiKeys,
|
|
255
|
+
outputDimensionality
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region src/plugin-sdk/lmstudio-runtime.ts
|
|
260
|
+
function loadFacadeModule$1() {
|
|
261
|
+
return loadBundledPluginPublicSurfaceModuleSync$1({
|
|
262
|
+
dirName: "lmstudio",
|
|
263
|
+
artifactBasename: "runtime-api.js"
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
const LMSTUDIO_DEFAULT_EMBEDDING_MODEL = "text-embedding-nomic-embed-text-v1.5";
|
|
267
|
+
const LMSTUDIO_PROVIDER_ID = "lmstudio";
|
|
268
|
+
createLazyFacadeValue("resolveLmstudioReasoningCapability");
|
|
269
|
+
createLazyFacadeValue("resolveLoadedContextWindow");
|
|
270
|
+
createLazyFacadeValue("resolveLmstudioServerBase");
|
|
271
|
+
const resolveLmstudioInferenceBase = createLazyFacadeValue("resolveLmstudioInferenceBase");
|
|
272
|
+
createLazyFacadeValue("normalizeLmstudioProviderConfig");
|
|
273
|
+
createLazyFacadeValue("fetchLmstudioModels");
|
|
274
|
+
createLazyFacadeValue("mapLmstudioWireEntry");
|
|
275
|
+
createLazyFacadeValue("discoverLmstudioModels");
|
|
276
|
+
const ensureLmstudioModelLoaded = createLazyFacadeValue("ensureLmstudioModelLoaded");
|
|
277
|
+
const buildLmstudioAuthHeaders = createLazyFacadeValue("buildLmstudioAuthHeaders");
|
|
278
|
+
createLazyFacadeValue("resolveLmstudioConfiguredApiKey");
|
|
279
|
+
const resolveLmstudioProviderHeaders = createLazyFacadeValue("resolveLmstudioProviderHeaders");
|
|
280
|
+
const resolveLmstudioRuntimeApiKey = createLazyFacadeValue("resolveLmstudioRuntimeApiKey");
|
|
281
|
+
function createLazyFacadeValue(key) {
|
|
282
|
+
return ((...args) => {
|
|
283
|
+
const value = loadFacadeModule$1()[key];
|
|
284
|
+
if (typeof value !== "function") return value;
|
|
285
|
+
return value(...args);
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
//#endregion
|
|
289
|
+
//#region src/memory-host-sdk/host/embeddings-model-normalize.ts
|
|
290
|
+
function normalizeEmbeddingModelWithPrefixes(params) {
|
|
291
|
+
const trimmed = params.model.trim();
|
|
292
|
+
if (!trimmed) return params.defaultModel;
|
|
293
|
+
for (const prefix of params.prefixes) if (trimmed.startsWith(prefix)) return trimmed.slice(prefix.length);
|
|
294
|
+
return trimmed;
|
|
295
|
+
}
|
|
296
|
+
//#endregion
|
|
297
|
+
//#region src/memory-host-sdk/host/embeddings-remote-client.ts
|
|
298
|
+
async function resolveRemoteEmbeddingBearerClient(params) {
|
|
299
|
+
const remote = params.options.remote;
|
|
300
|
+
const remoteApiKey = resolveMemorySecretInputString({
|
|
301
|
+
value: remote?.apiKey,
|
|
302
|
+
path: "agents.*.memorySearch.remote.apiKey"
|
|
303
|
+
});
|
|
304
|
+
const remoteBaseUrl = normalizeOptionalString(remote?.baseUrl);
|
|
305
|
+
const providerConfig = params.options.config.models?.providers?.[params.provider];
|
|
306
|
+
const apiKey = remoteApiKey ? remoteApiKey : requireApiKey(await resolveApiKeyForProvider({
|
|
307
|
+
provider: params.provider,
|
|
308
|
+
cfg: params.options.config,
|
|
309
|
+
agentDir: params.options.agentDir
|
|
310
|
+
}), params.provider);
|
|
311
|
+
const baseUrl = remoteBaseUrl || normalizeOptionalString(providerConfig?.baseUrl) || params.defaultBaseUrl;
|
|
312
|
+
const headerOverrides = Object.assign({}, providerConfig?.headers, remote?.headers);
|
|
313
|
+
return {
|
|
314
|
+
baseUrl,
|
|
315
|
+
headers: {
|
|
316
|
+
"Content-Type": "application/json",
|
|
317
|
+
Authorization: `Bearer ${apiKey}`,
|
|
318
|
+
...headerOverrides
|
|
319
|
+
},
|
|
320
|
+
ssrfPolicy: buildRemoteBaseUrlPolicy(baseUrl)
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
//#endregion
|
|
324
|
+
//#region src/memory-host-sdk/host/post-json.ts
|
|
325
|
+
async function postJson(params) {
|
|
326
|
+
return await withRemoteHttpResponse({
|
|
327
|
+
url: params.url,
|
|
328
|
+
ssrfPolicy: params.ssrfPolicy,
|
|
329
|
+
fetchImpl: params.fetchImpl,
|
|
330
|
+
init: {
|
|
331
|
+
method: "POST",
|
|
332
|
+
headers: params.headers,
|
|
333
|
+
body: JSON.stringify(params.body)
|
|
334
|
+
},
|
|
335
|
+
onResponse: async (res) => {
|
|
336
|
+
if (!res.ok) {
|
|
337
|
+
const text = await res.text();
|
|
338
|
+
const err = /* @__PURE__ */ new Error(`${params.errorPrefix}: ${res.status} ${text}`);
|
|
339
|
+
if (params.attachStatus) err.status = res.status;
|
|
340
|
+
throw err;
|
|
341
|
+
}
|
|
342
|
+
return await params.parse(await res.json());
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
//#endregion
|
|
347
|
+
//#region src/memory-host-sdk/host/embeddings-remote-fetch.ts
|
|
348
|
+
async function fetchRemoteEmbeddingVectors(params) {
|
|
349
|
+
return await postJson({
|
|
350
|
+
url: params.url,
|
|
351
|
+
headers: params.headers,
|
|
352
|
+
ssrfPolicy: params.ssrfPolicy,
|
|
353
|
+
fetchImpl: params.fetchImpl,
|
|
354
|
+
body: params.body,
|
|
355
|
+
errorPrefix: params.errorPrefix,
|
|
356
|
+
parse: (payload) => {
|
|
357
|
+
return (payload.data ?? []).map((entry) => entry.embedding ?? []);
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
//#endregion
|
|
362
|
+
//#region src/memory-host-sdk/host/embeddings-remote-provider.ts
|
|
363
|
+
function createRemoteEmbeddingProvider(params) {
|
|
364
|
+
const { client } = params;
|
|
365
|
+
const url = `${client.baseUrl.replace(/\/$/, "")}/embeddings`;
|
|
366
|
+
const embed = async (input) => {
|
|
367
|
+
if (input.length === 0) return [];
|
|
368
|
+
return await fetchRemoteEmbeddingVectors({
|
|
369
|
+
url,
|
|
370
|
+
headers: client.headers,
|
|
371
|
+
ssrfPolicy: client.ssrfPolicy,
|
|
372
|
+
fetchImpl: client.fetchImpl,
|
|
373
|
+
body: {
|
|
374
|
+
model: client.model,
|
|
375
|
+
input
|
|
376
|
+
},
|
|
377
|
+
errorPrefix: params.errorPrefix
|
|
378
|
+
});
|
|
379
|
+
};
|
|
380
|
+
return {
|
|
381
|
+
id: params.id,
|
|
382
|
+
model: client.model,
|
|
383
|
+
...typeof params.maxInputTokens === "number" ? { maxInputTokens: params.maxInputTokens } : {},
|
|
384
|
+
embedQuery: async (text) => {
|
|
385
|
+
const [vec] = await embed([text]);
|
|
386
|
+
return vec ?? [];
|
|
387
|
+
},
|
|
388
|
+
embedBatch: embed
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
async function resolveRemoteEmbeddingClient(params) {
|
|
392
|
+
const { baseUrl, headers, ssrfPolicy } = await resolveRemoteEmbeddingBearerClient({
|
|
393
|
+
provider: params.provider,
|
|
394
|
+
options: params.options,
|
|
395
|
+
defaultBaseUrl: params.defaultBaseUrl
|
|
396
|
+
});
|
|
397
|
+
return {
|
|
398
|
+
baseUrl,
|
|
399
|
+
headers,
|
|
400
|
+
ssrfPolicy,
|
|
401
|
+
model: params.normalizeModel(params.options.model)
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
//#endregion
|
|
405
|
+
//#region src/memory-host-sdk/host/embeddings-lmstudio.ts
|
|
406
|
+
const log = createSubsystemLogger("memory/embeddings");
|
|
407
|
+
const DEFAULT_LMSTUDIO_EMBEDDING_MODEL = LMSTUDIO_DEFAULT_EMBEDDING_MODEL;
|
|
408
|
+
/** Normalizes LM Studio embedding model refs and accepts `lmstudio/` prefix. */
|
|
409
|
+
function normalizeLmstudioModel(model) {
|
|
410
|
+
return normalizeEmbeddingModelWithPrefixes({
|
|
411
|
+
model,
|
|
412
|
+
defaultModel: DEFAULT_LMSTUDIO_EMBEDDING_MODEL,
|
|
413
|
+
prefixes: ["lmstudio/"]
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
function hasAuthorizationHeader(headers) {
|
|
417
|
+
if (!headers) return false;
|
|
418
|
+
return Object.entries(headers).some(([headerName, value]) => headerName.trim().toLowerCase() === "authorization" && value.trim().length > 0);
|
|
419
|
+
}
|
|
420
|
+
/** Resolves API key (real or synthetic placeholder) from runtime/provider auth config. */
|
|
421
|
+
async function resolveLmstudioApiKey(options) {
|
|
422
|
+
try {
|
|
423
|
+
return await resolveLmstudioRuntimeApiKey({
|
|
424
|
+
config: options.config,
|
|
425
|
+
agentDir: options.agentDir
|
|
426
|
+
});
|
|
427
|
+
} catch (error) {
|
|
428
|
+
if (/LM Studio API key is required/i.test(formatErrorMessage(error))) return;
|
|
429
|
+
throw error;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
/** Creates the LM Studio embedding provider client and preloads the target model before return. */
|
|
433
|
+
async function createLmstudioEmbeddingProvider(options) {
|
|
434
|
+
const providerConfig = options.config.models?.providers?.lmstudio;
|
|
435
|
+
const providerBaseUrl = providerConfig?.baseUrl?.trim();
|
|
436
|
+
const isFallbackActivation = options.fallback === "lmstudio" && options.provider !== "lmstudio";
|
|
437
|
+
const remoteBaseUrl = options.remote?.baseUrl?.trim();
|
|
438
|
+
const remoteApiKey = !isFallbackActivation ? resolveMemorySecretInputString({
|
|
439
|
+
value: options.remote?.apiKey,
|
|
440
|
+
path: "agents.*.memorySearch.remote.apiKey"
|
|
441
|
+
}) : void 0;
|
|
442
|
+
const baseUrlSource = !isFallbackActivation ? remoteBaseUrl : void 0;
|
|
443
|
+
const baseUrl = resolveLmstudioInferenceBase(baseUrlSource && baseUrlSource.length > 0 ? baseUrlSource : providerBaseUrl && providerBaseUrl.length > 0 ? providerBaseUrl : void 0);
|
|
444
|
+
const model = normalizeLmstudioModel(options.model);
|
|
445
|
+
const providerHeaders = await resolveLmstudioProviderHeaders({
|
|
446
|
+
config: options.config,
|
|
447
|
+
env: process.env,
|
|
448
|
+
headers: Object.assign({}, providerConfig?.headers, !isFallbackActivation ? options.remote?.headers : {})
|
|
449
|
+
});
|
|
450
|
+
const apiKey = hasAuthorizationHeader(providerHeaders) ? void 0 : !isFallbackActivation ? remoteApiKey?.trim() || await resolveLmstudioApiKey(options) : await resolveLmstudioApiKey(options);
|
|
451
|
+
const headerOverrides = Object.assign({}, providerHeaders);
|
|
452
|
+
const headers = buildLmstudioAuthHeaders({
|
|
453
|
+
apiKey,
|
|
454
|
+
json: true,
|
|
455
|
+
headers: headerOverrides
|
|
456
|
+
}) ?? {};
|
|
457
|
+
const ssrfPolicy = buildRemoteBaseUrlPolicy(baseUrl);
|
|
458
|
+
const client = {
|
|
459
|
+
baseUrl,
|
|
460
|
+
model,
|
|
461
|
+
headers,
|
|
462
|
+
ssrfPolicy
|
|
463
|
+
};
|
|
464
|
+
try {
|
|
465
|
+
await ensureLmstudioModelLoaded({
|
|
466
|
+
baseUrl,
|
|
467
|
+
apiKey,
|
|
468
|
+
headers: headerOverrides,
|
|
469
|
+
ssrfPolicy,
|
|
470
|
+
modelKey: model,
|
|
471
|
+
timeoutMs: 12e4
|
|
472
|
+
});
|
|
473
|
+
} catch (error) {
|
|
474
|
+
log.warn("lmstudio embeddings warmup failed; continuing without preload", {
|
|
475
|
+
baseUrl,
|
|
476
|
+
model,
|
|
477
|
+
error: formatErrorMessage(error)
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
return {
|
|
481
|
+
provider: createRemoteEmbeddingProvider({
|
|
482
|
+
id: LMSTUDIO_PROVIDER_ID,
|
|
483
|
+
client,
|
|
484
|
+
errorPrefix: "lmstudio embeddings failed"
|
|
485
|
+
}),
|
|
486
|
+
client
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
//#endregion
|
|
490
|
+
//#region src/memory-host-sdk/host/embeddings-mistral.ts
|
|
491
|
+
const DEFAULT_MISTRAL_EMBEDDING_MODEL = "mistral-embed";
|
|
492
|
+
const DEFAULT_MISTRAL_BASE_URL = "https://api.mistral.ai/v1";
|
|
493
|
+
function normalizeMistralModel(model) {
|
|
494
|
+
return normalizeEmbeddingModelWithPrefixes({
|
|
495
|
+
model,
|
|
496
|
+
defaultModel: DEFAULT_MISTRAL_EMBEDDING_MODEL,
|
|
497
|
+
prefixes: ["mistral/"]
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
async function createMistralEmbeddingProvider(options) {
|
|
501
|
+
const client = await resolveMistralEmbeddingClient(options);
|
|
502
|
+
return {
|
|
503
|
+
provider: createRemoteEmbeddingProvider({
|
|
504
|
+
id: "mistral",
|
|
505
|
+
client,
|
|
506
|
+
errorPrefix: "mistral embeddings failed"
|
|
507
|
+
}),
|
|
508
|
+
client
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
async function resolveMistralEmbeddingClient(options) {
|
|
512
|
+
return await resolveRemoteEmbeddingClient({
|
|
513
|
+
provider: "mistral",
|
|
514
|
+
options,
|
|
515
|
+
defaultBaseUrl: DEFAULT_MISTRAL_BASE_URL,
|
|
516
|
+
normalizeModel: normalizeMistralModel
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
//#endregion
|
|
520
|
+
//#region src/plugin-sdk/ollama-runtime.ts
|
|
521
|
+
function loadFacadeModule() {
|
|
522
|
+
return loadBundledPluginPublicSurfaceModuleSync({
|
|
523
|
+
dirName: "ollama",
|
|
524
|
+
artifactBasename: "runtime-api.js"
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
const DEFAULT_OLLAMA_EMBEDDING_MODEL = "nomic-embed-text";
|
|
528
|
+
const createOllamaEmbeddingProvider = ((...args) => loadFacadeModule().createOllamaEmbeddingProvider(...args));
|
|
529
|
+
//#endregion
|
|
530
|
+
//#region src/memory-host-sdk/host/embeddings-openai.ts
|
|
531
|
+
const DEFAULT_OPENAI_BASE_URL = "https://api.openai.com/v1";
|
|
532
|
+
const DEFAULT_OPENAI_EMBEDDING_MODEL = OPENAI_DEFAULT_EMBEDDING_MODEL;
|
|
533
|
+
const OPENAI_MAX_INPUT_TOKENS = {
|
|
534
|
+
"text-embedding-3-small": 8192,
|
|
535
|
+
"text-embedding-3-large": 8192,
|
|
536
|
+
"text-embedding-ada-002": 8191
|
|
537
|
+
};
|
|
538
|
+
function normalizeOpenAiModel(model) {
|
|
539
|
+
return normalizeEmbeddingModelWithPrefixes({
|
|
540
|
+
model,
|
|
541
|
+
defaultModel: DEFAULT_OPENAI_EMBEDDING_MODEL,
|
|
542
|
+
prefixes: ["openai/"]
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
async function createOpenAiEmbeddingProvider(options) {
|
|
546
|
+
const client = await resolveOpenAiEmbeddingClient(options);
|
|
547
|
+
return {
|
|
548
|
+
provider: createRemoteEmbeddingProvider({
|
|
549
|
+
id: "openai",
|
|
550
|
+
client,
|
|
551
|
+
errorPrefix: "openai embeddings failed",
|
|
552
|
+
maxInputTokens: OPENAI_MAX_INPUT_TOKENS[client.model]
|
|
553
|
+
}),
|
|
554
|
+
client
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
async function resolveOpenAiEmbeddingClient(options) {
|
|
558
|
+
return await resolveRemoteEmbeddingClient({
|
|
559
|
+
provider: "openai",
|
|
560
|
+
options,
|
|
561
|
+
defaultBaseUrl: DEFAULT_OPENAI_BASE_URL,
|
|
562
|
+
normalizeModel: normalizeOpenAiModel
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
//#endregion
|
|
566
|
+
//#region src/memory-host-sdk/host/embeddings-voyage.ts
|
|
567
|
+
const DEFAULT_VOYAGE_EMBEDDING_MODEL = "voyage-4-large";
|
|
568
|
+
const DEFAULT_VOYAGE_BASE_URL = "https://api.voyageai.com/v1";
|
|
569
|
+
const VOYAGE_MAX_INPUT_TOKENS = {
|
|
570
|
+
"voyage-3": 32e3,
|
|
571
|
+
"voyage-3-lite": 16e3,
|
|
572
|
+
"voyage-code-3": 32e3
|
|
573
|
+
};
|
|
574
|
+
function normalizeVoyageModel(model) {
|
|
575
|
+
return normalizeEmbeddingModelWithPrefixes({
|
|
576
|
+
model,
|
|
577
|
+
defaultModel: DEFAULT_VOYAGE_EMBEDDING_MODEL,
|
|
578
|
+
prefixes: ["voyage/"]
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
async function createVoyageEmbeddingProvider(options) {
|
|
582
|
+
const client = await resolveVoyageEmbeddingClient(options);
|
|
583
|
+
const url = `${client.baseUrl.replace(/\/$/, "")}/embeddings`;
|
|
584
|
+
const embed = async (input, input_type) => {
|
|
585
|
+
if (input.length === 0) return [];
|
|
586
|
+
const body = {
|
|
587
|
+
model: client.model,
|
|
588
|
+
input
|
|
589
|
+
};
|
|
590
|
+
if (input_type) body.input_type = input_type;
|
|
591
|
+
return await fetchRemoteEmbeddingVectors({
|
|
592
|
+
url,
|
|
593
|
+
headers: client.headers,
|
|
594
|
+
ssrfPolicy: client.ssrfPolicy,
|
|
595
|
+
body,
|
|
596
|
+
errorPrefix: "voyage embeddings failed"
|
|
597
|
+
});
|
|
598
|
+
};
|
|
599
|
+
return {
|
|
600
|
+
provider: {
|
|
601
|
+
id: "voyage",
|
|
602
|
+
model: client.model,
|
|
603
|
+
maxInputTokens: VOYAGE_MAX_INPUT_TOKENS[client.model],
|
|
604
|
+
embedQuery: async (text) => {
|
|
605
|
+
const [vec] = await embed([text], "query");
|
|
606
|
+
return vec ?? [];
|
|
607
|
+
},
|
|
608
|
+
embedBatch: async (texts) => embed(texts, "document")
|
|
609
|
+
},
|
|
610
|
+
client
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
async function resolveVoyageEmbeddingClient(options) {
|
|
614
|
+
const { baseUrl, headers, ssrfPolicy } = await resolveRemoteEmbeddingBearerClient({
|
|
615
|
+
provider: "voyage",
|
|
616
|
+
options,
|
|
617
|
+
defaultBaseUrl: DEFAULT_VOYAGE_BASE_URL
|
|
618
|
+
});
|
|
619
|
+
return {
|
|
620
|
+
baseUrl,
|
|
621
|
+
headers,
|
|
622
|
+
ssrfPolicy,
|
|
623
|
+
model: normalizeVoyageModel(options.model)
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
//#endregion
|
|
627
|
+
//#region src/memory-host-sdk/host/node-llama.ts
|
|
628
|
+
async function importNodeLlamaCpp() {
|
|
629
|
+
return import("node-llama-cpp");
|
|
630
|
+
}
|
|
631
|
+
//#endregion
|
|
632
|
+
//#region src/memory-host-sdk/host/embeddings.ts
|
|
633
|
+
const DEFAULT_LOCAL_MODEL = "hf:ggml-org/embeddinggemma-300m-qat-q8_0-GGUF/embeddinggemma-300m-qat-Q8_0.gguf";
|
|
634
|
+
async function createLocalEmbeddingProvider(options) {
|
|
635
|
+
const modelPath = normalizeOptionalString(options.local?.modelPath) || "hf:ggml-org/embeddinggemma-300m-qat-q8_0-GGUF/embeddinggemma-300m-qat-Q8_0.gguf";
|
|
636
|
+
const modelCacheDir = normalizeOptionalString(options.local?.modelCacheDir);
|
|
637
|
+
const { getLlama, resolveModelFile, LlamaLogLevel } = await importNodeLlamaCpp();
|
|
638
|
+
let llama = null;
|
|
639
|
+
let embeddingModel = null;
|
|
640
|
+
let embeddingContext = null;
|
|
641
|
+
let initPromise = null;
|
|
642
|
+
const ensureContext = async () => {
|
|
643
|
+
if (embeddingContext) return embeddingContext;
|
|
644
|
+
if (initPromise) return initPromise;
|
|
645
|
+
initPromise = (async () => {
|
|
646
|
+
try {
|
|
647
|
+
if (!llama) llama = await getLlama({ logLevel: LlamaLogLevel.error });
|
|
648
|
+
if (!embeddingModel) {
|
|
649
|
+
const resolved = await resolveModelFile(modelPath, modelCacheDir || void 0);
|
|
650
|
+
embeddingModel = await llama.loadModel({ modelPath: resolved });
|
|
651
|
+
}
|
|
652
|
+
if (!embeddingContext) embeddingContext = await embeddingModel.createEmbeddingContext();
|
|
653
|
+
return embeddingContext;
|
|
654
|
+
} catch (err) {
|
|
655
|
+
initPromise = null;
|
|
656
|
+
throw err;
|
|
657
|
+
}
|
|
658
|
+
})();
|
|
659
|
+
return initPromise;
|
|
660
|
+
};
|
|
661
|
+
return {
|
|
662
|
+
id: "local",
|
|
663
|
+
model: modelPath,
|
|
664
|
+
embedQuery: async (text) => {
|
|
665
|
+
const embedding = await (await ensureContext()).getEmbeddingFor(text);
|
|
666
|
+
return sanitizeAndNormalizeEmbedding(Array.from(embedding.vector));
|
|
667
|
+
},
|
|
668
|
+
embedBatch: async (texts) => {
|
|
669
|
+
const ctx = await ensureContext();
|
|
670
|
+
return await Promise.all(texts.map(async (text) => {
|
|
671
|
+
const embedding = await ctx.getEmbeddingFor(text);
|
|
672
|
+
return sanitizeAndNormalizeEmbedding(Array.from(embedding.vector));
|
|
673
|
+
}));
|
|
674
|
+
}
|
|
675
|
+
};
|
|
676
|
+
}
|
|
677
|
+
//#endregion
|
|
678
|
+
//#region src/memory-host-sdk/host/batch-utils.ts
|
|
679
|
+
function normalizeBatchBaseUrl(client) {
|
|
680
|
+
return client.baseUrl?.replace(/\/$/, "") ?? "";
|
|
681
|
+
}
|
|
682
|
+
function buildBatchHeaders(client, params) {
|
|
683
|
+
const headers = client.headers ? { ...client.headers } : {};
|
|
684
|
+
if (params.json) {
|
|
685
|
+
if (!headers["Content-Type"] && !headers["content-type"]) headers["Content-Type"] = "application/json";
|
|
686
|
+
} else {
|
|
687
|
+
delete headers["Content-Type"];
|
|
688
|
+
delete headers["content-type"];
|
|
689
|
+
}
|
|
690
|
+
return headers;
|
|
691
|
+
}
|
|
692
|
+
function splitBatchRequests(requests, maxRequests) {
|
|
693
|
+
if (requests.length <= maxRequests) return [requests];
|
|
694
|
+
const groups = [];
|
|
695
|
+
for (let i = 0; i < requests.length; i += maxRequests) groups.push(requests.slice(i, i + maxRequests));
|
|
696
|
+
return groups;
|
|
697
|
+
}
|
|
698
|
+
//#endregion
|
|
699
|
+
//#region src/memory-host-sdk/host/batch-runner.ts
|
|
700
|
+
async function runEmbeddingBatchGroups(params) {
|
|
701
|
+
if (params.requests.length === 0) return /* @__PURE__ */ new Map();
|
|
702
|
+
const groups = splitBatchRequests(params.requests, params.maxRequests);
|
|
703
|
+
const byCustomId = /* @__PURE__ */ new Map();
|
|
704
|
+
const tasks = groups.map((group, groupIndex) => async () => {
|
|
705
|
+
await params.runGroup({
|
|
706
|
+
group,
|
|
707
|
+
groupIndex,
|
|
708
|
+
groups: groups.length,
|
|
709
|
+
byCustomId
|
|
710
|
+
});
|
|
711
|
+
});
|
|
712
|
+
params.debug?.(params.debugLabel, {
|
|
713
|
+
requests: params.requests.length,
|
|
714
|
+
groups: groups.length,
|
|
715
|
+
wait: params.wait,
|
|
716
|
+
concurrency: params.concurrency,
|
|
717
|
+
pollIntervalMs: params.pollIntervalMs,
|
|
718
|
+
timeoutMs: params.timeoutMs
|
|
719
|
+
});
|
|
720
|
+
await runWithConcurrency(tasks, params.concurrency);
|
|
721
|
+
return byCustomId;
|
|
722
|
+
}
|
|
723
|
+
function buildEmbeddingBatchGroupOptions(params, options) {
|
|
724
|
+
return {
|
|
725
|
+
requests: params.requests,
|
|
726
|
+
maxRequests: options.maxRequests,
|
|
727
|
+
wait: params.wait,
|
|
728
|
+
pollIntervalMs: params.pollIntervalMs,
|
|
729
|
+
timeoutMs: params.timeoutMs,
|
|
730
|
+
concurrency: params.concurrency,
|
|
731
|
+
debug: params.debug,
|
|
732
|
+
debugLabel: options.debugLabel
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
//#endregion
|
|
736
|
+
//#region src/memory-host-sdk/host/batch-gemini.ts
|
|
737
|
+
const GEMINI_BATCH_MAX_REQUESTS = 5e4;
|
|
738
|
+
function getGeminiUploadUrl(baseUrl) {
|
|
739
|
+
if (baseUrl.includes("/v1beta")) return baseUrl.replace(/\/v1beta\/?$/, "/upload/v1beta");
|
|
740
|
+
return `${baseUrl.replace(/\/$/, "")}/upload`;
|
|
741
|
+
}
|
|
742
|
+
function buildGeminiUploadBody(params) {
|
|
743
|
+
const boundary = `kaijibot-${hashText(params.displayName)}`;
|
|
744
|
+
const jsonPart = JSON.stringify({ file: {
|
|
745
|
+
displayName: params.displayName,
|
|
746
|
+
mimeType: "application/jsonl"
|
|
747
|
+
} });
|
|
748
|
+
const delimiter = `--${boundary}\r\n`;
|
|
749
|
+
const closeDelimiter = `--${boundary}--\r\n`;
|
|
750
|
+
const parts = [
|
|
751
|
+
`${delimiter}Content-Type: application/json; charset=UTF-8\r\n\r\n${jsonPart}\r\n`,
|
|
752
|
+
`${delimiter}Content-Type: application/jsonl; charset=UTF-8\r\n\r\n${params.jsonl}\r\n`,
|
|
753
|
+
closeDelimiter
|
|
754
|
+
];
|
|
755
|
+
return {
|
|
756
|
+
body: new Blob([parts.join("")], { type: "multipart/related" }),
|
|
757
|
+
contentType: `multipart/related; boundary=${boundary}`
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
async function submitGeminiBatch(params) {
|
|
761
|
+
const baseUrl = normalizeBatchBaseUrl(params.gemini);
|
|
762
|
+
const uploadPayload = buildGeminiUploadBody({
|
|
763
|
+
jsonl: params.requests.map((request) => JSON.stringify({
|
|
764
|
+
key: request.custom_id,
|
|
765
|
+
request: request.request
|
|
766
|
+
})).join("\n"),
|
|
767
|
+
displayName: `memory-embeddings-${hashText(String(Date.now()))}`
|
|
768
|
+
});
|
|
769
|
+
const uploadUrl = `${getGeminiUploadUrl(baseUrl)}/files?uploadType=multipart`;
|
|
770
|
+
debugEmbeddingsLog("memory embeddings: gemini batch upload", {
|
|
771
|
+
uploadUrl,
|
|
772
|
+
baseUrl,
|
|
773
|
+
requests: params.requests.length
|
|
774
|
+
});
|
|
775
|
+
const filePayload = await withRemoteHttpResponse({
|
|
776
|
+
url: uploadUrl,
|
|
777
|
+
ssrfPolicy: params.gemini.ssrfPolicy,
|
|
778
|
+
init: {
|
|
779
|
+
method: "POST",
|
|
780
|
+
headers: {
|
|
781
|
+
...buildBatchHeaders(params.gemini, { json: false }),
|
|
782
|
+
"Content-Type": uploadPayload.contentType
|
|
783
|
+
},
|
|
784
|
+
body: uploadPayload.body
|
|
785
|
+
},
|
|
786
|
+
onResponse: async (fileRes) => {
|
|
787
|
+
if (!fileRes.ok) {
|
|
788
|
+
const text = await fileRes.text();
|
|
789
|
+
throw new Error(`gemini batch file upload failed: ${fileRes.status} ${text}`);
|
|
790
|
+
}
|
|
791
|
+
return await fileRes.json();
|
|
792
|
+
}
|
|
793
|
+
});
|
|
794
|
+
const fileId = filePayload.name ?? filePayload.file?.name;
|
|
795
|
+
if (!fileId) throw new Error("gemini batch file upload failed: missing file id");
|
|
796
|
+
const batchBody = { batch: {
|
|
797
|
+
displayName: `memory-embeddings-${params.agentId}`,
|
|
798
|
+
inputConfig: { file_name: fileId }
|
|
799
|
+
} };
|
|
800
|
+
const batchEndpoint = `${baseUrl}/${params.gemini.modelPath}:asyncBatchEmbedContent`;
|
|
801
|
+
debugEmbeddingsLog("memory embeddings: gemini batch create", {
|
|
802
|
+
batchEndpoint,
|
|
803
|
+
fileId
|
|
804
|
+
});
|
|
805
|
+
return await withRemoteHttpResponse({
|
|
806
|
+
url: batchEndpoint,
|
|
807
|
+
ssrfPolicy: params.gemini.ssrfPolicy,
|
|
808
|
+
init: {
|
|
809
|
+
method: "POST",
|
|
810
|
+
headers: buildBatchHeaders(params.gemini, { json: true }),
|
|
811
|
+
body: JSON.stringify(batchBody)
|
|
812
|
+
},
|
|
813
|
+
onResponse: async (batchRes) => {
|
|
814
|
+
if (batchRes.ok) return await batchRes.json();
|
|
815
|
+
const text = await batchRes.text();
|
|
816
|
+
if (batchRes.status === 404) throw new Error("gemini batch create failed: 404 (asyncBatchEmbedContent not available for this model/baseUrl). Disable remote.batch.enabled or switch providers.");
|
|
817
|
+
throw new Error(`gemini batch create failed: ${batchRes.status} ${text}`);
|
|
818
|
+
}
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
async function fetchGeminiBatchStatus(params) {
|
|
822
|
+
const statusUrl = `${normalizeBatchBaseUrl(params.gemini)}/${params.batchName.startsWith("batches/") ? params.batchName : `batches/${params.batchName}`}`;
|
|
823
|
+
debugEmbeddingsLog("memory embeddings: gemini batch status", { statusUrl });
|
|
824
|
+
return await withRemoteHttpResponse({
|
|
825
|
+
url: statusUrl,
|
|
826
|
+
ssrfPolicy: params.gemini.ssrfPolicy,
|
|
827
|
+
init: { headers: buildBatchHeaders(params.gemini, { json: true }) },
|
|
828
|
+
onResponse: async (res) => {
|
|
829
|
+
if (!res.ok) {
|
|
830
|
+
const text = await res.text();
|
|
831
|
+
throw new Error(`gemini batch status failed: ${res.status} ${text}`);
|
|
832
|
+
}
|
|
833
|
+
return await res.json();
|
|
834
|
+
}
|
|
835
|
+
});
|
|
836
|
+
}
|
|
837
|
+
async function fetchGeminiFileContent(params) {
|
|
838
|
+
const downloadUrl = `${normalizeBatchBaseUrl(params.gemini)}/${params.fileId.startsWith("files/") ? params.fileId : `files/${params.fileId}`}:download`;
|
|
839
|
+
debugEmbeddingsLog("memory embeddings: gemini batch download", { downloadUrl });
|
|
840
|
+
return await withRemoteHttpResponse({
|
|
841
|
+
url: downloadUrl,
|
|
842
|
+
ssrfPolicy: params.gemini.ssrfPolicy,
|
|
843
|
+
init: { headers: buildBatchHeaders(params.gemini, { json: true }) },
|
|
844
|
+
onResponse: async (res) => {
|
|
845
|
+
if (!res.ok) {
|
|
846
|
+
const text = await res.text();
|
|
847
|
+
throw new Error(`gemini batch file content failed: ${res.status} ${text}`);
|
|
848
|
+
}
|
|
849
|
+
return await res.text();
|
|
850
|
+
}
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
function parseGeminiBatchOutput(text) {
|
|
854
|
+
if (!text.trim()) return [];
|
|
855
|
+
return text.split("\n").map((line) => line.trim()).filter(Boolean).map((line) => JSON.parse(line));
|
|
856
|
+
}
|
|
857
|
+
async function waitForGeminiBatch(params) {
|
|
858
|
+
const start = Date.now();
|
|
859
|
+
let current = params.initial;
|
|
860
|
+
while (true) {
|
|
861
|
+
const status = current ?? await fetchGeminiBatchStatus({
|
|
862
|
+
gemini: params.gemini,
|
|
863
|
+
batchName: params.batchName
|
|
864
|
+
});
|
|
865
|
+
const state = status.state ?? "UNKNOWN";
|
|
866
|
+
if ([
|
|
867
|
+
"SUCCEEDED",
|
|
868
|
+
"COMPLETED",
|
|
869
|
+
"DONE"
|
|
870
|
+
].includes(state)) {
|
|
871
|
+
const outputFileId = status.outputConfig?.file ?? status.outputConfig?.fileId ?? status.metadata?.output?.responsesFile;
|
|
872
|
+
if (!outputFileId) throw new Error(`gemini batch ${params.batchName} completed without output file`);
|
|
873
|
+
return { outputFileId };
|
|
874
|
+
}
|
|
875
|
+
if ([
|
|
876
|
+
"FAILED",
|
|
877
|
+
"CANCELLED",
|
|
878
|
+
"CANCELED",
|
|
879
|
+
"EXPIRED"
|
|
880
|
+
].includes(state)) {
|
|
881
|
+
const message = status.error?.message ?? "unknown error";
|
|
882
|
+
throw new Error(`gemini batch ${params.batchName} ${state}: ${message}`);
|
|
883
|
+
}
|
|
884
|
+
if (!params.wait) throw new Error(`gemini batch ${params.batchName} still ${state}; wait disabled`);
|
|
885
|
+
if (Date.now() - start > params.timeoutMs) throw new Error(`gemini batch ${params.batchName} timed out after ${params.timeoutMs}ms`);
|
|
886
|
+
params.debug?.(`gemini batch ${params.batchName} ${state}; waiting ${params.pollIntervalMs}ms`);
|
|
887
|
+
await new Promise((resolve) => setTimeout(resolve, params.pollIntervalMs));
|
|
888
|
+
current = void 0;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
async function runGeminiEmbeddingBatches(params) {
|
|
892
|
+
return await runEmbeddingBatchGroups({
|
|
893
|
+
...buildEmbeddingBatchGroupOptions(params, {
|
|
894
|
+
maxRequests: GEMINI_BATCH_MAX_REQUESTS,
|
|
895
|
+
debugLabel: "memory embeddings: gemini batch submit"
|
|
896
|
+
}),
|
|
897
|
+
runGroup: async ({ group, groupIndex, groups, byCustomId }) => {
|
|
898
|
+
const batchInfo = await submitGeminiBatch({
|
|
899
|
+
gemini: params.gemini,
|
|
900
|
+
requests: group,
|
|
901
|
+
agentId: params.agentId
|
|
902
|
+
});
|
|
903
|
+
const batchName = batchInfo.name ?? "";
|
|
904
|
+
if (!batchName) throw new Error("gemini batch create failed: missing batch name");
|
|
905
|
+
params.debug?.("memory embeddings: gemini batch created", {
|
|
906
|
+
batchName,
|
|
907
|
+
state: batchInfo.state,
|
|
908
|
+
group: groupIndex + 1,
|
|
909
|
+
groups,
|
|
910
|
+
requests: group.length
|
|
911
|
+
});
|
|
912
|
+
if (!params.wait && batchInfo.state && ![
|
|
913
|
+
"SUCCEEDED",
|
|
914
|
+
"COMPLETED",
|
|
915
|
+
"DONE"
|
|
916
|
+
].includes(batchInfo.state)) throw new Error(`gemini batch ${batchName} submitted; enable remote.batch.wait to await completion`);
|
|
917
|
+
const completed = batchInfo.state && [
|
|
918
|
+
"SUCCEEDED",
|
|
919
|
+
"COMPLETED",
|
|
920
|
+
"DONE"
|
|
921
|
+
].includes(batchInfo.state) ? { outputFileId: batchInfo.outputConfig?.file ?? batchInfo.outputConfig?.fileId ?? batchInfo.metadata?.output?.responsesFile ?? "" } : await waitForGeminiBatch({
|
|
922
|
+
gemini: params.gemini,
|
|
923
|
+
batchName,
|
|
924
|
+
wait: params.wait,
|
|
925
|
+
pollIntervalMs: params.pollIntervalMs,
|
|
926
|
+
timeoutMs: params.timeoutMs,
|
|
927
|
+
debug: params.debug,
|
|
928
|
+
initial: batchInfo
|
|
929
|
+
});
|
|
930
|
+
if (!completed.outputFileId) throw new Error(`gemini batch ${batchName} completed without output file`);
|
|
931
|
+
const outputLines = parseGeminiBatchOutput(await fetchGeminiFileContent({
|
|
932
|
+
gemini: params.gemini,
|
|
933
|
+
fileId: completed.outputFileId
|
|
934
|
+
}));
|
|
935
|
+
const errors = [];
|
|
936
|
+
const remaining = new Set(group.map((request) => request.custom_id));
|
|
937
|
+
for (const line of outputLines) {
|
|
938
|
+
const customId = line.key ?? line.custom_id ?? line.request_id;
|
|
939
|
+
if (!customId) continue;
|
|
940
|
+
remaining.delete(customId);
|
|
941
|
+
if (line.error?.message) {
|
|
942
|
+
errors.push(`${customId}: ${line.error.message}`);
|
|
943
|
+
continue;
|
|
944
|
+
}
|
|
945
|
+
if (line.response?.error?.message) {
|
|
946
|
+
errors.push(`${customId}: ${line.response.error.message}`);
|
|
947
|
+
continue;
|
|
948
|
+
}
|
|
949
|
+
const embedding = sanitizeAndNormalizeEmbedding(line.embedding?.values ?? line.response?.embedding?.values ?? []);
|
|
950
|
+
if (embedding.length === 0) {
|
|
951
|
+
errors.push(`${customId}: empty embedding`);
|
|
952
|
+
continue;
|
|
953
|
+
}
|
|
954
|
+
byCustomId.set(customId, embedding);
|
|
955
|
+
}
|
|
956
|
+
if (errors.length > 0) throw new Error(`gemini batch ${batchName} failed: ${errors.join("; ")}`);
|
|
957
|
+
if (remaining.size > 0) throw new Error(`gemini batch ${batchName} missing ${remaining.size} embedding responses`);
|
|
958
|
+
}
|
|
959
|
+
});
|
|
960
|
+
}
|
|
961
|
+
//#endregion
|
|
962
|
+
//#region src/memory-host-sdk/host/batch-error-utils.ts
|
|
963
|
+
function getResponseErrorMessage(line) {
|
|
964
|
+
const body = line?.response?.body;
|
|
965
|
+
if (typeof body === "string") return body || void 0;
|
|
966
|
+
if (!body || typeof body !== "object") return;
|
|
967
|
+
return typeof body.error?.message === "string" ? body.error.message : void 0;
|
|
968
|
+
}
|
|
969
|
+
function extractBatchErrorMessage(lines) {
|
|
970
|
+
const first = lines.find((line) => line.error?.message || getResponseErrorMessage(line));
|
|
971
|
+
return first?.error?.message ?? getResponseErrorMessage(first);
|
|
972
|
+
}
|
|
973
|
+
function formatUnavailableBatchError(err) {
|
|
974
|
+
const message = formatErrorMessage(err);
|
|
975
|
+
return message ? `error file unavailable: ${message}` : void 0;
|
|
976
|
+
}
|
|
977
|
+
//#endregion
|
|
978
|
+
//#region src/memory-host-sdk/host/batch-http.ts
|
|
979
|
+
async function postJsonWithRetry(params) {
|
|
980
|
+
return await retryAsync(async () => {
|
|
981
|
+
return await postJson({
|
|
982
|
+
url: params.url,
|
|
983
|
+
headers: params.headers,
|
|
984
|
+
ssrfPolicy: params.ssrfPolicy,
|
|
985
|
+
fetchImpl: params.fetchImpl,
|
|
986
|
+
body: params.body,
|
|
987
|
+
errorPrefix: params.errorPrefix,
|
|
988
|
+
attachStatus: true,
|
|
989
|
+
parse: async (payload) => payload
|
|
990
|
+
});
|
|
991
|
+
}, {
|
|
992
|
+
attempts: 3,
|
|
993
|
+
minDelayMs: 300,
|
|
994
|
+
maxDelayMs: 2e3,
|
|
995
|
+
jitter: .2,
|
|
996
|
+
shouldRetry: (err) => {
|
|
997
|
+
const status = err.status;
|
|
998
|
+
return status === 429 || typeof status === "number" && status >= 500;
|
|
999
|
+
}
|
|
1000
|
+
});
|
|
1001
|
+
}
|
|
1002
|
+
//#endregion
|
|
1003
|
+
//#region src/memory-host-sdk/host/batch-output.ts
|
|
1004
|
+
function applyEmbeddingBatchOutputLine(params) {
|
|
1005
|
+
const customId = params.line.custom_id;
|
|
1006
|
+
if (!customId) return;
|
|
1007
|
+
params.remaining.delete(customId);
|
|
1008
|
+
const errorMessage = params.line.error?.message;
|
|
1009
|
+
if (errorMessage) {
|
|
1010
|
+
params.errors.push(`${customId}: ${errorMessage}`);
|
|
1011
|
+
return;
|
|
1012
|
+
}
|
|
1013
|
+
const response = params.line.response;
|
|
1014
|
+
if ((response?.status_code ?? 0) >= 400) {
|
|
1015
|
+
const messageFromObject = response?.body && typeof response.body === "object" ? response.body.error?.message : void 0;
|
|
1016
|
+
const messageFromString = typeof response?.body === "string" ? response.body : void 0;
|
|
1017
|
+
params.errors.push(`${customId}: ${messageFromObject ?? messageFromString ?? "unknown error"}`);
|
|
1018
|
+
return;
|
|
1019
|
+
}
|
|
1020
|
+
const embedding = (response?.body && typeof response.body === "object" ? response.body.data ?? [] : [])[0]?.embedding ?? [];
|
|
1021
|
+
if (embedding.length === 0) {
|
|
1022
|
+
params.errors.push(`${customId}: empty embedding`);
|
|
1023
|
+
return;
|
|
1024
|
+
}
|
|
1025
|
+
params.byCustomId.set(customId, embedding);
|
|
1026
|
+
}
|
|
1027
|
+
//#endregion
|
|
1028
|
+
//#region src/memory-host-sdk/host/batch-status.ts
|
|
1029
|
+
const TERMINAL_FAILURE_STATES = new Set([
|
|
1030
|
+
"failed",
|
|
1031
|
+
"expired",
|
|
1032
|
+
"cancelled",
|
|
1033
|
+
"canceled"
|
|
1034
|
+
]);
|
|
1035
|
+
function resolveBatchCompletionFromStatus(params) {
|
|
1036
|
+
if (!params.status.output_file_id) throw new Error(`${params.provider} batch ${params.batchId} completed without output file`);
|
|
1037
|
+
return {
|
|
1038
|
+
outputFileId: params.status.output_file_id,
|
|
1039
|
+
errorFileId: params.status.error_file_id ?? void 0
|
|
1040
|
+
};
|
|
1041
|
+
}
|
|
1042
|
+
async function throwIfBatchTerminalFailure(params) {
|
|
1043
|
+
const state = params.status.status ?? "unknown";
|
|
1044
|
+
if (!TERMINAL_FAILURE_STATES.has(state)) return;
|
|
1045
|
+
const detail = params.status.error_file_id ? await params.readError(params.status.error_file_id) : void 0;
|
|
1046
|
+
const suffix = detail ? `: ${detail}` : "";
|
|
1047
|
+
throw new Error(`${params.provider} batch ${params.status.id ?? "<unknown>"} ${state}${suffix}`);
|
|
1048
|
+
}
|
|
1049
|
+
async function resolveCompletedBatchResult(params) {
|
|
1050
|
+
const batchId = params.status.id ?? "<unknown>";
|
|
1051
|
+
if (!params.wait && params.status.status !== "completed") throw new Error(`${params.provider} batch ${batchId} submitted; enable remote.batch.wait to await completion`);
|
|
1052
|
+
const completed = params.status.status === "completed" ? resolveBatchCompletionFromStatus({
|
|
1053
|
+
provider: params.provider,
|
|
1054
|
+
batchId,
|
|
1055
|
+
status: params.status
|
|
1056
|
+
}) : await params.waitForBatch();
|
|
1057
|
+
if (!completed.outputFileId) throw new Error(`${params.provider} batch ${batchId} completed without output file`);
|
|
1058
|
+
return completed;
|
|
1059
|
+
}
|
|
1060
|
+
//#endregion
|
|
1061
|
+
//#region src/memory-host-sdk/host/batch-provider-common.ts
|
|
1062
|
+
const EMBEDDING_BATCH_ENDPOINT = "/v1/embeddings";
|
|
1063
|
+
//#endregion
|
|
1064
|
+
//#region src/memory-host-sdk/host/batch-upload.ts
|
|
1065
|
+
async function uploadBatchJsonlFile(params) {
|
|
1066
|
+
const baseUrl = normalizeBatchBaseUrl(params.client);
|
|
1067
|
+
const jsonl = params.requests.map((request) => JSON.stringify(request)).join("\n");
|
|
1068
|
+
const form = new FormData();
|
|
1069
|
+
form.append("purpose", "batch");
|
|
1070
|
+
form.append("file", new Blob([jsonl], { type: "application/jsonl" }), `memory-embeddings.${hashText(String(Date.now()))}.jsonl`);
|
|
1071
|
+
const filePayload = await withRemoteHttpResponse({
|
|
1072
|
+
url: `${baseUrl}/files`,
|
|
1073
|
+
ssrfPolicy: params.client.ssrfPolicy,
|
|
1074
|
+
fetchImpl: params.client.fetchImpl,
|
|
1075
|
+
init: {
|
|
1076
|
+
method: "POST",
|
|
1077
|
+
headers: buildBatchHeaders(params.client, { json: false }),
|
|
1078
|
+
body: form
|
|
1079
|
+
},
|
|
1080
|
+
onResponse: async (fileRes) => {
|
|
1081
|
+
if (!fileRes.ok) {
|
|
1082
|
+
const text = await fileRes.text();
|
|
1083
|
+
throw new Error(`${params.errorPrefix}: ${fileRes.status} ${text}`);
|
|
1084
|
+
}
|
|
1085
|
+
return await fileRes.json();
|
|
1086
|
+
}
|
|
1087
|
+
});
|
|
1088
|
+
if (!filePayload.id) throw new Error(`${params.errorPrefix}: missing file id`);
|
|
1089
|
+
return filePayload.id;
|
|
1090
|
+
}
|
|
1091
|
+
//#endregion
|
|
1092
|
+
//#region src/memory-host-sdk/host/batch-openai.ts
|
|
1093
|
+
const OPENAI_BATCH_ENDPOINT = EMBEDDING_BATCH_ENDPOINT;
|
|
1094
|
+
const OPENAI_BATCH_COMPLETION_WINDOW = "24h";
|
|
1095
|
+
const OPENAI_BATCH_MAX_REQUESTS = 5e4;
|
|
1096
|
+
async function submitOpenAiBatch(params) {
|
|
1097
|
+
const baseUrl = normalizeBatchBaseUrl(params.openAi);
|
|
1098
|
+
const inputFileId = await uploadBatchJsonlFile({
|
|
1099
|
+
client: params.openAi,
|
|
1100
|
+
requests: params.requests,
|
|
1101
|
+
errorPrefix: "openai batch file upload failed"
|
|
1102
|
+
});
|
|
1103
|
+
return await postJsonWithRetry({
|
|
1104
|
+
url: `${baseUrl}/batches`,
|
|
1105
|
+
headers: buildBatchHeaders(params.openAi, { json: true }),
|
|
1106
|
+
ssrfPolicy: params.openAi.ssrfPolicy,
|
|
1107
|
+
fetchImpl: params.openAi.fetchImpl,
|
|
1108
|
+
body: {
|
|
1109
|
+
input_file_id: inputFileId,
|
|
1110
|
+
endpoint: OPENAI_BATCH_ENDPOINT,
|
|
1111
|
+
completion_window: OPENAI_BATCH_COMPLETION_WINDOW,
|
|
1112
|
+
metadata: {
|
|
1113
|
+
source: "kaijibot-memory",
|
|
1114
|
+
agent: params.agentId
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
errorPrefix: "openai batch create failed"
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
async function fetchOpenAiBatchStatus(params) {
|
|
1121
|
+
return await fetchOpenAiBatchResource({
|
|
1122
|
+
openAi: params.openAi,
|
|
1123
|
+
path: `/batches/${params.batchId}`,
|
|
1124
|
+
errorPrefix: "openai batch status",
|
|
1125
|
+
parse: async (res) => await res.json()
|
|
1126
|
+
});
|
|
1127
|
+
}
|
|
1128
|
+
async function fetchOpenAiFileContent(params) {
|
|
1129
|
+
return await fetchOpenAiBatchResource({
|
|
1130
|
+
openAi: params.openAi,
|
|
1131
|
+
path: `/files/${params.fileId}/content`,
|
|
1132
|
+
errorPrefix: "openai batch file content",
|
|
1133
|
+
parse: async (res) => await res.text()
|
|
1134
|
+
});
|
|
1135
|
+
}
|
|
1136
|
+
async function fetchOpenAiBatchResource(params) {
|
|
1137
|
+
return await withRemoteHttpResponse({
|
|
1138
|
+
url: `${normalizeBatchBaseUrl(params.openAi)}${params.path}`,
|
|
1139
|
+
ssrfPolicy: params.openAi.ssrfPolicy,
|
|
1140
|
+
fetchImpl: params.openAi.fetchImpl,
|
|
1141
|
+
init: { headers: buildBatchHeaders(params.openAi, { json: true }) },
|
|
1142
|
+
onResponse: async (res) => {
|
|
1143
|
+
if (!res.ok) {
|
|
1144
|
+
const text = await res.text();
|
|
1145
|
+
throw new Error(`${params.errorPrefix} failed: ${res.status} ${text}`);
|
|
1146
|
+
}
|
|
1147
|
+
return await params.parse(res);
|
|
1148
|
+
}
|
|
1149
|
+
});
|
|
1150
|
+
}
|
|
1151
|
+
function parseOpenAiBatchOutput(text) {
|
|
1152
|
+
if (!text.trim()) return [];
|
|
1153
|
+
return text.split("\n").map((line) => line.trim()).filter(Boolean).map((line) => JSON.parse(line));
|
|
1154
|
+
}
|
|
1155
|
+
async function readOpenAiBatchError(params) {
|
|
1156
|
+
try {
|
|
1157
|
+
return extractBatchErrorMessage(parseOpenAiBatchOutput(await fetchOpenAiFileContent({
|
|
1158
|
+
openAi: params.openAi,
|
|
1159
|
+
fileId: params.errorFileId
|
|
1160
|
+
})));
|
|
1161
|
+
} catch (err) {
|
|
1162
|
+
return formatUnavailableBatchError(err);
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
async function waitForOpenAiBatch(params) {
|
|
1166
|
+
const start = Date.now();
|
|
1167
|
+
let current = params.initial;
|
|
1168
|
+
while (true) {
|
|
1169
|
+
const status = current ?? await fetchOpenAiBatchStatus({
|
|
1170
|
+
openAi: params.openAi,
|
|
1171
|
+
batchId: params.batchId
|
|
1172
|
+
});
|
|
1173
|
+
const state = status.status ?? "unknown";
|
|
1174
|
+
if (state === "completed") return resolveBatchCompletionFromStatus({
|
|
1175
|
+
provider: "openai",
|
|
1176
|
+
batchId: params.batchId,
|
|
1177
|
+
status
|
|
1178
|
+
});
|
|
1179
|
+
await throwIfBatchTerminalFailure({
|
|
1180
|
+
provider: "openai",
|
|
1181
|
+
status: {
|
|
1182
|
+
...status,
|
|
1183
|
+
id: params.batchId
|
|
1184
|
+
},
|
|
1185
|
+
readError: async (errorFileId) => await readOpenAiBatchError({
|
|
1186
|
+
openAi: params.openAi,
|
|
1187
|
+
errorFileId
|
|
1188
|
+
})
|
|
1189
|
+
});
|
|
1190
|
+
if (!params.wait) throw new Error(`openai batch ${params.batchId} still ${state}; wait disabled`);
|
|
1191
|
+
if (Date.now() - start > params.timeoutMs) throw new Error(`openai batch ${params.batchId} timed out after ${params.timeoutMs}ms`);
|
|
1192
|
+
params.debug?.(`openai batch ${params.batchId} ${state}; waiting ${params.pollIntervalMs}ms`);
|
|
1193
|
+
await new Promise((resolve) => setTimeout(resolve, params.pollIntervalMs));
|
|
1194
|
+
current = void 0;
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
async function runOpenAiEmbeddingBatches(params) {
|
|
1198
|
+
return await runEmbeddingBatchGroups({
|
|
1199
|
+
...buildEmbeddingBatchGroupOptions(params, {
|
|
1200
|
+
maxRequests: OPENAI_BATCH_MAX_REQUESTS,
|
|
1201
|
+
debugLabel: "memory embeddings: openai batch submit"
|
|
1202
|
+
}),
|
|
1203
|
+
runGroup: async ({ group, groupIndex, groups, byCustomId }) => {
|
|
1204
|
+
const batchInfo = await submitOpenAiBatch({
|
|
1205
|
+
openAi: params.openAi,
|
|
1206
|
+
requests: group,
|
|
1207
|
+
agentId: params.agentId
|
|
1208
|
+
});
|
|
1209
|
+
if (!batchInfo.id) throw new Error("openai batch create failed: missing batch id");
|
|
1210
|
+
const batchId = batchInfo.id;
|
|
1211
|
+
params.debug?.("memory embeddings: openai batch created", {
|
|
1212
|
+
batchId: batchInfo.id,
|
|
1213
|
+
status: batchInfo.status,
|
|
1214
|
+
group: groupIndex + 1,
|
|
1215
|
+
groups,
|
|
1216
|
+
requests: group.length
|
|
1217
|
+
});
|
|
1218
|
+
const completed = await resolveCompletedBatchResult({
|
|
1219
|
+
provider: "openai",
|
|
1220
|
+
status: batchInfo,
|
|
1221
|
+
wait: params.wait,
|
|
1222
|
+
waitForBatch: async () => await waitForOpenAiBatch({
|
|
1223
|
+
openAi: params.openAi,
|
|
1224
|
+
batchId,
|
|
1225
|
+
wait: params.wait,
|
|
1226
|
+
pollIntervalMs: params.pollIntervalMs,
|
|
1227
|
+
timeoutMs: params.timeoutMs,
|
|
1228
|
+
debug: params.debug,
|
|
1229
|
+
initial: batchInfo
|
|
1230
|
+
})
|
|
1231
|
+
});
|
|
1232
|
+
const outputLines = parseOpenAiBatchOutput(await fetchOpenAiFileContent({
|
|
1233
|
+
openAi: params.openAi,
|
|
1234
|
+
fileId: completed.outputFileId
|
|
1235
|
+
}));
|
|
1236
|
+
const errors = [];
|
|
1237
|
+
const remaining = new Set(group.map((request) => request.custom_id));
|
|
1238
|
+
for (const line of outputLines) applyEmbeddingBatchOutputLine({
|
|
1239
|
+
line,
|
|
1240
|
+
remaining,
|
|
1241
|
+
errors,
|
|
1242
|
+
byCustomId
|
|
1243
|
+
});
|
|
1244
|
+
if (errors.length > 0) throw new Error(`openai batch ${batchInfo.id} failed: ${errors.join("; ")}`);
|
|
1245
|
+
if (remaining.size > 0) throw new Error(`openai batch ${batchInfo.id} missing ${remaining.size} embedding responses`);
|
|
1246
|
+
}
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1249
|
+
//#endregion
|
|
1250
|
+
//#region src/memory-host-sdk/host/batch-voyage.ts
|
|
1251
|
+
const VOYAGE_BATCH_ENDPOINT = EMBEDDING_BATCH_ENDPOINT;
|
|
1252
|
+
const VOYAGE_BATCH_COMPLETION_WINDOW = "12h";
|
|
1253
|
+
const VOYAGE_BATCH_MAX_REQUESTS = 5e4;
|
|
1254
|
+
function resolveVoyageBatchDeps(overrides) {
|
|
1255
|
+
return {
|
|
1256
|
+
now: overrides?.now ?? Date.now,
|
|
1257
|
+
sleep: overrides?.sleep ?? (async (ms) => await new Promise((resolve) => setTimeout(resolve, ms))),
|
|
1258
|
+
postJsonWithRetry: overrides?.postJsonWithRetry ?? postJsonWithRetry,
|
|
1259
|
+
uploadBatchJsonlFile: overrides?.uploadBatchJsonlFile ?? uploadBatchJsonlFile,
|
|
1260
|
+
withRemoteHttpResponse: overrides?.withRemoteHttpResponse ?? withRemoteHttpResponse
|
|
1261
|
+
};
|
|
1262
|
+
}
|
|
1263
|
+
async function assertVoyageResponseOk(res, context) {
|
|
1264
|
+
if (!res.ok) {
|
|
1265
|
+
const text = await res.text();
|
|
1266
|
+
throw new Error(`${context}: ${res.status} ${text}`);
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
function buildVoyageBatchRequest(params) {
|
|
1270
|
+
return {
|
|
1271
|
+
url: `${normalizeBatchBaseUrl(params.client)}/${params.path}`,
|
|
1272
|
+
ssrfPolicy: params.client.ssrfPolicy,
|
|
1273
|
+
init: { headers: buildBatchHeaders(params.client, { json: true }) },
|
|
1274
|
+
onResponse: params.onResponse
|
|
1275
|
+
};
|
|
1276
|
+
}
|
|
1277
|
+
async function submitVoyageBatch(params) {
|
|
1278
|
+
const baseUrl = normalizeBatchBaseUrl(params.client);
|
|
1279
|
+
const inputFileId = await params.deps.uploadBatchJsonlFile({
|
|
1280
|
+
client: params.client,
|
|
1281
|
+
requests: params.requests,
|
|
1282
|
+
errorPrefix: "voyage batch file upload failed"
|
|
1283
|
+
});
|
|
1284
|
+
return await params.deps.postJsonWithRetry({
|
|
1285
|
+
url: `${baseUrl}/batches`,
|
|
1286
|
+
headers: buildBatchHeaders(params.client, { json: true }),
|
|
1287
|
+
ssrfPolicy: params.client.ssrfPolicy,
|
|
1288
|
+
body: {
|
|
1289
|
+
input_file_id: inputFileId,
|
|
1290
|
+
endpoint: VOYAGE_BATCH_ENDPOINT,
|
|
1291
|
+
completion_window: VOYAGE_BATCH_COMPLETION_WINDOW,
|
|
1292
|
+
request_params: {
|
|
1293
|
+
model: params.client.model,
|
|
1294
|
+
input_type: "document"
|
|
1295
|
+
},
|
|
1296
|
+
metadata: {
|
|
1297
|
+
source: "clawdbot-memory",
|
|
1298
|
+
agent: params.agentId
|
|
1299
|
+
}
|
|
1300
|
+
},
|
|
1301
|
+
errorPrefix: "voyage batch create failed"
|
|
1302
|
+
});
|
|
1303
|
+
}
|
|
1304
|
+
async function fetchVoyageBatchStatus(params) {
|
|
1305
|
+
return await params.deps.withRemoteHttpResponse(buildVoyageBatchRequest({
|
|
1306
|
+
client: params.client,
|
|
1307
|
+
path: `batches/${params.batchId}`,
|
|
1308
|
+
onResponse: async (res) => {
|
|
1309
|
+
await assertVoyageResponseOk(res, "voyage batch status failed");
|
|
1310
|
+
return await res.json();
|
|
1311
|
+
}
|
|
1312
|
+
}));
|
|
1313
|
+
}
|
|
1314
|
+
async function readVoyageBatchError(params) {
|
|
1315
|
+
try {
|
|
1316
|
+
return await params.deps.withRemoteHttpResponse(buildVoyageBatchRequest({
|
|
1317
|
+
client: params.client,
|
|
1318
|
+
path: `files/${params.errorFileId}/content`,
|
|
1319
|
+
onResponse: async (res) => {
|
|
1320
|
+
await assertVoyageResponseOk(res, "voyage batch error file content failed");
|
|
1321
|
+
const text = await res.text();
|
|
1322
|
+
if (!text.trim()) return;
|
|
1323
|
+
return extractBatchErrorMessage(text.split("\n").map((line) => line.trim()).filter(Boolean).map((line) => JSON.parse(line)));
|
|
1324
|
+
}
|
|
1325
|
+
}));
|
|
1326
|
+
} catch (err) {
|
|
1327
|
+
return formatUnavailableBatchError(err);
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
async function waitForVoyageBatch(params) {
|
|
1331
|
+
const start = params.deps.now();
|
|
1332
|
+
let current = params.initial;
|
|
1333
|
+
while (true) {
|
|
1334
|
+
const status = current ?? await fetchVoyageBatchStatus({
|
|
1335
|
+
client: params.client,
|
|
1336
|
+
batchId: params.batchId,
|
|
1337
|
+
deps: params.deps
|
|
1338
|
+
});
|
|
1339
|
+
const state = status.status ?? "unknown";
|
|
1340
|
+
if (state === "completed") return resolveBatchCompletionFromStatus({
|
|
1341
|
+
provider: "voyage",
|
|
1342
|
+
batchId: params.batchId,
|
|
1343
|
+
status
|
|
1344
|
+
});
|
|
1345
|
+
await throwIfBatchTerminalFailure({
|
|
1346
|
+
provider: "voyage",
|
|
1347
|
+
status: {
|
|
1348
|
+
...status,
|
|
1349
|
+
id: params.batchId
|
|
1350
|
+
},
|
|
1351
|
+
readError: async (errorFileId) => await readVoyageBatchError({
|
|
1352
|
+
client: params.client,
|
|
1353
|
+
errorFileId,
|
|
1354
|
+
deps: params.deps
|
|
1355
|
+
})
|
|
1356
|
+
});
|
|
1357
|
+
if (!params.wait) throw new Error(`voyage batch ${params.batchId} still ${state}; wait disabled`);
|
|
1358
|
+
if (params.deps.now() - start > params.timeoutMs) throw new Error(`voyage batch ${params.batchId} timed out after ${params.timeoutMs}ms`);
|
|
1359
|
+
params.debug?.(`voyage batch ${params.batchId} ${state}; waiting ${params.pollIntervalMs}ms`);
|
|
1360
|
+
await params.deps.sleep(params.pollIntervalMs);
|
|
1361
|
+
current = void 0;
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
async function runVoyageEmbeddingBatches(params) {
|
|
1365
|
+
const deps = resolveVoyageBatchDeps(params.deps);
|
|
1366
|
+
return await runEmbeddingBatchGroups({
|
|
1367
|
+
...buildEmbeddingBatchGroupOptions(params, {
|
|
1368
|
+
maxRequests: VOYAGE_BATCH_MAX_REQUESTS,
|
|
1369
|
+
debugLabel: "memory embeddings: voyage batch submit"
|
|
1370
|
+
}),
|
|
1371
|
+
runGroup: async ({ group, groupIndex, groups, byCustomId }) => {
|
|
1372
|
+
const batchInfo = await submitVoyageBatch({
|
|
1373
|
+
client: params.client,
|
|
1374
|
+
requests: group,
|
|
1375
|
+
agentId: params.agentId,
|
|
1376
|
+
deps
|
|
1377
|
+
});
|
|
1378
|
+
if (!batchInfo.id) throw new Error("voyage batch create failed: missing batch id");
|
|
1379
|
+
const batchId = batchInfo.id;
|
|
1380
|
+
params.debug?.("memory embeddings: voyage batch created", {
|
|
1381
|
+
batchId: batchInfo.id,
|
|
1382
|
+
status: batchInfo.status,
|
|
1383
|
+
group: groupIndex + 1,
|
|
1384
|
+
groups,
|
|
1385
|
+
requests: group.length
|
|
1386
|
+
});
|
|
1387
|
+
const completed = await resolveCompletedBatchResult({
|
|
1388
|
+
provider: "voyage",
|
|
1389
|
+
status: batchInfo,
|
|
1390
|
+
wait: params.wait,
|
|
1391
|
+
waitForBatch: async () => await waitForVoyageBatch({
|
|
1392
|
+
client: params.client,
|
|
1393
|
+
batchId,
|
|
1394
|
+
wait: params.wait,
|
|
1395
|
+
pollIntervalMs: params.pollIntervalMs,
|
|
1396
|
+
timeoutMs: params.timeoutMs,
|
|
1397
|
+
debug: params.debug,
|
|
1398
|
+
initial: batchInfo,
|
|
1399
|
+
deps
|
|
1400
|
+
})
|
|
1401
|
+
});
|
|
1402
|
+
const baseUrl = normalizeBatchBaseUrl(params.client);
|
|
1403
|
+
const errors = [];
|
|
1404
|
+
const remaining = new Set(group.map((request) => request.custom_id));
|
|
1405
|
+
await deps.withRemoteHttpResponse({
|
|
1406
|
+
url: `${baseUrl}/files/${completed.outputFileId}/content`,
|
|
1407
|
+
ssrfPolicy: params.client.ssrfPolicy,
|
|
1408
|
+
init: { headers: buildBatchHeaders(params.client, { json: true }) },
|
|
1409
|
+
onResponse: async (contentRes) => {
|
|
1410
|
+
if (!contentRes.ok) {
|
|
1411
|
+
const text = await contentRes.text();
|
|
1412
|
+
throw new Error(`voyage batch file content failed: ${contentRes.status} ${text}`);
|
|
1413
|
+
}
|
|
1414
|
+
if (!contentRes.body) return;
|
|
1415
|
+
const reader = createInterface({
|
|
1416
|
+
input: Readable.fromWeb(contentRes.body),
|
|
1417
|
+
terminal: false
|
|
1418
|
+
});
|
|
1419
|
+
for await (const rawLine of reader) {
|
|
1420
|
+
if (!rawLine.trim()) continue;
|
|
1421
|
+
applyEmbeddingBatchOutputLine({
|
|
1422
|
+
line: JSON.parse(rawLine),
|
|
1423
|
+
remaining,
|
|
1424
|
+
errors,
|
|
1425
|
+
byCustomId
|
|
1426
|
+
});
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
});
|
|
1430
|
+
if (errors.length > 0) throw new Error(`voyage batch ${batchInfo.id} failed: ${errors.join("; ")}`);
|
|
1431
|
+
if (remaining.size > 0) throw new Error(`voyage batch ${batchInfo.id} missing ${remaining.size} embedding responses`);
|
|
1432
|
+
}
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
//#endregion
|
|
1436
|
+
//#region src/memory-host-sdk/host/embedding-model-limits.ts
|
|
1437
|
+
const DEFAULT_EMBEDDING_MAX_INPUT_TOKENS = 8192;
|
|
1438
|
+
const DEFAULT_LOCAL_EMBEDDING_MAX_INPUT_TOKENS = 2048;
|
|
1439
|
+
const KNOWN_EMBEDDING_MAX_INPUT_TOKENS = {
|
|
1440
|
+
"openai:text-embedding-3-small": 8192,
|
|
1441
|
+
"openai:text-embedding-3-large": 8192,
|
|
1442
|
+
"openai:text-embedding-ada-002": 8191,
|
|
1443
|
+
"gemini:text-embedding-004": 2048,
|
|
1444
|
+
"gemini:gemini-embedding-001": 2048,
|
|
1445
|
+
"gemini:gemini-embedding-2-preview": 8192,
|
|
1446
|
+
"voyage:voyage-3": 32e3,
|
|
1447
|
+
"voyage:voyage-3-lite": 16e3,
|
|
1448
|
+
"voyage:voyage-code-3": 32e3
|
|
1449
|
+
};
|
|
1450
|
+
function resolveEmbeddingMaxInputTokens(provider) {
|
|
1451
|
+
if (typeof provider.maxInputTokens === "number") return provider.maxInputTokens;
|
|
1452
|
+
const known = KNOWN_EMBEDDING_MAX_INPUT_TOKENS[normalizeLowercaseStringOrEmpty(`${provider.id}:${provider.model}`)];
|
|
1453
|
+
if (typeof known === "number") return known;
|
|
1454
|
+
if (normalizeLowercaseStringOrEmpty(provider.id) === "gemini") return 2048;
|
|
1455
|
+
if (normalizeLowercaseStringOrEmpty(provider.id) === "local") return DEFAULT_LOCAL_EMBEDDING_MAX_INPUT_TOKENS;
|
|
1456
|
+
return DEFAULT_EMBEDDING_MAX_INPUT_TOKENS;
|
|
1457
|
+
}
|
|
1458
|
+
//#endregion
|
|
1459
|
+
//#region src/memory-host-sdk/host/embedding-chunk-limits.ts
|
|
1460
|
+
function enforceEmbeddingMaxInputTokens(provider, chunks, hardMaxInputTokens) {
|
|
1461
|
+
const providerMaxInputTokens = resolveEmbeddingMaxInputTokens(provider);
|
|
1462
|
+
const maxInputTokens = typeof hardMaxInputTokens === "number" && hardMaxInputTokens > 0 ? Math.min(providerMaxInputTokens, hardMaxInputTokens) : providerMaxInputTokens;
|
|
1463
|
+
const out = [];
|
|
1464
|
+
for (const chunk of chunks) {
|
|
1465
|
+
if (hasNonTextEmbeddingParts(chunk.embeddingInput)) {
|
|
1466
|
+
out.push(chunk);
|
|
1467
|
+
continue;
|
|
1468
|
+
}
|
|
1469
|
+
if (estimateUtf8Bytes(chunk.text) <= maxInputTokens) {
|
|
1470
|
+
out.push(chunk);
|
|
1471
|
+
continue;
|
|
1472
|
+
}
|
|
1473
|
+
for (const text of splitTextToUtf8ByteLimit(chunk.text, maxInputTokens)) out.push({
|
|
1474
|
+
startLine: chunk.startLine,
|
|
1475
|
+
endLine: chunk.endLine,
|
|
1476
|
+
text,
|
|
1477
|
+
hash: hashText(text),
|
|
1478
|
+
embeddingInput: { text }
|
|
1479
|
+
});
|
|
1480
|
+
}
|
|
1481
|
+
return out;
|
|
1482
|
+
}
|
|
1483
|
+
//#endregion
|
|
1484
|
+
//#region src/memory-host-sdk/engine-embeddings.ts
|
|
1485
|
+
function isMissingEmbeddingApiKeyError(err) {
|
|
1486
|
+
return err instanceof Error && /missing.*api.*key|api.*key.*required/i.test(err.message);
|
|
1487
|
+
}
|
|
1488
|
+
//#endregion
|
|
1489
|
+
export { buildGeminiEmbeddingRequest as C, DEFAULT_GEMINI_EMBEDDING_MODEL as S, DEFAULT_LMSTUDIO_EMBEDDING_MODEL as _, runOpenAiEmbeddingBatches as a, resolveRemoteEmbeddingClient as b, createLocalEmbeddingProvider as c, DEFAULT_OPENAI_EMBEDDING_MODEL as d, createOpenAiEmbeddingProvider as f, createMistralEmbeddingProvider as g, DEFAULT_MISTRAL_EMBEDDING_MODEL as h, OPENAI_BATCH_ENDPOINT as i, DEFAULT_VOYAGE_EMBEDDING_MODEL as l, createOllamaEmbeddingProvider as m, enforceEmbeddingMaxInputTokens as n, runGeminiEmbeddingBatches as o, DEFAULT_OLLAMA_EMBEDDING_MODEL as p, runVoyageEmbeddingBatches as r, DEFAULT_LOCAL_MODEL as s, isMissingEmbeddingApiKeyError as t, createVoyageEmbeddingProvider as u, createLmstudioEmbeddingProvider as v, createGeminiEmbeddingProvider as w, normalizeEmbeddingModelWithPrefixes as x, createRemoteEmbeddingProvider as y };
|