switchboard-router 0.9.56 → 0.9.59
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/app/.next/static/cG6cLaTIiXMA9B8cN_VI5/_buildManifest.js +1 -0
- package/app/{.next-cli-build/static/chunks/1321-e030b87815d694f7.js → .next/static/chunks/1321-a7406eb3cccfd85f.js} +1 -1
- package/app/.next/static/chunks/{1330-e1ec0f07ea113880.js → 1330-916ae59f041a0a4f.js} +2 -2
- package/app/.next/static/chunks/{3378-277dccfa153c2c15.js → 3378-0978c9887e5e6bd8.js} +6 -11
- package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/{page-51f788f35bc5325f.js → page-adba2750c4fbf61e.js} +1 -1
- package/app/.next/static/chunks/app/_global-error/page-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/catalog/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/doctor/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/export/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/mcp/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/skills/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/sync/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/updates/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/auth/login/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/auth/logout/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/auth/status/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/aider-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-full-catalog/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-picker-labels/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/gemini-cli-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/grok-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/pi-settings/manual-configs/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/pi-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/picker-labels/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/combos/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/combos/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/extras/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/proxy/[...path]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/restart/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/start/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/status/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/stop/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/health/live/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/health/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/keys/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/keys/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/locale/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/[id]/strategy/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/health/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/metrics/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/providers/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/routing/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/usage/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/version/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/models/alias/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/models/availability/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/models/custom/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/models/disabled/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/models/routable/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/models/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/models/test/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pricing/defaults/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pricing/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/batch/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/cache/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/prepare/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/remove-unavailable/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/cancel/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/start/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/status/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/client/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/test-batch/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/validate/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/health/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/install/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/logs/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/restart/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/start/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/stats/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/status/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/stop/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/routing/feedback/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/routing/insights/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/routing/learn/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/routing/stats/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/routing/versions/promote/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/routing/versions/rollback/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/settings/database/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/shutdown/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/skills/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/tags/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/token-saver/vault-stats/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/translator/load/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/translator/save/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/translator/send/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/translator/translate/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/chart/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/history/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/logs/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/providers/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-details/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-details/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-logs/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stats/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stream/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/api/chat/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/embeddings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/images/generations/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/[kind]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/info/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/search/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/edits/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/extensions/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/generations/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/version/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/version/shutdown/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/version/update/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/manifest.webmanifest/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/page-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-55c8179537f7f084.js +1 -0
- package/app/.next/static/css/d042b5b105ba183a.css +1 -0
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +21 -19
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +3 -3
- package/app/.next-cli-build/routes-manifest.json +12 -0
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/agent-library/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/agent-library/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/agent-library/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/routing/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/routing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/routing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/api/agent-library/catalog/route.js +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/catalog/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/doctor/route.js +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/doctor/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/mcp/route.js +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/mcp/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/route.js +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/skills/route.js +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/skills/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/sync/route.js +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/sync/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/updates/route.js +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/updates/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/aider-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/aider-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-full-catalog/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-full-catalog/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-picker-labels/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-picker-labels/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/gemini-cli-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/gemini-cli-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/grok-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/manual-configs/route.js +1 -0
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/manual-configs/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/manual-configs/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/picker-labels/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/picker-labels/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/live/route.js +1 -0
- package/app/.next-cli-build/server/app/api/health/live/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/health/live/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/combos/[id]/strategy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/combos/[id]/strategy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/metrics/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mgmt/v1/metrics/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/routing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/routing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/usage/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/usage/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/routable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/routable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/defaults/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/defaults/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/cache/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/cache/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/prepare/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/prepare/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/remove-unavailable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/remove-unavailable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/verify/cancel/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/verify/cancel/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/verify/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/verify/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/verify/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/verify/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/routing/feedback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/routing/feedback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/routing/insights/route.js +1 -1
- package/app/.next-cli-build/server/app/api/routing/insights/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/routing/learn/route.js +1 -1
- package/app/.next-cli-build/server/app/api/routing/learn/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/routing/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/routing/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/routing/versions/promote/route.js +1 -1
- package/app/.next-cli-build/server/app/api/routing/versions/promote/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/routing/versions/rollback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/routing/versions/rollback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/skills/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/skills/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/vault-stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/vault-stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +2 -2
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +1 -1
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing/page.js +1 -1
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login/page.js +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +1 -1
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +21 -19
- package/app/.next-cli-build/server/chunks/1129.js +2 -2
- package/app/.next-cli-build/server/chunks/1158.js +1 -1
- package/app/.next-cli-build/server/chunks/1294.js +2 -2
- package/app/.next-cli-build/server/chunks/1792.js +2 -2
- package/app/.next-cli-build/server/chunks/1937.js +2 -2
- package/app/.next-cli-build/server/chunks/1998.js +1 -1
- package/app/.next-cli-build/server/chunks/2142.js +1 -1
- package/app/.next-cli-build/server/chunks/2619.js +1 -1
- package/app/.next-cli-build/server/chunks/2847.js +1 -1
- package/app/.next-cli-build/server/chunks/3446.js +1 -1
- package/app/.next-cli-build/server/chunks/369.js +6 -6
- package/app/.next-cli-build/server/chunks/4301.js +1 -1
- package/app/.next-cli-build/server/chunks/4454.js +1 -1
- package/app/.next-cli-build/server/chunks/5115.js +1 -1
- package/app/.next-cli-build/server/chunks/5139.js +1 -1
- package/app/.next-cli-build/server/chunks/519.js +1 -1
- package/app/.next-cli-build/server/chunks/5565.js +6 -11
- package/app/.next-cli-build/server/chunks/6328.js +1 -1
- package/app/.next-cli-build/server/chunks/7059.js +1 -0
- package/app/.next-cli-build/server/chunks/7133.js +1 -1
- package/app/.next-cli-build/server/chunks/7774.js +3 -3
- package/app/.next-cli-build/server/chunks/7828.js +2 -2
- package/app/.next-cli-build/server/chunks/8400.js +3 -3
- package/app/.next-cli-build/server/chunks/869.js +1 -1
- package/app/.next-cli-build/server/chunks/8775.js +1 -1
- package/app/.next-cli-build/server/chunks/8789.js +1 -1
- package/app/.next-cli-build/server/chunks/8915.js +2 -2
- package/app/.next-cli-build/server/chunks/8942.js +1 -1
- package/app/.next-cli-build/server/chunks/8998.js +14 -14
- package/app/.next-cli-build/server/chunks/9059.js +1 -1
- package/app/.next-cli-build/server/chunks/9261.js +1 -1
- package/app/.next-cli-build/server/chunks/9264.js +2 -2
- package/app/.next-cli-build/server/chunks/9353.js +42 -0
- package/app/.next-cli-build/server/chunks/static/media/versions.fd0ef9e7.json +24 -0
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +3 -3
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/app/.next-cli-build/static/cG6cLaTIiXMA9B8cN_VI5/_buildManifest.js +1 -0
- package/app/{.next/static/chunks/1321-e030b87815d694f7.js → .next-cli-build/static/chunks/1321-a7406eb3cccfd85f.js} +1 -1
- package/app/.next-cli-build/static/chunks/{1330-e1ec0f07ea113880.js → 1330-916ae59f041a0a4f.js} +2 -2
- package/app/.next-cli-build/static/chunks/{3378-277dccfa153c2c15.js → 3378-0978c9887e5e6bd8.js} +6 -11
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/{page-51f788f35bc5325f.js → page-adba2750c4fbf61e.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/catalog/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/doctor/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/export/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/mcp/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/skills/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/sync/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/updates/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/aider-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-full-catalog/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-picker-labels/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/gemini-cli-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/manual-configs/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/picker-labels/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/live/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/[id]/strategy/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/health/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/metrics/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/providers/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/routing/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/usage/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/version/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/routable/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/defaults/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/batch/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/cache/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/prepare/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/remove-unavailable/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/cancel/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/start/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/status/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/feedback/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/insights/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/learn/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/stats/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/versions/promote/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/versions/rollback/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/skills/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/token-saver/vault-stats/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/css/d042b5b105ba183a.css +1 -0
- package/app/custom-server.js +32 -3
- package/app/node_modules/impit-linux-x64-musl/README.md +3 -0
- package/app/node_modules/impit-linux-x64-musl/impit-node.linux-x64-musl.node +0 -0
- package/app/node_modules/impit-linux-x64-musl/package.json +24 -0
- package/app/open-sse/identity/snapshots/versions.json +10 -10
- package/app/open-sse/identity/tls/bin/darwin/arm64/switchboard-claude-tls +0 -0
- package/app/open-sse/identity/tls/bin/darwin/x64/switchboard-claude-tls +0 -0
- package/app/open-sse/identity/tls/bin/linux/arm64/switchboard-claude-tls +0 -0
- package/app/open-sse/identity/tls/bin/linux/x64/switchboard-claude-tls +0 -0
- package/app/open-sse/identity/tls/bin/win32/arm64/switchboard-claude-tls.exe +0 -0
- package/app/open-sse/identity/tls/bin/win32/x64/switchboard-claude-tls.exe +0 -0
- package/app/package.json +1 -1
- package/cli.js +34 -16
- package/package.json +1 -1
- package/src/cli/serverStatus.js +9 -3
- package/app/.next/static/chunks/app/_global-error/page-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/catalog/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/doctor/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/export/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/mcp/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/skills/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/sync/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/updates/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/auth/login/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/auth/logout/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/auth/status/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/aider-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-full-catalog/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-picker-labels/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/gemini-cli-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/grok-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/pi-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/picker-labels/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/combos/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/combos/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/extras/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/proxy/[...path]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/restart/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/start/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/status/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/stop/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/health/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/keys/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/keys/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/locale/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/[id]/strategy/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/health/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/metrics/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/providers/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/routing/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/usage/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/version/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/models/alias/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/models/availability/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/models/custom/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/models/disabled/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/models/routable/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/models/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/models/test/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pricing/defaults/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pricing/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/batch/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/cache/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/prepare/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/remove-unavailable/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/cancel/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/start/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/status/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/client/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/test-batch/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/validate/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/health/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/install/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/logs/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/restart/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/start/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/stats/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/status/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/stop/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/routing/feedback/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/routing/insights/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/routing/learn/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/routing/stats/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/routing/versions/promote/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/routing/versions/rollback/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/settings/database/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/shutdown/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/skills/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/tags/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/token-saver/vault-stats/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/translator/load/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/translator/save/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/translator/send/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/translator/translate/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/chart/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/history/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/logs/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/providers/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-details/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-details/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-logs/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stats/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stream/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/api/chat/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/embeddings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/images/generations/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/[kind]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/info/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/search/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/edits/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/extensions/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/generations/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/version/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/version/shutdown/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/version/update/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/manifest.webmanifest/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/page-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-3981c2a159de99ad.js +0 -1
- package/app/.next/static/css/912e8e046d0cd4ca.css +0 -1
- package/app/.next/static/p00HZLRpEZ2dD21V7ZHfh/_buildManifest.js +0 -1
- package/app/.next-cli-build/server/chunks/4353.js +0 -1
- package/app/.next-cli-build/server/chunks/5717.js +0 -42
- package/app/.next-cli-build/server/chunks/static/media/versions.d3affa61.json +0 -24
- package/app/.next-cli-build/static/chunks/app/_global-error/page-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/catalog/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/doctor/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/export/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/mcp/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/skills/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/sync/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/updates/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/aider-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-full-catalog/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-picker-labels/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/gemini-cli-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/picker-labels/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/[id]/strategy/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/health/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/metrics/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/providers/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/routing/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/usage/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/version/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/routable/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/defaults/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/batch/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/cache/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/prepare/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/remove-unavailable/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/cancel/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/start/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/status/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/feedback/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/insights/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/learn/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/stats/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/versions/promote/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/versions/rollback/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/skills/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/token-saver/vault-stats/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/css/912e8e046d0cd4ca.css +0 -1
- package/app/.next-cli-build/static/p00HZLRpEZ2dD21V7ZHfh/_buildManifest.js +0 -1
- /package/app/.next/static/{p00HZLRpEZ2dD21V7ZHfh → cG6cLaTIiXMA9B8cN_VI5}/_ssgManifest.js +0 -0
- /package/app/.next-cli-build/static/{p00HZLRpEZ2dD21V7ZHfh → cG6cLaTIiXMA9B8cN_VI5}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=1158,exports.ids=[1158],exports.modules={51158:(a,b,c)=>{c.d(b,{g:()=>A,s:()=>B});var d=c(67133),e=c(15717),f=c(38775),g=c(89865),h=c(60290),i=c(41029),j=c(18129),k=c(45350),l=c(46052);let m=Number(process.env.VIDEO_FETCH_TIMEOUT_MS||12e4),n=new Set(["generations","edits","extensions"]);function o(a){return k.B$[a]?.videoConfig||null}function p(a,b=null){if(!a)return a;let c=String(a).replace(/Bearer\s+[A-Za-z0-9._~+/=-]{8,}/gi,"Bearer [redacted]");for(let a of["accessToken","refreshToken","apiKey"]){let d=b?.[a];"string"==typeof d&&d.length>=8&&(c=c.split(d).join("[redacted]"))}return c}async function q({provider:a,action:b=null,requestId:c=null,rawBody:d=null,contentType:e=null,idempotencyKey:f=null,credentials:r,signal:s,timeoutMs:t=m,log:u,onCredentialsRefreshed:v}){let w,x,y,z,A=o(a);if(!A)return(0,g.A1)(h.gx.BAD_REQUEST,`Provider '${a}' does not support video generation`);if(!c&&!n.has(b))return(0,g.A1)(h.gx.BAD_REQUEST,`Unknown video action: ${b}`);let{identity:B,format:C}=(x=k.xq[a]||{},{identity:(o(a)||{}).identity||x.identity||"openai-node",format:x.format||"openai"}),D=c?"GET":"POST",E=(y=A.baseUrl.replace(/\/$/,""),c?`${y}/${encodeURIComponent(c)}`:`${y}/${b}`),F=(z="function"==typeof AbortSignal?.timeout?AbortSignal.timeout(t):null,s&&z&&"function"==typeof AbortSignal.any?AbortSignal.any([s,z]):s||z||void 0),G=(0,l.$6)(r),H=b=>(0,l.Fm)(E,{method:D,headers:function({token:a,contentType:b,idempotencyKey:c}){let d={Accept:"application/json"};return a&&(d.Authorization=`Bearer ${a}`),b&&(d["Content-Type"]=b),c&&(d["Idempotency-Key"]=c),d}({token:b,contentType:"POST"===D?e:null,idempotencyKey:"POST"===D?f:null}),body:"POST"===D?d:void 0,signal:F,identity:B,format:C,provider:a},G);try{w=await H(r?.accessToken||r?.apiKey)}catch(b){if(b?.name==="AbortError"||b?.name==="TimeoutError")return(0,g.A1)(h.gx.REQUEST_TIMEOUT,`[${a}] video ${D} aborted: ${b.message}`);return(0,g.A1)(h.gx.BAD_GATEWAY,p(`[${a}] video upstream fetch failed: ${b.message}`,r))}if((w.status===h.gx.UNAUTHORIZED||w.status===h.gx.FORBIDDEN)&&r?.refreshToken){let b=null;try{b=await (0,j.MF)(a,r,()=>(0,i.$B)(a,r,u))}catch(b){u?.warn?.("TOKEN",`${a} | video refresh error: ${p(b.message,r)}`)}if(b?.accessToken){u?.info?.("TOKEN",`${a.toUpperCase()} | refreshed for video ${D}`),Object.assign(r,b),v&&await v(b);try{await w.body?.cancel?.()}catch{}try{w=await H(r.accessToken||r.apiKey)}catch(b){return(0,g.A1)(h.gx.BAD_GATEWAY,p(`[${a}] video retry after refresh failed: ${b.message}`,r))}}else u?.warn?.("TOKEN",`${a.toUpperCase()} | video refresh failed — account needs re-auth`)}let I=await w.text().catch(()=>"");if(!w.ok){let b=p(I||`HTTP ${w.status}`,r);return(0,g.A1)(w.status,`[${a}] ${b.slice(0,2e3)}`)}return{success:!0,response:new Response(I,{status:w.status,headers:{"Content-Type":w.headers.get("content-type")||"application/json"}})}}var r=c(67828),s=c(7803),t=c(78102),u=c(66077);let v=new Set([h.gx.UNAUTHORIZED,h.gx.FORBIDDEN,h.gx.RATE_LIMITED]);async function w(a){let b=await (0,e.mt)();return(0,t.DM)({settings:b,rawKey:(0,d.Tr)(a),request:a,target:{kind:"model",id:null}})}async function x(a){let b=a.headers.get("content-type")||"";if(b.includes("application/json")){let c,d=await a.text();try{c=JSON.parse(d)}catch{return{error:(0,g.yj)(h.gx.BAD_REQUEST,"Invalid JSON body")}}return{raw:d,parsed:c,contentType:b}}return{raw:Buffer.from(await a.arrayBuffer()),parsed:null,contentType:b}}async function y(a){if(!a?.model)return{provider:"xai",model:null};let b=String(a.model),c=await (0,f.getModelInfo)(b);return c.provider?o(c.provider)?{provider:c.provider,model:c.model}:b.includes("/")?{error:(0,g.yj)(h.gx.BAD_REQUEST,`Provider '${c.provider}' does not support video generation`)}:{provider:"xai",model:b}:{error:(0,g.yj)(h.gx.BAD_REQUEST,"Combos are not supported for video generation")}}function z(a,b){if(!b)return a;let c=new Headers(a.headers);return c.set("x-switchboard-connection-id",String(b)),new Response(a.body,{status:a.status,headers:c})}async function A(a,b){let c=await w(a);return c.ok?(0,t.yH)(c.lease,async()=>{let e=await x(a);if(e.error)return e.error;let f=await y(e.parsed);if(f.error)return f.error;let{provider:i,model:j}=f,k=e.raw;e.parsed&&j&&e.parsed.model!==j&&(k=JSON.stringify({...e.parsed,model:j}));let l=a.headers.get("x-connection-id")||null,m="1"===a.headers.get("x-switchboard-strict-connection"),n=a.headers.get("idempotency-key")||null,{clientKeyId:o}=c,t=new Set,w=null,A=null;for(;;){let c=await (0,d.getProviderCredentials)(i,t,j,{preferredConnectionId:l,strictPreferredConnection:m,clientKeyId:o});if(!c||c.allRateLimited){if(c?.allRateLimited){let a=w||c.lastError||"Unavailable",b=A||Number(c.lastErrorCode)||h.gx.SERVICE_UNAVAILABLE;return(0,g.wO)(b,`[${i}/${j||"video"}] ${a}`,c.retryAfter,c.retryAfterHuman)}if(0===t.size)return(0,g.yj)(h.gx.BAD_REQUEST,`No credentials for provider: ${i}`);return(0,g.yj)(A||h.gx.SERVICE_UNAVAILABLE,w||"All accounts unavailable")}let f=await (0,u.G)({provider:i,model:j,connectionId:c.connectionId},async()=>{let f=await (0,r.eU)(i,c),g=await q({provider:i,action:b,rawBody:k,contentType:e.contentType||null,idempotencyKey:n,credentials:f,signal:a.signal,log:s,onCredentialsRefreshed:async a=>{await (0,r.vN)(c.connectionId,{accessToken:a.accessToken,refreshToken:a.refreshToken,providerSpecificData:a.providerSpecificData,testStatus:"active"})}});if(g.success)return await (0,d.Pt)(c.connectionId,c,j),s.info("VIDEO",`${i.toUpperCase()} | ${b} accepted (connection ${c.connectionId})`),{finalResponse:z(g.response,c.connectionId)};let{shouldFallback:h}=await (0,d.vk)(c.connectionId,g.status,p(g.error,f),i,j);return h&&v.has(g.status)?{retry:!0,error:g.error,status:g.status}:{finalResponse:g.response}});if(f.finalResponse)return f.finalResponse;t.add(c.connectionId),w=f.error,A=f.status}}):c.response}async function B(a,b){let c=await w(a);return c.ok?(0,t.yH)(c.lease,async()=>{if(!b)return(0,g.yj)(h.gx.BAD_REQUEST,"Missing video request id");let e=a.headers.get("x-connection-id")||null,{clientKeyId:f}=c,i=await (0,d.getProviderCredentials)("xai",null,null,{preferredConnectionId:e,clientKeyId:f});if(!i||i.allRateLimited)return(0,g.yj)(h.gx.BAD_REQUEST,"No credentials for provider: xai");let j=await (0,r.eU)("xai",i),k=await q({provider:"xai",requestId:b,credentials:j,signal:a.signal,log:s,onCredentialsRefreshed:async a=>{await (0,r.vN)(i.connectionId,{accessToken:a.accessToken,refreshToken:a.refreshToken,providerSpecificData:a.providerSpecificData,testStatus:"active"})}});return k.success?(await (0,d.Pt)(i.connectionId,i,null),z(k.response,i.connectionId)):(await (0,d.vk)(i.connectionId,k.status,p(k.error,j),"xai",null),k.response)}):c.response}},66077:(a,b,c)=>{c.d(b,{G:()=>e});var d=c(23832);async function e({provider:a,model:b,connectionId:c},f){if(!c||"noauth"===c)return f();let g=!1,h=()=>{g||(g=!0,(0,d.uw)(b,a,c,!1))};(0,d.uw)(b,a,c,!0);try{let a=await f();if(a instanceof Response){if(!(a instanceof Response)||!a.body)return h(),a;let b=a.body.getReader();return new Response(new ReadableStream({async pull(a){try{let{done:c,value:d}=await b.read();c?(h(),a.close()):a.enqueue(d)}catch(b){h(),a.error(b)}},async cancel(a){try{await b.cancel(a)}finally{h()}}}),{status:a.status,statusText:a.statusText,headers:a.headers})}return h(),a}catch(a){throw h(),a}}},78102:(a,b,c)=>{c.d(b,{DM:()=>j,yH:()=>k});var d=c(15717),e=c(68658),f=c(41460);function g(){return global._clientKeyPolicyState}function h(a,b,c=null){let d={"content-type":"application/json"};return null!=c&&(d["retry-after"]=String(c)),{ok:!1,response:new Response(JSON.stringify({error:{message:"API key policy rejected this request",type:"client_key_policy_error",code:b}}),{status:a,headers:d})}}function i(a){return{ok:!0,mode:a,clientKey:null,clientKeyId:null,lease:null}}async function j({settings:a,rawKey:b,request:c,target:k}){if(c&&(0,e.v5)(c))return i("local");if(c)try{if(await (0,f.gN)(c))return i("cli")}catch{}if(!b)return a?.requireApiKey?h(401,"missing_api_key"):i("local");let l=await (0,d.PW)(b);if(!l)return a?.requireApiKey?h(401,"invalid_api_key"):i("local");let m=Date.now();if(l.expiresAt&&new Date(l.expiresAt).getTime()<=m)return h(403,"client_key_expired");if(!function(a,b){if(!a)return!0;let c=b.allowedModels||[],d=b.allowedCombos||[];return 0===c.length&&0===d.length||("combo"===a.kind?d.includes(a.id):c.includes(a.id))}(k,l))return h(403,"client_key_target_not_allowed");if(null!=l.spendLimitUsd){let a=await (0,d.fz)(l.id);if(l.spentUsd=a,a>=l.spendLimitUsd)return h(429,"client_key_spend_limit_exceeded")}let n=g().byId.get(l.id);if((!n||m-n.windowStartedAt>=6e4)&&(n={windowStartedAt:m,acceptedStarts:0,inFlight:n?.inFlight||0},g().byId.set(l.id,n)),null!=l.concurrencyLimit&&n.inFlight>=l.concurrencyLimit)return h(429,"client_key_concurrency_limit_exceeded",1);if(null!=l.rateLimitPerMinute&&n.acceptedStarts>=l.rateLimitPerMinute)return h(429,"client_key_rate_limit_exceeded",Math.max(1,Math.ceil((6e4-(m-n.windowStartedAt))/1e3)));n.acceptedStarts++,n.inFlight++;let o=!1;return{ok:!0,mode:"api-key",clientKey:l,clientKeyId:l.id,lease:{release(){if(o)return;o=!0;let a=g().byId.get(l.id);a&&(a.inFlight=Math.max(0,a.inFlight-1))}}}}async function k(a,b){let c;if(!a)return await b();let d=!1,e=()=>{d||(d=!0,a.release())};try{c=await b()}catch(a){throw e(),a}if(!(c instanceof Response&&c.body&&(c.headers.get("content-type")||"").toLowerCase().includes("text/event-stream")))return e(),c;let f=c.body.getReader();return new Response(new ReadableStream({async pull(a){try{let{done:b,value:c}=await f.read();b?(e(),a.close()):a.enqueue(c)}catch(b){e(),a.error(b)}},async cancel(a){e(),await f.cancel(a)}}),{status:c.status,statusText:c.statusText,headers:c.headers})}global._clientKeyPolicyState||(global._clientKeyPolicyState={byId:new Map})},89865:(a,b,c)=>{c.d(b,{A1:()=>h,lR:()=>j,wO:()=>i,yj:()=>f,zL:()=>g});var d=c(87252);async function e(a,b){let c=a?.body?.getReader?.();if(!c)try{return(await a.text()).slice(0,b)}catch{return""}let d=new TextDecoder,e="",f=0;try{for(;f<b;){let{done:a,value:g}=await c.read();if(a)break;let h=g instanceof Uint8Array?g:new Uint8Array(g),i=b-f;if(e+=d.decode(h.subarray(0,i),{stream:h.byteLength<=i}),f+=Math.min(h.byteLength,i),h.byteLength>i){try{await c.cancel("upstream error body limit")}catch{}break}}return e+d.decode()}catch{return e}finally{try{c.releaseLock?.()}catch{}}}function f(a,b){let c;return new Response(JSON.stringify((c=d.LY[a]||(a>=500?{type:"server_error",code:"internal_server_error"}:{type:"invalid_request_error",code:""}),{error:{message:b||d.O[a]||"An error occurred",type:c.type,code:c.code}})),{status:a,headers:{"Content-Type":"application/json"}})}async function g(a,b=null){let c=await e(a,65536);if(b&&"function"==typeof b.parseError)try{let e=b.parseError(a,c);if(e&&"object"==typeof e){let b=e.message||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:e.status||a.status,message:b,resetsAtMs:e.resetsAtMs}}}catch{}let f="";try{let a=JSON.parse(c);f="string"==typeof a?.error?.message?a.error.message:"string"==typeof a?.message?a.message:"string"==typeof a?.error_description?a.error_description:"string"==typeof a?.error?a.error:""}catch{f=c}let h=("string"==typeof f?f:"")||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:a.status,message:h}}function h(a,b,c){return{success:!1,status:a,error:b,resetsAtMs:c,response:f(a,b)}}function i(a,b,c,d){let e=Math.max(Math.ceil((new Date(c).getTime()-Date.now())/1e3),1);return new Response(JSON.stringify({error:{message:`${b} (${d})`}}),{status:a,headers:{"Content-Type":"application/json","Retry-After":String(e)}})}function j(a,b,c,d){let e=d||a.code||"FETCH_FAILED",f=a.message||"Unknown error",g=a.cause?.code,h=a.cause?.message,i=g||h?` (cause: ${[g,h].filter(Boolean).join(": ")})`:"";return`[${e}]: ${f}${i}`}}};
|
|
1
|
+
"use strict";exports.id=1158,exports.ids=[1158],exports.modules={51158:(a,b,c)=>{c.d(b,{g:()=>A,s:()=>B});var d=c(67133),e=c(59353),f=c(38775),g=c(89865),h=c(60290),i=c(41029),j=c(18129),k=c(45350),l=c(46052);let m=Number(process.env.VIDEO_FETCH_TIMEOUT_MS||12e4),n=new Set(["generations","edits","extensions"]);function o(a){return k.B$[a]?.videoConfig||null}function p(a,b=null){if(!a)return a;let c=String(a).replace(/Bearer\s+[A-Za-z0-9._~+/=-]{8,}/gi,"Bearer [redacted]");for(let a of["accessToken","refreshToken","apiKey"]){let d=b?.[a];"string"==typeof d&&d.length>=8&&(c=c.split(d).join("[redacted]"))}return c}async function q({provider:a,action:b=null,requestId:c=null,rawBody:d=null,contentType:e=null,idempotencyKey:f=null,credentials:r,signal:s,timeoutMs:t=m,log:u,onCredentialsRefreshed:v}){let w,x,y,z,A=o(a);if(!A)return(0,g.A1)(h.gx.BAD_REQUEST,`Provider '${a}' does not support video generation`);if(!c&&!n.has(b))return(0,g.A1)(h.gx.BAD_REQUEST,`Unknown video action: ${b}`);let{identity:B,format:C}=(x=k.xq[a]||{},{identity:(o(a)||{}).identity||x.identity||"openai-node",format:x.format||"openai"}),D=c?"GET":"POST",E=(y=A.baseUrl.replace(/\/$/,""),c?`${y}/${encodeURIComponent(c)}`:`${y}/${b}`),F=(z="function"==typeof AbortSignal?.timeout?AbortSignal.timeout(t):null,s&&z&&"function"==typeof AbortSignal.any?AbortSignal.any([s,z]):s||z||void 0),G=(0,l.$6)(r),H=b=>(0,l.Fm)(E,{method:D,headers:function({token:a,contentType:b,idempotencyKey:c}){let d={Accept:"application/json"};return a&&(d.Authorization=`Bearer ${a}`),b&&(d["Content-Type"]=b),c&&(d["Idempotency-Key"]=c),d}({token:b,contentType:"POST"===D?e:null,idempotencyKey:"POST"===D?f:null}),body:"POST"===D?d:void 0,signal:F,identity:B,format:C,provider:a},G);try{w=await H(r?.accessToken||r?.apiKey)}catch(b){if(b?.name==="AbortError"||b?.name==="TimeoutError")return(0,g.A1)(h.gx.REQUEST_TIMEOUT,`[${a}] video ${D} aborted: ${b.message}`);return(0,g.A1)(h.gx.BAD_GATEWAY,p(`[${a}] video upstream fetch failed: ${b.message}`,r))}if((w.status===h.gx.UNAUTHORIZED||w.status===h.gx.FORBIDDEN)&&r?.refreshToken){let b=null;try{b=await (0,j.MF)(a,r,()=>(0,i.$B)(a,r,u))}catch(b){u?.warn?.("TOKEN",`${a} | video refresh error: ${p(b.message,r)}`)}if(b?.accessToken){u?.info?.("TOKEN",`${a.toUpperCase()} | refreshed for video ${D}`),Object.assign(r,b),v&&await v(b);try{await w.body?.cancel?.()}catch{}try{w=await H(r.accessToken||r.apiKey)}catch(b){return(0,g.A1)(h.gx.BAD_GATEWAY,p(`[${a}] video retry after refresh failed: ${b.message}`,r))}}else u?.warn?.("TOKEN",`${a.toUpperCase()} | video refresh failed — account needs re-auth`)}let I=await w.text().catch(()=>"");if(!w.ok){let b=p(I||`HTTP ${w.status}`,r);return(0,g.A1)(w.status,`[${a}] ${b.slice(0,2e3)}`)}return{success:!0,response:new Response(I,{status:w.status,headers:{"Content-Type":w.headers.get("content-type")||"application/json"}})}}var r=c(67828),s=c(7803),t=c(78102),u=c(66077);let v=new Set([h.gx.UNAUTHORIZED,h.gx.FORBIDDEN,h.gx.RATE_LIMITED]);async function w(a){let b=await (0,e.mt)();return(0,t.DM)({settings:b,rawKey:(0,d.Tr)(a),request:a,target:{kind:"model",id:null}})}async function x(a){let b=a.headers.get("content-type")||"";if(b.includes("application/json")){let c,d=await a.text();try{c=JSON.parse(d)}catch{return{error:(0,g.yj)(h.gx.BAD_REQUEST,"Invalid JSON body")}}return{raw:d,parsed:c,contentType:b}}return{raw:Buffer.from(await a.arrayBuffer()),parsed:null,contentType:b}}async function y(a){if(!a?.model)return{provider:"xai",model:null};let b=String(a.model),c=await (0,f.getModelInfo)(b);return c.provider?o(c.provider)?{provider:c.provider,model:c.model}:b.includes("/")?{error:(0,g.yj)(h.gx.BAD_REQUEST,`Provider '${c.provider}' does not support video generation`)}:{provider:"xai",model:b}:{error:(0,g.yj)(h.gx.BAD_REQUEST,"Combos are not supported for video generation")}}function z(a,b){if(!b)return a;let c=new Headers(a.headers);return c.set("x-switchboard-connection-id",String(b)),new Response(a.body,{status:a.status,headers:c})}async function A(a,b){let c=await w(a);return c.ok?(0,t.yH)(c.lease,async()=>{let e=await x(a);if(e.error)return e.error;let f=await y(e.parsed);if(f.error)return f.error;let{provider:i,model:j}=f,k=e.raw;e.parsed&&j&&e.parsed.model!==j&&(k=JSON.stringify({...e.parsed,model:j}));let l=a.headers.get("x-connection-id")||null,m="1"===a.headers.get("x-switchboard-strict-connection"),n=a.headers.get("idempotency-key")||null,{clientKeyId:o}=c,t=new Set,w=null,A=null;for(;;){let c=await (0,d.getProviderCredentials)(i,t,j,{preferredConnectionId:l,strictPreferredConnection:m,clientKeyId:o});if(!c||c.allRateLimited){if(c?.allRateLimited){let a=w||c.lastError||"Unavailable",b=A||Number(c.lastErrorCode)||h.gx.SERVICE_UNAVAILABLE;return(0,g.wO)(b,`[${i}/${j||"video"}] ${a}`,c.retryAfter,c.retryAfterHuman)}if(0===t.size)return(0,g.yj)(h.gx.BAD_REQUEST,`No credentials for provider: ${i}`);return(0,g.yj)(A||h.gx.SERVICE_UNAVAILABLE,w||"All accounts unavailable")}let f=await (0,u.G)({provider:i,model:j,connectionId:c.connectionId},async()=>{let f=await (0,r.eU)(i,c),g=await q({provider:i,action:b,rawBody:k,contentType:e.contentType||null,idempotencyKey:n,credentials:f,signal:a.signal,log:s,onCredentialsRefreshed:async a=>{await (0,r.vN)(c.connectionId,{accessToken:a.accessToken,refreshToken:a.refreshToken,providerSpecificData:a.providerSpecificData,testStatus:"active"})}});if(g.success)return await (0,d.Pt)(c.connectionId,c,j),s.info("VIDEO",`${i.toUpperCase()} | ${b} accepted (connection ${c.connectionId})`),{finalResponse:z(g.response,c.connectionId)};let{shouldFallback:h}=await (0,d.vk)(c.connectionId,g.status,p(g.error,f),i,j);return h&&v.has(g.status)?{retry:!0,error:g.error,status:g.status}:{finalResponse:g.response}});if(f.finalResponse)return f.finalResponse;t.add(c.connectionId),w=f.error,A=f.status}}):c.response}async function B(a,b){let c=await w(a);return c.ok?(0,t.yH)(c.lease,async()=>{if(!b)return(0,g.yj)(h.gx.BAD_REQUEST,"Missing video request id");let e=a.headers.get("x-connection-id")||null,{clientKeyId:f}=c,i=await (0,d.getProviderCredentials)("xai",null,null,{preferredConnectionId:e,clientKeyId:f});if(!i||i.allRateLimited)return(0,g.yj)(h.gx.BAD_REQUEST,"No credentials for provider: xai");let j=await (0,r.eU)("xai",i),k=await q({provider:"xai",requestId:b,credentials:j,signal:a.signal,log:s,onCredentialsRefreshed:async a=>{await (0,r.vN)(i.connectionId,{accessToken:a.accessToken,refreshToken:a.refreshToken,providerSpecificData:a.providerSpecificData,testStatus:"active"})}});return k.success?(await (0,d.Pt)(i.connectionId,i,null),z(k.response,i.connectionId)):(await (0,d.vk)(i.connectionId,k.status,p(k.error,j),"xai",null),k.response)}):c.response}},66077:(a,b,c)=>{c.d(b,{G:()=>e});var d=c(23832);async function e({provider:a,model:b,connectionId:c},f){if(!c||"noauth"===c)return f();let g=!1,h=()=>{g||(g=!0,(0,d.uw)(b,a,c,!1))};(0,d.uw)(b,a,c,!0);try{let a=await f();if(a instanceof Response){if(!(a instanceof Response)||!a.body)return h(),a;let b=a.body.getReader();return new Response(new ReadableStream({async pull(a){try{let{done:c,value:d}=await b.read();c?(h(),a.close()):a.enqueue(d)}catch(b){h(),a.error(b)}},async cancel(a){try{await b.cancel(a)}finally{h()}}}),{status:a.status,statusText:a.statusText,headers:a.headers})}return h(),a}catch(a){throw h(),a}}},78102:(a,b,c)=>{c.d(b,{DM:()=>j,yH:()=>k});var d=c(59353),e=c(68658),f=c(41460);function g(){return global._clientKeyPolicyState}function h(a,b,c=null){let d={"content-type":"application/json"};return null!=c&&(d["retry-after"]=String(c)),{ok:!1,response:new Response(JSON.stringify({error:{message:"API key policy rejected this request",type:"client_key_policy_error",code:b}}),{status:a,headers:d})}}function i(a){return{ok:!0,mode:a,clientKey:null,clientKeyId:null,lease:null}}async function j({settings:a,rawKey:b,request:c,target:k}){if(c&&(0,e.v5)(c))return i("local");if(c)try{if(await (0,f.gN)(c))return i("cli")}catch{}if(!b)return a?.requireApiKey?h(401,"missing_api_key"):i("local");let l=await (0,d.PW)(b);if(!l)return a?.requireApiKey?h(401,"invalid_api_key"):i("local");let m=Date.now();if(l.expiresAt&&new Date(l.expiresAt).getTime()<=m)return h(403,"client_key_expired");if(!function(a,b){if(!a)return!0;let c=b.allowedModels||[],d=b.allowedCombos||[];return 0===c.length&&0===d.length||("combo"===a.kind?d.includes(a.id):c.includes(a.id))}(k,l))return h(403,"client_key_target_not_allowed");if(null!=l.spendLimitUsd){let a=await (0,d.fz)(l.id);if(l.spentUsd=a,a>=l.spendLimitUsd)return h(429,"client_key_spend_limit_exceeded")}let n=g().byId.get(l.id);if((!n||m-n.windowStartedAt>=6e4)&&(n={windowStartedAt:m,acceptedStarts:0,inFlight:n?.inFlight||0},g().byId.set(l.id,n)),null!=l.concurrencyLimit&&n.inFlight>=l.concurrencyLimit)return h(429,"client_key_concurrency_limit_exceeded",1);if(null!=l.rateLimitPerMinute&&n.acceptedStarts>=l.rateLimitPerMinute)return h(429,"client_key_rate_limit_exceeded",Math.max(1,Math.ceil((6e4-(m-n.windowStartedAt))/1e3)));n.acceptedStarts++,n.inFlight++;let o=!1;return{ok:!0,mode:"api-key",clientKey:l,clientKeyId:l.id,lease:{release(){if(o)return;o=!0;let a=g().byId.get(l.id);a&&(a.inFlight=Math.max(0,a.inFlight-1))}}}}async function k(a,b){let c;if(!a)return await b();let d=!1,e=()=>{d||(d=!0,a.release())};try{c=await b()}catch(a){throw e(),a}if(!(c instanceof Response&&c.body&&(c.headers.get("content-type")||"").toLowerCase().includes("text/event-stream")))return e(),c;let f=c.body.getReader();return new Response(new ReadableStream({async pull(a){try{let{done:b,value:c}=await f.read();b?(e(),a.close()):a.enqueue(c)}catch(b){e(),a.error(b)}},async cancel(a){e(),await f.cancel(a)}}),{status:c.status,statusText:c.statusText,headers:c.headers})}global._clientKeyPolicyState||(global._clientKeyPolicyState={byId:new Map})},89865:(a,b,c)=>{c.d(b,{A1:()=>h,lR:()=>j,wO:()=>i,yj:()=>f,zL:()=>g});var d=c(87252);async function e(a,b){let c=a?.body?.getReader?.();if(!c)try{return(await a.text()).slice(0,b)}catch{return""}let d=new TextDecoder,e="",f=0;try{for(;f<b;){let{done:a,value:g}=await c.read();if(a)break;let h=g instanceof Uint8Array?g:new Uint8Array(g),i=b-f;if(e+=d.decode(h.subarray(0,i),{stream:h.byteLength<=i}),f+=Math.min(h.byteLength,i),h.byteLength>i){try{await c.cancel("upstream error body limit")}catch{}break}}return e+d.decode()}catch{return e}finally{try{c.releaseLock?.()}catch{}}}function f(a,b){let c;return new Response(JSON.stringify((c=d.LY[a]||(a>=500?{type:"server_error",code:"internal_server_error"}:{type:"invalid_request_error",code:""}),{error:{message:b||d.O[a]||"An error occurred",type:c.type,code:c.code}})),{status:a,headers:{"Content-Type":"application/json"}})}async function g(a,b=null){let c=await e(a,65536);if(b&&"function"==typeof b.parseError)try{let e=b.parseError(a,c);if(e&&"object"==typeof e){let b=e.message||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:e.status||a.status,message:b,resetsAtMs:e.resetsAtMs}}}catch{}let f="";try{let a=JSON.parse(c);f="string"==typeof a?.error?.message?a.error.message:"string"==typeof a?.message?a.message:"string"==typeof a?.error_description?a.error_description:"string"==typeof a?.error?a.error:""}catch{f=c}let h=("string"==typeof f?f:"")||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:a.status,message:h}}function h(a,b,c){return{success:!1,status:a,error:b,resetsAtMs:c,response:f(a,b)}}function i(a,b,c,d){let e=Math.max(Math.ceil((new Date(c).getTime()-Date.now())/1e3),1);return new Response(JSON.stringify({error:{message:`${b} (${d})`}}),{status:a,headers:{"Content-Type":"application/json","Retry-After":String(e)}})}function j(a,b,c,d){let e=d||a.code||"FETCH_FAILED",f=a.message||"Unknown error",g=a.cause?.code,h=a.cause?.message,i=g||h?` (cause: ${[g,h].filter(Boolean).join(": ")})`:"";return`[${e}]: ${f}${i}`}}};
|
|
@@ -8,7 +8,7 @@ ASSISTANT RESPONSE (untrusted):
|
|
|
8
8
|
${r}
|
|
9
9
|
RESPONSE>>>
|
|
10
10
|
|
|
11
|
-
JSON only: {"score":<0-10>,"confident":<true|false>}`}]),w={model:p,messages:v,stream:!1,temperature:0,max_tokens:64},x=await (n=a=>d(w,p,{sourceFormatOverride:"openai",bypassNativePassthrough:!0,bypassPromptFilters:!0,autoDepth:2,signal:a}),s=new AbortController,new Promise((a,b)=>{let c=setTimeout(()=>{try{s.abort()}catch{}b(Error("judge_timeout"))},3e4);Promise.resolve().then(()=>n(s.signal)).then(b=>{clearTimeout(c),a(b)},a=>{clearTimeout(c),b(a)})})),y=await g(x);if(y?.httpError)return void k?.warn?.("AUTO",`judge HTTP ${y.status} — drop`);let z=function(a){let b;if("string"!=typeof a||!a.trim())return null;let c=a.trim(),d=c.match(/```(?:json)?\s*([\s\S]*?)```/i);d&&(c=d[1].trim());let e=c.indexOf("{"),f=c.lastIndexOf("}");if(e<0||f<=e)return null;try{b=JSON.parse(c.slice(e,f+1))}catch{return null}if(!b||"object"!=typeof b||!0!==b.confident)return null;let g=Number(b.score);return!Number.isFinite(g)||g<0||g>10?null:{score:g,confident:!0}}(y?.text||"");if(!z)return;j(c,u,z.score<=3);let A=(0,f.Uq)(z.score);if(k?.info?.("AUTO",`judge score=${z.score} rating=${A} cluster=${u} req=${t}`),0!==A){let a=await i(t,z.score);a&&0===a.updated&&(await new Promise(a=>setTimeout(a,1500)),await i(t,z.score))}}catch(a){k?.warn?.("AUTO",`judge failed (dropped): ${a?.message||a}`)}},sampleRate:o}}},19978:(a,b,c)=>{c.d(b,{C5:()=>
|
|
11
|
+
JSON only: {"score":<0-10>,"confident":<true|false>}`}]),w={model:p,messages:v,stream:!1,temperature:0,max_tokens:64},x=await (n=a=>d(w,p,{sourceFormatOverride:"openai",bypassNativePassthrough:!0,bypassPromptFilters:!0,autoDepth:2,signal:a}),s=new AbortController,new Promise((a,b)=>{let c=setTimeout(()=>{try{s.abort()}catch{}b(Error("judge_timeout"))},3e4);Promise.resolve().then(()=>n(s.signal)).then(b=>{clearTimeout(c),a(b)},a=>{clearTimeout(c),b(a)})})),y=await g(x);if(y?.httpError)return void k?.warn?.("AUTO",`judge HTTP ${y.status} — drop`);let z=function(a){let b;if("string"!=typeof a||!a.trim())return null;let c=a.trim(),d=c.match(/```(?:json)?\s*([\s\S]*?)```/i);d&&(c=d[1].trim());let e=c.indexOf("{"),f=c.lastIndexOf("}");if(e<0||f<=e)return null;try{b=JSON.parse(c.slice(e,f+1))}catch{return null}if(!b||"object"!=typeof b||!0!==b.confident)return null;let g=Number(b.score);return!Number.isFinite(g)||g<0||g>10?null:{score:g,confident:!0}}(y?.text||"");if(!z)return;j(c,u,z.score<=3);let A=(0,f.Uq)(z.score);if(k?.info?.("AUTO",`judge score=${z.score} rating=${A} cluster=${u} req=${t}`),0!==A){let a=await i(t,z.score);a&&0===a.updated&&(await new Promise(a=>setTimeout(a,1500)),await i(t,z.score))}}catch(a){k?.warn?.("AUTO",`judge failed (dropped): ${a?.message||a}`)}},sampleRate:o}}},19978:(a,b,c)=>{c.d(b,{C5:()=>m,Hr:()=>l,PO:()=>h,Y3:()=>k,s1:()=>j,vX:()=>i});let d=new Map,e=null;function f(a=Date.now()){for(let[b,c]of d)c.expiresAt<=a&&d.delete(b);for(;d.size>500;){let a=d.keys().next().value;if(void 0===a)break;d.delete(a)}}function g(){e||(e=setInterval(()=>f(),3e4),e.unref?.())}async function h(a,b,c=15e3){g();let e=d.get(a);if(e&&e.expiresAt>Date.now())return e.value;e&&d.delete(a);let i=await b();return d.set(a,{value:i,expiresAt:Date.now()+c}),f(),i}function i(a){let b=d.get(a);if(b&&b.expiresAt>Date.now())return b.value;b&&d.delete(a)}function j(a,b,c=15e3){g(),d.set(a,{value:b,expiresAt:Date.now()+c}),f()}function k(a){if(!a)return void d.clear();for(let b of d.keys())b.startsWith(a)&&d.delete(b)}function l(a,b){return`stats:${a}:${b}`}function m(a){return`learning:${a}`}},23928:(a,b,c)=>{c.d(b,{A4:()=>A,AF:()=>t,Bk:()=>p,EN:()=>n,Gz:()=>s,Jl:()=>E,Kn:()=>v,LH:()=>B,Mc:()=>r,T6:()=>C,YJ:()=>u,g2:()=>w,gp:()=>z,lg:()=>x,of:()=>D,sN:()=>y,sO:()=>o,vh:()=>f});var d=c(55511);let e="─ How is Switchboard routing?",f=`
|
|
12
12
|
|
|
13
13
|
${e} Reply 1: bad \xb7 2: fine \xb7 3: good (or just ignore this)`,g=global.__feedbackAsk??={byKey:Object.create(null),pending:[]};function h(a,b=""){try{return String(a??b)}catch{return b}}function i(a=Date.now()){let b=Number(a);return Number.isFinite(b)?b:Date.now()}function j(a){return h(a,"anon")||"anon"}function k(a){return h(a,"")||"unknown"}function l(a){g.byKey&&"object"==typeof g.byKey||(g.byKey=Object.create(null));let b=j(a),c=g.byKey[b];if(c&&"object"==typeof c)return c;let d={tokens:3,interactions:0,lastRefillAt:0,ignoredStreak:0,multiplier:1,cooldownUntil:0,asked:Object.create(null)};return g.byKey[b]=d,d}function m(a=Date.now()){Array.isArray(g.pending)||(g.pending=[]);let b=[];for(let c of g.pending){let d=Number(c?.ts);if(Number.isFinite(d)&&d+18e5<a){x(c?.apiKeyHash);continue}b.push(c)}g.pending=b}function n(a){try{let b=null==a||""===a?"anon":h(a,"anon");return(0,d.createHash)("sha256").update(b||"anon").digest("hex")}catch{return(0,d.createHash)("sha256").update("anon").digest("hex")}}function o(a,b){try{let c=h(a,""),e=h(b,"anon");return(0,d.createHash)("sha256").update(`${e}
|
|
14
14
|
${c}`).digest("hex").slice(0,16)}catch{return""}}function p(a,b){try{let c=Array.isArray(a)?a:[],e=null,f=null,g="";for(let a of c)if(a?.role==="user"&&null===e&&(e=q(a.content)),a?.role==="assistant"&&null===f&&(f=q(a.content)),g||(g=function(a){try{if(Array.isArray(a?.tool_calls)){for(let b of a.tool_calls)if("string"==typeof b?.id&&b.id)return b.id}if(Array.isArray(a?.content)){for(let b of a.content)if(b?.type==="tool_use"&&"string"==typeof b?.id&&b.id)return b.id}}catch{}return""}(a)),null!==e&&null!==f&&g)break;let i=h(b,"anon");return(0,d.createHash)("sha256").update(`${i}
|
|
@@ -46,4 +46,4 @@ JSON only:
|
|
|
46
46
|
{"model":"<exact pool id>","cluster":"<one of: ${m.S1.join("|")}>","confidence":"high|low","reason":"<one line>","alternates":["..."]}`}],signals:q}}({comboName:d,pool:c,body:a,objective:r,learning:p,healthByModel:b,maxFewShots:x.maxFewShots??5,signals:H,workerCaps:D}),g=await K({routerBody:{model:t,messages:e,stream:!1,temperature:0,max_tokens:256},routerModel:t,candidates:c,routerTimeoutMs:u,childDepth:v,handleSingleModel:z,log:A,clientAbortSignal:B});if(g.response)return g;O=g.pick,P=g.routerLatencyMs}let R=function({pick:a,tierSplit:b,candidates:c,comboName:d,objective:e,learning:f,estInputTokens:g,log:h,providerBias:i}){if(!a||b?.disabled||"bandit_policy"!==a.reason&&"cached_route"!==a.reason)return null;let j=(b?.frontier||[]).filter(a=>c.includes(a));if(!j.length||!(0,y.EL)(d,a.cluster,e))return null;let k=(0,l.qK)(f?.banditTable?.[a.cluster]||{},e,j,{estInputTokens:g,providerBias:i})||j[0];return k&&k!==a.model?(h?.info?.("AUTO",`judge_flag_escalation → ${k} (cluster=${a.cluster})`),{...a,model:k,reason:"judge_flag_escalation",confidence:"high",alternates:c.filter(a=>a!==k).slice(0,2)}):null}({pick:O,tierSplit:I,candidates:c,comboName:d,objective:r,learning:p,estInputTokens:L,log:A,providerBias:C});R&&(O=R);let S=!1;if(Math.random()<s&&c.length>1){let a=(0,l.Ns)(p?.banditTable||null,O.cluster,c),b=a[Math.floor(Math.random()*a.length)];b!==O.model&&(A?.info?.("AUTO",`exploration → ${b} (ε=${s}, ${a.length}/${c.length} plausible)`),O={...O,model:b,reason:`exploration:${O.reason||""}`,confidence:"low"},S=!0)}return!M||Q||S||"judge_flag_escalation"===O.reason||"high"!==O.confidence||O.parseError||(0,w.s1)(N,{model:O.model,cluster:O.cluster,confidence:O.confidence},6e5),{pick:O,routerLatencyMs:P,exploration:S,signals:H,routerInPool:G,candidates:c,tierSplit:I}}async function K({routerBody:a,routerModel:b,candidates:c,routerTimeoutMs:d,childDepth:e,handleSingleModel:f,log:i,clientAbortSignal:j}){let k,l=0,n=Date.now();try{let g=await function(a,b,c,d=null){let e=S(b),f=new AbortController,g=T(f.signal,d)||f.signal;return new Promise((b,h)=>{if(d?.aborted)return void h(Error("client_aborted"));let i=setTimeout(()=>{try{f.abort()}catch{}h(Error(c||"timeout"))},e);d&&d.addEventListener("abort",()=>{clearTimeout(i);try{f.abort()}catch{}h(Error("client_aborted"))},{once:!0}),Promise.resolve().then(()=>a(g)).then(a=>{clearTimeout(i),b(a)},a=>{clearTimeout(i),h(a)})})}(c=>f(a,b,{sourceFormatOverride:"openai",bypassNativePassthrough:!0,signal:T(c,j),autoDepth:e,bypassPromptFilters:!0}),d,"router_timeout",j);l=Date.now()-n;let h=await (0,s.dO)(g);h.httpError?(i?.warn?.("AUTO",`router HTTP ${h.status}; using pool[0]`),k={model:c[0],cluster:"unknown",confidence:"low",reason:h.httpError,alternates:c.slice(1,3),parseError:h.httpError}):(k=function(a,b){var c,d;let e,f=b[0]||null,g={model:f,cluster:"unknown",confidence:"low",reason:"fallback",alternates:[]};if(!f)return{...g,model:null,parseError:"empty_pool"};if("string"!=typeof a||!a.trim())return{...g,reason:"empty_router_response",parseError:"empty"};let h=a.trim(),i=h.match(/```(?:json)?\s*([\s\S]*?)```/i);i&&(h=i[1].trim());let j=function(a){let b=a.indexOf("{");if(b<0)return null;let c=0,d=!1,e=!1;for(let f=b;f<a.length;f++){let g=a[f];if(d){e?e=!1:"\\"===g?e=!0:'"'===g&&(d=!1);continue}if('"'===g)d=!0;else if("{"===g)c++;else if("}"===g&&0==--c)return a.slice(b,f+1)}return null}(h);j&&(h=j);try{e=JSON.parse(h)}catch{try{let a=h.indexOf("{"),b=h.lastIndexOf("}");a>=0&&b>a&&(e=JSON.parse(h.slice(a,b+1)))}catch{return{...g,reason:"invalid_json",parseError:"json"}}}if(!e||"object"!=typeof e)return{...g,reason:"invalid_shape",parseError:"shape"};let k="string"==typeof e.model?e.model.trim():"";if(k&&!b.includes(k)){let a=p(k,b);a&&(k=a)}if(!b.includes(k)){return{model:f,cluster:(c=e.cluster,(0,m._v)(c)),confidence:"low",reason:q(e.reason)||"model_not_in_pool",alternates:r(e.alternates,b,f),parseError:"not_in_pool"}}let l="high"===e.confidence||"low"===e.confidence?e.confidence:"low";return{model:k,cluster:(d=e.cluster,(0,m._v)(d)),confidence:l,reason:q(e.reason),alternates:r(e.alternates,b,k)}}(h.text,c)).parseError?i?.warn?.("AUTO",`router parse ${k.parseError}; using ${k.model}`):i?.info?.("AUTO",`router → ${k.model} cluster=${k.cluster} conf=${k.confidence} (${l}ms)`)}catch(a){if(l=Date.now()-n,j?.aborted||a?.name==="AbortError"||a?.message==="client_aborted")return{response:(0,g.yj)(h.gx.BAD_REQUEST,"Client disconnected")};i?.warn?.("AUTO",`router failed: ${a.message}; pool[0]`),k={model:c[0],cluster:"unknown",confidence:"low",reason:a.message||"router_error",alternates:c.slice(1,3),parseError:"router_timeout"===a.message?"router_timeout":"error"}}return{pick:k,routerLatencyMs:l}}async function L({body:a,worker:b,pool:c,handleSingleModel:e,log:f,comboName:i,routerModel:j,objective:k,pick:l,routerLatencyMs:m,learningVersionId:n,exploration:o,signals:p,recordEvent:q,alternates:r=[],skippedRouter:t=!1,stats:u=[],autoDepth:v=1,comboDepth:w=0,routerInPool:x=!1,emitHeaders:y=!0,loadClusterP50:z=null,windowDays:A=14,clientAbortSignal:B=null,judgeCtx:C=null,tierSplit:D=null,feedbackCtx:E=null}){let F=l.model,G=await N({loadClusterP50:z,comboName:i,cluster:l.cluster,windowDays:A,stats:u}),H=(0,d.randomUUID)(),{attempts:I,attempted:J,tryWorker:K}=function({body:a,handleSingleModel:b,log:c,autoDepth:d,comboDepth:e=0,clientAbortSignal:f}){let g=new Set,h=[],i=async i=>{if(g.has(i))return null;g.add(i);let j=Date.now(),k=null;if(f?.aborted)return h.push({worker:i,ok:!1,status:499,latencyMs:Date.now()-j,reason:"client_aborted"}),null;try{k=await b(function(a){try{return"function"==typeof structuredClone?structuredClone(a):JSON.parse(JSON.stringify(a))}catch{return{...a}}}(a),i,{autoDepth:d,comboDepth:e,signal:f||void 0})}catch(a){return c?.warn?.("AUTO",`worker ${i} threw: ${a.message}`),h.push({worker:i,ok:!1,status:500,latencyMs:Date.now()-j}),null}let l=Date.now()-j;if(!k?.ok){h.push({worker:i,ok:!1,status:k?.status??500,latencyMs:l});try{await k?.body?.cancel?.()}catch{}return null}let m=await (0,s.wx)(k,c,{abortSignal:f}),n=Date.now()-j;return m.ok?(h.push({worker:i,ok:!0,status:m.result?.status??200,latencyMs:n}),{result:m.result,latencyMs:n,modelStr:i,preInspect:m.preInspect||null,ttfbMs:l,workerStartMs:j}):(c?.warn?.("AUTO",`worker ${i} empty/incomplete response → fallback (${m.reason||"empty"})`),h.push({worker:i,ok:!1,status:502,latencyMs:n,reason:m.reason||"empty_response"}),null)};return{attempts:h,attempted:g,tryWorker:i}}({body:a,handleSingleModel:e,log:f,autoDepth:v,comboDepth:w,clientAbortSignal:B}),Q=await O({worker:b,alternates:r,pool:c,attempted:J,attempts:I,tryWorker:K,tierSplit:D,log:f});return Q?(!t&&I.some(a=>!a.ok)&&P({attempts:I,recordEvent:q,log:f,body:a,comboName:i,signals:p,pick:l,routerModel:j,routerLatencyMs:m,learningVersionId:n,exploration:o,skippedRouter:t,objective:k,routerPickedWorker:F,clusterRefLatency:G,requestId:H,requestFallbackUsed:!0,allFailed:!1}),M({success:Q,attempts:I,requestId:H,routerPickedWorker:F,body:a,comboName:i,signals:p,pick:l,routerModel:j,routerLatencyMs:m,learningVersionId:n,exploration:o,skippedRouter:t,objective:k,recordEvent:q,log:f,routerInPool:x,emitHeaders:y,clusterRefLatency:G,judgeCtx:C,feedbackCtx:E})):(P({attempts:I,recordEvent:q,log:f,body:a,comboName:i,signals:p,pick:l,routerModel:j,routerLatencyMs:m,learningVersionId:n,exploration:o,skippedRouter:t,objective:k,routerPickedWorker:F,clusterRefLatency:G,requestId:H,requestFallbackUsed:I.length>1,allFailed:!0}),(0,g.yj)(h.gx.SERVICE_UNAVAILABLE,`Auto combo "${i}" all workers failed`))}async function M({success:a,attempts:b,requestId:c,routerPickedWorker:d,body:e,comboName:f,signals:g,pick:h,routerModel:i,routerLatencyMs:j,learningVersionId:k,exploration:l,skippedRouter:m,objective:n,recordEvent:o,log:p,routerInPool:q,emitHeaders:r,clusterRefLatency:t,judgeCtx:w=null,feedbackCtx:x=null}){let{result:y,latencyMs:C,modelStr:D,preInspect:E,ttfbMs:F,workerStartMs:G}=a,H=D!==d,I=b.some(a=>!a.ok)||H,J=function({body:a,comboName:b,signals:c,pick:d,routerModel:e,routerLatencyMs:f,learningVersionId:g,exploration:h,skippedRouter:i,objective:j,routerPickedWorker:k,winner:l,result:m,latencyMs:n,requestFallbackUsed:o,clusterRefLatency:p,attempts:q,requestId:r}){return{body:a,comboName:b,signals:c,pick:d,routerModel:e,routerLatencyMs:f,learningVersionId:g,exploration:h,skippedRouter:i,objective:j,routerPickedWorker:k,pickedWorker:l,workerStatus:m.status,workerLatencyMs:n,workerOk:!0,fallbackUsed:!1,retries:0,requestFallbackUsed:o,clusterP50LatencyMs:p,attemptsSnapshot:[...q],requestId:r,terminal:!0}}({body:e,comboName:f,signals:g,pick:h,routerModel:i,routerLatencyMs:j,learningVersionId:k,exploration:l,skippedRouter:m,objective:n,routerPickedWorker:d,winner:D,result:y,latencyMs:C,requestFallbackUsed:I,clusterRefLatency:t,attempts:b,requestId:c});if(m)return r?v(y,{worker:D,cluster:h.cluster,confidence:h.confidence||"high",routerLatencyMs:j,workerLatencyMs:C,skipped:!0}):y;let K=null;if(x&&x.feedbackAsk&&x.openAiWire)try{(0,z.YJ)(x.apiKeyHash);let a=(0,z.AF)({exploration:l,contested:x.contested,coldCell:x.coldCell,escalatedOrRescue:"judge_flag_escalation"===h.reason||I});(0,z.Kn)({apiKeyHash:x.apiKeyHash,conversationFp:x.conversationFp,askValue:a,feedbackAskEnabled:!0,gateOk:x.gateOk})&&(K=z.vh,(0,z.gp)({apiKeyHash:x.apiKeyHash,conversationFp:x.conversationFp,requestId:c}))}catch{}let L=(y.headers?.get?.("content-type")||"").toLowerCase();if((L.includes("text/event-stream")||L.includes("ndjson"))&&y.body){let a=function({response:a,recordEvent:b,log:c,baseEvent:d,ttfbMs:e,workerStartMs:f=null,emitHeaders:g=!0,routerLatencyMs:h=0,routerInPool:i=!1,seedHasCompletion:j=!1,seedTokensIn:k=null,seedTokensOut:l=null,judgeCtx:m=null}){let n=a.body,o="number"==typeof f&&Number.isFinite(f)?f:Date.now()-(e||0);if(!n||"function"!=typeof n.getReader)return u(b,c,{...d,hasCompletion:!!j,tokensIn:k,tokensOut:l,workerLatencyMs:Date.now()-o,routerInPool:i,metaExtra:{streamObserved:!1}}),g?v(a,{worker:d.pickedWorker,requestId:d.requestId,cluster:d.pick?.cluster,confidence:d.pick?.confidence,routerLatencyMs:h,workerLatencyMs:Date.now()-o,exploration:d.exploration}):a;let p=n.getReader(),q=new TextDecoder,r="",t=!!j,w=k??null,x=l??null,y=!1,z=!1,A=a=>{let b=(0,s.Ah)(a);b&&(w=b.prompt_tokens??w,(x=b.completion_tokens??x)>0&&(t=!0)),!t&&(0,s.Ki)(a)&&(t=!0)},B=(a={})=>{if(z)return;z=!0;try{let a=q.decode();a&&A(a)}catch{}let f=Date.now()-o,g=t&&!y;u(b,c,{...d,workerOk:d.workerOk&&g,workerStatus:g?d.workerStatus:502,workerLatencyMs:f,hasCompletion:t,tokensIn:w,tokensOut:x,routerInPool:i,metaExtra:{streamObserved:!0,streamDied:y,ttfbMs:e,...a}}),function(a,b,c,d,e){if(a&&c&&a.shouldSample())try{let c=d()||"";if(!c)return;Promise.resolve(a.runJudge({baseEvent:b,assistantText:c})).catch(a=>e?.warn?.("AUTO",`judge dispatch failed: ${a?.message||a}`))}catch(a){e?.warn?.("AUTO",`judge dispatch failed: ${a?.message||a}`)}}(m,d,g,()=>(0,s.NT)(r),c)},C=new Response(new ReadableStream({async pull(a){try{let{done:b,value:c}=await p.read();if(b){a.close(),B();return}if(c){if(c.byteLength){let a=q.decode(c,{stream:!0});if(r=(r+a).slice(-128e3),t){let b=(0,s.Ah)(a);b&&(w=b.prompt_tokens??w,x=b.completion_tokens??x)}else A(a.length<512?r.slice(-512):a)}a.enqueue(c)}}catch(b){y=!0;try{a.error(b)}catch{}B({streamError:b?.message||String(b)})}},async cancel(a){try{await p.cancel(a)}catch{}if(!t){z=!0,c?.info?.("AUTO",`client disconnected before completion — skip scoring worker=${d.pickedWorker}`);return}B({clientDisconnected:!0})}}),{status:a.status,statusText:a.statusText,headers:a.headers});return g?v(C,{worker:d.pickedWorker,requestId:d.requestId,cluster:d.pick?.cluster,confidence:d.pick?.confidence,routerLatencyMs:h,workerLatencyMs:e,exploration:d.exploration}):C}({response:y,recordEvent:o,log:p,baseEvent:J,ttfbMs:F??C,workerStartMs:G||Date.now()-C,emitHeaders:r,routerLatencyMs:j,routerInPool:q,seedHasCompletion:!!E?.hasCompletion,seedTokensIn:E?.tokensIn??null,seedTokensOut:E?.tokensOut??null,judgeCtx:w});return K&&(a=function(a,b=z.vh){try{if(!a?.body||"function"!=typeof a.body.getReader)return a;let c=a.body.getReader(),d=new TextDecoder,e=new TextEncoder,f="",g=!1,h=!1,i=a=>{a.enqueue(e.encode(`data: ${JSON.stringify({id:"chatcmpl-fbask",object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:"auto",choices:[{index:0,delta:{content:b},finish_reason:null}]})}
|
|
47
47
|
|
|
48
48
|
`)),h=!0},j=(a,b)=>{if("data: [DONE]"!==b.trim()){if(b.startsWith("data: ")&&!h)try{let c=JSON.parse(b.slice(6));c?.choices?.[0]?.finish_reason!=null&&i(a)}catch{}a.enqueue(e.encode(`${b}
|
|
49
|
-
`))}},k=a=>{let b=f.indexOf("\n");for(;b>=0;){let c=f.slice(0,b);f=f.slice(b+1),j(a,c),b=f.indexOf("\n")}},l=new ReadableStream({async pull(a){if(!g)try{let{done:b,value:l}=await c.read();if(b)return void(a=>{if(!g){g=!0;try{f+=d.decode(),k(a),f&&(j(a,f),f=""),h||i(a),a.enqueue(e.encode("data: [DONE]\n\n"))}catch{}try{a.close()}catch{}}})(a);l&&(f+=d.decode(l,{stream:!0}),k(a))}catch{g=!0;try{a.close()}catch{}}},async cancel(a){g=!0;try{await c.cancel(a)}catch{}}});return new Response(l,{status:a.status,statusText:a.statusText,headers:A(a.headers)})}catch{return a}}(a,K)),a}let{tokensIn:N,tokensOut:O,hasCompletion:P}=await Q({result:y,preInspect:E}),R=w&&P&&w.shouldSample()?function(a){try{return a?.clone?.()||null}catch{return null}}(y):null,S=u(o,p,{...J,hasCompletion:P,tokensIn:N,tokensOut:O,routerInPool:q});R&&function(a,b,c,d){if(a&&c)try{Promise.resolve().then(async()=>{let d=await (0,s.dO)(c),e=d?.text||"";e&&await a.runJudge({baseEvent:b,assistantText:e})}).catch(a=>d?.warn?.("AUTO",`judge dispatch failed: ${a?.message||a}`))}catch(a){d?.warn?.("AUTO",`judge dispatch failed: ${a?.message||a}`)}}(w,J,R,p);let T=r?v(y,{worker:D,requestId:c,cluster:h.cluster,confidence:h.confidence,score:S,routerLatencyMs:j,workerLatencyMs:C,exploration:J.exploration}):y;return K&&(T=await B(T,K)),T}async function N({loadClusterP50:a,comboName:b,cluster:c,windowDays:d,stats:e}){let f=null;if("function"==typeof a&&c)try{f=await a(b,c,d)}catch{f=null}return null==f&&(f=function(a,b){let c=(a||[]).filter(a=>a.cluster===b&&null!=a.avgLatencyMs&&Number(a.n)>0);if(!c.length)return null;let d=0,e=0;for(let a of c){let b=Number(a.n)||0;d+=b,e+=(Number(a.avgLatencyMs)||0)*b}return d?e/d:null}(e,c)),f}async function O({worker:a,alternates:b,pool:c,attempted:d,attempts:e=[],tryWorker:f,tierSplit:g=null,log:h}){let i=await f(a),j=[...e].reverse().find(b=>b.worker===a&&!b.ok)?.status,k=function(a,b,c=null){if(!a||a.disabled)return!1;let d=new Set(a.cheap||[]),e=a.frontier||[];return!!d.has(b)&&0!==e.length&&(null==c||408===c||429===c||c>=500&&c<=599)}(g,a,j);if(!i&&!k&&Array.isArray(b)){for(let a of b)if(!(!a||d.has(a))&&c.includes(a)&&(h?.info?.("AUTO",`worker failed → alternate ${a}`),i=await f(a)))break}if(!i&&c.length>1){var l,m,n,o;let b,e,j;for(let p of k?(l=c,m=g,n=a,o=h,b=new Set(m.frontier||[]),e=l.filter(a=>b.has(a)),j=l.filter(a=>!b.has(a)),o?.info?.("AUTO",`escalation: cheap ${n} failed → frontier-first fallback`),[...e,...j]):c)if(!d.has(p)&&(h?.info?.("AUTO",`fallback chain → ${p}`),i=await f(p)))break}return i}function P({attempts:a,recordEvent:b,log:c,body:d,comboName:e,signals:f,pick:g,routerModel:h,routerLatencyMs:i,learningVersionId:j,exploration:k,skippedRouter:l,objective:m,routerPickedWorker:n,clusterRefLatency:o,requestId:p,requestFallbackUsed:q,allFailed:r}){a.length&&function({attempts:a,recordEvent:b,log:c,body:d,comboName:e,signals:f,pick:g,routerModel:h,routerLatencyMs:i,learningVersionId:j,exploration:k,skippedRouter:l,objective:m,routerPickedWorker:n,clusterRefLatency:o,requestId:p,requestFallbackUsed:q,allFailed:r}){let s=(a||[]).filter(a=>!a.ok);s.forEach((t,v)=>{let w=v===s.length-1;u(b,c,{body:d,comboName:e,signals:f,pick:g,routerModel:h,routerLatencyMs:i,learningVersionId:j,exploration:k,skippedRouter:l,objective:m,routerPickedWorker:n,pickedWorker:t.worker,workerStatus:t.status,workerLatencyMs:t.latencyMs,workerOk:!1,fallbackUsed:s.length>1&&v>0,retries:v,hasCompletion:!1,tokensIn:null,tokensOut:null,clusterP50LatencyMs:o,attemptsSnapshot:a,requestFallbackUsed:!!q||s.length>1,requestId:p,terminal:!!r&&w})})}({attempts:a,recordEvent:b,log:c,body:d,comboName:e,signals:f,pick:g,routerModel:h,routerLatencyMs:i,learningVersionId:j,exploration:k,skippedRouter:l,objective:m,routerPickedWorker:n,clusterRefLatency:o,requestId:p,requestFallbackUsed:q,allFailed:r})}async function Q({result:a,preInspect:b}){let c=b?.tokensIn??null,d=b?.tokensOut??null,e=!!b?.hasCompletion;if(null==b){e=!1;try{let b=await a.clone().json(),f=(0,s.f5)(b);f&&(c=f.prompt_tokens??null,d=f.completion_tokens??null),e=(0,s.R5)(b)||"number"==typeof d&&d>0}catch{e=!1}}return{tokensIn:c,tokensOut:d,hasCompletion:e}}function R(a,b,c={}){let d=c?.[a],e=d&&"object"==typeof d&&Object.keys(d).length>0?d:(()=>{let[b,...c]=a.split("/"),d=c.join("/")||b;return(0,f.nl)(b,d)||{}})();return b.every(a=>"vision"===a?!!e.vision:"pdf"!==a||!!e.pdf)}function S(a){let b=Number(a);return!Number.isFinite(b)||b<=0?15e3:Math.min(b,12e4)}function T(...a){let b=a.filter(a=>a&&"object"==typeof a);if(!b.length)return;if(1===b.length)return b[0];let c=new AbortController,d=()=>{try{c.abort()}catch{}};for(let a of b){if(a.aborted){d();break}a.addEventListener("abort",d,{once:!0})}return c.signal}},81294:(a,b,c)=>{c.d(b,{f:()=>n});var d=c(2142),e=c(1996),f=c(61522),g=c(15083);let h=global.__feedbackRelearn??={counts:Object.create(null)};var i=c(19291),j=c(
|
|
49
|
+
`))}},k=a=>{let b=f.indexOf("\n");for(;b>=0;){let c=f.slice(0,b);f=f.slice(b+1),j(a,c),b=f.indexOf("\n")}},l=new ReadableStream({async pull(a){if(!g)try{let{done:b,value:l}=await c.read();if(b)return void(a=>{if(!g){g=!0;try{f+=d.decode(),k(a),f&&(j(a,f),f=""),h||i(a),a.enqueue(e.encode("data: [DONE]\n\n"))}catch{}try{a.close()}catch{}}})(a);l&&(f+=d.decode(l,{stream:!0}),k(a))}catch{g=!0;try{a.close()}catch{}}},async cancel(a){g=!0;try{await c.cancel(a)}catch{}}});return new Response(l,{status:a.status,statusText:a.statusText,headers:A(a.headers)})}catch{return a}}(a,K)),a}let{tokensIn:N,tokensOut:O,hasCompletion:P}=await Q({result:y,preInspect:E}),R=w&&P&&w.shouldSample()?function(a){try{return a?.clone?.()||null}catch{return null}}(y):null,S=u(o,p,{...J,hasCompletion:P,tokensIn:N,tokensOut:O,routerInPool:q});R&&function(a,b,c,d){if(a&&c)try{Promise.resolve().then(async()=>{let d=await (0,s.dO)(c),e=d?.text||"";e&&await a.runJudge({baseEvent:b,assistantText:e})}).catch(a=>d?.warn?.("AUTO",`judge dispatch failed: ${a?.message||a}`))}catch(a){d?.warn?.("AUTO",`judge dispatch failed: ${a?.message||a}`)}}(w,J,R,p);let T=r?v(y,{worker:D,requestId:c,cluster:h.cluster,confidence:h.confidence,score:S,routerLatencyMs:j,workerLatencyMs:C,exploration:J.exploration}):y;return K&&(T=await B(T,K)),T}async function N({loadClusterP50:a,comboName:b,cluster:c,windowDays:d,stats:e}){let f=null;if("function"==typeof a&&c)try{f=await a(b,c,d)}catch{f=null}return null==f&&(f=function(a,b){let c=(a||[]).filter(a=>a.cluster===b&&null!=a.avgLatencyMs&&Number(a.n)>0);if(!c.length)return null;let d=0,e=0;for(let a of c){let b=Number(a.n)||0;d+=b,e+=(Number(a.avgLatencyMs)||0)*b}return d?e/d:null}(e,c)),f}async function O({worker:a,alternates:b,pool:c,attempted:d,attempts:e=[],tryWorker:f,tierSplit:g=null,log:h}){let i=await f(a),j=[...e].reverse().find(b=>b.worker===a&&!b.ok)?.status,k=function(a,b,c=null){if(!a||a.disabled)return!1;let d=new Set(a.cheap||[]),e=a.frontier||[];return!!d.has(b)&&0!==e.length&&(null==c||408===c||429===c||c>=500&&c<=599)}(g,a,j);if(!i&&!k&&Array.isArray(b)){for(let a of b)if(!(!a||d.has(a))&&c.includes(a)&&(h?.info?.("AUTO",`worker failed → alternate ${a}`),i=await f(a)))break}if(!i&&c.length>1){var l,m,n,o;let b,e,j;for(let p of k?(l=c,m=g,n=a,o=h,b=new Set(m.frontier||[]),e=l.filter(a=>b.has(a)),j=l.filter(a=>!b.has(a)),o?.info?.("AUTO",`escalation: cheap ${n} failed → frontier-first fallback`),[...e,...j]):c)if(!d.has(p)&&(h?.info?.("AUTO",`fallback chain → ${p}`),i=await f(p)))break}return i}function P({attempts:a,recordEvent:b,log:c,body:d,comboName:e,signals:f,pick:g,routerModel:h,routerLatencyMs:i,learningVersionId:j,exploration:k,skippedRouter:l,objective:m,routerPickedWorker:n,clusterRefLatency:o,requestId:p,requestFallbackUsed:q,allFailed:r}){a.length&&function({attempts:a,recordEvent:b,log:c,body:d,comboName:e,signals:f,pick:g,routerModel:h,routerLatencyMs:i,learningVersionId:j,exploration:k,skippedRouter:l,objective:m,routerPickedWorker:n,clusterRefLatency:o,requestId:p,requestFallbackUsed:q,allFailed:r}){let s=(a||[]).filter(a=>!a.ok);s.forEach((t,v)=>{let w=v===s.length-1;u(b,c,{body:d,comboName:e,signals:f,pick:g,routerModel:h,routerLatencyMs:i,learningVersionId:j,exploration:k,skippedRouter:l,objective:m,routerPickedWorker:n,pickedWorker:t.worker,workerStatus:t.status,workerLatencyMs:t.latencyMs,workerOk:!1,fallbackUsed:s.length>1&&v>0,retries:v,hasCompletion:!1,tokensIn:null,tokensOut:null,clusterP50LatencyMs:o,attemptsSnapshot:a,requestFallbackUsed:!!q||s.length>1,requestId:p,terminal:!!r&&w})})}({attempts:a,recordEvent:b,log:c,body:d,comboName:e,signals:f,pick:g,routerModel:h,routerLatencyMs:i,learningVersionId:j,exploration:k,skippedRouter:l,objective:m,routerPickedWorker:n,clusterRefLatency:o,requestId:p,requestFallbackUsed:q,allFailed:r})}async function Q({result:a,preInspect:b}){let c=b?.tokensIn??null,d=b?.tokensOut??null,e=!!b?.hasCompletion;if(null==b){e=!1;try{let b=await a.clone().json(),f=(0,s.f5)(b);f&&(c=f.prompt_tokens??null,d=f.completion_tokens??null),e=(0,s.R5)(b)||"number"==typeof d&&d>0}catch{e=!1}}return{tokensIn:c,tokensOut:d,hasCompletion:e}}function R(a,b,c={}){let d=c?.[a],e=d&&"object"==typeof d&&Object.keys(d).length>0?d:(()=>{let[b,...c]=a.split("/"),d=c.join("/")||b;return(0,f.nl)(b,d)||{}})();return b.every(a=>"vision"===a?!!e.vision:"pdf"!==a||!!e.pdf)}function S(a){let b=Number(a);return!Number.isFinite(b)||b<=0?15e3:Math.min(b,12e4)}function T(...a){let b=a.filter(a=>a&&"object"==typeof a);if(!b.length)return;if(1===b.length)return b[0];let c=new AbortController,d=()=>{try{c.abort()}catch{}};for(let a of b){if(a.aborted){d();break}a.addEventListener("abort",d,{once:!0})}return c.signal}},81294:(a,b,c)=>{c.d(b,{f:()=>n});var d=c(2142),e=c(1996),f=c(61522),g=c(15083);let h=global.__feedbackRelearn??={counts:Object.create(null)};var i=c(19291),j=c(59353),k=c(38775);let l=Object.create(null);async function m(a){delete l[a];try{let b=await (0,j.mt)(),c=b?.comboStrategies?.[a]||{};if("auto"!==c.fallbackStrategy||c.freezeLearning||!1===c.learningEnabled||!c.routerModel)return;let d=null;try{d=(await (0,k.getComboModels)(a)||[]).filter(a=>a&&a!==c.routerModel)}catch{d=null}await (0,i.P3)(a,{force:!1,source:"feedback",minEvents:c.autoTuning?.minEventsBeforeLearn??50,windowDays:c.learningWindowDays??14,maxFewShots:c.autoTuning?.maxFewShots??5,objective:c.objective||"balanced",pool:d,log:{info:(a,b)=>console.log(`[${a}] ${b}`),warn:(a,b)=>console.warn(`[${a}] ${b}`)}})}catch(a){console.warn("[ROUTING_LEARN] feedback relearn failed:",a?.message||a)}}async function n(a,b){try{if(!a||null==b)return;let c=await (0,d.Oe)(a);if(!c?.comboName||!c?.cluster||!c?.pickedWorker)return;(0,e.QA)(c.comboName,c.cluster,c.pickedWorker,b),0>Number(b)&&((0,f.a8)(c.comboName),(0,g.C6)(c.comboName,c.cluster)),function(a){try{if(!a||!function(a,b=3){return!!a&&(h.counts[a]=(h.counts[a]||0)+1,h.counts[a]>=b&&(h.counts[a]=0,!0))}(a))return;l[a]&&clearTimeout(l[a]),l[a]=setTimeout(()=>m(a),6e4),"function"==typeof l[a].unref&&l[a].unref()}catch{}}(c.comboName)}catch{}}}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
exports.id=1792,exports.ids=[1792],exports.modules={6547:(a,b,c)=>{"use strict";c.d(b,{$3:()=>q,$R:()=>i,Dm:()=>s,E$:()=>k,Zb:()=>h,jI:()=>j,ti:()=>n});var d=c(92675),e=c(70628),f=c(48161),g=c(13247);let h=["Accept","Authorization","Content-Type","User-Agent","X-Claude-Code-Session-Id","X-Stainless-Arch","X-Stainless-Lang","X-Stainless-OS","X-Stainless-Package-Version","X-Stainless-Retry-Count","X-Stainless-Runtime","X-Stainless-Runtime-Version","X-Stainless-Timeout","anthropic-beta","anthropic-dangerous-direct-browser-access","anthropic-version","x-app","x-client-request-id","Connection","Host","Accept-Encoding","Content-Length"],i=h.filter(a=>"X-Stainless-Timeout"!==a),j={"claude-cli":{id:"claude-cli",tls:"claude-code",alpn:["http/1.1"],headerOrder:h,source:{npm:"@anthropic-ai/claude-code",capture:"claude-code-native",tlsSpec:"claude-code"},headers:function(a){let b=a?.version||"2.1.289",c=a?.entrypoint||"cli";return{"Anthropic-Version":d.b8,"Anthropic-Beta":a?.betas||"claude-code-20250219,interleaved-thinking-2025-05-14,redact-thinking-2026-02-12,thinking-token-count-2026-05-13,context-management-2025-06-27,prompt-caching-scope-2026-01-05,mid-conversation-system-2026-04-07,effort-2025-11-24,structured-outputs-2025-12-15","Anthropic-Dangerous-Direct-Browser-Access":"true","User-Agent":a?.userAgent||`claude-cli/${b} (external, ${c})`,"X-App":"cli","X-Stainless-Runtime-Version":a?.runtimeVersion||process.version,"X-Stainless-Package-Version":a?.packageVersion||"0.128.0","X-Stainless-Runtime":"node","X-Stainless-Lang":"js","X-Stainless-Arch":a?.arch||(0,e.Tc)(),"X-Stainless-Os":a?.os||(0,e.vv)(),"X-Stainless-Timeout":"600"}}},"codex-cli":{id:"codex-cli",tls:"chrome",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","originator","session_id","User-Agent","version","chatgpt-account-id"],source:{npm:"@openai/codex"},headers:function(a){let b=a?.version||"0.149.0";return{originator:"codex_cli_rs","User-Agent":`codex_cli_rs/${b}`,version:b}}},"gemini-cli":{id:"gemini-cli",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Content-Type","Authorization","User-Agent","X-Goog-Api-Client","Accept"],source:{npm:"@google/gemini-cli"},headers:function(a){let b=a?.version||"0.56.0",c=a?.upstreamModel||"unknown",d="ia32"===(0,e.LY)()?"x86":(0,e.LY)(),f="u">typeof process&&process.version?process.version.replace(/^v/,""):"unknown";return{"User-Agent":`GeminiCLI/${b}/${c} (${(0,e.ol)()}; ${d}; terminal)`,"X-Goog-Api-Client":a?.apiClient||`google-genai-sdk/1.41.0 gl-node/v${f}`}}},"openai-node":{id:"openai-node",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","User-Agent"],source:{npm:"openai"},headers:function(){return{"User-Agent":`OpenAI/NodeJS/${process.version.replace(/^v/,"")}`}}},cline:{id:"cline",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","HTTP-Referer","X-Title","User-Agent","X-PLATFORM","X-PLATFORM-VERSION","X-CLIENT-TYPE","X-CLIENT-VERSION","X-CORE-VERSION","X-IS-MULTIROOT"],source:{npm:"cline"},headers:function(a){let b=a?.version||"3.0.0";return{"HTTP-Referer":"https://cline.bot","X-Title":"Cline","User-Agent":`Cline/${b}`,"X-PLATFORM":(0,e.ol)()||"unknown","X-PLATFORM-VERSION":a?.platformVersion||(0,f.release)()||"unknown","X-CLIENT-TYPE":"extension","X-CLIENT-VERSION":b,"X-CORE-VERSION":b,"X-IS-MULTIROOT":"false"}}},chrome:{id:"chrome",tls:"chrome",alpn:["h2","http/1.1"],headerOrder:["User-Agent","Accept","Accept-Language","Accept-Encoding"],source:{capture:"chrome"},headers:function(a){let b,c=a?.chromeVersion||"136";return{"User-Agent":`Mozilla/5.0 (${"darwin"===(b=(0,e.ol)())?"Macintosh; Intel Mac OS X 10_15_7":"win32"===b?"Windows NT 10.0; Win64; x64":"X11; Linux x86_64"}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/${c}.0.0.0 Safari/537.36`}}},cursor:{id:"cursor",tls:"node",alpn:["h2","http/1.1"],headerOrder:[],source:{capture:"cursor"},headers:()=>({})},antigravity:{id:"antigravity",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","User-Agent","Accept"],source:{capture:"antigravity"},headers:function(a){let b=a?.version||"2.9.1";return{"User-Agent":`antigravity/${b} ${(0,e.ol)()}/${(0,e.LY)()}`}}},copilot:{id:"copilot",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","copilot-integration-id","editor-version","editor-plugin-version","user-agent","openai-intent","x-github-api-version"],source:{capture:"github-copilot"},headers:function(a){let b=a?.vscodeVersion||"1.110.0",c=a?.chatVersion||a?.version||"0.38.0";return{"copilot-integration-id":"vscode-chat","editor-version":`vscode/${b}`,"editor-plugin-version":`copilot-chat/${c}`,"user-agent":`GitHubCopilotChat/${c}`,"openai-intent":"conversation-panel","x-github-api-version":a?.apiVersion||"2025-04-01","x-vscode-user-agent-library-version":"electron-fetch","X-Initiator":"user"}}},qwen:{id:"qwen",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","User-Agent","X-Stainless-Arch","X-Stainless-Os"],source:{capture:"qwen-code"},headers:function(a){let{os:b,arch:c,stainlessOs:d,stainlessArch:f}=a?.qwenOsArch||{os:"win32"===(0,e.ol)()?"windows":"darwin"===(0,e.ol)()?"darwin":"linux",arch:"arm64"===(0,e.LY)()?"arm64":"x64",stainlessOs:(0,e.vv)(),stainlessArch:(0,e.Tc)()},g=a?.version||"0.12.3",h=`QwenCode/${g} (${b}; ${c})`;return{"User-Agent":h,"X-DashScope-UserAgent":h,"X-Stainless-Arch":f,"X-Stainless-Os":d,"X-Stainless-Lang":"js","X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":a?.runtimeVersion||process.version,"X-Stainless-Package-Version":a?.packageVersion||"5.11.0"}}},kimi:{id:"kimi",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","X-Msh-Version","X-Msh-Device-Model"],source:{capture:"kimi-code"},headers:function(){return{"X-Msh-Version":"2.1.2","X-Msh-Device-Model":`${(0,e.ol)()} ${(0,e.LY)()}`}}},"grok-cli":{id:"grok-cli",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","User-Agent"],source:{capture:"grok-cli"},headers:function(a){return{"User-Agent":`grok-cli/${a?.version||"1.0.0"}`}}},"grok-build":{id:"grok-build",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","Accept","User-Agent","x-grok-client-identifier","x-grok-client-version"],source:{capture:"@xai-official/grok 0.2.99"},headers:function(){let a;return{"User-Agent":`grok-shell/${g.uG} (${(0,e.ol)()||"linux"}; ${"x64"===(a=(0,e.LY)())?"x86_64":"arm64"===a?"aarch64":"ia32"===a?"x86":a||"x86_64"})`,"x-grok-client-identifier":g.rK,"x-grok-client-version":g.uG}}},"muse-code":{id:"muse-code",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","User-Agent","Accept"],source:{capture:"muse-code"},headers:a=>({"User-Agent":`muse-code/${a?.version||"1.0.2"}`})}};function k(a){return j[a]||j["openai-node"]}let l=new Set(["openai","openai-responses","openai-compat"]),m=new Set(["claude"]);function n(a,b={}){if("string"==typeof a&&a)return a;if(a&&"object"==typeof a&&a.profile)return a.profile;let c=b.format||"",d=b.provider||"";return"claude"===c||m.has(c)||"claude"===d||d.startsWith("anthropic-compatible")?"claude-cli":"codex"===d?"codex-cli":"gemini-cli"===d?"gemini-cli":"antigravity"===d?"antigravity":"github"===d?"copilot":"qwen"===d?"qwen":"cline"===d||"clinepass"===d?"cline":"kimi"===d||"kimi-coding"===d?"kimi":"xai"===d?"grok-cli":"grok-cli"===d?"grok-build":"grok-web"===d?"chrome":"cursor"===d||"cursor"===c?"cursor":"muse"===d||"meta"===d?"muse-code":(l.has(c),"openai-node")}let o=new Set(["user-agent","anthropic-beta","x-stainless-package-version","x-stainless-runtime-version","x-stainless-os","x-stainless-arch"]),p=new Set(["x-stainless-helper-method","x-stainless-retry-count"]);function q(a,b,c={}){var d;let e,f=k(b),g=(d=c.snapshot,"function"==typeof(e=k(b)).headers?e.headers(d):{...e.headers||{}});!0===c.stream&&"claude-cli"===b?g["X-Stainless-Helper-Method"]="stream":"claude-cli"===b&&delete g["X-Stainless-Helper-Method"],"number"==typeof c.retryCount&&"claude-cli"===b&&(g["X-Stainless-Retry-Count"]=String(c.retryCount));let h=new Map;for(let[b,c]of Object.entries(a||{})){let a=b.toLowerCase();("authorization"===a||"x-api-key"===a||"api-key"===a)&&h.set(a,[b,c])}let i=!0===c.preserveUserAgent&&"claude-cli"!==b&&Object.entries(a||{}).find(([a])=>"user-agent"===a.toLowerCase())||null,j=r(a,g),l=c.overlay&&"object"==typeof c.overlay?"claude-cli"===b?function(a,b){let c,d,e={...a||{}},f=0!==(d=Object.values(c=Object.fromEntries([...o].map(a=>{let b;return[a,(b=Object.keys(e||{}).find(b=>b.toLowerCase()===a))?e[b]:void 0]}))).filter(a=>null!=a).length)&&d===o.size&&String(c["user-agent"]).match(/claude-(?:cli|code)\/(\d+\.\d+\.\d+)/i)?.[1]===b?.version;for(let a of Object.keys(e)){let b=a.toLowerCase();(p.has(b)||!f&&o.has(b))&&delete e[a]}return e}(c.overlay,c.snapshot):{...c.overlay}:{};for(let a of Object.keys(l))h.has(a.toLowerCase())&&delete l[a];let m=r(j,l);if(i&&!Object.keys(l).some(a=>"user-agent"===a.toLowerCase())){for(let a of Object.keys(m))"user-agent"===a.toLowerCase()&&delete m[a];m[i[0]]=i[1]}if("claude-cli"===b){if(!0===c.stream)m["X-Stainless-Helper-Method"]="stream";else for(let a of Object.keys(m))"x-stainless-helper-method"===a.toLowerCase()&&delete m[a];if("number"==typeof c.retryCount){for(let a of Object.keys(m))"x-stainless-retry-count"===a.toLowerCase()&&delete m[a];m["X-Stainless-Retry-Count"]=String(c.retryCount)}}for(let[a,[b,c]]of h){for(let b of Object.keys(m))b.toLowerCase()===a&&delete m[b];m[b]=c}return f?.headerOrder?s(m,f.headerOrder):m}function r(...a){let b={};for(let c of a)for(let[a,d]of Object.entries(c||{})){let c=Object.keys(b).find(b=>b.toLowerCase()===a.toLowerCase());c&&delete b[c],b[a]=d}return b}function s(a,b){if(!b||!b.length)return{...a};let c=new Set,d={},e=new Map;for(let[b,c]of Object.entries(a))e.set(b.toLowerCase(),[b,c]);for(let a of b){let b=e.get(a.toLowerCase());b&&(d[b[0]]=b[1],c.add(a.toLowerCase()))}for(let[b,e]of Object.entries(a))c.has(b.toLowerCase())||(d[b]=e);return d}},35570:(a,b,c)=>{"use strict";c.d(b,{I2:()=>C,Iq:()=>D,Kn:()=>v,dV:()=>w,zi:()=>x});var d=c(73024),e=c(76760),f=c(77598),g=c(6547),h=c(70628);let i=["claude-cli","codex-cli","gemini-cli"],j=new Map,k=new Map,l=new Set,m=null;function n(){let a=process.env.DATA_DIR||e.join(process.env.HOME||process.env.USERPROFILE||".",".switchboard");return e.join(a,"identity")}function o(a){return e.join(n(),`${a}.json`)}let p=function(){try{return JSON.parse(d.readFileSync(e.join(process.cwd(),"open-sse","identity","snapshots","versions.json"),"utf8"))}catch{try{return JSON.parse(d.readFileSync(new c.U(c(94552)),"utf8"))}catch{return{}}}}();function q(a){let b=p[a],c=b?.version;if(!c)return null;if("claude-cli"!==a)return{version:c,latestVersion:b.latestVersion};let d=b.tlsSpecRev||c;return{version:c,billingVersion:c,tlsSpecRev:d,latestVersion:b.latestVersion,capturedAt:b.capturedAt,entrypoint:b.entrypoint||"cli",userAgent:`claude-cli/${c} (external, ${b.entrypoint||"cli"})`,packageVersion:b.packageVersion||"0.128.0",runtimeVersion:b.runtimeVersion||"v26.3.0",betas:b.betas||"claude-code-20250219,interleaved-thinking-2025-05-14,redact-thinking-2026-02-12,thinking-token-count-2026-05-13,context-management-2025-06-27,prompt-caching-scope-2026-01-05,mid-conversation-system-2026-04-07,effort-2025-11-24,structured-outputs-2025-12-15"}}function r(a){let b=String(a||"").split(".").map(Number);return 3===b.length&&b.every(Number.isInteger)?b:null}function s(a){let b=String(a?.tlsSpecRev||"").match(/(\d+\.\d+\.\d+)/);return b?.[1]||null}function t(a,b){let c=r(a),d=r(b);if(!c||!d)return 0;for(let a=0;a<3;a++)if(c[a]!==d[a])return c[a]-d[a];return 0}function u(a){return!!(a?.version&&a?.billingVersion===a.version&&s(a)===a.version&&a.version===(z(p["claude-cli"]?.tlsSpecRev)||p["claude-cli"]?.version||null)&&a?.userAgent?.includes(`claude-cli/${a.version}`)&&a?.packageVersion&&a?.runtimeVersion&&a?.betas)}function v(a){return{version:a?.version||null,billingVersion:a?.billingVersion||null,tlsVersion:s(a),userAgentVersion:z(a?.userAgent)}}function w(a){if(j.has(a))return j.get(a);let b=null;try{b=JSON.parse(d.readFileSync(o(a),"utf8"))}catch{b=q(a)}return"claude-cli"!==a||u(b)||(b=q(a)),b&&j.set(a,b),b}function x(a){let b=w(a);return"claude-cli"!==a||u(b)?b:q(a)}function y(a,b){if(b&&"object"==typeof b){j.set(a,b);try{d.mkdirSync(n(),{recursive:!0}),d.writeFileSync(o(a),JSON.stringify(b,null,2))}catch{}}}function z(a){if("string"!=typeof a)return null;let b=a.match(/claude-cli\/(\d+\.\d+\.\d+)/i)||a.match(/codex_cli_rs\/(\d+\.\d+\.\d+)/i)||a.match(/GeminiCLI\/(\d+\.\d+\.\d+)/i)||a.match(/Cline\/(\d+\.\d+\.\d+)/i)||a.match(/antigravity\/(\d+\.\d+\.\d+)/i)||a.match(/QwenCode\/(\d+\.\d+\.\d+)/i)||a.match(/GitHubCopilotChat\/(\d+\.\d+\.\d+)/i);return b?b[1]:null}let A={"claude-cli":/claude-(?:cli|code)\//i,"codex-cli":/codex_cli_rs\//i,"gemini-cli":/GeminiCLI\//i,cline:/Cline\//i,antigravity:/antigravity\//i,qwen:/QwenCode\//i,copilot:/GitHubCopilotChat\//i};function B(a,b){let c=A[a];return!(c&&b?.userAgent)||c.test(b.userAgent)}function C(a,b){let c=function(a){let b={};if(!a)return b;for(let[c,d]of Object.entries(a))b[c.toLowerCase()]=d;return b}(b),d=c["user-agent"],e=z(d);if(!d||!e||!B(a,{userAgent:d}))return!1;if("claude-cli"===a){let b=c["x-stainless-package-version"],f=c["x-stainless-runtime-version"],g=c["anthropic-beta"];if(!b||!f||!g)return!1;let h=x(a)||{},i=s(h);return i&&e!==i?(E(a,`harvest ${e} does not match TLS capture ${h.tlsSpecRev}`),!1):(y(a,{...h,version:e,billingVersion:e,userAgent:d,packageVersion:b,runtimeVersion:f,betas:g,os:h.os||c["x-stainless-os"],arch:h.arch||c["x-stainless-arch"],entrypoint:/\(external,\s*([^)]+)\)/.exec(d)?.[1]||"cli",harvestedAt:Date.now()}),!0)}if("copilot"===a){let b=String(c["editor-plugin-version"]||"").match(/copilot-chat\/(\d+\.\d+\.\d+)/i)?.[1],f=String(c["editor-version"]||"").match(/vscode\/(\d+\.\d+\.\d+)/i)?.[1],g=c["x-github-api-version"];return!!b&&b===e&&!!f&&!!g&&(y(a,{...w(a),version:e,chatVersion:b,vscodeVersion:f,apiVersion:g,userAgent:d,harvestedAt:Date.now()}),!0)}return y(a,{...w(a),version:e,userAgent:d,harvestedAt:Date.now()}),!0}function D(a){let b=a||"anonymous";if(k.has(b))return k.get(b);let c=(0,f.createHash)("sha256").update(`device:${b}`).digest("hex"),d={buildHash:c.slice(0,3),deviceId:c,accountUuid:`${c.slice(0,8)}-${c.slice(8,12)}-4${c.slice(13,16)}-a${c.slice(17,20)}-${c.slice(20,32)}`,os:(0,h.vv)(),arch:(0,h.Tc)()};return k.set(b,d),d}function E(a,b){l.has(a)||(l.add(a),console.warn(`[IDENTITY_STALE] ${a}: ${b}`))}async function F(a,b){let c=g.jI[a]?.source?.npm;if(!c)return null;let d=await b(`https://registry.npmjs.org/${encodeURIComponent(c)}/latest`,{headers:{Accept:"application/json"}});if(!d.ok)return null;let e=await d.json();return r(e?.version)?e.version:null}async function G(a=globalThis.fetch){"function"==typeof a&&await Promise.all(i.map(async b=>{try{let c=await F(b,a);if(!c)return;let d=x(b)||q(b)||{};if("claude-cli"===b){t(c,d.version)>0&&(y(b,{...d,latestVersion:c,checkedAt:Date.now()}),E(b,`npm ${c} is ahead of captured tuple ${d.version}`));return}if(!B(b,d)||t(d.version,c)>0)E(b,`stored snapshot ${d.version} cannot belong to ${b}; reset to npm ${c}`),d=q(b)||{};else if(0>=t(c,d.version))return;let e="codex-cli"===b?`codex_cli_rs/${c}`:d.userAgent;y(b,{...d,version:c,...e?{userAgent:e}:{},checkedAt:Date.now()})}catch{}}))}function H(){let a=Date.now();for(let b of Object.keys(g.jI)){let c=x(b)||q(b),d=c?.capturedAt;if(!d)continue;let e=a-new Date(d).getTime();if(Number.isFinite(e)&&e>2592e6){let a=Math.floor(e/864e5);E(b,`snapshot is ${a}d old; run npm run identity:refresh`)}}}"1"!==process.env.SWITCHBOARD_DISABLE_IDENTITY_POLL&&queueMicrotask(()=>(function(a=globalThis.fetch){return m||"function"!=typeof a||(G(a),H(),m=setInterval(()=>{G(a),H()},216e5),m.unref?.()),m})())},39211:(a,b,c)=>{"use strict";c.d(b,{AU:()=>p,Aw:()=>q,fX:()=>s});let d=/switchboard/i,e=/Switchboard\//i,f="https://github.com/Vijay-Duke/switchboard-router",g=new Set(["authorization","x-api-key","api-key","cookie"]);function h(a){return g.has(String(a).toLowerCase())}function i(a){let b={};for(let[c,g]of a?a instanceof Headers?[...a.entries()]:Object.entries(a):[])null!=g&&!function(a,b){let c=String(a),g=null==b?"":String(b),i=c.toLowerCase();return!!(i.startsWith("x-switchboard-")||"x-client-type"===i&&/^switchboard$/i.test(g.trim())||"x-msh-platform"===i&&/^switchboard$/i.test(g.trim())||"user-agent"===i&&e.test(g)||d.test(c)&&!h(c)||d.test(g)&&!h(c)||g.includes(f))}(c,g)&&(b[c]=String(g));return b}Object.freeze({SWITCHBOARD_RE:d,SWITCHBOARD_UA_RE:e,SWITCHBOARD_GITHUB:f});var j=c(6547),k=c(35570),l=c(70628);let m="oauth-2025-04-20",n="claude-code-20250219",o="extended-cache-ttl-2025-04-11";function p(a){let b=[],c=new Set;for(let d of String(a||"").split(",")){let a=d.trim();a&&!c.has(a)&&(b.push(a),c.add(a))}if(!c.has(m)){let a=+(b[0]===n);b.splice(a,0,m)}return c.has(o)||b.push(o),b.join(",")}function q(a){return String(a||"").split(",").map(a=>a.trim()).filter(a=>a&&a!==n).join(",")}function r(a){return Object.keys(a).find(a=>"user-agent"===a.toLowerCase())}function s(a,b={}){let c=i(a),d=(0,j.ti)(b.identity,{format:b.format,provider:b.provider}),e=b.snapshot||(0,k.zi)(d),f="claude-cli"===d?(0,k.Iq)(b.credentialId):null,g=(0,j.$3)(c,d,{snapshot:f?{...e,os:f.os,arch:f.arch}:e,overlay:b.overlay,stream:b.stream,retryCount:b.retryCount,preserveUserAgent:!b.identity}),h=(0,j.E$)(d),m=i(g);if("claude-cli"===d&&b.requestPath?.startsWith("/v1/messages/count_tokens")){for(let a of Object.keys(m))"x-stainless-timeout"===a.toLowerCase()&&delete m[a];m=(0,j.Dm)(m,j.$R)}if(!r(m)){let a=e?.userAgent||function(a,b){let c=b?.version,d=(0,l.ol)()||"linux",e="ia32"===(0,l.LY)()?"x86":(0,l.LY)()||"x64";switch(a){case"claude-cli":return`claude-cli/${c||"2.1.289"} (external, cli)`;case"codex-cli":return`codex_cli_rs/${c||"0.149.0"}`;case"gemini-cli":return`GeminiCLI/${c||"0.56.0"}/unknown (${d}; ${e}; terminal)`;case"cline":return`Cline/${c||"3.0.0"}`;case"antigravity":return`antigravity/${c||"2.9.1"} ${d}/${e}`;case"copilot":return`GitHubCopilotChat/${c||"0.38.0"}`;case"qwen":return`QwenCode/${c||"0.12.3"} (${d}; ${e})`;case"grok-cli":return`grok-cli/${c||"1.0.0"}`;case"grok-build":return`grok-shell/${c||"0.2.99"} (${d}; ${e})`;case"chrome":return"Mozilla/5.0";default:return`OpenAI/NodeJS/${"u">typeof process&&process.version?process.version.replace(/^v/,""):"unknown"}`}}(d,e);m["User-Agent"]=a}return"claude-cli"===d&&function(a,b){let c=(0,k.Kn)(b),d=r(a),e=String(d?a[d]:"").match(/claude-(?:cli|code)\/(\d+\.\d+\.\d+)/i)?.[1]||null;if(!c.version||c.billingVersion!==c.version||c.tlsVersion!==c.version||c.userAgentVersion!==c.version||e!==c.version)throw Error(`Claude identity mismatch: ua=${e||c.userAgentVersion} version=${c.version} billing=${c.billingVersion} tls=${c.tlsVersion}`)}(m,e),{headers:i(m),profileId:d,tls:h?.tls||"node",alpn:h?.alpn||["h2","http/1.1"],tlsSpecRev:e?.tlsSpecRev}}},46052:(a,b,c)=>{"use strict";let d;c.d(b,{wo:()=>Q,Fm:()=>U,$6:()=>K,ip:()=>P,WV:()=>M});var e=c(27910),f=c(60290),g=c(39211),h=c(6547),i=c(31421),j=c(51455),k=c(76760),l=c(73136),m=c(57075);let n="2.1.289",o=Object.freeze(["http/1.1"]);Object.freeze(["TLS_AES_128_GCM_SHA256","TLS_AES_256_GCM_SHA384","TLS_CHACHA20_POLY1305_SHA256","TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256","TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256","TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384","TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384","TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256","TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256","TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA","TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA","TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA","TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA","TLS_RSA_WITH_AES_128_GCM_SHA256","TLS_RSA_WITH_AES_256_GCM_SHA384","TLS_RSA_WITH_AES_128_CBC_SHA","TLS_RSA_WITH_AES_256_CBC_SHA"]),Object.freeze(["server_name","extended_master_secret","renegotiation_info","supported_groups:x25519_mlkem768,x25519,secp256r1,secp384r1","ec_point_formats:uncompressed","session_ticket","alpn:http/1.1","status_request","signature_algorithms:ecdsa_secp256r1_sha256,rsa_pss_rsae_sha256,rsa_pkcs1_sha256,ecdsa_secp384r1_sha384,rsa_pss_rsae_sha384,rsa_pkcs1_sha384,rsa_pss_rsae_sha512,rsa_pkcs1_sha512,rsa_pkcs1_sha1","signed_certificate_timestamp","key_share:x25519_mlkem768","psk_key_exchange_modes:psk_dhe_ke","supported_versions:TLS1.3,TLS1.2"]);let p=k.dirname((0,l.fileURLToPath)("file:///home/runner/work/switchboard-router/switchboard-router/open-sse/identity/tls/claude-code.js")),q="win32"===process.platform?"switchboard-claude-tls.exe":"switchboard-claude-tls",r=[process.env.SWITCHBOARD_CLAUDE_TLS_HELPER,k.join(process.cwd(),"open-sse","identity","tls","bin",process.platform,process.arch,q),k.join(p,"bin",process.platform,process.arch,q)].filter(Boolean);function s(a){let b=Number(a);return Number.isFinite(b)&&b>0?Math.floor(b):null}let t=i.spawn,u=function(a){if(null==a||""===a)return 2;let b=Number(a);return Number.isInteger(b)&&b>=0?b:2}(process.env.SWITCHBOARD_CLAUDE_TLS_POOL_CAP),v=new Map,w=null;function x(a){return t(a,[],{stdio:["pipe","pipe","pipe"],windowsHide:!0})}function y(a,b){for(let c of[a,a.stdin,a.stdout,a.stderr])c?.[b?"ref":"unref"]?.()}async function z(){if(d)return d;for(let a of r)try{return await (0,j.access)(a),d=a,a}catch{}throw Error(`Claude Code TLS helper is not installed for ${process.platform}-${process.arch}`)}function A(){return new DOMException("The operation was aborted.","AbortError")}let B=globalThis.fetch,C=new Map,D=new Map,E=async()=>async function(a,b={},c={}){var d,e,f,g;if(c.alpn?.length!==1||"http/1.1"!==c.alpn[0])throw Error("Claude Code TLS transport requires ALPN http/1.1 only");if(b.signal?.aborted)throw A();let h=await z(),i=function(){for(let[a,b]of v)if(b(),null==a.exitCode&&null==a.signalCode)return y(a,!0),a;return null}()??x(h);w||v.size>=u||(w=setImmediate(()=>{w=null,function(a){for(;v.size<u;){let b;try{b=x(a)}catch{return}!function(a){let b=()=>{clearTimeout(c),a.off("exit",b),a.off("error",b),v.delete(a)},c=setTimeout(()=>{b();try{a.kill("SIGTERM")}catch{}},6e4);c.unref?.(),a.once("exit",b),a.once("error",b),y(a,!1),v.set(a,b)}(b)}}(h)}),w.unref?.());let j=function(a){if(null==a)return null;if("string"==typeof a)return Buffer.from(a);if(Buffer.isBuffer(a))return a;if(a instanceof Uint8Array)return Buffer.from(a);throw TypeError("Claude Code TLS helper requires a string or byte request body")}(b.body),k={url:String(a),method:b.method||"GET",headers:(d=b.headers)instanceof Headers?[...d.entries()]:Object.entries(d||{}).map(([a,b])=>[a,String(b)]),headerOrder:c.headerOrder||[],proxyUrl:c.proxyUrl||"",tlsSpecRev:n,alpn:o,bodyLength:j?.byteLength||0,timeoutMs:s(b.timeoutMs)??s(c.timeoutMs)??6e4};return i.stdin.write(`${JSON.stringify(k)}
|
|
2
|
-
`),j&&i.stdin.write(j),i.stdin.end(),e=i.stdout,f=i.stderr,g=b.signal,new Promise((a,b)=>{let c=Buffer.alloc(0),d="",h=!1,j=a=>{d.length>=16384||(d+=a.toString("utf8",0,16384-d.length))},k=(a,b,c)=>{let e=d.trim(),f=`${null==a?"":` with code ${a}`}${b?` (${b})`:""}`;return Error(e||`Claude TLS helper exited${c}${f}`)},l=()=>{e.off("data",r),i.off("error",o),i.off("exit",p)},n=a=>{h||(h=!0,l(),f.off("data",j),g?.removeEventListener("abort",q),b(a))},o=a=>n(a),p=(a,b)=>n(k(a,b," before metadata")),q=()=>{n(A()),i.kill("SIGTERM")},r=b=>{let d,o=(c=Buffer.concat([c,b])).indexOf("\n");if(o<0)return;try{d=JSON.parse(c.subarray(0,o).toString("utf8"))}catch(a){n(Error(`Claude TLS helper returned invalid metadata: ${a.message}`));return}if(d.error)return void n(Error(d.error));h=!0,l(),g?.removeEventListener("abort",q);let p=new m.PassThrough,r=m.Readable.toWeb(p),s=!1,t=!1,u=!1,v=a=>{u||(u=!0,p.off("close",w),e.unpipe(p),e.off("end",z),e.off("error",y),f.off("data",j),i.off("error",y),i.off("exit",B),g?.removeEventListener("abort",C),a?p.destroy(a):p.end())},w=()=>{u||(v(),i.kill("SIGTERM"))},x=a=>{e.destroyed||(e.once("error",()=>{}),e.destroy(a)),v(a)},y=a=>v(a),z=()=>{s=!0,t&&v()},B=(a,b)=>{0!==a||b?x(k(a,b," after metadata")):(t=!0,s&&v())},C=()=>{x(A()),i.kill("SIGTERM")};p.once("close",w),e.once("end",z),e.once("error",y),i.once("error",y),i.once("exit",B),g?.addEventListener("abort",C,{once:!0}),p.write(c.subarray(o+1)),e.pipe(p,{end:!1}),a(new Response(r,{status:d.status,statusText:d.statusText||"",headers:new Headers(d.headers||[])}))};f.on("data",j),e.on("data",r),i.once("error",o),i.once("exit",p),g?.addEventListener("abort",q,{once:!0}),g?.aborted&&q()})},F=async()=>(await Promise.resolve().then(c.t.bind(c,36435,19))).Impit,G=new Map,H=["cloudcode-pa.googleapis.com","daily-cloudcode-pa.googleapis.com","api.individual.githubcopilot.com","q.us-east-1.amazonaws.com","codewhisperer.us-east-1.amazonaws.com","api2.cursor.sh"],I=["8.8.8.8","8.8.4.4"];function J(a){return null==a?"":String(a).trim()}function K(a){let b=a?.providerSpecificData||{};return{connectionProxyEnabled:!0===b.connectionProxyEnabled,connectionProxyUrl:b.connectionProxyUrl||"",connectionNoProxy:b.connectionNoProxy||"",vercelRelayUrl:b.vercelRelayUrl||"",strictProxy:!0===b.strictProxy}}async function L(a){let b=G.get(a);if(b&&Date.now()<b.expiry&&Array.isArray(b.ips)&&b.ips.length>0)return b.idx=(b.idx+1)%b.ips.length,b.ips[b.idx];try{let b=await Promise.resolve().then(c.t.bind(c,14985,19)),{promisify:d}=await Promise.resolve().then(c.t.bind(c,28354,19)),e=new b.Resolver;e.setServers(I);let g=d(e.resolve4.bind(e)),h=d(e.resolve6.bind(e)),i=await g(a).catch(()=>[]);if(Array.isArray(i)&&0!==i.length||(i=await h(a).catch(()=>[])),!Array.isArray(i)||0===i.length)return null;if(G.size>=f.v1.dnsCacheMaxSize){let a=Date.now();for(let[b,c]of G)c.expiry<=a&&G.delete(b);for(;G.size>=f.v1.dnsCacheMaxSize;)G.delete(G.keys().next().value)}return G.set(a,{ips:i,idx:0,expiry:Date.now()+f.v1.dnsCacheTtlMs}),i[0]}catch(b){return console.warn(`[ProxyFetch] DNS resolve failed for ${a}:`,b.message),null}}function M(a){try{let b=new URL(a).hostname;return H.some(a=>b.includes(a))}catch{return!1}}function N(a,b){let c,d=J(b);if(!d)return!1;try{c=new URL(a).hostname.toLowerCase()}catch{return!1}return d.split(",").map(a=>a.trim().toLowerCase()).filter(Boolean).some(a=>"*"===a||(a.startsWith(".")?c.endsWith(a)||c===a.slice(1):c===a||c.endsWith(`.${a}`)))}function O(a){let b=J(a);if(!b)return null;try{return new URL(b),b}catch{return`http://${b}`}}function P(a,b){return function(a,b){if(b?.enabled!==!0&&b?.connectionProxyEnabled!==!0)return null;let c=J(b?.url??b?.connectionProxyUrl);if(!c)return null;let d=J(b?.noProxy??b?.connectionNoProxy);return d&&N(a,d)?null:O(c)}(a,b)||O(function(a){let b;if(N(a,process.env.NO_PROXY||process.env.no_proxy))return null;try{b=new URL(a).protocol}catch{return null}return"https:"===b?process.env.HTTPS_PROXY||process.env.https_proxy||process.env.ALL_PROXY||process.env.all_proxy:process.env.HTTP_PROXY||process.env.http_proxy||process.env.ALL_PROXY||process.env.all_proxy}(a))}async function Q(a){let b=O(a);if(!b)return null;if(!C.has(b)){if(C.size>=f.v1.proxyDispatchersMaxSize){let a=C.keys().next().value,b=C.get(a);C.delete(a),Promise.resolve(b?.close?.()).catch(()=>{})}let{ProxyAgent:a}=await c.e(7774).then(c.t.bind(c,47774,19));C.set(b,new a({uri:b}))}let d=C.get(b);return C.delete(b),C.set(b,d),d}async function R(a){let b=a||"",c=D.get(b);return c||(c=new(await F())({browser:"chrome",...a?{proxyUrl:a}:{},followRedirects:!1}),D.set(b,c)),(a,b)=>c.fetch(a,b)}function S(a){return a?"u">typeof Headers&&a instanceof Headers?Object.fromEntries(a.entries()):{...a}:{}}async function T(a,b,d){let f=await Promise.resolve().then(c.t.bind(c,55591,19)),g=await Promise.resolve().then(c.t.bind(c,91645,19)),h=f.default??f,i=g.default??g;return new Promise((c,f)=>{let g,j=new i.Socket,k=!1;function l(){j.setTimeout(0),d.signal&&d.signal.removeEventListener("abort",m)}function m(){k||(k=!0,l(),j.destroy(),g?.destroy(),f(new DOMException("The operation was aborted.","AbortError")))}d.signal?.aborted?m():(d.signal&&d.signal.addEventListener("abort",m,{once:!0}),j.setTimeout(1e4,()=>{k||(k=!0,l(),j.destroy(),f(Error(`[ProxyFetch] connect timeout after 10000ms to ${b}`)))}),j.connect(443,b,()=>{j.setTimeout(0);let b={socket:j,servername:a.hostname,path:a.pathname+a.search,method:d.method||"POST",headers:{...S(d.headers),Host:a.hostname}};if((g=h.request(b,a=>{let b=()=>{try{a.destroy(new DOMException("The operation was aborted.","AbortError"))}catch{a.destroy()}},g=()=>d.signal?.removeEventListener("abort",b);if(d.signal?.aborted){k=!0,l(),b(),g(),f(new DOMException("The operation was aborted.","AbortError"));return}d.signal?.addEventListener("abort",b,{once:!0}),a.once("end",g),a.once("close",g),a.once("error",g);let h={ok:a.statusCode>=200&&a.statusCode<300,status:a.statusCode,statusText:a.statusMessage,headers:new Map(Object.entries(a.headers)),body:e.Readable.toWeb(a),text:async()=>{let b=[];for await(let c of a)b.push(c);return Buffer.concat(b).toString()},json:async()=>JSON.parse(await h.text())};k=!0,l(),c(h)})).on("error",a=>{k||(k=!0,l(),f(a))}),null!=d.body)try{g.write(function(a){if("string"==typeof a||"u">typeof Buffer&&Buffer.isBuffer(a)||a instanceof Uint8Array)return a;if("u">typeof ArrayBuffer&&a instanceof ArrayBuffer)return Buffer.from(a);if("u">typeof FormData&&a instanceof FormData)throw Error("[ProxyFetch] FormData bodies are not supported on the MITM bypass path");return JSON.stringify(a)}(d.body))}catch(a){k||(k=!0,l(),f(a));return}g.end()}),j.on("error",a=>{k||(k=!0,l(),f(a))}))})}async function U(a,b={},c=null){let d="string"==typeof a?a:a.toString(),e=function(a,b={}){let c=b.headers?.Accept||b.headers?.accept||"",d="string"==typeof c&&c.includes("text/event-stream"),e=(0,g.fX)(b.headers||{},{identity:b.identity,provider:b.provider,format:b.format,overlay:b.overlay,credentialId:b.credentialId,stream:b.stream??d,retryCount:b.retryCount,snapshot:b.snapshot,requestPath:new URL(a).pathname}),f={...e.headers};if("claude-cli"===e.profileId){let a=Object.keys(f).find(a=>"authorization"===a.toLowerCase());if((a?String(f[a]):"").startsWith("Bearer ")){let a=Object.keys(f).find(a=>"anthropic-beta"===a.toLowerCase());a&&f[a]&&(f[a]=(0,g.AU)(f[a]))}else{let a=Object.keys(f).find(a=>"x-api-key"===a.toLowerCase());if(a&&f[a]){let a=Object.keys(f).find(a=>"anthropic-beta"===a.toLowerCase());if(a&&f[a]){let b=(0,g.Aw)(f[a]);b?f[a]=b:delete f[a]}for(let a of Object.keys(f))"user-agent"===a.toLowerCase()&&delete f[a]}}}return{...b,headers:f,_identityTls:e.tls,_identityAlpn:e.alpn,_identityTlsSpecRev:e.tlsSpecRev,_identityProfile:e.profileId}}(d,b),f=function(a){let{_identityTls:b,_identityAlpn:c,_identityTlsSpecRev:d,_identityProfile:e,identity:f,provider:g,format:h,overlay:i,credentialId:j,stream:k,retryCount:l,snapshot:m,...n}=a;return n}(e),{_identityTls:i,_identityAlpn:j,_identityProfile:k}=e,l=J(c?.vercelRelayUrl);if(l){let a=new URL(d);return((...a)=>B(...a))(l,{...f,headers:{...S(f.headers),"x-relay-target":`${a.protocol}//${a.host}`,"x-relay-path":`${a.pathname}${a.search}`}})}let m=P(d,c);if("node"!==i)try{let b={profileId:k,alpn:j,proxyUrl:m,headerOrder:"claude-cli"===k?new URL(d).pathname.startsWith("/v1/messages/count_tokens")?h.$R:h.Zb:(0,h.E$)(k)?.headerOrder||[]},c=/^claude-code-(\d+\.\d+\.\d+)$/.exec(e._identityTlsSpecRev||"")?.[1]||e._identityTlsSpecRev;if("claude-cli"===k&&c!==n)throw Error(`snapshot TLS spec ${e._identityTlsSpecRev||"missing"} does not match helper ${n}`);let g="chrome"===i?await R(m):await E();return await g(a,f,b)}catch(b){if(b?.name==="AbortError")throw b;let a=Error(`[ProxyFetch] ${i} TLS (${k}) unavailable: ${b.message}`);throw a.status=503,a}if(M(d)){if(m)try{let b=await Q(m);return await ((...a)=>B(...a))(a,{...f,dispatcher:b})}catch(a){if(c?.strictProxy===!0)throw Error(`[ProxyFetch] Proxy required but failed (strictProxy=true): ${a.message}`);console.warn(`[ProxyFetch] Proxy failed, falling back to direct bypass: ${a.message}`)}try{let a=new URL(d),b=await L(a.hostname);if(b)return await T(a,b,f)}catch(a){console.warn(`[ProxyFetch] MITM bypass failed: ${a.message}`)}}if(m)try{let b=await Q(m);return await ((...a)=>B(...a))(a,{...f,dispatcher:b})}catch(a){if(c?.strictProxy===!0)throw Error(`[ProxyFetch] Proxy required but failed (strictProxy=true): ${a.message}`);console.warn(`[ProxyFetch] Proxy failed, falling back to direct: ${a.message}`)}return((...a)=>B(...a))(a,f)}async function V(a,b={}){return U(a,b,null)}globalThis.fetch!==V&&(globalThis.fetch=V)},70628:(a,b,c)=>{"use strict";c.d(b,{LY:()=>h,Tc:()=>f,ol:()=>g,vv:()=>e});var d=c(21820);function e(){switch((0,d.platform)()){case"darwin":return"MacOS";case"win32":return"Windows";case"linux":return"Linux";case"freebsd":return"FreeBSD";default:return`Other::${(0,d.platform)()}`}}function f(){switch((0,d.arch)()){case"x64":return"x64";case"arm64":return"arm64";case"ia32":return"x86";default:return`other::${(0,d.arch)()}`}}function g(){return(0,d.platform)()}function h(){return(0,d.arch)()}},78335:()=>{},94552:(a,b,c)=>{"use strict";a.exports=c.p+"static/media/versions.d3affa61.json"},96487:()=>{}};
|
|
1
|
+
exports.id=1792,exports.ids=[1792],exports.modules={6547:(a,b,c)=>{"use strict";c.d(b,{$3:()=>q,$R:()=>i,Dm:()=>s,E$:()=>k,Zb:()=>h,jI:()=>j,ti:()=>n});var d=c(92675),e=c(70628),f=c(48161),g=c(13247);let h=["Accept","Authorization","Content-Type","User-Agent","X-Claude-Code-Session-Id","X-Stainless-Arch","X-Stainless-Lang","X-Stainless-OS","X-Stainless-Package-Version","X-Stainless-Retry-Count","X-Stainless-Runtime","X-Stainless-Runtime-Version","X-Stainless-Timeout","anthropic-beta","anthropic-dangerous-direct-browser-access","anthropic-version","x-app","x-client-request-id","Connection","Host","Accept-Encoding","Content-Length"],i=h.filter(a=>"X-Stainless-Timeout"!==a),j={"claude-cli":{id:"claude-cli",tls:"claude-code",alpn:["http/1.1"],headerOrder:h,source:{npm:"@anthropic-ai/claude-code",capture:"claude-code-native",tlsSpec:"claude-code"},headers:function(a){let b=a?.version||"2.1.302",c=a?.entrypoint||"cli";return{"Anthropic-Version":d.b8,"Anthropic-Beta":a?.betas||"claude-code-20250219,interleaved-thinking-2025-05-14,redact-thinking-2026-02-12,thinking-token-count-2026-05-13,context-management-2025-06-27,prompt-caching-scope-2026-01-05,effort-2025-11-24,structured-outputs-2025-12-15","Anthropic-Dangerous-Direct-Browser-Access":"true","User-Agent":a?.userAgent||`claude-cli/${b} (external, ${c})`,"X-App":"cli","X-Stainless-Runtime-Version":a?.runtimeVersion||process.version,"X-Stainless-Package-Version":a?.packageVersion||"0.128.0","X-Stainless-Runtime":"node","X-Stainless-Lang":"js","X-Stainless-Arch":a?.arch||(0,e.Tc)(),"X-Stainless-Os":a?.os||(0,e.vv)(),"X-Stainless-Timeout":"600"}}},"codex-cli":{id:"codex-cli",tls:"chrome",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","originator","session_id","User-Agent","version","chatgpt-account-id"],source:{npm:"@openai/codex"},headers:function(a){let b=a?.version||"0.163.0";return{originator:"codex_cli_rs","User-Agent":`codex_cli_rs/${b}`,version:b}}},"gemini-cli":{id:"gemini-cli",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Content-Type","Authorization","User-Agent","X-Goog-Api-Client","Accept"],source:{npm:"@google/gemini-cli"},headers:function(a){let b=a?.version||"0.56.0",c=a?.upstreamModel||"unknown",d="ia32"===(0,e.LY)()?"x86":(0,e.LY)(),f="u">typeof process&&process.version?process.version.replace(/^v/,""):"unknown";return{"User-Agent":`GeminiCLI/${b}/${c} (${(0,e.ol)()}; ${d}; terminal)`,"X-Goog-Api-Client":a?.apiClient||`google-genai-sdk/1.41.0 gl-node/v${f}`}}},"openai-node":{id:"openai-node",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","User-Agent"],source:{npm:"openai"},headers:function(){return{"User-Agent":`OpenAI/NodeJS/${process.version.replace(/^v/,"")}`}}},cline:{id:"cline",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","HTTP-Referer","X-Title","User-Agent","X-PLATFORM","X-PLATFORM-VERSION","X-CLIENT-TYPE","X-CLIENT-VERSION","X-CORE-VERSION","X-IS-MULTIROOT"],source:{npm:"cline"},headers:function(a){let b=a?.version||"3.0.0";return{"HTTP-Referer":"https://cline.bot","X-Title":"Cline","User-Agent":`Cline/${b}`,"X-PLATFORM":(0,e.ol)()||"unknown","X-PLATFORM-VERSION":a?.platformVersion||(0,f.release)()||"unknown","X-CLIENT-TYPE":"extension","X-CLIENT-VERSION":b,"X-CORE-VERSION":b,"X-IS-MULTIROOT":"false"}}},chrome:{id:"chrome",tls:"chrome",alpn:["h2","http/1.1"],headerOrder:["User-Agent","Accept","Accept-Language","Accept-Encoding"],source:{capture:"chrome"},headers:function(a){let b,c=a?.chromeVersion||"136";return{"User-Agent":`Mozilla/5.0 (${"darwin"===(b=(0,e.ol)())?"Macintosh; Intel Mac OS X 10_15_7":"win32"===b?"Windows NT 10.0; Win64; x64":"X11; Linux x86_64"}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/${c}.0.0.0 Safari/537.36`}}},cursor:{id:"cursor",tls:"node",alpn:["h2","http/1.1"],headerOrder:[],source:{capture:"cursor"},headers:()=>({})},antigravity:{id:"antigravity",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","User-Agent","Accept"],source:{capture:"antigravity"},headers:function(a){let b=a?.version||"2.9.1";return{"User-Agent":`antigravity/${b} ${(0,e.ol)()}/${(0,e.LY)()}`}}},copilot:{id:"copilot",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","copilot-integration-id","editor-version","editor-plugin-version","user-agent","openai-intent","x-github-api-version"],source:{capture:"github-copilot"},headers:function(a){let b=a?.vscodeVersion||"1.110.0",c=a?.chatVersion||a?.version||"0.38.0";return{"copilot-integration-id":"vscode-chat","editor-version":`vscode/${b}`,"editor-plugin-version":`copilot-chat/${c}`,"user-agent":`GitHubCopilotChat/${c}`,"openai-intent":"conversation-panel","x-github-api-version":a?.apiVersion||"2025-04-01","x-vscode-user-agent-library-version":"electron-fetch","X-Initiator":"user"}}},qwen:{id:"qwen",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","User-Agent","X-Stainless-Arch","X-Stainless-Os"],source:{capture:"qwen-code"},headers:function(a){let{os:b,arch:c,stainlessOs:d,stainlessArch:f}=a?.qwenOsArch||{os:"win32"===(0,e.ol)()?"windows":"darwin"===(0,e.ol)()?"darwin":"linux",arch:"arm64"===(0,e.LY)()?"arm64":"x64",stainlessOs:(0,e.vv)(),stainlessArch:(0,e.Tc)()},g=a?.version||"0.12.3",h=`QwenCode/${g} (${b}; ${c})`;return{"User-Agent":h,"X-DashScope-UserAgent":h,"X-Stainless-Arch":f,"X-Stainless-Os":d,"X-Stainless-Lang":"js","X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":a?.runtimeVersion||process.version,"X-Stainless-Package-Version":a?.packageVersion||"5.11.0"}}},kimi:{id:"kimi",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","X-Msh-Version","X-Msh-Device-Model"],source:{capture:"kimi-code"},headers:function(){return{"X-Msh-Version":"2.1.2","X-Msh-Device-Model":`${(0,e.ol)()} ${(0,e.LY)()}`}}},"grok-cli":{id:"grok-cli",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","User-Agent"],source:{capture:"grok-cli"},headers:function(a){return{"User-Agent":`grok-cli/${a?.version||"1.0.0"}`}}},"grok-build":{id:"grok-build",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","Accept","User-Agent","x-grok-client-identifier","x-grok-client-version"],source:{capture:"@xai-official/grok 0.2.99"},headers:function(){let a;return{"User-Agent":`grok-shell/${g.uG} (${(0,e.ol)()||"linux"}; ${"x64"===(a=(0,e.LY)())?"x86_64":"arm64"===a?"aarch64":"ia32"===a?"x86":a||"x86_64"})`,"x-grok-client-identifier":g.rK,"x-grok-client-version":g.uG}}},"muse-code":{id:"muse-code",tls:"node",alpn:["h2","http/1.1"],headerOrder:["Authorization","Content-Type","User-Agent","Accept"],source:{capture:"muse-code"},headers:a=>({"User-Agent":`muse-code/${a?.version||"1.0.2"}`})}};function k(a){return j[a]||j["openai-node"]}let l=new Set(["openai","openai-responses","openai-compat"]),m=new Set(["claude"]);function n(a,b={}){if("string"==typeof a&&a)return a;if(a&&"object"==typeof a&&a.profile)return a.profile;let c=b.format||"",d=b.provider||"";return"claude"===c||m.has(c)||"claude"===d||d.startsWith("anthropic-compatible")?"claude-cli":"codex"===d?"codex-cli":"gemini-cli"===d?"gemini-cli":"antigravity"===d?"antigravity":"github"===d?"copilot":"qwen"===d?"qwen":"cline"===d||"clinepass"===d?"cline":"kimi"===d||"kimi-coding"===d?"kimi":"xai"===d?"grok-cli":"grok-cli"===d?"grok-build":"grok-web"===d?"chrome":"cursor"===d||"cursor"===c?"cursor":"muse"===d||"meta"===d?"muse-code":(l.has(c),"openai-node")}let o=new Set(["user-agent","anthropic-beta","x-stainless-package-version","x-stainless-runtime-version","x-stainless-os","x-stainless-arch"]),p=new Set(["x-stainless-helper-method","x-stainless-retry-count"]);function q(a,b,c={}){var d;let e,f=k(b),g=(d=c.snapshot,"function"==typeof(e=k(b)).headers?e.headers(d):{...e.headers||{}});!0===c.stream&&"claude-cli"===b?g["X-Stainless-Helper-Method"]="stream":"claude-cli"===b&&delete g["X-Stainless-Helper-Method"],"number"==typeof c.retryCount&&"claude-cli"===b&&(g["X-Stainless-Retry-Count"]=String(c.retryCount));let h=new Map;for(let[b,c]of Object.entries(a||{})){let a=b.toLowerCase();("authorization"===a||"x-api-key"===a||"api-key"===a)&&h.set(a,[b,c])}let i=!0===c.preserveUserAgent&&"claude-cli"!==b&&Object.entries(a||{}).find(([a])=>"user-agent"===a.toLowerCase())||null,j=r(a,g),l=c.overlay&&"object"==typeof c.overlay?"claude-cli"===b?function(a,b){let c,d,e={...a||{}},f=0!==(d=Object.values(c=Object.fromEntries([...o].map(a=>{let b;return[a,(b=Object.keys(e||{}).find(b=>b.toLowerCase()===a))?e[b]:void 0]}))).filter(a=>null!=a).length)&&d===o.size&&String(c["user-agent"]).match(/claude-(?:cli|code)\/(\d+\.\d+\.\d+)/i)?.[1]===b?.version;for(let a of Object.keys(e)){let b=a.toLowerCase();(p.has(b)||!f&&o.has(b))&&delete e[a]}return e}(c.overlay,c.snapshot):{...c.overlay}:{};for(let a of Object.keys(l))h.has(a.toLowerCase())&&delete l[a];let m=r(j,l);if(i&&!Object.keys(l).some(a=>"user-agent"===a.toLowerCase())){for(let a of Object.keys(m))"user-agent"===a.toLowerCase()&&delete m[a];m[i[0]]=i[1]}if("claude-cli"===b){if(!0===c.stream)m["X-Stainless-Helper-Method"]="stream";else for(let a of Object.keys(m))"x-stainless-helper-method"===a.toLowerCase()&&delete m[a];if("number"==typeof c.retryCount){for(let a of Object.keys(m))"x-stainless-retry-count"===a.toLowerCase()&&delete m[a];m["X-Stainless-Retry-Count"]=String(c.retryCount)}}for(let[a,[b,c]]of h){for(let b of Object.keys(m))b.toLowerCase()===a&&delete m[b];m[b]=c}return f?.headerOrder?s(m,f.headerOrder):m}function r(...a){let b={};for(let c of a)for(let[a,d]of Object.entries(c||{})){let c=Object.keys(b).find(b=>b.toLowerCase()===a.toLowerCase());c&&delete b[c],b[a]=d}return b}function s(a,b){if(!b||!b.length)return{...a};let c=new Set,d={},e=new Map;for(let[b,c]of Object.entries(a))e.set(b.toLowerCase(),[b,c]);for(let a of b){let b=e.get(a.toLowerCase());b&&(d[b[0]]=b[1],c.add(a.toLowerCase()))}for(let[b,e]of Object.entries(a))c.has(b.toLowerCase())||(d[b]=e);return d}},35570:(a,b,c)=>{"use strict";c.d(b,{I2:()=>C,Iq:()=>D,Kn:()=>v,dV:()=>w,zi:()=>x});var d=c(73024),e=c(76760),f=c(77598),g=c(6547),h=c(70628);let i=["claude-cli","codex-cli","gemini-cli"],j=new Map,k=new Map,l=new Set,m=null;function n(){let a=process.env.DATA_DIR||e.join(process.env.HOME||process.env.USERPROFILE||".",".switchboard");return e.join(a,"identity")}function o(a){return e.join(n(),`${a}.json`)}let p=function(){try{return JSON.parse(d.readFileSync(e.join(process.cwd(),"open-sse","identity","snapshots","versions.json"),"utf8"))}catch{try{return JSON.parse(d.readFileSync(new c.U(c(94552)),"utf8"))}catch{return{}}}}();function q(a){let b=p[a],c=b?.version;if(!c)return null;if("claude-cli"!==a)return{version:c,latestVersion:b.latestVersion};let d=b.tlsSpecRev||c;return{version:c,billingVersion:c,tlsSpecRev:d,latestVersion:b.latestVersion,capturedAt:b.capturedAt,entrypoint:b.entrypoint||"cli",userAgent:`claude-cli/${c} (external, ${b.entrypoint||"cli"})`,packageVersion:b.packageVersion||"0.128.0",runtimeVersion:b.runtimeVersion||"v26.3.0",betas:b.betas||"claude-code-20250219,interleaved-thinking-2025-05-14,redact-thinking-2026-02-12,thinking-token-count-2026-05-13,context-management-2025-06-27,prompt-caching-scope-2026-01-05,effort-2025-11-24,structured-outputs-2025-12-15"}}function r(a){let b=String(a||"").split(".").map(Number);return 3===b.length&&b.every(Number.isInteger)?b:null}function s(a){let b=String(a?.tlsSpecRev||"").match(/(\d+\.\d+\.\d+)/);return b?.[1]||null}function t(a,b){let c=r(a),d=r(b);if(!c||!d)return 0;for(let a=0;a<3;a++)if(c[a]!==d[a])return c[a]-d[a];return 0}function u(a){return!!(a?.version&&a?.billingVersion===a.version&&s(a)===a.version&&a.version===(z(p["claude-cli"]?.tlsSpecRev)||p["claude-cli"]?.version||null)&&a?.userAgent?.includes(`claude-cli/${a.version}`)&&a?.packageVersion&&a?.runtimeVersion&&a?.betas)}function v(a){return{version:a?.version||null,billingVersion:a?.billingVersion||null,tlsVersion:s(a),userAgentVersion:z(a?.userAgent)}}function w(a){if(j.has(a))return j.get(a);let b=null;try{b=JSON.parse(d.readFileSync(o(a),"utf8"))}catch{b=q(a)}return"claude-cli"!==a||u(b)||(b=q(a)),b&&j.set(a,b),b}function x(a){let b=w(a);return"claude-cli"!==a||u(b)?b:q(a)}function y(a,b){if(b&&"object"==typeof b){j.set(a,b);try{d.mkdirSync(n(),{recursive:!0}),d.writeFileSync(o(a),JSON.stringify(b,null,2))}catch{}}}function z(a){if("string"!=typeof a)return null;let b=a.match(/claude-cli\/(\d+\.\d+\.\d+)/i)||a.match(/codex_cli_rs\/(\d+\.\d+\.\d+)/i)||a.match(/GeminiCLI\/(\d+\.\d+\.\d+)/i)||a.match(/Cline\/(\d+\.\d+\.\d+)/i)||a.match(/antigravity\/(\d+\.\d+\.\d+)/i)||a.match(/QwenCode\/(\d+\.\d+\.\d+)/i)||a.match(/GitHubCopilotChat\/(\d+\.\d+\.\d+)/i);return b?b[1]:null}let A={"claude-cli":/claude-(?:cli|code)\//i,"codex-cli":/codex_cli_rs\//i,"gemini-cli":/GeminiCLI\//i,cline:/Cline\//i,antigravity:/antigravity\//i,qwen:/QwenCode\//i,copilot:/GitHubCopilotChat\//i};function B(a,b){let c=A[a];return!(c&&b?.userAgent)||c.test(b.userAgent)}function C(a,b){let c=function(a){let b={};if(!a)return b;for(let[c,d]of Object.entries(a))b[c.toLowerCase()]=d;return b}(b),d=c["user-agent"],e=z(d);if(!d||!e||!B(a,{userAgent:d}))return!1;if("claude-cli"===a){let b=c["x-stainless-package-version"],f=c["x-stainless-runtime-version"],g=c["anthropic-beta"];if(!b||!f||!g)return!1;let h=x(a)||{},i=s(h);return i&&e!==i?(E(a,`harvest ${e} does not match TLS capture ${h.tlsSpecRev}`),!1):(y(a,{...h,version:e,billingVersion:e,userAgent:d,packageVersion:b,runtimeVersion:f,betas:g,os:h.os||c["x-stainless-os"],arch:h.arch||c["x-stainless-arch"],entrypoint:/\(external,\s*([^)]+)\)/.exec(d)?.[1]||"cli",harvestedAt:Date.now()}),!0)}if("copilot"===a){let b=String(c["editor-plugin-version"]||"").match(/copilot-chat\/(\d+\.\d+\.\d+)/i)?.[1],f=String(c["editor-version"]||"").match(/vscode\/(\d+\.\d+\.\d+)/i)?.[1],g=c["x-github-api-version"];return!!b&&b===e&&!!f&&!!g&&(y(a,{...w(a),version:e,chatVersion:b,vscodeVersion:f,apiVersion:g,userAgent:d,harvestedAt:Date.now()}),!0)}return y(a,{...w(a),version:e,userAgent:d,harvestedAt:Date.now()}),!0}function D(a){let b=a||"anonymous";if(k.has(b))return k.get(b);let c=(0,f.createHash)("sha256").update(`device:${b}`).digest("hex"),d={buildHash:c.slice(0,3),deviceId:c,accountUuid:`${c.slice(0,8)}-${c.slice(8,12)}-4${c.slice(13,16)}-a${c.slice(17,20)}-${c.slice(20,32)}`,os:(0,h.vv)(),arch:(0,h.Tc)()};return k.set(b,d),d}function E(a,b){l.has(a)||(l.add(a),console.warn(`[IDENTITY_STALE] ${a}: ${b}`))}async function F(a,b){let c=g.jI[a]?.source?.npm;if(!c)return null;let d=await b(`https://registry.npmjs.org/${encodeURIComponent(c)}/latest`,{headers:{Accept:"application/json"}});if(!d.ok)return null;let e=await d.json();return r(e?.version)?e.version:null}async function G(a=globalThis.fetch){"function"==typeof a&&await Promise.all(i.map(async b=>{try{let c=await F(b,a);if(!c)return;let d=x(b)||q(b)||{};if("claude-cli"===b){t(c,d.version)>0&&(y(b,{...d,latestVersion:c,checkedAt:Date.now()}),E(b,`npm ${c} is ahead of captured tuple ${d.version}`));return}if(!B(b,d)||t(d.version,c)>0)E(b,`stored snapshot ${d.version} cannot belong to ${b}; reset to npm ${c}`),d=q(b)||{};else if(0>=t(c,d.version))return;let e="codex-cli"===b?`codex_cli_rs/${c}`:d.userAgent;y(b,{...d,version:c,...e?{userAgent:e}:{},checkedAt:Date.now()})}catch{}}))}function H(){let a=Date.now();for(let b of Object.keys(g.jI)){let c=x(b)||q(b),d=c?.capturedAt;if(!d)continue;let e=a-new Date(d).getTime();if(Number.isFinite(e)&&e>2592e6){let a=Math.floor(e/864e5);E(b,`snapshot is ${a}d old; run npm run identity:refresh`)}}}"1"!==process.env.SWITCHBOARD_DISABLE_IDENTITY_POLL&&queueMicrotask(()=>(function(a=globalThis.fetch){return m||"function"!=typeof a||(G(a),H(),m=setInterval(()=>{G(a),H()},216e5),m.unref?.()),m})())},39211:(a,b,c)=>{"use strict";c.d(b,{AU:()=>p,Aw:()=>q,fX:()=>s});let d=/switchboard/i,e=/Switchboard\//i,f="https://github.com/Vijay-Duke/switchboard-router",g=new Set(["authorization","x-api-key","api-key","cookie"]);function h(a){return g.has(String(a).toLowerCase())}function i(a){let b={};for(let[c,g]of a?a instanceof Headers?[...a.entries()]:Object.entries(a):[])null!=g&&!function(a,b){let c=String(a),g=null==b?"":String(b),i=c.toLowerCase();return!!(i.startsWith("x-switchboard-")||"x-client-type"===i&&/^switchboard$/i.test(g.trim())||"x-msh-platform"===i&&/^switchboard$/i.test(g.trim())||"user-agent"===i&&e.test(g)||d.test(c)&&!h(c)||d.test(g)&&!h(c)||g.includes(f))}(c,g)&&(b[c]=String(g));return b}Object.freeze({SWITCHBOARD_RE:d,SWITCHBOARD_UA_RE:e,SWITCHBOARD_GITHUB:f});var j=c(6547),k=c(35570),l=c(70628);let m="oauth-2025-04-20",n="claude-code-20250219",o="extended-cache-ttl-2025-04-11";function p(a){let b=[],c=new Set;for(let d of String(a||"").split(",")){let a=d.trim();a&&!c.has(a)&&(b.push(a),c.add(a))}if(!c.has(m)){let a=+(b[0]===n);b.splice(a,0,m)}return c.has(o)||b.push(o),b.join(",")}function q(a){return String(a||"").split(",").map(a=>a.trim()).filter(a=>a&&a!==n).join(",")}function r(a){return Object.keys(a).find(a=>"user-agent"===a.toLowerCase())}function s(a,b={}){let c=i(a),d=(0,j.ti)(b.identity,{format:b.format,provider:b.provider}),e=b.snapshot||(0,k.zi)(d),f="claude-cli"===d?(0,k.Iq)(b.credentialId):null,g=(0,j.$3)(c,d,{snapshot:f?{...e,os:f.os,arch:f.arch}:e,overlay:b.overlay,stream:b.stream,retryCount:b.retryCount,preserveUserAgent:!b.identity}),h=(0,j.E$)(d),m=i(g);if("claude-cli"===d&&b.requestPath?.startsWith("/v1/messages/count_tokens")){for(let a of Object.keys(m))"x-stainless-timeout"===a.toLowerCase()&&delete m[a];m=(0,j.Dm)(m,j.$R)}if(!r(m)){let a=e?.userAgent||function(a,b){let c=b?.version,d=(0,l.ol)()||"linux",e="ia32"===(0,l.LY)()?"x86":(0,l.LY)()||"x64";switch(a){case"claude-cli":return`claude-cli/${c||"2.1.302"} (external, cli)`;case"codex-cli":return`codex_cli_rs/${c||"0.163.0"}`;case"gemini-cli":return`GeminiCLI/${c||"0.64.0"}/unknown (${d}; ${e}; terminal)`;case"cline":return`Cline/${c||"3.0.0"}`;case"antigravity":return`antigravity/${c||"2.9.1"} ${d}/${e}`;case"copilot":return`GitHubCopilotChat/${c||"0.38.0"}`;case"qwen":return`QwenCode/${c||"0.12.3"} (${d}; ${e})`;case"grok-cli":return`grok-cli/${c||"1.0.0"}`;case"grok-build":return`grok-shell/${c||"0.2.99"} (${d}; ${e})`;case"chrome":return"Mozilla/5.0";default:return`OpenAI/NodeJS/${"u">typeof process&&process.version?process.version.replace(/^v/,""):"unknown"}`}}(d,e);m["User-Agent"]=a}return"claude-cli"===d&&function(a,b){let c=(0,k.Kn)(b),d=r(a),e=String(d?a[d]:"").match(/claude-(?:cli|code)\/(\d+\.\d+\.\d+)/i)?.[1]||null;if(!c.version||c.billingVersion!==c.version||c.tlsVersion!==c.version||c.userAgentVersion!==c.version||e!==c.version)throw Error(`Claude identity mismatch: ua=${e||c.userAgentVersion} version=${c.version} billing=${c.billingVersion} tls=${c.tlsVersion}`)}(m,e),{headers:i(m),profileId:d,tls:h?.tls||"node",alpn:h?.alpn||["h2","http/1.1"],tlsSpecRev:e?.tlsSpecRev}}},46052:(a,b,c)=>{"use strict";let d;c.d(b,{wo:()=>Q,Fm:()=>U,$6:()=>K,ip:()=>P,WV:()=>M});var e=c(27910),f=c(60290),g=c(39211),h=c(6547),i=c(31421),j=c(51455),k=c(76760),l=c(73136),m=c(57075);let n="2.1.302",o=Object.freeze(["http/1.1"]);Object.freeze(["TLS_AES_128_GCM_SHA256","TLS_AES_256_GCM_SHA384","TLS_CHACHA20_POLY1305_SHA256","TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256","TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256","TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384","TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384","TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256","TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256","TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA","TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA","TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA","TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA","TLS_RSA_WITH_AES_128_GCM_SHA256","TLS_RSA_WITH_AES_256_GCM_SHA384","TLS_RSA_WITH_AES_128_CBC_SHA","TLS_RSA_WITH_AES_256_CBC_SHA"]),Object.freeze(["server_name","extended_master_secret","renegotiation_info","supported_groups:x25519_mlkem768,x25519,secp256r1,secp384r1","ec_point_formats:uncompressed","session_ticket","alpn:http/1.1","status_request","signature_algorithms:ecdsa_secp256r1_sha256,rsa_pss_rsae_sha256,rsa_pkcs1_sha256,ecdsa_secp384r1_sha384,rsa_pss_rsae_sha384,rsa_pkcs1_sha384,rsa_pss_rsae_sha512,rsa_pkcs1_sha512,ed25519,ecdsa_secp521r1_sha512,rsa_pkcs1_sha1","signed_certificate_timestamp","key_share:x25519_mlkem768,x25519","psk_key_exchange_modes:psk_dhe_ke","supported_versions:TLS1.3,TLS1.2"]);let p=k.dirname((0,l.fileURLToPath)("file:///home/runner/work/switchboard-router/switchboard-router/open-sse/identity/tls/claude-code.js")),q="win32"===process.platform?"switchboard-claude-tls.exe":"switchboard-claude-tls",r=[process.env.SWITCHBOARD_CLAUDE_TLS_HELPER,k.join(process.cwd(),"open-sse","identity","tls","bin",process.platform,process.arch,q),k.join(p,"bin",process.platform,process.arch,q)].filter(Boolean);function s(a){let b=Number(a);return Number.isFinite(b)&&b>0?Math.floor(b):null}let t=i.spawn,u=function(a){if(null==a||""===a)return 2;let b=Number(a);return Number.isInteger(b)&&b>=0?b:2}(process.env.SWITCHBOARD_CLAUDE_TLS_POOL_CAP),v=new Map,w=null;function x(a){return t(a,[],{stdio:["pipe","pipe","pipe"],windowsHide:!0})}function y(a,b){for(let c of[a,a.stdin,a.stdout,a.stderr])c?.[b?"ref":"unref"]?.()}async function z(){if(d)return d;for(let a of r)try{return await (0,j.access)(a),d=a,a}catch{}throw Error(`Claude Code TLS helper is not installed for ${process.platform}-${process.arch}`)}function A(){return new DOMException("The operation was aborted.","AbortError")}let B=globalThis.fetch,C=new Map,D=new Map,E=async()=>async function(a,b={},c={}){var d,e,f,g;if(c.alpn?.length!==1||"http/1.1"!==c.alpn[0])throw Error("Claude Code TLS transport requires ALPN http/1.1 only");if(b.signal?.aborted)throw A();let h=await z(),i=function(){for(let[a,b]of v)if(b(),null==a.exitCode&&null==a.signalCode)return y(a,!0),a;return null}()??x(h);w||v.size>=u||(w=setImmediate(()=>{w=null,function(a){for(;v.size<u;){let b;try{b=x(a)}catch{return}!function(a){let b=()=>{clearTimeout(c),a.off("exit",b),a.off("error",b),v.delete(a)},c=setTimeout(()=>{b();try{a.kill("SIGTERM")}catch{}},6e4);c.unref?.(),a.once("exit",b),a.once("error",b),y(a,!1),v.set(a,b)}(b)}}(h)}),w.unref?.());let j=function(a){if(null==a)return null;if("string"==typeof a)return Buffer.from(a);if(Buffer.isBuffer(a))return a;if(a instanceof Uint8Array)return Buffer.from(a);throw TypeError("Claude Code TLS helper requires a string or byte request body")}(b.body),k={url:String(a),method:b.method||"GET",headers:(d=b.headers)instanceof Headers?[...d.entries()]:Object.entries(d||{}).map(([a,b])=>[a,String(b)]),headerOrder:c.headerOrder||[],proxyUrl:c.proxyUrl||"",tlsSpecRev:n,alpn:o,bodyLength:j?.byteLength||0,timeoutMs:s(b.timeoutMs)??s(c.timeoutMs)??6e4};return i.stdin.write(`${JSON.stringify(k)}
|
|
2
|
+
`),j&&i.stdin.write(j),i.stdin.end(),e=i.stdout,f=i.stderr,g=b.signal,new Promise((a,b)=>{let c=Buffer.alloc(0),d="",h=!1,j=a=>{d.length>=16384||(d+=a.toString("utf8",0,16384-d.length))},k=(a,b,c)=>{let e=d.trim(),f=`${null==a?"":` with code ${a}`}${b?` (${b})`:""}`;return Error(e||`Claude TLS helper exited${c}${f}`)},l=()=>{e.off("data",r),i.off("error",o),i.off("exit",p)},n=a=>{h||(h=!0,l(),f.off("data",j),g?.removeEventListener("abort",q),b(a))},o=a=>n(a),p=(a,b)=>n(k(a,b," before metadata")),q=()=>{n(A()),i.kill("SIGTERM")},r=b=>{let d,o=(c=Buffer.concat([c,b])).indexOf("\n");if(o<0)return;try{d=JSON.parse(c.subarray(0,o).toString("utf8"))}catch(a){n(Error(`Claude TLS helper returned invalid metadata: ${a.message}`));return}if(d.error)return void n(Error(d.error));h=!0,l(),g?.removeEventListener("abort",q);let p=new m.PassThrough,r=m.Readable.toWeb(p),s=!1,t=!1,u=!1,v=a=>{u||(u=!0,p.off("close",w),e.unpipe(p),e.off("end",z),e.off("error",y),f.off("data",j),i.off("error",y),i.off("exit",B),g?.removeEventListener("abort",C),a?p.destroy(a):p.end())},w=()=>{u||(v(),i.kill("SIGTERM"))},x=a=>{e.destroyed||(e.once("error",()=>{}),e.destroy(a)),v(a)},y=a=>v(a),z=()=>{s=!0,t&&v()},B=(a,b)=>{0!==a||b?x(k(a,b," after metadata")):(t=!0,s&&v())},C=()=>{x(A()),i.kill("SIGTERM")};p.once("close",w),e.once("end",z),e.once("error",y),i.once("error",y),i.once("exit",B),g?.addEventListener("abort",C,{once:!0}),p.write(c.subarray(o+1)),e.pipe(p,{end:!1}),a(new Response(r,{status:d.status,statusText:d.statusText||"",headers:new Headers(d.headers||[])}))};f.on("data",j),e.on("data",r),i.once("error",o),i.once("exit",p),g?.addEventListener("abort",q,{once:!0}),g?.aborted&&q()})},F=async()=>(await Promise.resolve().then(c.t.bind(c,36435,19))).Impit,G=new Map,H=["cloudcode-pa.googleapis.com","daily-cloudcode-pa.googleapis.com","api.individual.githubcopilot.com","q.us-east-1.amazonaws.com","codewhisperer.us-east-1.amazonaws.com","api2.cursor.sh"],I=["8.8.8.8","8.8.4.4"];function J(a){return null==a?"":String(a).trim()}function K(a){let b=a?.providerSpecificData||{};return{connectionProxyEnabled:!0===b.connectionProxyEnabled,connectionProxyUrl:b.connectionProxyUrl||"",connectionNoProxy:b.connectionNoProxy||"",vercelRelayUrl:b.vercelRelayUrl||"",strictProxy:!0===b.strictProxy}}async function L(a){let b=G.get(a);if(b&&Date.now()<b.expiry&&Array.isArray(b.ips)&&b.ips.length>0)return b.idx=(b.idx+1)%b.ips.length,b.ips[b.idx];try{let b=await Promise.resolve().then(c.t.bind(c,14985,19)),{promisify:d}=await Promise.resolve().then(c.t.bind(c,28354,19)),e=new b.Resolver;e.setServers(I);let g=d(e.resolve4.bind(e)),h=d(e.resolve6.bind(e)),i=await g(a).catch(()=>[]);if(Array.isArray(i)&&0!==i.length||(i=await h(a).catch(()=>[])),!Array.isArray(i)||0===i.length)return null;if(G.size>=f.v1.dnsCacheMaxSize){let a=Date.now();for(let[b,c]of G)c.expiry<=a&&G.delete(b);for(;G.size>=f.v1.dnsCacheMaxSize;)G.delete(G.keys().next().value)}return G.set(a,{ips:i,idx:0,expiry:Date.now()+f.v1.dnsCacheTtlMs}),i[0]}catch(b){return console.warn(`[ProxyFetch] DNS resolve failed for ${a}:`,b.message),null}}function M(a){try{let b=new URL(a).hostname;return H.some(a=>b.includes(a))}catch{return!1}}function N(a,b){let c,d=J(b);if(!d)return!1;try{c=new URL(a).hostname.toLowerCase()}catch{return!1}return d.split(",").map(a=>a.trim().toLowerCase()).filter(Boolean).some(a=>"*"===a||(a.startsWith(".")?c.endsWith(a)||c===a.slice(1):c===a||c.endsWith(`.${a}`)))}function O(a){let b=J(a);if(!b)return null;try{return new URL(b),b}catch{return`http://${b}`}}function P(a,b){return function(a,b){if(b?.enabled!==!0&&b?.connectionProxyEnabled!==!0)return null;let c=J(b?.url??b?.connectionProxyUrl);if(!c)return null;let d=J(b?.noProxy??b?.connectionNoProxy);return d&&N(a,d)?null:O(c)}(a,b)||O(function(a){let b;if(N(a,process.env.NO_PROXY||process.env.no_proxy))return null;try{b=new URL(a).protocol}catch{return null}return"https:"===b?process.env.HTTPS_PROXY||process.env.https_proxy||process.env.ALL_PROXY||process.env.all_proxy:process.env.HTTP_PROXY||process.env.http_proxy||process.env.ALL_PROXY||process.env.all_proxy}(a))}async function Q(a){let b=O(a);if(!b)return null;if(!C.has(b)){if(C.size>=f.v1.proxyDispatchersMaxSize){let a=C.keys().next().value,b=C.get(a);C.delete(a),Promise.resolve(b?.close?.()).catch(()=>{})}let{ProxyAgent:a}=await c.e(7774).then(c.t.bind(c,47774,19));C.set(b,new a({uri:b}))}let d=C.get(b);return C.delete(b),C.set(b,d),d}async function R(a){let b=a||"",c=D.get(b);return c||(c=new(await F())({browser:"chrome",...a?{proxyUrl:a}:{},followRedirects:!1}),D.set(b,c)),(a,b)=>c.fetch(a,b)}function S(a){return a?"u">typeof Headers&&a instanceof Headers?Object.fromEntries(a.entries()):{...a}:{}}async function T(a,b,d){let f=await Promise.resolve().then(c.t.bind(c,55591,19)),g=await Promise.resolve().then(c.t.bind(c,91645,19)),h=f.default??f,i=g.default??g;return new Promise((c,f)=>{let g,j=new i.Socket,k=!1;function l(){j.setTimeout(0),d.signal&&d.signal.removeEventListener("abort",m)}function m(){k||(k=!0,l(),j.destroy(),g?.destroy(),f(new DOMException("The operation was aborted.","AbortError")))}d.signal?.aborted?m():(d.signal&&d.signal.addEventListener("abort",m,{once:!0}),j.setTimeout(1e4,()=>{k||(k=!0,l(),j.destroy(),f(Error(`[ProxyFetch] connect timeout after 10000ms to ${b}`)))}),j.connect(443,b,()=>{j.setTimeout(0);let b={socket:j,servername:a.hostname,path:a.pathname+a.search,method:d.method||"POST",headers:{...S(d.headers),Host:a.hostname}};if((g=h.request(b,a=>{let b=()=>{try{a.destroy(new DOMException("The operation was aborted.","AbortError"))}catch{a.destroy()}},g=()=>d.signal?.removeEventListener("abort",b);if(d.signal?.aborted){k=!0,l(),b(),g(),f(new DOMException("The operation was aborted.","AbortError"));return}d.signal?.addEventListener("abort",b,{once:!0}),a.once("end",g),a.once("close",g),a.once("error",g);let h={ok:a.statusCode>=200&&a.statusCode<300,status:a.statusCode,statusText:a.statusMessage,headers:new Map(Object.entries(a.headers)),body:e.Readable.toWeb(a),text:async()=>{let b=[];for await(let c of a)b.push(c);return Buffer.concat(b).toString()},json:async()=>JSON.parse(await h.text())};k=!0,l(),c(h)})).on("error",a=>{k||(k=!0,l(),f(a))}),null!=d.body)try{g.write(function(a){if("string"==typeof a||"u">typeof Buffer&&Buffer.isBuffer(a)||a instanceof Uint8Array)return a;if("u">typeof ArrayBuffer&&a instanceof ArrayBuffer)return Buffer.from(a);if("u">typeof FormData&&a instanceof FormData)throw Error("[ProxyFetch] FormData bodies are not supported on the MITM bypass path");return JSON.stringify(a)}(d.body))}catch(a){k||(k=!0,l(),f(a));return}g.end()}),j.on("error",a=>{k||(k=!0,l(),f(a))}))})}async function U(a,b={},c=null){let d="string"==typeof a?a:a.toString(),e=function(a,b={}){let c=b.headers?.Accept||b.headers?.accept||"",d="string"==typeof c&&c.includes("text/event-stream"),e=(0,g.fX)(b.headers||{},{identity:b.identity,provider:b.provider,format:b.format,overlay:b.overlay,credentialId:b.credentialId,stream:b.stream??d,retryCount:b.retryCount,snapshot:b.snapshot,requestPath:new URL(a).pathname}),f={...e.headers};if("claude-cli"===e.profileId){let a=Object.keys(f).find(a=>"authorization"===a.toLowerCase());if((a?String(f[a]):"").startsWith("Bearer ")){let a=Object.keys(f).find(a=>"anthropic-beta"===a.toLowerCase());a&&f[a]&&(f[a]=(0,g.AU)(f[a]))}else{let a=Object.keys(f).find(a=>"x-api-key"===a.toLowerCase());if(a&&f[a]){let a=Object.keys(f).find(a=>"anthropic-beta"===a.toLowerCase());if(a&&f[a]){let b=(0,g.Aw)(f[a]);b?f[a]=b:delete f[a]}for(let a of Object.keys(f))"user-agent"===a.toLowerCase()&&delete f[a]}}}return{...b,headers:f,_identityTls:e.tls,_identityAlpn:e.alpn,_identityTlsSpecRev:e.tlsSpecRev,_identityProfile:e.profileId}}(d,b),f=function(a){let{_identityTls:b,_identityAlpn:c,_identityTlsSpecRev:d,_identityProfile:e,identity:f,provider:g,format:h,overlay:i,credentialId:j,stream:k,retryCount:l,snapshot:m,...n}=a;return n}(e),{_identityTls:i,_identityAlpn:j,_identityProfile:k}=e,l=J(c?.vercelRelayUrl);if(l){let a=new URL(d);return((...a)=>B(...a))(l,{...f,headers:{...S(f.headers),"x-relay-target":`${a.protocol}//${a.host}`,"x-relay-path":`${a.pathname}${a.search}`}})}let m=P(d,c);if("node"!==i)try{let b={profileId:k,alpn:j,proxyUrl:m,headerOrder:"claude-cli"===k?new URL(d).pathname.startsWith("/v1/messages/count_tokens")?h.$R:h.Zb:(0,h.E$)(k)?.headerOrder||[]},c=/^claude-code-(\d+\.\d+\.\d+)$/.exec(e._identityTlsSpecRev||"")?.[1]||e._identityTlsSpecRev;if("claude-cli"===k&&c!==n)throw Error(`snapshot TLS spec ${e._identityTlsSpecRev||"missing"} does not match helper ${n}`);let g="chrome"===i?await R(m):await E();return await g(a,f,b)}catch(b){if(b?.name==="AbortError")throw b;let a=Error(`[ProxyFetch] ${i} TLS (${k}) unavailable: ${b.message}`);throw a.status=503,a}if(M(d)){if(m)try{let b=await Q(m);return await ((...a)=>B(...a))(a,{...f,dispatcher:b})}catch(a){if(c?.strictProxy===!0)throw Error(`[ProxyFetch] Proxy required but failed (strictProxy=true): ${a.message}`);console.warn(`[ProxyFetch] Proxy failed, falling back to direct bypass: ${a.message}`)}try{let a=new URL(d),b=await L(a.hostname);if(b)return await T(a,b,f)}catch(a){console.warn(`[ProxyFetch] MITM bypass failed: ${a.message}`)}}if(m)try{let b=await Q(m);return await ((...a)=>B(...a))(a,{...f,dispatcher:b})}catch(a){if(c?.strictProxy===!0)throw Error(`[ProxyFetch] Proxy required but failed (strictProxy=true): ${a.message}`);console.warn(`[ProxyFetch] Proxy failed, falling back to direct: ${a.message}`)}return((...a)=>B(...a))(a,f)}async function V(a,b={}){return U(a,b,null)}globalThis.fetch!==V&&(globalThis.fetch=V)},70628:(a,b,c)=>{"use strict";c.d(b,{LY:()=>h,Tc:()=>f,ol:()=>g,vv:()=>e});var d=c(21820);function e(){switch((0,d.platform)()){case"darwin":return"MacOS";case"win32":return"Windows";case"linux":return"Linux";case"freebsd":return"FreeBSD";default:return`Other::${(0,d.platform)()}`}}function f(){switch((0,d.arch)()){case"x64":return"x64";case"arm64":return"arm64";case"ia32":return"x86";default:return`other::${(0,d.arch)()}`}}function g(){return(0,d.platform)()}function h(){return(0,d.arch)()}},78335:()=>{},94552:(a,b,c)=>{"use strict";a.exports=c.p+"static/media/versions.fd0ef9e7.json"},96487:()=>{}};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";exports.id=1937,exports.ids=[1937],exports.modules={8298:(a,b,c)=>{c.d(b,{KC:()=>j,RB:()=>q,Ty:()=>m,_G:()=>h,bg:()=>g,cT:()=>l,pM:()=>p,pr:()=>r,qk:()=>n,rf:()=>f,t6:()=>k,xG:()=>o});let d="https://openapi.qoder.sh",e="https://api3.qoder.sh",f="https://qoder.com/device/selectAccounts",g=`${d}/api/v1/deviceToken/poll`,h=`${d}/api/v1/userinfo`,i=`${e}/algo/api/v2/service/pro/sse/agent_chat_generation?FetchKeys=llm_model_result&AgentId=agent_common`,j=`${i}&Encode=1`,k=`${e}/algo/api/v2/model/list`,l="1.0.0",m="5",n="disagree",o="v2",p="x86_64_windows",q="5",r=`-----BEGIN PUBLIC KEY-----
|
|
1
|
+
"use strict";exports.id=1937,exports.ids=[1937],exports.modules={7866:(a,b,c)=>{c.d(b,{w$:()=>e});var d=c(39211);function e(a,b={}){let c,f=(c=function(a){if("string"!=typeof a)return"";let b=a.trim();return b?b.startsWith("workos:")?b:`workos:${b}`:""}(a))?`Bearer ${c}`:"",{headers:g}=(0,d.fX)({...f?{Authorization:f}:{},...b},{identity:"cline"});return g}},8298:(a,b,c)=>{c.d(b,{KC:()=>j,RB:()=>q,Ty:()=>m,_G:()=>h,bg:()=>g,cT:()=>l,pM:()=>p,pr:()=>r,qk:()=>n,rf:()=>f,t6:()=>k,xG:()=>o});let d="https://openapi.qoder.sh",e="https://api3.qoder.sh",f="https://qoder.com/device/selectAccounts",g=`${d}/api/v1/deviceToken/poll`,h=`${d}/api/v1/userinfo`,i=`${e}/algo/api/v2/service/pro/sse/agent_chat_generation?FetchKeys=llm_model_result&AgentId=agent_common`,j=`${i}&Encode=1`,k=`${e}/algo/api/v2/model/list`,l="1.0.0",m="5",n="disagree",o="v2",p="x86_64_windows",q="5",r=`-----BEGIN PUBLIC KEY-----
|
|
2
2
|
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA8iMH5c02LilrsERw9t6Pv5Nc
|
|
3
3
|
4k6Pz1EaDicBMpdpxKduSZu5OANqUq8er4GM95omAGIOPOh+Nx0spthYA2BqGz+l
|
|
4
4
|
6HRkPJ7S236FZz73In/KVuLnwI8JJ2CbuJap8kvheCCZpmAWpb/cPx/3Vr/J6I17
|
|
5
5
|
XcW+ML9FoCI6AOvOzwIDAQAB
|
|
6
|
-
-----END PUBLIC KEY-----`},9155:(a,b,c)=>{c.d(b,{EV:()=>m,X5:()=>l});var d=c(55511),e=c(46052),f=c(45350),g=c(99393),h=c(8298);let i=new Map,j=new Map;async function k(a,b,c=null){let d,i,j={userId:(i=a?.providerSpecificData||{}).userId,authToken:a.accessToken,name:a.displayName||"",email:a.email||"",machineId:i.machineId||""};if(!j.userId||!j.authToken)return null;let l={Accept:"application/json","Accept-Encoding":"identity",...(0,g.d)(Buffer.alloc(0),h.t6,j)},m=new AbortController,n=null,o=null;try{n=setTimeout(()=>m.abort("timeout"),15e3),b&&"function"==typeof b.addEventListener&&(b.aborted?m.abort(b.reason):(o=()=>m.abort(b.reason),b.addEventListener("abort",o))),d=await (0,e.Fm)(h.t6,{method:"GET",headers:l,signal:m.signal,identity:f.xq.qoder.identity,provider:"qoder",format:f.xq.qoder.format},c)}finally{n&&clearTimeout(n),b&&o&&b.removeEventListener("abort",o)}if(!d.ok)return null;let p=await d.json().catch(()=>null);if(!p||!Array.isArray(p.chat))return null;let q=[],r=new Map;for(let a of p.chat){if(!a||"object"!=typeof a)continue;let b=a.key;if(!b||(r.set(b,a),!1===a.enable))continue;let c=a.display_name||b,d=Number(a.max_input_tokens)||131072;q.push({id:b,name:`${c}`,contextLength:d,isVL:!!a.is_vl,isReasoning:!!a.is_reasoning,maxOutputTokens:Number(a.max_output_tokens)||0,description:a.description||""})}return{models:q,rawConfigs:r}}async function l(a,b,c={}){let d=await m(a,c);if(!d)return null;let e=d.rawConfigs.get(b);return e?{...e,key:b}:null}async function m(a,b={}){let c;if(!a?.accessToken||!(a.providerSpecificData||{}).userId)return null;let e=(c=(a?.providerSpecificData||{}).userId||a?.refreshToken||a?.accessToken||"anonymous",(0,d.createHash)("sha256").update(`qoder:${c}`).digest("hex")),f=Date.now();if(!b.forceRefresh){let a=i.get(e);if(a&&a.expiresAt>f)return a}let g=j.get(e);if(g&&!b.forceRefresh)return g;let h=(async()=>{let c=await k(a,b.signal,b.proxyOptions);if(!c)return null;let d={expiresAt:Date.now()+36e5,models:c.models,rawConfigs:c.rawConfigs,fetched:!0};return i.set(e,d),d})();j.set(e,h);try{return await h}finally{j.get(e)===h&&j.delete(e)}}},33026:(a,b,c)=>{c.d(b,{CP:()=>p,Y8:()=>o,yI:()=>m});var d=c(47293),e=c(74075);let f="1"===process.env.CURSOR_PROTOBUF_DEBUG,g=(a,...b)=>f&&console.log(`[PROTOBUF:${a}]`,...b);new TextDecoder;let h="1.1.3",i=new Set([1,2,3,9,10,11,27,1,25]);function j(a){let b=[];for(;a>=128;)b.push(127&a|128),a>>>=7;return b.push(127&a),new Uint8Array(b)}function k(a,b,c){let d=j(a<<3|b);if(0===b)return l(d,j(c));if(2===b){let a="string"==typeof c?new TextEncoder().encode(c):c instanceof Uint8Array?c:Buffer.isBuffer(c)?new Uint8Array(c):new Uint8Array(0);return l(d,j(a.length),a)}return new Uint8Array(0)}function l(...a){let b=new Uint8Array(a.reduce((a,b)=>a+b.length,0)),c=0;for(let d of a)b.set(d,c),c+=d.length;return b}function m(a,b,c=[],f=null,h=!1){g("BODY",`Generating: ${a.length} msgs, model=${b}, tools=${c.length}, reasoning=${f||"none"}, forceAgentMode=${h}`);let i=function(a,b,c=[],e=null,f=!1){return k(1,2,function(a,b,c=[],e=null,f=!1){let h,i=c?.length>0,m=i||f,n=[],o=[],p=[];for(let b=0;b<a.length;b++){let c=a[b],d=Array.isArray(c?.tool_calls)&&c.tool_calls.length>0,e=Array.isArray(c?.tool_results)&&c.tool_results.length>0;if(c?.role==="assistant"&&d&&e){g("ENCODE",`normalizing mixed assistant tool payload at msg[${b}] (calls=${c.tool_calls.length}, results=${c.tool_results.length})`),p.push({...c,tool_results:[]});let d=a[b+1],e=d?.role==="assistant"&&Array.isArray(d?.tool_results)&&d.tool_results.length>0,f=new Set(c.tool_results.map(a=>a?.tool_call_id).filter(a=>"string"==typeof a)),h=new Set((d?.tool_results||[]).map(a=>a?.tool_call_id).filter(a=>"string"==typeof a)),i=f.size>0&&f.size===h.size;if(i){for(let a of f)if(!h.has(a)){i=!1;break}}e&&i||p.push({role:"assistant",content:"",tool_results:c.tool_results});continue}p.push(c)}for(let a=0;a<p.length;a++){let b=p[a],c="user"===b.role?1:2,e=(0,d.A)(),f=a===p.length-1;n.push({content:b.content,role:c,messageId:e,isLast:f,hasTools:i,toolResults:b.tool_results||[]}),o.push({messageId:e,role:c})}let q=0;return"medium"===e?q=1:"high"===e&&(q=2),l(...n.map(a=>k(1,2,function(a,b,c,d=!1,e=!1,f=[],g=null){let h=f.length>0;return l(k(1,2,a),k(2,0,b),k(13,2,c),...g?[k(32,2,g)]:[],...h?f.map(a=>k(18,2,function(a){var b;let c,d,e=function(a){let b="string"==typeof a&&a.length>0?a:"tool";if(b.startsWith("mcp__")){let a=b.slice(5),c=a.indexOf("__");if(c>=0){let b=a.slice(0,c)||"custom",d=a.slice(c+2)||"tool";return`mcp_${b}_${d}`}return`mcp_custom_${a||"tool"}`}return b.startsWith("mcp_")?b:`mcp_custom_${b}`}(a.tool_name||a.name||""),f=a.raw_args||"{}",g=a.result_content||a.result||"",{toolCallId:h,modelCallId:i}=(b=a.tool_call_id||"",c="\nmc_",(d=b.indexOf(c))>=0?{toolCallId:b.slice(0,d),modelCallId:b.slice(d+c.length)}:{toolCallId:b,modelCallId:null}),j=a.tool_index||a.index||1,{serverName:m,selectedTool:n}=function(a){if("string"!=typeof a||!a.startsWith("mcp_"))return{serverName:"custom",selectedTool:a||"tool"};let b=a.slice(4),c=b.indexOf("_");return c<0?{serverName:"custom",selectedTool:b||"tool"}:{serverName:b.slice(0,c)||"custom",selectedTool:b.slice(c+1)||"tool"}}(e);return l(k(1,2,h),k(2,2,e),k(3,0,j>0?j:1),...i?[k(12,2,i)]:[],k(5,2,f),k(8,2,function(a,b,c,d,e=1){return l(k(1,0,19),k(28,2,l(k(1,2,c),k(2,2,d))),k(35,2,a),...b?[k(48,2,b)]:[],k(49,0,e>0?e:1))}(h,i,n,g,j)),k(11,2,function(a,b,c,d,e,f,g=1){let h;return l(k(1,0,19),k(27,2,(h=l(k(1,2,c),k(3,2,e),k(4,2,d)),k(1,2,h))),k(3,2,a),k(9,2,b),k(10,2,e),k(48,0,g>0?g:1),...f?[k(49,2,f)]:[])}(h,e,n,m,f,i,j)))}(a))):[],k(29,0,+!!e),k(47,0,e?2:1),...d&&e?[k(51,2,j(1))]:[])}(a.content,a.role,a.messageId,a.isLast,a.hasTools,a.toolResults))),k(2,0,1),k(3,2,new Uint8Array(0)),k(4,0,1),k(5,2,l(k(1,2,b),k(4,2,new Uint8Array(0)))),k(8,2,""),k(13,0,1),k(15,2,(h=l(k(1,2,new Uint8Array(0)),k(2,2,new Uint8Array(0))),l(k(1,2,"cursor\\aisettings"),k(3,2,new Uint8Array(0)),k(6,2,h),k(8,0,1),k(9,0,1)))),k(19,0,1),k(23,2,(0,d.A)()),k(26,2,l(k(1,2,process.platform||"linux"),k(2,2,process.arch||"x64"),k(3,2,process.version||"v20.0.0"),k(4,2,process.cwd?.()||"/"),k(5,2,new Date().toISOString()))),k(27,0,+!!m),...m?[k(29,2,j(1))]:[],...o.map(a=>k(30,2,function(a,b,c=null){return l(k(1,2,a),...c?[k(2,2,c)]:[],k(3,0,b))}(a.messageId,a.role))),...c?.length>0?c.map(a=>{let b,c,d;return k(34,2,(b=a.function?.name||a.name||"",c=a.function?.description||a.description||"",d=a.function?.parameters||a.input_schema||{},l(...b?[k(1,2,b)]:[],...c?[k(2,2,c)]:[],...Object.keys(d).length>0?[k(3,2,JSON.stringify(d))]:[],k(4,2,"custom"))))}):[],k(35,0,0),k(38,0,0),k(46,0,m?2:1),k(47,2,""),k(48,0,+!m),k(49,0,q),k(51,0,0),k(53,0,1),k(54,2,m?"Agent":"Ask"))}(a,b,c,e,f))}(a,b,c,f,h),n=function(a,b=!1){let c=a,d=0;b&&(c=new Uint8Array(e.gzipSync(Buffer.from(a))),d=1);let f=new Uint8Array(5+c.length);return f[0]=d,f[1]=c.length>>24&255,f[2]=c.length>>16&255,f[3]=c.length>>8&255,f[4]=255&c.length,f.set(c,5),f}(i,!1);return g("BODY",`Protobuf=${i.length}B, Framed=${n.length}B`),n}function n(a,b){let c=0,d=0,e=b;for(;e<a.length;){let b=a[e];if(c|=(127&b)<<d,e++,!(128&b))break;d+=7}return[c,e]}function o(a){let b=new Map,c=0;for(;c<a.length;){let[d,e,f,g]=function(a,b){let c;if(b>=a.length)return[null,null,null,b];let[d,e]=n(a,b),f=7&d,g=e;if(0===f)[c,g]=n(a,g);else if(2===f){let[b,d]=n(a,g);c=a.slice(d,d+b),g=d+b}else 1===f?(c=a.slice(g,g+8),g+=8):5===f?(c=a.slice(g,g+4),g+=4):c=null;return[d>>3,f,c,g]}(a,c);if(null===d)break;b.has(d)||b.set(d,[]),b.get(d).push({wireType:e,value:f}),c=g}return b}function p(a){try{let b=o(a);for(let a of b.keys())i.has(a)||g("SCHEMA",`Unknown response field #${a} detected. Schema v${h} may be outdated.`);if(b.has(1)){let a=function(a){let b=o(a),c="",d="",e="",f=!1;if(b.has(3)&&(c=new TextDecoder().decode(b.get(3)[0].value).split("\n")[0]),b.has(9)&&(d=new TextDecoder().decode(b.get(9)[0].value)),b.has(11)&&(f=0!==b.get(11)[0].value),b.has(27))try{let a=o(b.get(27)[0].value);if(a.has(1)){let b=o(a.get(1)[0].value);b.has(1)&&(d=new TextDecoder().decode(b.get(1)[0].value)),b.has(3)&&(e=new TextDecoder().decode(b.get(3)[0].value))}}catch(a){g("EXTRACT",`MCP parse error: ${a.message}`)}return(!e&&b.has(10)&&(e=new TextDecoder().decode(b.get(10)[0].value)),c&&d)?{id:c,type:"function",function:{name:d,arguments:e||"{}"},isLast:f}:null}(b.get(1)[0].value);if(a)return g("EXTRACT",`Tool call: ${a.function.name}`),{text:null,error:null,toolCall:a,thinking:null}}if(b.has(2)){let{text:a,thinking:c}=function(a){let b=o(a),c=null,d=null;if(b.has(1)&&(c=new TextDecoder().decode(b.get(1)[0].value)),b.has(25))try{let a=o(b.get(25)[0].value);a.has(1)&&(d=new TextDecoder().decode(a.get(1)[0].value))}catch(a){g("EXTRACT",`Thinking parse error: ${a.message}`)}return{text:c,thinking:d}}(b.get(2)[0].value);if(a||c)return{text:a,error:null,toolCall:null,thinking:c}}return{text:null,error:null,toolCall:null,thinking:null}}catch(b){return g("EXTRACT",`Decode failed (schema v${h}): ${b.message}`),{text:null,error:null,toolCall:null,thinking:null,raw:Buffer.from(a).toString("base64"),decodeError:b.message}}}},85485:(a,b,c)=>{c.d(b,{w$:()=>e});var d=c(39211);function e(a,b={}){let c,f=(c=function(a){if("string"!=typeof a)return"";let b=a.trim();return b?b.startsWith("workos:")?b:`workos:${b}`:""}(a))?`Bearer ${c}`:"",{headers:g}=(0,d.fX)({...f?{Authorization:f}:{},...b},{identity:"cline"});return g}},86925:(a,b,c)=>{c.d(b,{av:()=>o,gK:()=>m});var d=c(55511),e=c(46052);let f="https://llm.kimchi.dev",g=new Set([429,500,502,503,504]),h=new Map,i=new Map;function j(a){return(("string"==typeof a?a.trim():"")||f).replace(/\/+$/,"")}function k(a){return a?.accessToken||a?.apiKey||a?.providerSpecificData?.apiKey||null}function l(a){if(!a||"object"!=typeof a)return null;let b=a.slug||a.id||a.model||a.name;if("string"!=typeof b||""===b.trim())return null;let c=Array.isArray(a.input_modalities)?a.input_modalities.filter(a=>"text"===a||"image"===a):[],d=a.limits&&"object"==typeof a.limits?a.limits:{},e=Number(d.context_window||a.contextLength||a.context_length)||void 0,f=Number(d.max_output_tokens||a.maxOutputTokens||a.max_output_tokens)||void 0,g="string"==typeof a.provider?a.provider:"",h=!0===a.reasoning,i=Array.isArray(c)&&c.includes("image")?"imageToText":"llm",j={...a,id:b.trim(),name:String(a.display_name||a.displayName||a.name||b).trim(),provider:g,upstreamProvider:g,reasoning:h,inputModalities:c,kind:i,type:i,capabilities:{vision:c.includes("image"),reasoning:h,...e?{contextWindow:e}:{},...f?{maxOutput:f}:{},...g?{upstreamProvider:g}:{}},...e?{contextLength:e}:{},...f?{maxOutputTokens:f}:{}};return"anthropic"===g&&(j.compat={supportsReasoningEffort:!1,cacheControlFormat:"anthropic"}),j}function m(a){if("string"!=typeof a||""===a.trim())return null;let b=a.includes("/")?a.split("/").pop():a;return i.get(b)||i.get(b.toLowerCase())||null}async function n(a,b,c={}){let d=`${j(b)}/v1/models/metadata?include_in_cli=true`,f=new AbortController,h=setTimeout(()=>f.abort(Error("Kimchi models fetch timeout")),2e4),i=c.signal?AbortSignal.any([c.signal,f.signal]):f.signal;try{let b=await (0,e.Fm)(d,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${a}`,"User-Agent":"kimchi/0.1.40"},cache:"no-store",signal:i},c.proxyOptions||null);if(!b.ok){let a=Error(`Kimchi models ${b.status}: ${b.statusText}`);throw a.status=b.status,a.retryable=g.has(b.status),a}let f=await b.json();return Array.isArray(f?.models)?f.models:[]}finally{clearTimeout(h)}}async function o(a,b={}){let c,e,g,m=k(a);if(!m)return null;let p=a?.providerSpecificData?.kimchiEndpoint||b.endpoint||f,q=(g=(e=a?.providerSpecificData||{}).userId||e.username||a?.refreshToken||k(a)||"anonymous",(0,d.createHash)("sha256").update(`kimchi:${j(p)}:${g}`).digest("hex")),r=Date.now();if(!b.forceRefresh){let a=h.get(q);if(a&&a.expiresAt>r)return a}try{c=await n(m,p,b)}catch(a){return b.log?.warn?.("KIMCHI_MODELS",a.message),null}let s=c.map(l).filter(Boolean);if(0===s.length)return null;for(let a of s||[])a?.id&&(i.set(a.id,a),i.set(a.id.toLowerCase(),a));let t={expiresAt:Date.now()+3e5,models:s,rawModels:c};return h.set(q,t),t}},99393:(a,b,c)=>{c.d(b,{d:()=>h});var d=c(55511),e=c(47293),f=c(8298);function g(a){return d.createHash("md5").update(a).digest("hex")}function h(a,b,c){var h;let i,j;if(!c?.userId)throw Error("cosy: user id is empty");if(!c?.authToken)throw Error("cosy: auth token is empty");let k=Buffer.isBuffer(a)?a:"string"==typeof a?Buffer.from(a,"latin1"):Buffer.from(a||[]),{cosyKey:l,info:m}=(h={uid:c.userId,security_oauth_token:c.authToken,name:c.name||"",aid:"",email:c.email||""},i=(0,e.A)().slice(0,16),j=function(a,b){var c;let e,f,g=Buffer.from(b,"utf8");if(16!==g.length)throw Error(`aes key must be 16 bytes, got ${g.length}`);let h=g.subarray(0,16),i=d.createCipheriv("aes-128-cbc",g,h);i.setAutoPadding(!1);let j=(e=16-(c=Buffer.from(a,"utf8")).length%16,f=Buffer.alloc(c.length+e,e),c.copy(f,0),f);return Buffer.concat([i.update(j),i.final()]).toString("base64")}(JSON.stringify(h),i),{cosyKey:d.publicEncrypt({key:f.pr,padding:d.constants.RSA_PKCS1_PADDING},Buffer.from(i,"utf8")).toString("base64"),info:j}),n=String(Math.floor(Date.now()/1e3)),o=JSON.stringify({version:"v1",requestId:(0,e.A)(),info:m,cosyVersion:f.cT,ideVersion:""}),p=Buffer.from(o,"utf8").toString("base64"),q=function(a){let b;try{b=new URL(a).pathname||""}catch{return""}return b.startsWith("/algo")?b.slice(5):b}(b),r=`${p}
|
|
6
|
+
-----END PUBLIC KEY-----`},9155:(a,b,c)=>{c.d(b,{EV:()=>m,X5:()=>l});var d=c(55511),e=c(46052),f=c(45350),g=c(99393),h=c(8298);let i=new Map,j=new Map;async function k(a,b,c=null){let d,i,j={userId:(i=a?.providerSpecificData||{}).userId,authToken:a.accessToken,name:a.displayName||"",email:a.email||"",machineId:i.machineId||""};if(!j.userId||!j.authToken)return null;let l={Accept:"application/json","Accept-Encoding":"identity",...(0,g.d)(Buffer.alloc(0),h.t6,j)},m=new AbortController,n=null,o=null;try{n=setTimeout(()=>m.abort("timeout"),15e3),b&&"function"==typeof b.addEventListener&&(b.aborted?m.abort(b.reason):(o=()=>m.abort(b.reason),b.addEventListener("abort",o))),d=await (0,e.Fm)(h.t6,{method:"GET",headers:l,signal:m.signal,identity:f.xq.qoder.identity,provider:"qoder",format:f.xq.qoder.format},c)}finally{n&&clearTimeout(n),b&&o&&b.removeEventListener("abort",o)}if(!d.ok)return null;let p=await d.json().catch(()=>null);if(!p||!Array.isArray(p.chat))return null;let q=[],r=new Map;for(let a of p.chat){if(!a||"object"!=typeof a)continue;let b=a.key;if(!b||(r.set(b,a),!1===a.enable))continue;let c=a.display_name||b,d=Number(a.max_input_tokens)||131072;q.push({id:b,name:`${c}`,contextLength:d,isVL:!!a.is_vl,isReasoning:!!a.is_reasoning,maxOutputTokens:Number(a.max_output_tokens)||0,description:a.description||""})}return{models:q,rawConfigs:r}}async function l(a,b,c={}){let d=await m(a,c);if(!d)return null;let e=d.rawConfigs.get(b);return e?{...e,key:b}:null}async function m(a,b={}){let c;if(!a?.accessToken||!(a.providerSpecificData||{}).userId)return null;let e=(c=(a?.providerSpecificData||{}).userId||a?.refreshToken||a?.accessToken||"anonymous",(0,d.createHash)("sha256").update(`qoder:${c}`).digest("hex")),f=Date.now();if(!b.forceRefresh){let a=i.get(e);if(a&&a.expiresAt>f)return a}let g=j.get(e);if(g&&!b.forceRefresh)return g;let h=(async()=>{let c=await k(a,b.signal,b.proxyOptions);if(!c)return null;let d={expiresAt:Date.now()+36e5,models:c.models,rawConfigs:c.rawConfigs,fetched:!0};return i.set(e,d),d})();j.set(e,h);try{return await h}finally{j.get(e)===h&&j.delete(e)}}},33026:(a,b,c)=>{c.d(b,{CP:()=>p,Y8:()=>o,yI:()=>m});var d=c(47293),e=c(74075);let f="1"===process.env.CURSOR_PROTOBUF_DEBUG,g=(a,...b)=>f&&console.log(`[PROTOBUF:${a}]`,...b);new TextDecoder;let h="1.1.3",i=new Set([1,2,3,9,10,11,27,1,25]);function j(a){let b=[];for(;a>=128;)b.push(127&a|128),a>>>=7;return b.push(127&a),new Uint8Array(b)}function k(a,b,c){let d=j(a<<3|b);if(0===b)return l(d,j(c));if(2===b){let a="string"==typeof c?new TextEncoder().encode(c):c instanceof Uint8Array?c:Buffer.isBuffer(c)?new Uint8Array(c):new Uint8Array(0);return l(d,j(a.length),a)}return new Uint8Array(0)}function l(...a){let b=new Uint8Array(a.reduce((a,b)=>a+b.length,0)),c=0;for(let d of a)b.set(d,c),c+=d.length;return b}function m(a,b,c=[],f=null,h=!1){g("BODY",`Generating: ${a.length} msgs, model=${b}, tools=${c.length}, reasoning=${f||"none"}, forceAgentMode=${h}`);let i=function(a,b,c=[],e=null,f=!1){return k(1,2,function(a,b,c=[],e=null,f=!1){let h,i=c?.length>0,m=i||f,n=[],o=[],p=[];for(let b=0;b<a.length;b++){let c=a[b],d=Array.isArray(c?.tool_calls)&&c.tool_calls.length>0,e=Array.isArray(c?.tool_results)&&c.tool_results.length>0;if(c?.role==="assistant"&&d&&e){g("ENCODE",`normalizing mixed assistant tool payload at msg[${b}] (calls=${c.tool_calls.length}, results=${c.tool_results.length})`),p.push({...c,tool_results:[]});let d=a[b+1],e=d?.role==="assistant"&&Array.isArray(d?.tool_results)&&d.tool_results.length>0,f=new Set(c.tool_results.map(a=>a?.tool_call_id).filter(a=>"string"==typeof a)),h=new Set((d?.tool_results||[]).map(a=>a?.tool_call_id).filter(a=>"string"==typeof a)),i=f.size>0&&f.size===h.size;if(i){for(let a of f)if(!h.has(a)){i=!1;break}}e&&i||p.push({role:"assistant",content:"",tool_results:c.tool_results});continue}p.push(c)}for(let a=0;a<p.length;a++){let b=p[a],c="user"===b.role?1:2,e=(0,d.A)(),f=a===p.length-1;n.push({content:b.content,role:c,messageId:e,isLast:f,hasTools:i,toolResults:b.tool_results||[]}),o.push({messageId:e,role:c})}let q=0;return"medium"===e?q=1:"high"===e&&(q=2),l(...n.map(a=>k(1,2,function(a,b,c,d=!1,e=!1,f=[],g=null){let h=f.length>0;return l(k(1,2,a),k(2,0,b),k(13,2,c),...g?[k(32,2,g)]:[],...h?f.map(a=>k(18,2,function(a){var b;let c,d,e=function(a){let b="string"==typeof a&&a.length>0?a:"tool";if(b.startsWith("mcp__")){let a=b.slice(5),c=a.indexOf("__");if(c>=0){let b=a.slice(0,c)||"custom",d=a.slice(c+2)||"tool";return`mcp_${b}_${d}`}return`mcp_custom_${a||"tool"}`}return b.startsWith("mcp_")?b:`mcp_custom_${b}`}(a.tool_name||a.name||""),f=a.raw_args||"{}",g=a.result_content||a.result||"",{toolCallId:h,modelCallId:i}=(b=a.tool_call_id||"",c="\nmc_",(d=b.indexOf(c))>=0?{toolCallId:b.slice(0,d),modelCallId:b.slice(d+c.length)}:{toolCallId:b,modelCallId:null}),j=a.tool_index||a.index||1,{serverName:m,selectedTool:n}=function(a){if("string"!=typeof a||!a.startsWith("mcp_"))return{serverName:"custom",selectedTool:a||"tool"};let b=a.slice(4),c=b.indexOf("_");return c<0?{serverName:"custom",selectedTool:b||"tool"}:{serverName:b.slice(0,c)||"custom",selectedTool:b.slice(c+1)||"tool"}}(e);return l(k(1,2,h),k(2,2,e),k(3,0,j>0?j:1),...i?[k(12,2,i)]:[],k(5,2,f),k(8,2,function(a,b,c,d,e=1){return l(k(1,0,19),k(28,2,l(k(1,2,c),k(2,2,d))),k(35,2,a),...b?[k(48,2,b)]:[],k(49,0,e>0?e:1))}(h,i,n,g,j)),k(11,2,function(a,b,c,d,e,f,g=1){let h;return l(k(1,0,19),k(27,2,(h=l(k(1,2,c),k(3,2,e),k(4,2,d)),k(1,2,h))),k(3,2,a),k(9,2,b),k(10,2,e),k(48,0,g>0?g:1),...f?[k(49,2,f)]:[])}(h,e,n,m,f,i,j)))}(a))):[],k(29,0,+!!e),k(47,0,e?2:1),...d&&e?[k(51,2,j(1))]:[])}(a.content,a.role,a.messageId,a.isLast,a.hasTools,a.toolResults))),k(2,0,1),k(3,2,new Uint8Array(0)),k(4,0,1),k(5,2,l(k(1,2,b),k(4,2,new Uint8Array(0)))),k(8,2,""),k(13,0,1),k(15,2,(h=l(k(1,2,new Uint8Array(0)),k(2,2,new Uint8Array(0))),l(k(1,2,"cursor\\aisettings"),k(3,2,new Uint8Array(0)),k(6,2,h),k(8,0,1),k(9,0,1)))),k(19,0,1),k(23,2,(0,d.A)()),k(26,2,l(k(1,2,process.platform||"linux"),k(2,2,process.arch||"x64"),k(3,2,process.version||"v20.0.0"),k(4,2,process.cwd?.()||"/"),k(5,2,new Date().toISOString()))),k(27,0,+!!m),...m?[k(29,2,j(1))]:[],...o.map(a=>k(30,2,function(a,b,c=null){return l(k(1,2,a),...c?[k(2,2,c)]:[],k(3,0,b))}(a.messageId,a.role))),...c?.length>0?c.map(a=>{let b,c,d;return k(34,2,(b=a.function?.name||a.name||"",c=a.function?.description||a.description||"",d=a.function?.parameters||a.input_schema||{},l(...b?[k(1,2,b)]:[],...c?[k(2,2,c)]:[],...Object.keys(d).length>0?[k(3,2,JSON.stringify(d))]:[],k(4,2,"custom"))))}):[],k(35,0,0),k(38,0,0),k(46,0,m?2:1),k(47,2,""),k(48,0,+!m),k(49,0,q),k(51,0,0),k(53,0,1),k(54,2,m?"Agent":"Ask"))}(a,b,c,e,f))}(a,b,c,f,h),n=function(a,b=!1){let c=a,d=0;b&&(c=new Uint8Array(e.gzipSync(Buffer.from(a))),d=1);let f=new Uint8Array(5+c.length);return f[0]=d,f[1]=c.length>>24&255,f[2]=c.length>>16&255,f[3]=c.length>>8&255,f[4]=255&c.length,f.set(c,5),f}(i,!1);return g("BODY",`Protobuf=${i.length}B, Framed=${n.length}B`),n}function n(a,b){let c=0,d=0,e=b;for(;e<a.length;){let b=a[e];if(c|=(127&b)<<d,e++,!(128&b))break;d+=7}return[c,e]}function o(a){let b=new Map,c=0;for(;c<a.length;){let[d,e,f,g]=function(a,b){let c;if(b>=a.length)return[null,null,null,b];let[d,e]=n(a,b),f=7&d,g=e;if(0===f)[c,g]=n(a,g);else if(2===f){let[b,d]=n(a,g);c=a.slice(d,d+b),g=d+b}else 1===f?(c=a.slice(g,g+8),g+=8):5===f?(c=a.slice(g,g+4),g+=4):c=null;return[d>>3,f,c,g]}(a,c);if(null===d)break;b.has(d)||b.set(d,[]),b.get(d).push({wireType:e,value:f}),c=g}return b}function p(a){try{let b=o(a);for(let a of b.keys())i.has(a)||g("SCHEMA",`Unknown response field #${a} detected. Schema v${h} may be outdated.`);if(b.has(1)){let a=function(a){let b=o(a),c="",d="",e="",f=!1;if(b.has(3)&&(c=new TextDecoder().decode(b.get(3)[0].value).split("\n")[0]),b.has(9)&&(d=new TextDecoder().decode(b.get(9)[0].value)),b.has(11)&&(f=0!==b.get(11)[0].value),b.has(27))try{let a=o(b.get(27)[0].value);if(a.has(1)){let b=o(a.get(1)[0].value);b.has(1)&&(d=new TextDecoder().decode(b.get(1)[0].value)),b.has(3)&&(e=new TextDecoder().decode(b.get(3)[0].value))}}catch(a){g("EXTRACT",`MCP parse error: ${a.message}`)}return(!e&&b.has(10)&&(e=new TextDecoder().decode(b.get(10)[0].value)),c&&d)?{id:c,type:"function",function:{name:d,arguments:e||"{}"},isLast:f}:null}(b.get(1)[0].value);if(a)return g("EXTRACT",`Tool call: ${a.function.name}`),{text:null,error:null,toolCall:a,thinking:null}}if(b.has(2)){let{text:a,thinking:c}=function(a){let b=o(a),c=null,d=null;if(b.has(1)&&(c=new TextDecoder().decode(b.get(1)[0].value)),b.has(25))try{let a=o(b.get(25)[0].value);a.has(1)&&(d=new TextDecoder().decode(a.get(1)[0].value))}catch(a){g("EXTRACT",`Thinking parse error: ${a.message}`)}return{text:c,thinking:d}}(b.get(2)[0].value);if(a||c)return{text:a,error:null,toolCall:null,thinking:c}}return{text:null,error:null,toolCall:null,thinking:null}}catch(b){return g("EXTRACT",`Decode failed (schema v${h}): ${b.message}`),{text:null,error:null,toolCall:null,thinking:null,raw:Buffer.from(a).toString("base64"),decodeError:b.message}}}},86925:(a,b,c)=>{c.d(b,{av:()=>o,gK:()=>m});var d=c(55511),e=c(46052);let f="https://llm.kimchi.dev",g=new Set([429,500,502,503,504]),h=new Map,i=new Map;function j(a){return(("string"==typeof a?a.trim():"")||f).replace(/\/+$/,"")}function k(a){return a?.accessToken||a?.apiKey||a?.providerSpecificData?.apiKey||null}function l(a){if(!a||"object"!=typeof a)return null;let b=a.slug||a.id||a.model||a.name;if("string"!=typeof b||""===b.trim())return null;let c=Array.isArray(a.input_modalities)?a.input_modalities.filter(a=>"text"===a||"image"===a):[],d=a.limits&&"object"==typeof a.limits?a.limits:{},e=Number(d.context_window||a.contextLength||a.context_length)||void 0,f=Number(d.max_output_tokens||a.maxOutputTokens||a.max_output_tokens)||void 0,g="string"==typeof a.provider?a.provider:"",h=!0===a.reasoning,i=Array.isArray(c)&&c.includes("image")?"imageToText":"llm",j={...a,id:b.trim(),name:String(a.display_name||a.displayName||a.name||b).trim(),provider:g,upstreamProvider:g,reasoning:h,inputModalities:c,kind:i,type:i,capabilities:{vision:c.includes("image"),reasoning:h,...e?{contextWindow:e}:{},...f?{maxOutput:f}:{},...g?{upstreamProvider:g}:{}},...e?{contextLength:e}:{},...f?{maxOutputTokens:f}:{}};return"anthropic"===g&&(j.compat={supportsReasoningEffort:!1,cacheControlFormat:"anthropic"}),j}function m(a){if("string"!=typeof a||""===a.trim())return null;let b=a.includes("/")?a.split("/").pop():a;return i.get(b)||i.get(b.toLowerCase())||null}async function n(a,b,c={}){let d=`${j(b)}/v1/models/metadata?include_in_cli=true`,f=new AbortController,h=setTimeout(()=>f.abort(Error("Kimchi models fetch timeout")),2e4),i=c.signal?AbortSignal.any([c.signal,f.signal]):f.signal;try{let b=await (0,e.Fm)(d,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${a}`,"User-Agent":"kimchi/0.1.40"},cache:"no-store",signal:i},c.proxyOptions||null);if(!b.ok){let a=Error(`Kimchi models ${b.status}: ${b.statusText}`);throw a.status=b.status,a.retryable=g.has(b.status),a}let f=await b.json();return Array.isArray(f?.models)?f.models:[]}finally{clearTimeout(h)}}async function o(a,b={}){let c,e,g,m=k(a);if(!m)return null;let p=a?.providerSpecificData?.kimchiEndpoint||b.endpoint||f,q=(g=(e=a?.providerSpecificData||{}).userId||e.username||a?.refreshToken||k(a)||"anonymous",(0,d.createHash)("sha256").update(`kimchi:${j(p)}:${g}`).digest("hex")),r=Date.now();if(!b.forceRefresh){let a=h.get(q);if(a&&a.expiresAt>r)return a}try{c=await n(m,p,b)}catch(a){return b.log?.warn?.("KIMCHI_MODELS",a.message),null}let s=c.map(l).filter(Boolean);if(0===s.length)return null;for(let a of s||[])a?.id&&(i.set(a.id,a),i.set(a.id.toLowerCase(),a));let t={expiresAt:Date.now()+3e5,models:s,rawModels:c};return h.set(q,t),t}},99393:(a,b,c)=>{c.d(b,{d:()=>h});var d=c(55511),e=c(47293),f=c(8298);function g(a){return d.createHash("md5").update(a).digest("hex")}function h(a,b,c){var h;let i,j;if(!c?.userId)throw Error("cosy: user id is empty");if(!c?.authToken)throw Error("cosy: auth token is empty");let k=Buffer.isBuffer(a)?a:"string"==typeof a?Buffer.from(a,"latin1"):Buffer.from(a||[]),{cosyKey:l,info:m}=(h={uid:c.userId,security_oauth_token:c.authToken,name:c.name||"",aid:"",email:c.email||""},i=(0,e.A)().slice(0,16),j=function(a,b){var c;let e,f,g=Buffer.from(b,"utf8");if(16!==g.length)throw Error(`aes key must be 16 bytes, got ${g.length}`);let h=g.subarray(0,16),i=d.createCipheriv("aes-128-cbc",g,h);i.setAutoPadding(!1);let j=(e=16-(c=Buffer.from(a,"utf8")).length%16,f=Buffer.alloc(c.length+e,e),c.copy(f,0),f);return Buffer.concat([i.update(j),i.final()]).toString("base64")}(JSON.stringify(h),i),{cosyKey:d.publicEncrypt({key:f.pr,padding:d.constants.RSA_PKCS1_PADDING},Buffer.from(i,"utf8")).toString("base64"),info:j}),n=String(Math.floor(Date.now()/1e3)),o=JSON.stringify({version:"v1",requestId:(0,e.A)(),info:m,cosyVersion:f.cT,ideVersion:""}),p=Buffer.from(o,"utf8").toString("base64"),q=function(a){let b;try{b=new URL(a).pathname||""}catch{return""}return b.startsWith("/algo")?b.slice(5):b}(b),r=`${p}
|
|
7
7
|
${l}
|
|
8
8
|
${n}
|
|
9
9
|
${k.toString("latin1")}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=1998,exports.ids=[1998],exports.modules={71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,P:()=>d.getProviderConnections,Pc:()=>d.Pc,Qu:()=>d.Qu,S8:()=>d.S8,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fp:()=>d.fp,fv:()=>d.fv,ho:()=>d.ho,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,py:()=>d.py,rj:()=>d.updateProviderConnection,uL:()=>d.uL,uv:()=>d.uv});var d=c(
|
|
1
|
+
"use strict";exports.id=1998,exports.ids=[1998],exports.modules={71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,P:()=>d.getProviderConnections,Pc:()=>d.Pc,Qu:()=>d.Qu,S8:()=>d.S8,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fp:()=>d.fp,fv:()=>d.fv,ho:()=>d.ho,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,py:()=>d.py,rj:()=>d.updateProviderConnection,uL:()=>d.uL,uv:()=>d.uv});var d=c(59353)}};
|
|
@@ -118,4 +118,4 @@
|
|
|
118
118
|
FROM prometheusRoutingRequests WHERE ${b}`,c)||[],e=new Map;for(let a of d){(0,j.SQ)(a);let b=e.get(a.source)||{source:a.source,requests:0,errors:0,fallbacks:0};b.requests+=1,b.errors+=a.isError,b.fallbacks+=a.fallbackUsed,e.set(a.source,b)}for(let b of e.values()){let c=a.get("SELECT source, requests, errors, fallbacks FROM prometheusRoutingTotals WHERE source = ?",[b.source]);(0,j.BO)(c,b.source),(0,j.BO)({source:b.source,requests:c.requests-b.requests,errors:c.errors-b.errors,fallbacks:c.fallbacks-b.fallbacks}),a.run(`UPDATE prometheusRoutingTotals
|
|
119
119
|
SET requests = requests - ?, errors = errors - ?, fallbacks = fallbacks - ?
|
|
120
120
|
WHERE source = ?`,[b.requests,b.errors,b.fallbacks,b.source])}a.run(`DELETE FROM prometheusRoutingRequests WHERE ${b}`,c)}(b,"comboName = ?",[a])}),c=b.run("DELETE FROM routing_events WHERE comboName = ?",[a])?.changes??0,e=b.run("DELETE FROM router_learning_versions WHERE comboName = ?",[a])?.changes??0}),n(a),{events:c,versions:e}}async function T(a,b){if(!a||!b||a===b)return;let c=await (0,d.c)();c.transaction(()=>{c.run("UPDATE routing_events SET comboName = ? WHERE comboName = ?",[b,a]),c.run("UPDATE router_learning_versions SET comboName = ? WHERE comboName = ?",[b,a]),(0,j.Bq)(c,()=>{for(let b of c.all(`SELECT requestKey, terminalId, source, isError, fallbackUsed
|
|
121
|
-
FROM prometheusRoutingRequests WHERE comboName = ?`,[a])||[])(0,j.SQ)(b);c.run("UPDATE prometheusRoutingRequests SET comboName = ? WHERE comboName = ?",[b,a])})}),n(a),n(b)}},5125:(a,b,c)=>{c.d(b,{BO:()=>m,Bq:()=>k,Kd:()=>l,SQ:()=>n});var d=c(73274);let e=["requests","promptTokens","completionTokens","cachedTokens"],f=["requests","errors","fallbacks"],g=new WeakMap;function h(a,b){let c=g.get(a);if(c||(c=new Map,g.set(a,c)),c.has(b))return c.get(b);let d=!!a.get("SELECT name FROM sqlite_master WHERE type = 'table' AND name = ?",[b]);return c.set(b,d),d}let i=new WeakMap;function j(a){i.delete(a),h(a,"prometheusMetricState")&&a.run("UPDATE prometheusMetricState SET available = 0 WHERE id = 1")}function k(a,b){if(!function(a){let b=Date.now(),c=i.get(a);if(c&&c.expiresAt>b)return c.value;let e=function(a){if(!h(a,"prometheusMetricState"))return!1;let b=a.get("SELECT available FROM prometheusMetricState WHERE id = 1");try{let a=(0,d.T)(b?.available,"metricState.available",{integer:!0});if(![0,1].includes(a))throw Error("invalid Prometheus metric state");return 1===a}catch{return j(a),!1}}(a);return i.set(a,{value:e,expiresAt:b+5e3}),e}(a))return!1;try{return a.transaction(b),!0}catch{return j(a),!1}}function l(a,b=a?.provider||"usage"){if(!a||"string"!=typeof a.provider||!a.provider)throw Error(`invalid Prometheus usage metric: ${b}.provider`);for(let c of e)(0,d.T)(a[c],`${b}.${c}`,{integer:!0});return(0,d.T)(a.cost,`${b}.cost`),a}function m(a,b=a?.source||"routing"){if(!a||"string"!=typeof a.source||!a.source)throw Error(`invalid Prometheus routing metric: ${b}.source`);for(let c of f)(0,d.T)(a[c],`${b}.${c}`,{integer:!0});return a}function n(a,b=a?.requestKey||"routingRequest"){if(!a||"string"!=typeof a.source||!a.source)throw Error(`invalid Prometheus routing request: ${b}.source`);(0,d.T)(a.terminalId,`${b}.terminalId`,{integer:!0});let c=(0,d.T)(a.isError,`${b}.isError`,{integer:!0}),e=(0,d.T)(a.fallbackUsed,`${b}.fallbackUsed`,{integer:!0});if(![0,1].includes(c)||![0,1].includes(e))throw Error(`invalid Prometheus routing request: ${b}`);return a}},5770:(a,b,c)=>{c.d(b,{Qm:()=>d,lc:()=>f,vL:()=>h});let d=2e4,e=new Map;function f(a){let b="string"==typeof a?a:String(a??""),c=b.indexOf("/");return -1===c?b:b.slice(0,c)}function g(a,b,c){let d=a?.[b];return Number.isFinite(d)?d:c}function h(a,b={}){let c=b.strategy??"off";if(!Array.isArray(a)||a.length<2||"off"===c)return a;let i=function(a){let b=new Set,c=[];for(let d of a){let a=f(d);b.has(a)||(b.add(a),c.push(a))}return c}(a),j=function(a,b,c){let d=new Map;if("priority"===b){let b=Array.isArray(c.providerOrder)?c.providerOrder:[];for(let c of a){let a=b.indexOf(c);d.set(c,-1===a?b.length:a)}return d}if("round-robin"===b){let b=c.rotationKey??"__default__",f=e.get(b)||0;e.set(b,f+1);let g=f%a.length;for(let b=0;b<a.length;b++)d.set(a[(g+b)%a.length],b);return d}for(let e of a){let f=c.providerQuota?.[e],h="fastest"===b?g(c.providerLatencyMs,e,1/0):"quota-first"===b?Number.isFinite(f)?100-f:1e6+g(c.providerUsage,e,0):a.indexOf(e);d.set(e,h)}return d}(i,c,b),k=Number.isFinite(b.guardMs)?b.guardMs:d;return a.map((a,c)=>{var d;let e,g=f(a);return{model:a,index:c,rank:j.get(g)??i.length,demoted:(d=b.providerLatencyMs,Number.isFinite(e=d?.[g])&&e>k)}}).sort((a,b)=>a.demoted!==b.demoted?Number(a.demoted)-Number(b.demoted):a.demoted?a.index-b.index:a.rank-b.rank||a.index-b.index).map(({model:a})=>a)}},36366:(a,b,c)=>{c.d(b,{c:()=>l});var d=c(95658),e=c(92792);global._dbAdapter||(global._dbAdapter={instance:null,initPromise:null,logged:!1});let f=global._dbAdapter;async function g(a){if(!process.versions.bun)return null;try{let{createBunSqliteAdapter:a}=await c.e(4739).then(c.bind(c,24739));return await a(d.AL)}catch(b){return a.push(b),console.warn(`[DB] bun:sqlite unavailable: ${b.message}`),null}}async function h(a){if(process.versions.bun)return null;try{let{createBetterSqliteAdapter:a}=await c.e(5258).then(c.bind(c,25258));return a(d.AL)}catch(b){return a.push(b),console.warn(`[DB] better-sqlite3 unavailable: ${b.message}`),null}}async function i(a){if(process.versions.bun)return null;let[b,e]=process.versions.node.split(".").map(Number);if(b<22||22===b&&e<5)return null;try{let{createNodeSqliteAdapter:a}=await c.e(8520).then(c.bind(c,88520));return await a(d.AL)}catch(b){return a.push(b),console.warn(`[DB] node:sqlite unavailable: ${b.message}`),null}}async function j(a){try{let{createSqlJsAdapter:a}=await c.e(3593).then(c.bind(c,53593));return await a(d.AL)}catch(b){return a.push(b),console.warn(`[DB] sql.js unavailable: ${b.message}`),null}}async function k(){if((0,e.I)())throw Error(`[DB] refusing to open ${d.AL} during next build — mark the calling page 'force-dynamic'`);(0,d.Jh)();let a=[],b=await g(a);if(b||(b=await h(a)),b||(b=await i(a)),b||(b=await j(a))
|
|
121
|
+
FROM prometheusRoutingRequests WHERE comboName = ?`,[a])||[])(0,j.SQ)(b);c.run("UPDATE prometheusRoutingRequests SET comboName = ? WHERE comboName = ?",[b,a])})}),n(a),n(b)}},5125:(a,b,c)=>{c.d(b,{BO:()=>m,Bq:()=>k,Kd:()=>l,SQ:()=>n});var d=c(73274);let e=["requests","promptTokens","completionTokens","cachedTokens"],f=["requests","errors","fallbacks"],g=new WeakMap;function h(a,b){let c=g.get(a);if(c||(c=new Map,g.set(a,c)),c.has(b))return c.get(b);let d=!!a.get("SELECT name FROM sqlite_master WHERE type = 'table' AND name = ?",[b]);return c.set(b,d),d}let i=new WeakMap;function j(a){i.delete(a),h(a,"prometheusMetricState")&&a.run("UPDATE prometheusMetricState SET available = 0 WHERE id = 1")}function k(a,b){if(!function(a){let b=Date.now(),c=i.get(a);if(c&&c.expiresAt>b)return c.value;let e=function(a){if(!h(a,"prometheusMetricState"))return!1;let b=a.get("SELECT available FROM prometheusMetricState WHERE id = 1");try{let a=(0,d.T)(b?.available,"metricState.available",{integer:!0});if(![0,1].includes(a))throw Error("invalid Prometheus metric state");return 1===a}catch{return j(a),!1}}(a);return i.set(a,{value:e,expiresAt:b+5e3}),e}(a))return!1;try{return a.transaction(b),!0}catch{return j(a),!1}}function l(a,b=a?.provider||"usage"){if(!a||"string"!=typeof a.provider||!a.provider)throw Error(`invalid Prometheus usage metric: ${b}.provider`);for(let c of e)(0,d.T)(a[c],`${b}.${c}`,{integer:!0});return(0,d.T)(a.cost,`${b}.cost`),a}function m(a,b=a?.source||"routing"){if(!a||"string"!=typeof a.source||!a.source)throw Error(`invalid Prometheus routing metric: ${b}.source`);for(let c of f)(0,d.T)(a[c],`${b}.${c}`,{integer:!0});return a}function n(a,b=a?.requestKey||"routingRequest"){if(!a||"string"!=typeof a.source||!a.source)throw Error(`invalid Prometheus routing request: ${b}.source`);(0,d.T)(a.terminalId,`${b}.terminalId`,{integer:!0});let c=(0,d.T)(a.isError,`${b}.isError`,{integer:!0}),e=(0,d.T)(a.fallbackUsed,`${b}.fallbackUsed`,{integer:!0});if(![0,1].includes(c)||![0,1].includes(e))throw Error(`invalid Prometheus routing request: ${b}`);return a}},5770:(a,b,c)=>{c.d(b,{Qm:()=>d,lc:()=>f,vL:()=>h});let d=2e4,e=new Map;function f(a){let b="string"==typeof a?a:String(a??""),c=b.indexOf("/");return -1===c?b:b.slice(0,c)}function g(a,b,c){let d=a?.[b];return Number.isFinite(d)?d:c}function h(a,b={}){let c=b.strategy??"off";if(!Array.isArray(a)||a.length<2||"off"===c)return a;let i=function(a){let b=new Set,c=[];for(let d of a){let a=f(d);b.has(a)||(b.add(a),c.push(a))}return c}(a),j=function(a,b,c){let d=new Map;if("priority"===b){let b=Array.isArray(c.providerOrder)?c.providerOrder:[];for(let c of a){let a=b.indexOf(c);d.set(c,-1===a?b.length:a)}return d}if("round-robin"===b){let b=c.rotationKey??"__default__",f=e.get(b)||0;e.set(b,f+1);let g=f%a.length;for(let b=0;b<a.length;b++)d.set(a[(g+b)%a.length],b);return d}for(let e of a){let f=c.providerQuota?.[e],h="fastest"===b?g(c.providerLatencyMs,e,1/0):"quota-first"===b?Number.isFinite(f)?100-f:1e6+g(c.providerUsage,e,0):a.indexOf(e);d.set(e,h)}return d}(i,c,b),k=Number.isFinite(b.guardMs)?b.guardMs:d;return a.map((a,c)=>{var d;let e,g=f(a);return{model:a,index:c,rank:j.get(g)??i.length,demoted:(d=b.providerLatencyMs,Number.isFinite(e=d?.[g])&&e>k)}}).sort((a,b)=>a.demoted!==b.demoted?Number(a.demoted)-Number(b.demoted):a.demoted?a.index-b.index:a.rank-b.rank||a.index-b.index).map(({model:a})=>a)}},36366:(a,b,c)=>{c.d(b,{c:()=>l});var d=c(95658),e=c(92792);global._dbAdapter||(global._dbAdapter={instance:null,initPromise:null,logged:!1});let f=global._dbAdapter;async function g(a){if(!process.versions.bun)return null;try{let{createBunSqliteAdapter:a}=await c.e(4739).then(c.bind(c,24739));return await a(d.AL)}catch(b){return a.push(b),console.warn(`[DB] bun:sqlite unavailable: ${b.message}`),null}}async function h(a){if(process.versions.bun)return null;try{let{createBetterSqliteAdapter:a}=await c.e(5258).then(c.bind(c,25258));return a(d.AL)}catch(b){return a.push(b),console.warn(`[DB] better-sqlite3 unavailable: ${b.message}`),null}}async function i(a){if(process.versions.bun)return null;let[b,e]=process.versions.node.split(".").map(Number);if(b<22||22===b&&e<5)return null;try{let{createNodeSqliteAdapter:a}=await c.e(8520).then(c.bind(c,88520));return await a(d.AL)}catch(b){return a.push(b),console.warn(`[DB] node:sqlite unavailable: ${b.message}`),null}}async function j(a){try{let{createSqlJsAdapter:a}=await c.e(3593).then(c.bind(c,53593));return await a(d.AL)}catch(b){return a.push(b),console.warn(`[DB] sql.js unavailable: ${b.message}`),null}}async function k(){if((0,e.I)())throw Error(`[DB] refusing to open ${d.AL} during next build — mark the calling page 'force-dynamic'`);(0,d.Jh)();let a=[],b=await g(a);if(b||(b=await h(a)),b||(b=await i(a)),b||(b=await j(a)),b?.driver==="sql.js"&&"1"!==process.env.SWITCHBOARD_ALLOW_SQLJS){try{await b.close?.()}catch{}throw Error("[DB] sql.js fallback is dev-only (full-file rewrite stalls the event loop). Use Node ≥22.5 (node:sqlite) or install better-sqlite3, or set SWITCHBOARD_ALLOW_SQLJS=1.")}if(!b){if(a.some(a=>a?.code==="SQLITE_CORRUPT"||/corrupt|malformed|not a database/i.test(a?.message||"")))throw Error(`[DB] Database appears corrupted: ${d.AL}. Restore one of the five automatic backups from ${d.KQ}.`);throw Error("[DB] No SQLite driver available (bun/better/node/sql.js all failed)")}if(!f.logged){let a="sql.js"===b.driver?"warn":"log";"sql.js"===b.driver?console.warn(`[DB] WARNING: using sql.js fallback (in-memory + full-file rewrite). Prefer Node ≥22.5 (node:sqlite) or install better-sqlite3. file: ${d.AL}`):console[a](`[DB] Driver: ${b.driver} | file: ${d.AL}`),f.logged=!0}let{runMigrationOnce:k}=await Promise.all([c.e(9698),c.e(5350),c.e(869),c.e(5781),c.e(4675)]).then(c.bind(c,59282));try{await k(b)}catch(a){try{await b.close?.()}catch{}throw a}return b}async function l(){return f.instance?f.instance:(f.initPromise||(f.initPromise=k().then(a=>(f.instance=a,a),a=>{throw f.initPromise=null,a})),f.initPromise)}},43957:(a,b,c)=>{function d({workerOk:a,workerLatencyMs:b=null,clusterP50LatencyMs:c=null,fallbackUsed:e=!1,retries:f=0,hasCompletion:g=!1,tokensOut:h=null,userRating:i=null}){let j=0,k=!!(e||null!=f&&f>0);return a&&!k&&(j+=40),a||(j-=20),a&&"number"==typeof b&&"number"==typeof c&&c>0&&b<c&&(j+=15),k&&(j-=30),a&&(!0===g||"number"==typeof h&&h>0)&&(j+=10),1===i&&(j+=25),-1===i&&(j-=25),Math.max(0,Math.min(100,j))}function e(a){let b=Number(a);return Number.isFinite(b)?b>=8?1:b<=3?-1:0:0}function f(a,b,c={}){let g,h=a&&"object"==typeof a?{...a}:{},i=void 0!==c.userRating?0===c.userRating?null:c.userRating:h.userRating??null,j=void 0!==c.judgeScore?c.judgeScore:h.judgeScore??null,k=null!=j?e(j):0,l=1===i||-1===i?i:k||null,m=h.scoreInputs;g=m&&"object"==typeof m?d({...m,userRating:l}):Math.max(0,Math.min(100,("number"==typeof h.baseOutcomeScore?h.baseOutcomeScore:Number(b)||0)+25*(l||0))),h.userRating=i,null!=j&&(h.judgeScore=j),h.scoreAdjustedBy=1===i||-1===i?"user":k?"judge":null,h.judgeAdjusted=!!k&&1!==i&&-1!==i;let n=Number(b)!==g;return{outcomeScore:g,meta:h,changed:n}}c.d(b,{Uq:()=>e,_4:()=>d,al:()=>f})},49120:(a,b,c)=>{c.d(b,{nJ:()=>p,ok:()=>o});var d=c(73024),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j="switchboard";function k(a){if("win32"===process.platform){let b=process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming");return g().join(b,a)}return g().join(i().homedir(),`.${a}`)}let l=["db/data.sqlite","machine-id","jwt-secret","auth","db.json"];function m(a){return l.some(b=>e().existsSync(g().join(a,b)))}function n(){let a=k(j);if(m(a))return a;let b=k("9router");return m(b)?(console.warn(`[DATA_DIR] using legacy data directory '${b}' (set DATA_DIR='${a}' to switch)`),b):a}function o(){let a=process.env.DATA_DIR;if(!a)return n();if("win32"===process.platform&&/^\//.test(a))return console.warn(`[DATA_DIR] '${a}' is a Unix path on Windows → fallback to default`),n();try{return e().mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable → fallback ~/.${j}`),n();throw b}}let p=o()},73274:(a,b,c)=>{c.d(b,{T:()=>d});function d(a,b,{integer:c=!1}={}){if("number"!=typeof a||!Number.isFinite(a)||a<0||c&&!Number.isInteger(a))throw Error(`invalid Prometheus metric number: ${b}`);return Object.is(a,-0)?0:a}},92792:(a,b,c)=>{c.d(b,{I:()=>d});function d(){return"phase-production-build"===process.env.NEXT_PHASE||"phase-export"===process.env.NEXT_PHASE||"phase-static"===process.env.NEXT_PHASE}},95658:(a,b,c)=>{c.d(b,{AL:()=>j,HG:()=>i,Jh:()=>m,KQ:()=>k,Or:()=>l});var d=c(76760),e=c.n(d),f=c(73024),g=c.n(f),h=c(49120);let i=e().join(h.nJ,"db"),j=e().join(i,"data.sqlite"),k=e().join(i,"backups"),l={main:e().join(h.nJ,"db.json"),usage:e().join(h.nJ,"usage.json"),disabled:e().join(h.nJ,"disabledModels.json"),details:e().join(h.nJ,"request-details.json")};function m(){for(let a of[h.nJ,i,k])g().existsSync(a)||g().mkdirSync(a,{recursive:!0})}}};
|