n9router 0.4.43 → 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 +13 -12
- 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 +2 -2
- 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 +13 -12
- 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-abc51cf55210026c.js → 4406-9357c0d7c2c19d9b.js} +6 -6
- 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/tokenPool.js +206 -81
- 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/chunks/1321-03808de72db0a766.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/958bcd529c8d4b7c.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/p_zZZ7bGM2zUCztNMVhuB/_buildManifest.js +0 -1
- /package/app/.next/static/{p_zZZ7bGM2zUCztNMVhuB → zOWV4f8WCIf4AVjdpAv5I}/_ssgManifest.js +0 -0
|
@@ -12,22 +12,182 @@ import {
|
|
|
12
12
|
KIRO_AGENTIC_SYSTEM_PROMPT
|
|
13
13
|
} from "../../config/kiroConstants.js";
|
|
14
14
|
|
|
15
|
+
/** Render a single tool call as a readable text line. */
|
|
16
|
+
function toolCallToText(name, input) {
|
|
17
|
+
let argStr;
|
|
18
|
+
try {
|
|
19
|
+
argStr = typeof input === "string" ? input : JSON.stringify(input ?? {});
|
|
20
|
+
} catch {
|
|
21
|
+
argStr = "{}";
|
|
22
|
+
}
|
|
23
|
+
return `[Tool call: ${name || "unknown"}(${argStr})]`;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Render a tool result (string or content-block array) as a text line. */
|
|
27
|
+
function toolResultToText(content) {
|
|
28
|
+
const text = Array.isArray(content)
|
|
29
|
+
? content.map(c => (typeof c === "string" ? c : c.text || "")).join("\n")
|
|
30
|
+
: (typeof content === "string" ? content : "");
|
|
31
|
+
return `[Tool result: ${text}]`;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Flatten all tool calls/results in a conversation into plain text.
|
|
36
|
+
*
|
|
37
|
+
* Kiro's schema validator requires a non-empty
|
|
38
|
+
* currentMessage.userInputMessageContext.tools array whenever the history
|
|
39
|
+
* references any tool use; otherwise it returns "Improperly formed request"
|
|
40
|
+
* (HTTP 400). A client can hit this by omitting the `tools` array on a
|
|
41
|
+
* follow-up request — typically after client-side compaction (e.g. OpenCode).
|
|
42
|
+
*
|
|
43
|
+
* Rather than fabricate stub tool specs — which would advertise tool-calling
|
|
44
|
+
* capability the client never requested and may not handle, risking a phantom
|
|
45
|
+
* tool call on an otherwise plain turn — we collapse the tool interaction into
|
|
46
|
+
* text. The request stays honest, and since no structured tool content
|
|
47
|
+
* remains, the validator's "tools required" rule never fires.
|
|
48
|
+
*
|
|
49
|
+
* Only invoked when the client did NOT send tools; when tools are present the
|
|
50
|
+
* structured form is preserved.
|
|
51
|
+
*/
|
|
52
|
+
function flattenToolInteractions(messages) {
|
|
53
|
+
const out = [];
|
|
54
|
+
|
|
55
|
+
for (const msg of messages) {
|
|
56
|
+
// OpenAI tool-result message → user text line
|
|
57
|
+
if (msg.role === "tool") {
|
|
58
|
+
out.push({ role: "user", content: toolResultToText(msg.content) });
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (msg.role === "assistant") {
|
|
63
|
+
const parts = [];
|
|
64
|
+
if (Array.isArray(msg.content)) {
|
|
65
|
+
for (const c of msg.content) {
|
|
66
|
+
if (c.type === "tool_use") {
|
|
67
|
+
parts.push(toolCallToText(c.name, c.input));
|
|
68
|
+
} else if (c.type === "text" || c.text) {
|
|
69
|
+
parts.push(c.text || "");
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
} else if (typeof msg.content === "string") {
|
|
73
|
+
parts.push(msg.content);
|
|
74
|
+
}
|
|
75
|
+
for (const tc of msg.tool_calls || []) {
|
|
76
|
+
parts.push(toolCallToText(tc.function?.name, tc.function?.arguments));
|
|
77
|
+
}
|
|
78
|
+
out.push({ role: "assistant", content: parts.filter(Boolean).join("\n") });
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// User messages: replace tool_result blocks with text, keep text + images.
|
|
83
|
+
if (msg.role === "user" && Array.isArray(msg.content)) {
|
|
84
|
+
const newContent = msg.content.map(c =>
|
|
85
|
+
c.type === "tool_result"
|
|
86
|
+
? { type: "text", text: toolResultToText(c.content) }
|
|
87
|
+
: c
|
|
88
|
+
);
|
|
89
|
+
out.push({ ...msg, content: newContent });
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
out.push(msg);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return out;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Reconcile orphaned toolResults — those whose toolUseId has no matching
|
|
101
|
+
* toolUse in any assistant message. This happens when client-side compaction
|
|
102
|
+
* truncates the conversation and removes the assistant message containing the
|
|
103
|
+
* tool_use, but keeps the user message with the corresponding tool_result.
|
|
104
|
+
*
|
|
105
|
+
* A dangling structured reference makes Kiro return 400, so it must be removed.
|
|
106
|
+
* But the client deliberately kept the result content through compaction, so
|
|
107
|
+
* rather than discard it we fold it back into the user message as text — the
|
|
108
|
+
* same shape flattenToolInteractions() produces. The 400 trigger (the
|
|
109
|
+
* structured reference) is gone; the content survives.
|
|
110
|
+
*
|
|
111
|
+
* `messages` is every carrier that can hold toolResults — both history items
|
|
112
|
+
* and the popped-out currentMessage (orphans can land on either).
|
|
113
|
+
*/
|
|
114
|
+
function reconcileOrphanedToolResults(history, currentMessage) {
|
|
115
|
+
// Phase 1: collect all valid toolUseIds from assistant messages in history.
|
|
116
|
+
// (currentMessage is always a user turn, so it carries no toolUses.)
|
|
117
|
+
const validIds = new Set();
|
|
118
|
+
for (const h of history) {
|
|
119
|
+
const arm = h.assistantResponseMessage;
|
|
120
|
+
if (!arm) continue;
|
|
121
|
+
for (const tu of arm.toolUses || []) {
|
|
122
|
+
if (tu.toolUseId) validIds.add(tu.toolUseId);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Phase 2: across history + currentMessage, keep results with a matching
|
|
127
|
+
// toolUse and salvage the rest as text.
|
|
128
|
+
const carriers = currentMessage ? [...history, currentMessage] : history;
|
|
129
|
+
for (const item of carriers) {
|
|
130
|
+
const uim = item.userInputMessage;
|
|
131
|
+
const ctx = uim?.userInputMessageContext;
|
|
132
|
+
if (!ctx?.toolResults?.length) continue;
|
|
133
|
+
|
|
134
|
+
const kept = [];
|
|
135
|
+
const salvaged = [];
|
|
136
|
+
for (const tr of ctx.toolResults) {
|
|
137
|
+
if (validIds.has(tr.toolUseId)) {
|
|
138
|
+
kept.push(tr);
|
|
139
|
+
} else {
|
|
140
|
+
salvaged.push(toolResultToText(tr.content));
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if (salvaged.length === 0) continue; // no orphans — leave untouched
|
|
145
|
+
|
|
146
|
+
// Fold orphaned result content into the user text so it is not lost
|
|
147
|
+
const extra = salvaged.join("\n");
|
|
148
|
+
uim.content = uim.content ? `${uim.content}\n\n${extra}` : extra;
|
|
149
|
+
|
|
150
|
+
ctx.toolResults = kept;
|
|
151
|
+
if (kept.length === 0 && !ctx.tools?.length) {
|
|
152
|
+
delete uim.userInputMessageContext;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Safely parse JSON string, returning fallback on failure.
|
|
159
|
+
*/
|
|
160
|
+
function safeJSONParse(str, fallback) {
|
|
161
|
+
if (typeof str !== "string") return str ?? fallback;
|
|
162
|
+
try { return JSON.parse(str); } catch { return fallback; }
|
|
163
|
+
}
|
|
164
|
+
|
|
15
165
|
/**
|
|
16
166
|
* Convert OpenAI messages to Kiro format
|
|
17
|
-
* Rules: system/tool/user -> user role, merge consecutive same roles
|
|
167
|
+
* Rules: system/tool/user -> user role, merge consecutive same roles.
|
|
168
|
+
*
|
|
169
|
+
* Returns { history, currentMessage }.
|
|
18
170
|
*/
|
|
19
171
|
function convertMessages(messages, tools, model) {
|
|
20
172
|
let history = [];
|
|
21
173
|
let currentMessage = null;
|
|
22
|
-
|
|
174
|
+
|
|
175
|
+
const clientProvidedTools = tools && tools.length > 0;
|
|
176
|
+
|
|
177
|
+
// When the client did not send tools, flatten any tool calls/results in the
|
|
178
|
+
// history into plain text (see flattenToolInteractions). This keeps the
|
|
179
|
+
// request honest and sidesteps Kiro's "tools required" 400, since no
|
|
180
|
+
// structured tool content survives to trigger it.
|
|
181
|
+
if (!clientProvidedTools) {
|
|
182
|
+
messages = flattenToolInteractions(messages);
|
|
183
|
+
}
|
|
184
|
+
|
|
23
185
|
let pendingUserContent = [];
|
|
24
186
|
let pendingAssistantContent = [];
|
|
25
187
|
let pendingToolResults = [];
|
|
26
188
|
let pendingImages = [];
|
|
27
189
|
let currentRole = null;
|
|
28
|
-
|
|
29
|
-
// Image support is pre-filtered by caps in translateRequest before reaching here
|
|
30
|
-
const supportsImages = true;
|
|
190
|
+
let toolsInjectedToFirstUserMsg = false;
|
|
31
191
|
|
|
32
192
|
const flushPending = () => {
|
|
33
193
|
if (currentRole === "user") {
|
|
@@ -49,20 +209,23 @@ function convertMessages(messages, tools, model) {
|
|
|
49
209
|
toolResults: pendingToolResults
|
|
50
210
|
};
|
|
51
211
|
}
|
|
52
|
-
|
|
53
|
-
// Add tools to
|
|
54
|
-
|
|
212
|
+
|
|
213
|
+
// Add tools to the user message that has no preceding assistant messages,
|
|
214
|
+
// OR the first user message (whichever comes first after any opening
|
|
215
|
+
// assistant messages). We track whether any user message has already
|
|
216
|
+
// received tools via a flag on the history array.
|
|
217
|
+
if (clientProvidedTools && !toolsInjectedToFirstUserMsg) {
|
|
55
218
|
if (!userMsg.userInputMessage.userInputMessageContext) {
|
|
56
219
|
userMsg.userInputMessage.userInputMessageContext = {};
|
|
57
220
|
}
|
|
58
221
|
userMsg.userInputMessage.userInputMessageContext.tools = tools.map(t => {
|
|
59
222
|
const name = t.function?.name || t.name;
|
|
60
223
|
let description = t.function?.description || t.description || "";
|
|
61
|
-
|
|
224
|
+
|
|
62
225
|
if (!description.trim()) {
|
|
63
226
|
description = `Tool: ${name}`;
|
|
64
227
|
}
|
|
65
|
-
|
|
228
|
+
|
|
66
229
|
const schema = t.function?.parameters || t.parameters || t.input_schema || {};
|
|
67
230
|
// Normalize schema: Kiro requires required[] and proper type/properties
|
|
68
231
|
const normalizedSchema = Object.keys(schema).length === 0
|
|
@@ -77,8 +240,9 @@ function convertMessages(messages, tools, model) {
|
|
|
77
240
|
}
|
|
78
241
|
};
|
|
79
242
|
});
|
|
243
|
+
toolsInjectedToFirstUserMsg = true;
|
|
80
244
|
}
|
|
81
|
-
|
|
245
|
+
|
|
82
246
|
history.push(userMsg);
|
|
83
247
|
currentMessage = userMsg;
|
|
84
248
|
pendingUserContent = [];
|
|
@@ -99,18 +263,18 @@ function convertMessages(messages, tools, model) {
|
|
|
99
263
|
for (let i = 0; i < messages.length; i++) {
|
|
100
264
|
const msg = messages[i];
|
|
101
265
|
let role = msg.role;
|
|
102
|
-
|
|
266
|
+
|
|
103
267
|
// Normalize: system/tool -> user
|
|
104
268
|
if (role === "system" || role === "tool") {
|
|
105
269
|
role = "user";
|
|
106
270
|
}
|
|
107
|
-
|
|
271
|
+
|
|
108
272
|
// If role changes, flush pending
|
|
109
273
|
if (role !== currentRole && currentRole !== null) {
|
|
110
274
|
flushPending();
|
|
111
275
|
}
|
|
112
276
|
currentRole = role;
|
|
113
|
-
|
|
277
|
+
|
|
114
278
|
if (role === "user") {
|
|
115
279
|
// Extract content
|
|
116
280
|
let content = "";
|
|
@@ -121,7 +285,7 @@ function convertMessages(messages, tools, model) {
|
|
|
121
285
|
for (const c of msg.content) {
|
|
122
286
|
if (c.type === "text" || c.text) {
|
|
123
287
|
textParts.push(c.text || "");
|
|
124
|
-
} else if (
|
|
288
|
+
} else if (c.type === "image_url") {
|
|
125
289
|
// OpenAI format: image_url.url with data URI
|
|
126
290
|
const url = c.image_url?.url || "";
|
|
127
291
|
const base64Match = url.match(/^data:([^;]+);base64,(.+)$/);
|
|
@@ -133,7 +297,7 @@ function convertMessages(messages, tools, model) {
|
|
|
133
297
|
// Kiro only supports base64 — fallback to URL text
|
|
134
298
|
textParts.push(`[Image: ${url}]`);
|
|
135
299
|
}
|
|
136
|
-
} else if (
|
|
300
|
+
} else if (c.type === "image") {
|
|
137
301
|
// Claude format: source.type = "base64", source.media_type, source.data
|
|
138
302
|
if (c.source?.type === "base64" && c.source?.data) {
|
|
139
303
|
const mediaType = c.source.media_type || "image/png";
|
|
@@ -143,15 +307,15 @@ function convertMessages(messages, tools, model) {
|
|
|
143
307
|
}
|
|
144
308
|
}
|
|
145
309
|
content = textParts.join("\n");
|
|
146
|
-
|
|
310
|
+
|
|
147
311
|
// Check for tool_result blocks
|
|
148
312
|
const toolResultBlocks = msg.content.filter(c => c.type === "tool_result");
|
|
149
313
|
if (toolResultBlocks.length > 0) {
|
|
150
314
|
toolResultBlocks.forEach(block => {
|
|
151
|
-
const text = Array.isArray(block.content)
|
|
315
|
+
const text = Array.isArray(block.content)
|
|
152
316
|
? block.content.map(c => c.text || "").join("\n")
|
|
153
317
|
: (typeof block.content === "string" ? block.content : "");
|
|
154
|
-
|
|
318
|
+
|
|
155
319
|
pendingToolResults.push({
|
|
156
320
|
toolUseId: block.tool_use_id,
|
|
157
321
|
status: "success",
|
|
@@ -160,7 +324,7 @@ function convertMessages(messages, tools, model) {
|
|
|
160
324
|
});
|
|
161
325
|
}
|
|
162
326
|
}
|
|
163
|
-
|
|
327
|
+
|
|
164
328
|
// Handle tool role (from normalized)
|
|
165
329
|
if (msg.role === "tool") {
|
|
166
330
|
const toolContent = typeof msg.content === "string" ? msg.content : "";
|
|
@@ -176,34 +340,30 @@ function convertMessages(messages, tools, model) {
|
|
|
176
340
|
// Extract text content and tool uses
|
|
177
341
|
let textContent = "";
|
|
178
342
|
let toolUses = [];
|
|
179
|
-
|
|
343
|
+
|
|
180
344
|
if (Array.isArray(msg.content)) {
|
|
181
345
|
const textBlocks = msg.content.filter(c => c.type === "text");
|
|
182
346
|
textContent = textBlocks.map(b => b.text).join("\n").trim();
|
|
183
|
-
|
|
347
|
+
|
|
184
348
|
const toolUseBlocks = msg.content.filter(c => c.type === "tool_use");
|
|
185
349
|
toolUses = toolUseBlocks;
|
|
186
350
|
} else if (typeof msg.content === "string") {
|
|
187
351
|
textContent = msg.content.trim();
|
|
188
352
|
}
|
|
189
|
-
|
|
353
|
+
|
|
190
354
|
if (msg.tool_calls && msg.tool_calls.length > 0) {
|
|
191
355
|
toolUses = msg.tool_calls;
|
|
192
356
|
}
|
|
193
|
-
|
|
357
|
+
|
|
194
358
|
if (textContent) {
|
|
195
359
|
pendingAssistantContent.push(textContent);
|
|
196
360
|
}
|
|
197
|
-
|
|
361
|
+
|
|
198
362
|
// Store tool uses in last assistant message
|
|
199
363
|
if (toolUses.length > 0) {
|
|
200
|
-
if (pendingAssistantContent.length === 0) {
|
|
201
|
-
// pendingAssistantContent.push("Call tools");
|
|
202
|
-
}
|
|
203
|
-
|
|
204
364
|
// Flush to create assistant message with toolUses
|
|
205
365
|
flushPending();
|
|
206
|
-
|
|
366
|
+
|
|
207
367
|
const lastMsg = history[history.length - 1];
|
|
208
368
|
if (lastMsg?.assistantResponseMessage) {
|
|
209
369
|
lastMsg.assistantResponseMessage.toolUses = toolUses.map(tc => {
|
|
@@ -211,9 +371,7 @@ function convertMessages(messages, tools, model) {
|
|
|
211
371
|
return {
|
|
212
372
|
toolUseId: tc.id || uuidv4(),
|
|
213
373
|
name: tc.function.name,
|
|
214
|
-
input:
|
|
215
|
-
? JSON.parse(tc.function.arguments)
|
|
216
|
-
: (tc.function.arguments || {})
|
|
374
|
+
input: safeJSONParse(tc.function.arguments, {})
|
|
217
375
|
};
|
|
218
376
|
} else {
|
|
219
377
|
return {
|
|
@@ -224,17 +382,17 @@ function convertMessages(messages, tools, model) {
|
|
|
224
382
|
}
|
|
225
383
|
});
|
|
226
384
|
}
|
|
227
|
-
|
|
385
|
+
|
|
228
386
|
currentRole = null;
|
|
229
387
|
}
|
|
230
388
|
}
|
|
231
389
|
}
|
|
232
|
-
|
|
390
|
+
|
|
233
391
|
// Flush remaining
|
|
234
392
|
if (currentRole !== null) {
|
|
235
393
|
flushPending();
|
|
236
394
|
}
|
|
237
|
-
|
|
395
|
+
|
|
238
396
|
// Pop last userInputMessage as currentMessage (search from end, skip trailing assistant messages)
|
|
239
397
|
for (let i = history.length - 1; i >= 0; i--) {
|
|
240
398
|
if (history[i].userInputMessage) {
|
|
@@ -261,6 +419,8 @@ function convertMessages(messages, tools, model) {
|
|
|
261
419
|
});
|
|
262
420
|
|
|
263
421
|
// Merge consecutive user messages (Kiro requires alternating user/assistant)
|
|
422
|
+
// When merging, also combine userInputMessageContext fields so toolResults
|
|
423
|
+
// and images from the second message are not silently dropped.
|
|
264
424
|
const mergedHistory = [];
|
|
265
425
|
for (let i = 0; i < history.length; i++) {
|
|
266
426
|
const current = history[i];
|
|
@@ -269,18 +429,63 @@ function convertMessages(messages, tools, model) {
|
|
|
269
429
|
mergedHistory[mergedHistory.length - 1].userInputMessage) {
|
|
270
430
|
const prev = mergedHistory[mergedHistory.length - 1];
|
|
271
431
|
prev.userInputMessage.content += "\n\n" + current.userInputMessage.content;
|
|
432
|
+
// Merge context: combine toolResults, images, etc.
|
|
433
|
+
const prevCtx = prev.userInputMessage.userInputMessageContext;
|
|
434
|
+
const curCtx = current.userInputMessage.userInputMessageContext;
|
|
435
|
+
if (curCtx) {
|
|
436
|
+
if (!prevCtx) {
|
|
437
|
+
prev.userInputMessage.userInputMessageContext = curCtx;
|
|
438
|
+
} else {
|
|
439
|
+
if (curCtx.toolResults?.length > 0) {
|
|
440
|
+
prevCtx.toolResults = [...(prevCtx.toolResults || []), ...curCtx.toolResults];
|
|
441
|
+
}
|
|
442
|
+
if (curCtx.tools?.length > 0) {
|
|
443
|
+
prevCtx.tools = [...(prevCtx.tools || []), ...curCtx.tools];
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
272
447
|
} else {
|
|
273
448
|
mergedHistory.push(current);
|
|
274
449
|
}
|
|
275
450
|
}
|
|
276
451
|
|
|
277
|
-
//
|
|
278
|
-
|
|
452
|
+
// When currentMessage is null (no user messages at all — edge case where
|
|
453
|
+
// input is only assistant messages), create a minimal currentMessage so
|
|
454
|
+
// tools and content can be injected.
|
|
455
|
+
if (!currentMessage) {
|
|
456
|
+
currentMessage = {
|
|
457
|
+
userInputMessage: {
|
|
458
|
+
content: "",
|
|
459
|
+
modelId: model,
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
// Reconcile orphaned toolResults across history AND currentMessage — when
|
|
465
|
+
// client-side compaction removes assistant messages containing tool_use but
|
|
466
|
+
// keeps the tool_result, the dangling reference triggers a Kiro 400. Fold the
|
|
467
|
+
// content back into the user text instead of discarding it. Run after
|
|
468
|
+
// currentMessage is finalized (an orphan can be merged into it) and before
|
|
469
|
+
// tool injection (which may re-add userInputMessageContext).
|
|
470
|
+
//
|
|
471
|
+
// Only needed on the tools-present path: when the client sent no tools,
|
|
472
|
+
// flattenToolInteractions already collapsed every toolResult to text, so
|
|
473
|
+
// there is nothing structured left to orphan.
|
|
474
|
+
if (clientProvidedTools) {
|
|
475
|
+
reconcileOrphanedToolResults(mergedHistory, currentMessage);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
// Inject tools into currentMessage AFTER cleanup. Tools only exist here when
|
|
479
|
+
// the client explicitly sent them (otherwise flattenToolInteractions already
|
|
480
|
+
// collapsed all tool content to text upstream, so there is nothing to carry).
|
|
481
|
+
const resolvedTools = firstHistoryTools;
|
|
482
|
+
|
|
483
|
+
if (resolvedTools?.length > 0 &&
|
|
279
484
|
!currentMessage.userInputMessage.userInputMessageContext?.tools) {
|
|
280
485
|
if (!currentMessage.userInputMessage.userInputMessageContext) {
|
|
281
486
|
currentMessage.userInputMessage.userInputMessageContext = {};
|
|
282
487
|
}
|
|
283
|
-
currentMessage.userInputMessage.userInputMessageContext.tools =
|
|
488
|
+
currentMessage.userInputMessage.userInputMessageContext.tools = resolvedTools;
|
|
284
489
|
}
|
|
285
490
|
|
|
286
491
|
return { history: mergedHistory, currentMessage };
|
|
@@ -318,6 +523,7 @@ export function buildKiroPayload(model, body, stream, credentials) {
|
|
|
318
523
|
const profileArn = credentials?.providerSpecificData?.profileArn || "";
|
|
319
524
|
|
|
320
525
|
let finalContent = currentMessage?.userInputMessage?.content || "";
|
|
526
|
+
|
|
321
527
|
const timestamp = new Date().toISOString();
|
|
322
528
|
|
|
323
529
|
// Build the system-prompt prefix that goes ABOVE the user message body.
|
|
@@ -490,7 +490,7 @@ export function openaiResponsesToOpenAIResponse(chunk, state) {
|
|
|
490
490
|
}
|
|
491
491
|
|
|
492
492
|
// Response completed
|
|
493
|
-
if (eventType === "response.completed") {
|
|
493
|
+
if (eventType === "response.completed" || eventType === "response.done") {
|
|
494
494
|
// Extract usage from response.completed event
|
|
495
495
|
const responseUsage = data.response?.usage;
|
|
496
496
|
if (responseUsage && typeof responseUsage === "object") {
|
|
@@ -35,13 +35,16 @@ export function cloakClaudeTools(body) {
|
|
|
35
35
|
const tools = body.tools;
|
|
36
36
|
if (!tools || tools.length === 0) return { body, toolNameMap: null };
|
|
37
37
|
|
|
38
|
+
const suffix = (name) => `${name}${CLAUDE_TOOL_SUFFIX}`;
|
|
38
39
|
const toolNameMap = new Map();
|
|
40
|
+
const clientToolNames = new Set();
|
|
39
41
|
const clientDeclarations = [];
|
|
40
42
|
|
|
41
43
|
// All client tools get renamed with suffix
|
|
42
44
|
for (const tool of tools) {
|
|
43
|
-
const suffixed =
|
|
45
|
+
const suffixed = suffix(tool.name);
|
|
44
46
|
toolNameMap.set(suffixed, tool.name);
|
|
47
|
+
clientToolNames.add(tool.name);
|
|
45
48
|
clientDeclarations.push({ ...tool, name: suffixed });
|
|
46
49
|
}
|
|
47
50
|
|
|
@@ -51,17 +54,27 @@ export function cloakClaudeTools(body) {
|
|
|
51
54
|
// Rename tool_use in message history (all client tools get suffix)
|
|
52
55
|
const renamedMessages = body.messages?.map(msg => {
|
|
53
56
|
if (!Array.isArray(msg.content)) return msg;
|
|
54
|
-
const renamedContent = msg.content.map(block =>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
return block;
|
|
59
|
-
});
|
|
57
|
+
const renamedContent = msg.content.map(block =>
|
|
58
|
+
block.type === "tool_use" ? { ...block, name: suffix(block.name) } : block
|
|
59
|
+
);
|
|
60
60
|
return { ...msg, content: renamedContent };
|
|
61
61
|
});
|
|
62
62
|
|
|
63
|
+
const cloakedBody = { ...body, tools: allTools, messages: renamedMessages || body.messages };
|
|
64
|
+
|
|
65
|
+
// A forced tool_choice ({ type: "tool", name }) must point at the suffixed
|
|
66
|
+
// tool name, otherwise Claude rejects it: "Tool '<name>' not found in provided tools".
|
|
67
|
+
// Only rewrite when the choice targets one of the client tools we actually
|
|
68
|
+
// renamed — never a decoy/built-in name (those are sent unsuffixed).
|
|
69
|
+
if (
|
|
70
|
+
body.tool_choice?.type === "tool" &&
|
|
71
|
+
clientToolNames.has(body.tool_choice.name)
|
|
72
|
+
) {
|
|
73
|
+
cloakedBody.tool_choice = { ...body.tool_choice, name: suffix(body.tool_choice.name) };
|
|
74
|
+
}
|
|
75
|
+
|
|
63
76
|
return {
|
|
64
|
-
body:
|
|
77
|
+
body: cloakedBody,
|
|
65
78
|
toolNameMap: toolNameMap.size > 0 ? toolNameMap : null
|
|
66
79
|
};
|
|
67
80
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Some thinking-mode providers (DeepSeek, Kimi, ...) require reasoning_content
|
|
1
|
+
// Some thinking-mode providers (DeepSeek, Kimi, MiniMax, ...) require reasoning_content
|
|
2
2
|
// to be echoed back on assistant messages. Clients in OpenAI format don't send it,
|
|
3
3
|
// so we inject a non-empty placeholder to satisfy upstream validation.
|
|
4
4
|
|
|
@@ -6,7 +6,9 @@ const PLACEHOLDER = " ";
|
|
|
6
6
|
|
|
7
7
|
// Provider-level rules: keyed by executor.provider
|
|
8
8
|
const PROVIDER_RULES = {
|
|
9
|
-
deepseek: { scope: "all" }
|
|
9
|
+
deepseek: { scope: "all" },
|
|
10
|
+
minimax: { scope: "all" },
|
|
11
|
+
"minimax-cn": { scope: "all" }
|
|
10
12
|
};
|
|
11
13
|
|
|
12
14
|
// Model-level rules: matched by predicate against model id
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// Helpers for OpenAI Responses API streaming termination + event framing
|
|
2
|
+
import { FORMATS } from "../translator/formats.js";
|
|
3
|
+
import { formatSSE } from "./streamHelpers.js";
|
|
4
|
+
|
|
5
|
+
// Responses API events that signal the stream has reached a terminal state
|
|
6
|
+
const OPENAI_RESPONSES_TERMINAL_EVENTS = new Set([
|
|
7
|
+
"response.completed",
|
|
8
|
+
"response.failed",
|
|
9
|
+
"error"
|
|
10
|
+
]);
|
|
11
|
+
|
|
12
|
+
export function getOpenAIResponsesEventName(eventName, chunk) {
|
|
13
|
+
if (eventName) return eventName;
|
|
14
|
+
if (chunk && typeof chunk.type === "string") return chunk.type;
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function isOpenAIResponsesTerminalEvent(eventName, chunk) {
|
|
19
|
+
const type = getOpenAIResponsesEventName(eventName, chunk);
|
|
20
|
+
if (OPENAI_RESPONSES_TERMINAL_EVENTS.has(type)) return true;
|
|
21
|
+
const status = chunk?.response?.status;
|
|
22
|
+
return status === "completed" || status === "failed";
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const sharedEncoder = new TextEncoder();
|
|
26
|
+
|
|
27
|
+
// Encoded response.failed + [DONE] payload for aborted/stalled Responses passthrough streams
|
|
28
|
+
export function buildAbortedResponsesTerminalBytes() {
|
|
29
|
+
return sharedEncoder.encode(`${formatIncompleteOpenAIResponsesStreamFailure()}data: [DONE]\n\n`);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Synthesize a response.failed event for streams that close without a terminal event
|
|
33
|
+
export function formatIncompleteOpenAIResponsesStreamFailure() {
|
|
34
|
+
return formatSSE({
|
|
35
|
+
event: "response.failed",
|
|
36
|
+
data: {
|
|
37
|
+
type: "response.failed",
|
|
38
|
+
response: {
|
|
39
|
+
id: `resp_${Date.now()}`,
|
|
40
|
+
status: "failed",
|
|
41
|
+
error: {
|
|
42
|
+
type: "stream_error",
|
|
43
|
+
code: "stream_disconnected",
|
|
44
|
+
message: "stream closed before response.completed"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}, FORMATS.OPENAI_RESPONSES);
|
|
49
|
+
}
|