n9router 0.4.42 → 0.4.44
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/README.md +1 -1
- package/app/.next/BUILD_ID +1 -1
- package/app/.next/app-path-routes-manifest.json +15 -14
- package/app/.next/build-manifest.json +3 -3
- package/app/.next/prerender-manifest.json +3 -3
- package/app/.next/required-server-files.json +1 -1
- package/app/.next/routes-manifest.json +6 -0
- package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +4 -4
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/quota/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/skills/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +3 -3
- package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_global-error/page.js +3 -3
- package/app/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_global-error.html +1 -1
- package/app/.next/server/app/_global-error.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/_not-found/page.js +2 -2
- package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_not-found.html +1 -1
- package/app/.next/server/app/_not-found.rsc +6 -6
- package/app/.next/server/app/_not-found.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/_not-found.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/api/antigravity-app/route.js +1 -1
- package/app/.next/server/app/api/antigravity-app/route.js.nft.json +1 -1
- package/app/.next/server/app/api/antigravity-app-v2/route.js +1 -1
- package/app/.next/server/app/api/antigravity-app-v2/route.js.nft.json +1 -1
- package/app/.next/server/app/api/antigravity-ide/route.js +1 -1
- package/app/.next/server/app/api/antigravity-ide/route.js.nft.json +1 -1
- package/app/.next/server/app/api/antigravity-targets/route.js +1 -1
- package/app/.next/server/app/api/antigravity-targets/route.js.nft.json +1 -1
- package/app/.next/server/app/api/antigravity-tools/import/route.js +1 -1
- package/app/.next/server/app/api/antigravity-tools/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/antigravity-tools/import-refresh-tokens/route.js +1 -1
- package/app/.next/server/app/api/antigravity-tools/import-refresh-tokens/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/login/route.js +1 -1
- package/app/.next/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/logout/route.js +1 -1
- package/app/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/status/route.js +1 -1
- package/app/.next/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/all-statuses/route.js +4 -4
- package/app/.next/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cline-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/droid-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/hermes-settings/route.js +3 -3
- package/app/.next/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/jcode-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/opencode-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/combos/route.js +1 -1
- package/app/.next/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next/server/app/api/donate/route.js +1 -1
- package/app/.next/server/app/api/donate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/health/route.js +1 -1
- package/app/.next/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next/server/app/api/init/route.js +1 -1
- package/app/.next/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next/server/app/api/internal/account-health/route.js +1 -1
- package/app/.next/server/app/api/internal/account-health/route.js.nft.json +1 -1
- package/app/.next/server/app/api/internal/request-detail/route.js +1 -1
- package/app/.next/server/app/api/internal/request-detail/route.js.nft.json +1 -1
- package/app/.next/server/app/api/internal/usage/route.js +1 -1
- package/app/.next/server/app/api/internal/usage/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/[id]/reset-usage/route.js +1 -1
- package/app/.next/server/app/api/keys/[id]/reset-usage/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/[id]/usage/route.js +1 -1
- package/app/.next/server/app/api/keys/[id]/usage/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/route.js +1 -1
- package/app/.next/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next/server/app/api/locale/route.js +1 -1
- package/app/.next/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next/server/app/api/mcp/[plugin]/message/route.js +1 -1
- package/app/.next/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next/server/app/api/mcp/[plugin]/sse/route.js +1 -1
- package/app/.next/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/alias/route.js +1 -1
- package/app/.next/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/availability/route.js +1 -1
- package/app/.next/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/custom/route.js +1 -1
- package/app/.next/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/disabled/route.js +1 -1
- package/app/.next/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/route.js +1 -1
- package/app/.next/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/test/route.js +1 -1
- package/app/.next/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +2 -2
- package/app/.next/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pricing/route.js +1 -1
- package/app/.next/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/client/route.js +1 -1
- package/app/.next/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/route.js +1 -1
- package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/validate/route.js +1 -1
- package/app/.next/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
- package/app/.next/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
- package/app/.next/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/database/route.js +1 -1
- package/app/.next/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/database/selective/route.js +1 -0
- package/app/.next/server/app/api/settings/database/selective/route.js.nft.json +1 -0
- package/app/.next/server/app/api/settings/database/selective/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/route.js +1 -1
- package/app/.next/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/shutdown/route.js +1 -1
- package/app/.next/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tags/route.js +1 -1
- package/app/.next/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/load/route.js +1 -1
- package/app/.next/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/save/route.js +1 -1
- package/app/.next/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/send/route.js +1 -1
- package/app/.next/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/translate/route.js +1 -1
- package/app/.next/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/app/.next/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/chart/route.js +1 -1
- package/app/.next/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/history/route.js +1 -1
- package/app/.next/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/logs/route.js +1 -1
- package/app/.next/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/providers/route.js +1 -1
- package/app/.next/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/report/route.js +1 -1
- package/app/.next/server/app/api/usage/report/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/stats/route.js +1 -1
- package/app/.next/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/stream/route.js +2 -2
- package/app/.next/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/images/generations/route.js +2 -2
- package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/messages/route.js +1 -1
- package/app/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/models/[kind]/route.js +1 -1
- package/app/.next/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/models/route.js +1 -1
- package/app/.next/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/responses/route.js +1 -1
- package/app/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/route.js +1 -1
- package/app/.next/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/search/route.js +1 -1
- package/app/.next/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/version/route.js +1 -1
- package/app/.next/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next/server/app/api/version/update/route.js +1 -1
- package/app/.next/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next/server/app/callback/page.js +2 -2
- package/app/.next/server/app/callback/page.js.nft.json +1 -1
- package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/callback.html +1 -1
- package/app/.next/server/app/callback.rsc +6 -6
- package/app/.next/server/app/callback.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/callback.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/callback.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/callback.segments/callback.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next/server/app/dashboard/basic-chat.rsc +8 -8
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/basic-chat.segments/_full.segment.rsc +8 -8
- package/app/.next/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next/server/app/dashboard/cli-tools.rsc +8 -8
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/cli-tools.segments/_full.segment.rsc +8 -8
- package/app/.next/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/cli-tools.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/combos.html +1 -1
- package/app/.next/server/app/dashboard/combos.rsc +8 -8
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/combos.segments/_full.segment.rsc +8 -8
- package/app/.next/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/combos.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/dashboard/combos.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/endpoint.html +1 -1
- package/app/.next/server/app/dashboard/endpoint.rsc +8 -8
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/endpoint.segments/_full.segment.rsc +8 -8
- package/app/.next/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/endpoint.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/dashboard/endpoint.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.rsc +8 -8
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +8 -8
- package/app/.next/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/mitm.html +1 -1
- package/app/.next/server/app/dashboard/mitm.rsc +8 -8
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/mitm.segments/_full.segment.rsc +8 -8
- package/app/.next/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/mitm.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/dashboard/mitm.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/profile.html +1 -1
- package/app/.next/server/app/dashboard/profile.rsc +8 -8
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/profile.segments/_full.segment.rsc +8 -8
- package/app/.next/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/profile.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/dashboard/profile.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/providers/new.html +1 -1
- package/app/.next/server/app/dashboard/providers/new.rsc +8 -8
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers/new.segments/_full.segment.rsc +8 -8
- package/app/.next/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/dashboard/providers/new.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/providers.html +1 -1
- package/app/.next/server/app/dashboard/providers.rsc +8 -8
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers.segments/_full.segment.rsc +8 -8
- package/app/.next/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/dashboard/providers.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.rsc +8 -8
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +8 -8
- package/app/.next/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/quota.html +2 -2
- package/app/.next/server/app/dashboard/quota.rsc +9 -9
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
- package/app/.next/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/quota.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/dashboard/quota.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/settings/pricing/page.js +2 -2
- package/app/.next/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.rsc +6 -6
- package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/skills.html +1 -1
- package/app/.next/server/app/dashboard/skills.rsc +8 -8
- package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/skills.segments/_full.segment.rsc +8 -8
- package/app/.next/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/skills.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/dashboard/skills.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/translator.html +1 -1
- package/app/.next/server/app/dashboard/translator.rsc +8 -8
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/translator.segments/_full.segment.rsc +8 -8
- package/app/.next/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/translator.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/dashboard/translator.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/usage.html +1 -1
- package/app/.next/server/app/dashboard/usage.rsc +8 -8
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/usage.segments/_full.segment.rsc +8 -8
- package/app/.next/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/usage.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/dashboard/usage.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/dashboard.html +1 -1
- package/app/.next/server/app/dashboard.rsc +8 -8
- package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard.segments/_full.segment.rsc +8 -8
- package/app/.next/server/app/dashboard.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/dashboard.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/favicon.ico/route.js +1 -1
- package/app/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next/server/app/index.html +1 -1
- package/app/.next/server/app/index.rsc +6 -6
- package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/index.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/index.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/index.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/landing/page.js +2 -2
- package/app/.next/server/app/landing/page.js.nft.json +1 -1
- package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/landing.html +1 -1
- package/app/.next/server/app/landing.rsc +6 -6
- package/app/.next/server/app/landing.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/landing.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/landing.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next/server/app/login/page.js +2 -2
- package/app/.next/server/app/login/page.js.nft.json +1 -1
- package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/login.html +1 -1
- package/app/.next/server/app/login.rsc +7 -7
- package/app/.next/server/app/login.segments/_full.segment.rsc +7 -7
- package/app/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/login.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/login.segments/_tree.segment.rsc +4 -4
- package/app/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/login.segments/login.segment.rsc +1 -1
- package/app/.next/server/app/manifest.webmanifest/route.js +2 -2
- package/app/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next/server/app/page.js +2 -2
- package/app/.next/server/app/page.js.nft.json +1 -1
- package/app/.next/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app-paths-manifest.json +15 -14
- package/app/.next/server/chunks/1051.js +1 -1
- package/app/.next/server/chunks/1476.js +1 -1
- package/app/.next/server/chunks/1498.js +1 -1
- package/app/.next/server/chunks/2569.js +1 -0
- package/app/.next/server/chunks/3110.js +10 -8
- package/app/.next/server/chunks/318.js +7 -7
- package/app/.next/server/chunks/3588.js +1 -1
- package/app/.next/server/chunks/365.js +1 -1
- package/app/.next/server/chunks/412.js +2 -2
- package/app/.next/server/chunks/4177.js +1 -1
- package/app/.next/server/chunks/4250.js +1 -1
- package/app/.next/server/chunks/4389.js +1 -1
- package/app/.next/server/chunks/4404.js +1 -1
- package/app/.next/server/chunks/5859.js +1 -0
- package/app/.next/server/chunks/5995.js +1 -1
- package/app/.next/server/chunks/6108.js +1 -1
- package/app/.next/server/chunks/6182.js +1 -1
- package/app/.next/server/chunks/6457.js +2 -2
- package/app/.next/server/chunks/6811.js +1 -1
- package/app/.next/server/chunks/7341.js +1 -1
- package/app/.next/server/chunks/7828.js +1 -1
- package/app/.next/server/chunks/7879.js +1 -1
- package/app/.next/server/chunks/7912.js +1 -0
- package/app/.next/server/chunks/7994.js +2 -2
- package/app/.next/server/chunks/8473.js +2 -2
- package/app/.next/server/chunks/8838.js +1 -0
- package/app/.next/server/chunks/8895.js +7 -5
- package/app/.next/server/chunks/9295.js +1 -0
- package/app/.next/server/chunks/9489.js +1 -1
- package/app/.next/server/chunks/9718.js +1 -1
- package/app/.next/server/chunks/9807.js +1 -1
- package/app/.next/server/middleware-build-manifest.js +1 -1
- package/app/.next/server/middleware.js +4 -4
- package/app/.next/server/next-font-manifest.js +1 -1
- package/app/.next/server/next-font-manifest.json +1 -1
- package/app/.next/server/pages/404.html +1 -1
- package/app/.next/server/pages/500.html +1 -1
- package/app/.next/server/server-reference-manifest.js +1 -1
- package/app/.next/server/server-reference-manifest.json +1 -1
- package/app/.next/static/chunks/1321-5ac5b0e0510e7bc1.js +1 -0
- package/app/.next/static/chunks/2589-89684df31938c4c7.js +3 -0
- package/app/.next/static/chunks/{4406-952369c1e296c5a3.js → 4406-9357c0d7c2c19d9b.js} +3 -3
- package/app/.next/static/chunks/5497-f16d2c74532d4ad3.js +7 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-5d6cf330f43257e2.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-bc4b466a331dbb31.js +6 -0
- package/app/.next/static/chunks/app/(dashboard)/{layout-1244fdc593309aa9.js → layout-5d6111c3c8c1af01.js} +1 -1
- package/app/.next/static/chunks/app/_global-error/{page-9e73c1f718efb820.js → page-663014002ada02ea.js} +1 -1
- package/app/.next/static/chunks/app/api/antigravity-app/{route-9e73c1f718efb820.js → route-663014002ada02ea.js} +1 -1
- package/app/.next/static/chunks/app/api/antigravity-app-v2/{route-9e73c1f718efb820.js → route-663014002ada02ea.js} +1 -1
- package/app/.next/static/chunks/app/api/antigravity-ide/{route-9e73c1f718efb820.js → route-663014002ada02ea.js} +1 -1
- package/app/.next/static/chunks/app/api/antigravity-targets/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/antigravity-tools/import/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/antigravity-tools/import-refresh-tokens/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/auth/login/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/auth/logout/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/auth/oidc/callback/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/auth/oidc/start/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/auth/oidc/test/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/auth/status/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/combos/[id]/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/combos/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/donate/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/health/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/init/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/internal/account-health/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/internal/request-detail/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/internal/usage/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/keys/[id]/reset-usage/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/keys/[id]/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/keys/[id]/usage/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/keys/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/locale/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/models/alias/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/models/availability/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/models/custom/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/models/disabled/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/models/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/models/test/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/pricing/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/providers/client/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/providers/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/providers/test-batch/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/providers/validate/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/settings/database/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/settings/database/selective/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/settings/require-login/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/settings/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/shutdown/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/tags/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/translator/load/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/translator/save/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/translator/send/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/translator/translate/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/disable/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/enable/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/status/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/usage/chart/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/usage/history/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/usage/logs/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/usage/providers/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/usage/report/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-details/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-logs/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stats/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stream/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1/api/chat/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1/embeddings/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1/images/generations/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/[kind]/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/info/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1/search/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/version/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/version/shutdown/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/api/version/update/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/layout-c8d22221de81bd88.js +1 -0
- package/app/.next/static/chunks/app/manifest.webmanifest/route-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/app/page-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-663014002ada02ea.js +1 -0
- package/app/.next/static/chunks/{webpack-c2bac8d80aa27536.js → webpack-3c02ff02ae0645c5.js} +1 -1
- package/app/.next/static/css/aadc31e0cf060839.css +1 -0
- package/app/.next/static/css/d73c8ccb42eb9a7d.css +1 -0
- package/app/.next/static/media/6c596dfcddeca1e9-s.p.woff2 +0 -0
- package/app/.next/static/zOWV4f8WCIf4AVjdpAv5I/_buildManifest.js +1 -0
- package/app/open-sse/config/providerModels.js +12 -1
- package/app/open-sse/config/providers.js +2 -2
- package/app/open-sse/config/runtimeConfig.js +2 -2
- package/app/open-sse/executors/base.js +6 -6
- package/app/open-sse/executors/codex.js +13 -0
- package/app/open-sse/executors/default.js +1 -4
- package/app/open-sse/executors/index.js +3 -0
- package/app/open-sse/executors/qoder.js +6 -6
- package/app/open-sse/executors/xiaomi-tokenplan.js +19 -0
- package/app/open-sse/handlers/chatCore/nonStreamingHandler.js +6 -2
- package/app/open-sse/handlers/chatCore/sseToJsonHandler.js +2 -1
- package/app/open-sse/handlers/chatCore/streamingHandler.js +6 -1
- package/app/open-sse/handlers/chatCore.js +11 -4
- package/app/open-sse/handlers/imageProviders/codex.js +2 -2
- package/app/open-sse/index.js +8 -0
- package/app/open-sse/rtk/cavemanPrompts.js +46 -3
- package/app/open-sse/services/model.js +2 -0
- package/app/open-sse/services/oauthCredentialManager.js +151 -0
- package/app/open-sse/services/tokenRefresh.js +68 -56
- package/app/open-sse/transformer/streamToJsonConverter.js +1 -1
- package/app/open-sse/translator/request/openai-to-claude.js +26 -6
- package/app/open-sse/translator/request/openai-to-kiro.js +245 -39
- package/app/open-sse/translator/response/openai-responses.js +1 -1
- package/app/open-sse/utils/claudeCloaking.js +21 -8
- package/app/open-sse/utils/reasoningContentInjector.js +4 -2
- package/app/open-sse/utils/responsesStreamHelpers.js +49 -0
- package/app/open-sse/utils/stream.js +61 -3
- package/app/open-sse/utils/streamHandler.js +26 -16
- package/app/package.json +1 -1
- package/app/public/i18n/literals/ar.json +2 -1
- package/app/public/i18n/literals/bn.json +2 -1
- package/app/public/i18n/literals/cs.json +2 -1
- package/app/public/i18n/literals/da.json +2 -1
- package/app/public/i18n/literals/de.json +2 -1
- package/app/public/i18n/literals/el.json +2 -1
- package/app/public/i18n/literals/es.json +2 -1
- package/app/public/i18n/literals/fi.json +2 -1
- package/app/public/i18n/literals/fr.json +2 -1
- package/app/public/i18n/literals/he.json +2 -1
- package/app/public/i18n/literals/hi.json +2 -1
- package/app/public/i18n/literals/hu.json +2 -1
- package/app/public/i18n/literals/id.json +2 -1
- package/app/public/i18n/literals/it.json +2 -1
- package/app/public/i18n/literals/ja.json +2 -1
- package/app/public/i18n/literals/ko.json +2 -1
- package/app/public/i18n/literals/nl.json +2 -1
- package/app/public/i18n/literals/no.json +2 -1
- package/app/public/i18n/literals/pl.json +2 -1
- package/app/public/i18n/literals/pt-BR.json +2 -1
- package/app/public/i18n/literals/pt-PT.json +2 -1
- package/app/public/i18n/literals/ro.json +2 -1
- package/app/public/i18n/literals/ru.json +2 -1
- package/app/public/i18n/literals/sv.json +2 -1
- package/app/public/i18n/literals/th.json +2 -1
- package/app/public/i18n/literals/tl.json +2 -1
- package/app/public/i18n/literals/tr.json +2 -1
- package/app/public/i18n/literals/uk.json +2 -1
- package/app/public/i18n/literals/ur.json +2 -1
- package/app/public/i18n/literals/vi.json +2 -1
- package/app/public/i18n/literals/zh-CN.json +5 -1
- package/app/public/i18n/literals/zh-TW.json +2 -1
- package/app/server.js +1 -1
- package/app/src/mitm/config.js +16 -2
- package/app/src/mitm/handlers/base.js +159 -1
- package/app/src/mitm/server.js +66 -41
- package/app/src/mitm/tokenPool.js +325 -75
- package/app/src/mitm/tokenSwapRetry.js +108 -0
- package/app/src/shared/constants/cliTools.js +15 -2
- package/app/src/shared/constants/locales.js +36 -0
- package/app/src/shared/constants/pricing.js +2 -0
- package/package.json +1 -1
- package/app/.next/server/chunks/1569.js +0 -1
- package/app/.next/server/chunks/5221.js +0 -1
- package/app/.next/server/chunks/6251.js +0 -1
- package/app/.next/server/chunks/8590.js +0 -1
- package/app/.next/server/chunks/9609.js +0 -1
- package/app/.next/static/_ov3ss73nyGZ3qfQCh00M/_buildManifest.js +0 -1
- package/app/.next/static/chunks/1321-73f571281e7cd042.js +0 -1
- package/app/.next/static/chunks/2589-d4f1afc5e9f94887.js +0 -3
- package/app/.next/static/chunks/5497-6693628388854075.js +0 -7
- package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-ff34887f020e7a37.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-90eac92387b41cd4.js +0 -6
- package/app/.next/static/chunks/app/api/antigravity-targets/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/antigravity-tools/import/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/antigravity-tools/import-refresh-tokens/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/auth/login/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/auth/logout/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/auth/oidc/callback/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/auth/oidc/start/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/auth/oidc/test/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/auth/status/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/combos/[id]/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/combos/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/donate/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/health/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/init/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/internal/account-health/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/internal/request-detail/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/internal/usage/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/keys/[id]/reset-usage/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/keys/[id]/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/keys/[id]/usage/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/keys/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/locale/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/models/alias/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/models/availability/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/models/custom/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/models/disabled/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/models/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/models/test/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/pricing/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/providers/client/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/providers/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/providers/test-batch/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/providers/validate/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/settings/database/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/settings/require-login/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/settings/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/shutdown/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/tags/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/translator/load/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/translator/save/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/translator/send/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/translator/translate/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/disable/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/enable/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/status/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/usage/chart/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/usage/history/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/usage/logs/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/usage/providers/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/usage/report/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-details/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-logs/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stats/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stream/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1/api/chat/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1/embeddings/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1/images/generations/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/[kind]/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/info/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1/search/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/version/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/version/shutdown/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/api/version/update/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/layout-35b23f7e08fe3978.js +0 -1
- package/app/.next/static/chunks/app/manifest.webmanifest/route-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/app/page-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-9e73c1f718efb820.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-9e73c1f718efb820.js +0 -1
- package/app/.next/static/css/0f03023a765dc337.css +0 -1
- package/app/.next/static/css/440b3581c215aef0.css +0 -1
- package/app/.next/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
- package/app/.next/static/media/21350d82a1f187e9-s.woff2 +0 -0
- package/app/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
- package/app/.next/static/media/ba9851c3c22cd980-s.woff2 +0 -0
- package/app/.next/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
- package/app/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
- package/app/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
- /package/app/.next/static/{_ov3ss73nyGZ3qfQCh00M → zOWV4f8WCIf4AVjdpAv5I}/_ssgManifest.js +0 -0
|
@@ -2,6 +2,7 @@ import { FORMATS } from "../../translator/formats.js";
|
|
|
2
2
|
import { needsTranslation } from "../../translator/index.js";
|
|
3
3
|
import { createSSETransformStreamWithLogger, createPassthroughStreamWithLogger } from "../../utils/stream.js";
|
|
4
4
|
import { pipeWithDisconnect } from "../../utils/streamHandler.js";
|
|
5
|
+
import { buildAbortedResponsesTerminalBytes } from "../../utils/responsesStreamHelpers.js";
|
|
5
6
|
import { buildRequestDetail, extractRequestConfig, saveUsageStats } from "./requestDetail.js";
|
|
6
7
|
import { saveRequestDetail } from "@/lib/usageDb.js";
|
|
7
8
|
|
|
@@ -43,7 +44,11 @@ export function handleStreamingResponse({ providerResponse, provider, model, sou
|
|
|
43
44
|
if (onRequestSuccess) onRequestSuccess();
|
|
44
45
|
|
|
45
46
|
const transformStream = buildTransformStream({ provider, sourceFormat, targetFormat, userAgent, reqLogger, toolNameMap, model, connectionId, body, onStreamComplete, apiKey });
|
|
46
|
-
|
|
47
|
+
|
|
48
|
+
// Responses passthrough: synthesize response.failed + [DONE] if the stream aborts/stalls before a terminal event
|
|
49
|
+
const isResponsesPassthrough = sourceFormat === FORMATS.OPENAI_RESPONSES && targetFormat === FORMATS.OPENAI_RESPONSES;
|
|
50
|
+
const onAbortTerminal = isResponsesPassthrough ? buildAbortedResponsesTerminalBytes : null;
|
|
51
|
+
const transformedBody = pipeWithDisconnect(providerResponse, transformStream, streamController, streamWatchdogEnabled, onAbortTerminal);
|
|
47
52
|
|
|
48
53
|
saveRequestDetail(buildRequestDetail({
|
|
49
54
|
provider, model, connectionId, apiKey,
|
|
@@ -5,7 +5,7 @@ import { COLORS } from "../utils/stream.js";
|
|
|
5
5
|
import { createStreamController } from "../utils/streamHandler.js";
|
|
6
6
|
import { refreshWithRetry } from "../services/tokenRefresh.js";
|
|
7
7
|
import { createRequestLogger } from "../utils/requestLogger.js";
|
|
8
|
-
import { getModelTargetFormat, getModelStrip, PROVIDER_ID_TO_ALIAS } from "../config/providerModels.js";
|
|
8
|
+
import { getModelTargetFormat, getModelStrip, getModelUpstreamId, getModelType, PROVIDER_ID_TO_ALIAS } from "../config/providerModels.js";
|
|
9
9
|
import { createErrorResult, parseUpstreamError, formatProviderError } from "../utils/error.js";
|
|
10
10
|
import { HTTP_STATUS } from "../config/runtimeConfig.js";
|
|
11
11
|
import { handleBypassRequest } from "../utils/bypassHandler.js";
|
|
@@ -41,6 +41,7 @@ export async function handleChatCore({ body, modelInfo, credentials, log, onCred
|
|
|
41
41
|
const modelTargetFormat = getModelTargetFormat(alias, model);
|
|
42
42
|
const targetFormat = modelTargetFormat || getTargetFormat(provider);
|
|
43
43
|
const stripList = getModelStrip(alias, model);
|
|
44
|
+
const upstreamModel = getModelUpstreamId(alias, model);
|
|
44
45
|
|
|
45
46
|
// Inject provider-level thinking config override (only if client hasn't set)
|
|
46
47
|
// on/off → extended type (body.thinking), none/low/medium/high → effort type (body.reasoning_effort)
|
|
@@ -89,16 +90,16 @@ export async function handleChatCore({ body, modelInfo, credentials, log, onCred
|
|
|
89
90
|
let toolNameMap;
|
|
90
91
|
if (passthrough) {
|
|
91
92
|
log?.debug?.("PASSTHROUGH", `${clientTool} → ${provider} | native lossless`);
|
|
92
|
-
translatedBody = { ...body, model };
|
|
93
|
+
translatedBody = { ...body, model: upstreamModel };
|
|
93
94
|
} else {
|
|
94
|
-
translatedBody = translateRequest(sourceFormat, targetFormat,
|
|
95
|
+
translatedBody = translateRequest(sourceFormat, targetFormat, upstreamModel, body, stream, credentials, provider, reqLogger, stripList, connectionId, clientTool);
|
|
95
96
|
if (!translatedBody) {
|
|
96
97
|
trackPendingRequest(model, provider, connectionId, false, true);
|
|
97
98
|
return createErrorResult(HTTP_STATUS.BAD_REQUEST, `Failed to translate request for ${sourceFormat} → ${targetFormat}`);
|
|
98
99
|
}
|
|
99
100
|
toolNameMap = translatedBody._toolNameMap;
|
|
100
101
|
delete translatedBody._toolNameMap;
|
|
101
|
-
translatedBody.model =
|
|
102
|
+
translatedBody.model = upstreamModel;
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
// Dedupe duplicate built-in tools when equivalent MCP tools are present (Claude clients only).
|
|
@@ -114,6 +115,12 @@ export async function handleChatCore({ body, modelInfo, credentials, log, onCred
|
|
|
114
115
|
// Covers both passthrough (source shape) and translated (target shape) flows
|
|
115
116
|
const finalFormat = passthrough ? sourceFormat : targetFormat;
|
|
116
117
|
|
|
118
|
+
// TTS models don't support tool messages/function calling
|
|
119
|
+
if (getModelType(alias, model) === "tts" && translatedBody.messages) {
|
|
120
|
+
translatedBody.messages = translatedBody.messages.filter(msg => msg.role !== "tool");
|
|
121
|
+
delete translatedBody.tools;
|
|
122
|
+
}
|
|
123
|
+
|
|
117
124
|
// RTK: compress tool_result content
|
|
118
125
|
const rtkStats = compressMessages(translatedBody, rtkEnabled);
|
|
119
126
|
const rtkLine = formatRtkLog(rtkStats);
|
|
@@ -3,8 +3,8 @@ import { randomUUID } from "node:crypto";
|
|
|
3
3
|
import { nowSec } from "./_base.js";
|
|
4
4
|
|
|
5
5
|
const CODEX_RESPONSES_URL = "https://chatgpt.com/backend-api/codex/responses";
|
|
6
|
-
const CODEX_USER_AGENT = "
|
|
7
|
-
const CODEX_VERSION = "0.
|
|
6
|
+
const CODEX_USER_AGENT = "codex_cli_rs/0.136.0";
|
|
7
|
+
const CODEX_VERSION = "0.136.0";
|
|
8
8
|
const CODEX_ORIGINATOR = "codex_cli_rs";
|
|
9
9
|
const CODEX_MODEL_SUFFIX = "-image";
|
|
10
10
|
const CODEX_REF_DETAIL = "high";
|
package/app/open-sse/index.js
CHANGED
|
@@ -59,6 +59,14 @@ export {
|
|
|
59
59
|
refreshTokenByProvider
|
|
60
60
|
} from "./services/tokenRefresh.js";
|
|
61
61
|
|
|
62
|
+
export {
|
|
63
|
+
CODEX_MAX_REFRESH_AGE_MS,
|
|
64
|
+
shouldRefreshCredentials,
|
|
65
|
+
refreshProviderCredentials,
|
|
66
|
+
mergeRefreshedCredentials,
|
|
67
|
+
mergeProviderSpecificData,
|
|
68
|
+
} from "./services/oauthCredentialManager.js";
|
|
69
|
+
|
|
62
70
|
// Handlers
|
|
63
71
|
export { handleChatCore, isTokenExpiringSoon } from "./handlers/chatCore.js";
|
|
64
72
|
export { createStreamController, pipeWithDisconnect, createDisconnectAwareStream } from "./utils/streamHandler.js";
|
|
@@ -5,31 +5,74 @@ export const CAVEMAN_LEVELS = {
|
|
|
5
5
|
LITE: "lite",
|
|
6
6
|
FULL: "full",
|
|
7
7
|
ULTRA: "ultra",
|
|
8
|
+
WENYAN_LITE: "wenyan-lite",
|
|
9
|
+
WENYAN: "wenyan",
|
|
10
|
+
WENYAN_ULTRA: "wenyan-ultra",
|
|
8
11
|
};
|
|
9
12
|
|
|
10
13
|
const SHARED_BOUNDARIES = "Code blocks, file paths, commands, errors, URLs: keep exact. Security warnings, irreversible action confirmations, multi-step ordered sequences: write normal. Resume terse style after.";
|
|
11
14
|
|
|
15
|
+
const SHARED_EXAMPLES = "Not: \"Sure! I'd be happy to help you with that. The issue you're experiencing is likely caused by...\" Yes: \"Bug in auth middleware. Token expiry check use `<` not `<=`. Fix:\"";
|
|
16
|
+
|
|
17
|
+
const SHARED_AUTO_CLARITY = "Auto-Clarity: drop caveman for security warnings, irreversible actions, multi-step sequences where fragment ambiguity risks misread, or when user repeats a question. Resume after the clear part.";
|
|
18
|
+
|
|
19
|
+
const SHARED_PERSISTENCE = "ACTIVE EVERY RESPONSE. No revert after many turns. No filler drift. Still active if unsure.";
|
|
20
|
+
|
|
12
21
|
export const CAVEMAN_PROMPTS = {
|
|
13
22
|
[CAVEMAN_LEVELS.LITE]: [
|
|
14
23
|
"Respond tersely. Keep grammar and full sentences but drop filler, hedging and pleasantries (just/really/basically/sure/of course/I'd be happy to).",
|
|
15
24
|
"Pattern: state the thing, the action, the reason. Then next step.",
|
|
25
|
+
SHARED_EXAMPLES,
|
|
16
26
|
SHARED_BOUNDARIES,
|
|
17
|
-
|
|
27
|
+
SHARED_AUTO_CLARITY,
|
|
28
|
+
SHARED_PERSISTENCE,
|
|
18
29
|
].join(" "),
|
|
19
30
|
|
|
20
31
|
[CAVEMAN_LEVELS.FULL]: [
|
|
21
32
|
"Respond like terse caveman. All technical substance stay exact, only fluff die.",
|
|
22
33
|
"Drop: articles (a/an/the), filler (just/really/basically/actually/simply), pleasantries, hedging. Fragments OK. Short synonyms (big not extensive, fix not implement a solution for).",
|
|
23
34
|
"Pattern: [thing] [action] [reason]. [next step].",
|
|
35
|
+
SHARED_EXAMPLES,
|
|
24
36
|
SHARED_BOUNDARIES,
|
|
25
|
-
|
|
37
|
+
SHARED_AUTO_CLARITY,
|
|
38
|
+
SHARED_PERSISTENCE,
|
|
26
39
|
].join(" "),
|
|
27
40
|
|
|
28
41
|
[CAVEMAN_LEVELS.ULTRA]: [
|
|
29
42
|
"Respond ultra-terse. Maximum compression. Telegraphic.",
|
|
30
43
|
"Abbreviate (DB/auth/config/req/res/fn/impl), strip conjunctions, use arrows for causality (X → Y). One word when one word enough.",
|
|
31
44
|
"Pattern: [thing] → [result]. [fix].",
|
|
45
|
+
SHARED_EXAMPLES,
|
|
46
|
+
SHARED_BOUNDARIES,
|
|
47
|
+
SHARED_AUTO_CLARITY,
|
|
48
|
+
SHARED_PERSISTENCE,
|
|
49
|
+
].join(" "),
|
|
50
|
+
|
|
51
|
+
[CAVEMAN_LEVELS.WENYAN_LITE]: [
|
|
52
|
+
"Respond semi-classical. Drop filler/hedging but keep grammar structure, classical register.",
|
|
53
|
+
"Use classical Chinese sentence patterns where natural. Keep English for technical terms.",
|
|
54
|
+
SHARED_EXAMPLES,
|
|
55
|
+
SHARED_BOUNDARIES,
|
|
56
|
+
SHARED_AUTO_CLARITY,
|
|
57
|
+
SHARED_PERSISTENCE,
|
|
58
|
+
].join(" "),
|
|
59
|
+
|
|
60
|
+
[CAVEMAN_LEVELS.WENYAN]: [
|
|
61
|
+
"Respond classical Chinese (文言文). Maximum classical terseness. 80-90% character reduction.",
|
|
62
|
+
"Classical sentence patterns, verbs precede objects, subjects often omitted, classical particles (之/乃/為/其).",
|
|
63
|
+
"Keep English for code, commands, function names, API names, error strings.",
|
|
64
|
+
SHARED_EXAMPLES,
|
|
65
|
+
SHARED_BOUNDARIES,
|
|
66
|
+
SHARED_AUTO_CLARITY,
|
|
67
|
+
SHARED_PERSISTENCE,
|
|
68
|
+
].join(" "),
|
|
69
|
+
|
|
70
|
+
[CAVEMAN_LEVELS.WENYAN_ULTRA]: [
|
|
71
|
+
"Respond extreme classical compression (文言文 ultra). Maximum compression, ultra terse.",
|
|
72
|
+
"Same classical rules as wenyan-full but even more compressed. One classical particle per clause.",
|
|
73
|
+
SHARED_EXAMPLES,
|
|
32
74
|
SHARED_BOUNDARIES,
|
|
33
|
-
|
|
75
|
+
SHARED_AUTO_CLARITY,
|
|
76
|
+
SHARED_PERSISTENCE,
|
|
34
77
|
].join(" "),
|
|
35
78
|
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getRefreshLeadMs,
|
|
3
|
+
isUnrecoverableRefreshError,
|
|
4
|
+
refreshTokenByProvider,
|
|
5
|
+
} from "./tokenRefresh.js";
|
|
6
|
+
|
|
7
|
+
export const CODEX_MAX_REFRESH_AGE_MS = 8 * 24 * 60 * 60 * 1000;
|
|
8
|
+
|
|
9
|
+
const refreshLocks = new Map();
|
|
10
|
+
|
|
11
|
+
function parseTimeMs(value) {
|
|
12
|
+
if (value === undefined || value === null || value === "") return null;
|
|
13
|
+
if (typeof value === "number") {
|
|
14
|
+
return value < 1e12 ? value * 1000 : value;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const parsed = new Date(value).getTime();
|
|
18
|
+
return Number.isFinite(parsed) ? parsed : null;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function toExpiresAt(expiresIn, nowMs = Date.now()) {
|
|
22
|
+
if (!expiresIn) return null;
|
|
23
|
+
return new Date(nowMs + expiresIn * 1000).toISOString();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function getCredentialExpiryMs(credentials) {
|
|
27
|
+
return parseTimeMs(credentials?.expiresAt ?? credentials?.tokenExpiresAt);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function getCredentialLastRefreshMs(credentials) {
|
|
31
|
+
return parseTimeMs(
|
|
32
|
+
credentials?.lastRefreshAt ??
|
|
33
|
+
credentials?.lastRefresh ??
|
|
34
|
+
credentials?.providerSpecificData?.lastRefreshAt
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function isCodexRefreshStale(credentials, nowMs = Date.now()) {
|
|
39
|
+
const lastRefreshMs = getCredentialLastRefreshMs(credentials);
|
|
40
|
+
return !lastRefreshMs || nowMs - lastRefreshMs >= CODEX_MAX_REFRESH_AGE_MS;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function shouldRefreshCredentials(provider, credentials, nowMs = Date.now()) {
|
|
44
|
+
if (!credentials) return false;
|
|
45
|
+
|
|
46
|
+
const expiresAtMs = getCredentialExpiryMs(credentials);
|
|
47
|
+
if (expiresAtMs !== null && expiresAtMs - nowMs < getRefreshLeadMs(provider)) {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (provider === "codex" && credentials.refreshToken && isCodexRefreshStale(credentials, nowMs)) {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function mergeProviderSpecificData(existing, next) {
|
|
59
|
+
if (!next || typeof next !== "object") return existing;
|
|
60
|
+
return {
|
|
61
|
+
...(existing || {}),
|
|
62
|
+
...next,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function mergeRefreshedCredentials(provider, currentCredentials, refreshedCredentials, nowMs = Date.now()) {
|
|
67
|
+
if (!refreshedCredentials) return null;
|
|
68
|
+
if (isUnrecoverableRefreshError(refreshedCredentials)) return refreshedCredentials;
|
|
69
|
+
|
|
70
|
+
const next = {};
|
|
71
|
+
const nowIso = new Date(nowMs).toISOString();
|
|
72
|
+
|
|
73
|
+
if (refreshedCredentials.accessToken) next.accessToken = refreshedCredentials.accessToken;
|
|
74
|
+
if (refreshedCredentials.apiKey) next.apiKey = refreshedCredentials.apiKey;
|
|
75
|
+
if (refreshedCredentials.token) next.token = refreshedCredentials.token;
|
|
76
|
+
|
|
77
|
+
const refreshToken = refreshedCredentials.refreshToken ?? currentCredentials?.refreshToken;
|
|
78
|
+
if (refreshToken) next.refreshToken = refreshToken;
|
|
79
|
+
|
|
80
|
+
const idToken = refreshedCredentials.idToken ?? currentCredentials?.idToken;
|
|
81
|
+
if (idToken) next.idToken = idToken;
|
|
82
|
+
|
|
83
|
+
if (refreshedCredentials.expiresIn) {
|
|
84
|
+
next.expiresIn = refreshedCredentials.expiresIn;
|
|
85
|
+
next.expiresAt = toExpiresAt(refreshedCredentials.expiresIn, nowMs);
|
|
86
|
+
} else if (refreshedCredentials.expiresAt) {
|
|
87
|
+
next.expiresAt = refreshedCredentials.expiresAt;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (refreshedCredentials.projectId) next.projectId = refreshedCredentials.projectId;
|
|
91
|
+
|
|
92
|
+
if (refreshedCredentials.providerSpecificData) {
|
|
93
|
+
next.providerSpecificData = mergeProviderSpecificData(
|
|
94
|
+
currentCredentials?.providerSpecificData,
|
|
95
|
+
refreshedCredentials.providerSpecificData
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (refreshedCredentials.copilotToken) next.copilotToken = refreshedCredentials.copilotToken;
|
|
100
|
+
if (refreshedCredentials.copilotTokenExpiresAt) {
|
|
101
|
+
next.copilotTokenExpiresAt = refreshedCredentials.copilotTokenExpiresAt;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (
|
|
105
|
+
provider === "codex" ||
|
|
106
|
+
next.accessToken ||
|
|
107
|
+
next.apiKey ||
|
|
108
|
+
next.token ||
|
|
109
|
+
next.refreshToken ||
|
|
110
|
+
next.copilotToken
|
|
111
|
+
) {
|
|
112
|
+
next.lastRefreshAt = refreshedCredentials.lastRefreshAt || nowIso;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return next;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function getRefreshLockKey(provider, credentials) {
|
|
119
|
+
const stableId =
|
|
120
|
+
credentials?.connectionId ||
|
|
121
|
+
credentials?.id ||
|
|
122
|
+
credentials?.email ||
|
|
123
|
+
credentials?.name ||
|
|
124
|
+
credentials?.refreshToken?.slice?.(-16) ||
|
|
125
|
+
"default";
|
|
126
|
+
return `${provider}:${stableId}`;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export async function withCredentialRefreshLock(provider, credentials, refreshFn) {
|
|
130
|
+
const key = getRefreshLockKey(provider, credentials);
|
|
131
|
+
const existing = refreshLocks.get(key);
|
|
132
|
+
if (existing) return existing;
|
|
133
|
+
|
|
134
|
+
const pending = Promise.resolve()
|
|
135
|
+
.then(refreshFn)
|
|
136
|
+
.finally(() => {
|
|
137
|
+
refreshLocks.delete(key);
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
refreshLocks.set(key, pending);
|
|
141
|
+
return pending;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export async function refreshProviderCredentials(provider, credentials, log) {
|
|
145
|
+
if (!credentials) return null;
|
|
146
|
+
|
|
147
|
+
return withCredentialRefreshLock(provider, credentials, async () => {
|
|
148
|
+
const refreshed = await refreshTokenByProvider(provider, credentials, log);
|
|
149
|
+
return mergeRefreshedCredentials(provider, credentials, refreshed);
|
|
150
|
+
});
|
|
151
|
+
}
|
|
@@ -277,6 +277,27 @@ export async function refreshQwenToken(refreshToken, log) {
|
|
|
277
277
|
}, log);
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
+
export function classifyOAuthRefreshError(errorText = "", status = 0) {
|
|
281
|
+
let parsed = null;
|
|
282
|
+
try {
|
|
283
|
+
parsed = errorText ? JSON.parse(errorText) : null;
|
|
284
|
+
} catch {
|
|
285
|
+
parsed = null;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
const code = parsed?.error?.code || parsed?.error || parsed?.error_code || "";
|
|
289
|
+
const description = parsed?.error_description || parsed?.message || errorText || "";
|
|
290
|
+
const combined = `${code} ${description}`.toLowerCase();
|
|
291
|
+
const permanent = [
|
|
292
|
+
"refresh_token_expired",
|
|
293
|
+
"refresh_token_reused",
|
|
294
|
+
"refresh_token_invalidated",
|
|
295
|
+
"invalid_grant",
|
|
296
|
+
].some((marker) => combined.includes(marker));
|
|
297
|
+
|
|
298
|
+
return { status, code, description, permanent };
|
|
299
|
+
}
|
|
300
|
+
|
|
280
301
|
/**
|
|
281
302
|
* Specialized refresh for Codex (OpenAI) OAuth tokens.
|
|
282
303
|
* OpenAI uses rotating (one-time-use) refresh tokens.
|
|
@@ -286,68 +307,59 @@ export async function refreshQwenToken(refreshToken, log) {
|
|
|
286
307
|
export async function refreshCodexToken(refreshToken, log) {
|
|
287
308
|
if (!refreshToken) return null;
|
|
288
309
|
return dedupRefresh("codex", refreshToken, async () => {
|
|
289
|
-
try {
|
|
290
|
-
const response = await fetch(OAUTH_ENDPOINTS.openai.token, {
|
|
291
|
-
method: "POST",
|
|
292
|
-
headers: {
|
|
293
|
-
"Content-Type": "application/x-www-form-urlencoded",
|
|
294
|
-
Accept: "application/json",
|
|
295
|
-
},
|
|
296
|
-
body: new URLSearchParams({
|
|
297
|
-
grant_type: "refresh_token",
|
|
298
|
-
refresh_token: refreshToken,
|
|
299
|
-
client_id: PROVIDERS.codex.clientId,
|
|
300
|
-
scope: "openid profile email offline_access",
|
|
301
|
-
}),
|
|
302
|
-
});
|
|
303
|
-
|
|
304
|
-
if (!response.ok) {
|
|
305
|
-
const errorText = await response.text();
|
|
306
|
-
|
|
307
|
-
// Detect unrecoverable errors (token reused/expired) — Auth0 revokes whole family on retry
|
|
308
|
-
let errorCode = null;
|
|
309
310
|
try {
|
|
310
|
-
const
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
status: response.status,
|
|
322
|
-
errorCode,
|
|
311
|
+
const response = await fetch(OAUTH_ENDPOINTS.openai.token, {
|
|
312
|
+
method: "POST",
|
|
313
|
+
headers: {
|
|
314
|
+
"Content-Type": "application/json",
|
|
315
|
+
Accept: "application/json",
|
|
316
|
+
},
|
|
317
|
+
body: JSON.stringify({
|
|
318
|
+
client_id: PROVIDERS.codex.clientId,
|
|
319
|
+
grant_type: "refresh_token",
|
|
320
|
+
refresh_token: refreshToken,
|
|
321
|
+
}),
|
|
323
322
|
});
|
|
324
|
-
return { error: "unrecoverable_refresh_error", code: errorCode };
|
|
325
|
-
}
|
|
326
323
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
324
|
+
if (!response.ok) {
|
|
325
|
+
const errorText = await response.text();
|
|
326
|
+
const failure = classifyOAuthRefreshError(errorText, response.status);
|
|
327
|
+
if (failure.permanent) {
|
|
328
|
+
log?.error?.("TOKEN_REFRESH", "Codex refresh token already used or invalid. Re-auth required.", {
|
|
329
|
+
status: response.status,
|
|
330
|
+
code: failure.code,
|
|
331
|
+
});
|
|
332
|
+
return { error: "unrecoverable_refresh_error", code: failure.code };
|
|
333
|
+
}
|
|
333
334
|
|
|
334
|
-
|
|
335
|
+
log?.error?.("TOKEN_REFRESH", "Failed to refresh Codex token", {
|
|
336
|
+
status: response.status,
|
|
337
|
+
error: errorText,
|
|
338
|
+
code: failure.code,
|
|
339
|
+
permanent: failure.permanent,
|
|
340
|
+
});
|
|
341
|
+
return null;
|
|
342
|
+
}
|
|
335
343
|
|
|
336
|
-
|
|
337
|
-
hasNewAccessToken: !!tokens.access_token,
|
|
338
|
-
hasNewRefreshToken: !!tokens.refresh_token,
|
|
339
|
-
expiresIn: tokens.expires_in,
|
|
340
|
-
});
|
|
344
|
+
const tokens = await response.json();
|
|
341
345
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
346
|
+
log?.info?.("TOKEN_REFRESH", "Successfully refreshed Codex token", {
|
|
347
|
+
hasNewAccessToken: !!tokens.access_token,
|
|
348
|
+
hasNewRefreshToken: !!tokens.refresh_token,
|
|
349
|
+
hasIdToken: !!tokens.id_token,
|
|
350
|
+
expiresIn: tokens.expires_in,
|
|
351
|
+
});
|
|
352
|
+
|
|
353
|
+
return {
|
|
354
|
+
accessToken: tokens.access_token,
|
|
355
|
+
refreshToken: tokens.refresh_token || refreshToken,
|
|
356
|
+
idToken: tokens.id_token,
|
|
357
|
+
expiresIn: tokens.expires_in,
|
|
358
|
+
};
|
|
359
|
+
} catch (error) {
|
|
360
|
+
log?.error?.("TOKEN_REFRESH", `Network error refreshing Codex token: ${error.message}`);
|
|
361
|
+
return null;
|
|
362
|
+
}
|
|
351
363
|
}, log);
|
|
352
364
|
}
|
|
353
365
|
|
|
@@ -27,7 +27,7 @@ function processSSEMessage(msg, state) {
|
|
|
27
27
|
state.created = parsed.response?.created_at || state.created;
|
|
28
28
|
} else if (eventType === "response.output_item.done") {
|
|
29
29
|
state.items.set(parsed.output_index ?? 0, parsed.item);
|
|
30
|
-
} else if (eventType === "response.completed") {
|
|
30
|
+
} else if (eventType === "response.completed" || eventType === "response.done") {
|
|
31
31
|
state.status = "completed";
|
|
32
32
|
if (parsed.response?.usage) {
|
|
33
33
|
state.usage.input_tokens = parsed.response.usage.input_tokens || 0;
|
|
@@ -291,15 +291,35 @@ function getContentBlocksFromMessage(msg, toolNameMap = new Map()) {
|
|
|
291
291
|
return blocks;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
// Convert OpenAI tool choice to Claude format
|
|
294
|
+
// Convert OpenAI tool choice to Claude format.
|
|
295
|
+
// Claude only accepts tool_choice.type of "auto" | "any" | "tool" | "none";
|
|
296
|
+
// anything else (e.g. OpenAI's "function") triggers a 400, so we never pass an
|
|
297
|
+
// unrecognized type through.
|
|
298
|
+
const CLAUDE_TOOL_CHOICE_TYPES = new Set(["auto", "any", "tool", "none"]);
|
|
299
|
+
|
|
295
300
|
function convertOpenAIToolChoice(choice) {
|
|
296
301
|
if (!choice) return { type: "auto" };
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
if (choice === "
|
|
300
|
-
|
|
301
|
-
return { type: "
|
|
302
|
+
|
|
303
|
+
// OpenAI string forms: "auto" | "none" | "required"
|
|
304
|
+
if (typeof choice === "string") {
|
|
305
|
+
if (choice === "required") return { type: "any" };
|
|
306
|
+
return { type: "auto" }; // "auto", "none", or anything unexpected
|
|
302
307
|
}
|
|
308
|
+
|
|
309
|
+
if (typeof choice === "object") {
|
|
310
|
+
// OpenAI forced tool: { type: "function", function: { name } }.
|
|
311
|
+
// Checked before the native pass-through below, because the OpenAI shape
|
|
312
|
+
// also carries a `.type` ("function") that Claude rejects.
|
|
313
|
+
if (choice.function?.name) {
|
|
314
|
+
return { type: "tool", name: choice.function.name };
|
|
315
|
+
}
|
|
316
|
+
// Already Claude-native — only pass through types Claude actually accepts,
|
|
317
|
+
// so a malformed or unknown type can never leak into the upstream request.
|
|
318
|
+
if (CLAUDE_TOOL_CHOICE_TYPES.has(choice.type)) {
|
|
319
|
+
return choice;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
303
323
|
return { type: "auto" };
|
|
304
324
|
}
|
|
305
325
|
|