failproofai 1.0.12 → 1.0.13-beta.1
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/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +13 -13
- package/.next/standalone/.next/prerender-manifest.json +4 -4
- package/.next/standalone/.next/required-server-files.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page.js +2 -1
- package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +2 -2
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js +4 -3
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +3 -3
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/api/audit/invite/route.js +6 -5
- package/.next/standalone/.next/server/app/api/audit/invite/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/audit/run/route.js +27 -26
- package/.next/standalone/.next/server/app/api/audit/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/audit/status/route.js +4 -3
- package/.next/standalone/.next/server/app/api/audit/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/login-request/route.js +6 -5
- package/.next/standalone/.next/server/app/api/auth/login-request/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/login-verify/route.js +6 -5
- package/.next/standalone/.next/server/app/api/auth/login-verify/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/logout/route.js +6 -5
- package/.next/standalone/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/status/route.js +6 -5
- package/.next/standalone/.next/server/app/api/auth/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/download/[project]/[session]/route.js +4 -3
- package/.next/standalone/.next/server/app/api/download/[project]/[session]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/audit/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/audit/page/server-reference-manifest.json +2 -2
- package/.next/standalone/.next/server/app/audit/page.js +7 -6
- package/.next/standalone/.next/server/app/audit/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/audit/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +3 -3
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/page.js +6 -5
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/policies/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/policies/page/server-reference-manifest.json +14 -14
- package/.next/standalone/.next/server/app/policies/page.js +5 -4
- package/.next/standalone/.next/server/app/policies/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/policies/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page.js +21 -20
- package/.next/standalone/.next/server/app/project/[name]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/react-loadable-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/server-reference-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js +10 -9
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/projects/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/projects/page.js +7 -6
- package/.next/standalone/.next/server/app/projects/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/settings/page/server-reference-manifest.json +8 -8
- package/.next/standalone/.next/server/app/settings/page.js +6 -5
- package/.next/standalone/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/chunks/{[externals]__0vt9i6fqinjne._.js → [externals]__1h83uo-b1b6-2._.js} +1 -1
- package/.next/standalone/.next/server/chunks/[externals]__214wn4wh2x79y._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[externals]__1rlxpymm37wel._.js → [root-of-the-server]__031qp1lkow_kc._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__038kwryp970nh._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0_hsnj_a2mvl_._.js → [root-of-the-server]__03s1za0hn71yp._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0wg9dk8x8bnau._.js → [root-of-the-server]__07a0sa6fuw5_b._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__08atcie7jzswm._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__08dchfudh2_4f._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0car70pylmvor._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0spt0kv8azrpl._.js +1 -1
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__12kq3x-h7t7i1._.js → [root-of-the-server]__0yvyp5b7jmlc4._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__02vous7mpi2xm._.js → [root-of-the-server]__145vo_drnuvas._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[externals]__0h0p9dmv_e7r7._.js → [root-of-the-server]__1a2d0ewycsp6k._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[externals]__1_407huhlmj1m._.js → [root-of-the-server]__1am_1tz0o0aqz._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__03i5o4a840guz._.js → [root-of-the-server]__1gxfzuvpyw30j._.js} +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1j6kfp0vzu5rw._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1l0ayum_hqqsw._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1lh8c0mmhdrbj._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1o9rznwc0w7og._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0f_4g-vazrvxv._.js → [root-of-the-server]__1o_622x0fglpr._.js} +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1oclamblhzhrf._.js +68 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1v1-l-83czzsr._.js +63 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__1a5zkndjwlc13._.js → [root-of-the-server]__1wwi53kkqhnfi._.js} +1 -1
- package/.next/standalone/.next/server/chunks/{_1y590mjzpkbos._.js → _02sa8fcu9_9xo._.js} +2 -2
- package/.next/standalone/.next/server/chunks/_0tovk6q0miud6._.js +1 -1
- package/.next/standalone/.next/server/chunks/_0trp3ycqv17cl._.js +1 -1
- package/.next/standalone/.next/server/chunks/_1-2owkp-1_987._.js +1 -1
- package/.next/standalone/.next/server/chunks/_13ltj8a9z92o8._.js +1 -1
- package/.next/standalone/.next/server/chunks/_15k37au70vjvg._.js +1 -1
- package/.next/standalone/.next/server/chunks/_18rfu4__wjhwb._.js +1 -1
- package/.next/standalone/.next/server/chunks/_1ek68lnh2daur._.js +2 -2
- package/.next/standalone/.next/server/chunks/_1fz8m31sndkcu._.js +1 -1
- package/.next/standalone/.next/server/chunks/_1ogwigfb0163w._.js +1 -1
- package/.next/standalone/.next/server/chunks/_1vslkoe35wok6._.js +1 -1
- package/.next/standalone/.next/server/chunks/node_modules_@opentelemetry_api_build_esm_index_0oo58a7rymoxh.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_@opentelemetry_api_build_esm_index_1jp9ij0_ddtgk.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_01r25oigsgz07._.js +2 -2
- package/.next/standalone/.next/server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_09z9-p77cu37y._.js +2 -2
- package/.next/standalone/.next/server/chunks/package_json_[json]_cjs_1nxcc4vkpxxu7._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0ffu2-38y03ic._.js → [root-of-the-server]__021vebe-4il8s._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__075uro8t92s0_._.js +14 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__08ch3staq3ejw._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[externals]__12qr51qgrrt6o._.js → [root-of-the-server]__097i34ct1o88x._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0alpzjn3450sr._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0aup10z2o8zc1._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0bigvy9xmv2ka._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0bioghlkjf7s7._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__01j58mdcdw0vn._.js → [root-of-the-server]__0ed1zh4scn7-k._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0naevg4bcoh54._.js → [root-of-the-server]__0evgy902m9h5e._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0h86bl2qf0k_o._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__167mipqmjprq5._.js → [root-of-the-server]__0mhtkwwx1pxcq._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0nhm28v58ty9z._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0pia5h3p8re4c._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0vse4qi496ol-._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__17r4zrwanhp6r._.js → [root-of-the-server]__0yb3u36xjy3b9._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0g8b0kyorya-t._.js → [root-of-the-server]__0ywj2u6ovfm_5._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1-ey9fgesfbc0._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0zn1d4blhd3bu._.js → [root-of-the-server]__10v5cyxvj64j4._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__15usvs-ms-0hf._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__16gb3_92zvk5x._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__190xwrr5zrfi3._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1avi2kypusyb_._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1vx7o8ukefudh._.js → [root-of-the-server]__1guwlpkyurdn9._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1k96jctukf65_._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1r7drlqli-ado._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1sj-wn2jp6va5._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1vofkb2oq7p7e._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1s2-ck3k3rsoo._.js → [root-of-the-server]__20dt376-socef._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1lnfv02ucky7m._.js → [root-of-the-server]__2158020r_amn9._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{_1d98fyfrcaqhy._.js → _0bc4f4quq6w47._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_0eoura3_9gjb-._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0ouu886szh6yj._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0pedwblqdoh58._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1_ozgifqv1ssi._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1djqs9i27e4kg._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_next-internal_server_app_policies_page_actions_1sp2-yo5_vm5f.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/app_actions_get-scheduled-audit_ts_0ei9snixb5fd-._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_audit__components_audit-dashboard_tsx_0p9ud47q0xq5w._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_global-error_tsx_1kp6l3x33jqb6._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_policies_hooks-client_tsx_19dqvpcz0uxur._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_settings_02tf1h47jmhhd._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_09s4n108bqreq._.js → node_modules_0ptcnmeaxvd_a._.js} +22 -2
- package/.next/standalone/.next/server/chunks/ssr/node_modules_@opentelemetry_api_build_esm_index_0ntwr8lzj6p2i.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_html-to-image_es_index_0tqc05n832v7a.js → node_modules_html-to-image_es_index_1jwgv0pf-gy96.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_0bz67659f5z-3._.js +32 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_0janj0i6dqko7._.js +3 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_0ocrceo0c9psx._.js +32 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_1alv566ojmz5j._.js +32 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_1khq67j4vo9y4._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_shared_lib_0ftnv26hg1lry._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_0dagmbznysrc2._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuznb72p7z._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/package_json_[json]_cjs_013tntikdft59._.js +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +13 -13
- package/.next/standalone/.next/server/middleware.js +2 -2
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/preview-props.json +3 -3
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +23 -23
- package/.next/standalone/.next/static/chunks/0cbom4-ijx_a_.js +1 -0
- package/.next/standalone/.next/static/chunks/0u5weo5jdn2s8.js +1 -0
- package/.next/standalone/.next/static/chunks/{0el9n3h9_zp5m.js → 18-icoqze51kl.js} +1 -1
- package/.next/standalone/.next/static/chunks/2d-u90dt4-8rd.js +6 -0
- package/.next/standalone/.next/static/chunks/2n-bzb7pxe7hu.js +1 -0
- package/.next/standalone/.next/static/chunks/{0umzct31duk5g.js → 2zc7lg-jq353g.js} +1 -1
- package/.next/standalone/.next/static/chunks/{27cavoc8paelg.js → 33djjf12bhcsv.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0wobqgosirs8p.js → 38u_i3j5funpi.js} +1 -1
- package/.next/standalone/.next/static/chunks/3symuj7t4js-c.js +1 -0
- package/.next/standalone/.next/static/chunks/{1kduj74-715jh.js → 3vzut6zpdrvtx.js} +1 -1
- package/.next/standalone/.next/static/chunks/{063al_q720fkj.js → 3xgxl1s_in776.js} +2 -2
- package/.next/standalone/SECURITY.md +20 -4
- package/.next/standalone/fp-cloud-cli/CHANGELOG.md +15 -1
- package/.next/standalone/fp-cloud-cli/fp_cli/_version.py +1 -1
- package/.next/standalone/fp-cloud-cli/uv.lock +4 -4
- package/.next/standalone/hermes-plugin/plugin.yaml +1 -1
- package/.next/standalone/node_modules/@next/env/package.json +1 -1
- package/.next/standalone/node_modules/next/dist/build/swc/index.js +1 -1
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +24 -24
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +26 -26
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +3 -3
- package/.next/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +13 -13
- package/.next/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +3 -3
- package/.next/standalone/node_modules/next/dist/server/app-render/app-render.js +41 -40
- package/.next/standalone/node_modules/next/dist/server/app-render/async-local-storage.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/app-render/dynamic-rendering-validation.js +814 -0
- package/.next/standalone/node_modules/next/dist/server/app-render/dynamic-rendering.js +1 -799
- package/.next/standalone/node_modules/next/dist/server/base-server.js +39 -5
- package/.next/standalone/node_modules/next/dist/server/config.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +2 -2
- package/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/lib/app-info-log.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/lib/dedupe-fetch.js +4 -43
- package/.next/standalone/node_modules/next/dist/server/lib/patch-fetch-symbol.js +13 -0
- package/.next/standalone/node_modules/next/dist/server/lib/patch-fetch.js +3 -7
- package/.next/standalone/node_modules/next/dist/server/lib/router-server.js +3 -3
- package/.next/standalone/node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js +77 -12
- package/.next/standalone/node_modules/next/dist/server/lib/start-server.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/lib/trace/constants.js +12 -0
- package/.next/standalone/node_modules/next/dist/server/lib/trace/tracer.js +30 -14
- package/.next/standalone/node_modules/next/dist/server/next-server.js +10 -11
- package/.next/standalone/node_modules/next/dist/server/route-modules/pages/pages-handler.js +29 -23
- package/.next/standalone/node_modules/next/dist/server/route-modules/route-module.js +85 -8
- package/.next/standalone/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/web/adapter.js +124 -65
- package/.next/standalone/node_modules/next/dist/server/web/forward-trace-context.js +102 -0
- package/.next/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/.next/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
- package/.next/standalone/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/.next/standalone/node_modules/next/package.json +10 -10
- package/.next/standalone/node_modules/react/cjs/react.production.js +1 -1
- package/.next/standalone/node_modules/react/package.json +1 -1
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +1 -1
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +1 -1
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server.browser.production.js +31 -27
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server.edge.production.js +33 -27
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server.node.production.js +38 -30
- package/.next/standalone/node_modules/react-dom/cjs/react-dom.production.js +1 -1
- package/.next/standalone/node_modules/react-dom/package.json +2 -2
- package/.next/standalone/package.json +10 -10
- package/.next/standalone/sdk/python/CHANGELOG.md +8 -4
- package/.next/standalone/sdk/python/failproofai_sdk/evaluator/source.py +2 -2
- package/.next/standalone/sdk/python/pyproject.toml +2 -7
- package/.next/standalone/sdk/python/skill/references/frameworks.md +0 -15
- package/.next/standalone/sdk/python/tests/test_docs.py +1 -4
- package/.next/standalone/sdk/python/tests/test_evaluator_source.py +1 -1
- package/.next/standalone/sdk/python/tests/test_packaging.py +4 -7
- package/.next/standalone/sdk/python/tests/test_zero_dependencies.py +2 -13
- package/.next/standalone/sdk/python/uv.lock +43 -905
- package/.next/standalone/sdk/typescript/CHANGELOG.md +52 -0
- package/.next/standalone/sdk/typescript/integration/fixtures/ai-4/package-lock.json +176 -68
- package/.next/standalone/sdk/typescript/integration/fixtures/ai-4/package.json +2 -2
- package/.next/standalone/sdk/typescript/integration/fixtures/ai-5/package-lock.json +3 -3
- package/.next/standalone/sdk/typescript/integration/fixtures/ai-5/package.json +1 -1
- package/.next/standalone/sdk/typescript/integration/fixtures/langchain-0.3/package-lock.json +115 -98
- package/.next/standalone/sdk/typescript/integration/fixtures/langchain-0.3/package.json +3 -3
- package/.next/standalone/sdk/typescript/integration/fixtures/langchain-dup-core/package-lock.json +4 -4
- package/.next/standalone/sdk/typescript/integration/fixtures/langchain-dup-core/package.json +1 -1
- package/.next/standalone/sdk/typescript/integration/fixtures/llamaindex-0.11/package-lock.json +171 -149
- package/.next/standalone/sdk/typescript/integration/fixtures/llamaindex-0.11/package.json +5 -2
- package/.next/standalone/sdk/typescript/integration/fixtures/mastra-1/package-lock.json +27 -15
- package/.next/standalone/sdk/typescript/integration/fixtures/mastra-1/package.json +2 -1
- package/.next/standalone/sdk/typescript/integration/fixtures/runtimes/deno-npm.ts +1 -1
- package/.next/standalone/server.js +1 -1
- package/README.md +0 -6
- package/dist/cli.mjs +12 -11
- package/dist/worker.mjs +1 -1
- package/hermes-plugin/plugin.yaml +1 -1
- package/openclaw-plugin/daemon-client.js +254 -0
- package/openclaw-plugin/hooks.js +187 -0
- package/openclaw-plugin/index.js +17 -211
- package/package.json +10 -10
- package/scripts/sync-agent-cli-harnesses-prompt.md +26 -31
- package/src/hooks/enforcement-capability.ts +1 -1
- package/src/hooks/integrations.ts +5 -2
- package/.next/standalone/.codex/hooks.json +0 -76
- package/.next/standalone/.cursor/hooks.json +0 -47
- package/.next/standalone/.factory/hooks.json +0 -112
- package/.next/standalone/.next/server/chunks/[externals]__1x24dzcbbq6-g._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0__a_je8fsn65._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0l-oi4gdtmlo5._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0t9ufnv5hi2hq._.js +0 -327
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1aaw59g-5uty7._.js +0 -322
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1hqpg6vgmfexv._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[externals]__0ilfh9mfnzsth._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[externals]__0ohnuzsaozaca._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0pwj2h2efe5f-._.js +0 -14
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_0zuikgt2xho-v._.js +0 -271
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_158jo-9mwvgad._.js +0 -291
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_19r82zsxo2jj1._.js +0 -291
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_1dupwucoqt5qm._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_shared_lib_03w27x2kh17_8._.js +0 -23
- package/.next/standalone/.next/static/chunks/0k7g_8x3o6gd-.js +0 -1
- package/.next/standalone/.next/static/chunks/12rug3jilwqzs.js +0 -1
- package/.next/standalone/.next/static/chunks/2701amhrbsbot.js +0 -1
- package/.next/standalone/.next/static/chunks/2ve23a7keupjw.js +0 -1
- package/.next/standalone/.next/static/chunks/3bv6xaoitjpnh.js +0 -6
- package/.next/standalone/.opencode/opencode.json +0 -4
- package/.next/standalone/.opencode/plugins/failproofai.mjs +0 -210
- package/.next/standalone/.pi/settings.json +0 -5
- package/.next/standalone/node_modules/react/cjs/react.development.js +0 -1330
- package/scripts/dev-hook.mjs +0 -333
- /package/.next/standalone/.next/static/{D7LY1YSrw96ZxKSpxxrFw → 1n2dyfTQb0MDajeqlipJy}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{D7LY1YSrw96ZxKSpxxrFw → 1n2dyfTQb0MDajeqlipJy}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{D7LY1YSrw96ZxKSpxxrFw → 1n2dyfTQb0MDajeqlipJy}/_ssgManifest.js +0 -0
|
@@ -453,13 +453,24 @@ class Server {
|
|
|
453
453
|
await this.prepare();
|
|
454
454
|
const method = req.method.toUpperCase();
|
|
455
455
|
const tracer = (0, _tracer.getTracer)();
|
|
456
|
-
const handleRequest = ()=>
|
|
456
|
+
const handleRequest = ()=>{
|
|
457
|
+
// The render pass after a middleware invocation continues the trace
|
|
458
|
+
// context on the request, even when another span is active (e.g. a
|
|
459
|
+
// custom server or APM HTTP span). That is the context the
|
|
460
|
+
// middleware-invoke pass wrote onto the request, so the middleware span
|
|
461
|
+
// and the render are siblings under that pass's span, or a `traceparent`
|
|
462
|
+
// the middleware explicitly set as a request-header override.
|
|
463
|
+
const forcePropagation = !(0, _requestmeta.getRequestMeta)(req, 'middlewareInvoke') && (0, _requestmeta.getRequestMeta)(req, 'middlewareInvokeTraceparent') !== undefined;
|
|
464
|
+
// With forced propagation the active (host) span isn't the parent, so
|
|
465
|
+
// capture it before propagating to keep propagating `http.route` to it.
|
|
466
|
+
const hostSpan = forcePropagation ? tracer.getActiveScopeSpan() : undefined;
|
|
467
|
+
return tracer.withPropagatedContext(req.headers, ()=>{
|
|
457
468
|
// Capture the parent span before creating the handleRequest span.
|
|
458
469
|
// When deployed with an adapter, the platform's runtime may create its
|
|
459
470
|
// own OTEL HTTP server span before Next.js runs. We propagate http.route
|
|
460
471
|
// to this parent span so APM tools (e.g. Datadog) can derive the
|
|
461
472
|
// resource name correctly.
|
|
462
|
-
const parentSpan = tracer.getActiveScopeSpan();
|
|
473
|
+
const parentSpan = forcePropagation ? hostSpan : tracer.getActiveScopeSpan();
|
|
463
474
|
return tracer.trace(_constants1.BaseServerSpan.handleRequest, {
|
|
464
475
|
spanName: `${method}`,
|
|
465
476
|
kind: _tracer.SpanKind.SERVER,
|
|
@@ -467,7 +478,28 @@ class Server {
|
|
|
467
478
|
'http.method': method,
|
|
468
479
|
'http.target': req.url
|
|
469
480
|
}
|
|
470
|
-
}, async (span)=>
|
|
481
|
+
}, async (span)=>{
|
|
482
|
+
if ((0, _requestmeta.getRequestMeta)(req, 'middlewareInvoke')) {
|
|
483
|
+
// When middleware lets the request continue, the router server
|
|
484
|
+
// calls `handleRequest` twice: once to run middleware (this pass)
|
|
485
|
+
// and once to render. Publish this span's W3C trace context on
|
|
486
|
+
// the request, so the middleware span (including the Edge
|
|
487
|
+
// sandbox, which extracts it from the request headers) and the
|
|
488
|
+
// render pass are both children of this span (siblings) instead
|
|
489
|
+
// of starting new traces.
|
|
490
|
+
const traceContext = tracer.getTraceContextHeaders();
|
|
491
|
+
if (traceContext) {
|
|
492
|
+
Object.assign(req.headers, traceContext);
|
|
493
|
+
if (!traceContext.tracestate) {
|
|
494
|
+
// Don't pair this span's `traceparent` with a
|
|
495
|
+
// `tracestate` of another trace context (e.g. an incoming
|
|
496
|
+
// one, when a host span is this span's parent).
|
|
497
|
+
delete req.headers.tracestate;
|
|
498
|
+
}
|
|
499
|
+
(0, _requestmeta.addRequestMeta)(req, 'middlewareInvokeTraceparent', traceContext.traceparent);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
return this.handleRequestImpl(req, res, parsedUrl).finally(()=>{
|
|
471
503
|
if (!span) return;
|
|
472
504
|
const isRSCRequest = (0, _requestmeta.getRequestMeta)(req, 'isRSCRequest') ?? false;
|
|
473
505
|
span.setAttributes({
|
|
@@ -509,8 +541,10 @@ class Server {
|
|
|
509
541
|
} else {
|
|
510
542
|
span.updateName(isRSCRequest ? `RSC ${method}` : `${method}`);
|
|
511
543
|
}
|
|
512
|
-
})
|
|
513
|
-
|
|
544
|
+
});
|
|
545
|
+
});
|
|
546
|
+
}, undefined, forcePropagation);
|
|
547
|
+
};
|
|
514
548
|
if (!(0, _spanstore.isRequestInsightsEnabled)()) {
|
|
515
549
|
return handleRequest();
|
|
516
550
|
}
|
|
@@ -325,7 +325,7 @@ async function createHotReloaderTurbopack(opts, serverFields, distDir, resetFetc
|
|
|
325
325
|
}
|
|
326
326
|
const hasRewrites = opts.fsChecker.rewrites.afterFiles.length > 0 || opts.fsChecker.rewrites.beforeFiles.length > 0 || opts.fsChecker.rewrites.fallback.length > 0;
|
|
327
327
|
const hotReloaderSpan = (0, _trace.trace)('hot-reloader', undefined, {
|
|
328
|
-
version: "16.4.
|
|
328
|
+
version: "16.4.3"
|
|
329
329
|
});
|
|
330
330
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
|
331
331
|
// of the current `next dev` invocation.
|
|
@@ -385,7 +385,7 @@ async function createHotReloaderTurbopack(opts, serverFields, distDir, resetFetc
|
|
|
385
385
|
writeRoutesHashesManifest: false,
|
|
386
386
|
currentNodeJsVersion,
|
|
387
387
|
isPersistentCachingEnabled: (0, _utils2.isFileSystemCacheEnabledForDev)(opts.nextConfig),
|
|
388
|
-
nextVersion: "16.4.
|
|
388
|
+
nextVersion: "16.4.3",
|
|
389
389
|
serverHmr: serverFastRefresh
|
|
390
390
|
}, {
|
|
391
391
|
turbopackMemoryEviction: opts.nextConfig.experimental.turbopackMemoryEvictionMode,
|
|
@@ -237,7 +237,7 @@ class HotReloaderWebpack {
|
|
|
237
237
|
this.previewProps = previewProps;
|
|
238
238
|
this.rewrites = rewrites;
|
|
239
239
|
this.hotReloaderSpan = (0, _trace.trace)('hot-reloader', undefined, {
|
|
240
|
-
version: "16.4.
|
|
240
|
+
version: "16.4.3"
|
|
241
241
|
});
|
|
242
242
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
|
243
243
|
// of the current `next dev` invocation.
|
|
@@ -83,7 +83,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
83
83
|
}
|
|
84
84
|
function logStartInfo({ networkUrl, appUrl, envInfo, logBundler }) {
|
|
85
85
|
const versionSuffix = logBundler ? ` (${(0, _bundler.bundlerName)((0, _bundler.getBundlerFromEnv)())})` : '';
|
|
86
|
-
_log.bootstrap(`${(0, _picocolors.bold)((0, _picocolors.purple)(`${_log.prefixes.ready} Next.js ${"16.4.
|
|
86
|
+
_log.bootstrap(`${(0, _picocolors.bold)((0, _picocolors.purple)(`${_log.prefixes.ready} Next.js ${"16.4.3"}`))}${versionSuffix}`);
|
|
87
87
|
if (appUrl) {
|
|
88
88
|
_log.bootstrap(`- Local: ${appUrl}`);
|
|
89
89
|
}
|
|
@@ -10,50 +10,8 @@ Object.defineProperty(exports, "createDedupeFetch", {
|
|
|
10
10
|
return createDedupeFetch;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
14
13
|
const _cloneresponse = require("./clone-response");
|
|
15
14
|
const _invarianterror = require("../../shared/lib/invariant-error");
|
|
16
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
17
|
-
if (typeof WeakMap !== "function") return null;
|
|
18
|
-
var cacheBabelInterop = new WeakMap();
|
|
19
|
-
var cacheNodeInterop = new WeakMap();
|
|
20
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
21
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
22
|
-
})(nodeInterop);
|
|
23
|
-
}
|
|
24
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
25
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
26
|
-
return obj;
|
|
27
|
-
}
|
|
28
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
29
|
-
return {
|
|
30
|
-
default: obj
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
34
|
-
if (cache && cache.has(obj)) {
|
|
35
|
-
return cache.get(obj);
|
|
36
|
-
}
|
|
37
|
-
var newObj = {
|
|
38
|
-
__proto__: null
|
|
39
|
-
};
|
|
40
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
41
|
-
for(var key in obj){
|
|
42
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
43
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
44
|
-
if (desc && (desc.get || desc.set)) {
|
|
45
|
-
Object.defineProperty(newObj, key, desc);
|
|
46
|
-
} else {
|
|
47
|
-
newObj[key] = obj[key];
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
newObj.default = obj;
|
|
52
|
-
if (cache) {
|
|
53
|
-
cache.set(obj, newObj);
|
|
54
|
-
}
|
|
55
|
-
return newObj;
|
|
56
|
-
}
|
|
57
15
|
const simpleCacheKey = '["GET",[],null,"follow",null,null,null,null]' // generateCacheKey(new Request('https://blank'));
|
|
58
16
|
;
|
|
59
17
|
// Headers that should not affect deduplication
|
|
@@ -82,7 +40,10 @@ function generateCacheKey(request) {
|
|
|
82
40
|
]);
|
|
83
41
|
}
|
|
84
42
|
function createDedupeFetch(originalFetch) {
|
|
85
|
-
|
|
43
|
+
// Importing the helper alone must not load the app-page runtime through
|
|
44
|
+
// the App Router's vendored React. Keep the same React instance when used.
|
|
45
|
+
const React = require('react');
|
|
46
|
+
const getCacheEntries = React.cache(// eslint-disable-next-line @typescript-eslint/no-unused-vars -- url is the cache key
|
|
86
47
|
(url)=>[]);
|
|
87
48
|
return function dedupeFetch(resource, options) {
|
|
88
49
|
if (options && options.signal) {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "NEXT_PATCH_SYMBOL", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return NEXT_PATCH_SYMBOL;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const NEXT_PATCH_SYMBOL = Symbol.for('next-patch');
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=patch-fetch-symbol.js.map
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
5
|
0 && (module.exports = {
|
|
6
|
-
NEXT_PATCH_SYMBOL: null,
|
|
7
6
|
createPatchedFetcher: null,
|
|
8
7
|
patchFetch: null,
|
|
9
8
|
validateRevalidate: null,
|
|
@@ -16,9 +15,6 @@ function _export(target, all) {
|
|
|
16
15
|
});
|
|
17
16
|
}
|
|
18
17
|
_export(exports, {
|
|
19
|
-
NEXT_PATCH_SYMBOL: function() {
|
|
20
|
-
return NEXT_PATCH_SYMBOL;
|
|
21
|
-
},
|
|
22
18
|
createPatchedFetcher: function() {
|
|
23
19
|
return createPatchedFetcher;
|
|
24
20
|
},
|
|
@@ -40,6 +36,7 @@ const _constants1 = require("../../lib/constants");
|
|
|
40
36
|
const _dynamicrendering = require("../app-render/dynamic-rendering");
|
|
41
37
|
const _dynamicrenderingutils = require("../dynamic-rendering-utils");
|
|
42
38
|
const _dedupefetch = require("./dedupe-fetch");
|
|
39
|
+
const _patchfetchsymbol = require("./patch-fetch-symbol");
|
|
43
40
|
const _workunitasyncstorageexternal = require("../app-render/work-unit-async-storage.external");
|
|
44
41
|
const _responsecache = require("../response-cache");
|
|
45
42
|
const _cloneresponse = require("./clone-response");
|
|
@@ -74,9 +71,8 @@ const isEdgeRuntime = process.env.NEXT_RUNTIME === 'edge';
|
|
|
74
71
|
return workUnitStore;
|
|
75
72
|
}
|
|
76
73
|
}
|
|
77
|
-
const NEXT_PATCH_SYMBOL = Symbol.for('next-patch');
|
|
78
74
|
function isFetchPatched() {
|
|
79
|
-
return globalThis[NEXT_PATCH_SYMBOL] === true;
|
|
75
|
+
return globalThis[_patchfetchsymbol.NEXT_PATCH_SYMBOL] === true;
|
|
80
76
|
}
|
|
81
77
|
function validateRevalidate(revalidateVal, route) {
|
|
82
78
|
try {
|
|
@@ -999,7 +995,7 @@ function createPatchedFetcher(originFetch, { workAsyncStorage, workUnitAsyncStor
|
|
|
999
995
|
patched.__nextPatched = true;
|
|
1000
996
|
patched.__nextGetStaticStore = ()=>workAsyncStorage;
|
|
1001
997
|
patched._nextOriginalFetch = originFetch;
|
|
1002
|
-
globalThis[NEXT_PATCH_SYMBOL] = true;
|
|
998
|
+
globalThis[_patchfetchsymbol.NEXT_PATCH_SYMBOL] = true;
|
|
1003
999
|
// Assign the function name also as a name property, so that it's preserved
|
|
1004
1000
|
// even when mangling is enabled.
|
|
1005
1001
|
Object.defineProperty(patched, 'name', {
|
|
@@ -45,7 +45,7 @@ const _detectdomainlocale = require("../../shared/lib/i18n/detect-domain-locale"
|
|
|
45
45
|
const _mockrequest = require("./mock-request");
|
|
46
46
|
const _hotreloadertypes = require("../dev/hot-reloader-types");
|
|
47
47
|
const _normalizedassetprefix = require("../../shared/lib/normalized-asset-prefix");
|
|
48
|
-
const
|
|
48
|
+
const _patchfetchsymbol = require("./patch-fetch-symbol");
|
|
49
49
|
const _utils1 = require("./server-ipc/utils");
|
|
50
50
|
const _blockcrosssitedev = require("./router-utils/block-cross-site-dev");
|
|
51
51
|
const _shared = require("../../trace/shared");
|
|
@@ -164,7 +164,7 @@ async function initialize(opts) {
|
|
|
164
164
|
const { setupDevBundler } = require('./router-utils/setup-dev-bundler');
|
|
165
165
|
const resetFetch = ()=>{
|
|
166
166
|
globalThis.fetch = originalFetch;
|
|
167
|
-
globalThis[
|
|
167
|
+
globalThis[_patchfetchsymbol.NEXT_PATCH_SYMBOL] = false;
|
|
168
168
|
};
|
|
169
169
|
const setupDevBundlerSpan = opts.startServerSpan ? opts.startServerSpan.traceChild('setup-dev-bundler') : (0, _trace.trace)('setup-dev-bundler');
|
|
170
170
|
// In development, it's always the complete config.
|
|
@@ -173,7 +173,7 @@ async function initialize(opts) {
|
|
|
173
173
|
if (developmentConfig.experimental.agentUpgrade === 'security' || developmentConfig.experimental.agentUpgrade === 'latest' || developmentConfig.experimental.agentUpgrade === 'experimental-future' || process.env.__NEXT_AGENT_UPGRADE || process.env.__NEXT_AGENT_UPGRADE_FORCE_DEVTOOLS_FOR_TESTING === '1') {
|
|
174
174
|
const { nudgeUpgrade, getUpgradeContext, assessUpgrade } = require('../../lib/upgrade/nudge');
|
|
175
175
|
const upgradeContext = getUpgradeContext(developmentConfig);
|
|
176
|
-
const installedVersion = "16.4.
|
|
176
|
+
const installedVersion = "16.4.3" || 'unknown';
|
|
177
177
|
const policy = upgradeContext.experimental.agentUpgrade;
|
|
178
178
|
const forced = process.env.__NEXT_AGENT_UPGRADE === policy;
|
|
179
179
|
const forceDevToolsForTesting = process.env.__NEXT_AGENT_UPGRADE_FORCE_DEVTOOLS_FOR_TESTING === '1';
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
0 && (module.exports = {
|
|
6
6
|
ensureInstrumentationRegistered: null,
|
|
7
|
+
ensureInstrumentationRegisteredWithDeferredSpans: null,
|
|
7
8
|
getInstrumentationModule: null,
|
|
8
9
|
instrumentationOnRequestError: null
|
|
9
10
|
});
|
|
@@ -17,6 +18,9 @@ _export(exports, {
|
|
|
17
18
|
ensureInstrumentationRegistered: function() {
|
|
18
19
|
return ensureInstrumentationRegistered;
|
|
19
20
|
},
|
|
21
|
+
ensureInstrumentationRegisteredWithDeferredSpans: function() {
|
|
22
|
+
return ensureInstrumentationRegisteredWithDeferredSpans;
|
|
23
|
+
},
|
|
20
24
|
getInstrumentationModule: function() {
|
|
21
25
|
return getInstrumentationModule;
|
|
22
26
|
},
|
|
@@ -42,7 +46,7 @@ function getInstrumentationTimestamp() {
|
|
|
42
46
|
// Date.now() is treated as synchronous I/O while Cache Components render.
|
|
43
47
|
return performance.timeOrigin + performance.now();
|
|
44
48
|
}
|
|
45
|
-
function traceBackdatedInstrumentationSpan(type, spanName, { startTime, endTime, error }) {
|
|
49
|
+
function traceBackdatedInstrumentationSpan({ type, spanName, timing: { startTime, endTime, error } }) {
|
|
46
50
|
(0, _tracer.getTracer)().trace(type, {
|
|
47
51
|
spanName,
|
|
48
52
|
startTime,
|
|
@@ -58,11 +62,24 @@ function traceBackdatedInstrumentationSpan(type, spanName, { startTime, endTime,
|
|
|
58
62
|
});
|
|
59
63
|
});
|
|
60
64
|
}
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
/**
|
|
66
|
+
* Takes the recorded timing of loading the instrumentation module, if not
|
|
67
|
+
* emitted yet, as a lifecycle span.
|
|
68
|
+
*/ function takeInstrumentationModuleLoadSpan() {
|
|
69
|
+
if (!instrumentationModuleLoadTiming) return undefined;
|
|
63
70
|
const timing = instrumentationModuleLoadTiming;
|
|
64
71
|
instrumentationModuleLoadTiming = undefined;
|
|
65
|
-
|
|
72
|
+
return {
|
|
73
|
+
type: _constants1.InstrumentationSpan.loadModule,
|
|
74
|
+
spanName: 'load instrumentation module',
|
|
75
|
+
timing
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function traceInstrumentationModuleLoad() {
|
|
79
|
+
const span = takeInstrumentationModuleLoadSpan();
|
|
80
|
+
if (span) {
|
|
81
|
+
traceBackdatedInstrumentationSpan(span);
|
|
82
|
+
}
|
|
66
83
|
}
|
|
67
84
|
async function getInstrumentationModule(projectDir, distDir) {
|
|
68
85
|
if (cachedInstrumentationModule) {
|
|
@@ -87,7 +104,17 @@ async function getInstrumentationModule(projectDir, distDir) {
|
|
|
87
104
|
}
|
|
88
105
|
}
|
|
89
106
|
let instrumentationModulePromise = null;
|
|
90
|
-
|
|
107
|
+
/**
|
|
108
|
+
* Loads `instrumentation.ts` and calls its `register()`.
|
|
109
|
+
*
|
|
110
|
+
* Its lifecycle spans (`load instrumentation module`, `register
|
|
111
|
+
* instrumentation`) are backdated and emitted afterwards, since `register()`
|
|
112
|
+
* commonly installs the tracer provider. They are emitted right away in the
|
|
113
|
+
* active context, unless `deferredSpans` is given: then successfully completed
|
|
114
|
+
* steps are added to it instead, for the caller to emit in another context
|
|
115
|
+
* (the request that triggered registration). Failed steps are always emitted
|
|
116
|
+
* right away.
|
|
117
|
+
*/ async function registerInstrumentation(projectDir, distDir, deferredSpans) {
|
|
91
118
|
// Ensure registerInstrumentation is not called in production build
|
|
92
119
|
if (process.env.NEXT_PHASE === 'phase-production-build') {
|
|
93
120
|
return;
|
|
@@ -106,9 +133,11 @@ async function registerInstrumentation(projectDir, distDir) {
|
|
|
106
133
|
if (instrumentation == null ? void 0 : instrumentation.register) {
|
|
107
134
|
const startTime = getInstrumentationTimestamp();
|
|
108
135
|
let error;
|
|
136
|
+
let registered = false;
|
|
109
137
|
try {
|
|
110
138
|
await instrumentation.register();
|
|
111
139
|
(0, _instrumentationnodeextensions.afterRegistration)();
|
|
140
|
+
registered = true;
|
|
112
141
|
} catch (err) {
|
|
113
142
|
error = err;
|
|
114
143
|
err.message = `An error occurred while loading instrumentation hook: ${err.message}`;
|
|
@@ -117,15 +146,35 @@ async function registerInstrumentation(projectDir, distDir) {
|
|
|
117
146
|
const endTime = getInstrumentationTimestamp();
|
|
118
147
|
// register() commonly installs the provider, so emit both lifecycle
|
|
119
148
|
// spans afterward with their original timestamps.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
149
|
+
const spans = [
|
|
150
|
+
takeInstrumentationModuleLoadSpan(),
|
|
151
|
+
{
|
|
152
|
+
type: _constants1.InstrumentationSpan.register,
|
|
153
|
+
spanName: 'register instrumentation',
|
|
154
|
+
timing: {
|
|
155
|
+
startTime,
|
|
156
|
+
endTime,
|
|
157
|
+
error
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
].filter((span)=>span !== undefined);
|
|
161
|
+
// Only defer after a successful registration: a failing request has no
|
|
162
|
+
// request span to emit them in.
|
|
163
|
+
if (deferredSpans && registered) {
|
|
164
|
+
deferredSpans.push(...spans);
|
|
165
|
+
} else {
|
|
166
|
+
spans.forEach(traceBackdatedInstrumentationSpan);
|
|
167
|
+
}
|
|
126
168
|
}
|
|
127
169
|
} else {
|
|
128
|
-
|
|
170
|
+
const span = takeInstrumentationModuleLoadSpan();
|
|
171
|
+
if (span) {
|
|
172
|
+
if (deferredSpans) {
|
|
173
|
+
deferredSpans.push(span);
|
|
174
|
+
} else {
|
|
175
|
+
traceBackdatedInstrumentationSpan(span);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
129
178
|
}
|
|
130
179
|
}
|
|
131
180
|
async function instrumentationOnRequestError(projectDir, distDir, ...args) {
|
|
@@ -145,5 +194,21 @@ function ensureInstrumentationRegistered(projectDir, distDir) {
|
|
|
145
194
|
}
|
|
146
195
|
return registerInstrumentationPromise;
|
|
147
196
|
}
|
|
197
|
+
async function ensureInstrumentationRegisteredWithDeferredSpans(projectDir, distDir) {
|
|
198
|
+
if (registerInstrumentationPromise) {
|
|
199
|
+
await registerInstrumentationPromise;
|
|
200
|
+
return undefined;
|
|
201
|
+
}
|
|
202
|
+
const deferredSpans = [];
|
|
203
|
+
registerInstrumentationPromise = registerInstrumentation(projectDir, distDir, deferredSpans);
|
|
204
|
+
await registerInstrumentationPromise;
|
|
205
|
+
if (deferredSpans.length === 0) {
|
|
206
|
+
return undefined;
|
|
207
|
+
}
|
|
208
|
+
return ()=>{
|
|
209
|
+
// Emit at most once.
|
|
210
|
+
deferredSpans.splice(0).forEach(traceBackdatedInstrumentationSpan);
|
|
211
|
+
};
|
|
212
|
+
}
|
|
148
213
|
|
|
149
214
|
//# sourceMappingURL=instrumentation-globals.external.js.map
|
|
@@ -174,7 +174,7 @@ async function getRequestHandlers({ dir, port, isDev, onDevServerCleanup, server
|
|
|
174
174
|
async function startServer(serverOptions) {
|
|
175
175
|
const { dir, isDev, hostname, minimalMode, allowRetry, keepAliveTimeout, selfSignedCertificate, serverFastRefresh } = serverOptions;
|
|
176
176
|
let { port } = serverOptions;
|
|
177
|
-
process.title = `next-server (v${"16.4.
|
|
177
|
+
process.title = `next-server (v${"16.4.3"})`;
|
|
178
178
|
let handlersReady = ()=>{};
|
|
179
179
|
let handlersError = ()=>{};
|
|
180
180
|
let handlersPromise = new Promise((resolve, reject)=>{
|
|
@@ -20,6 +20,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
20
20
|
MiddlewareSpan: null,
|
|
21
21
|
NextNodeServerSpan: null,
|
|
22
22
|
NextServerSpan: null,
|
|
23
|
+
NextSpan: null,
|
|
23
24
|
NextVanillaSpanAllowlist: null,
|
|
24
25
|
NodeSpan: null,
|
|
25
26
|
RenderSpan: null,
|
|
@@ -68,6 +69,9 @@ _export(exports, {
|
|
|
68
69
|
NextServerSpan: function() {
|
|
69
70
|
return NextServerSpan;
|
|
70
71
|
},
|
|
72
|
+
NextSpan: function() {
|
|
73
|
+
return NextSpan;
|
|
74
|
+
},
|
|
71
75
|
NextVanillaSpanAllowlist: function() {
|
|
72
76
|
return NextVanillaSpanAllowlist;
|
|
73
77
|
},
|
|
@@ -216,8 +220,16 @@ var MiddlewareSpan = /*#__PURE__*/ function(MiddlewareSpan) {
|
|
|
216
220
|
MiddlewareSpan["execute"] = "Middleware.execute";
|
|
217
221
|
return MiddlewareSpan;
|
|
218
222
|
}(MiddlewareSpan || {});
|
|
223
|
+
var NextSpan = /*#__PURE__*/ function(NextSpan) {
|
|
224
|
+
// Root span inserted by the middleware adapter when the request has no
|
|
225
|
+
// trace context (separately invoked middleware without a parent), so the
|
|
226
|
+
// middleware and the render are siblings in one trace.
|
|
227
|
+
NextSpan["request"] = "Next.request";
|
|
228
|
+
return NextSpan;
|
|
229
|
+
}(NextSpan || {});
|
|
219
230
|
const NextVanillaSpanAllowlist = new Set([
|
|
220
231
|
"Middleware.execute",
|
|
232
|
+
"Next.request",
|
|
221
233
|
"BaseServer.handleRequest",
|
|
222
234
|
"Render.getServerSideProps",
|
|
223
235
|
"Render.getStaticProps",
|
|
@@ -7,7 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
SpanKind: null,
|
|
8
8
|
SpanStatusCode: null,
|
|
9
9
|
getTracer: null,
|
|
10
|
-
isBubbledError: null
|
|
10
|
+
isBubbledError: null,
|
|
11
|
+
recordSpanError: null
|
|
11
12
|
});
|
|
12
13
|
function _export(target, all) {
|
|
13
14
|
for(var name in all)Object.defineProperty(target, name, {
|
|
@@ -30,6 +31,9 @@ _export(exports, {
|
|
|
30
31
|
},
|
|
31
32
|
isBubbledError: function() {
|
|
32
33
|
return isBubbledError;
|
|
34
|
+
},
|
|
35
|
+
recordSpanError: function() {
|
|
36
|
+
return recordSpanError;
|
|
33
37
|
}
|
|
34
38
|
});
|
|
35
39
|
const _constants = require("./constants");
|
|
@@ -70,7 +74,7 @@ function isBubbledError(error) {
|
|
|
70
74
|
if (typeof error !== 'object' || error === null) return false;
|
|
71
75
|
return error instanceof BubbledError;
|
|
72
76
|
}
|
|
73
|
-
const
|
|
77
|
+
const recordSpanError = (span, error)=>{
|
|
74
78
|
if (isBubbledError(error) && error.bubble) {
|
|
75
79
|
span.setAttribute('next.bubble', true);
|
|
76
80
|
} else {
|
|
@@ -83,6 +87,9 @@ const closeSpanWithError = (span, error, endTime)=>{
|
|
|
83
87
|
message: error == null ? void 0 : error.message
|
|
84
88
|
});
|
|
85
89
|
}
|
|
90
|
+
};
|
|
91
|
+
const closeSpanWithError = (span, error, endTime)=>{
|
|
92
|
+
recordSpanError(span, error);
|
|
86
93
|
span.end(endTime);
|
|
87
94
|
};
|
|
88
95
|
/** we use this map to propagate attributes from nested spans to the top span */ const rootSpanAttributesStore = new Map();
|
|
@@ -103,7 +110,7 @@ class NextTracerImpl {
|
|
|
103
110
|
* Since wrap / trace can be defined in any place prior to actual trace subscriber initialization,
|
|
104
111
|
* This should be lazily evaluated.
|
|
105
112
|
*/ getTracerInstance() {
|
|
106
|
-
return trace.getTracer('next.js', "16.4.
|
|
113
|
+
return trace.getTracer('next.js', "16.4.3");
|
|
107
114
|
}
|
|
108
115
|
isOpenTelemetryEnabled() {
|
|
109
116
|
var _tracerProvider_getDelegate_constructor, _tracerProvider_getDelegate;
|
|
@@ -126,6 +133,26 @@ class NextTracerImpl {
|
|
|
126
133
|
propagation.inject(activeContext, entries, clientTraceDataSetter);
|
|
127
134
|
return entries;
|
|
128
135
|
}
|
|
136
|
+
getTraceContextHeaders() {
|
|
137
|
+
const activeContext = context.active();
|
|
138
|
+
if (!trace.getSpanContext(activeContext) || !this.isOpenTelemetryEnabled()) {
|
|
139
|
+
return undefined;
|
|
140
|
+
}
|
|
141
|
+
const carrier = {};
|
|
142
|
+
propagation.inject(activeContext, carrier);
|
|
143
|
+
const { traceparent, tracestate } = carrier;
|
|
144
|
+
if (!traceparent) {
|
|
145
|
+
return undefined;
|
|
146
|
+
}
|
|
147
|
+
return {
|
|
148
|
+
traceparent,
|
|
149
|
+
tracestate
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
hasActiveSpanContext() {
|
|
153
|
+
const spanContext = trace.getSpanContext(context.active());
|
|
154
|
+
return Boolean(spanContext && trace.isSpanContextValid(spanContext));
|
|
155
|
+
}
|
|
129
156
|
getActiveScopeSpan() {
|
|
130
157
|
const localSpanRecorder = getLocalSpanRecorder();
|
|
131
158
|
const activeLocalSpan = localSpanRecorder == null ? void 0 : localSpanRecorder.getActiveLocalSpan();
|
|
@@ -138,17 +165,6 @@ class NextTracerImpl {
|
|
|
138
165
|
}
|
|
139
166
|
return activeLocalSpan;
|
|
140
167
|
}
|
|
141
|
-
/**
|
|
142
|
-
* Run `fn` with the active span cleared, so spans created inside become new
|
|
143
|
-
* roots (or parent to incoming propagated context). Used for in-process
|
|
144
|
-
* Node.js middleware so its span is a sibling of the request span, matching
|
|
145
|
-
* edge middleware which runs in a detached sandbox.
|
|
146
|
-
*/ runWithDetachedContext(fn) {
|
|
147
|
-
if (!NEXT_OTEL_PERFORMANCE_PREFIX && !this.isOpenTelemetryEnabled()) {
|
|
148
|
-
return fn();
|
|
149
|
-
}
|
|
150
|
-
return context.with(ROOT_CONTEXT, fn);
|
|
151
|
-
}
|
|
152
168
|
withPropagatedContext(carrier, fn, getter, force = false) {
|
|
153
169
|
const activeContext = context.active();
|
|
154
170
|
if (!NEXT_OTEL_PERFORMANCE_PREFIX && !this.isOpenTelemetryEnabled() && !trace.getSpanContext(activeContext)) {
|
|
@@ -1215,17 +1215,16 @@ class NextNodeServer extends _baseserver.default {
|
|
|
1215
1215
|
].includes(params.request.method) && Boolean(requestData.body);
|
|
1216
1216
|
try {
|
|
1217
1217
|
// Node.js middleware runs in-process, inside the active
|
|
1218
|
-
// `handleRequest` span
|
|
1219
|
-
//
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
}));
|
|
1218
|
+
// `handleRequest` span, so the middleware span (and the trace context
|
|
1219
|
+
// it forwards to the render) stays in the request's trace.
|
|
1220
|
+
result = await adapterFn({
|
|
1221
|
+
handler: middlewareModule.proxy || middlewareModule.middleware || middlewareModule,
|
|
1222
|
+
request: {
|
|
1223
|
+
...requestData,
|
|
1224
|
+
body: hasRequestBody ? requestData.body.cloneBodyStream() : undefined
|
|
1225
|
+
},
|
|
1226
|
+
page: 'middleware'
|
|
1227
|
+
});
|
|
1229
1228
|
} finally{
|
|
1230
1229
|
if (hasRequestBody) {
|
|
1231
1230
|
await requestData.body.finalize();
|