@sapienx/agentos 0.1.8 → 0.1.9
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/bundle/.next/BUILD_ID +1 -1
- package/bundle/.next/app-path-routes-manifest.json +14 -12
- package/bundle/.next/build-manifest.json +6 -6
- package/bundle/.next/prerender-manifest.json +3 -3
- package/bundle/.next/required-server-files.json +18 -6
- package/bundle/.next/routes-manifest.json +17 -0
- package/bundle/.next/server/app/_global-error/page.js +32 -3
- package/bundle/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/bundle/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/_global-error.html +1 -2
- package/bundle/.next/server/app/_global-error.rsc +15 -11
- package/bundle/.next/server/app/_global-error.segments/_full.segment.rsc +15 -11
- package/bundle/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +2 -2
- package/bundle/.next/server/app/_global-error.segments/_global-error.segment.rsc +4 -3
- package/bundle/.next/server/app/_global-error.segments/_head.segment.rsc +3 -3
- package/bundle/.next/server/app/_global-error.segments/_index.segment.rsc +4 -3
- package/bundle/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/bundle/.next/server/app/_not-found/page.js +2 -2
- package/bundle/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/bundle/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/_not-found.html +1 -1
- package/bundle/.next/server/app/_not-found.rsc +14 -12
- package/bundle/.next/server/app/_not-found.segments/_full.segment.rsc +14 -12
- package/bundle/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/bundle/.next/server/app/_not-found.segments/_index.segment.rsc +5 -5
- package/bundle/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/bundle/.next/server/app/_not-found.segments/_not-found.segment.rsc +4 -3
- package/bundle/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/bundle/.next/server/app/api/agents/route.js +1 -1
- package/bundle/.next/server/app/api/agents/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/agents/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/diagnostics/route.js +1 -1
- package/bundle/.next/server/app/api/diagnostics/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/diagnostics/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/files/reveal/route.js +1 -1
- package/bundle/.next/server/app/api/files/reveal/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/files/reveal/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/gateway/control/route.js +1 -1
- package/bundle/.next/server/app/api/gateway/control/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/gateway/control/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/mission/route.js +1 -1
- package/bundle/.next/server/app/api/mission/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/mission/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/models/providers/route.js +2 -2
- package/bundle/.next/server/app/api/models/providers/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/models/providers/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/onboarding/models/route.js +2 -2
- package/bundle/.next/server/app/api/onboarding/models/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/onboarding/models/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/onboarding/route.js +2 -2
- package/bundle/.next/server/app/api/onboarding/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/onboarding/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/deploy/route.js +2 -2
- package/bundle/.next/server/app/api/planner/[planId]/deploy/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/deploy/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/document-rewrite/route.js +1 -0
- package/bundle/.next/server/app/api/planner/[planId]/document-rewrite/route.js.nft.json +1 -0
- package/bundle/.next/server/app/api/planner/[planId]/document-rewrite/route_client-reference-manifest.js +1 -0
- package/bundle/.next/server/app/api/planner/[planId]/route.js +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/simulate/route.js +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/simulate/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/simulate/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/turn/route.js +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/turn/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/planner/[planId]/turn/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/planner/route.js +1 -1
- package/bundle/.next/server/app/api/planner/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/planner/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/reset/route.js +2 -2
- package/bundle/.next/server/app/api/reset/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/reset/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/runtimes/[runtimeId]/route.js +1 -1
- package/bundle/.next/server/app/api/runtimes/[runtimeId]/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/runtimes/[runtimeId]/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/settings/gateway/route.js +1 -1
- package/bundle/.next/server/app/api/settings/gateway/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/settings/gateway/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/settings/workspace-root/route.js +1 -1
- package/bundle/.next/server/app/api/settings/workspace-root/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/settings/workspace-root/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/snapshot/route.js +1 -1
- package/bundle/.next/server/app/api/snapshot/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/snapshot/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/stream/route.js +2 -2
- package/bundle/.next/server/app/api/stream/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/stream/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/system/open-terminal/route.js +1 -1
- package/bundle/.next/server/app/api/system/open-terminal/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/system/open-terminal/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/tasks/[taskId]/abort/route.js +1 -1
- package/bundle/.next/server/app/api/tasks/[taskId]/abort/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/tasks/[taskId]/abort/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/tasks/[taskId]/stream/route.js +2 -2
- package/bundle/.next/server/app/api/tasks/[taskId]/stream/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/tasks/[taskId]/stream/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/update/route.js +2 -2
- package/bundle/.next/server/app/api/update/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/update/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/api/workspaces/[workspaceId]/edit-draft/route.js +1 -0
- package/bundle/.next/server/app/api/workspaces/[workspaceId]/edit-draft/route.js.nft.json +1 -0
- package/bundle/.next/server/app/api/workspaces/[workspaceId]/edit-draft/route_client-reference-manifest.js +1 -0
- package/bundle/.next/server/app/api/workspaces/route.js +2 -2
- package/bundle/.next/server/app/api/workspaces/route.js.nft.json +1 -1
- package/bundle/.next/server/app/api/workspaces/route_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app/page.js +163 -12
- package/bundle/.next/server/app/page.js.nft.json +1 -1
- package/bundle/.next/server/app/page_client-reference-manifest.js +1 -1
- package/bundle/.next/server/app-paths-manifest.json +14 -12
- package/bundle/.next/server/chunks/212.js +98 -0
- package/bundle/.next/server/chunks/35.js +45 -0
- package/bundle/.next/server/chunks/408.js +18 -0
- package/bundle/.next/server/chunks/49.js +250 -0
- package/bundle/.next/server/chunks/{350.js → 661.js} +1 -1
- package/bundle/.next/server/chunks/678.js +1 -0
- package/bundle/.next/server/chunks/825.js +1 -0
- package/bundle/.next/server/functions-config-manifest.json +3 -1
- package/bundle/.next/server/middleware-build-manifest.js +1 -1
- package/bundle/.next/server/pages/404.html +1 -1
- package/bundle/.next/server/pages/500.html +1 -2
- package/bundle/.next/server/prefetch-hints.json +1 -0
- package/bundle/.next/server/server-reference-manifest.json +1 -1
- package/bundle/.next/static/GiI1KbaEnOWQ2uB6c5S7l/_buildManifest.js +1 -0
- package/bundle/.next/static/chunks/424-90a1df1753670aa3.js +32 -0
- package/bundle/.next/static/chunks/4a846800-6992bfdb6d680e8c.js +1 -0
- package/bundle/.next/static/chunks/583-20f3363124499c5d.js +1 -0
- package/bundle/.next/static/chunks/805-27fb5cc3e5bbb716.js +15 -0
- package/bundle/.next/static/chunks/app/_global-error/{page-75723f28c245a30d.js → page-e372189c79e963a1.js} +1 -1
- package/bundle/.next/static/chunks/app/_not-found/{page-75723f28c245a30d.js → page-e372189c79e963a1.js} +1 -1
- package/bundle/.next/static/chunks/app/api/agents/{route-75723f28c245a30d.js → route-e372189c79e963a1.js} +1 -1
- package/bundle/.next/static/chunks/app/api/diagnostics/{route-75723f28c245a30d.js → route-e372189c79e963a1.js} +1 -1
- package/bundle/.next/static/chunks/app/api/files/reveal/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/gateway/control/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/mission/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/models/providers/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/onboarding/models/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/onboarding/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/planner/[planId]/deploy/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/planner/[planId]/document-rewrite/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/planner/[planId]/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/planner/[planId]/simulate/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/planner/[planId]/turn/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/planner/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/reset/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/runtimes/[runtimeId]/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/settings/gateway/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/settings/workspace-root/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/snapshot/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/stream/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/system/open-terminal/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/tasks/[taskId]/abort/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/tasks/[taskId]/stream/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/update/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/workspaces/[workspaceId]/edit-draft/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/api/workspaces/route-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/layout-f64f74d82381e703.js +1 -0
- package/bundle/.next/static/chunks/app/not-found-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/app/page-f4845e91032a411f.js +163 -0
- package/bundle/.next/static/chunks/f6503f1c-76bd524eece75922.js +1 -0
- package/bundle/.next/static/chunks/framework-3804ea39af33aa2e.js +1 -0
- package/bundle/.next/static/chunks/main-28f7be32434a5aa2.js +5 -0
- package/bundle/.next/static/chunks/main-app-5eca1027f109d5af.js +1 -0
- package/bundle/.next/static/chunks/next/dist/client/components/builtin/app-error-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/next/dist/client/components/builtin/forbidden-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/next/dist/client/components/builtin/global-error-e382d739d625239d.js +1 -0
- package/bundle/.next/static/chunks/next/dist/client/components/builtin/unauthorized-e372189c79e963a1.js +1 -0
- package/bundle/.next/static/chunks/webpack-5bdc2ea2996939e4.js +1 -0
- package/bundle/.next/static/css/de551c93149758e0.css +3 -0
- package/bundle/node_modules/@next/env/package.json +1 -1
- package/bundle/node_modules/next/dist/build/adapter/setup-node-env.external.js +15 -0
- package/bundle/node_modules/next/dist/build/analysis/extract-const-value.js +78 -63
- package/bundle/node_modules/next/dist/build/analysis/get-page-static-info.js +64 -40
- package/bundle/node_modules/next/dist/build/create-compiler-aliases.js +2 -0
- package/bundle/node_modules/next/dist/build/define-env.js +29 -11
- package/bundle/node_modules/next/dist/build/duration-to-string.js +1 -1
- package/bundle/node_modules/next/dist/build/entries.js +55 -295
- package/bundle/node_modules/next/dist/build/file-classifier.js +76 -0
- package/bundle/node_modules/next/dist/build/get-supported-browsers.js +38 -0
- package/bundle/node_modules/next/dist/build/load-jsconfig.js +7 -7
- package/bundle/node_modules/next/dist/build/lockfile.js +90 -9
- package/bundle/node_modules/next/dist/build/next-config-ts/transpile-config.js +128 -49
- package/bundle/node_modules/next/dist/build/print-build-errors.js +72 -0
- package/bundle/node_modules/next/dist/build/route-discovery.js +353 -0
- package/bundle/node_modules/next/dist/build/segment-config/app/app-segment-config.js +34 -17
- package/bundle/node_modules/next/dist/build/static-paths/app.js +68 -15
- package/bundle/node_modules/next/dist/build/static-paths/pages.js +3 -3
- package/bundle/node_modules/next/dist/build/swc/index.js +125 -48
- package/bundle/node_modules/next/dist/build/swc/loaderWorkerPool.js +40 -0
- package/bundle/node_modules/next/dist/build/swc/options.js +23 -6
- package/bundle/node_modules/next/dist/build/utils.js +48 -94
- package/bundle/node_modules/next/dist/build/webpack/config/blocks/css/index.js +14 -3
- package/bundle/node_modules/next/dist/build/webpack/config/blocks/css/loaders/global.js +4 -2
- package/bundle/node_modules/next/dist/build/webpack/config/blocks/css/loaders/modules.js +4 -2
- package/bundle/node_modules/next/dist/build/webpack/config/blocks/css/loaders/next-font.js +1 -0
- package/bundle/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js +5 -5
- package/bundle/node_modules/next/dist/build/webpack/config/index.js +3 -2
- package/bundle/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js +2 -1
- package/bundle/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-url-parser.js +8 -1
- package/bundle/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/loader.js +13 -4
- package/bundle/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js +3 -1
- package/bundle/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin-utils.js +2 -16
- package/bundle/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin.js +2 -2
- package/bundle/node_modules/next/dist/build/webpack/plugins/deferred-entries-plugin.js +106 -0
- package/bundle/node_modules/next/dist/build/webpack/plugins/flight-client-entry-plugin.js +16 -8
- package/bundle/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +24 -11
- package/bundle/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +21 -2
- package/bundle/node_modules/next/dist/build/webpack/plugins/next-types-plugin/index.js +6 -5
- package/bundle/node_modules/next/dist/build/webpack/plugins/nextjs-require-cache-hot-reloader.js +10 -14
- package/bundle/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNotFoundError.js +18 -4
- package/bundle/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseScss.js +5 -4
- package/bundle/node_modules/next/dist/build/webpack-config.js +18 -8
- package/bundle/node_modules/next/dist/cli/next-test.js +4 -3
- package/bundle/node_modules/next/dist/client/app-find-source-map-url.js +2 -1
- package/bundle/node_modules/next/dist/client/components/app-router-headers.js +10 -0
- package/bundle/node_modules/next/dist/client/components/app-router-instance.js +82 -4
- package/bundle/node_modules/next/dist/client/components/app-router.js +39 -20
- package/bundle/node_modules/next/dist/client/components/builtin/app-error.js +29 -65
- package/bundle/node_modules/next/dist/client/components/builtin/error-styles.js +165 -0
- package/bundle/node_modules/next/dist/client/components/builtin/global-error.js +56 -38
- package/bundle/node_modules/next/dist/client/components/error-boundary.js +16 -6
- package/bundle/node_modules/next/dist/client/components/forbidden.js +1 -1
- package/bundle/node_modules/next/dist/client/components/handle-isr-error.js +3 -4
- package/bundle/node_modules/next/dist/client/components/links.js +7 -0
- package/bundle/node_modules/next/dist/client/components/navigation-untracked.js +2 -0
- package/bundle/node_modules/next/dist/client/components/navigation.js +27 -0
- package/bundle/node_modules/next/dist/client/components/navigation.react-server.js +5 -2
- package/bundle/node_modules/next/dist/client/components/not-found.js +1 -1
- package/bundle/node_modules/next/dist/client/components/redirect-boundary.js +1 -1
- package/bundle/node_modules/next/dist/client/components/redirect-error.js +0 -9
- package/bundle/node_modules/next/dist/client/components/redirect.js +2 -2
- package/bundle/node_modules/next/dist/client/components/router-reducer/compute-changed-path.js +73 -0
- package/bundle/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +102 -8
- package/bundle/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +165 -48
- package/bundle/node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js +19 -11
- package/bundle/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +669 -457
- package/bundle/node_modules/next/dist/client/components/router-reducer/reducers/committed-state.js +49 -0
- package/bundle/node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js +19 -20
- package/bundle/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +5 -117
- package/bundle/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +34 -19
- package/bundle/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +16 -32
- package/bundle/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +85 -57
- package/bundle/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +12 -10
- package/bundle/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +10 -1
- package/bundle/node_modules/next/dist/client/components/router-reducer/router-reducer.js +1 -1
- package/bundle/node_modules/next/dist/client/components/segment-cache/bfcache.js +128 -0
- package/bundle/node_modules/next/dist/client/components/segment-cache/cache.js +732 -231
- package/bundle/node_modules/next/dist/client/components/segment-cache/lru.js +13 -6
- package/bundle/node_modules/next/dist/client/components/segment-cache/navigation-testing-lock.js +194 -0
- package/bundle/node_modules/next/dist/client/components/segment-cache/navigation.js +388 -250
- package/bundle/node_modules/next/dist/client/components/segment-cache/optimistic-routes.js +543 -0
- package/bundle/node_modules/next/dist/client/components/segment-cache/scheduler.js +154 -55
- package/bundle/node_modules/next/dist/client/components/segment-cache/vary-path.js +63 -1
- package/bundle/node_modules/next/dist/client/components/unauthorized.js +1 -1
- package/bundle/node_modules/next/dist/client/components/use-action-queue.js +49 -3
- package/bundle/node_modules/next/dist/client/dev/hot-reloader/app/hot-reloader-app.js +9 -1
- package/bundle/node_modules/next/dist/client/flight-data-helpers.js +42 -29
- package/bundle/node_modules/next/dist/client/lib/javascript-url.js +32 -0
- package/bundle/node_modules/next/dist/client/lib/promise.js +53 -0
- package/bundle/node_modules/next/dist/client/{app-build-id.js → navigation-build-id.js} +17 -13
- package/bundle/node_modules/next/dist/client/react-client-callbacks/on-recoverable-error.js +14 -0
- package/bundle/node_modules/next/dist/client/route-loader.js +9 -46
- package/bundle/node_modules/next/dist/client/router.js +1 -1
- package/bundle/node_modules/next/dist/compiled/@next/font/dist/google/font-data.json +74 -3
- package/bundle/node_modules/next/dist/compiled/babel/bundle.js +1 -1
- package/bundle/node_modules/next/dist/compiled/babel-packages/packages-bundle.js +4 -4
- package/bundle/node_modules/next/dist/compiled/browserslist/index.js +1 -1
- package/bundle/node_modules/next/dist/compiled/http-proxy/index.js +5 -5
- package/bundle/node_modules/next/dist/compiled/next-devtools/index.js +2209 -23
- package/bundle/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js +42 -12
- package/bundle/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +42 -12
- package/bundle/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +42 -12
- package/bundle/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js +42 -12
- package/bundle/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js +2 -2
- package/bundle/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +10 -10
- package/bundle/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js +10 -10
- package/bundle/node_modules/next/dist/compiled/react-is/package.json +1 -1
- package/bundle/node_modules/next/dist/compiled/tar/index.min.js +1 -0
- package/bundle/node_modules/next/dist/compiled/tar/package.json +1 -1
- package/bundle/node_modules/next/dist/compiled/unistore/unistore.js +1 -1
- package/bundle/node_modules/next/dist/lib/bundler.js +97 -0
- package/bundle/node_modules/next/dist/lib/constants.js +19 -4
- package/bundle/node_modules/next/dist/lib/download-swc.js +2 -2
- package/bundle/node_modules/next/dist/lib/find-root.js +11 -7
- package/bundle/node_modules/next/dist/lib/format-server-error.js +1 -0
- package/bundle/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +3 -20
- package/bundle/node_modules/next/dist/lib/interop-default.js +1 -0
- package/bundle/node_modules/next/dist/lib/is-interception-route-rewrite.js +18 -0
- package/bundle/node_modules/next/dist/lib/load-custom-routes.js +49 -5
- package/bundle/node_modules/next/dist/lib/memory/trace.js +109 -0
- package/bundle/node_modules/next/dist/lib/metadata/get-metadata-route.js +11 -2
- package/bundle/node_modules/next/dist/lib/needs-experimental-react.js +2 -2
- package/bundle/node_modules/next/dist/lib/patch-incorrect-lockfile.js +5 -5
- package/bundle/node_modules/next/dist/lib/try-to-parse-path.js +1 -2
- package/bundle/node_modules/next/dist/lib/turbopack-warning.js +0 -1
- package/bundle/node_modules/next/dist/lib/typescript/diagnosticFormatter.js +6 -3
- package/bundle/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +1 -1
- package/bundle/node_modules/next/dist/lib/typescript/missingDependencyError.js +1 -1
- package/bundle/node_modules/next/dist/lib/typescript/runTypeCheck.js +6 -8
- package/bundle/node_modules/next/dist/lib/typescript/type-paths.js +7 -12
- package/bundle/node_modules/next/dist/lib/typescript/writeAppTypeDeclarations.js +17 -7
- package/bundle/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +9 -12
- package/bundle/node_modules/next/dist/lib/verify-typescript-setup.js +66 -16
- package/bundle/node_modules/next/dist/next-devtools/server/shared.js +6 -10
- package/bundle/node_modules/next/dist/next-devtools/shared/webpack-module-path.js +4 -4
- package/bundle/node_modules/next/dist/next-devtools/userspace/app/app-dev-overlay-error-boundary.js +22 -4
- package/bundle/node_modules/next/dist/next-devtools/userspace/app/errors/stitched-error.js +7 -1
- package/bundle/node_modules/next/dist/next-devtools/userspace/app/forward-logs.js +18 -13
- package/bundle/node_modules/next/dist/next-devtools/userspace/app/segment-explorer-node.js +7 -4
- package/bundle/node_modules/next/dist/server/app-render/action-handler.js +83 -15
- package/bundle/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +0 -82
- package/bundle/node_modules/next/dist/server/app-render/app-render-render-utils.js +45 -81
- package/bundle/node_modules/next/dist/server/app-render/app-render.js +1746 -803
- package/bundle/node_modules/next/dist/server/app-render/create-component-tree.js +136 -50
- package/bundle/node_modules/next/dist/server/app-render/create-error-handler.js +6 -4
- package/bundle/node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js +52 -26
- package/bundle/node_modules/next/dist/server/app-render/csrf-protection.js +14 -3
- package/bundle/node_modules/next/dist/server/app-render/debug-channel-server.js +30 -0
- package/bundle/node_modules/next/dist/server/app-render/debug-channel-server.web.js +71 -0
- package/bundle/node_modules/next/dist/server/app-render/dynamic-rendering.js +353 -37
- package/bundle/node_modules/next/dist/server/app-render/get-asset-query-string.js +2 -2
- package/bundle/node_modules/next/dist/server/app-render/get-layer-assets.js +1 -1
- package/bundle/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js +13 -0
- package/bundle/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js +18 -0
- package/bundle/node_modules/next/dist/server/app-render/instant-validation/instant-config.js +181 -0
- package/bundle/node_modules/next/dist/server/app-render/instant-validation/instant-samples-client.js +128 -0
- package/bundle/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js +432 -0
- package/bundle/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js +33 -0
- package/bundle/node_modules/next/dist/server/app-render/instant-validation/stream-utils.js +96 -0
- package/bundle/node_modules/next/dist/server/app-render/manifests-singleton.js +8 -1
- package/bundle/node_modules/next/dist/server/app-render/postponed-state.js +2 -1
- package/bundle/node_modules/next/dist/server/app-render/prospective-render-utils.js +1 -0
- package/bundle/node_modules/next/dist/server/app-render/segment-explorer-path.js +35 -10
- package/bundle/node_modules/next/dist/server/app-render/staged-rendering.js +142 -72
- package/bundle/node_modules/next/dist/server/app-render/stale-time.js +111 -0
- package/bundle/node_modules/next/dist/server/app-render/stream-ops.js +106 -0
- package/bundle/node_modules/next/dist/server/app-render/stream-ops.web.js +163 -0
- package/bundle/node_modules/next/dist/server/app-render/types.js +10 -4
- package/bundle/node_modules/next/dist/server/app-render/use-flight-response.js +3 -1
- package/bundle/node_modules/next/dist/server/app-render/vary-params.js +336 -0
- package/bundle/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +59 -12
- package/bundle/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +54 -26
- package/bundle/node_modules/next/dist/server/async-storage/request-store.js +4 -4
- package/bundle/node_modules/next/dist/server/async-storage/work-store.js +2 -5
- package/bundle/node_modules/next/dist/server/base-server.js +65 -53
- package/bundle/node_modules/next/dist/server/config-schema.js +93 -8
- package/bundle/node_modules/next/dist/server/config-shared.js +57 -7
- package/bundle/node_modules/next/dist/server/config.js +96 -25
- package/bundle/node_modules/next/dist/server/dev/browser-logs/file-logger.js +9 -6
- package/bundle/node_modules/next/dist/server/dev/browser-logs/receive-logs.js +46 -0
- package/bundle/node_modules/next/dist/server/dev/browser-logs/source-map.js +1 -4
- package/bundle/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +264 -33
- package/bundle/node_modules/next/dist/server/dev/hot-reloader-webpack.js +8 -4
- package/bundle/node_modules/next/dist/server/dev/log-requests.js +10 -2
- package/bundle/node_modules/next/dist/server/dev/middleware-turbopack.js +20 -10
- package/bundle/node_modules/next/dist/server/dev/middleware-webpack.js +13 -3
- package/bundle/node_modules/next/dist/server/dev/next-dev-server.js +19 -6
- package/bundle/node_modules/next/dist/server/dev/on-demand-entry-handler.js +69 -0
- package/bundle/node_modules/next/dist/server/dev/require-cache.js +51 -21
- package/bundle/node_modules/next/dist/server/dev/server-action-logger.js +37 -0
- package/bundle/node_modules/next/dist/server/dev/static-paths-worker.js +1 -0
- package/bundle/node_modules/next/dist/server/dev/turbopack-utils.js +6 -15
- package/bundle/node_modules/next/dist/server/dynamic-rendering-utils.js +22 -0
- package/bundle/node_modules/next/dist/server/image-optimizer.js +157 -27
- package/bundle/node_modules/next/dist/server/lib/app-info-log.js +16 -38
- package/bundle/node_modules/next/dist/server/lib/cache-control.js +1 -1
- package/bundle/node_modules/next/dist/server/lib/clone-response.js +16 -16
- package/bundle/node_modules/next/dist/server/lib/cpu-profile.js +47 -16
- package/bundle/node_modules/next/dist/server/lib/dev-bundler-service.js +2 -2
- package/bundle/node_modules/next/dist/server/lib/disk-lru-cache.external.js +57 -0
- package/bundle/node_modules/next/dist/server/lib/find-page-file.js +27 -7
- package/bundle/node_modules/next/dist/server/lib/implicit-tags.js +3 -3
- package/bundle/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +5 -3
- package/bundle/node_modules/next/dist/server/lib/incremental-cache/index.js +32 -10
- package/bundle/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js +18 -1
- package/bundle/node_modules/next/dist/server/lib/install-code-frame.js +22 -0
- package/bundle/node_modules/next/dist/server/lib/lru-cache.js +9 -1
- package/bundle/node_modules/next/dist/server/lib/patch-fetch.js +40 -7
- package/bundle/node_modules/next/dist/server/lib/postponed-request-body.js +64 -0
- package/bundle/node_modules/next/dist/server/lib/render-server.js +4 -1
- package/bundle/node_modules/next/dist/server/lib/router-server.js +24 -13
- package/bundle/node_modules/next/dist/server/lib/router-utils/block-cross-site-dev.js +110 -0
- package/bundle/node_modules/next/dist/server/lib/router-utils/filesystem.js +16 -15
- package/bundle/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +32 -11
- package/bundle/node_modules/next/dist/server/lib/router-utils/route-types-utils.js +3 -3
- package/bundle/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js +71 -71
- package/bundle/node_modules/next/dist/server/lib/router-utils/typegen.js +247 -2
- package/bundle/node_modules/next/dist/server/lib/server-ipc/utils.js +2 -1
- package/bundle/node_modules/next/dist/server/lib/start-server.js +73 -39
- package/bundle/node_modules/next/dist/server/lib/trace/tracer.js +11 -1
- package/bundle/node_modules/next/dist/server/lib/utils.js +40 -11
- package/bundle/node_modules/next/dist/server/load-components.js +2 -0
- package/bundle/node_modules/next/dist/server/load-manifest.external.js +37 -17
- package/bundle/node_modules/next/dist/server/mcp/tools/get-errors.js +11 -4
- package/bundle/node_modules/next/dist/server/mcp/tools/get-logs.js +9 -3
- package/bundle/node_modules/next/dist/server/mcp/tools/get-page-metadata.js +52 -44
- package/bundle/node_modules/next/dist/server/mcp/tools/get-project-metadata.js +6 -2
- package/bundle/node_modules/next/dist/server/mcp/tools/get-routes.js +44 -79
- package/bundle/node_modules/next/dist/server/mcp/tools/get-server-action-by-id.js +12 -4
- package/bundle/node_modules/next/dist/server/mcp/tools/utils/format-errors.js +62 -72
- package/bundle/node_modules/next/dist/server/next-server.js +69 -99
- package/bundle/node_modules/next/dist/server/next.js +3 -0
- package/bundle/node_modules/next/dist/server/node-environment-extensions/console-dim.external.js +61 -6
- package/bundle/node_modules/next/dist/server/node-environment-extensions/date.js +4 -4
- package/bundle/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +13 -6
- package/bundle/node_modules/next/dist/server/node-environment-extensions/{utils.js → io-utils.js} +14 -5
- package/bundle/node_modules/next/dist/server/node-environment-extensions/node-crypto.js +8 -8
- package/bundle/node_modules/next/dist/server/node-environment-extensions/process-error-handlers.js +91 -0
- package/bundle/node_modules/next/dist/server/node-environment-extensions/random.js +2 -2
- package/bundle/node_modules/next/dist/server/node-environment-extensions/{unhandled-rejection.js → unhandled-rejection.external.js} +23 -4
- package/bundle/node_modules/next/dist/server/node-environment-extensions/web-crypto.js +3 -3
- package/bundle/node_modules/next/dist/server/node-environment.js +1 -1
- package/bundle/node_modules/next/dist/server/normalizers/request/segment-prefix-rsc.js +2 -1
- package/bundle/node_modules/next/dist/server/patch-error-inspect.js +37 -20
- package/bundle/node_modules/next/dist/server/render-result.js +9 -0
- package/bundle/node_modules/next/dist/server/render.js +27 -25
- package/bundle/node_modules/next/dist/server/require-hook.js +19 -8
- package/bundle/node_modules/next/dist/server/response-cache/utils.js +1 -0
- package/bundle/node_modules/next/dist/server/resume-data-cache/cache-store.js +35 -23
- package/bundle/node_modules/next/dist/server/resume-data-cache/resume-data-cache.js +16 -7
- package/bundle/node_modules/next/dist/server/revalidation-utils.js +12 -7
- package/bundle/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-page-route-matcher-provider.js +2 -1
- package/bundle/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.js +4 -1
- package/bundle/node_modules/next/dist/server/route-modules/app-page/module.js +31 -1
- package/bundle/node_modules/next/dist/server/route-modules/app-page/normalize-request-url.js +25 -0
- package/bundle/node_modules/next/dist/server/route-modules/pages/pages-handler.js +31 -8
- package/bundle/node_modules/next/dist/server/route-modules/route-module.js +71 -18
- package/bundle/node_modules/next/dist/server/stream-utils/encoded-tags.js +8 -0
- package/bundle/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +239 -58
- package/bundle/node_modules/next/dist/server/stream-utils/uint8array-helpers.js +7 -2
- package/bundle/node_modules/next/dist/server/typescript/constant.js +1 -0
- package/bundle/node_modules/next/dist/server/typescript/rules/config.js +14 -3
- package/bundle/node_modules/next/dist/server/web/adapter.js +7 -3
- package/bundle/node_modules/next/dist/server/web/next-url.js +6 -2
- package/bundle/node_modules/next/dist/server/web/sandbox/sandbox.js +3 -0
- package/bundle/node_modules/next/dist/shared/lib/app-router-types.js +30 -11
- package/bundle/node_modules/next/dist/shared/lib/constants.js +7 -7
- package/bundle/node_modules/next/dist/shared/lib/deployment-id.js +37 -10
- package/bundle/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
- package/bundle/node_modules/next/dist/shared/lib/errors/code-frame.js +20 -0
- package/bundle/node_modules/next/dist/shared/lib/format-webpack-messages.js +22 -2
- package/bundle/node_modules/next/dist/shared/lib/image-config.js +3 -1
- package/bundle/node_modules/next/dist/shared/lib/is-internal.js +2 -0
- package/bundle/node_modules/next/dist/shared/lib/magic-identifier.js +6 -6
- package/bundle/node_modules/next/dist/shared/lib/router/router.js +32 -0
- package/bundle/node_modules/next/dist/shared/lib/router/utils/app-paths.js +11 -0
- package/bundle/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +11 -4
- package/bundle/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +3 -2
- package/bundle/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +9 -2
- package/bundle/node_modules/next/dist/shared/lib/router/utils/parse-url.js +8 -2
- package/bundle/node_modules/next/dist/shared/lib/segment-cache/vary-params-decoding.js +32 -0
- package/bundle/node_modules/next/dist/shared/lib/server-reference-info.js +4 -0
- package/bundle/node_modules/next/dist/shared/lib/size-limit.js +6 -1
- package/bundle/node_modules/next/dist/shared/lib/turbopack/compilation-events.js +47 -10
- package/bundle/node_modules/next/dist/shared/lib/turbopack/manifest-loader.js +90 -116
- package/bundle/node_modules/next/dist/shared/lib/turbopack/utils.js +14 -26
- package/bundle/node_modules/next/dist/shared/lib/utils/reflect-utils.js +69 -0
- package/bundle/node_modules/next/dist/shared/lib/utils.js +2 -2
- package/bundle/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/bundle/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
- package/bundle/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/bundle/node_modules/next/dist/trace/index.js +4 -0
- package/bundle/node_modules/next/dist/trace/report/to-json-build.js +11 -108
- package/bundle/node_modules/next/dist/trace/report/to-json.js +52 -38
- package/bundle/node_modules/next/dist/trace/trace.js +15 -1
- package/bundle/node_modules/next/package.json +21 -23
- package/bundle/node_modules/react/cjs/react.development.js +1284 -0
- package/bundle/package.json +2 -2
- package/bundle/server.js +1 -1
- package/package.json +1 -1
- package/bundle/.next/server/chunks/31.js +0 -1
- package/bundle/.next/server/chunks/419.js +0 -249
- package/bundle/.next/server/chunks/463.js +0 -13
- package/bundle/.next/server/chunks/603.js +0 -91
- package/bundle/.next/server/chunks/709.js +0 -22
- package/bundle/.next/server/chunks/957.js +0 -1
- package/bundle/.next/static/chunks/26-8f7c2b7e8773b4cb.js +0 -2
- package/bundle/.next/static/chunks/273-31916bcd40e3f381.js +0 -1
- package/bundle/.next/static/chunks/474f1956-ebf51c0dd00ff236.js +0 -1
- package/bundle/.next/static/chunks/4a846800-817e4d43c6c4047f.js +0 -1
- package/bundle/.next/static/chunks/878-919c758aa9e87b6d.js +0 -13
- package/bundle/.next/static/chunks/app/api/files/reveal/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/gateway/control/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/mission/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/models/providers/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/onboarding/models/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/onboarding/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/planner/[planId]/deploy/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/planner/[planId]/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/planner/[planId]/simulate/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/planner/[planId]/turn/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/planner/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/reset/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/runtimes/[runtimeId]/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/settings/gateway/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/settings/workspace-root/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/snapshot/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/stream/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/system/open-terminal/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/tasks/[taskId]/abort/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/tasks/[taskId]/stream/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/update/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/api/workspaces/route-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/layout-6c2c9cd9b518452f.js +0 -1
- package/bundle/.next/static/chunks/app/not-found-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/app/page-dee040e8fa0bfe5c.js +0 -14
- package/bundle/.next/static/chunks/framework-56f40d86ebc2172f.js +0 -1
- package/bundle/.next/static/chunks/main-app-245e6e74e3ad1df9.js +0 -1
- package/bundle/.next/static/chunks/main-f015e68ea54ff136.js +0 -5
- package/bundle/.next/static/chunks/next/dist/client/components/builtin/app-error-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/next/dist/client/components/builtin/forbidden-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/next/dist/client/components/builtin/global-error-62eeb2b37b76f847.js +0 -1
- package/bundle/.next/static/chunks/next/dist/client/components/builtin/unauthorized-75723f28c245a30d.js +0 -1
- package/bundle/.next/static/chunks/webpack-032b5b42e067a790.js +0 -1
- package/bundle/.next/static/css/665b6d1d1e231c6e.css +0 -3
- package/bundle/.next/static/dMZieB6mihw477BgExG8r/_buildManifest.js +0 -1
- package/bundle/node_modules/next/dist/client/components/router-reducer/handle-mutable.js +0 -66
- package/bundle/node_modules/next/dist/compiled/babel/code-frame.js +0 -1
- package/bundle/node_modules/next/dist/compiled/babel-code-frame/index.js +0 -1
- package/bundle/node_modules/next/dist/compiled/babel-code-frame/package.json +0 -1
- package/bundle/node_modules/next/dist/compiled/tar/index.js +0 -1
- package/bundle/node_modules/next/dist/server/app-render/staged-validation.js +0 -32
- package/bundle/node_modules/next/dist/server/lib/router-utils/block-cross-site.js +0 -76
- package/bundle/node_modules/next/dist/shared/lib/segment-cache/output-export-prefetch-encoding.js +0 -52
- package/bundle/node_modules/typescript/lib/typescript.js +0 -200276
- package/bundle/node_modules/typescript/package.json +0 -120
- /package/bundle/.next/static/{dMZieB6mihw477BgExG8r → GiI1KbaEnOWQ2uB6c5S7l}/_ssgManifest.js +0 -0
package/bundle/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js
CHANGED
|
@@ -2,9 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
0 && (module.exports = {
|
|
6
|
+
createFullTreeFlightDataForNavigation: null,
|
|
7
|
+
walkTreeWithFlightRouterState: null
|
|
8
|
+
});
|
|
9
|
+
function _export(target, all) {
|
|
10
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: all[name]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
_export(exports, {
|
|
16
|
+
createFullTreeFlightDataForNavigation: function() {
|
|
17
|
+
return createFullTreeFlightDataForNavigation;
|
|
18
|
+
},
|
|
19
|
+
walkTreeWithFlightRouterState: function() {
|
|
8
20
|
return walkTreeWithFlightRouterState;
|
|
9
21
|
}
|
|
10
22
|
});
|
|
@@ -16,7 +28,7 @@ const _hasloadingcomponentintree = require("./has-loading-component-in-tree");
|
|
|
16
28
|
const _segment = require("../../shared/lib/segment");
|
|
17
29
|
const _createcomponenttree = require("./create-component-tree");
|
|
18
30
|
const _getsegmentparam = require("../../shared/lib/router/utils/get-segment-param");
|
|
19
|
-
async function walkTreeWithFlightRouterState({ loaderTreeToFilter, parentParams, flightRouterState, parentIsInsideSharedLayout, rscHead, injectedCSS, injectedJS, injectedFontPreloadTags, rootLayoutIncluded, ctx, preloadCallbacks, MetadataOutlet }) {
|
|
31
|
+
async function walkTreeWithFlightRouterState({ loaderTreeToFilter, parentParams, flightRouterState, parentIsInsideSharedLayout, rscHead, injectedCSS, injectedJS, injectedFontPreloadTags, rootLayoutIncluded, ctx, preloadCallbacks, MetadataOutlet, hintTree }) {
|
|
20
32
|
const { renderOpts: { nextFontManifest, experimental }, query, isPrefetch, getDynamicParamFromSegment, parsedRequestHeaders } = ctx;
|
|
21
33
|
const [segment, parallelRoutes, modules] = loaderTreeToFilter;
|
|
22
34
|
const parallelRoutesKeys = Object.keys(parallelRoutes);
|
|
@@ -29,7 +41,7 @@ async function walkTreeWithFlightRouterState({ loaderTreeToFilter, parentParams,
|
|
|
29
41
|
* Checks if the current segment or any level above it has a root layout.
|
|
30
42
|
*/ const rootLayoutIncludedAtThisLevelOrAbove = rootLayoutIncluded || rootLayoutAtThisLevel;
|
|
31
43
|
// Because this function walks to a deeper point in the tree to start rendering we have to track the dynamic parameters up to the point where rendering starts
|
|
32
|
-
const segmentParam = getDynamicParamFromSegment(
|
|
44
|
+
const segmentParam = getDynamicParamFromSegment(loaderTreeToFilter);
|
|
33
45
|
const currentParams = // Handle null case where dynamic param is optional
|
|
34
46
|
segmentParam && segmentParam.value !== null ? {
|
|
35
47
|
...parentParams,
|
|
@@ -40,8 +52,7 @@ async function walkTreeWithFlightRouterState({ loaderTreeToFilter, parentParams,
|
|
|
40
52
|
* Decide if the current segment is where rendering has to start.
|
|
41
53
|
*/ const renderComponentsOnThisLevel = // No further router state available
|
|
42
54
|
!flightRouterState || // Segment in router state does not match current segment
|
|
43
|
-
!(0, _matchsegments.matchSegment)(actualSegment, flightRouterState[0]) || //
|
|
44
|
-
parallelRoutesKeys.length === 0 || // Explicit refresh
|
|
55
|
+
!(0, _matchsegments.matchSegment)(actualSegment, flightRouterState[0]) || // Explicit refresh
|
|
45
56
|
flightRouterState[3] === 'refetch';
|
|
46
57
|
// Pre-PPR, the `loading` component signals to the router how deep to render the component tree
|
|
47
58
|
// to ensure prefetches are quick and inexpensive. If there's no `loading` component anywhere in the tree being rendered,
|
|
@@ -71,7 +82,7 @@ async function walkTreeWithFlightRouterState({ loaderTreeToFilter, parentParams,
|
|
|
71
82
|
// use `actualSegment`? Is it to avoid overwriting some state that's
|
|
72
83
|
// tracked by the client? Dig deeper to see if we can simplify this.
|
|
73
84
|
canSegmentBeOverridden(actualSegment, flightRouterState[0]) ? flightRouterState[0] : actualSegment;
|
|
74
|
-
const routerState = parsedRequestHeaders.isRouteTreePrefetchRequest ? (0, _createflightrouterstatefromloadertree.createRouteTreePrefetch)(loaderTreeToFilter, getDynamicParamFromSegment) : (0, _createflightrouterstatefromloadertree.createFlightRouterStateFromLoaderTree)(loaderTreeToFilter, getDynamicParamFromSegment, query);
|
|
85
|
+
const routerState = parsedRequestHeaders.isRouteTreePrefetchRequest ? await (0, _createflightrouterstatefromloadertree.createRouteTreePrefetch)(loaderTreeToFilter, hintTree, getDynamicParamFromSegment) : await (0, _createflightrouterstatefromloadertree.createFlightRouterStateFromLoaderTree)(loaderTreeToFilter, hintTree, getDynamicParamFromSegment, query);
|
|
75
86
|
return [
|
|
76
87
|
[
|
|
77
88
|
overriddenSegment,
|
|
@@ -89,7 +100,7 @@ async function walkTreeWithFlightRouterState({ loaderTreeToFilter, parentParams,
|
|
|
89
100
|
// only the metadata for a page. No segment data.
|
|
90
101
|
if (flightRouterState && flightRouterState[3] === 'metadata-only') {
|
|
91
102
|
const overriddenSegment = flightRouterState && canSegmentBeOverridden(actualSegment, flightRouterState[0]) ? flightRouterState[0] : actualSegment;
|
|
92
|
-
const routerState = parsedRequestHeaders.isRouteTreePrefetchRequest ? (0, _createflightrouterstatefromloadertree.createRouteTreePrefetch)(loaderTreeToFilter, getDynamicParamFromSegment) : (0, _createflightrouterstatefromloadertree.createFlightRouterStateFromLoaderTree)(loaderTreeToFilter, getDynamicParamFromSegment, query);
|
|
103
|
+
const routerState = parsedRequestHeaders.isRouteTreePrefetchRequest ? await (0, _createflightrouterstatefromloadertree.createRouteTreePrefetch)(loaderTreeToFilter, hintTree, getDynamicParamFromSegment) : await (0, _createflightrouterstatefromloadertree.createFlightRouterStateFromLoaderTree)(loaderTreeToFilter, hintTree, getDynamicParamFromSegment, query);
|
|
93
104
|
return [
|
|
94
105
|
[
|
|
95
106
|
overriddenSegment,
|
|
@@ -105,14 +116,16 @@ async function walkTreeWithFlightRouterState({ loaderTreeToFilter, parentParams,
|
|
|
105
116
|
// use `actualSegment`? Is it to avoid overwriting some state that's
|
|
106
117
|
// tracked by the client? Dig deeper to see if we can simplify this.
|
|
107
118
|
canSegmentBeOverridden(actualSegment, flightRouterState[0]) ? flightRouterState[0] : actualSegment;
|
|
108
|
-
const routerState = (0, _createflightrouterstatefromloadertree.createFlightRouterStateFromLoaderTree)(// Create router state using the slice of the loaderTree
|
|
109
|
-
loaderTreeToFilter, getDynamicParamFromSegment, query);
|
|
119
|
+
const routerState = await (0, _createflightrouterstatefromloadertree.createFlightRouterStateFromLoaderTree)(// Create router state using the slice of the loaderTree
|
|
120
|
+
loaderTreeToFilter, hintTree, getDynamicParamFromSegment, query);
|
|
110
121
|
// Create component tree using the slice of the loaderTree
|
|
111
122
|
const seedData = await (0, _createcomponenttree.createComponentTree)(// This ensures flightRouterPath is valid and filters down the tree
|
|
112
123
|
{
|
|
113
124
|
ctx,
|
|
114
125
|
loaderTree: loaderTreeToFilter,
|
|
115
126
|
parentParams: currentParams,
|
|
127
|
+
parentOptionalCatchAllParamName: null,
|
|
128
|
+
parentRuntimePrefetchable: false,
|
|
116
129
|
injectedCSS,
|
|
117
130
|
injectedJS,
|
|
118
131
|
injectedFontPreloadTags,
|
|
@@ -146,6 +159,7 @@ async function walkTreeWithFlightRouterState({ loaderTreeToFilter, parentParams,
|
|
|
146
159
|
const paths = [];
|
|
147
160
|
// Walk through all parallel routes.
|
|
148
161
|
for (const parallelRouteKey of parallelRoutesKeys){
|
|
162
|
+
var _hintTree_slots;
|
|
149
163
|
const parallelRoute = parallelRoutes[parallelRouteKey];
|
|
150
164
|
const subPaths = await walkTreeWithFlightRouterState({
|
|
151
165
|
ctx,
|
|
@@ -159,7 +173,8 @@ async function walkTreeWithFlightRouterState({ loaderTreeToFilter, parentParams,
|
|
|
159
173
|
injectedFontPreloadTags: injectedFontPreloadTagsWithCurrentLayout,
|
|
160
174
|
rootLayoutIncluded: rootLayoutIncludedAtThisLevelOrAbove,
|
|
161
175
|
preloadCallbacks,
|
|
162
|
-
MetadataOutlet
|
|
176
|
+
MetadataOutlet,
|
|
177
|
+
hintTree: (hintTree == null ? void 0 : (_hintTree_slots = hintTree.slots) == null ? void 0 : _hintTree_slots[parallelRouteKey]) ?? null
|
|
163
178
|
});
|
|
164
179
|
for (const subPath of subPaths){
|
|
165
180
|
paths.push([
|
|
@@ -171,6 +186,38 @@ async function walkTreeWithFlightRouterState({ loaderTreeToFilter, parentParams,
|
|
|
171
186
|
}
|
|
172
187
|
return paths;
|
|
173
188
|
}
|
|
189
|
+
async function createFullTreeFlightDataForNavigation({ loaderTree, rscHead, injectedCSS, injectedJS, injectedFontPreloadTags, ctx, preloadCallbacks, MetadataOutlet }) {
|
|
190
|
+
var _ctx_renderOpts_prefetchHints;
|
|
191
|
+
const { renderOpts: { experimental }, query, getDynamicParamFromSegment, pagePath } = ctx;
|
|
192
|
+
const hintTreeForInitialRender = ((_ctx_renderOpts_prefetchHints = ctx.renderOpts.prefetchHints) == null ? void 0 : _ctx_renderOpts_prefetchHints[pagePath]) ?? null;
|
|
193
|
+
const routerState = await (0, _createflightrouterstatefromloadertree.createFlightRouterStateFromLoaderTree)(loaderTree, hintTreeForInitialRender, getDynamicParamFromSegment, query);
|
|
194
|
+
const rootSegment = routerState[0];
|
|
195
|
+
const seedData = await (0, _createcomponenttree.createComponentTree)({
|
|
196
|
+
ctx,
|
|
197
|
+
loaderTree,
|
|
198
|
+
parentParams: {},
|
|
199
|
+
parentOptionalCatchAllParamName: null,
|
|
200
|
+
parentRuntimePrefetchable: false,
|
|
201
|
+
injectedCSS,
|
|
202
|
+
injectedJS,
|
|
203
|
+
injectedFontPreloadTags,
|
|
204
|
+
rootLayoutIncluded: false,
|
|
205
|
+
preloadCallbacks,
|
|
206
|
+
authInterrupts: experimental.authInterrupts,
|
|
207
|
+
MetadataOutlet
|
|
208
|
+
});
|
|
209
|
+
return [
|
|
210
|
+
[
|
|
211
|
+
// TODO: app-render slices this Segment off.
|
|
212
|
+
// why is that valid, and why are we including it in the first place?
|
|
213
|
+
rootSegment,
|
|
214
|
+
routerState,
|
|
215
|
+
seedData,
|
|
216
|
+
rscHead,
|
|
217
|
+
false
|
|
218
|
+
]
|
|
219
|
+
];
|
|
220
|
+
}
|
|
174
221
|
/*
|
|
175
222
|
* This function is used to determine if an existing segment can be overridden
|
|
176
223
|
* by the incoming segment.
|
|
@@ -8,9 +8,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
getHmrRefreshHash: null,
|
|
9
9
|
getPrerenderResumeDataCache: null,
|
|
10
10
|
getRenderResumeDataCache: null,
|
|
11
|
-
getRuntimeStagePromise: null,
|
|
12
11
|
getServerComponentsHmrCache: null,
|
|
12
|
+
getStagedRenderingController: null,
|
|
13
13
|
isHmrRefresh: null,
|
|
14
|
+
isInEarlyRenderStage: null,
|
|
14
15
|
throwForMissingRequestStore: null,
|
|
15
16
|
throwInvariantForMissingStore: null,
|
|
16
17
|
workUnitAsyncStorage: null
|
|
@@ -37,15 +38,18 @@ _export(exports, {
|
|
|
37
38
|
getRenderResumeDataCache: function() {
|
|
38
39
|
return getRenderResumeDataCache;
|
|
39
40
|
},
|
|
40
|
-
getRuntimeStagePromise: function() {
|
|
41
|
-
return getRuntimeStagePromise;
|
|
42
|
-
},
|
|
43
41
|
getServerComponentsHmrCache: function() {
|
|
44
42
|
return getServerComponentsHmrCache;
|
|
45
43
|
},
|
|
44
|
+
getStagedRenderingController: function() {
|
|
45
|
+
return getStagedRenderingController;
|
|
46
|
+
},
|
|
46
47
|
isHmrRefresh: function() {
|
|
47
48
|
return isHmrRefresh;
|
|
48
49
|
},
|
|
50
|
+
isInEarlyRenderStage: function() {
|
|
51
|
+
return isInEarlyRenderStage;
|
|
52
|
+
},
|
|
49
53
|
throwForMissingRequestStore: function() {
|
|
50
54
|
return throwForMissingRequestStore;
|
|
51
55
|
},
|
|
@@ -59,6 +63,14 @@ _export(exports, {
|
|
|
59
63
|
const _workunitasyncstorageinstance = require("./work-unit-async-storage-instance");
|
|
60
64
|
const _approuterheaders = require("../../client/components/app-router-headers");
|
|
61
65
|
const _invarianterror = require("../../shared/lib/invariant-error");
|
|
66
|
+
const _stagedrendering = require("./staged-rendering");
|
|
67
|
+
function isInEarlyRenderStage(requestStore) {
|
|
68
|
+
const stagedRendering = requestStore.stagedRendering;
|
|
69
|
+
if (stagedRendering) {
|
|
70
|
+
return stagedRendering.currentStage === _stagedrendering.RenderStage.EarlyStatic || stagedRendering.currentStage === _stagedrendering.RenderStage.EarlyRuntime;
|
|
71
|
+
}
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
62
74
|
function throwForMissingRequestStore(callingExpression) {
|
|
63
75
|
throw Object.defineProperty(new Error(`\`${callingExpression}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`), "__NEXT_ERROR_CODE", {
|
|
64
76
|
value: "E251",
|
|
@@ -80,6 +92,7 @@ function getPrerenderResumeDataCache(workUnitStore) {
|
|
|
80
92
|
case 'prerender-ppr':
|
|
81
93
|
return workUnitStore.prerenderResumeDataCache;
|
|
82
94
|
case 'prerender-client':
|
|
95
|
+
case 'validation-client':
|
|
83
96
|
// TODO eliminate fetch caching in client scope and stop exposing this data
|
|
84
97
|
// cache during SSR.
|
|
85
98
|
return workUnitStore.prerenderResumeDataCache;
|
|
@@ -95,6 +108,7 @@ function getPrerenderResumeDataCache(workUnitStore) {
|
|
|
95
108
|
case 'cache':
|
|
96
109
|
case 'private-cache':
|
|
97
110
|
case 'unstable-cache':
|
|
111
|
+
case 'generate-static-params':
|
|
98
112
|
return null;
|
|
99
113
|
default:
|
|
100
114
|
return workUnitStore;
|
|
@@ -106,6 +120,7 @@ function getRenderResumeDataCache(workUnitStore) {
|
|
|
106
120
|
case 'prerender':
|
|
107
121
|
case 'prerender-runtime':
|
|
108
122
|
case 'prerender-client':
|
|
123
|
+
case 'validation-client':
|
|
109
124
|
if (workUnitStore.renderResumeDataCache) {
|
|
110
125
|
// If we are in a prerender, we might have a render resume data cache
|
|
111
126
|
// that is used to read from prefilled caches.
|
|
@@ -120,13 +135,14 @@ function getRenderResumeDataCache(workUnitStore) {
|
|
|
120
135
|
case 'private-cache':
|
|
121
136
|
case 'unstable-cache':
|
|
122
137
|
case 'prerender-legacy':
|
|
138
|
+
case 'generate-static-params':
|
|
123
139
|
return null;
|
|
124
140
|
default:
|
|
125
141
|
return workUnitStore;
|
|
126
142
|
}
|
|
127
143
|
}
|
|
128
|
-
function getHmrRefreshHash(
|
|
129
|
-
if (
|
|
144
|
+
function getHmrRefreshHash(workUnitStore) {
|
|
145
|
+
if (process.env.__NEXT_DEV_SERVER) {
|
|
130
146
|
switch(workUnitStore.type){
|
|
131
147
|
case 'cache':
|
|
132
148
|
case 'private-cache':
|
|
@@ -137,9 +153,11 @@ function getHmrRefreshHash(workStore, workUnitStore) {
|
|
|
137
153
|
var _workUnitStore_cookies_get;
|
|
138
154
|
return (_workUnitStore_cookies_get = workUnitStore.cookies.get(_approuterheaders.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : _workUnitStore_cookies_get.value;
|
|
139
155
|
case 'prerender-client':
|
|
156
|
+
case 'validation-client':
|
|
140
157
|
case 'prerender-ppr':
|
|
141
158
|
case 'prerender-legacy':
|
|
142
159
|
case 'unstable-cache':
|
|
160
|
+
case 'generate-static-params':
|
|
143
161
|
break;
|
|
144
162
|
default:
|
|
145
163
|
workUnitStore;
|
|
@@ -147,8 +165,8 @@ function getHmrRefreshHash(workStore, workUnitStore) {
|
|
|
147
165
|
}
|
|
148
166
|
return undefined;
|
|
149
167
|
}
|
|
150
|
-
function isHmrRefresh(
|
|
151
|
-
if (
|
|
168
|
+
function isHmrRefresh(workUnitStore) {
|
|
169
|
+
if (process.env.__NEXT_DEV_SERVER) {
|
|
152
170
|
switch(workUnitStore.type){
|
|
153
171
|
case 'cache':
|
|
154
172
|
case 'private-cache':
|
|
@@ -156,10 +174,12 @@ function isHmrRefresh(workStore, workUnitStore) {
|
|
|
156
174
|
return workUnitStore.isHmrRefresh ?? false;
|
|
157
175
|
case 'prerender':
|
|
158
176
|
case 'prerender-client':
|
|
177
|
+
case 'validation-client':
|
|
159
178
|
case 'prerender-runtime':
|
|
160
179
|
case 'prerender-ppr':
|
|
161
180
|
case 'prerender-legacy':
|
|
162
181
|
case 'unstable-cache':
|
|
182
|
+
case 'generate-static-params':
|
|
163
183
|
break;
|
|
164
184
|
default:
|
|
165
185
|
workUnitStore;
|
|
@@ -167,8 +187,8 @@ function isHmrRefresh(workStore, workUnitStore) {
|
|
|
167
187
|
}
|
|
168
188
|
return false;
|
|
169
189
|
}
|
|
170
|
-
function getServerComponentsHmrCache(
|
|
171
|
-
if (
|
|
190
|
+
function getServerComponentsHmrCache(workUnitStore) {
|
|
191
|
+
if (process.env.__NEXT_DEV_SERVER) {
|
|
172
192
|
switch(workUnitStore.type){
|
|
173
193
|
case 'cache':
|
|
174
194
|
case 'private-cache':
|
|
@@ -176,10 +196,12 @@ function getServerComponentsHmrCache(workStore, workUnitStore) {
|
|
|
176
196
|
return workUnitStore.serverComponentsHmrCache;
|
|
177
197
|
case 'prerender':
|
|
178
198
|
case 'prerender-client':
|
|
199
|
+
case 'validation-client':
|
|
179
200
|
case 'prerender-runtime':
|
|
180
201
|
case 'prerender-ppr':
|
|
181
202
|
case 'prerender-legacy':
|
|
182
203
|
case 'unstable-cache':
|
|
204
|
+
case 'generate-static-params':
|
|
183
205
|
break;
|
|
184
206
|
default:
|
|
185
207
|
workUnitStore;
|
|
@@ -198,8 +220,10 @@ function getDraftModeProviderForCacheScope(workStore, workUnitStore) {
|
|
|
198
220
|
return workUnitStore.draftMode;
|
|
199
221
|
case 'prerender':
|
|
200
222
|
case 'prerender-client':
|
|
223
|
+
case 'validation-client':
|
|
201
224
|
case 'prerender-ppr':
|
|
202
225
|
case 'prerender-legacy':
|
|
226
|
+
case 'generate-static-params':
|
|
203
227
|
break;
|
|
204
228
|
default:
|
|
205
229
|
workUnitStore;
|
|
@@ -207,42 +231,46 @@ function getDraftModeProviderForCacheScope(workStore, workUnitStore) {
|
|
|
207
231
|
}
|
|
208
232
|
return undefined;
|
|
209
233
|
}
|
|
210
|
-
function
|
|
234
|
+
function getStagedRenderingController(workUnitStore) {
|
|
211
235
|
switch(workUnitStore.type){
|
|
236
|
+
case 'request':
|
|
237
|
+
case 'prerender-runtime':
|
|
238
|
+
return workUnitStore.stagedRendering ?? null;
|
|
212
239
|
case 'prerender':
|
|
213
240
|
case 'prerender-client':
|
|
214
|
-
case '
|
|
215
|
-
return workUnitStore.cacheSignal;
|
|
216
|
-
case 'request':
|
|
217
|
-
{
|
|
218
|
-
// In dev, we might fill caches even during a dynamic request.
|
|
219
|
-
if (workUnitStore.cacheSignal) {
|
|
220
|
-
return workUnitStore.cacheSignal;
|
|
221
|
-
}
|
|
222
|
-
// fallthrough
|
|
223
|
-
}
|
|
241
|
+
case 'validation-client':
|
|
224
242
|
case 'prerender-ppr':
|
|
225
243
|
case 'prerender-legacy':
|
|
226
244
|
case 'cache':
|
|
227
245
|
case 'private-cache':
|
|
228
246
|
case 'unstable-cache':
|
|
247
|
+
case 'generate-static-params':
|
|
229
248
|
return null;
|
|
230
249
|
default:
|
|
231
250
|
return workUnitStore;
|
|
232
251
|
}
|
|
233
252
|
}
|
|
234
|
-
function
|
|
253
|
+
function getCacheSignal(workUnitStore) {
|
|
235
254
|
switch(workUnitStore.type){
|
|
236
|
-
case 'prerender-runtime':
|
|
237
|
-
case 'private-cache':
|
|
238
|
-
return workUnitStore.runtimeStagePromise;
|
|
239
255
|
case 'prerender':
|
|
240
256
|
case 'prerender-client':
|
|
257
|
+
case 'validation-client':
|
|
258
|
+
case 'prerender-runtime':
|
|
259
|
+
return workUnitStore.cacheSignal;
|
|
260
|
+
case 'request':
|
|
261
|
+
{
|
|
262
|
+
// In dev, we might fill caches even during a dynamic request.
|
|
263
|
+
if (workUnitStore.cacheSignal) {
|
|
264
|
+
return workUnitStore.cacheSignal;
|
|
265
|
+
}
|
|
266
|
+
// fallthrough
|
|
267
|
+
}
|
|
241
268
|
case 'prerender-ppr':
|
|
242
269
|
case 'prerender-legacy':
|
|
243
|
-
case 'request':
|
|
244
270
|
case 'cache':
|
|
271
|
+
case 'private-cache':
|
|
245
272
|
case 'unstable-cache':
|
|
273
|
+
case 'generate-static-params':
|
|
246
274
|
return null;
|
|
247
275
|
default:
|
|
248
276
|
return workUnitStore;
|
|
@@ -59,15 +59,15 @@ function getMutableCookies(headers, onUpdateCookies) {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function createRequestStoreForRender(req, res, url, rootParams, implicitTags, onUpdateCookies, previewProps, isHmrRefresh, serverComponentsHmrCache, renderResumeDataCache,
|
|
62
|
+
function createRequestStoreForRender(req, res, url, rootParams, implicitTags, onUpdateCookies, previewProps, isHmrRefresh, serverComponentsHmrCache, renderResumeDataCache, fallbackParams) {
|
|
63
63
|
return createRequestStoreImpl(// Pages start in render phase by default
|
|
64
|
-
'render', req, res, url, rootParams, implicitTags, onUpdateCookies, renderResumeDataCache, previewProps, isHmrRefresh, serverComponentsHmrCache,
|
|
64
|
+
'render', req, res, url, rootParams, implicitTags, onUpdateCookies, renderResumeDataCache, previewProps, isHmrRefresh, serverComponentsHmrCache, fallbackParams);
|
|
65
65
|
}
|
|
66
66
|
function createRequestStoreForAPI(req, url, implicitTags, onUpdateCookies, previewProps) {
|
|
67
67
|
return createRequestStoreImpl(// API routes start in action phase by default
|
|
68
68
|
'action', req, undefined, url, {}, implicitTags, onUpdateCookies, null, previewProps, false, undefined, null);
|
|
69
69
|
}
|
|
70
|
-
function createRequestStoreImpl(phase, req, res, url, rootParams, implicitTags, onUpdateCookies, renderResumeDataCache, previewProps, isHmrRefresh, serverComponentsHmrCache,
|
|
70
|
+
function createRequestStoreImpl(phase, req, res, url, rootParams, implicitTags, onUpdateCookies, renderResumeDataCache, previewProps, isHmrRefresh, serverComponentsHmrCache, fallbackParams) {
|
|
71
71
|
function defaultOnUpdateCookies(cookies) {
|
|
72
72
|
if (res) {
|
|
73
73
|
res.setHeader('Set-Cookie', cookies);
|
|
@@ -133,7 +133,7 @@ function createRequestStoreImpl(phase, req, res, url, rootParams, implicitTags,
|
|
|
133
133
|
renderResumeDataCache: renderResumeDataCache ?? null,
|
|
134
134
|
isHmrRefresh,
|
|
135
135
|
serverComponentsHmrCache: serverComponentsHmrCache || globalThis.__serverComponentsHmrCache,
|
|
136
|
-
|
|
136
|
+
fallbackParams
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
function synchronizeMutableCookies(store) {
|
|
@@ -31,8 +31,7 @@ function createWorkStore({ page, renderOpts, isPrefetchRequest, buildId, previou
|
|
|
31
31
|
* These rules help ensure that other existing features like request caching,
|
|
32
32
|
* coalescing, and ISR continue working as intended.
|
|
33
33
|
*/ const isStaticGeneration = !renderOpts.shouldWaitOnAllReady && !renderOpts.supportsDynamicResponse && !renderOpts.isDraftMode && !renderOpts.isPossibleServerAction;
|
|
34
|
-
const
|
|
35
|
-
const shouldTrackFetchMetrics = isDevelopment || // The only times we want to track fetch metrics outside of development is
|
|
34
|
+
const shouldTrackFetchMetrics = !!process.env.__NEXT_DEV_SERVER || // The only times we want to track fetch metrics outside of development is
|
|
36
35
|
// when we are performing a static generation and we either are in debug
|
|
37
36
|
// mode, or tracking fetch metrics was specifically opted into.
|
|
38
37
|
isStaticGeneration && (!!process.env.NEXT_DEBUG_BUILD || process.env.NEXT_SSG_FETCH_METRICS === '1');
|
|
@@ -44,8 +43,7 @@ function createWorkStore({ page, renderOpts, isPrefetchRequest, buildId, previou
|
|
|
44
43
|
// so that it can access the fs cache without mocks
|
|
45
44
|
renderOpts.incrementalCache || globalThis.__incrementalCache,
|
|
46
45
|
cacheLifeProfiles: renderOpts.cacheLifeProfiles,
|
|
47
|
-
isBuildTimePrerendering: renderOpts.
|
|
48
|
-
hasReadableErrorStacks: renderOpts.hasReadableErrorStacks,
|
|
46
|
+
isBuildTimePrerendering: renderOpts.isBuildTimePrerendering,
|
|
49
47
|
fetchCache: renderOpts.fetchCache,
|
|
50
48
|
isOnDemandRevalidate: renderOpts.isOnDemandRevalidate,
|
|
51
49
|
isDraftMode: renderOpts.isDraftMode,
|
|
@@ -56,7 +54,6 @@ function createWorkStore({ page, renderOpts, isPrefetchRequest, buildId, previou
|
|
|
56
54
|
nonce,
|
|
57
55
|
afterContext: createAfterContext(renderOpts),
|
|
58
56
|
cacheComponentsEnabled: renderOpts.cacheComponents,
|
|
59
|
-
dev: isDevelopment,
|
|
60
57
|
previouslyRevalidatedTags,
|
|
61
58
|
refreshTagsByCacheKind: createRefreshTagsByCacheKind(),
|
|
62
59
|
runInCleanSnapshot: (0, _asynclocalstorage.createSnapshot)(),
|