9router 0.5.112 → 0.5.119
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 +2 -2
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +12 -11
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +4 -4
- package/app/.next-cli-build/required-server-files.json +7 -1
- package/app/.next-cli-build/routes-manifest.json +6 -0
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +16 -16
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +4 -4
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/api/auth/login/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/commandcode/auto-import/route.js +4 -0
- package/app/.next-cli-build/server/app/api/oauth/commandcode/auto-import/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/oauth/commandcode/auto-import/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/web-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/web-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +4 -4
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +6 -3
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +1 -1
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing/page.js +1 -1
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login/page.js +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +1 -1
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +12 -11
- package/app/.next-cli-build/server/chunks/1051.js +1 -1
- package/app/.next-cli-build/server/chunks/1133.js +1 -1
- package/app/.next-cli-build/server/chunks/1297.js +29 -0
- package/app/.next-cli-build/server/chunks/1350.js +1 -1
- package/app/.next-cli-build/server/chunks/1356.js +1 -1
- package/app/.next-cli-build/server/chunks/1757.js +1 -1
- package/app/.next-cli-build/server/chunks/{2365.js → 1866.js} +1 -1
- package/app/.next-cli-build/server/chunks/238.js +1 -1
- package/app/.next-cli-build/server/chunks/24.js +1 -1
- package/app/.next-cli-build/server/chunks/2598.js +1 -1
- package/app/.next-cli-build/server/chunks/2822.js +1 -1
- package/app/.next-cli-build/server/chunks/2840.js +1 -0
- package/app/.next-cli-build/server/chunks/3225.js +1 -1
- package/app/.next-cli-build/server/chunks/3697.js +1 -1
- package/app/.next-cli-build/server/chunks/3943.js +1 -1
- package/app/.next-cli-build/server/chunks/412.js +5 -5
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4279.js +1 -1
- package/app/.next-cli-build/server/chunks/4882.js +1 -1
- package/app/.next-cli-build/server/chunks/5299.js +1 -1
- package/app/.next-cli-build/server/chunks/5330.js +40 -40
- package/app/.next-cli-build/server/chunks/5615.js +1 -1
- package/app/.next-cli-build/server/chunks/6070.js +1 -1
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6297.js +1 -0
- package/app/.next-cli-build/server/chunks/6576.js +1 -0
- package/app/.next-cli-build/server/chunks/6690.js +1 -1
- package/app/.next-cli-build/server/chunks/6724.js +1 -1
- package/app/.next-cli-build/server/chunks/6763.js +1 -1
- package/app/.next-cli-build/server/chunks/6877.js +1 -1
- package/app/.next-cli-build/server/chunks/7187.js +1 -1
- package/app/.next-cli-build/server/chunks/7247.js +1 -1
- package/app/.next-cli-build/server/chunks/7373.js +1 -1
- package/app/.next-cli-build/server/chunks/7525.js +1 -1
- package/app/.next-cli-build/server/chunks/7552.js +1 -1
- package/app/.next-cli-build/server/chunks/7716.js +1 -1
- package/app/.next-cli-build/server/chunks/7843.js +51 -0
- package/app/.next-cli-build/server/chunks/8251.js +1 -1
- package/app/.next-cli-build/server/chunks/8271.js +1 -1
- package/app/.next-cli-build/server/chunks/8402.js +1 -1
- package/app/.next-cli-build/server/chunks/8416.js +1 -1
- package/app/.next-cli-build/server/chunks/8623.js +1 -1
- package/app/.next-cli-build/server/chunks/866.js +1 -0
- package/app/.next-cli-build/server/chunks/869.js +1 -1
- package/app/.next-cli-build/server/chunks/8895.js +4 -4
- package/app/.next-cli-build/server/chunks/8896.js +1 -0
- package/app/.next-cli-build/server/chunks/8920.js +1 -1
- package/app/.next-cli-build/server/chunks/9128.js +1 -1
- package/app/.next-cli-build/server/chunks/9198.js +1 -0
- package/app/.next-cli-build/server/chunks/9489.js +1 -1
- package/app/.next-cli-build/server/chunks/9604.js +1 -1
- package/app/.next-cli-build/server/chunks/9609.js +1 -1
- package/app/.next-cli-build/server/chunks/9696.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +14 -14
- package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/server/preview-props.json +3 -3
- package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/app/.next-cli-build/server/webpack-runtime.js +1 -1
- package/app/.next-cli-build/static/5PG9DiG39fbvOpgKSnR7p/_buildManifest.js +1 -0
- package/app/.next-cli-build/static/chunks/1321-2fde166305caeddb.js +1 -0
- package/app/.next-cli-build/static/chunks/5497-2d39b4ce6857f490.js +7 -0
- package/app/.next-cli-build/static/chunks/{761-f671b0371daf6356.js → 761-4ab39a76a6565658.js} +8 -8
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-0f55372821920062.js → page-899c85a4a09b87cc.js} +15 -15
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-c13b42f0dbad8fcd.js +27 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-8f7c68a9ddffe74b.js +4 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-6923bda560bbc869.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-3b1b5d8e342d932f.js +1 -0
- package/app/.next-cli-build/static/chunks/app/_global-error/{page-a70f643786fb402f.js → page-4e22949b210a2492.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/{route-a70f643786fb402f.js → route-4e22949b210a2492.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/{route-a70f643786fb402f.js → route-4e22949b210a2492.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/{route-a70f643786fb402f.js → route-4e22949b210a2492.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-profiles/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/commandcode/auto-import/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/web-login/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/netlify-deploy/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-4e22949b210a2492.js +1 -0
- package/app/.next-cli-build/static/css/836344dc90be2bb4.css +1 -0
- package/app/cli/.build-home/.9router/db/data.sqlite +0 -0
- package/app/node_modules/undici/LICENSE +21 -0
- package/app/node_modules/undici/README.md +741 -0
- package/app/node_modules/undici/docs/docs/api/Agent.md +84 -0
- package/app/node_modules/undici/docs/docs/api/BalancedPool.md +99 -0
- package/app/node_modules/undici/docs/docs/api/CacheStorage.md +30 -0
- package/app/node_modules/undici/docs/docs/api/CacheStore.md +164 -0
- package/app/node_modules/undici/docs/docs/api/Client.md +290 -0
- package/app/node_modules/undici/docs/docs/api/ClientStats.md +27 -0
- package/app/node_modules/undici/docs/docs/api/Connector.md +115 -0
- package/app/node_modules/undici/docs/docs/api/ContentType.md +57 -0
- package/app/node_modules/undici/docs/docs/api/Cookies.md +128 -0
- package/app/node_modules/undici/docs/docs/api/Debug.md +62 -0
- package/app/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +317 -0
- package/app/node_modules/undici/docs/docs/api/Dispatcher.md +1393 -0
- package/app/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +159 -0
- package/app/node_modules/undici/docs/docs/api/Errors.md +49 -0
- package/app/node_modules/undici/docs/docs/api/EventSource.md +45 -0
- package/app/node_modules/undici/docs/docs/api/Fetch.md +60 -0
- package/app/node_modules/undici/docs/docs/api/GlobalInstallation.md +139 -0
- package/app/node_modules/undici/docs/docs/api/H2CClient.md +263 -0
- package/app/node_modules/undici/docs/docs/api/MockAgent.md +603 -0
- package/app/node_modules/undici/docs/docs/api/MockCallHistory.md +197 -0
- package/app/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +43 -0
- package/app/node_modules/undici/docs/docs/api/MockClient.md +81 -0
- package/app/node_modules/undici/docs/docs/api/MockErrors.md +12 -0
- package/app/node_modules/undici/docs/docs/api/MockPool.md +555 -0
- package/app/node_modules/undici/docs/docs/api/Pool.md +84 -0
- package/app/node_modules/undici/docs/docs/api/PoolStats.md +35 -0
- package/app/node_modules/undici/docs/docs/api/ProxyAgent.md +229 -0
- package/app/node_modules/undici/docs/docs/api/RedirectHandler.md +93 -0
- package/app/node_modules/undici/docs/docs/api/RetryAgent.md +50 -0
- package/app/node_modules/undici/docs/docs/api/RetryHandler.md +118 -0
- package/app/node_modules/undici/docs/docs/api/RoundRobinPool.md +145 -0
- package/app/node_modules/undici/docs/docs/api/SnapshotAgent.md +616 -0
- package/app/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +275 -0
- package/app/node_modules/undici/docs/docs/api/Util.md +25 -0
- package/app/node_modules/undici/docs/docs/api/WebSocket.md +141 -0
- package/app/node_modules/undici/docs/docs/api/api-lifecycle.md +91 -0
- package/app/node_modules/undici/docs/docs/best-practices/client-certificate.md +64 -0
- package/app/node_modules/undici/docs/docs/best-practices/crawling.md +58 -0
- package/app/node_modules/undici/docs/docs/best-practices/mocking-request.md +190 -0
- package/app/node_modules/undici/docs/docs/best-practices/proxy.md +127 -0
- package/app/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +224 -0
- package/app/node_modules/undici/docs/docs/best-practices/writing-tests.md +63 -0
- package/app/node_modules/undici/index-fetch.js +65 -0
- package/app/node_modules/undici/index.d.ts +3 -0
- package/app/node_modules/undici/index.js +234 -0
- package/app/node_modules/undici/lib/api/abort-signal.js +59 -0
- package/app/node_modules/undici/lib/api/api-connect.js +110 -0
- package/app/node_modules/undici/lib/api/api-pipeline.js +252 -0
- package/app/node_modules/undici/lib/api/api-request.js +214 -0
- package/app/node_modules/undici/lib/api/api-stream.js +209 -0
- package/app/node_modules/undici/lib/api/api-upgrade.js +111 -0
- package/app/node_modules/undici/lib/api/index.js +7 -0
- package/app/node_modules/undici/lib/api/readable.js +580 -0
- package/app/node_modules/undici/lib/cache/memory-cache-store.js +279 -0
- package/app/node_modules/undici/lib/cache/sqlite-cache-store.js +469 -0
- package/app/node_modules/undici/lib/core/connect.js +159 -0
- package/app/node_modules/undici/lib/core/constants.js +143 -0
- package/app/node_modules/undici/lib/core/diagnostics.js +227 -0
- package/app/node_modules/undici/lib/core/errors.js +477 -0
- package/app/node_modules/undici/lib/core/request.js +485 -0
- package/app/node_modules/undici/lib/core/socks5-client.js +422 -0
- package/app/node_modules/undici/lib/core/socks5-utils.js +212 -0
- package/app/node_modules/undici/lib/core/symbols.js +76 -0
- package/app/node_modules/undici/lib/core/tree.js +160 -0
- package/app/node_modules/undici/lib/core/util.js +1013 -0
- package/app/node_modules/undici/lib/dispatcher/agent.js +162 -0
- package/app/node_modules/undici/lib/dispatcher/balanced-pool.js +221 -0
- package/app/node_modules/undici/lib/dispatcher/client-h1.js +1769 -0
- package/app/node_modules/undici/lib/dispatcher/client-h2.js +1056 -0
- package/app/node_modules/undici/lib/dispatcher/client.js +669 -0
- package/app/node_modules/undici/lib/dispatcher/dispatcher-base.js +196 -0
- package/app/node_modules/undici/lib/dispatcher/dispatcher.js +48 -0
- package/app/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +146 -0
- package/app/node_modules/undici/lib/dispatcher/fixed-queue.js +135 -0
- package/app/node_modules/undici/lib/dispatcher/h2c-client.js +51 -0
- package/app/node_modules/undici/lib/dispatcher/pool-base.js +214 -0
- package/app/node_modules/undici/lib/dispatcher/pool.js +118 -0
- package/app/node_modules/undici/lib/dispatcher/proxy-agent.js +319 -0
- package/app/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
- package/app/node_modules/undici/lib/dispatcher/round-robin-pool.js +137 -0
- package/app/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +260 -0
- package/app/node_modules/undici/lib/encoding/index.js +33 -0
- package/app/node_modules/undici/lib/global.js +59 -0
- package/app/node_modules/undici/lib/handler/cache-handler.js +1181 -0
- package/app/node_modules/undici/lib/handler/cache-revalidation-handler.js +124 -0
- package/app/node_modules/undici/lib/handler/decorator-handler.js +67 -0
- package/app/node_modules/undici/lib/handler/deduplication-handler.js +504 -0
- package/app/node_modules/undici/lib/handler/redirect-handler.js +273 -0
- package/app/node_modules/undici/lib/handler/retry-handler.js +504 -0
- package/app/node_modules/undici/lib/handler/unwrap-handler.js +106 -0
- package/app/node_modules/undici/lib/handler/wrap-handler.js +105 -0
- package/app/node_modules/undici/lib/interceptor/cache.js +746 -0
- package/app/node_modules/undici/lib/interceptor/decompress.js +567 -0
- package/app/node_modules/undici/lib/interceptor/deduplicate.js +117 -0
- package/app/node_modules/undici/lib/interceptor/dns.js +571 -0
- package/app/node_modules/undici/lib/interceptor/dump.js +99 -0
- package/app/node_modules/undici/lib/interceptor/redirect.js +21 -0
- package/app/node_modules/undici/lib/interceptor/response-error.js +95 -0
- package/app/node_modules/undici/lib/interceptor/retry.js +19 -0
- package/app/node_modules/undici/lib/llhttp/.gitkeep +0 -0
- package/app/node_modules/undici/lib/llhttp/constants.d.ts +195 -0
- package/app/node_modules/undici/lib/llhttp/constants.js +531 -0
- package/app/node_modules/undici/lib/llhttp/llhttp-wasm.js +15 -0
- package/app/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +15 -0
- package/app/node_modules/undici/lib/llhttp/utils.d.ts +2 -0
- package/app/node_modules/undici/lib/llhttp/utils.js +12 -0
- package/app/node_modules/undici/lib/mock/mock-agent.js +232 -0
- package/app/node_modules/undici/lib/mock/mock-call-history.js +248 -0
- package/app/node_modules/undici/lib/mock/mock-client.js +68 -0
- package/app/node_modules/undici/lib/mock/mock-errors.js +29 -0
- package/app/node_modules/undici/lib/mock/mock-interceptor.js +209 -0
- package/app/node_modules/undici/lib/mock/mock-pool.js +68 -0
- package/app/node_modules/undici/lib/mock/mock-symbols.js +32 -0
- package/app/node_modules/undici/lib/mock/mock-utils.js +486 -0
- package/app/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
- package/app/node_modules/undici/lib/mock/snapshot-agent.js +353 -0
- package/app/node_modules/undici/lib/mock/snapshot-recorder.js +588 -0
- package/app/node_modules/undici/lib/mock/snapshot-utils.js +158 -0
- package/app/node_modules/undici/lib/util/cache.js +709 -0
- package/app/node_modules/undici/lib/util/date.js +670 -0
- package/app/node_modules/undici/lib/util/promise.js +28 -0
- package/app/node_modules/undici/lib/util/runtime-features.js +124 -0
- package/app/node_modules/undici/lib/util/stats.js +32 -0
- package/app/node_modules/undici/lib/util/timers.js +425 -0
- package/app/node_modules/undici/lib/web/cache/cache.js +864 -0
- package/app/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
- package/app/node_modules/undici/lib/web/cache/util.js +45 -0
- package/app/node_modules/undici/lib/web/cookies/constants.js +12 -0
- package/app/node_modules/undici/lib/web/cookies/index.js +201 -0
- package/app/node_modules/undici/lib/web/cookies/parse.js +315 -0
- package/app/node_modules/undici/lib/web/cookies/util.js +371 -0
- package/app/node_modules/undici/lib/web/eventsource/eventsource-stream.js +575 -0
- package/app/node_modules/undici/lib/web/eventsource/eventsource.js +504 -0
- package/app/node_modules/undici/lib/web/eventsource/util.js +29 -0
- package/app/node_modules/undici/lib/web/fetch/LICENSE +21 -0
- package/app/node_modules/undici/lib/web/fetch/body.js +518 -0
- package/app/node_modules/undici/lib/web/fetch/constants.js +131 -0
- package/app/node_modules/undici/lib/web/fetch/data-url.js +596 -0
- package/app/node_modules/undici/lib/web/fetch/formdata-parser.js +586 -0
- package/app/node_modules/undici/lib/web/fetch/formdata.js +259 -0
- package/app/node_modules/undici/lib/web/fetch/global.js +40 -0
- package/app/node_modules/undici/lib/web/fetch/headers.js +719 -0
- package/app/node_modules/undici/lib/web/fetch/index.js +2413 -0
- package/app/node_modules/undici/lib/web/fetch/request.js +1115 -0
- package/app/node_modules/undici/lib/web/fetch/response.js +641 -0
- package/app/node_modules/undici/lib/web/fetch/util.js +1522 -0
- package/app/node_modules/undici/lib/web/infra/index.js +243 -0
- package/app/node_modules/undici/lib/web/subresource-integrity/Readme.md +9 -0
- package/app/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +307 -0
- package/app/node_modules/undici/lib/web/webidl/index.js +1006 -0
- package/app/node_modules/undici/lib/web/websocket/connection.js +339 -0
- package/app/node_modules/undici/lib/web/websocket/constants.js +126 -0
- package/app/node_modules/undici/lib/web/websocket/events.js +331 -0
- package/app/node_modules/undici/lib/web/websocket/frame.js +133 -0
- package/app/node_modules/undici/lib/web/websocket/permessage-deflate.js +105 -0
- package/app/node_modules/undici/lib/web/websocket/receiver.js +520 -0
- package/app/node_modules/undici/lib/web/websocket/sender.js +109 -0
- package/app/node_modules/undici/lib/web/websocket/stream/websocketerror.js +104 -0
- package/app/node_modules/undici/lib/web/websocket/stream/websocketstream.js +496 -0
- package/app/node_modules/undici/lib/web/websocket/util.js +347 -0
- package/app/node_modules/undici/lib/web/websocket/websocket.js +758 -0
- package/app/node_modules/undici/package.json +152 -0
- package/app/node_modules/undici/scripts/strip-comments.js +10 -0
- package/app/node_modules/undici/types/README.md +6 -0
- package/app/node_modules/undici/types/agent.d.ts +32 -0
- package/app/node_modules/undici/types/api.d.ts +43 -0
- package/app/node_modules/undici/types/balanced-pool.d.ts +30 -0
- package/app/node_modules/undici/types/cache-interceptor.d.ts +179 -0
- package/app/node_modules/undici/types/cache.d.ts +36 -0
- package/app/node_modules/undici/types/client-stats.d.ts +15 -0
- package/app/node_modules/undici/types/client.d.ts +153 -0
- package/app/node_modules/undici/types/connector.d.ts +36 -0
- package/app/node_modules/undici/types/content-type.d.ts +21 -0
- package/app/node_modules/undici/types/cookies.d.ts +30 -0
- package/app/node_modules/undici/types/diagnostics-channel.d.ts +74 -0
- package/app/node_modules/undici/types/dispatcher.d.ts +275 -0
- package/app/node_modules/undici/types/env-http-proxy-agent.d.ts +22 -0
- package/app/node_modules/undici/types/errors.d.ts +177 -0
- package/app/node_modules/undici/types/eventsource.d.ts +66 -0
- package/app/node_modules/undici/types/fetch.d.ts +231 -0
- package/app/node_modules/undici/types/formdata.d.ts +114 -0
- package/app/node_modules/undici/types/global-dispatcher.d.ts +9 -0
- package/app/node_modules/undici/types/global-origin.d.ts +7 -0
- package/app/node_modules/undici/types/h2c-client.d.ts +73 -0
- package/app/node_modules/undici/types/handlers.d.ts +14 -0
- package/app/node_modules/undici/types/header.d.ts +160 -0
- package/app/node_modules/undici/types/index.d.ts +91 -0
- package/app/node_modules/undici/types/interceptors.d.ts +82 -0
- package/app/node_modules/undici/types/mock-agent.d.ts +68 -0
- package/app/node_modules/undici/types/mock-call-history.d.ts +111 -0
- package/app/node_modules/undici/types/mock-client.d.ts +27 -0
- package/app/node_modules/undici/types/mock-errors.d.ts +12 -0
- package/app/node_modules/undici/types/mock-interceptor.d.ts +94 -0
- package/app/node_modules/undici/types/mock-pool.d.ts +27 -0
- package/app/node_modules/undici/types/patch.d.ts +29 -0
- package/app/node_modules/undici/types/pool-stats.d.ts +19 -0
- package/app/node_modules/undici/types/pool.d.ts +41 -0
- package/app/node_modules/undici/types/proxy-agent.d.ts +29 -0
- package/app/node_modules/undici/types/readable.d.ts +68 -0
- package/app/node_modules/undici/types/retry-agent.d.ts +8 -0
- package/app/node_modules/undici/types/retry-handler.d.ts +125 -0
- package/app/node_modules/undici/types/round-robin-pool.d.ts +41 -0
- package/app/node_modules/undici/types/snapshot-agent.d.ts +109 -0
- package/app/node_modules/undici/types/socks5-proxy-agent.d.ts +25 -0
- package/app/node_modules/undici/types/util.d.ts +18 -0
- package/app/node_modules/undici/types/utility.d.ts +7 -0
- package/app/node_modules/undici/types/webidl.d.ts +347 -0
- package/app/node_modules/undici/types/websocket.d.ts +188 -0
- package/app/open-sse/lib/deepseek-pow-hash.js +136 -0
- package/app/package.json +5 -2
- package/app/public/providers/sensenova-intl.png +0 -0
- package/app/server.js +1 -1
- package/app/src/shared/services/quotaAutoPing.js +17 -2
- package/cli.js +112 -55
- package/hooks/sqliteRuntime.js +2 -1
- package/package.json +2 -2
- package/src/cli/tray/tray.js +88 -9
- package/src/cli/utils/launcherProcess.js +186 -0
- package/app/.next-cli-build/server/chunks/2132.js +0 -1
- package/app/.next-cli-build/server/chunks/2380.js +0 -79
- package/app/.next-cli-build/server/chunks/436.js +0 -1
- package/app/.next-cli-build/server/chunks/4480.js +0 -1
- package/app/.next-cli-build/server/chunks/7557.js +0 -1
- package/app/.next-cli-build/server/chunks/7774.js +0 -120
- package/app/.next-cli-build/server/chunks/7995.js +0 -120
- package/app/.next-cli-build/server/chunks/8128.js +0 -1
- package/app/.next-cli-build/server/chunks/8499.js +0 -1
- package/app/.next-cli-build/static/Mwpv7kpqnhzp2SJMtsIA1/_buildManifest.js +0 -1
- package/app/.next-cli-build/static/chunks/1321-02944667ec55f586.js +0 -1
- package/app/.next-cli-build/static/chunks/5497-870732fd9d818574.js +0 -7
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-f9897bc47dce7e8f.js +0 -27
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-e5d73ba422004783.js +0 -4
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-2b2fe8a972d455af.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-888c58ee93724e20.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-profiles/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/web-login/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/netlify-deploy/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-a70f643786fb402f.js +0 -1
- package/app/.next-cli-build/static/css/eca85123800ee802.css +0 -1
- /package/app/.next-cli-build/static/{Mwpv7kpqnhzp2SJMtsIA1 → 5PG9DiG39fbvOpgKSnR7p}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,1181 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const util = require('../core/util')
|
|
4
|
+
const { kRedirectCacheControl } = require('../core/symbols')
|
|
5
|
+
const {
|
|
6
|
+
parseCacheControlHeader,
|
|
7
|
+
hasInvalidCacheControlDirective,
|
|
8
|
+
parseVaryHeader,
|
|
9
|
+
hasVaryStar,
|
|
10
|
+
isInvalidOrWildcardVaryHeader,
|
|
11
|
+
isEtagUsable
|
|
12
|
+
} = require('../util/cache')
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A suppressed redirect hop recorded by the redirect handler. Carried on
|
|
16
|
+
* {@link kRedirectCacheControl} and inspected by the cache handler before the
|
|
17
|
+
* final response is stored under the original request key.
|
|
18
|
+
*
|
|
19
|
+
* @typedef {object} RedirectHop
|
|
20
|
+
* @property {number} statusCode The hop's response status code (e.g. 302).
|
|
21
|
+
* @property {import('../../types/header.d.ts').IncomingHttpHeaders} headers The hop's response headers.
|
|
22
|
+
* @property {number} receivedAt The time the hop's response headers were received.
|
|
23
|
+
*/
|
|
24
|
+
const { parseHttpDate } = require('../util/date.js')
|
|
25
|
+
|
|
26
|
+
function noop () {}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @param {string | URL} a
|
|
30
|
+
* @param {string | URL} b
|
|
31
|
+
* @returns {boolean}
|
|
32
|
+
*/
|
|
33
|
+
function sameOrigin (a, b) {
|
|
34
|
+
try {
|
|
35
|
+
return new URL(String(a)).origin === new URL(String(b)).origin
|
|
36
|
+
} catch {
|
|
37
|
+
return String(a) === String(b)
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Status codes that we can use some heuristics on to cache
|
|
42
|
+
const HEURISTICALLY_CACHEABLE_STATUS_CODES = [
|
|
43
|
+
200, 203, 204, 206, 300, 301, 308, 404, 405, 410, 414, 501
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
// Status codes which semantic is not handled by the cache
|
|
47
|
+
// https://datatracker.ietf.org/doc/html/rfc9111#section-3
|
|
48
|
+
// This list should not grow beyond 206 unless the RFC is updated
|
|
49
|
+
// by a newer one including more. Please introduce another list if
|
|
50
|
+
// implementing caching of responses with the 'must-understand' directive.
|
|
51
|
+
const NOT_UNDERSTOOD_STATUS_CODES = [
|
|
52
|
+
206
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
const MAX_RESPONSE_AGE = 2147483647000
|
|
56
|
+
|
|
57
|
+
// Retention for revalidation-only entries (zero freshness lifetime but a
|
|
58
|
+
// validator present); each successful revalidation re-stores the entry.
|
|
59
|
+
const REVALIDATION_ONLY_RETENTION = 86400000 // 24 hours
|
|
60
|
+
|
|
61
|
+
function trimOWS (value) {
|
|
62
|
+
return value.replace(/^[\t ]+|[\t ]+$/g, '')
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function arrayIncludes (array, value) {
|
|
66
|
+
for (let i = 0; i < array.length; i++) {
|
|
67
|
+
if (array[i] === value) {
|
|
68
|
+
return true
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return false
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function appendVaryValues (target, varyValue) {
|
|
76
|
+
if (Array.isArray(varyValue)) {
|
|
77
|
+
for (let i = 0; i < varyValue.length; i++) {
|
|
78
|
+
target.push(varyValue[i])
|
|
79
|
+
}
|
|
80
|
+
} else if (varyValue != null) {
|
|
81
|
+
target.push(varyValue)
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function appendConnectionHeaderTokens (headersToRemove, connectionHeader) {
|
|
86
|
+
const values = Array.isArray(connectionHeader) ? connectionHeader : [connectionHeader]
|
|
87
|
+
|
|
88
|
+
for (let i = 0; i < values.length; i++) {
|
|
89
|
+
const tokens = values[i].split(',')
|
|
90
|
+
for (let j = 0; j < tokens.length; j++) {
|
|
91
|
+
headersToRemove.push(trimOWS(tokens[j]).toLowerCase())
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function getSameOriginPath (cacheKey, location) {
|
|
97
|
+
if (typeof location !== 'string') {
|
|
98
|
+
return undefined
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
let originUrl
|
|
102
|
+
let requestUrl
|
|
103
|
+
let locationUrl
|
|
104
|
+
try {
|
|
105
|
+
originUrl = new URL(cacheKey.origin)
|
|
106
|
+
requestUrl = new URL(cacheKey.path, originUrl)
|
|
107
|
+
locationUrl = new URL(location, requestUrl)
|
|
108
|
+
} catch {
|
|
109
|
+
return undefined
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (locationUrl.origin !== originUrl.origin) {
|
|
113
|
+
return undefined
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return locationUrl.pathname + locationUrl.search
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function deleteCachedUri (store, cacheKey, path) {
|
|
120
|
+
deleteCachedValue(store, {
|
|
121
|
+
...cacheKey,
|
|
122
|
+
path
|
|
123
|
+
})
|
|
124
|
+
|
|
125
|
+
for (let i = 0; i < util.safeHTTPMethods.length; i++) {
|
|
126
|
+
const method = util.safeHTTPMethods[i]
|
|
127
|
+
if (method !== cacheKey.method) {
|
|
128
|
+
deleteCachedValue(store, {
|
|
129
|
+
...cacheKey,
|
|
130
|
+
method,
|
|
131
|
+
path
|
|
132
|
+
})
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function deleteLocationTargets (store, cacheKey, headerValue) {
|
|
138
|
+
if (headerValue === undefined) {
|
|
139
|
+
return
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
const values = Array.isArray(headerValue) ? headerValue : [headerValue]
|
|
143
|
+
for (let i = 0; i < values.length; i++) {
|
|
144
|
+
const path = getSameOriginPath(cacheKey, values[i])
|
|
145
|
+
if (path !== undefined) {
|
|
146
|
+
deleteCachedUri(store, cacheKey, path)
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function invalidateUnsafeRequest (store, cacheKey, resHeaders) {
|
|
152
|
+
deleteCachedUri(store, cacheKey, cacheKey.path)
|
|
153
|
+
deleteLocationTargets(store, cacheKey, resHeaders.location)
|
|
154
|
+
deleteLocationTargets(store, cacheKey, resHeaders['content-location'])
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Whether the original request carried a credential that is not reflected in
|
|
159
|
+
* the cache key. The memory/sqlite stores key an entry on origin, method, path
|
|
160
|
+
* and `vary` only, so a credentialed request that is redirected to a resource
|
|
161
|
+
* that varies per principal must not be stored under the original (alias) key:
|
|
162
|
+
* a later caller would be served the first principal's body. The set mirrors the
|
|
163
|
+
* request credentials the redirect handler strips across origins (`authorization`,
|
|
164
|
+
* `cookie`, `proxy-authorization`).
|
|
165
|
+
*
|
|
166
|
+
* @param {import('../../types/header.d.ts').IncomingHttpHeaders | undefined} headers
|
|
167
|
+
* @returns {boolean}
|
|
168
|
+
*/
|
|
169
|
+
function requestCarriesCredentials (headers) {
|
|
170
|
+
return headers != null && (
|
|
171
|
+
Object.hasOwn(headers, 'authorization') ||
|
|
172
|
+
Object.hasOwn(headers, 'cookie') ||
|
|
173
|
+
Object.hasOwn(headers, 'proxy-authorization')
|
|
174
|
+
)
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* @typedef {import('../../types/dispatcher.d.ts').default.DispatchHandler} DispatchHandler
|
|
178
|
+
*
|
|
179
|
+
* @implements {DispatchHandler}
|
|
180
|
+
*/
|
|
181
|
+
class CacheHandler {
|
|
182
|
+
/**
|
|
183
|
+
* @type {import('../../types/cache-interceptor.d.ts').default.CacheKey}
|
|
184
|
+
*/
|
|
185
|
+
#cacheKey
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @type {import('../../types/cache-interceptor.d.ts').default.CacheHandlerOptions['type']}
|
|
189
|
+
*/
|
|
190
|
+
#cacheType
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @type {number | undefined}
|
|
194
|
+
*/
|
|
195
|
+
#cacheByDefault
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @type {import('../../types/cache-interceptor.d.ts').default.CacheStore}
|
|
199
|
+
*/
|
|
200
|
+
#store
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @type {import('../../types/dispatcher.d.ts').default.DispatchHandler}
|
|
204
|
+
*/
|
|
205
|
+
#handler
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @type {import('node:stream').Writable | undefined}
|
|
209
|
+
*/
|
|
210
|
+
#writeStream
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* The URLs visited while following redirects, shared by reference from the
|
|
214
|
+
* redirect handler through the request context. Carries the suppressed hops'
|
|
215
|
+
* status/headers under {@link kRedirectCacheControl}.
|
|
216
|
+
* @type {URL[] | undefined}
|
|
217
|
+
*/
|
|
218
|
+
#history
|
|
219
|
+
|
|
220
|
+
#replaying304 = false
|
|
221
|
+
#suppress304End = false
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @type {{ controller: import('../../types/dispatcher.d.ts').default.DispatchController, trailers: import('../../types/header.d.ts').IncomingHttpHeaders } | undefined}
|
|
225
|
+
*/
|
|
226
|
+
#pending304End
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @param {import('../../types/cache-interceptor.d.ts').default.CacheHandlerOptions} opts
|
|
230
|
+
* @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} cacheKey
|
|
231
|
+
* @param {import('../../types/dispatcher.d.ts').default.DispatchHandler} handler
|
|
232
|
+
*/
|
|
233
|
+
constructor ({ store, type, cacheByDefault }, cacheKey, handler) {
|
|
234
|
+
this.#store = store
|
|
235
|
+
this.#cacheType = type
|
|
236
|
+
this.#cacheByDefault = cacheByDefault
|
|
237
|
+
this.#cacheKey = cacheKey
|
|
238
|
+
this.#handler = handler
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
onRequestStart (controller, context) {
|
|
242
|
+
this.#writeStream?.destroy()
|
|
243
|
+
this.#writeStream = undefined
|
|
244
|
+
this.#replaying304 = false
|
|
245
|
+
this.#suppress304End = false
|
|
246
|
+
this.#pending304End = undefined
|
|
247
|
+
// The redirect handler mutates this shared history as redirects are
|
|
248
|
+
// followed, allowing the cache to identify the response's actual origin.
|
|
249
|
+
this.#history = context?.history
|
|
250
|
+
this.#handler.onRequestStart?.(controller, context)
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
onRequestUpgrade (controller, statusCode, headers, socket) {
|
|
254
|
+
this.#handler.onRequestUpgrade?.(controller, statusCode, headers, socket)
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @param {import('../../types/dispatcher.d.ts').default.DispatchController} controller
|
|
259
|
+
* @param {number} statusCode
|
|
260
|
+
* @param {import('../../types/header.d.ts').IncomingHttpHeaders} resHeaders
|
|
261
|
+
* @param {string} statusMessage
|
|
262
|
+
*/
|
|
263
|
+
onResponseStart (
|
|
264
|
+
controller,
|
|
265
|
+
statusCode,
|
|
266
|
+
resHeaders,
|
|
267
|
+
statusMessage
|
|
268
|
+
) {
|
|
269
|
+
const downstreamOnHeaders = () =>
|
|
270
|
+
this.#handler.onResponseStart?.(
|
|
271
|
+
controller,
|
|
272
|
+
statusCode,
|
|
273
|
+
resHeaders,
|
|
274
|
+
statusMessage
|
|
275
|
+
)
|
|
276
|
+
const handler = this
|
|
277
|
+
|
|
278
|
+
if (
|
|
279
|
+
!arrayIncludes(util.safeHTTPMethods, this.#cacheKey.method) &&
|
|
280
|
+
statusCode >= 200 &&
|
|
281
|
+
statusCode <= 399
|
|
282
|
+
) {
|
|
283
|
+
// Successful response to an unsafe method, delete it from cache
|
|
284
|
+
// https://www.rfc-editor.org/rfc/rfc9111.html#name-invalidating-stored-response
|
|
285
|
+
invalidateUnsafeRequest(this.#store, this.#cacheKey, resHeaders)
|
|
286
|
+
return downstreamOnHeaders()
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
// A credential-bearing request that was redirected must not have the final
|
|
290
|
+
// hop's response stored under the original request's key. The cache key
|
|
291
|
+
// does not include the credential, and the redirect target may vary per
|
|
292
|
+
// principal (e.g. `/me` -> `/profile/{user}`), so replaying the body under
|
|
293
|
+
// the alias key would leak one principal's data to another — or to an
|
|
294
|
+
// unauthenticated caller — from a shared cache. The final hop's permissive
|
|
295
|
+
// cache-control (e.g. `public`) does not authorize this: the credential was
|
|
296
|
+
// presented to the original hop, not the resource that actually produced
|
|
297
|
+
// the body. Fail closed. A history with more than one entry means at least
|
|
298
|
+
// one redirect was actually followed (a single non-redirected hop records
|
|
299
|
+
// exactly one entry), so a plain revalidation is not mistaken for a redirect.
|
|
300
|
+
if (
|
|
301
|
+
this.#history && this.#history.length > 1 &&
|
|
302
|
+
requestCarriesCredentials(this.#cacheKey.headers)
|
|
303
|
+
) {
|
|
304
|
+
return downstreamOnHeaders()
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// A cross-origin redirect can change the origin that actually produced the
|
|
308
|
+
// final response. Keying that response on the original (trusted) origin
|
|
309
|
+
// would let a redirect target control an entry for a URL the application
|
|
310
|
+
// trusts. Every hop in the redirect chain must stay on the cache key's
|
|
311
|
+
// origin. An intermediate cross-origin hop can bounce back to the trusted
|
|
312
|
+
// origin (or to any cacheable asset there) even when the final response
|
|
313
|
+
// comes from the trusted origin, so checking only the final URL is not
|
|
314
|
+
// enough.
|
|
315
|
+
if (this.#history && this.#history.length > 0) {
|
|
316
|
+
for (const hopUrl of this.#history) {
|
|
317
|
+
if (!sameOrigin(hopUrl.origin, this.#cacheKey.origin)) {
|
|
318
|
+
return downstreamOnHeaders()
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
// A redirect hop that is not forwarded can still carry a storage policy
|
|
324
|
+
// (for example `no-store`, `private` for a shared cache, `no-cache`,
|
|
325
|
+
// `must-revalidate`, zero freshness, or `Vary: *`) that the final response
|
|
326
|
+
// body does not inherit. Honor it, otherwise a redirect that must not be
|
|
327
|
+
// stored (or that selects a private/authenticated target) could be
|
|
328
|
+
// laundered into a cacheable final response under the original key.
|
|
329
|
+
const now = Date.now()
|
|
330
|
+
const redirectHopInfo = this.#history?.[kRedirectCacheControl]
|
|
331
|
+
const redirectPolicy = redirectHopInfo?.length > 0
|
|
332
|
+
? getRedirectPolicy(
|
|
333
|
+
this.#cacheType,
|
|
334
|
+
this.#cacheKey.method,
|
|
335
|
+
redirectHopInfo,
|
|
336
|
+
this.#cacheKey.headers,
|
|
337
|
+
this.#cacheByDefault,
|
|
338
|
+
now
|
|
339
|
+
)
|
|
340
|
+
: undefined
|
|
341
|
+
if (redirectHopInfo?.length > 0 && redirectPolicy === undefined) {
|
|
342
|
+
return downstreamOnHeaders()
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
const cacheControlHeader = resHeaders['cache-control']
|
|
346
|
+
const cacheControlDirectives = cacheControlHeader ? parseCacheControlHeader(cacheControlHeader) : {}
|
|
347
|
+
|
|
348
|
+
if (revalidationResponseDisallowsCachedReuse(this.#cacheType, resHeaders, cacheControlDirectives)) {
|
|
349
|
+
deleteCachedValue(this.#store, this.#cacheKey)
|
|
350
|
+
return downstreamOnHeaders()
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
const heuristicallyCacheable = resHeaders['last-modified'] && arrayIncludes(HEURISTICALLY_CACHEABLE_STATUS_CODES, statusCode)
|
|
354
|
+
if (
|
|
355
|
+
!cacheControlHeader &&
|
|
356
|
+
!resHeaders['expires'] &&
|
|
357
|
+
!heuristicallyCacheable &&
|
|
358
|
+
!this.#cacheByDefault
|
|
359
|
+
) {
|
|
360
|
+
if (statusCode === 304 && resHeaders.vary && isInvalidOrWildcardVaryHeader(resHeaders.vary)) {
|
|
361
|
+
deleteCachedValue(this.#store, this.#cacheKey)
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
// Don't have anything to tell us this response is cachable and we're not
|
|
365
|
+
// caching by default
|
|
366
|
+
return downstreamOnHeaders()
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
if (!canCacheResponse(this.#cacheType, this.#cacheKey.method, statusCode, resHeaders, cacheControlDirectives, this.#cacheKey.headers)) {
|
|
370
|
+
if (statusCode === 304 && (cacheControlHeader || revalidationResponseDisallowsCachedReuse(this.#cacheType, resHeaders, cacheControlDirectives))) {
|
|
371
|
+
deleteCachedValue(this.#store, this.#cacheKey)
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
return downstreamOnHeaders()
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
const resAge = Object.hasOwn(resHeaders, 'age') ? getAge(resHeaders.age) : undefined
|
|
378
|
+
if (resAge !== undefined && resAge >= MAX_RESPONSE_AGE) {
|
|
379
|
+
// Response considered stale
|
|
380
|
+
deleteCachedValueIfNotModified(statusCode, this.#store, this.#cacheKey)
|
|
381
|
+
return downstreamOnHeaders()
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
const resDate = Object.hasOwn(resHeaders, 'date') ? getDate(resHeaders.date) : undefined
|
|
385
|
+
if (resDate === null) {
|
|
386
|
+
deleteCachedValueIfNotModified(statusCode, this.#store, this.#cacheKey)
|
|
387
|
+
return downstreamOnHeaders()
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
const apparentAge = resDate ? Math.max(0, now - resDate.getTime()) : 0
|
|
391
|
+
const currentAge = Math.max(apparentAge, resAge ?? 0)
|
|
392
|
+
|
|
393
|
+
const hasValidator =
|
|
394
|
+
(typeof resHeaders.etag === 'string' && isEtagUsable(resHeaders.etag)) ||
|
|
395
|
+
typeof resHeaders['last-modified'] === 'string'
|
|
396
|
+
|
|
397
|
+
const staleAt =
|
|
398
|
+
determineStaleAt(this.#cacheType, now, resAge, resHeaders, resDate, cacheControlDirectives, hasValidator) ??
|
|
399
|
+
this.#cacheByDefault
|
|
400
|
+
// Zero freshness lifetime but a validator: stale from the start, yet still
|
|
401
|
+
// storable since each reuse is preceded by a revalidation request.
|
|
402
|
+
// https://www.rfc-editor.org/rfc/rfc9111.html#section-5.2.2.4
|
|
403
|
+
const revalidationOnly = staleAt === 0 && hasValidator
|
|
404
|
+
if (staleAt === undefined || (currentAge >= staleAt && !revalidationOnly)) {
|
|
405
|
+
if (cacheControlHeader || staleAt !== undefined) {
|
|
406
|
+
deleteCachedValueIfNotModified(statusCode, this.#store, this.#cacheKey)
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
return downstreamOnHeaders()
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
const baseTime = now - currentAge
|
|
413
|
+
let absoluteStaleAt = staleAt + baseTime
|
|
414
|
+
if (redirectPolicy !== undefined) {
|
|
415
|
+
absoluteStaleAt = Math.min(absoluteStaleAt, redirectPolicy.staleAt)
|
|
416
|
+
}
|
|
417
|
+
if (now >= absoluteStaleAt && !revalidationOnly) {
|
|
418
|
+
// Response is already stale
|
|
419
|
+
deleteCachedValueIfNotModified(statusCode, this.#store, this.#cacheKey)
|
|
420
|
+
return downstreamOnHeaders()
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
// Union the `Vary` of every suppressed redirect hop with the final
|
|
424
|
+
// response's `Vary`. A 3xx hop that negotiates its target on `Authorization`
|
|
425
|
+
// / `Cookie` (or any other header) must make the stored entry vary on those
|
|
426
|
+
// headers too, or an authenticated user's private response would be served
|
|
427
|
+
// to unrelated callers.
|
|
428
|
+
let varyDirectives
|
|
429
|
+
const combinedVary = []
|
|
430
|
+
if (redirectHopInfo) {
|
|
431
|
+
for (const hop of redirectHopInfo) {
|
|
432
|
+
appendVaryValues(combinedVary, hop?.headers?.vary)
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
appendVaryValues(combinedVary, resHeaders.vary)
|
|
436
|
+
if (combinedVary.length > 0) {
|
|
437
|
+
for (const varyHeader of combinedVary) {
|
|
438
|
+
if (hasVaryStar(varyHeader)) {
|
|
439
|
+
// `Vary: *` means the response can never be reused (RFC 9111 §4.1)
|
|
440
|
+
return downstreamOnHeaders()
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
if (this.#cacheKey.headers) {
|
|
444
|
+
varyDirectives = parseVaryHeader(combinedVary, this.#cacheKey.headers)
|
|
445
|
+
if (!varyDirectives) {
|
|
446
|
+
// Parse error
|
|
447
|
+
return downstreamOnHeaders()
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
// When the entry was folded from a redirect chain, the final response's
|
|
453
|
+
// stale-serving directives (RFC 5861) must not outlive the hops' freshness.
|
|
454
|
+
// A hop that grants no `stale-while-revalidate` / `stale-if-error` caps
|
|
455
|
+
// stale serving at its freshness, so the final response cannot launder a
|
|
456
|
+
// stale-serving window past the hop-bounded `staleAt`. Drop those directives
|
|
457
|
+
// (and keep the `proxy-revalidate` the hop policy may require) so the entry
|
|
458
|
+
// revalidates at `staleAt` instead of being served stale for the final
|
|
459
|
+
// response's window.
|
|
460
|
+
let effectiveCacheControlDirectives = cacheControlDirectives
|
|
461
|
+
if (redirectPolicy !== undefined) {
|
|
462
|
+
effectiveCacheControlDirectives = { ...cacheControlDirectives }
|
|
463
|
+
delete effectiveCacheControlDirectives['stale-while-revalidate']
|
|
464
|
+
delete effectiveCacheControlDirectives['stale-if-error']
|
|
465
|
+
if (redirectPolicy.requiresRevalidation === true) {
|
|
466
|
+
effectiveCacheControlDirectives['proxy-revalidate'] = true
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
const cachedAt = baseTime
|
|
471
|
+
const deleteAt = determineDeleteAt(baseTime, now, effectiveCacheControlDirectives, absoluteStaleAt)
|
|
472
|
+
const strippedHeaders = stripNecessaryHeaders(resHeaders, cacheControlDirectives)
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* @type {import('../../types/cache-interceptor.d.ts').default.CacheValue}
|
|
476
|
+
*/
|
|
477
|
+
const value = {
|
|
478
|
+
statusCode,
|
|
479
|
+
statusMessage,
|
|
480
|
+
headers: strippedHeaders,
|
|
481
|
+
vary: varyDirectives,
|
|
482
|
+
cacheControlDirectives: effectiveCacheControlDirectives,
|
|
483
|
+
cachedAt,
|
|
484
|
+
staleAt: absoluteStaleAt,
|
|
485
|
+
deleteAt
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
// Not modified, re-use the cached value
|
|
489
|
+
// https://www.rfc-editor.org/rfc/rfc9111.html#name-handling-304-not-modified
|
|
490
|
+
if (statusCode === 304) {
|
|
491
|
+
this.#replaying304 = true
|
|
492
|
+
let done = false
|
|
493
|
+
const finish304 = () => {
|
|
494
|
+
if (done) {
|
|
495
|
+
return
|
|
496
|
+
}
|
|
497
|
+
done = true
|
|
498
|
+
this.#replaying304 = false
|
|
499
|
+
if (this.#pending304End) {
|
|
500
|
+
const { controller, trailers } = this.#pending304End
|
|
501
|
+
this.#pending304End = undefined
|
|
502
|
+
this.#writeStream?.end()
|
|
503
|
+
this.#handler.onResponseEnd?.(controller, trailers)
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
// The cached body below is replayed to the downstream handler from later
|
|
508
|
+
// stream ticks (or an iterator loop), outside the dispatcher's own error
|
|
509
|
+
// handling, so a throwing downstream handler must be converged to a
|
|
510
|
+
// per-request error instead of escaping as an uncaught exception.
|
|
511
|
+
const failReplay = (err) => {
|
|
512
|
+
if (done) {
|
|
513
|
+
return
|
|
514
|
+
}
|
|
515
|
+
done = true
|
|
516
|
+
this.#replaying304 = false
|
|
517
|
+
this.#suppress304End = true
|
|
518
|
+
this.#pending304End = undefined
|
|
519
|
+
this.#writeStream?.destroy()
|
|
520
|
+
// The v7 handler API has no downstream block/release controller. Keep
|
|
521
|
+
// the origin response lifecycle independent, suppress its completion,
|
|
522
|
+
// and report the replay failure directly downstream.
|
|
523
|
+
try {
|
|
524
|
+
this.#handler.onResponseError?.(controller, err)
|
|
525
|
+
} catch {
|
|
526
|
+
// Never let a missing legacy error callback escape this async replay.
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
const handle304 = (cachedValue) => {
|
|
531
|
+
if (!cachedValue) {
|
|
532
|
+
// Do not create a new cache entry, as a 304 won't have a body - so cannot be cached.
|
|
533
|
+
downstreamOnHeaders()
|
|
534
|
+
finish304()
|
|
535
|
+
return
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
// Re-use the cached value: statuscode, statusmessage, headers and body
|
|
539
|
+
value.statusCode = cachedValue.statusCode
|
|
540
|
+
value.statusMessage = cachedValue.statusMessage
|
|
541
|
+
value.etag = cachedValue.etag
|
|
542
|
+
value.vary = varyDirectives ?? cachedValue.vary
|
|
543
|
+
value.headers = { ...cachedValue.headers, ...strippedHeaders }
|
|
544
|
+
|
|
545
|
+
downstreamOnHeaders()
|
|
546
|
+
|
|
547
|
+
this.#writeStream = this.#store.createWriteStream(this.#cacheKey, value)
|
|
548
|
+
|
|
549
|
+
if (!this.#writeStream || !cachedValue?.body) {
|
|
550
|
+
finish304()
|
|
551
|
+
return
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
if (typeof cachedValue.body.values === 'function') {
|
|
555
|
+
const bodyIterator = cachedValue.body.values()
|
|
556
|
+
|
|
557
|
+
const streamCachedBody = () => {
|
|
558
|
+
if (done) {
|
|
559
|
+
return
|
|
560
|
+
}
|
|
561
|
+
try {
|
|
562
|
+
for (const chunk of bodyIterator) {
|
|
563
|
+
const full = this.#writeStream?.write(chunk) === false
|
|
564
|
+
this.#handler.onResponseData?.(controller, chunk)
|
|
565
|
+
// when stream is full stop writing until we get a 'drain' event
|
|
566
|
+
if (full) {
|
|
567
|
+
return
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
finish304()
|
|
571
|
+
} catch (err) {
|
|
572
|
+
failReplay(err)
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
this.#writeStream
|
|
577
|
+
.on('error', function () {
|
|
578
|
+
handler.#writeStream = undefined
|
|
579
|
+
handler.#store.delete(handler.#cacheKey)
|
|
580
|
+
// Keep replaying downstream without the store.
|
|
581
|
+
streamCachedBody()
|
|
582
|
+
})
|
|
583
|
+
.on('drain', () => {
|
|
584
|
+
streamCachedBody()
|
|
585
|
+
})
|
|
586
|
+
.on('close', function () {
|
|
587
|
+
if (handler.#writeStream === this) {
|
|
588
|
+
handler.#writeStream = undefined
|
|
589
|
+
// Keep replaying downstream without the store.
|
|
590
|
+
streamCachedBody()
|
|
591
|
+
}
|
|
592
|
+
})
|
|
593
|
+
|
|
594
|
+
streamCachedBody()
|
|
595
|
+
} else if (typeof cachedValue.body.on === 'function') {
|
|
596
|
+
// Readable stream body (e.g. from async/remote cache stores)
|
|
597
|
+
cachedValue.body
|
|
598
|
+
.on('data', (chunk) => {
|
|
599
|
+
try {
|
|
600
|
+
this.#writeStream?.write(chunk)
|
|
601
|
+
this.#handler.onResponseData?.(controller, chunk)
|
|
602
|
+
} catch (err) {
|
|
603
|
+
cachedValue.body.destroy()
|
|
604
|
+
failReplay(err)
|
|
605
|
+
}
|
|
606
|
+
})
|
|
607
|
+
.on('end', () => {
|
|
608
|
+
this.#writeStream?.end()
|
|
609
|
+
finish304()
|
|
610
|
+
})
|
|
611
|
+
.on('error', () => {
|
|
612
|
+
this.#writeStream = undefined
|
|
613
|
+
this.#store.delete(this.#cacheKey)
|
|
614
|
+
finish304()
|
|
615
|
+
})
|
|
616
|
+
|
|
617
|
+
this.#writeStream
|
|
618
|
+
.on('error', function () {
|
|
619
|
+
handler.#writeStream = undefined
|
|
620
|
+
handler.#store.delete(handler.#cacheKey)
|
|
621
|
+
})
|
|
622
|
+
.on('close', function () {
|
|
623
|
+
if (handler.#writeStream === this) {
|
|
624
|
+
handler.#writeStream = undefined
|
|
625
|
+
}
|
|
626
|
+
})
|
|
627
|
+
} else {
|
|
628
|
+
finish304()
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* @type {import('../../types/cache-interceptor.d.ts').default.CacheValue}
|
|
634
|
+
*/
|
|
635
|
+
const result = this.#store.get(this.#cacheKey)
|
|
636
|
+
if (result && typeof result.then === 'function') {
|
|
637
|
+
result.then(handle304, () => handle304(undefined)).catch((err) => {
|
|
638
|
+
failReplay(err)
|
|
639
|
+
})
|
|
640
|
+
} else {
|
|
641
|
+
handle304(result)
|
|
642
|
+
}
|
|
643
|
+
} else {
|
|
644
|
+
if (typeof resHeaders.etag === 'string' && isEtagUsable(resHeaders.etag)) {
|
|
645
|
+
value.etag = resHeaders.etag
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
this.#writeStream = this.#store.createWriteStream(this.#cacheKey, value)
|
|
649
|
+
|
|
650
|
+
if (!this.#writeStream) {
|
|
651
|
+
return downstreamOnHeaders()
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
this.#writeStream
|
|
655
|
+
.on('drain', () => controller.resume())
|
|
656
|
+
.on('error', function () {
|
|
657
|
+
// TODO (fix): Make error somehow observable?
|
|
658
|
+
handler.#writeStream = undefined
|
|
659
|
+
|
|
660
|
+
// Delete the value in case the cache store is holding onto state from
|
|
661
|
+
// the call to createWriteStream
|
|
662
|
+
handler.#store.delete(handler.#cacheKey)
|
|
663
|
+
})
|
|
664
|
+
.on('close', function () {
|
|
665
|
+
if (handler.#writeStream === this) {
|
|
666
|
+
handler.#writeStream = undefined
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
// TODO (fix): Should we resume even if was paused downstream?
|
|
670
|
+
controller.resume()
|
|
671
|
+
})
|
|
672
|
+
|
|
673
|
+
downstreamOnHeaders()
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
onResponseData (controller, chunk) {
|
|
678
|
+
if (this.#writeStream?.write(chunk) === false) {
|
|
679
|
+
controller.pause()
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
this.#handler.onResponseData?.(controller, chunk)
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
onResponseEnd (controller, trailers) {
|
|
686
|
+
if (this.#suppress304End) {
|
|
687
|
+
this.#suppress304End = false
|
|
688
|
+
return
|
|
689
|
+
}
|
|
690
|
+
if (this.#replaying304) {
|
|
691
|
+
this.#pending304End = { controller, trailers }
|
|
692
|
+
return
|
|
693
|
+
}
|
|
694
|
+
this.#writeStream?.end()
|
|
695
|
+
this.#handler.onResponseEnd?.(controller, trailers)
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
onResponseError (controller, err) {
|
|
699
|
+
this.#replaying304 = false
|
|
700
|
+
this.#pending304End = undefined
|
|
701
|
+
this.#writeStream?.destroy(err)
|
|
702
|
+
this.#writeStream = undefined
|
|
703
|
+
this.#handler.onResponseError?.(controller, err)
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* @param {import('../../types/cache-interceptor.d.ts').default.CacheStore} store
|
|
709
|
+
* @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} cacheKey
|
|
710
|
+
*/
|
|
711
|
+
function deleteCachedValue (store, cacheKey) {
|
|
712
|
+
try {
|
|
713
|
+
store.delete(cacheKey)?.catch?.(noop)
|
|
714
|
+
} catch {
|
|
715
|
+
// Fail silently
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
function deleteCachedValueIfNotModified (statusCode, store, cacheKey) {
|
|
720
|
+
if (statusCode === 304) {
|
|
721
|
+
deleteCachedValue(store, cacheKey)
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* @param {import('../../types/cache-interceptor.d.ts').default.CacheOptions['type']} cacheType
|
|
727
|
+
* @param {import('../../types/header.d.ts').IncomingHttpHeaders} resHeaders
|
|
728
|
+
* @param {import('../../types/cache-interceptor.d.ts').default.CacheControlDirectives} cacheControlDirectives
|
|
729
|
+
* @returns {boolean}
|
|
730
|
+
*/
|
|
731
|
+
function revalidationResponseDisallowsCachedReuse (cacheType, resHeaders, cacheControlDirectives) {
|
|
732
|
+
return cacheControlDirectives['no-store'] === true ||
|
|
733
|
+
(cacheType === 'shared' && (
|
|
734
|
+
cacheControlDirectives.private === true ||
|
|
735
|
+
Object.hasOwn(resHeaders, 'set-cookie')
|
|
736
|
+
)) ||
|
|
737
|
+
(resHeaders.vary ? isInvalidOrWildcardVaryHeader(resHeaders.vary) : false)
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* @see https://www.rfc-editor.org/rfc/rfc9111.html#name-storing-responses-to-authen
|
|
742
|
+
*
|
|
743
|
+
* @param {import('../../types/cache-interceptor.d.ts').default.CacheOptions['type']} cacheType
|
|
744
|
+
* @param {string} method
|
|
745
|
+
* @param {number} statusCode
|
|
746
|
+
* @param {import('../../types/header.d.ts').IncomingHttpHeaders} resHeaders
|
|
747
|
+
* @param {import('../../types/cache-interceptor.d.ts').default.CacheControlDirectives} cacheControlDirectives
|
|
748
|
+
* @param {import('../../types/header.d.ts').IncomingHttpHeaders} [reqHeaders]
|
|
749
|
+
*/
|
|
750
|
+
function canCacheResponse (cacheType, method, statusCode, resHeaders, cacheControlDirectives, reqHeaders) {
|
|
751
|
+
if (!arrayIncludes(util.safeHTTPMethods, method)) {
|
|
752
|
+
return false
|
|
753
|
+
}
|
|
754
|
+
// Status code must be final and understood.
|
|
755
|
+
if (statusCode < 200 || arrayIncludes(NOT_UNDERSTOOD_STATUS_CODES, statusCode)) {
|
|
756
|
+
return false
|
|
757
|
+
}
|
|
758
|
+
// Responses with neither status codes that are heuristically cacheable, nor "explicit enough" caching
|
|
759
|
+
// directives, are not cacheable. "Explicit enough": see https://www.rfc-editor.org/rfc/rfc9111.html#section-3
|
|
760
|
+
if (!arrayIncludes(HEURISTICALLY_CACHEABLE_STATUS_CODES, statusCode) && !resHeaders['expires'] &&
|
|
761
|
+
!cacheControlDirectives.public &&
|
|
762
|
+
cacheControlDirectives['max-age'] === undefined &&
|
|
763
|
+
// RFC 9111: a private response directive, if the cache is not shared
|
|
764
|
+
!(cacheControlDirectives.private && cacheType === 'private') &&
|
|
765
|
+
!(cacheControlDirectives['s-maxage'] !== undefined && cacheType === 'shared')
|
|
766
|
+
) {
|
|
767
|
+
return false
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
if (cacheControlDirectives['no-store']) {
|
|
771
|
+
return false
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
if (cacheType === 'shared' && (
|
|
775
|
+
cacheControlDirectives.private === true ||
|
|
776
|
+
Object.hasOwn(resHeaders, 'set-cookie')
|
|
777
|
+
)) {
|
|
778
|
+
return false
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
// https://www.rfc-editor.org/rfc/rfc9111.html#section-4.1-5
|
|
782
|
+
if (resHeaders.vary && hasVaryStar(resHeaders.vary)) {
|
|
783
|
+
return false
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
// https://www.rfc-editor.org/rfc/rfc9111.html#name-storing-responses-to-authen
|
|
787
|
+
if (reqHeaders != null && Object.hasOwn(reqHeaders, 'authorization')) {
|
|
788
|
+
if (
|
|
789
|
+
!cacheControlDirectives.public &&
|
|
790
|
+
!cacheControlDirectives['s-maxage'] &&
|
|
791
|
+
!cacheControlDirectives['must-revalidate']
|
|
792
|
+
) {
|
|
793
|
+
return false
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
if (typeof reqHeaders.authorization !== 'string') {
|
|
797
|
+
return false
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
if (
|
|
801
|
+
Array.isArray(cacheControlDirectives['no-cache']) &&
|
|
802
|
+
arrayIncludes(cacheControlDirectives['no-cache'], 'authorization')
|
|
803
|
+
) {
|
|
804
|
+
return false
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
if (
|
|
808
|
+
Array.isArray(cacheControlDirectives['private']) &&
|
|
809
|
+
arrayIncludes(cacheControlDirectives['private'], 'authorization')
|
|
810
|
+
) {
|
|
811
|
+
return false
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
return true
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* Determine the absolute freshness deadline imposed by all suppressed redirect
|
|
820
|
+
* hops. Returning `undefined` means at least one hop cannot safely be folded
|
|
821
|
+
* into the final response under the original request key.
|
|
822
|
+
*
|
|
823
|
+
* @param {import('../../types/cache-interceptor.d.ts').default.CacheOptions['type']} cacheType
|
|
824
|
+
* @param {string} method
|
|
825
|
+
* @param {RedirectHop[]} redirectHops
|
|
826
|
+
* @param {import('../../types/header.d.ts').IncomingHttpHeaders} reqHeaders
|
|
827
|
+
* @param {number | undefined} cacheByDefault
|
|
828
|
+
* @param {number} now
|
|
829
|
+
* @returns {{ staleAt: number, requiresRevalidation: boolean } | undefined}
|
|
830
|
+
*/
|
|
831
|
+
function getRedirectPolicy (cacheType, method, redirectHops, reqHeaders, cacheByDefault, now) {
|
|
832
|
+
let staleAt = Infinity
|
|
833
|
+
let requiresRevalidation = false
|
|
834
|
+
|
|
835
|
+
for (const hop of redirectHops) {
|
|
836
|
+
const hopPolicy = getRedirectHopPolicy(cacheType, method, hop, reqHeaders, cacheByDefault)
|
|
837
|
+
if (hopPolicy === undefined || hopPolicy.staleAt <= now) {
|
|
838
|
+
return undefined
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
staleAt = Math.min(staleAt, hopPolicy.staleAt)
|
|
842
|
+
requiresRevalidation ||= hopPolicy.requiresRevalidation
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
return { staleAt, requiresRevalidation }
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* Calculate one redirect hop's absolute freshness deadline using the same age,
|
|
850
|
+
* date, expiration, invalid-directive, and heuristic rules as a final response.
|
|
851
|
+
*
|
|
852
|
+
* @param {import('../../types/cache-interceptor.d.ts').default.CacheOptions['type']} cacheType
|
|
853
|
+
* @param {string} method
|
|
854
|
+
* @param {RedirectHop} hop
|
|
855
|
+
* @param {import('../../types/header.d.ts').IncomingHttpHeaders} reqHeaders
|
|
856
|
+
* @param {number | undefined} cacheByDefault
|
|
857
|
+
* @returns {{ staleAt: number, requiresRevalidation: boolean } | undefined}
|
|
858
|
+
*/
|
|
859
|
+
function getRedirectHopPolicy (cacheType, method, hop, reqHeaders, cacheByDefault) {
|
|
860
|
+
if (!Number.isInteger(hop?.statusCode) || !Number.isFinite(hop?.receivedAt)) {
|
|
861
|
+
return undefined
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
const hopHeaders = hop.headers ?? {}
|
|
865
|
+
const cacheControlHeader = hopHeaders['cache-control']
|
|
866
|
+
const hopCacheControl = cacheControlHeader
|
|
867
|
+
? parseCacheControlHeader(cacheControlHeader)
|
|
868
|
+
: {}
|
|
869
|
+
|
|
870
|
+
// https://www.rfc-editor.org/rfc/rfc9111.html#section-4.1-5
|
|
871
|
+
if (hopHeaders.vary && hasVaryStar(hopHeaders.vary)) {
|
|
872
|
+
return undefined
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
if (hopCacheControl['no-store'] === true) {
|
|
876
|
+
return undefined
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
// A qualified `private` directive still marks the named fields as private.
|
|
880
|
+
// Folding a redirect that says `private="location"` would preserve the
|
|
881
|
+
// private target choice in the final body even though a shared cache is not
|
|
882
|
+
// allowed to store that Location field.
|
|
883
|
+
if (cacheType === 'shared' && Object.hasOwn(hopCacheControl, 'private')) {
|
|
884
|
+
return undefined
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
// These directives require the hop to be revalidated before reuse. Since the
|
|
888
|
+
// cache stores only the final response, it cannot independently validate the
|
|
889
|
+
// suppressed redirect response.
|
|
890
|
+
if (
|
|
891
|
+
Object.hasOwn(hopCacheControl, 'no-cache') ||
|
|
892
|
+
hopCacheControl['must-revalidate'] === true ||
|
|
893
|
+
(cacheType === 'shared' && hopCacheControl['proxy-revalidate'] === true)
|
|
894
|
+
) {
|
|
895
|
+
return undefined
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
const heuristicallyCacheable =
|
|
899
|
+
hopHeaders['last-modified'] &&
|
|
900
|
+
arrayIncludes(HEURISTICALLY_CACHEABLE_STATUS_CODES, hop.statusCode)
|
|
901
|
+
if (
|
|
902
|
+
!cacheControlHeader &&
|
|
903
|
+
!hopHeaders.expires &&
|
|
904
|
+
!heuristicallyCacheable &&
|
|
905
|
+
!cacheByDefault
|
|
906
|
+
) {
|
|
907
|
+
return undefined
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
if (!canCacheResponse(cacheType, method, hop.statusCode, hopHeaders, hopCacheControl, reqHeaders)) {
|
|
911
|
+
return undefined
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
const age = Object.hasOwn(hopHeaders, 'age') ? getAge(hopHeaders.age) : undefined
|
|
915
|
+
if (age !== undefined && age >= MAX_RESPONSE_AGE) {
|
|
916
|
+
return undefined
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
const responseDate = Object.hasOwn(hopHeaders, 'date') ? getDate(hopHeaders.date) : undefined
|
|
920
|
+
if (responseDate === null) {
|
|
921
|
+
return undefined
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
const apparentAge = responseDate ? Math.max(0, hop.receivedAt - responseDate.getTime()) : 0
|
|
925
|
+
const currentAge = Math.max(apparentAge, age ?? 0)
|
|
926
|
+
const hasValidator =
|
|
927
|
+
(typeof hopHeaders.etag === 'string' && isEtagUsable(hopHeaders.etag)) ||
|
|
928
|
+
typeof hopHeaders['last-modified'] === 'string'
|
|
929
|
+
const freshnessLifetime =
|
|
930
|
+
determineStaleAt(
|
|
931
|
+
cacheType,
|
|
932
|
+
hop.receivedAt,
|
|
933
|
+
age,
|
|
934
|
+
hopHeaders,
|
|
935
|
+
responseDate,
|
|
936
|
+
hopCacheControl,
|
|
937
|
+
hasValidator
|
|
938
|
+
) ?? cacheByDefault
|
|
939
|
+
|
|
940
|
+
if (freshnessLifetime === undefined) {
|
|
941
|
+
return undefined
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
return {
|
|
945
|
+
staleAt: hop.receivedAt - currentAge + freshnessLifetime,
|
|
946
|
+
// RFC 9111 §5.2.2.10: s-maxage implies proxy-revalidate for shared caches.
|
|
947
|
+
requiresRevalidation: cacheType === 'shared' && Object.hasOwn(hopCacheControl, 's-maxage')
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* @param {string | string[]} dateHeader
|
|
953
|
+
* @returns {Date | null | undefined}
|
|
954
|
+
*/
|
|
955
|
+
function getDate (dateHeader) {
|
|
956
|
+
let dateValue = dateHeader
|
|
957
|
+
if (Array.isArray(dateValue)) {
|
|
958
|
+
if (dateValue.length !== 1) {
|
|
959
|
+
return null
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
dateValue = dateValue[0]
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
if (typeof dateValue !== 'string') {
|
|
966
|
+
return null
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
return parseHttpDate(dateValue)
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* @param {string | string[]} ageHeader
|
|
974
|
+
* @returns {number | undefined}
|
|
975
|
+
*/
|
|
976
|
+
function getAge (ageHeader) {
|
|
977
|
+
let ageValue = ageHeader
|
|
978
|
+
if (Array.isArray(ageValue)) {
|
|
979
|
+
if (ageValue.length !== 1) {
|
|
980
|
+
return MAX_RESPONSE_AGE
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
ageValue = ageValue[0]
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
if (typeof ageValue !== 'string' || !/^[\t ]*[0-9]+[\t ]*$/.test(ageValue)) {
|
|
987
|
+
return MAX_RESPONSE_AGE
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
const age = BigInt(ageValue.replace(/^[\t ]+|[\t ]+$/g, ''))
|
|
991
|
+
if (age >= BigInt(MAX_RESPONSE_AGE / 1000)) {
|
|
992
|
+
return MAX_RESPONSE_AGE
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
return Number(age) * 1000
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* @param {import('../../types/cache-interceptor.d.ts').default.CacheOptions['type']} cacheType
|
|
1000
|
+
* @param {number} now
|
|
1001
|
+
* @param {number | undefined} age
|
|
1002
|
+
* @param {import('../../types/header.d.ts').IncomingHttpHeaders} resHeaders
|
|
1003
|
+
* @param {Date | undefined} responseDate
|
|
1004
|
+
* @param {import('../../types/cache-interceptor.d.ts').default.CacheControlDirectives} cacheControlDirectives
|
|
1005
|
+
* @param {boolean} hasValidator whether the response has a validator (etag or
|
|
1006
|
+
* last-modified) that revalidation requests can be made with
|
|
1007
|
+
*
|
|
1008
|
+
* @returns {number | undefined} time that the value is stale at in seconds or undefined if it shouldn't be cached
|
|
1009
|
+
*/
|
|
1010
|
+
function determineStaleAt (cacheType, now, age, resHeaders, responseDate, cacheControlDirectives, hasValidator) {
|
|
1011
|
+
if (cacheType === 'shared') {
|
|
1012
|
+
// Prioritize s-maxage since we're a shared cache
|
|
1013
|
+
// s-maxage > max-age > Expire
|
|
1014
|
+
// https://www.rfc-editor.org/rfc/rfc9111.html#section-5.2.2.10-3
|
|
1015
|
+
if (hasInvalidCacheControlDirective(cacheControlDirectives, 's-maxage')) {
|
|
1016
|
+
return 0
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
const sMaxAge = cacheControlDirectives['s-maxage']
|
|
1020
|
+
if (sMaxAge !== undefined) {
|
|
1021
|
+
return sMaxAge * 1000
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
if (hasInvalidCacheControlDirective(cacheControlDirectives, 'max-age')) {
|
|
1026
|
+
return 0
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
const maxAge = cacheControlDirectives['max-age']
|
|
1030
|
+
if (maxAge !== undefined) {
|
|
1031
|
+
return maxAge * 1000
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
if (Object.hasOwn(resHeaders, 'expires')) {
|
|
1035
|
+
// https://www.rfc-editor.org/rfc/rfc9111.html#section-5.3
|
|
1036
|
+
if (typeof resHeaders.expires !== 'string') {
|
|
1037
|
+
return 0
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
const expiresDate = parseHttpDate(resHeaders.expires)
|
|
1041
|
+
if (!expiresDate) {
|
|
1042
|
+
return 0
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
if (now >= expiresDate.getTime()) {
|
|
1046
|
+
return 0
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
if (responseDate) {
|
|
1050
|
+
if (responseDate >= expiresDate) {
|
|
1051
|
+
return 0
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
const freshnessLifetime = expiresDate.getTime() - responseDate.getTime()
|
|
1055
|
+
if (age !== undefined && age >= freshnessLifetime) {
|
|
1056
|
+
return 0
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
return freshnessLifetime
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
return expiresDate.getTime() - now
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
if (typeof resHeaders['last-modified'] === 'string') {
|
|
1066
|
+
// https://www.rfc-editor.org/rfc/rfc9111.html#name-calculating-heuristic-fresh
|
|
1067
|
+
const lastModified = parseHttpDate(resHeaders['last-modified'])
|
|
1068
|
+
if (lastModified) {
|
|
1069
|
+
if (lastModified.getTime() >= now) {
|
|
1070
|
+
return undefined
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
const responseAge = now - lastModified.getTime()
|
|
1074
|
+
|
|
1075
|
+
return responseAge * 0.1
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
if (cacheControlDirectives.immutable) {
|
|
1080
|
+
// https://www.rfc-editor.org/rfc/rfc8246.html#section-2.2
|
|
1081
|
+
return 31536000000
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
if (cacheControlDirectives['no-cache'] === true && hasValidator) {
|
|
1085
|
+
// No freshness source, but a validator lets us revalidate before reuse.
|
|
1086
|
+
// https://www.rfc-editor.org/rfc/rfc9111.html#section-5.2.2.4
|
|
1087
|
+
return 0
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
return undefined
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* @param {number} baseTime
|
|
1095
|
+
* @param {number} cachedAt
|
|
1096
|
+
* @param {import('../../types/cache-interceptor.d.ts').default.CacheControlDirectives} cacheControlDirectives
|
|
1097
|
+
* @param {number} staleAt
|
|
1098
|
+
*/
|
|
1099
|
+
function determineDeleteAt (baseTime, cachedAt, cacheControlDirectives, staleAt) {
|
|
1100
|
+
let staleWhileRevalidate = -Infinity
|
|
1101
|
+
let staleIfError = -Infinity
|
|
1102
|
+
let immutable = -Infinity
|
|
1103
|
+
|
|
1104
|
+
if (cacheControlDirectives['stale-while-revalidate']) {
|
|
1105
|
+
staleWhileRevalidate = staleAt + (cacheControlDirectives['stale-while-revalidate'] * 1000)
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
if (cacheControlDirectives['stale-if-error']) {
|
|
1109
|
+
staleIfError = staleAt + (cacheControlDirectives['stale-if-error'] * 1000)
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
if (cacheControlDirectives.immutable && staleWhileRevalidate === -Infinity && staleIfError === -Infinity) {
|
|
1113
|
+
immutable = cachedAt + 31536000000
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
// When no stale directives or immutable flag, add a revalidation buffer
|
|
1117
|
+
// equal to the freshness lifetime so the entry survives past staleAt long
|
|
1118
|
+
// enough to be revalidated instead of silently disappearing.
|
|
1119
|
+
//
|
|
1120
|
+
// Response Date headers only have second precision, so baseTime can trail the
|
|
1121
|
+
// actual cache insertion time by up to ~1s. Pad the buffer by that bounded
|
|
1122
|
+
// skew so short-lived entries do not disappear exactly when they should be
|
|
1123
|
+
// revalidated.
|
|
1124
|
+
if (staleWhileRevalidate === -Infinity && staleIfError === -Infinity && immutable === -Infinity) {
|
|
1125
|
+
const freshnessLifetime = staleAt - baseTime
|
|
1126
|
+
if (freshnessLifetime <= 0) {
|
|
1127
|
+
// Revalidation-only entry: no freshness lifetime to size the buffer on,
|
|
1128
|
+
// so retain it for a bounded window instead.
|
|
1129
|
+
return cachedAt + REVALIDATION_ONLY_RETENTION
|
|
1130
|
+
}
|
|
1131
|
+
const datePrecisionPadding = Math.min(Math.max(cachedAt - baseTime, 0), 1000)
|
|
1132
|
+
return staleAt + freshnessLifetime + datePrecisionPadding
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
return Math.max(staleAt, staleWhileRevalidate, staleIfError, immutable)
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* Strips headers required to be removed in cached responses
|
|
1140
|
+
* @param {import('../../types/header.d.ts').IncomingHttpHeaders} resHeaders
|
|
1141
|
+
* @param {import('../../types/cache-interceptor.d.ts').default.CacheControlDirectives} cacheControlDirectives
|
|
1142
|
+
* @returns {Record<string, string | string []>}
|
|
1143
|
+
*/
|
|
1144
|
+
function stripNecessaryHeaders (resHeaders, cacheControlDirectives) {
|
|
1145
|
+
const headersToRemove = [
|
|
1146
|
+
'connection',
|
|
1147
|
+
'proxy-authenticate',
|
|
1148
|
+
'proxy-authentication-info',
|
|
1149
|
+
'proxy-authorization',
|
|
1150
|
+
'proxy-connection',
|
|
1151
|
+
'te',
|
|
1152
|
+
'transfer-encoding',
|
|
1153
|
+
'upgrade',
|
|
1154
|
+
// We'll add age back when serving it
|
|
1155
|
+
'age'
|
|
1156
|
+
]
|
|
1157
|
+
|
|
1158
|
+
if (resHeaders['connection']) {
|
|
1159
|
+
appendConnectionHeaderTokens(headersToRemove, resHeaders['connection'])
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
if (Array.isArray(cacheControlDirectives['no-cache'])) {
|
|
1163
|
+
headersToRemove.push(...cacheControlDirectives['no-cache'])
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
if (Array.isArray(cacheControlDirectives['private'])) {
|
|
1167
|
+
headersToRemove.push(...cacheControlDirectives['private'])
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
let strippedHeaders
|
|
1171
|
+
for (const headerName of headersToRemove) {
|
|
1172
|
+
if (Object.hasOwn(resHeaders, headerName)) {
|
|
1173
|
+
strippedHeaders ??= { ...resHeaders }
|
|
1174
|
+
delete strippedHeaders[headerName]
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
return strippedHeaders ?? resHeaders
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
module.exports = CacheHandler
|