@sifxprime/krouter 0.5.166 → 0.5.168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +15 -15
- package/app/.next-cli-build/build-manifest.json +5 -5
- package/app/.next-cli-build/prerender-manifest.json +29 -29
- package/app/.next-cli-build/react-loadable-manifest.json +2 -2
- package/app/.next-cli-build/required-server-files.json +16 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
- 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_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_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_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_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/environment/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/environment/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_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_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_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_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_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_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/presidio/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/presidio/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_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_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_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_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +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_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_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_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_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_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_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js +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 +15 -11
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +15 -11
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +20 -16
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +3 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +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 +26 -16
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +26 -16
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +32 -22
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +3 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js +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/oidc/callback/route.js +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/test/route.js +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/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cache/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +6 -6
- 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/route.js +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/cline-settings/route.js +3 -3
- 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/copilot-settings/route.js +2 -2
- 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-tools/route.js +2 -2
- 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/deepseek-tui-settings/route.js +3 -3
- 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/hermes-settings/route.js +4 -4
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +3 -3
- 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/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +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/proxy/[...path]/route.js +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/start/route.js +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/stop/route.js +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js +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/route.js +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +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/elevenlabs/voices/route.js +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/minimax/voices/route.js +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/mitm/cert/route.js +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/availability/route.js +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/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/live/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/live-by-connection/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/preview/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +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/codex/bulk-import/route.js +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/cursor/auto-import/route.js +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/gitlab/pat/route.js +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/kiro/api-key/route.js +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/import/route.js +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-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +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/route.js +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/providers/[id]/models/route.js +2 -2
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +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-models/route.js +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/health/route.js +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/route.js +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/test-batch/route.js +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/zenith/log/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/zenith/route.js +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]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +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/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/environment/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/presidio/route.js +3 -3
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +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/route.js +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js +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/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/translator/load/route.js +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/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +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/enable/route.js +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/tailscale-check/route.js +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-enable/route.js +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/usage/[connectionId]/route.js +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/history/route.js +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/request-details/route.js +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/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +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/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +2 -2
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +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/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +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/models/[...model]/route.js +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/route.js +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/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +2 -2
- 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/edits/route.js +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/generations/route.js +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/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +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/update/route.js +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +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 +29 -18
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +29 -18
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +3 -1
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +37 -26
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +31 -18
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +38 -26
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +31 -18
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +34 -19
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +40 -27
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +34 -19
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +35 -21
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +42 -30
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +35 -21
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +33 -19
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +39 -27
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +33 -19
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/environment.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/environment.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/environment.segments/!KGRhc2hib2FyZCk/dashboard/environment/__PAGE__.segment.rsc +41 -30
- package/app/.next-cli-build/server/app/dashboard/environment.segments/_full.segment.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/environment.segments/_tree.segment.rsc +5 -1
- 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 +36 -23
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +44 -32
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +36 -23
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +6 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +33 -18
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +40 -26
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +33 -18
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/presidio.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/presidio.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/presidio.segments/!KGRhc2hib2FyZCk/dashboard/presidio/__PAGE__.segment.rsc +41 -30
- package/app/.next-cli-build/server/app/dashboard/presidio.segments/_full.segment.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/presidio.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +41 -30
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +35 -23
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +44 -32
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +35 -23
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +6 -1
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +41 -30
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +41 -30
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +31 -18
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +38 -26
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +31 -18
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +32 -19
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +39 -28
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +32 -19
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +5 -1
- 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_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 +31 -18
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +31 -18
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +40 -27
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +41 -30
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +31 -18
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +38 -26
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +31 -18
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +41 -30
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +41 -30
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +32 -19
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +38 -25
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +32 -19
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +4 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +24 -15
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +29 -20
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +24 -15
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -1
- package/app/.next-cli-build/server/app/landing/page.js +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 +30 -18
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +30 -18
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +3 -1
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +38 -26
- package/app/.next-cli-build/server/app/login/page.js +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 +29 -18
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +29 -18
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +3 -1
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +37 -26
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
- package/app/.next-cli-build/server/app/page.js +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 +15 -15
- package/app/.next-cli-build/server/chunks/1220.js +3 -3
- package/app/.next-cli-build/server/chunks/1344.js +2 -2
- package/app/.next-cli-build/server/chunks/1350.js +1 -1
- package/app/.next-cli-build/server/chunks/1450.js +1 -1
- package/app/.next-cli-build/server/chunks/1738.js +1 -1
- package/app/.next-cli-build/server/chunks/1813.js +23 -1
- package/app/.next-cli-build/server/chunks/2430.js +215 -31
- package/app/.next-cli-build/server/chunks/2722.js +6 -6
- package/app/.next-cli-build/server/chunks/2750.js +1 -1
- package/app/.next-cli-build/server/chunks/2970.js +163 -23
- package/app/.next-cli-build/server/chunks/3120.js +2 -2
- package/app/.next-cli-build/server/chunks/369.js +5 -5
- package/app/.next-cli-build/server/chunks/412.js +1 -1
- package/app/.next-cli-build/server/chunks/4161.js +1 -1
- package/app/.next-cli-build/server/chunks/4177.js +1 -1
- package/app/.next-cli-build/server/chunks/4306.js +1 -1
- package/app/.next-cli-build/server/chunks/4315.js +1 -1
- package/app/.next-cli-build/server/chunks/4380.js +1 -1
- package/app/.next-cli-build/server/chunks/4730.js +2 -2
- package/app/.next-cli-build/server/chunks/4884.js +4 -4
- package/app/.next-cli-build/server/chunks/523.js +1 -1
- package/app/.next-cli-build/server/chunks/5330.js +4 -4
- package/app/.next-cli-build/server/chunks/5433.js +1 -1
- package/app/.next-cli-build/server/chunks/5470.js +3 -3
- package/app/.next-cli-build/server/chunks/5573.js +1 -1
- package/app/.next-cli-build/server/chunks/5718.js +1 -1
- package/app/.next-cli-build/server/chunks/595.js +1 -1
- package/app/.next-cli-build/server/chunks/6182.js +2 -2
- package/app/.next-cli-build/server/chunks/7153.js +1 -1
- package/app/.next-cli-build/server/chunks/7774.js +13 -13
- package/app/.next-cli-build/server/chunks/7833.js +1 -1
- package/app/.next-cli-build/server/chunks/8238.js +1 -1
- package/app/.next-cli-build/server/chunks/8895.js +1 -1
- package/app/.next-cli-build/server/chunks/8962.js +1 -1
- package/app/.next-cli-build/server/chunks/9055.js +2 -2
- package/app/.next-cli-build/server/chunks/9958.js +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +186 -24
- 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 +5 -0
- package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/app/.next-cli-build/static/chunks/1321-91a272a5139df5f2.js +1 -0
- package/app/.next-cli-build/static/chunks/3794-39f2d5bb0d40336b.js +52 -0
- package/app/.next-cli-build/static/chunks/4bd1b696-8cd12253b448cc13.js +1 -0
- package/app/.next-cli-build/static/chunks/5353-0085e26d68aca1f0.js +1 -0
- package/app/.next-cli-build/static/chunks/{5497-1af4fbf829c885c4.js → 5497-ff8c2e5da835ea40.js} +1 -1
- package/app/.next-cli-build/static/chunks/5772-9e7c7f235304c527.js +3 -0
- package/app/.next-cli-build/static/chunks/6069-31c2febe26d36d92.js +73 -0
- package/app/.next-cli-build/static/chunks/{6357.aa5754cdb37976a7.js → 6357.5f2532e76bf2cc51.js} +1 -1
- package/app/.next-cli-build/static/chunks/7504-5249aa88b6205df1.js +64 -0
- package/app/.next-cli-build/static/chunks/8202.69dace5daa86686d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-8a99890727166f8a.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-ce0c6b650a822e25.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-589743e8ea1d9673.js +11 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-eacf2780757238ff.js +1 -0
- package/app/.next-cli-build/static/chunks/main-00cd8c01f6f6e461.js +5 -0
- package/app/.next-cli-build/static/chunks/{webpack-53609978799ebbca.js → webpack-cc312041cf710f25.js} +1 -1
- package/app/cli/package.json +1 -1
- package/app/node_modules/@next/env/package.json +1 -1
- package/app/node_modules/nanoid/package.json +3 -3
- package/app/node_modules/next/dist/build/analysis/get-page-static-info.js +58 -76
- package/app/node_modules/next/dist/build/babel/loader/get-config.js +7 -16
- package/app/node_modules/next/dist/build/babel/plugins/next-font-unsupported.js +1 -5
- package/app/node_modules/next/dist/build/babel/plugins/next-page-config.js +5 -25
- package/app/node_modules/next/dist/build/babel/plugins/next-page-disallow-re-export-all-exports.js +1 -5
- package/app/node_modules/next/dist/build/babel/plugins/next-ssg-transform.js +4 -20
- package/app/node_modules/next/dist/build/browser-variant-modules.js +1 -0
- package/app/node_modules/next/dist/build/create-compiler-aliases.js +19 -11
- package/app/node_modules/next/dist/build/define-env.js +12 -18
- package/app/node_modules/next/dist/build/entries.js +132 -8
- package/app/node_modules/next/dist/build/get-babel-loader-config.js +10 -10
- package/app/node_modules/next/dist/build/get-convention-file-base-name.js +29 -0
- package/app/node_modules/next/dist/build/get-static-info-including-layouts.js +0 -1
- package/app/node_modules/next/dist/build/handle-externals.js +1 -5
- package/app/node_modules/next/dist/build/load-jsconfig.js +1 -5
- package/app/node_modules/next/dist/build/lockfile.js +1 -5
- package/app/node_modules/next/dist/build/next-config-ts/transpile-config.js +1 -5
- package/app/node_modules/next/dist/build/nft.js +119 -0
- package/app/node_modules/next/dist/build/normalize-catchall-routes.js +18 -66
- package/app/node_modules/next/dist/build/print-build-errors.js +57 -7
- package/app/node_modules/next/dist/build/route-discovery.js +32 -4
- package/app/node_modules/next/dist/build/segment-config/app/app-segment-config.js +19 -5
- package/app/node_modules/next/dist/build/segment-config/app/app-segments.js +120 -29
- package/app/node_modules/next/dist/build/segment-config/app/collect-root-param-keys.js +1 -5
- package/app/node_modules/next/dist/build/static-paths/app/extract-pathname-route-param-segments-from-loader-tree.js +8 -2
- package/app/node_modules/next/dist/build/static-paths/app.js +230 -133
- package/app/node_modules/next/dist/build/static-paths/pages.js +8 -40
- package/app/node_modules/next/dist/build/static-paths/param-matching.js +200 -0
- package/app/node_modules/next/dist/build/swc/index.js +92 -162
- package/app/node_modules/next/dist/build/utils.js +180 -90
- package/app/node_modules/next/dist/build/webpack/cache-invalidation.js +1 -5
- package/app/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js +7 -35
- package/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/CssSyntaxError.js +0 -5
- package/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/camelcase.js +1 -5
- package/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js +5 -25
- package/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-import-parser.js +4 -20
- package/app/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/index.js +3 -16
- package/app/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/interface.js +0 -1
- package/app/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/loader.js +2 -10
- package/app/node_modules/next/dist/build/webpack/loaders/next-flight-css-loader.js +1 -5
- package/app/node_modules/next/dist/build/webpack/loaders/next-flight-loader/index.js +3 -15
- package/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js +3 -15
- package/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/Error.js +0 -5
- package/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/Warning.js +0 -5
- package/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js +2 -10
- package/app/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js +2 -6
- package/app/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/file-protocol.js +2 -10
- package/app/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/join-function.js +1 -5
- package/app/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/postcss.js +1 -5
- package/app/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin.js +1 -5
- package/app/node_modules/next/dist/build/webpack/plugins/deferred-entries-plugin.js +9 -0
- package/app/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +2 -6
- package/app/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +1 -5
- package/app/node_modules/next/dist/build/webpack/plugins/next-trace-entrypoints-plugin.js +2 -10
- package/app/node_modules/next/dist/build/webpack/plugins/next-types-plugin/index.js +3 -1
- package/app/node_modules/next/dist/build/webpack/plugins/slow-module-detection-plugin.js +3 -15
- package/app/node_modules/next/dist/build/webpack/plugins/subresource-integrity-plugin.js +1 -5
- package/app/node_modules/next/dist/build/webpack-config.js +16 -33
- package/app/node_modules/next/dist/cli/next-test.js +4 -0
- package/app/node_modules/next/dist/client/app-call-server.js +16 -18
- package/app/node_modules/next/dist/client/components/app-router-instance.js +43 -187
- package/app/node_modules/next/dist/client/components/{segment-cache/navigation.js → app-router-state.js} +88 -334
- package/app/node_modules/next/dist/client/components/app-router-utils.js +1 -5
- package/app/node_modules/next/dist/client/components/app-router.js +83 -74
- package/app/node_modules/next/dist/client/components/dev-root-http-access-fallback-boundary.js +1 -5
- package/app/node_modules/next/dist/client/components/forbidden.js +2 -10
- package/app/node_modules/next/dist/client/components/handle-isr-error.js +19 -4
- package/app/node_modules/next/dist/client/components/instant-samples.js +4 -11
- package/app/node_modules/next/dist/client/components/links.js +6 -7
- package/app/node_modules/next/dist/client/components/navigation-dynamic-rendering.js +3 -3
- package/app/node_modules/next/dist/client/components/navigation-untracked.js +1 -2
- package/app/node_modules/next/dist/client/components/navigation.js +2 -6
- package/app/node_modules/next/dist/client/components/navigation.react-server.js +1 -5
- package/app/node_modules/next/dist/client/components/navigator.js +73 -0
- package/app/node_modules/next/dist/client/components/not-found.js +1 -5
- package/app/node_modules/next/dist/client/components/prefetch.js +83 -0
- package/app/node_modules/next/dist/client/components/readonly-url-search-params.js +0 -5
- package/app/node_modules/next/dist/client/components/redirect.js +3 -15
- package/app/node_modules/next/dist/client/components/{router-reducer/ppr-navigations.js → render-tree.js} +365 -400
- package/app/node_modules/next/dist/client/components/router-reducer/compute-changed-path.js +13 -5
- package/app/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +67 -54
- package/app/node_modules/next/dist/client/components/router-reducer/create-router-cache-key.js +1 -7
- package/app/node_modules/next/dist/client/components/router-reducer/create-segment-key.js +42 -0
- package/app/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +71 -50
- package/app/node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js +4 -4
- package/app/node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js +2 -2
- package/app/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +5 -5
- package/app/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +11 -8
- package/app/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +12 -9
- package/app/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +30 -29
- package/app/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +5 -5
- package/app/node_modules/next/dist/client/components/router-reducer/router-reducer.js +2 -10
- package/app/node_modules/next/dist/client/components/segment-cache/bfcache.js +11 -21
- package/app/node_modules/next/dist/client/components/segment-cache/cache.js +1168 -1181
- package/app/node_modules/next/dist/client/components/segment-cache/decode-server-response.js +419 -0
- package/app/node_modules/next/dist/client/components/segment-cache/navigation-testing-lock.js +1 -1
- package/app/node_modules/next/dist/client/components/segment-cache/optimistic-routes.js +77 -82
- package/app/node_modules/next/dist/client/components/segment-cache/scheduler.js +464 -425
- package/app/node_modules/next/dist/client/components/segment-cache/types.js +12 -3
- package/app/node_modules/next/dist/client/components/segment-cache/vary-path.js +140 -126
- package/app/node_modules/next/dist/client/components/sequential-router-queue.js +163 -0
- package/app/node_modules/next/dist/client/components/unauthorized.js +2 -10
- package/app/node_modules/next/dist/client/components/unstable-rethrow.js +1 -2
- package/app/node_modules/next/dist/client/components/use-action-queue.js +2 -10
- package/app/node_modules/next/dist/client/dev/debug-channel.js +6 -323
- package/app/node_modules/next/dist/client/dev/hot-reloader/app/hot-reloader-app.js +49 -31
- package/app/node_modules/next/dist/client/dev/hot-reloader/app/web-socket.js +14 -21
- package/app/node_modules/next/dist/client/dev/hot-reloader/pages/hot-reloader-pages.js +15 -6
- package/app/node_modules/next/dist/client/dev/hot-reloader/runtime-error-state.js +72 -0
- package/app/node_modules/next/dist/client/flight-data-helpers.js +41 -94
- package/app/node_modules/next/dist/client/route-loader.js +6 -30
- package/app/node_modules/next/dist/client/route-params.js +34 -12
- package/app/node_modules/next/dist/client/router.js +2 -10
- package/app/node_modules/next/dist/client/sequential-call-server.js +45 -0
- package/app/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js +1 -1
- package/app/node_modules/next/dist/compiled/next-devtools/index.js +279 -229
- package/app/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js +203 -59
- package/app/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +203 -59
- package/app/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +203 -59
- package/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js +203 -59
- package/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js +5 -3
- package/app/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +13 -13
- package/app/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js +13 -13
- package/app/node_modules/next/dist/compiled/react-is/package.json +1 -1
- package/app/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js +1 -1
- package/app/node_modules/next/dist/compiled/unistore/unistore.js +1 -1
- package/app/node_modules/next/dist/experimental/testmode/fetch.js +2 -10
- package/app/node_modules/next/dist/export/helpers/create-incremental-cache.js +21 -16
- package/app/node_modules/next/dist/export/utils.js +21 -8
- package/app/node_modules/next/dist/lib/batcher.js +2 -2
- package/app/node_modules/next/dist/lib/dist-dir.js +88 -0
- package/app/node_modules/next/dist/lib/download-swc.js +2 -10
- package/app/node_modules/next/dist/lib/fallback.js +3 -15
- package/app/node_modules/next/dist/lib/find-pages-dir.js +2 -10
- package/app/node_modules/next/dist/lib/helpers/get-cache-directory.js +1 -5
- package/app/node_modules/next/dist/lib/helpers/get-registry.js +1 -5
- package/app/node_modules/next/dist/lib/is-error.js +3 -15
- package/app/node_modules/next/dist/lib/is-serializable-props.js +6 -35
- package/app/node_modules/next/dist/lib/patch-incorrect-lockfile.js +4 -8
- package/app/node_modules/next/dist/lib/picocolors.js +10 -0
- package/app/node_modules/next/dist/lib/recursive-delete.js +50 -11
- package/app/node_modules/next/dist/lib/resolve-from.js +2 -10
- package/app/node_modules/next/dist/lib/static-env.js +1 -5
- package/app/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +3 -15
- package/app/node_modules/next/dist/lib/typescript/missingDependencyError.js +1 -5
- package/app/node_modules/next/dist/lib/typescript/runTypeCheck.js +1 -9
- package/app/node_modules/next/dist/lib/typescript/runTypeCheckCli.js +0 -1
- package/app/node_modules/next/dist/lib/typescript/runTypeScriptCli.js +4 -16
- package/app/node_modules/next/dist/lib/verify-partytown-setup.js +1 -5
- package/app/node_modules/next/dist/lib/warn-missing-react-dependencies.js +33 -0
- package/app/node_modules/next/dist/next-devtools/server/attach-nodejs-debugger-middleware.js +1 -5
- package/app/node_modules/next/dist/next-devtools/server/shared.js +3 -2
- package/app/node_modules/next/dist/next-devtools/shared/console-error.js +1 -5
- package/app/node_modules/next/dist/next-devtools/userspace/app/errors/replay-ssr-only-errors.js +1 -5
- package/app/node_modules/next/dist/next-devtools/userspace/app/errors/runtime-error-metadata.js +39 -0
- package/app/node_modules/next/dist/next-devtools/userspace/app/errors/stitched-error.js +1 -5
- package/app/node_modules/next/dist/next-devtools/userspace/app/errors/use-error-handler.js +48 -19
- package/app/node_modules/next/dist/next-devtools/userspace/app/segment-explorer-node.js +1 -5
- package/app/node_modules/next/dist/server/accept-header.js +3 -15
- package/app/node_modules/next/dist/server/after/after-context.js +5 -25
- package/app/node_modules/next/dist/server/after/awaiter.js +1 -5
- package/app/node_modules/next/dist/server/after/run-with-after.js +2 -2
- package/app/node_modules/next/dist/server/api-utils/index.js +1 -10
- package/app/node_modules/next/dist/server/api-utils/node/parse-body.js +3 -15
- package/app/node_modules/next/dist/server/app-render/action-async-storage-instance.js +1 -1
- package/app/node_modules/next/dist/server/app-render/action-handler.js +104 -141
- package/app/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js +1 -1
- package/app/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +6 -30
- package/app/node_modules/next/dist/server/app-render/app-render-render-utils.js +1 -5
- package/app/node_modules/next/dist/server/app-render/app-render-scheduling.js +3 -15
- package/app/node_modules/next/dist/server/app-render/app-render.js +1346 -1211
- package/app/node_modules/next/dist/server/app-render/async-local-storage.js +11 -6
- package/app/node_modules/next/dist/server/app-render/blocking-route-messages.js +119 -70
- package/app/node_modules/next/dist/server/app-render/cache-signal.js +61 -35
- package/app/node_modules/next/dist/server/app-render/console-async-storage-instance.js +1 -1
- package/app/node_modules/next/dist/server/app-render/create-component-tree.js +136 -160
- package/app/node_modules/next/dist/server/app-render/create-error-handler.js +12 -6
- package/app/node_modules/next/dist/server/app-render/create-transport-tree-from-loader-tree.js +190 -0
- package/app/node_modules/next/dist/server/app-render/debug-channel-server.web.js +1 -5
- package/app/node_modules/next/dist/server/app-render/dev-validation-scheduler.js +4 -5
- package/app/node_modules/next/dist/server/app-render/dev-validation-worker-snapshot.js +3 -1
- package/app/node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js +1 -1
- package/app/node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js +26 -3
- package/app/node_modules/next/dist/server/app-render/dynamic-rendering-client.js +124 -0
- package/app/node_modules/next/dist/server/app-render/dynamic-rendering.js +260 -329
- package/app/node_modules/next/dist/server/app-render/encryption-utils.js +1 -5
- package/app/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js +2 -2
- package/app/node_modules/next/dist/server/app-render/instant-validation/instant-config.js +4 -12
- package/app/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js +13 -62
- package/app/node_modules/next/dist/server/app-render/instant-validation/stream-utils.js +2 -10
- package/app/node_modules/next/dist/server/app-render/manifests-singleton.js +110 -38
- package/app/node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js +1 -1
- package/app/node_modules/next/dist/server/app-render/parse-and-validate-flight-router-state.js +3 -15
- package/app/node_modules/next/dist/server/app-render/postponed-state.js +87 -51
- package/app/node_modules/next/dist/server/app-render/prospective-render-utils.js +2 -6
- package/app/node_modules/next/dist/server/app-render/render-in-browser.js +27 -0
- package/app/node_modules/next/dist/server/app-render/required-scripts.js +1 -5
- package/app/node_modules/next/dist/server/app-render/segment-config/ensure-static.js +206 -0
- package/app/node_modules/next/dist/server/app-render/staged-rendering.js +46 -54
- package/app/node_modules/next/dist/server/app-render/stream-ops.node.js +18 -12
- package/app/node_modules/next/dist/server/app-render/stream-ops.web.js +4 -20
- package/app/node_modules/next/dist/server/app-render/sync-io-messages.js +2 -10
- package/app/node_modules/next/dist/server/app-render/types.js +2 -1
- package/app/node_modules/next/dist/server/app-render/use-flight-response.js +4 -17
- package/app/node_modules/next/dist/server/app-render/vary-params.js +12 -11
- package/app/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +95 -97
- package/app/node_modules/next/dist/server/app-render/work-async-storage-instance.js +1 -1
- package/app/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +1 -1
- package/app/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +36 -26
- package/app/node_modules/next/dist/server/async-storage/draft-mode-provider.js +1 -5
- package/app/node_modules/next/dist/server/async-storage/request-store.js +6 -5
- package/app/node_modules/next/dist/server/async-storage/work-store.js +24 -26
- package/app/node_modules/next/dist/server/base-http/node.js +1 -5
- package/app/node_modules/next/dist/server/base-server.js +346 -155
- package/app/node_modules/next/dist/server/client-component-renderer-logger.js +129 -28
- package/app/node_modules/next/dist/server/config-schema.js +61 -9
- package/app/node_modules/next/dist/server/config-shared.js +26 -4
- package/app/node_modules/next/dist/server/config.js +154 -332
- package/app/node_modules/next/dist/server/dev/debug-channel.js +1 -5
- package/app/node_modules/next/dist/server/dev/dev-validation-worker-pool.js +1 -0
- package/app/node_modules/next/dist/server/dev/get-source-map-from-file.js +5 -25
- package/app/node_modules/next/dist/server/dev/hot-middleware.js +27 -1
- package/app/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +338 -200
- package/app/node_modules/next/dist/server/dev/hot-reloader-types.js +3 -0
- package/app/node_modules/next/dist/server/dev/hot-reloader-webpack.js +26 -20
- package/app/node_modules/next/dist/server/dev/messages.js +2 -10
- package/app/node_modules/next/dist/server/dev/middleware-turbopack.js +4 -20
- package/app/node_modules/next/dist/server/dev/middleware-webpack.js +2 -10
- package/app/node_modules/next/dist/server/dev/next-dev-server.js +33 -95
- package/app/node_modules/next/dist/server/dev/node-stack-frames.js +2 -19
- package/app/node_modules/next/dist/server/dev/on-demand-entry-handler.js +12 -12
- package/app/node_modules/next/dist/server/dev/runtime-error-state.js +220 -0
- package/app/node_modules/next/dist/server/dev/serialized-errors.js +1 -5
- package/app/node_modules/next/dist/server/dev/static-paths-worker.js +16 -15
- package/app/node_modules/next/dist/server/dev/turbopack-utils.js +20 -36
- package/app/node_modules/next/dist/server/dev/use-cache-probe-pool.js +1 -0
- package/app/node_modules/next/dist/server/dynamic-rendering-utils.js +298 -55
- package/app/node_modules/next/dist/server/image-optimizer/detect-content-type.js +229 -0
- package/app/node_modules/next/dist/server/image-optimizer/extract-etag.js +53 -0
- package/app/node_modules/next/dist/server/image-optimizer/get-image-size.js +25 -0
- package/app/node_modules/next/dist/server/image-optimizer/get-max-age.js +41 -0
- package/app/node_modules/next/dist/server/image-optimizer/get-previously-cached-image-or-null.js +22 -0
- package/app/node_modules/next/dist/server/image-optimizer/image-error.js +23 -0
- package/app/node_modules/next/dist/server/image-optimizer/image-type.js +86 -0
- package/app/node_modules/next/dist/server/image-optimizer/transform.js +227 -0
- package/app/node_modules/next/dist/server/image-optimizer.js +78 -674
- package/app/node_modules/next/dist/server/lib/app-info-log.js +19 -9
- package/app/node_modules/next/dist/server/lib/cache-handlers/default.js +9 -13
- package/app/node_modules/next/dist/server/lib/chrome-devtools-workspace.js +1 -5
- package/app/node_modules/next/dist/server/lib/dedupe-fetch.js +1 -5
- package/app/node_modules/next/dist/server/lib/dev-bundler-service.js +6 -6
- package/app/node_modules/next/dist/server/lib/generate-agent-files.js +158 -35
- package/app/node_modules/next/dist/server/lib/i18n-provider.js +1 -5
- package/app/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +14 -20
- package/app/node_modules/next/dist/server/lib/incremental-cache/index.js +19 -29
- package/app/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js +1 -5
- package/app/node_modules/next/dist/server/lib/lru-cache.js +1 -5
- package/app/node_modules/next/dist/server/lib/mock-request.js +24 -120
- package/app/node_modules/next/dist/server/lib/module-loader/node-module-loader.js +1 -5
- package/app/node_modules/next/dist/server/lib/patch-fetch.js +44 -38
- package/app/node_modules/next/dist/server/lib/postponed-request-body.js +1 -5
- package/app/node_modules/next/dist/server/lib/render-server.js +2 -10
- package/app/node_modules/next/dist/server/lib/router-server.js +106 -36
- package/app/node_modules/next/dist/server/lib/router-utils/build-data-route.js +26 -3
- package/app/node_modules/next/dist/server/lib/router-utils/cache-life-type-utils.js +14 -45
- package/app/node_modules/next/dist/server/lib/router-utils/decode-path-params.js +1 -5
- package/app/node_modules/next/dist/server/lib/router-utils/filesystem.js +212 -31
- package/app/node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js +61 -1
- package/app/node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js +1 -5
- package/app/node_modules/next/dist/server/lib/router-utils/normalize-catchall-routes.js +320 -0
- package/app/node_modules/next/dist/server/lib/router-utils/proxy-request.js +2 -2
- package/app/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +17 -11
- package/app/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js +258 -76
- package/app/node_modules/next/dist/server/lib/router-utils/strict-route-matching-config.js +28 -0
- package/app/node_modules/next/dist/server/lib/router-utils/typegen.js +56 -10
- package/app/node_modules/next/dist/server/lib/start-server.js +48 -38
- package/app/node_modules/next/dist/server/lib/trace/constants.js +40 -0
- package/app/node_modules/next/dist/server/lib/trace/request-insights-identity.js +1 -3
- package/app/node_modules/next/dist/server/lib/trace/tracer.js +10 -10
- package/app/node_modules/next/dist/server/lib/utils.js +66 -15
- package/app/node_modules/next/dist/server/load-components.js +7 -2
- package/app/node_modules/next/dist/server/load-manifest.external.js +16 -17
- package/app/node_modules/next/dist/server/mcp/tools/utils/browser-communication.js +2 -10
- package/app/node_modules/next/dist/server/mcp/tools/utils/format-errors.js +5 -5
- package/app/node_modules/next/dist/server/next-server.js +130 -124
- package/app/node_modules/next/dist/server/next.js +25 -37
- package/app/node_modules/next/dist/server/node-environment-extensions/console-dim.external.js +1 -2
- package/app/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +115 -62
- package/app/node_modules/next/dist/server/node-environment-extensions/global-behaviors.js +1 -5
- package/app/node_modules/next/dist/server/node-environment-extensions/io-utils.js +11 -10
- package/app/node_modules/next/dist/server/node-environment-extensions/process-error-handlers.js +0 -9
- package/app/node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js +1 -12
- package/app/node_modules/next/dist/server/normalizers/built/app/app-page-normalizer.js +1 -1
- package/app/node_modules/next/dist/server/normalizers/request/base-path.js +1 -5
- package/app/node_modules/next/dist/server/normalizers/request/next-data.js +1 -5
- package/app/node_modules/next/dist/server/normalizers/request/prefix.js +1 -5
- package/app/node_modules/next/dist/server/patch-error-inspect.js +19 -11
- package/app/node_modules/next/dist/server/pipe-readable.js +42 -30
- package/app/node_modules/next/dist/server/render-result.js +5 -17
- package/app/node_modules/next/dist/server/render.js +37 -183
- package/app/node_modules/next/dist/server/request/fallback-params.js +23 -9
- package/app/node_modules/next/dist/server/response-cache/index.js +54 -32
- package/app/node_modules/next/dist/server/response-cache/utils.js +1 -5
- package/app/node_modules/next/dist/server/resume-data-cache/cache-store.js +18 -0
- package/app/node_modules/next/dist/server/resume-data-cache/resume-data-cache.js +51 -49
- package/app/node_modules/next/dist/server/revalidation-utils.js +15 -13
- package/app/node_modules/next/dist/server/route-modules/app-page/dev-render-context.js +23 -0
- package/app/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.js +5 -4
- package/app/node_modules/next/dist/server/route-modules/app-page/module.js +13 -1
- package/app/node_modules/next/dist/server/route-modules/app-page/module.render.js +26 -11
- package/app/node_modules/next/dist/server/route-modules/app-page/parse-request-headers.js +58 -0
- package/app/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/entrypoints.js +1 -5
- package/app/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/entrypoints.js +1 -5
- package/app/node_modules/next/dist/server/route-modules/pages/module.render.js +1 -5
- package/app/node_modules/next/dist/server/route-modules/pages/pages-handler.js +20 -16
- package/app/node_modules/next/dist/server/route-modules/route-module.js +57 -61
- package/app/node_modules/next/dist/server/serve-static.js +1 -5
- package/app/node_modules/next/dist/server/setup-http-agent-env.js +1 -5
- package/app/node_modules/next/dist/server/stream-utils/encoded-tags.js +1 -1
- package/app/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +7 -11
- package/app/node_modules/next/dist/server/typescript/constant.js +2 -0
- package/app/node_modules/next/dist/server/typescript/rules/config.js +29 -2
- package/app/node_modules/next/dist/server/use-cache/cache-life-profile.js +6 -30
- package/app/node_modules/next/dist/server/use-cache/constants.js +1 -5
- package/app/node_modules/next/dist/server/use-cache/handlers.js +27 -36
- package/app/node_modules/next/dist/server/use-cache/tiered-cache-handler.js +6 -4
- package/app/node_modules/next/dist/server/web/adapter.js +14 -35
- package/app/node_modules/next/dist/server/web/error.js +0 -15
- package/app/node_modules/next/dist/server/web/globals.js +3 -15
- package/app/node_modules/next/dist/server/web/next-url.js +1 -5
- package/app/node_modules/next/dist/server/web/sandbox/context.js +10 -34
- package/app/node_modules/next/dist/server/web/sandbox/sandbox.js +1 -5
- package/app/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +0 -5
- package/app/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js +1 -5
- package/app/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +0 -5
- package/app/node_modules/next/dist/server/web/spec-extension/fetch-event.js +2 -10
- package/app/node_modules/next/dist/server/web/spec-extension/response.js +2 -10
- package/app/node_modules/next/dist/server/web/utils.js +1 -5
- package/app/node_modules/next/dist/server/web/web-on-close.js +2 -10
- package/app/node_modules/next/dist/shared/lib/app-router-types.js +38 -28
- package/app/node_modules/next/dist/shared/lib/constants.js +5 -0
- package/app/node_modules/next/dist/shared/lib/deployment-id.js +1 -1
- package/app/node_modules/next/dist/shared/lib/errors/code-frame.js +3 -2
- package/app/node_modules/next/dist/shared/lib/errors/empty-generate-static-params-error.js +1 -5
- package/app/node_modules/next/dist/shared/lib/errors/ensure-static-gsp-errors.js +30 -0
- package/app/node_modules/next/dist/shared/lib/errors/hard-deprecated-config-error.js +0 -5
- package/app/node_modules/next/dist/shared/lib/errors/incompatible-parallel-route-slots-error.js +36 -0
- package/app/node_modules/next/dist/shared/lib/errors/missing-canonical-interception-routes-error.js +20 -0
- package/app/node_modules/next/dist/shared/lib/errors/unmatched-app-pages-error.js +20 -0
- package/app/node_modules/next/dist/shared/lib/get-rspack.js +1 -5
- package/app/node_modules/next/dist/shared/lib/html-context.shared-runtime.js +1 -5
- package/app/node_modules/next/dist/shared/lib/image-config.js +52 -1
- package/app/node_modules/next/dist/shared/lib/instant-messages.js +2 -10
- package/app/node_modules/next/dist/shared/lib/invariant-error.js +0 -5
- package/app/node_modules/next/dist/shared/lib/lazy-dynamic/react-browser-bailout.js +45 -0
- package/app/node_modules/next/dist/shared/lib/magic-identifier.js +5 -25
- package/app/node_modules/next/dist/shared/lib/match-remote-pattern.js +1 -5
- package/app/node_modules/next/dist/shared/lib/router/router.js +95 -77
- package/app/node_modules/next/dist/shared/lib/router/routes/app.js +3 -15
- package/app/node_modules/next/dist/shared/lib/router/utils/app-paths.js +6 -1
- package/app/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +4 -12
- package/app/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +63 -20
- package/app/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +1 -5
- package/app/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +1 -5
- package/app/node_modules/next/dist/shared/lib/router/utils/querystring.js +31 -0
- package/app/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +1 -5
- package/app/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +1 -5
- package/app/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +11 -55
- package/app/node_modules/next/dist/shared/lib/rsc-transport.js +108 -0
- package/app/node_modules/next/dist/shared/lib/segment-cache/segment-value-encoding.js +0 -13
- package/app/node_modules/next/dist/shared/lib/segment-cache/vary-params-decoding.js +48 -27
- package/app/node_modules/next/dist/shared/lib/segment.js +1 -13
- package/app/node_modules/next/dist/shared/lib/turbopack/compilation-events.js +7 -7
- package/app/node_modules/next/dist/shared/lib/turbopack/internal-error.js +2 -7
- package/app/node_modules/next/dist/shared/lib/turbopack/manifest-loader.js +2 -6
- package/app/node_modules/next/dist/shared/lib/turbopack/utils.js +3 -11
- package/app/node_modules/next/dist/shared/lib/utils.js +2 -11
- package/app/node_modules/next/dist/shared/lib/zod.js +2 -6
- package/app/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/app/node_modules/next/dist/telemetry/detached-flush.js +8 -15
- package/app/node_modules/next/dist/telemetry/events/build.js +1 -2
- package/app/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
- package/app/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/app/node_modules/next/dist/telemetry/post-telemetry-payload.js +1 -5
- package/app/node_modules/next/dist/telemetry/storage.js +31 -19
- package/app/node_modules/next/dist/trace/report/index.js +5 -2
- package/app/node_modules/next/dist/trace/report/to-json-build.js +4 -2
- package/app/node_modules/next/dist/trace/report/to-json.js +141 -97
- package/app/node_modules/next/dist/trace/trace.js +14 -9
- package/app/node_modules/next/package.json +12 -11
- package/app/package.json +4 -4
- package/app/server.js +1 -1
- package/app/src/mitm/server.js +43 -39
- package/package.json +1 -1
- package/app/.next-cli-build/static/chunks/1321-c5b3011761e0228b.js +0 -1
- package/app/.next-cli-build/static/chunks/3794-83acfce05009cf38.js +0 -52
- package/app/.next-cli-build/static/chunks/4bd1b696-8a4ab4fdf0ae305a.js +0 -1
- package/app/.next-cli-build/static/chunks/5353-d31cc8d476bc534e.js +0 -1
- package/app/.next-cli-build/static/chunks/5772-6cf78180ecf9dce0.js +0 -3
- package/app/.next-cli-build/static/chunks/6069-7e7f824c6e2d4291.js +0 -73
- package/app/.next-cli-build/static/chunks/7504-6f7ca1eab428dd5e.js +0 -64
- package/app/.next-cli-build/static/chunks/8202.1ffc6ce531e066ce.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-90b9aed7279ea50e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-eaf6e24edeca4e51.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-2f53d5dd5b247cf1.js +0 -11
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-bbc10fd10f7af626.js +0 -1
- package/app/.next-cli-build/static/chunks/main-1eaba0b776683ce7.js +0 -5
- package/app/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/minify.js +0 -94
- package/app/node_modules/next/dist/client/components/match-segments.js +0 -32
- package/app/node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js +0 -63
- package/app/node_modules/next/dist/client/components/segment-cache/prefetch.js +0 -32
- package/app/node_modules/next/dist/compiled/webpack-sources3/index.js +0 -1
- package/app/node_modules/next/dist/compiled/webpack-sources3/package.json +0 -1
- package/app/node_modules/next/dist/lib/detached-promise.js +0 -32
- package/app/node_modules/next/dist/lib/error-telemetry-utils.js +0 -42
- package/app/node_modules/next/dist/next-devtools/server/get-next-error-feedback-middleware.js +0 -42
- package/app/node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js +0 -154
- package/app/node_modules/next/dist/server/lib/experimental/ppr.js +0 -47
- package/app/node_modules/next/dist/server/lib/params-utils.js +0 -70
- package/app/node_modules/next/dist/server/lib/router-utils/is-postpone.js +0 -16
- package/app/node_modules/next/dist/server/route-matcher-managers/default-route-matcher-manager.js +0 -239
- package/app/node_modules/next/dist/server/route-matcher-managers/dev-route-matcher-manager.js +0 -120
- package/app/node_modules/next/dist/server/route-matcher-providers/app-page-route-matcher-provider.js +0 -55
- package/app/node_modules/next/dist/server/route-matcher-providers/app-route-route-matcher-provider.js +0 -43
- package/app/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-page-route-matcher-provider.js +0 -91
- package/app/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-route-route-matcher-provider.js +0 -112
- package/app/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-api-route-matcher-provider.js +0 -77
- package/app/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-route-matcher-provider.js +0 -77
- package/app/node_modules/next/dist/server/route-matcher-providers/dev/file-cache-route-matcher-provider.js +0 -28
- package/app/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/batched-file-reader.js +0 -106
- package/app/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/default-file-reader.js +0 -42
- package/app/node_modules/next/dist/server/route-matcher-providers/helpers/cached-route-matcher-provider.js +0 -30
- package/app/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/node-manifest-loader.js +0 -34
- package/app/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/server-manifest-loader.js +0 -20
- package/app/node_modules/next/dist/server/route-matcher-providers/manifest-route-matcher-provider.js +0 -21
- package/app/node_modules/next/dist/server/route-matcher-providers/pages-api-route-matcher-provider.js +0 -55
- package/app/node_modules/next/dist/server/route-matcher-providers/pages-route-matcher-provider.js +0 -64
- package/app/node_modules/next/dist/server/route-matchers/app-page-route-matcher.js +0 -18
- package/app/node_modules/next/dist/server/route-matchers/app-route-route-matcher.js +0 -15
- package/app/node_modules/next/dist/server/route-matchers/locale-route-matcher.js +0 -68
- package/app/node_modules/next/dist/server/route-matchers/pages-api-route-matcher.js +0 -30
- package/app/node_modules/next/dist/server/route-matchers/pages-route-matcher.js +0 -30
- package/app/node_modules/next/dist/server/route-matchers/route-matcher.js +0 -54
- package/app/node_modules/next/dist/telemetry/events/error-feedback.js +0 -31
- /package/app/.next-cli-build/static/{i0cMBMqFdYWpbajovDyfY → em-yyr0O7qRIA9N8Clc4I}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{i0cMBMqFdYWpbajovDyfY → em-yyr0O7qRIA9N8Clc4I}/_ssgManifest.js +0 -0
|
@@ -61,6 +61,12 @@ const INLINE_ACTION_PREFIX = '$$RSC_SERVER_ACTION_';
|
|
|
61
61
|
const serverActionsManifest = (0, _manifestssingleton.getServerActionsManifest)();
|
|
62
62
|
return Object.keys(serverActionsManifest.node).length > 0 || Object.keys(serverActionsManifest.edge).length > 0;
|
|
63
63
|
}
|
|
64
|
+
function getUnrecognizedActionStatusCode(actionId) {
|
|
65
|
+
return actionId !== null && !(0, _serverreferenceinfo.mightBeServerReferenceId)(actionId) ? 400 : 409;
|
|
66
|
+
}
|
|
67
|
+
function getUnrecognizedActionResponseBody(statusCode) {
|
|
68
|
+
return statusCode === 400 ? 'Invalid Server Action request.' : 'Server Action unavailable.';
|
|
69
|
+
}
|
|
64
70
|
function nodeHeadersToRecord(headers) {
|
|
65
71
|
const record = {};
|
|
66
72
|
for (const [key, value] of Object.entries(headers)){
|
|
@@ -125,13 +131,9 @@ function addRevalidationHeader(res, { workStore, requestStore }) {
|
|
|
125
131
|
}
|
|
126
132
|
/**
|
|
127
133
|
* Forwards a server action request to a separate worker. Used when the requested action is not available in the current worker.
|
|
128
|
-
*/ async function createForwardedActionResponse(req, res, host, workerPathname, basePath) {
|
|
134
|
+
*/ async function createForwardedActionResponse(req, res, host, workerPathname, basePath, actionId) {
|
|
129
135
|
if (!host) {
|
|
130
|
-
throw
|
|
131
|
-
value: "E226",
|
|
132
|
-
enumerable: false,
|
|
133
|
-
configurable: true
|
|
134
|
-
});
|
|
136
|
+
throw new Error('Invariant: Missing `host` header from a forwarded Server Actions request.');
|
|
135
137
|
}
|
|
136
138
|
const forwardedHeaders = getForwardedHeaders(req, res);
|
|
137
139
|
// indicate that this action request was forwarded from another worker
|
|
@@ -147,20 +149,12 @@ function addRevalidationHeader(res, { workStore, requestStore }) {
|
|
|
147
149
|
const parsedUrl = new URL(initUrl);
|
|
148
150
|
origin = parsedUrl.origin;
|
|
149
151
|
} catch (error) {
|
|
150
|
-
throw
|
|
152
|
+
throw new Error('Could not determine origin for forwarded Server Actions request. This can happen if port or hostname are not configured for this server.', {
|
|
151
153
|
cause: error
|
|
152
|
-
}), "__NEXT_ERROR_CODE", {
|
|
153
|
-
value: "E1447",
|
|
154
|
-
enumerable: false,
|
|
155
|
-
configurable: true
|
|
156
154
|
});
|
|
157
155
|
}
|
|
158
156
|
} else {
|
|
159
|
-
throw
|
|
160
|
-
value: "E1446",
|
|
161
|
-
enumerable: false,
|
|
162
|
-
configurable: true
|
|
163
|
-
});
|
|
157
|
+
throw new _invarianterror.InvariantError('Missing initURL');
|
|
164
158
|
}
|
|
165
159
|
}
|
|
166
160
|
const fetchUrl = new URL(`${origin}${basePath}${workerPathname}`);
|
|
@@ -172,23 +166,32 @@ function addRevalidationHeader(res, { workStore, requestStore }) {
|
|
|
172
166
|
// environment variable check provides dead code elimination.
|
|
173
167
|
process.env.NEXT_RUNTIME === 'edge' && (0, _helpers.isWebNextRequest)(req)) {
|
|
174
168
|
if (!req.body) {
|
|
175
|
-
throw
|
|
176
|
-
value: "E333",
|
|
177
|
-
enumerable: false,
|
|
178
|
-
configurable: true
|
|
179
|
-
});
|
|
169
|
+
throw new Error('Invariant: missing request body.');
|
|
180
170
|
}
|
|
181
171
|
body = req.body;
|
|
182
172
|
} else if (// The type check here ensures that `req` is correctly typed, and the
|
|
183
173
|
// environment variable check provides dead code elimination.
|
|
184
174
|
process.env.NEXT_RUNTIME !== 'edge' && (0, _helpers.isNodeNextRequest)(req)) {
|
|
185
|
-
body
|
|
175
|
+
// If the action body was already stashed (and consumed from the
|
|
176
|
+
// request stream) so it could be replayed for the local action
|
|
177
|
+
// handler (e.g. when resume state was read from the body first),
|
|
178
|
+
// forward that stashed body instead of re-reading the now-exhausted
|
|
179
|
+
// stream, which would otherwise hang forever. Since the forwarded
|
|
180
|
+
// body no longer starts with the postponed state, the resume headers
|
|
181
|
+
// no longer apply and must be dropped so the receiving worker doesn't
|
|
182
|
+
// try to read postponed state from it.
|
|
183
|
+
// The platform can attach the target page's postponed state, including
|
|
184
|
+
// its RDC, to the forwarded request independently of these headers.
|
|
185
|
+
const actionBody = (0, _requestmeta.getRequestMeta)(req, 'actionBody');
|
|
186
|
+
if (actionBody) {
|
|
187
|
+
body = new Uint8Array(actionBody);
|
|
188
|
+
forwardedHeaders.delete(_constants.NEXT_RESUME_HEADER);
|
|
189
|
+
forwardedHeaders.delete(_constants.NEXT_RESUME_STATE_LENGTH_HEADER);
|
|
190
|
+
} else {
|
|
191
|
+
body = req.stream();
|
|
192
|
+
}
|
|
186
193
|
} else {
|
|
187
|
-
throw
|
|
188
|
-
value: "E114",
|
|
189
|
-
enumerable: false,
|
|
190
|
-
configurable: true
|
|
191
|
-
});
|
|
194
|
+
throw new Error('Invariant: Unknown request type.');
|
|
192
195
|
}
|
|
193
196
|
// Forward the request to the new worker
|
|
194
197
|
const response = await fetch(fetchUrl, {
|
|
@@ -217,8 +220,11 @@ function addRevalidationHeader(res, { workStore, requestStore }) {
|
|
|
217
220
|
if (response.headers.get(_approuterheaders.NEXT_ACTION_NOT_FOUND_HEADER) === '1') {
|
|
218
221
|
res.setHeader(_approuterheaders.NEXT_ACTION_NOT_FOUND_HEADER, '1');
|
|
219
222
|
res.setHeader('content-type', 'text/plain');
|
|
220
|
-
|
|
221
|
-
|
|
223
|
+
// The marker denotes an unavailable action. Derive the status from the
|
|
224
|
+
// requested ID so mixed-version workers cannot change its semantics.
|
|
225
|
+
const statusCode = getUnrecognizedActionStatusCode(actionId);
|
|
226
|
+
res.statusCode = statusCode;
|
|
227
|
+
return _renderresult.default.fromStatic(getUnrecognizedActionResponseBody(statusCode), 'text/plain');
|
|
222
228
|
}
|
|
223
229
|
} catch (err) {
|
|
224
230
|
// we couldn't stream the forwarded response, so we'll just return an empty response
|
|
@@ -267,11 +273,7 @@ async function createRedirectRenderResult(req, res, originalHost, redirectUrl, r
|
|
|
267
273
|
const appRelativeRedirectUrl = getAppRelativeRedirectUrl(basePath, originalHost, redirectUrl, currentPathname);
|
|
268
274
|
if (appRelativeRedirectUrl) {
|
|
269
275
|
if (!originalHost) {
|
|
270
|
-
throw
|
|
271
|
-
value: "E226",
|
|
272
|
-
enumerable: false,
|
|
273
|
-
configurable: true
|
|
274
|
-
});
|
|
276
|
+
throw new Error('Invariant: Missing `host` header from a forwarded Server Actions request.');
|
|
275
277
|
}
|
|
276
278
|
const forwardedHeaders = getForwardedHeaders(req, res);
|
|
277
279
|
forwardedHeaders.set(_approuterheaders.RSC_HEADER, '1');
|
|
@@ -284,27 +286,19 @@ async function createRedirectRenderResult(req, res, originalHost, redirectUrl, r
|
|
|
284
286
|
const parsedUrl = new URL(initUrl);
|
|
285
287
|
origin = parsedUrl.origin;
|
|
286
288
|
} catch (error) {
|
|
287
|
-
throw
|
|
289
|
+
throw new Error('Could not determine origin for forwarded Server Actions request. This can happen if port or hostname are not configured for this server.', {
|
|
288
290
|
cause: error
|
|
289
|
-
}), "__NEXT_ERROR_CODE", {
|
|
290
|
-
value: "E1447",
|
|
291
|
-
enumerable: false,
|
|
292
|
-
configurable: true
|
|
293
291
|
});
|
|
294
292
|
}
|
|
295
293
|
} else {
|
|
296
|
-
throw
|
|
297
|
-
value: "E1446",
|
|
298
|
-
enumerable: false,
|
|
299
|
-
configurable: true
|
|
300
|
-
});
|
|
294
|
+
throw new _invarianterror.InvariantError('Missing initURL');
|
|
301
295
|
}
|
|
302
296
|
}
|
|
303
297
|
const fetchUrl = new URL(`${origin}${appRelativeRedirectUrl.pathname}${appRelativeRedirectUrl.search}`);
|
|
304
298
|
if (workStore.pendingRevalidatedTags) {
|
|
305
|
-
var
|
|
299
|
+
var _workStore_incrementalCache;
|
|
306
300
|
forwardedHeaders.set(_constants.NEXT_CACHE_REVALIDATED_TAGS_HEADER, workStore.pendingRevalidatedTags.map((item)=>item.tag).join(','));
|
|
307
|
-
forwardedHeaders.set(_constants.NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER, ((_workStore_incrementalCache = workStore.incrementalCache) == null ? void 0 :
|
|
301
|
+
forwardedHeaders.set(_constants.NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER, ((_workStore_incrementalCache = workStore.incrementalCache) == null ? void 0 : _workStore_incrementalCache.previewProps.previewModeId) || '');
|
|
308
302
|
}
|
|
309
303
|
// Ensures that when the path was revalidated we don't return a partial response on redirects
|
|
310
304
|
forwardedHeaders.delete(_approuterheaders.NEXT_ROUTER_STATE_TREE_HEADER);
|
|
@@ -370,12 +364,21 @@ function parseHostHeader(headers, originDomain) {
|
|
|
370
364
|
value: hostHeader
|
|
371
365
|
} : undefined;
|
|
372
366
|
}
|
|
367
|
+
function getRevalidationWaitUntil(workStore, skipPageRendering) {
|
|
368
|
+
if (!skipPageRendering) {
|
|
369
|
+
// Page rendering executes pending revalidations before rendering. We only
|
|
370
|
+
// need to attach them to waitUntil when no page render will take place.
|
|
371
|
+
return undefined;
|
|
372
|
+
}
|
|
373
|
+
const revalidatesPromise = (0, _revalidationutils.executeRevalidates)(workStore);
|
|
374
|
+
return revalidatesPromise === false ? undefined : revalidatesPromise;
|
|
375
|
+
}
|
|
373
376
|
async function handleAction({ req, res, ComponentMod, generateFlight, workStore, requestStore, serverActions, ctx, metadata }) {
|
|
374
377
|
const contentType = req.headers['content-type'];
|
|
375
378
|
const { page } = ctx.renderOpts;
|
|
376
379
|
const serverModuleMap = (0, _manifestssingleton.getServerModuleMap)();
|
|
377
380
|
const { actionId, isMultipartAction, isFetchAction, isURLEncodedAction, isPossibleServerAction } = (0, _serveractionrequestmeta.getServerActionRequestMetadata)(req);
|
|
378
|
-
const
|
|
381
|
+
const handleUnrecognizedAction = (err, statusCode)=>{
|
|
379
382
|
// If the deployment doesn't have skew protection, this is expected to occasionally happen,
|
|
380
383
|
// so we use a warning instead of an error.
|
|
381
384
|
console.warn(err);
|
|
@@ -385,10 +388,10 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
385
388
|
// (i.e. without needing to invoke a lambda)
|
|
386
389
|
res.setHeader(_approuterheaders.NEXT_ACTION_NOT_FOUND_HEADER, '1');
|
|
387
390
|
res.setHeader('content-type', 'text/plain');
|
|
388
|
-
res.statusCode =
|
|
391
|
+
res.statusCode = statusCode;
|
|
389
392
|
return {
|
|
390
393
|
type: 'done',
|
|
391
|
-
result: _renderresult.default.fromStatic(
|
|
394
|
+
result: _renderresult.default.fromStatic(getUnrecognizedActionResponseBody(statusCode), 'text/plain')
|
|
392
395
|
};
|
|
393
396
|
};
|
|
394
397
|
// If it can't be a Server Action, skip handling.
|
|
@@ -409,17 +412,10 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
409
412
|
return null;
|
|
410
413
|
}
|
|
411
414
|
}
|
|
412
|
-
// If the app has no server actions at all, we can
|
|
415
|
+
// If the app has no server actions at all, we can reject the request early.
|
|
413
416
|
if (!hasServerActions()) {
|
|
414
417
|
const error = actionId !== null && !(0, _serverreferenceinfo.mightBeServerReferenceId)(actionId) ? (0, _manifestssingleton.getInvalidServerReferenceIdError)(actionId) : (0, _manifestssingleton.getActionNotFoundError)(actionId);
|
|
415
|
-
return
|
|
416
|
-
}
|
|
417
|
-
if (workStore.isStaticGeneration) {
|
|
418
|
-
throw Object.defineProperty(new Error("Invariant: server actions can't be handled during static rendering"), "__NEXT_ERROR_CODE", {
|
|
419
|
-
value: "E359",
|
|
420
|
-
enumerable: false,
|
|
421
|
-
configurable: true
|
|
422
|
-
});
|
|
418
|
+
return handleUnrecognizedAction(error, getUnrecognizedActionStatusCode(actionId));
|
|
423
419
|
}
|
|
424
420
|
let temporaryReferences;
|
|
425
421
|
// When running actions the default is no-store, you can still `cache: 'force-cache'`
|
|
@@ -457,11 +453,7 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
457
453
|
// This is an attack. We should not proceed the action.
|
|
458
454
|
console.error(`\`x-forwarded-host\` or \`host\` headers are not provided. One of these is needed to compare the \`origin\` header from a forwarded Server Actions request. Aborting the action.`);
|
|
459
455
|
}
|
|
460
|
-
const error =
|
|
461
|
-
value: "E80",
|
|
462
|
-
enumerable: false,
|
|
463
|
-
configurable: true
|
|
464
|
-
});
|
|
456
|
+
const error = new Error('Invalid Server Actions request.');
|
|
465
457
|
if (isFetchAction) {
|
|
466
458
|
res.statusCode = 500;
|
|
467
459
|
metadata.statusCode = 500;
|
|
@@ -477,7 +469,7 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
477
469
|
}
|
|
478
470
|
return {
|
|
479
471
|
type: 'done',
|
|
480
|
-
result: await generateFlight(
|
|
472
|
+
result: await generateFlight(ctx, requestStore, {
|
|
481
473
|
actionResult: promise,
|
|
482
474
|
// We didn't execute an action, so no revalidations could have
|
|
483
475
|
// occurred. We can skip rendering the page.
|
|
@@ -492,6 +484,10 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
492
484
|
// ensure we avoid caching server actions unexpectedly
|
|
493
485
|
res.setHeader('Cache-Control', 'no-cache, no-store, max-age=0, must-revalidate');
|
|
494
486
|
const actionWasForwarded = Boolean(req.headers['x-action-forwarded']);
|
|
487
|
+
// A fetch action targeting a fallback route has no concrete params with
|
|
488
|
+
// which to resume the destination page.
|
|
489
|
+
const isActionOnlyFallbackRequest = isFetchAction && ctx.fallbackRouteParams != null && typeof ctx.renderOpts.postponed === 'string';
|
|
490
|
+
const shouldSkipPageRendering = actionWasForwarded || isActionOnlyFallbackRequest;
|
|
495
491
|
// Only attempt to forward if this request has not already been forwarded.
|
|
496
492
|
// Otherwise middleware that rewrites the action POST can cause the receiving
|
|
497
493
|
// worker to forward again, looping indefinitely.
|
|
@@ -503,7 +499,7 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
503
499
|
if (forwardedWorker) {
|
|
504
500
|
return {
|
|
505
501
|
type: 'done',
|
|
506
|
-
result: await createForwardedActionResponse(req, res, host, forwardedWorker, ctx.renderOpts.basePath)
|
|
502
|
+
result: await createForwardedActionResponse(req, res, host, forwardedWorker, ctx.renderOpts.basePath, actionId)
|
|
507
503
|
};
|
|
508
504
|
}
|
|
509
505
|
}
|
|
@@ -522,11 +518,7 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
522
518
|
// environment variable check provides dead code elimination.
|
|
523
519
|
process.env.NEXT_RUNTIME === 'edge' && (0, _helpers.isWebNextRequest)(req)) {
|
|
524
520
|
if (!req.body) {
|
|
525
|
-
throw
|
|
526
|
-
value: "E364",
|
|
527
|
-
enumerable: false,
|
|
528
|
-
configurable: true
|
|
529
|
-
});
|
|
521
|
+
throw new Error('invariant: Missing request body.');
|
|
530
522
|
}
|
|
531
523
|
// Use react-server-dom-webpack/server
|
|
532
524
|
const { createTemporaryReferenceSet, decodeReply, decodeAction, decodeFormState } = ComponentMod;
|
|
@@ -545,11 +537,7 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
545
537
|
edgeBodySize += value.byteLength;
|
|
546
538
|
if (edgeBodySize > bodySizeLimitBytes) {
|
|
547
539
|
const { ApiError } = require('../api-utils');
|
|
548
|
-
throw
|
|
549
|
-
value: "E394",
|
|
550
|
-
enumerable: false,
|
|
551
|
-
configurable: true
|
|
552
|
-
});
|
|
540
|
+
throw new ApiError(413, `Body exceeded ${bodySizeLimit} limit.\n` + `To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit`);
|
|
553
541
|
}
|
|
554
542
|
edgeChunks.push(value);
|
|
555
543
|
}
|
|
@@ -575,7 +563,7 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
575
563
|
try {
|
|
576
564
|
actionModId = getActionModIdOrError(actionId, serverModuleMap);
|
|
577
565
|
} catch (err) {
|
|
578
|
-
return
|
|
566
|
+
return handleUnrecognizedAction(err, getUnrecognizedActionStatusCode(actionId));
|
|
579
567
|
}
|
|
580
568
|
boundActionArguments = await decodeReply(formData, serverModuleMap, {
|
|
581
569
|
temporaryReferences
|
|
@@ -583,14 +571,12 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
583
571
|
} else {
|
|
584
572
|
// Multipart POST, but not a fetch action.
|
|
585
573
|
// Potentially an MPA action, we have to try decoding it to check.
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
configurable: true
|
|
593
|
-
});
|
|
574
|
+
try {
|
|
575
|
+
if (!areAllActionIdsValid(formData, serverModuleMap)) {
|
|
576
|
+
return handleUnrecognizedAction(new Error('Invalid Server Actions request.'), 400);
|
|
577
|
+
}
|
|
578
|
+
} catch (err) {
|
|
579
|
+
return handleUnrecognizedAction(err, 409);
|
|
594
580
|
}
|
|
595
581
|
const action = await decodeAction(formData, serverModuleMap);
|
|
596
582
|
if (typeof action === 'function') {
|
|
@@ -621,7 +607,7 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
621
607
|
try {
|
|
622
608
|
actionModId = getActionModIdOrError(actionId, serverModuleMap);
|
|
623
609
|
} catch (err) {
|
|
624
|
-
return
|
|
610
|
+
return handleUnrecognizedAction(err, getUnrecognizedActionStatusCode(actionId));
|
|
625
611
|
}
|
|
626
612
|
// A fetch action with a non-multipart body.
|
|
627
613
|
// In practice, this happens if `encodeReply` returned a string instead of FormData,
|
|
@@ -637,11 +623,7 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
637
623
|
nonMultipartBodySize += value.byteLength;
|
|
638
624
|
if (nonMultipartBodySize > bodySizeLimitBytes) {
|
|
639
625
|
const { ApiError } = require('../api-utils');
|
|
640
|
-
throw
|
|
641
|
-
value: "E394",
|
|
642
|
-
enumerable: false,
|
|
643
|
-
configurable: true
|
|
644
|
-
});
|
|
626
|
+
throw new ApiError(413, `Body exceeded ${bodySizeLimit} limit.\n` + `To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit`);
|
|
645
627
|
}
|
|
646
628
|
chunks.push(value);
|
|
647
629
|
}
|
|
@@ -668,11 +650,7 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
668
650
|
size += Buffer.byteLength(chunk, encoding);
|
|
669
651
|
if (size > bodySizeLimitBytes) {
|
|
670
652
|
const { ApiError } = require('../api-utils');
|
|
671
|
-
callback(
|
|
672
|
-
value: "E394",
|
|
673
|
-
enumerable: false,
|
|
674
|
-
configurable: true
|
|
675
|
-
}));
|
|
653
|
+
callback(new ApiError(413, `Body exceeded ${bodySizeLimit} limit.\n` + `To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit`));
|
|
676
654
|
return;
|
|
677
655
|
}
|
|
678
656
|
callback(null, chunk);
|
|
@@ -684,7 +662,7 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
684
662
|
try {
|
|
685
663
|
actionModId = getActionModIdOrError(actionId, serverModuleMap);
|
|
686
664
|
} catch (err) {
|
|
687
|
-
return
|
|
665
|
+
return handleUnrecognizedAction(err, getUnrecognizedActionStatusCode(actionId));
|
|
688
666
|
}
|
|
689
667
|
const busboy = require('next/dist/compiled/busboy')({
|
|
690
668
|
defParamCharset: 'utf8',
|
|
@@ -737,14 +715,12 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
737
715
|
abortController.abort();
|
|
738
716
|
throw err;
|
|
739
717
|
}
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
configurable: true
|
|
747
|
-
});
|
|
718
|
+
try {
|
|
719
|
+
if (!areAllActionIdsValid(formData, serverModuleMap)) {
|
|
720
|
+
return handleUnrecognizedAction(new Error('Invalid Server Actions request.'), 400);
|
|
721
|
+
}
|
|
722
|
+
} catch (err) {
|
|
723
|
+
return handleUnrecognizedAction(err, 409);
|
|
748
724
|
}
|
|
749
725
|
// TODO: Refactor so it is harder to accidentally decode an action before you have validated that the
|
|
750
726
|
// action referred to is available.
|
|
@@ -777,7 +753,7 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
777
753
|
try {
|
|
778
754
|
actionModId = getActionModIdOrError(actionId, serverModuleMap);
|
|
779
755
|
} catch (err) {
|
|
780
|
-
return
|
|
756
|
+
return handleUnrecognizedAction(err, getUnrecognizedActionStatusCode(actionId));
|
|
781
757
|
}
|
|
782
758
|
// A fetch action with a non-multipart body.
|
|
783
759
|
// In practice, this happens if `encodeReply` returned a string instead of FormData,
|
|
@@ -798,11 +774,7 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
798
774
|
});
|
|
799
775
|
}
|
|
800
776
|
} else {
|
|
801
|
-
throw
|
|
802
|
-
value: "E114",
|
|
803
|
-
enumerable: false,
|
|
804
|
-
configurable: true
|
|
805
|
-
});
|
|
777
|
+
throw new Error('Invariant: Unknown request type.');
|
|
806
778
|
}
|
|
807
779
|
// actions.js
|
|
808
780
|
// app/page.js
|
|
@@ -848,7 +820,7 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
848
820
|
}
|
|
849
821
|
}
|
|
850
822
|
const startTime = performance.now();
|
|
851
|
-
const { actionResult, skipPageRendering } = await executeActionAndPrepareForRender(actionHandler, boundActionArguments, workStore, requestStore,
|
|
823
|
+
const { actionResult, skipPageRendering } = await executeActionAndPrepareForRender(actionHandler, boundActionArguments, workStore, requestStore, shouldSkipPageRendering).finally(()=>{
|
|
852
824
|
addRevalidationHeader(res, {
|
|
853
825
|
workStore,
|
|
854
826
|
requestStore
|
|
@@ -866,17 +838,13 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
866
838
|
});
|
|
867
839
|
// For form actions, we need to continue rendering the page.
|
|
868
840
|
if (isFetchAction) {
|
|
869
|
-
// If we skip page rendering, we need to ensure pending revalidates
|
|
870
|
-
// are awaited before closing the response. Otherwise, this will be
|
|
871
|
-
// done after rendering the page.
|
|
872
|
-
const maybeRevalidatesPromise = skipPageRendering ? (0, _revalidationutils.executeRevalidates)(workStore) : false;
|
|
873
841
|
return {
|
|
874
842
|
type: 'done',
|
|
875
|
-
result: await _actionasyncstorageexternal.actionAsyncStorage.exit(()=>generateFlight(
|
|
843
|
+
result: await _actionasyncstorageexternal.actionAsyncStorage.exit(()=>generateFlight(ctx, requestStore, {
|
|
876
844
|
actionResult: Promise.resolve(actionResult),
|
|
877
845
|
skipPageRendering,
|
|
878
846
|
temporaryReferences,
|
|
879
|
-
waitUntil:
|
|
847
|
+
waitUntil: getRevalidationWaitUntil(workStore, skipPageRendering)
|
|
880
848
|
}))
|
|
881
849
|
};
|
|
882
850
|
} else {
|
|
@@ -924,10 +892,11 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
924
892
|
}
|
|
925
893
|
return {
|
|
926
894
|
type: 'done',
|
|
927
|
-
result: await generateFlight(
|
|
928
|
-
skipPageRendering:
|
|
895
|
+
result: await generateFlight(ctx, requestStore, {
|
|
896
|
+
skipPageRendering: shouldSkipPageRendering,
|
|
929
897
|
actionResult: promise,
|
|
930
|
-
temporaryReferences
|
|
898
|
+
temporaryReferences,
|
|
899
|
+
waitUntil: getRevalidationWaitUntil(workStore, shouldSkipPageRendering)
|
|
931
900
|
})
|
|
932
901
|
};
|
|
933
902
|
}
|
|
@@ -954,14 +923,16 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
954
923
|
} catch {
|
|
955
924
|
// swallow error, it's gonna be handled on the client
|
|
956
925
|
}
|
|
926
|
+
const skipPageRendering = workStore.pathWasRevalidated === undefined || workStore.pathWasRevalidated === _actionrevalidationkind.ActionDidNotRevalidate || shouldSkipPageRendering;
|
|
957
927
|
return {
|
|
958
928
|
type: 'done',
|
|
959
|
-
result: await generateFlight(
|
|
929
|
+
result: await generateFlight(ctx, requestStore, {
|
|
960
930
|
actionResult: promise,
|
|
961
|
-
// If the page was not revalidated, or if
|
|
962
|
-
//
|
|
963
|
-
skipPageRendering
|
|
964
|
-
temporaryReferences
|
|
931
|
+
// If the page was not revalidated, or if this is an action-only
|
|
932
|
+
// request, we can skip rendering the page.
|
|
933
|
+
skipPageRendering,
|
|
934
|
+
temporaryReferences,
|
|
935
|
+
waitUntil: getRevalidationWaitUntil(workStore, skipPageRendering)
|
|
965
936
|
})
|
|
966
937
|
};
|
|
967
938
|
}
|
|
@@ -973,20 +944,16 @@ async function handleAction({ req, res, ComponentMod, generateFlight, workStore,
|
|
|
973
944
|
* Limit on the number of arguments passed to a server action. This prevents
|
|
974
945
|
* stack overflow during `action.apply()` from malicious requests.
|
|
975
946
|
*/ const SERVER_ACTION_ARGS_LIMIT = 1000;
|
|
976
|
-
async function executeActionAndPrepareForRender(action, args, workStore, requestStore,
|
|
947
|
+
async function executeActionAndPrepareForRender(action, args, workStore, requestStore, shouldSkipPageRendering) {
|
|
977
948
|
requestStore.phase = 'action';
|
|
978
|
-
let skipPageRendering =
|
|
949
|
+
let skipPageRendering = shouldSkipPageRendering;
|
|
979
950
|
if (args.length > SERVER_ACTION_ARGS_LIMIT) {
|
|
980
|
-
throw
|
|
981
|
-
value: "E986",
|
|
982
|
-
enumerable: false,
|
|
983
|
-
configurable: true
|
|
984
|
-
});
|
|
951
|
+
throw new Error(`Server Action arguments list is too long (${args.length}). Maximum allowed is ${SERVER_ACTION_ARGS_LIMIT}.`);
|
|
985
952
|
}
|
|
986
953
|
try {
|
|
987
954
|
const actionResult = await _workunitasyncstorageexternal.workUnitAsyncStorage.run(requestStore, ()=>action.apply(null, args));
|
|
988
|
-
// If the page was not revalidated, or if
|
|
989
|
-
//
|
|
955
|
+
// If the page was not revalidated, or if this is an action-only request,
|
|
956
|
+
// we can skip rendering the page.
|
|
990
957
|
skipPageRendering ||= workStore.pathWasRevalidated === undefined || workStore.pathWasRevalidated === _actionrevalidationkind.ActionDidNotRevalidate;
|
|
991
958
|
return {
|
|
992
959
|
actionResult,
|
|
@@ -1018,11 +985,7 @@ async function executeActionAndPrepareForRender(action, args, workStore, request
|
|
|
1018
985
|
*/ function getActionModIdOrError(actionId, serverModuleMap) {
|
|
1019
986
|
// if we're missing the action ID header, we can't do any further processing
|
|
1020
987
|
if (!actionId) {
|
|
1021
|
-
throw
|
|
1022
|
-
value: "E664",
|
|
1023
|
-
enumerable: false,
|
|
1024
|
-
configurable: true
|
|
1025
|
-
});
|
|
988
|
+
throw new _invarianterror.InvariantError("Missing 'next-action' header.");
|
|
1026
989
|
}
|
|
1027
990
|
const entry = serverModuleMap[actionId];
|
|
1028
991
|
if (entry == null) {
|
|
@@ -1047,8 +1010,8 @@ const $ACTION_ID_ = '$ACTION_ID_';
|
|
|
1047
1010
|
*/ function areAllActionIdsValid(mpaFormData, serverModuleMap) {
|
|
1048
1011
|
let seenActionRefs = 0;
|
|
1049
1012
|
let hasAtLeastOneAction = false;
|
|
1050
|
-
// Before we attempt to decode the payload for a possible MPA action, assert
|
|
1051
|
-
// action IDs are valid IDs.
|
|
1013
|
+
// Before we attempt to decode the payload for a possible MPA action, assert
|
|
1014
|
+
// that all action IDs are valid IDs.
|
|
1052
1015
|
for (let key of mpaFormData.keys()){
|
|
1053
1016
|
if (!key.startsWith($ACTION_)) {
|
|
1054
1017
|
continue;
|
|
@@ -9,6 +9,6 @@ Object.defineProperty(exports, "afterTaskAsyncStorageInstance", {
|
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
const _asynclocalstorage = require("./async-local-storage");
|
|
12
|
-
const afterTaskAsyncStorageInstance = (0, _asynclocalstorage.
|
|
12
|
+
const afterTaskAsyncStorageInstance = (0, _asynclocalstorage.getOrCreateGlobalAsyncLocalStorage)('after-task-async-storage');
|
|
13
13
|
|
|
14
14
|
//# sourceMappingURL=after-task-async-storage-instance.js.map
|
|
@@ -55,11 +55,7 @@ class ReactServerResult {
|
|
|
55
55
|
return this._replayable.createReplayStream();
|
|
56
56
|
}
|
|
57
57
|
if (this._stream === null) {
|
|
58
|
-
throw
|
|
59
|
-
value: "E106",
|
|
60
|
-
enumerable: false,
|
|
61
|
-
configurable: true
|
|
62
|
-
});
|
|
58
|
+
throw new Error('Cannot tee a ReactServerResult that has already been consumed');
|
|
63
59
|
}
|
|
64
60
|
if (isWebStream(this._stream)) {
|
|
65
61
|
const tee = this._stream.tee();
|
|
@@ -67,11 +63,7 @@ class ReactServerResult {
|
|
|
67
63
|
return tee[1];
|
|
68
64
|
}
|
|
69
65
|
if (process.env.NEXT_RUNTIME === 'edge') {
|
|
70
|
-
throw
|
|
71
|
-
value: "E1149",
|
|
72
|
-
enumerable: false,
|
|
73
|
-
configurable: true
|
|
74
|
-
});
|
|
66
|
+
throw new _invarianterror.InvariantError('Node.js Readable cannot be teed in the edge runtime');
|
|
75
67
|
} else {
|
|
76
68
|
let Readable;
|
|
77
69
|
if (process.env.TURBOPACK) {
|
|
@@ -93,11 +85,7 @@ class ReactServerResult {
|
|
|
93
85
|
return stream;
|
|
94
86
|
}
|
|
95
87
|
if (this._stream === null) {
|
|
96
|
-
throw
|
|
97
|
-
value: "E470",
|
|
98
|
-
enumerable: false,
|
|
99
|
-
configurable: true
|
|
100
|
-
});
|
|
88
|
+
throw new Error('Cannot consume a ReactServerResult that has already been consumed');
|
|
101
89
|
}
|
|
102
90
|
const stream = this._stream;
|
|
103
91
|
this._stream = null;
|
|
@@ -147,19 +135,11 @@ class ReplayableNodeStream {
|
|
|
147
135
|
* scope (e.g. during Fizz's performWork).
|
|
148
136
|
*/ createReplayStream() {
|
|
149
137
|
if (this._chunks === null) {
|
|
150
|
-
throw
|
|
151
|
-
value: "E1156",
|
|
152
|
-
enumerable: false,
|
|
153
|
-
configurable: true
|
|
154
|
-
});
|
|
138
|
+
throw new _invarianterror.InvariantError('Cannot create a replay stream after the ReplayableNodeStream has been disposed.');
|
|
155
139
|
}
|
|
156
140
|
let ReadableCtor;
|
|
157
141
|
if (process.env.NEXT_RUNTIME === 'edge') {
|
|
158
|
-
throw
|
|
159
|
-
value: "E1149",
|
|
160
|
-
enumerable: false,
|
|
161
|
-
configurable: true
|
|
162
|
-
});
|
|
142
|
+
throw new _invarianterror.InvariantError('Node.js Readable cannot be teed in the edge runtime');
|
|
163
143
|
} else {
|
|
164
144
|
if (process.env.__NEXT_BUNDLER === 'Webpack' || process.env.__NEXT_BUNDLER === 'Rspack') {
|
|
165
145
|
ReadableCtor = __non_webpack_require__('node:stream').Readable;
|
|
@@ -252,11 +232,7 @@ async function createReactServerPrerenderResultFromRender(underlying) {
|
|
|
252
232
|
class ReactServerPrerenderResult {
|
|
253
233
|
assertChunks(expression) {
|
|
254
234
|
if (this._chunks === null) {
|
|
255
|
-
throw
|
|
256
|
-
value: "E593",
|
|
257
|
-
enumerable: false,
|
|
258
|
-
configurable: true
|
|
259
|
-
});
|
|
235
|
+
throw new _invarianterror.InvariantError(`Cannot \`${expression}\` on a ReactServerPrerenderResult that has already been consumed.`);
|
|
260
236
|
}
|
|
261
237
|
return this._chunks;
|
|
262
238
|
}
|
|
@@ -15,11 +15,7 @@ const _isthenable = require("../../shared/lib/is-thenable");
|
|
|
15
15
|
function noop() {}
|
|
16
16
|
function runInSequentialTasks(first, ...rest) {
|
|
17
17
|
if (process.env.NEXT_RUNTIME === 'edge') {
|
|
18
|
-
throw
|
|
19
|
-
value: "E1054",
|
|
20
|
-
enumerable: false,
|
|
21
|
-
configurable: true
|
|
22
|
-
});
|
|
18
|
+
throw new _invarianterror.InvariantError('`runInSequentialTasks` should not be called in edge runtime.');
|
|
23
19
|
} else {
|
|
24
20
|
return new Promise((resolve, reject)=>{
|
|
25
21
|
const scheduleTimeout = (0, _apprenderscheduling.createAtomicTimerGroup)();
|
|
@@ -100,11 +100,7 @@ function warnAboutTimers() {
|
|
|
100
100
|
}
|
|
101
101
|
function createAtomicTimerGroup(delayMs = 0) {
|
|
102
102
|
if (process.env.NEXT_RUNTIME === 'edge') {
|
|
103
|
-
throw
|
|
104
|
-
value: "E934",
|
|
105
|
-
enumerable: false,
|
|
106
|
-
configurable: true
|
|
107
|
-
});
|
|
103
|
+
throw new _invarianterror.InvariantError('createAtomicTimerGroup cannot be called in the edge runtime');
|
|
108
104
|
} else {
|
|
109
105
|
let isFirstCallback = true;
|
|
110
106
|
let firstTimerIdleStart = null;
|
|
@@ -137,11 +133,7 @@ function createAtomicTimerGroup(delayMs = 0) {
|
|
|
137
133
|
}
|
|
138
134
|
return function scheduleTimeout(callback) {
|
|
139
135
|
if (didFirstTimerRun) {
|
|
140
|
-
throw
|
|
141
|
-
value: "E935",
|
|
142
|
-
enumerable: false,
|
|
143
|
-
configurable: true
|
|
144
|
-
});
|
|
136
|
+
throw new _invarianterror.InvariantError('Cannot schedule more timers into a group that already executed');
|
|
145
137
|
}
|
|
146
138
|
const timer = setTimeout(isFirstCallback ? runFirstCallback : runSubsequentCallback, delayMs, callback);
|
|
147
139
|
isFirstCallback = false;
|
|
@@ -170,12 +162,8 @@ function createAtomicTimerGroup(delayMs = 0) {
|
|
|
170
162
|
} catch (err) {
|
|
171
163
|
// This should never fail in current Node, but it might start failing in the future.
|
|
172
164
|
// We might be okay even without tweaking the timers, so warn and try to continue.
|
|
173
|
-
console.error(
|
|
165
|
+
console.error(new _invarianterror.InvariantError('An unexpected error occurred while adjusting `_idleStart` on an atomic timer', {
|
|
174
166
|
cause: err
|
|
175
|
-
}), "__NEXT_ERROR_CODE", {
|
|
176
|
-
value: "E933",
|
|
177
|
-
enumerable: false,
|
|
178
|
-
configurable: true
|
|
179
167
|
}));
|
|
180
168
|
shouldAttemptPatching = false;
|
|
181
169
|
warnAboutTimers();
|