failproofai 1.0.0-beta.12 → 1.0.0-beta.13
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 +3 -3
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/required-server-files.json +1 -1
- 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 -3
- 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 +7 -7
- 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 +7 -7
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- 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 +2 -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 +15 -15
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +15 -15
- package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +10 -10
- 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/_not-found.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/api/audit/invite/route.js +2 -2
- 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 +2 -2
- 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.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/login-request/route.js +3 -2
- 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 +2 -2
- 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 +2 -2
- package/.next/standalone/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/reminder/route.js +2 -2
- package/.next/standalone/.next/server/app/api/auth/reminder/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/status/route.js +2 -2
- 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.nft.json +1 -1
- package/.next/standalone/.next/server/app/audit/page/server-reference-manifest.json +2 -2
- package/.next/standalone/.next/server/app/audit/page.js +2 -3
- 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 +15 -15
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +15 -15
- package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +10 -10
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/page.js +2 -3
- 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/server-reference-manifest.json +10 -10
- package/.next/standalone/.next/server/app/policies/page.js +2 -3
- 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/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page.js +3 -4
- 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/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 +3 -4
- 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/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/projects/page.js +3 -4
- 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/server-reference-manifest.json +4 -4
- package/.next/standalone/.next/server/app/settings/page.js +2 -3
- 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/{[root-of-the-server]__1a7i2q4._.js → [root-of-the-server]__00ni9za._.js} +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__08y94xv._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__094p1f1._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0_0xu5z._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0ed01_d._.js +1 -1
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__1_ps0jw._.js → [root-of-the-server]__0effm9m._.js} +1 -1
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0lk_935._.js → [root-of-the-server]__0ix8gm7._.js} +1 -1
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0ky_n0r._.js → [root-of-the-server]__0ji11a-._.js} +1 -1
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0v2fpxe._.js → [root-of-the-server]__0ojwjxl._.js} +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0vb5fl2._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1ibjy5x._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1tvn4wf._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1uyc-z4._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__20d06rh._.js +3 -0
- package/.next/standalone/.next/server/chunks/_0lxbzdq._.js +1 -3
- package/.next/standalone/.next/server/chunks/_1zuiiy3._.js +1 -3
- package/.next/standalone/.next/server/chunks/package_json_[json]_cjs_1nxcc4v._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1rdruw4._.js → [root-of-the-server]__0_1tiya._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0ha3gul._.js → [root-of-the-server]__0eeipso._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0spkm68._.js +3 -3
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1tyf0tc._.js → [root-of-the-server]__17itmx-._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1io8n-9._.js → [root-of-the-server]__1dx-a-c._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1mmefsr._.js +5 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1yw368c._.js → [root-of-the-server]__1n2vcv4._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1rv-sc9._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1a2hcb_._.js → [root-of-the-server]__1tlvv9a._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0rjgfln._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{_1fahg9e._.js → _0vo2qyt._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{_0uz7o9y._.js → _0xej-0e._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{_04mekdy._.js → _10399ge._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{_0se484m._.js → _149k9oy._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{_1vsgpqt._.js → _166jvu8._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{_0r-dsre._.js → _1_hwp06._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{_1w8sola._.js → _1mnhi_r._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{_1w_6p9g._.js → _1ror7k9._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{_1gmzkwj._.js → _1sdgprl._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_audit__components_audit-dashboard_tsx_0p9ud47._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_global-error_tsx_1kp6l3x._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_policies_hooks-client_tsx_19dqvpc._.js +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
- 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/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +15 -15
- package/.next/standalone/.next/static/chunks/{2_h--2ame3r83.js → 01s3vpzky_qew.js} +1 -1
- package/.next/standalone/.next/static/chunks/0km-jn9o5xyqs.css +2 -0
- package/.next/standalone/.next/static/chunks/{23hp7hekegpe5.js → 0zbcd_n8ku2ov.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0cakk77ppmlo7.js → 1erji0ratofla.js} +1 -1
- package/.next/standalone/.next/static/chunks/{40-zk44qsg5y-.js → 23hnlzqx44vbe.js} +1 -1
- package/.next/standalone/.next/static/chunks/{1wb8cnmzx69rz.js → 2cwsiyhc7d2cw.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0_rdbv_k5j51p.js → 2y42ebzynyxdv.js} +1 -1
- package/.next/standalone/.next/static/chunks/{1spk1bub0vd-h.js → 315lncj7dsp9c.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0-zh1umoq6ppc.js → 31_px0dfgdg9j.js} +2 -2
- package/.next/standalone/.next/static/chunks/{2bie7ajv70p9b.js → 3l4-fu3xt75j8.js} +1 -1
- package/.next/standalone/.next/static/chunks/{298v78ypf8edl.js → 3poscoxn69x9g.js} +1 -1
- package/.next/standalone/app/policies/hooks-client.tsx +4 -4
- package/.next/standalone/ino.ujh3/.failproofai/VERSION +4 -0
- package/.next/standalone/ino.ujh3/.failproofai/state/last-version +1 -0
- package/.next/standalone/ino.ujh3/.failproofai/state/telemetry-id +1 -0
- package/.next/standalone/package.json +10 -10
- package/.next/standalone/server.js +1 -1
- package/bin/failproofai.mjs +186 -5
- package/dist/cli.mjs +1130 -1352
- package/dist/worker.mjs +107 -1000
- package/package.json +10 -10
- package/src/hooks/backfill-cli.ts +1 -1
- package/src/hooks/cloud-connection.ts +4 -4
- package/src/hooks/cloud-enrollment-cli.ts +1 -1
- package/src/hooks/cloud-enrollment.ts +3 -3
- package/src/hooks/cloud-managed-policies.ts +60 -22
- package/src/hooks/configure-wizard.ts +124 -53
- package/src/hooks/custom-hooks-loader.ts +57 -8
- package/src/hooks/daemon-service.ts +66 -11
- package/src/hooks/flush-cli.ts +180 -0
- package/src/hooks/fp-config.ts +242 -118
- package/src/hooks/fp-home.ts +138 -22
- package/src/hooks/fp-reset.ts +357 -43
- package/src/hooks/handler.ts +11 -11
- package/src/hooks/harness-cli.ts +309 -0
- package/src/hooks/hook-activity-store.ts +5 -5
- package/src/hooks/manager.ts +35 -0
- package/src/hooks/onboarding-attempt.ts +22 -6
- package/src/hooks/tui.ts +64 -7
- package/src/hooks/uninstall-cli.ts +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__06hexd0._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1iny24d._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1tyedjt._.js +0 -3
- package/.next/standalone/.next/server/chunks/lib_telemetry_ts_0dctyyw._.js +0 -5
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1u-wx42._.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/src_hooks_fp-config_ts_04t589g._.js +0 -5
- package/.next/standalone/.next/static/chunks/13vrxdsdihqd_.css +0 -2
- /package/.next/standalone/.next/static/{-3gDrXYxNRTVwrFnqXAWd → ziAsXfNE0cH_S7LHK-Py3}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{-3gDrXYxNRTVwrFnqXAWd → ziAsXfNE0cH_S7LHK-Py3}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{-3gDrXYxNRTVwrFnqXAWd → ziAsXfNE0cH_S7LHK-Py3}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
globalThis.__RSC_MANIFEST = globalThis.__RSC_MANIFEST || {};
|
|
2
|
-
globalThis.__RSC_MANIFEST["/settings/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":39756,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":39756,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":37457,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":37457,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":47257,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":47257,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":92825,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":68017,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":68017,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":97367,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":97367,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":27201,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/contexts/PostHogContext.tsx <module evaluation>":{"id":12344,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/contexts/PostHogContext.tsx":{"id":12344,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/app/components/global-error-listeners.tsx <module evaluation>":{"id":97917,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/app/components/global-error-listeners.tsx":{"id":97917,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/contexts/AutoRefreshContext.tsx <module evaluation>":{"id":85881,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/contexts/AutoRefreshContext.tsx":{"id":85881,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/components/navbar.tsx <module evaluation>":{"id":63780,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/components/navbar.tsx":{"id":63780,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/app/components/toast.tsx <module evaluation>":{"id":55574,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/app/components/toast.tsx":{"id":55574,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/app/error.tsx <module evaluation>":{"id":8821,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js","/_next/static/chunks/3xpjn3cdgm-7m.js"],"async":false},"[project]/app/error.tsx":{"id":8821,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js","/_next/static/chunks/3xpjn3cdgm-7m.js"],"async":false},"[project]/app/global-error.tsx <module evaluation>":{"id":53348,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js","/_next/static/chunks/2_h--2ame3r83.js"],"async":false},"[project]/app/global-error.tsx":{"id":53348,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js","/_next/static/chunks/2_h--2ame3r83.js"],"async":false},"[project]/app/settings/settings-client.tsx <module evaluation>":{"id":93237,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js","/_next/static/chunks/23hp7hekegpe5.js"],"async":false},"[project]/app/settings/settings-client.tsx":{"id":93237,"name":"*","chunks":["/_next/static/chunks/0_rdbv_k5j51p.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js","/_next/static/chunks/23hp7hekegpe5.js"],"async":false}},"ssrModuleMapping":{"39756":{"*":{"id":2420,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0ha3gul._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"37457":{"*":{"id":24017,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0ha3gul._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"47257":{"*":{"id":77682,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0ha3gul._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"92825":{"*":{"id":97296,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0ha3gul._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"68017":{"*":{"id":61660,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0ha3gul._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"97367":{"*":{"id":90574,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0ha3gul._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"27201":{"*":{"id":60704,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0ha3gul._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"12344":{"*":{"id":10765,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0ha3gul._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"97917":{"*":{"id":45550,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0ha3gul._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"85881":{"*":{"id":6236,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0ha3gul._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"63780":{"*":{"id":10815,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0ha3gul._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"55574":{"*":{"id":18952,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0ha3gul._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"8821":{"*":{"id":78141,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0ha3gul._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js","server/chunks/ssr/app_209u41o._.js"],"async":false}},"53348":{"*":{"id":3171,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0ha3gul._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js","server/chunks/ssr/app_global-error_tsx_1kp6l3x._.js"],"async":false}},"93237":{"*":{"id":41857,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0ha3gul._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js","server/chunks/ssr/_0rjgfln._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"39756":{"*":{"id":26768,"name":"*","chunks":[],"async":false}},"37457":{"*":{"id":17910,"name":"*","chunks":[],"async":false}},"47257":{"*":{"id":92977,"name":"*","chunks":[],"async":false}},"92825":{"*":{"id":48552,"name":"*","chunks":[],"async":false}},"68017":{"*":{"id":83919,"name":"*","chunks":[],"async":false}},"97367":{"*":{"id":24150,"name":"*","chunks":[],"async":false}},"27201":{"*":{"id":40771,"name":"*","chunks":[],"async":false}},"12344":{"*":{"id":92036,"name":"*","chunks":[],"async":false}},"97917":{"*":{"id":16336,"name":"*","chunks":[],"async":false}},"85881":{"*":{"id":54950,"name":"*","chunks":[],"async":false}},"63780":{"*":{"id":42976,"name":"*","chunks":[],"async":false}},"55574":{"*":{"id":33711,"name":"*","chunks":[],"async":false}},"8821":{"*":{"id":50757,"name":"*","chunks":[],"async":false}},"53348":{"*":{"id":53128,"name":"*","chunks":[],"async":false}},"93237":{"*":{"id":30575,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/app/layout":[{"path":"static/chunks/13vrxdsdihqd_.css","inlined":false}],"[project]/app/error":[{"path":"static/chunks/13vrxdsdihqd_.css","inlined":false}],"[project]/app/global-error":[{"path":"static/chunks/13vrxdsdihqd_.css","inlined":false}],"[project]/app/settings/page":[{"path":"static/chunks/13vrxdsdihqd_.css","inlined":false}]},"entryJSFiles":{"[project]/app/layout":["static/chunks/0_rdbv_k5j51p.js","static/chunks/16p68cybetr31.js","static/chunks/0wwt5o04i4zwh.js"],"[project]/app/error":["static/chunks/0_rdbv_k5j51p.js","static/chunks/16p68cybetr31.js","static/chunks/0wwt5o04i4zwh.js","static/chunks/3xpjn3cdgm-7m.js"],"[project]/app/global-error":["static/chunks/0_rdbv_k5j51p.js","static/chunks/16p68cybetr31.js","static/chunks/0wwt5o04i4zwh.js","static/chunks/2_h--2ame3r83.js"],"[project]/app/settings/page":["static/chunks/0_rdbv_k5j51p.js","static/chunks/16p68cybetr31.js","static/chunks/0wwt5o04i4zwh.js","static/chunks/23hp7hekegpe5.js"]}};
|
|
2
|
+
globalThis.__RSC_MANIFEST["/settings/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":39756,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":39756,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":37457,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":37457,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":47257,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":47257,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":92825,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":68017,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":68017,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":97367,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":97367,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":27201,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/contexts/PostHogContext.tsx <module evaluation>":{"id":12344,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/contexts/PostHogContext.tsx":{"id":12344,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/app/components/global-error-listeners.tsx <module evaluation>":{"id":97917,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/app/components/global-error-listeners.tsx":{"id":97917,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/contexts/AutoRefreshContext.tsx <module evaluation>":{"id":85881,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/contexts/AutoRefreshContext.tsx":{"id":85881,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/components/navbar.tsx <module evaluation>":{"id":63780,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/components/navbar.tsx":{"id":63780,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/app/components/toast.tsx <module evaluation>":{"id":55574,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/app/components/toast.tsx":{"id":55574,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js"],"async":false},"[project]/app/error.tsx <module evaluation>":{"id":8821,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js","/_next/static/chunks/3xpjn3cdgm-7m.js"],"async":false},"[project]/app/error.tsx":{"id":8821,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js","/_next/static/chunks/3xpjn3cdgm-7m.js"],"async":false},"[project]/app/global-error.tsx <module evaluation>":{"id":53348,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js","/_next/static/chunks/01s3vpzky_qew.js"],"async":false},"[project]/app/global-error.tsx":{"id":53348,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js","/_next/static/chunks/01s3vpzky_qew.js"],"async":false},"[project]/app/settings/settings-client.tsx <module evaluation>":{"id":93237,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js","/_next/static/chunks/0zbcd_n8ku2ov.js"],"async":false},"[project]/app/settings/settings-client.tsx":{"id":93237,"name":"*","chunks":["/_next/static/chunks/2y42ebzynyxdv.js","/_next/static/chunks/16p68cybetr31.js","/_next/static/chunks/0wwt5o04i4zwh.js","/_next/static/chunks/0zbcd_n8ku2ov.js"],"async":false}},"ssrModuleMapping":{"39756":{"*":{"id":2420,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0eeipso._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"37457":{"*":{"id":24017,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0eeipso._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"47257":{"*":{"id":77682,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0eeipso._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"92825":{"*":{"id":97296,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0eeipso._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"68017":{"*":{"id":61660,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0eeipso._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"97367":{"*":{"id":90574,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0eeipso._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"27201":{"*":{"id":60704,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0eeipso._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"12344":{"*":{"id":10765,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0eeipso._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"97917":{"*":{"id":45550,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0eeipso._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"85881":{"*":{"id":6236,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0eeipso._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"63780":{"*":{"id":10815,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0eeipso._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"55574":{"*":{"id":18952,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0eeipso._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js"],"async":false}},"8821":{"*":{"id":78141,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0eeipso._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js","server/chunks/ssr/app_209u41o._.js"],"async":false}},"53348":{"*":{"id":3171,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0eeipso._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js","server/chunks/ssr/app_global-error_tsx_1kp6l3x._.js"],"async":false}},"93237":{"*":{"id":41857,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0eeipso._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/node_modules_1ynf7el._.js","server/chunks/ssr/node_modules_next_dist_0uboya6._.js","server/chunks/ssr/node_modules_next_1a1kch7._.js","server/chunks/ssr/_0rjgfln._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"39756":{"*":{"id":26768,"name":"*","chunks":[],"async":false}},"37457":{"*":{"id":17910,"name":"*","chunks":[],"async":false}},"47257":{"*":{"id":92977,"name":"*","chunks":[],"async":false}},"92825":{"*":{"id":48552,"name":"*","chunks":[],"async":false}},"68017":{"*":{"id":83919,"name":"*","chunks":[],"async":false}},"97367":{"*":{"id":24150,"name":"*","chunks":[],"async":false}},"27201":{"*":{"id":40771,"name":"*","chunks":[],"async":false}},"12344":{"*":{"id":92036,"name":"*","chunks":[],"async":false}},"97917":{"*":{"id":16336,"name":"*","chunks":[],"async":false}},"85881":{"*":{"id":54950,"name":"*","chunks":[],"async":false}},"63780":{"*":{"id":42976,"name":"*","chunks":[],"async":false}},"55574":{"*":{"id":33711,"name":"*","chunks":[],"async":false}},"8821":{"*":{"id":50757,"name":"*","chunks":[],"async":false}},"53348":{"*":{"id":53128,"name":"*","chunks":[],"async":false}},"93237":{"*":{"id":30575,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/app/layout":[{"path":"static/chunks/0km-jn9o5xyqs.css","inlined":false}],"[project]/app/error":[{"path":"static/chunks/0km-jn9o5xyqs.css","inlined":false}],"[project]/app/global-error":[{"path":"static/chunks/0km-jn9o5xyqs.css","inlined":false}],"[project]/app/settings/page":[{"path":"static/chunks/0km-jn9o5xyqs.css","inlined":false}]},"entryJSFiles":{"[project]/app/layout":["static/chunks/2y42ebzynyxdv.js","static/chunks/16p68cybetr31.js","static/chunks/0wwt5o04i4zwh.js"],"[project]/app/error":["static/chunks/2y42ebzynyxdv.js","static/chunks/16p68cybetr31.js","static/chunks/0wwt5o04i4zwh.js","static/chunks/3xpjn3cdgm-7m.js"],"[project]/app/global-error":["static/chunks/2y42ebzynyxdv.js","static/chunks/16p68cybetr31.js","static/chunks/0wwt5o04i4zwh.js","static/chunks/01s3vpzky_qew.js"],"[project]/app/settings/page":["static/chunks/2y42ebzynyxdv.js","static/chunks/16p68cybetr31.js","static/chunks/0wwt5o04i4zwh.js","static/chunks/0zbcd_n8ku2ov.js"]}};
|
|
3
3
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module.exports=[50227,(e,t,a)=>{t.exports=e.x("node:path",()=>require("node:path"))},60526,(e,t,a)=>{t.exports=e.x("node:os",()=>require("node:os"))},2157,(e,t,a)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},66680,(e,t,a)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},74533,(e,t,a)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},96889,e=>{"use strict";var t=e.i(47909),a=e.i(74017),r=e.i(96250),n=e.i(59756),s=e.i(61916),o=e.i(74677),i=e.i(69741),l=e.i(16795),u=e.i(87718),d=e.i(95169),p=e.i(47587),c=e.i(66012),h=e.i(70101),R=e.i(26937),v=e.i(10372),m=e.i(93695);e.i(20232);var x=e.i(220),_=e.i(89171),f=e.i(17707);async function E(){let e=(0,f.readAuth)();if(!e)return _.NextResponse.json({authenticated:!1,reminder:null},{status:200});let t=(0,f.readReminder)(),a=t&&t.user_email===e.user.email?{next_audit_at:t.next_audit_at,user_email:t.user_email,set_at:t.set_at}:null;return _.NextResponse.json({authenticated:!0,user:{id:e.user.id,email:e.user.email},reminder:a},{status:200})}e.s(["GET",0,E,"dynamic",0,"force-dynamic"],20855);var g=e.i(20855);let w=new t.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/auth/status/route",pathname:"/api/auth/status",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/auth/status/route.ts",nextConfigOutput:"standalone",userland:g,...{}}),{workAsyncStorage:C,workUnitAsyncStorage:y,serverHooks:A}=w;async function N(e,t,r){r.requestMeta&&(0,n.setRequestMeta)(e,r.requestMeta),w.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let _="/api/auth/status/route";_=_.replace(/\/index$/,"")||"/";let f=await w.prepare(e,t,{srcPage:_,multiZoneDraftMode:!1});if(!f)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:E,deploymentId:g,params:C,nextConfig:y,parsedUrl:A,isDraftMode:N,prerenderManifest:T,routerServerContext:P,isOnDemandRevalidate:b,revalidateOnlyGenerated:q,resolvedPathname:S,clientReferenceManifest:O,serverActionsManifest:H}=f,k=(0,i.normalizeAppPath)(_),I=!!(T.dynamicRoutes[k]||T.routes[S]),U=async()=>((null==P?void 0:P.render404)?await P.render404(e,t,A,!1):t.end("This page could not be found"),null);if(I&&!N){let e=!!T.routes[S],t=T.dynamicRoutes[k];if(t&&!1===t.fallback&&!e){if(y.adapterPath)return await U();throw new m.NoFallbackError}}let M=null;!I||w.isDev||N||(M="/index"===(M=S)?"/":M);let D=!0===w.isDev||!I,j=I&&!D;H&&O&&(0,o.setManifestsSingleton)({page:_,clientReferenceManifest:O,serverActionsManifest:H});let $=e.method||"GET",F=(0,s.getTracer)(),K=F.getActiveScopeSpan(),B=!!(null==P?void 0:P.isWrappedByNextServer),L=!!(0,n.getRequestMeta)(e,"minimalMode"),G=(0,n.getRequestMeta)(e,"incrementalCache")||await w.getIncrementalCache(e,y,T,L);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let V={params:C,previewProps:T.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:D,incrementalCache:G,cacheLifeProfiles:y.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,a,r,n)=>w.onRequestError(e,t,r,n,P)},sharedContext:{buildId:E,deploymentId:g}},W=new l.NodeNextRequest(e),X=new l.NodeNextResponse(t),z=u.NextRequestAdapter.fromNodeNextRequest(W,(0,u.signalFromNodeResponse)(t));try{let n,o=async e=>w.handle(z,V).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let a=F.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let r=a.get("next.route");if(r){let t=`${$} ${r}`;e.setAttributes({"next.route":r,"http.route":r,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",r),n.updateName(t))}else e.updateName(`${$} ${_}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:a})=>{try{if(!L&&b&&q&&!a)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=V.renderOpts.fetchMetrics;let i=V.renderOpts.pendingWaitUntil;i&&r.waitUntil&&(r.waitUntil(i),i=void 0);let l=V.renderOpts.collectedTags;if(!I)return await (0,c.sendResponse)(W,X,s,V.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[v.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let a=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,r=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:V.renderOpts.collectedExpire;return{value:{kind:x.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:a,expire:r}}}}catch(t){throw(null==a?void 0:a.isStale)&&await w.onRequestError(e,t,{routerKind:"App Router",routePath:_,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:j,isOnDemandRevalidate:b})},!1,P),t}},u=await w.handleResponse({req:e,nextConfig:y,cacheKey:M,routeKind:a.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:T,isRoutePPREnabled:!1,isOnDemandRevalidate:b,revalidateOnlyGenerated:q,responseGenerator:l,waitUntil:r.waitUntil,isMinimalMode:L});if(!I)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==x.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(i=u.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});L||t.setHeader("x-nextjs-cache",b?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),N&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return L&&I||d.delete(v.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,R.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(W,X,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};B&&K?await i(K):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(d.BaseServerSpan.handleRequest,{spanName:`${$} ${_}`,kind:s.SpanKind.SERVER,attributes:{"http.method":$,"http.target":e.url}},i),void 0,!B))}catch(t){if(t instanceof m.NoFallbackError||await w.onRequestError(e,t,{routerKind:"App Router",routePath:k,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:j,isOnDemandRevalidate:b})},!1,P),I)throw t;return await (0,c.sendResponse)(W,X,new Response(null,{status:500})),null}}e.s(["handler",0,N,"patchFetch",0,function(){return(0,r.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:y})},"routeModule",0,w,"serverHooks",0,A,"workAsyncStorage",0,C,"workUnitAsyncStorage",0,y],96889)},78081,e=>{e.v(t=>Promise.all(["server/chunks/[externals]__0h9_83k._.js","server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_01r25oi._.js"].map(t=>e.l(t))).then(()=>t(39702)))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__00ni9za._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},79857,e=>{"use strict";var t=e.i(60526),r=e.i(50227);function n(e){return e?(0,r.resolve)(e,".failproofai"):process.env.FAILPROOFAI_HOME||(0,r.resolve)((0,t.homedir)(),".failproofai")}let o=(e,...t)=>e?(0,r.resolve)(n(e),...t):((...e)=>(0,r.resolve)(n(),...e))(...t),a=e=>o(e,"run");e.s(["auditCacheDir",0,e=>(0,r.resolve)(o(e,"audit"),"cache"),"auditDashboardFile",0,e=>(0,r.resolve)(o(e,"audit"),"dashboard.json"),"auditLockFile",0,e=>(0,r.resolve)(a(e),"audit.lock"),"codexSessionPathsFile",0,e=>(0,r.resolve)(o(e,"state"),"codex-session-paths.json"),"configFile",0,e=>o(e,"config.json"),"failproofaiHome",0,n,"globalPolicyConfigFile",0,e=>o(e,"policies-config.json"),"logsDir",0,e=>o(e,"logs"),"runDir",0,a,"telemetryIdFile",0,e=>(0,r.resolve)(o(e,"state"),"telemetry-id")])},6375,e=>{"use strict";var t=e.i(46501);function r(){return(process.env.FAILPROOF_API_URL??process.env.FAILPROOFAI_API_URL??"https://api.befailproof.ai").replace(/\/+$/,"")}class n extends Error{status;code;retryAfterSecs;constructor(e,t,r,n){super(r),this.status=e,this.code=t,this.retryAfterSecs=n,this.name="AuthApiError"}}async function o(e){let t={};try{t=await e.json()}catch{}let r=t.code??`http_${e.status}`,o=t.message??t.detail??e.statusText??"request failed",a=t.retry_after_secs;if(void 0===a){let t=e.headers.get("retry-after");if(t){let e=Number(t);Number.isFinite(e)&&(a=e)}}return void 0!==a&&(a=Math.max(0,Math.min(86400,a))),new n(e.status,r,o,a)}async function a(e,r){try{return await fetch(e,{...r,signal:function(e){let t=AbortSignal.timeout(1e4);if(!e)return t;let r=AbortSignal.any;if(r)return r([t,e]);let n=new AbortController;if(t.aborted)n.abort(t.reason);else t.addEventListener("abort",()=>n.abort(t.reason),{once:!0});if(e.aborted)n.abort(e.reason);else e.addEventListener("abort",()=>n.abort(e.reason),{once:!0});return n.signal}(r.signal??void 0)})}catch(a){let o=function(e){if(null===e||"object"!=typeof e)return!1;let t=e.name;return"AbortError"===t||"TimeoutError"===t}(a);if((0,t.trackEvent)("api_server_unreachable",{kind:o?"timeout":"network",path:function(e){try{return new URL(e).pathname}catch{return e}}(e),method:"string"==typeof r.method?r.method:"GET"}),o)throw new n(0,"timeout",`request to ${e} timed out after 10000ms`);throw a}}async function s(e,t,n){let s={"content-type":"application/json"};n?.accessToken&&(s.authorization=`Bearer ${n.accessToken}`);let i=await a(`${r()}${e}`,{method:"POST",headers:s,body:JSON.stringify(t)});if(204!==i.status){if(!i.ok)throw await o(i);return await i.json()}}async function i(e,t){let n=await a(`${r()}${e}`,{method:"GET",headers:{authorization:`Bearer ${t}`}});if(!n.ok)throw await o(n);return await n.json()}async function u(e){return s("/v0/auth/login/request",{email:e})}async function c(e,t){return s("/v0/auth/login/verify",{email:e,code:t})}async function l(e){return s("/v0/auth/token/refresh",{refresh_token:e})}async function d(e,t){await s("/v0/auth/logout",{refresh_token:t},{accessToken:e})}async function f(e){return i("/v0/auth/me",e)}async function p(e,t){return(await s("/v0/reminders",t,{accessToken:e})).reminder}async function h(e){let t=await a(`${r()}/v0/reminders`,{method:"DELETE",headers:{authorization:`Bearer ${e}`}});if(204!==t.status&&!t.ok)throw await o(t)}async function v(e,t,r){return s("/v0/invite",void 0===r?{to:t}:{to:t,score:r},{accessToken:e})}e.s(["AuthApiError",0,n,"cancelReminder",0,h,"fetchMe",0,f,"logoutSession",0,d,"refreshAccessToken",0,l,"requestLoginCode",0,u,"scheduleReminder",0,p,"sendInvites",0,v,"verifyLoginCode",0,c],6375)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__08y94xv._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[60526,(e,t,i)=>{t.exports=e.x("node:os",()=>require("node:os"))},2157,(e,t,i)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},54214,67405,e=>{"use strict";var t=e.i(24868),i=e.i(14747),n=e.i(81580),s=e.i(56936);async function r(e,n,s,r){let a=`agent-${r}.jsonl`;for(let r of[(0,i.join)(e,n,a),(0,i.join)(e,n,s,a),(0,i.join)(e,n,s,"subagents",a)])if(!(0,i.relative)(e,r).startsWith(".."))try{return await (0,t.access)(r),r}catch(e){if("ENOENT"===e.code)continue;break}return null}var a=e.i(83534),o=e.i(71809),u=e.i(28557);function l(e){if(e<1e3)return`${e}ms`;let t=Math.round(e/100);if(t<600)return`${(t/10).toFixed(1)}s`;let i=Math.round(e/1e3);if(i<3600){let e=Math.floor(i/60);return`${e}m ${i%60}s`}let n=Math.round(e/6e4),s=Math.floor(n/60);return`${s}h ${n%60}m`}function m(e){let t=(0,u.formatDate)(e),i=e.getMilliseconds().toString().padStart(3,"0");return`${t}.${i}`}function c(e,t,i,n){return{_source:n,uuid:e.uuid||"",parentUuid:e.parentUuid??null,timestamp:t,timestampMs:i.getTime(),timestampFormatted:m(i)}}async function p(e,t){let i=e.split("\n").filter(e=>""!==e.trim()),n=new Map,s=[],r=[],a=new Set,o=!1;for(let e=0;e<i.length;e++){let u;e>0&&e%200==0&&await new Promise(e=>setImmediate(e));let l=i[e];try{u=JSON.parse(l)}catch{continue}let m={...u,_source:t};r.push(m);let p=u.type,f=u.timestamp;if(!f)continue;let d=new Date(f),y=d.getTime();if("user"===p){let e=u.message;if(Array.isArray(e?.content)){let t=e.content;if(t.some(e=>"tool_result"===e.type)){let e=u.toolUseResult,i="string"==typeof e?.agentId?e.agentId:void 0;for(let e of(i&&/^[a-f0-9]+$/.test(i)&&a.add(i),t)){if("tool_result"!==e.type)continue;let t=e.tool_use_id;if(!t)continue;let{text:s,images:r}=function(e){let t=e.content;if("string"==typeof t)return{text:t};if(Array.isArray(t)){let e=t.filter(e=>"text"===e.type).map(e=>e.text),i=t.filter(e=>"image"===e.type).map(e=>{let t=e.source;return{base64:t.data,mediaType:t.media_type}}).filter(e=>e.base64&&e.mediaType);return{text:e.length>0?e.join("\n"):void 0,images:i.length>0?i:void 0}}return{}}(e);n.set(t,{timestamp:f,timestampMs:y,content:s,images:r,agentId:i})}continue}}let i="string"==typeof e?.content?e.content:"";s.push({type:"user",...c(u,f,d,t),message:{role:"user",content:i}});continue}if("assistant"===p){let e=u.message,i=[];if(Array.isArray(e?.content)&&(i=e.content.filter(e=>["text","tool_use","thinking"].includes(e.type)).map(e=>{if("text"===e.type)return{type:"text",text:e.text};if("tool_use"===e.type){let t=e.input;return{type:"tool_use",id:e.id,name:e.name,input:e.input??{},..."Task"===e.name&&t?{subagentType:t.subagent_type,subagentDescription:t.description}:{}}}return{type:"thinking",thinking:e.thinking,signature:e.signature}})),0===i.length)continue;s.push({type:"assistant",...c(u,f,d,t),message:{role:"assistant",content:i,model:e?.model}});continue}if("file-history-snapshot"===p||"progress"===p||"system"===p){s.push({type:p,...c(u,f,d,t),raw:{...u}});continue}if("queue-operation"===p){let e=o?"Session Resumed":"Session Started";o=!0,s.push({type:"queue-operation",...c(u,f,d,t),label:e});continue}}let u=0;for(let e of s)if("assistant"===e.type)for(let t of(++u%200==0&&await new Promise(e=>setImmediate(e)),e.message.content)){if("tool_use"!==t.type)continue;let i=n.get(t.id);if(!i)continue;let s=new Date(i.timestamp),r=Math.max(0,i.timestampMs-e.timestampMs);t.result={timestamp:i.timestamp,timestampFormatted:m(s),content:i.content,images:i.images,durationMs:r,durationFormatted:l(r)},i.agentId&&(t.subagentId=i.agentId)}return s.length>500&&await new Promise(e=>setImmediate(e)),s.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:s,rawLines:r,subagentIds:Array.from(a)}}async function f(e,t="session"){return(await p(e,t)).entries}async function d(e,a){let u=(0,s.resolveProjectPath)(e),l=(0,n.getClaudeProjectsPath)(),m=(0,i.join)(u,`${a}.jsonl`),c=await (0,t.readFile)(m,"utf-8"),{entries:f,rawLines:d,subagentIds:y}=await p(c,"session");if(0===y.length)return{entries:f,rawLines:d,subagentIds:[]};let g=await (0,o.batchAll)(y.map(i=>async()=>{let n=`agent-${i}`,s=await r(l,e,a,i);if(!s)return null;let o=await (0,t.readFile)(s,"utf-8"),{entries:u,rawLines:m}=await p(o,n);return{entries:u,rawLines:m}}),4),h=[...f],w=[...d];for(let e of g)"fulfilled"===e.status&&e.value&&(h.push(...e.value.entries),w.push(...e.value.rawLines));return h.length>500&&await new Promise(e=>setImmediate(e)),h.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:h,rawLines:w,subagentIds:y}}e.s(["formatDuration",0,l],67405),(0,a.runtimeCache)((e,t)=>d(e,t),60,{maxSize:50}),e.s(["baseEntry",0,c,"formatTimestamp",0,m,"parseLogContent",0,f,"parseRawLines",0,function(e,t){return e.split("\n").filter(e=>""!==e.trim()).flatMap(e=>{try{let i=JSON.parse(e);return void 0!==t&&(i._source=t),[i]}catch{return[]}})}],54214)},79857,e=>{"use strict";var t=e.i(60526),i=e.i(50227);function n(e){return e?(0,i.resolve)(e,".failproofai"):process.env.FAILPROOFAI_HOME||(0,i.resolve)((0,t.homedir)(),".failproofai")}let s=(e,...t)=>e?(0,i.resolve)(n(e),...t):((...e)=>(0,i.resolve)(n(),...e))(...t),r=e=>s(e,"run");e.s(["auditCacheDir",0,e=>(0,i.resolve)(s(e,"audit"),"cache"),"auditDashboardFile",0,e=>(0,i.resolve)(s(e,"audit"),"dashboard.json"),"auditLockFile",0,e=>(0,i.resolve)(r(e),"audit.lock"),"codexSessionPathsFile",0,e=>(0,i.resolve)(s(e,"state"),"codex-session-paths.json"),"configFile",0,e=>s(e,"config.toml"),"failproofaiHome",0,n,"globalPolicyConfigFile",0,e=>(0,i.resolve)(s(e,"policies","local-policies"),"policies-config.json"),"logsDir",0,e=>s(e,"logs"),"runDir",0,r,"telemetryIdFile",0,e=>(0,i.resolve)(s(e,"state"),"telemetry-id")])},57232,e=>{"use strict";var t=e.i(2157),i=e.i(12714),n=e.i(50227),s=e.i(60526),r=e.i(83534),a=e.i(54214),o=e.i(67405);let u=(0,e.i(79857).codexSessionPathsFile)();function l(){try{if(!(0,t.existsSync)(u))return{};return JSON.parse((0,t.readFileSync)(u,"utf-8"))}catch{return{}}}function m(e,i){try{(0,t.mkdirSync)((0,n.dirname)(u),{recursive:!0});let s=l();s[e]=i,(0,t.writeFileSync)(u,JSON.stringify(s),"utf-8")}catch{}}function c(e,i){try{for(let s of(0,t.readdirSync)(e,{withFileTypes:!0}))if(s.isFile()&&s.name.includes(i)&&s.name.endsWith(".jsonl"))return(0,n.join)(e,s.name)}catch{}return null}function p(e){let i=l()[e];if(i&&(0,t.existsSync)(i))return i;let r=(0,n.join)((0,s.homedir)(),".codex","sessions"),a=new Date,o=new Date(a.getTime()-864e5);for(let t of[a,o].map(e=>{let t=String(e.getUTCFullYear()),i=String(e.getUTCMonth()+1).padStart(2,"0"),s=String(e.getUTCDate()).padStart(2,"0");return(0,n.join)(r,t,i,s)})){let i=c(t,e);if(i)return m(e,i),i}try{for(let i of(0,t.readdirSync)(r,{withFileTypes:!0}))if(i.isDirectory()){for(let s of(0,t.readdirSync)((0,n.join)(r,i.name),{withFileTypes:!0}))if(s.isDirectory())for(let a of(0,t.readdirSync)((0,n.join)(r,i.name,s.name),{withFileTypes:!0})){if(!a.isDirectory())continue;let t=c((0,n.join)(r,i.name,s.name,a.name),e);if(t)return m(e,t),t}}}catch{}return null}function f(e,t){return Array.isArray(e)?e.filter(e=>e?.type===t&&"string"==typeof e.text).map(e=>e.text).join("\n"):""}async function d(e,t="session"){let i,n=e.split("\n").filter(e=>""!==e.trim()),s=[],r=[],u=new Map,l=new Map,m=!1;for(let e=0;e<n.length;e++){let c;e>0&&e%200==0&&await new Promise(e=>setImmediate(e));let p=n[e];try{c=JSON.parse(p)}catch{continue}let d={...c,_source:t};r.push(d);let y=c.timestamp;if(!y)continue;let g=new Date(y);if(Number.isNaN(g.getTime()))continue;let h=c.type,w=c.payload??{};if("session_meta"===h){let e=w.cwd;"string"!=typeof e||i||(i=e),s.push({type:"system",...(0,a.baseEntry)(d,y,g,t),raw:d});continue}if("response_item"===h){let e=w.type;if("message"===e){let e=w.role,i=w.content;if("user"===e||"developer"===e){let n=f(i,"input_text");if(!n)continue;let r="developer"===e?`[developer] ${n}`:n;s.push({type:"user",...(0,a.baseEntry)(d,y,g,t),message:{role:"user",content:r}});continue}if("assistant"===e){let e=f(i,"output_text");if(!e)continue;let n=[{type:"text",text:e}];s.push({type:"assistant",...(0,a.baseEntry)(d,y,g,t),message:{role:"assistant",content:n}});continue}s.push({type:"system",...(0,a.baseEntry)(d,y,g,t),raw:d});continue}if("function_call"===e){let e=w.call_id,i=w.name??"function_call",n={type:"tool_use",id:e??`${y}-${i}`,name:i,input:function(e){if(!e)return{};try{return JSON.parse(e)}catch{return{}}}(w.arguments)},r={type:"assistant",...(0,a.baseEntry)(d,y,g,t),message:{role:"assistant",content:[n]}};s.push(r),e&&(u.set(e,n),l.set(e,g.getTime()));continue}if("function_call_output"===e){let e=w.call_id,i=e?u.get(e):void 0;if(i){let t=l.get(e)??g.getTime(),n=Math.max(0,g.getTime()-t);i.result={timestamp:y,timestampFormatted:(0,a.formatTimestamp)(g),content:"string"==typeof w.output?w.output:JSON.stringify(w.output),durationMs:n,durationFormatted:(0,o.formatDuration)(n)};continue}s.push({type:"system",...(0,a.baseEntry)(d,y,g,t),raw:d});continue}s.push({type:"system",...(0,a.baseEntry)(d,y,g,t),raw:d});continue}if("event_msg"===h){let e=w.type;if("task_started"===e){let e=m?"Session Resumed":"Session Started";m=!0,s.push({type:"queue-operation",...(0,a.baseEntry)(d,y,g,t),label:e});continue}if("exec_command_end"===e){let e=w.call_id,i=e?u.get(e):void 0;if(i){let t=w.duration,n=t?(t.secs??0)*1e3+Math.round((t.nanos??0)/1e6):Math.max(0,g.getTime()-(l.get(e)??g.getTime())),s=w.aggregated_output;i.result={timestamp:y,timestampFormatted:(0,a.formatTimestamp)(g),content:"string"==typeof s?s:JSON.stringify(s),durationMs:n,durationFormatted:(0,o.formatDuration)(n)};continue}s.push({type:"system",...(0,a.baseEntry)(d,y,g,t),raw:d});continue}if("user_message"===e||"agent_message"===e)continue;s.push({type:"system",...(0,a.baseEntry)(d,y,g,t),raw:d});continue}s.push({type:"system",...(0,a.baseEntry)(d,y,g,t),raw:d})}return s.length>500&&await new Promise(e=>setImmediate(e)),s.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:s,rawLines:r,cwd:i}}async function y(e){let t=p(e);if(!t)return null;let n=await (0,i.readFile)(t,"utf-8"),{entries:s,rawLines:r,cwd:a}=await d(n,"session");return{entries:s,rawLines:r,cwd:a,filePath:t}}(0,r.runtimeCache)(e=>y(e),60,{maxSize:50}),e.s(["findCodexTranscript",0,p,"getCodexSessionLog",0,y])}];
|
|
1
|
+
module.exports=[60526,(e,t,n)=>{t.exports=e.x("node:os",()=>require("node:os"))},2157,(e,t,n)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},54214,67405,e=>{"use strict";var t=e.i(24868),n=e.i(14747),i=e.i(81580),s=e.i(56936);async function r(e,i,s,r){let a=`agent-${r}.jsonl`;for(let r of[(0,n.join)(e,i,a),(0,n.join)(e,i,s,a),(0,n.join)(e,i,s,"subagents",a)])if(!(0,n.relative)(e,r).startsWith(".."))try{return await (0,t.access)(r),r}catch(e){if("ENOENT"===e.code)continue;break}return null}var a=e.i(83534),o=e.i(71809),u=e.i(28557);function l(e){if(e<1e3)return`${e}ms`;let t=Math.round(e/100);if(t<600)return`${(t/10).toFixed(1)}s`;let n=Math.round(e/1e3);if(n<3600){let e=Math.floor(n/60);return`${e}m ${n%60}s`}let i=Math.round(e/6e4),s=Math.floor(i/60);return`${s}h ${i%60}m`}function m(e){let t=(0,u.formatDate)(e),n=e.getMilliseconds().toString().padStart(3,"0");return`${t}.${n}`}function c(e,t,n,i){return{_source:i,uuid:e.uuid||"",parentUuid:e.parentUuid??null,timestamp:t,timestampMs:n.getTime(),timestampFormatted:m(n)}}async function p(e,t){let n=e.split("\n").filter(e=>""!==e.trim()),i=new Map,s=[],r=[],a=new Set,o=!1;for(let e=0;e<n.length;e++){let u;e>0&&e%200==0&&await new Promise(e=>setImmediate(e));let l=n[e];try{u=JSON.parse(l)}catch{continue}let m={...u,_source:t};r.push(m);let p=u.type,f=u.timestamp;if(!f)continue;let d=new Date(f),y=d.getTime();if("user"===p){let e=u.message;if(Array.isArray(e?.content)){let t=e.content;if(t.some(e=>"tool_result"===e.type)){let e=u.toolUseResult,n="string"==typeof e?.agentId?e.agentId:void 0;for(let e of(n&&/^[a-f0-9]+$/.test(n)&&a.add(n),t)){if("tool_result"!==e.type)continue;let t=e.tool_use_id;if(!t)continue;let{text:s,images:r}=function(e){let t=e.content;if("string"==typeof t)return{text:t};if(Array.isArray(t)){let e=t.filter(e=>"text"===e.type).map(e=>e.text),n=t.filter(e=>"image"===e.type).map(e=>{let t=e.source;return{base64:t.data,mediaType:t.media_type}}).filter(e=>e.base64&&e.mediaType);return{text:e.length>0?e.join("\n"):void 0,images:n.length>0?n:void 0}}return{}}(e);i.set(t,{timestamp:f,timestampMs:y,content:s,images:r,agentId:n})}continue}}let n="string"==typeof e?.content?e.content:"";s.push({type:"user",...c(u,f,d,t),message:{role:"user",content:n}});continue}if("assistant"===p){let e=u.message,n=[];if(Array.isArray(e?.content)&&(n=e.content.filter(e=>["text","tool_use","thinking"].includes(e.type)).map(e=>{if("text"===e.type)return{type:"text",text:e.text};if("tool_use"===e.type){let t=e.input;return{type:"tool_use",id:e.id,name:e.name,input:e.input??{},..."Task"===e.name&&t?{subagentType:t.subagent_type,subagentDescription:t.description}:{}}}return{type:"thinking",thinking:e.thinking,signature:e.signature}})),0===n.length)continue;s.push({type:"assistant",...c(u,f,d,t),message:{role:"assistant",content:n,model:e?.model}});continue}if("file-history-snapshot"===p||"progress"===p||"system"===p){s.push({type:p,...c(u,f,d,t),raw:{...u}});continue}if("queue-operation"===p){let e=o?"Session Resumed":"Session Started";o=!0,s.push({type:"queue-operation",...c(u,f,d,t),label:e});continue}}let u=0;for(let e of s)if("assistant"===e.type)for(let t of(++u%200==0&&await new Promise(e=>setImmediate(e)),e.message.content)){if("tool_use"!==t.type)continue;let n=i.get(t.id);if(!n)continue;let s=new Date(n.timestamp),r=Math.max(0,n.timestampMs-e.timestampMs);t.result={timestamp:n.timestamp,timestampFormatted:m(s),content:n.content,images:n.images,durationMs:r,durationFormatted:l(r)},n.agentId&&(t.subagentId=n.agentId)}return s.length>500&&await new Promise(e=>setImmediate(e)),s.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:s,rawLines:r,subagentIds:Array.from(a)}}async function f(e,t="session"){return(await p(e,t)).entries}async function d(e,a){let u=(0,s.resolveProjectPath)(e),l=(0,i.getClaudeProjectsPath)(),m=(0,n.join)(u,`${a}.jsonl`),c=await (0,t.readFile)(m,"utf-8"),{entries:f,rawLines:d,subagentIds:y}=await p(c,"session");if(0===y.length)return{entries:f,rawLines:d,subagentIds:[]};let g=await (0,o.batchAll)(y.map(n=>async()=>{let i=`agent-${n}`,s=await r(l,e,a,n);if(!s)return null;let o=await (0,t.readFile)(s,"utf-8"),{entries:u,rawLines:m}=await p(o,i);return{entries:u,rawLines:m}}),4),h=[...f],w=[...d];for(let e of g)"fulfilled"===e.status&&e.value&&(h.push(...e.value.entries),w.push(...e.value.rawLines));return h.length>500&&await new Promise(e=>setImmediate(e)),h.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:h,rawLines:w,subagentIds:y}}e.s(["formatDuration",0,l],67405),(0,a.runtimeCache)((e,t)=>d(e,t),60,{maxSize:50}),e.s(["baseEntry",0,c,"formatTimestamp",0,m,"parseLogContent",0,f,"parseRawLines",0,function(e,t){return e.split("\n").filter(e=>""!==e.trim()).flatMap(e=>{try{let n=JSON.parse(e);return void 0!==t&&(n._source=t),[n]}catch{return[]}})}],54214)},79857,e=>{"use strict";var t=e.i(60526),n=e.i(50227);function i(e){return e?(0,n.resolve)(e,".failproofai"):process.env.FAILPROOFAI_HOME||(0,n.resolve)((0,t.homedir)(),".failproofai")}let s=(e,...t)=>e?(0,n.resolve)(i(e),...t):((...e)=>(0,n.resolve)(i(),...e))(...t),r=e=>s(e,"run");e.s(["auditCacheDir",0,e=>(0,n.resolve)(s(e,"audit"),"cache"),"auditDashboardFile",0,e=>(0,n.resolve)(s(e,"audit"),"dashboard.json"),"auditLockFile",0,e=>(0,n.resolve)(r(e),"audit.lock"),"codexSessionPathsFile",0,e=>(0,n.resolve)(s(e,"state"),"codex-session-paths.json"),"configFile",0,e=>s(e,"config.json"),"failproofaiHome",0,i,"globalPolicyConfigFile",0,e=>s(e,"policies-config.json"),"logsDir",0,e=>s(e,"logs"),"runDir",0,r,"telemetryIdFile",0,e=>(0,n.resolve)(s(e,"state"),"telemetry-id")])},57232,e=>{"use strict";var t=e.i(2157),n=e.i(12714),i=e.i(50227),s=e.i(60526),r=e.i(83534),a=e.i(54214),o=e.i(67405);let u=(0,e.i(79857).codexSessionPathsFile)();function l(){try{if(!(0,t.existsSync)(u))return{};return JSON.parse((0,t.readFileSync)(u,"utf-8"))}catch{return{}}}function m(e,n){try{(0,t.mkdirSync)((0,i.dirname)(u),{recursive:!0});let s=l();s[e]=n,(0,t.writeFileSync)(u,JSON.stringify(s),"utf-8")}catch{}}function c(e,n){try{for(let s of(0,t.readdirSync)(e,{withFileTypes:!0}))if(s.isFile()&&s.name.includes(n)&&s.name.endsWith(".jsonl"))return(0,i.join)(e,s.name)}catch{}return null}function p(e){let n=l()[e];if(n&&(0,t.existsSync)(n))return n;let r=(0,i.join)((0,s.homedir)(),".codex","sessions"),a=new Date,o=new Date(a.getTime()-864e5);for(let t of[a,o].map(e=>{let t=String(e.getUTCFullYear()),n=String(e.getUTCMonth()+1).padStart(2,"0"),s=String(e.getUTCDate()).padStart(2,"0");return(0,i.join)(r,t,n,s)})){let n=c(t,e);if(n)return m(e,n),n}try{for(let n of(0,t.readdirSync)(r,{withFileTypes:!0}))if(n.isDirectory()){for(let s of(0,t.readdirSync)((0,i.join)(r,n.name),{withFileTypes:!0}))if(s.isDirectory())for(let a of(0,t.readdirSync)((0,i.join)(r,n.name,s.name),{withFileTypes:!0})){if(!a.isDirectory())continue;let t=c((0,i.join)(r,n.name,s.name,a.name),e);if(t)return m(e,t),t}}}catch{}return null}function f(e,t){return Array.isArray(e)?e.filter(e=>e?.type===t&&"string"==typeof e.text).map(e=>e.text).join("\n"):""}async function d(e,t="session"){let n,i=e.split("\n").filter(e=>""!==e.trim()),s=[],r=[],u=new Map,l=new Map,m=!1;for(let e=0;e<i.length;e++){let c;e>0&&e%200==0&&await new Promise(e=>setImmediate(e));let p=i[e];try{c=JSON.parse(p)}catch{continue}let d={...c,_source:t};r.push(d);let y=c.timestamp;if(!y)continue;let g=new Date(y);if(Number.isNaN(g.getTime()))continue;let h=c.type,w=c.payload??{};if("session_meta"===h){let e=w.cwd;"string"!=typeof e||n||(n=e),s.push({type:"system",...(0,a.baseEntry)(d,y,g,t),raw:d});continue}if("response_item"===h){let e=w.type;if("message"===e){let e=w.role,n=w.content;if("user"===e||"developer"===e){let i=f(n,"input_text");if(!i)continue;let r="developer"===e?`[developer] ${i}`:i;s.push({type:"user",...(0,a.baseEntry)(d,y,g,t),message:{role:"user",content:r}});continue}if("assistant"===e){let e=f(n,"output_text");if(!e)continue;let i=[{type:"text",text:e}];s.push({type:"assistant",...(0,a.baseEntry)(d,y,g,t),message:{role:"assistant",content:i}});continue}s.push({type:"system",...(0,a.baseEntry)(d,y,g,t),raw:d});continue}if("function_call"===e){let e=w.call_id,n=w.name??"function_call",i={type:"tool_use",id:e??`${y}-${n}`,name:n,input:function(e){if(!e)return{};try{return JSON.parse(e)}catch{return{}}}(w.arguments)},r={type:"assistant",...(0,a.baseEntry)(d,y,g,t),message:{role:"assistant",content:[i]}};s.push(r),e&&(u.set(e,i),l.set(e,g.getTime()));continue}if("function_call_output"===e){let e=w.call_id,n=e?u.get(e):void 0;if(n){let t=l.get(e)??g.getTime(),i=Math.max(0,g.getTime()-t);n.result={timestamp:y,timestampFormatted:(0,a.formatTimestamp)(g),content:"string"==typeof w.output?w.output:JSON.stringify(w.output),durationMs:i,durationFormatted:(0,o.formatDuration)(i)};continue}s.push({type:"system",...(0,a.baseEntry)(d,y,g,t),raw:d});continue}s.push({type:"system",...(0,a.baseEntry)(d,y,g,t),raw:d});continue}if("event_msg"===h){let e=w.type;if("task_started"===e){let e=m?"Session Resumed":"Session Started";m=!0,s.push({type:"queue-operation",...(0,a.baseEntry)(d,y,g,t),label:e});continue}if("exec_command_end"===e){let e=w.call_id,n=e?u.get(e):void 0;if(n){let t=w.duration,i=t?(t.secs??0)*1e3+Math.round((t.nanos??0)/1e6):Math.max(0,g.getTime()-(l.get(e)??g.getTime())),s=w.aggregated_output;n.result={timestamp:y,timestampFormatted:(0,a.formatTimestamp)(g),content:"string"==typeof s?s:JSON.stringify(s),durationMs:i,durationFormatted:(0,o.formatDuration)(i)};continue}s.push({type:"system",...(0,a.baseEntry)(d,y,g,t),raw:d});continue}if("user_message"===e||"agent_message"===e)continue;s.push({type:"system",...(0,a.baseEntry)(d,y,g,t),raw:d});continue}s.push({type:"system",...(0,a.baseEntry)(d,y,g,t),raw:d})}return s.length>500&&await new Promise(e=>setImmediate(e)),s.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:s,rawLines:r,cwd:n}}async function y(e){let t=p(e);if(!t)return null;let i=await (0,n.readFile)(t,"utf-8"),{entries:s,rawLines:r,cwd:a}=await d(i,"session");return{entries:s,rawLines:r,cwd:a,filePath:t}}(0,r.runtimeCache)(e=>y(e),60,{maxSize:50}),e.s(["findCodexTranscript",0,p,"getCodexSessionLog",0,y])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__094p1f1._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[59074,e=>{"use strict";async function s(){let s=await e.A(74237),{initLogger:
|
|
1
|
+
module.exports=[59074,e=>{"use strict";async function s(){let s=await e.A(74237),{initLogger:o}=await e.A(15568);o();let{initTelemetry:t,trackEvent:a,flushTelemetry:r}=await e.A(36982);await t();let{hashToId:l}=await e.A(37548),{version:n}=await e.A(14777);a("app_started",{version:n,runtime:"u">typeof globalThis&&"Bun"in globalThis?"bun":"node",platform:process.platform,arch:process.arch,node_version:process.version,has_custom_posthog:!!process.env.FAILPROOFAI_POSTHOG_KEY,has_projects_path:!!process.env.FAILPROOFAI_PROJECTS_PATH,logging_level:process.env.FAILPROOFAI_LOG_LEVEL??"default",deploy_mode:"standalone",os_release:s.release(),uptime:s.uptime(),total_memory_gb:Math.round(s.totalmem()/1e9*10)/10,cpu_count:s.cpus().length,cpu_model:s.cpus()[0]?.model??"unknown",hostname_hash:l(s.hostname())}),r().catch(()=>{})}e.s(["registerNode",0,s])},74237,e=>{e.v(s=>Promise.all(["server/chunks/[externals]_node_os_0by37l-._.js"].map(s=>e.l(s))).then(()=>s(60526)))},15568,e=>{e.v(s=>Promise.all(["server/chunks/lib_logger_ts_07e65t5._.js"].map(s=>e.l(s))).then(()=>s(38281)))},36982,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__1uyc-z4._.js"].map(s=>e.l(s))).then(()=>s(34324)))},37548,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__1tvn4wf._.js"].map(s=>e.l(s))).then(()=>s(15855)))},14777,e=>{e.v(s=>Promise.all(["server/chunks/package_json_[json]_cjs_1nxcc4v._.js"].map(s=>e.l(s))).then(()=>s(93133)))}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__0_0xu5z._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},79857,e=>{"use strict";var t=e.i(60526),r=e.i(50227);function n(e){return e?(0,r.resolve)(e,".failproofai"):process.env.FAILPROOFAI_HOME||(0,r.resolve)((0,t.homedir)(),".failproofai")}let s=(e,...t)=>e?(0,r.resolve)(n(e),...t):((...e)=>(0,r.resolve)(n(),...e))(...t),i=e=>s(e,"run");e.s(["auditCacheDir",0,e=>(0,r.resolve)(s(e,"audit"),"cache"),"auditDashboardFile",0,e=>(0,r.resolve)(s(e,"audit"),"dashboard.json"),"auditLockFile",0,e=>(0,r.resolve)(i(e),"audit.lock"),"codexSessionPathsFile",0,e=>(0,r.resolve)(s(e,"state"),"codex-session-paths.json"),"configFile",0,e=>s(e,"config.
|
|
1
|
+
module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},79857,e=>{"use strict";var t=e.i(60526),r=e.i(50227);function n(e){return e?(0,r.resolve)(e,".failproofai"):process.env.FAILPROOFAI_HOME||(0,r.resolve)((0,t.homedir)(),".failproofai")}let s=(e,...t)=>e?(0,r.resolve)(n(e),...t):((...e)=>(0,r.resolve)(n(),...e))(...t),i=e=>s(e,"run");e.s(["auditCacheDir",0,e=>(0,r.resolve)(s(e,"audit"),"cache"),"auditDashboardFile",0,e=>(0,r.resolve)(s(e,"audit"),"dashboard.json"),"auditLockFile",0,e=>(0,r.resolve)(i(e),"audit.lock"),"codexSessionPathsFile",0,e=>(0,r.resolve)(s(e,"state"),"codex-session-paths.json"),"configFile",0,e=>s(e,"config.json"),"failproofaiHome",0,n,"globalPolicyConfigFile",0,e=>s(e,"policies-config.json"),"logsDir",0,e=>s(e,"logs"),"runDir",0,i,"telemetryIdFile",0,e=>(0,r.resolve)(s(e,"state"),"telemetry-id")])},94930,e=>{"use strict";var t=e.i(2157),r=e.i(50227),n=e.i(66680);e.s(["writeJsonAtomically",0,function(e,s,i={}){let a=i.mode??384,o=i.dirMode??448,c=(0,r.dirname)(e);(0,t.existsSync)(c)||(0,t.mkdirSync)(c,{recursive:!0,mode:o});let u=`${e}.${process.pid}.${(0,n.randomBytes)(6).toString("hex")}.tmp`;try{(0,t.writeFileSync)(u,JSON.stringify(s,null,2),{mode:a});try{(63&(0,t.statSync)(u).mode)!=0&&(0,t.chmodSync)(u,a)}catch{}(0,t.renameSync)(u,e);try{(63&(0,t.statSync)(e).mode)!=0&&(0,t.chmodSync)(e,a)}catch{}}catch(e){try{(0,t.rmSync)(u,{force:!0})}catch{}throw e}}])},6375,e=>{"use strict";var t=e.i(46501);function r(){return(process.env.FAILPROOF_API_URL??process.env.FAILPROOFAI_API_URL??"https://api.befailproof.ai").replace(/\/+$/,"")}class n extends Error{status;code;retryAfterSecs;constructor(e,t,r,n){super(r),this.status=e,this.code=t,this.retryAfterSecs=n,this.name="AuthApiError"}}async function s(e){let t={};try{t=await e.json()}catch{}let r=t.code??`http_${e.status}`,s=t.message??t.detail??e.statusText??"request failed",i=t.retry_after_secs;if(void 0===i){let t=e.headers.get("retry-after");if(t){let e=Number(t);Number.isFinite(e)&&(i=e)}}return void 0!==i&&(i=Math.max(0,Math.min(86400,i))),new n(e.status,r,s,i)}async function i(e,r){try{return await fetch(e,{...r,signal:function(e){let t=AbortSignal.timeout(1e4);if(!e)return t;let r=AbortSignal.any;if(r)return r([t,e]);let n=new AbortController;if(t.aborted)n.abort(t.reason);else t.addEventListener("abort",()=>n.abort(t.reason),{once:!0});if(e.aborted)n.abort(e.reason);else e.addEventListener("abort",()=>n.abort(e.reason),{once:!0});return n.signal}(r.signal??void 0)})}catch(i){let s=function(e){if(null===e||"object"!=typeof e)return!1;let t=e.name;return"AbortError"===t||"TimeoutError"===t}(i);if((0,t.trackEvent)("api_server_unreachable",{kind:s?"timeout":"network",path:function(e){try{return new URL(e).pathname}catch{return e}}(e),method:"string"==typeof r.method?r.method:"GET"}),s)throw new n(0,"timeout",`request to ${e} timed out after 10000ms`);throw i}}async function a(e,t,n){let a={"content-type":"application/json"};n?.accessToken&&(a.authorization=`Bearer ${n.accessToken}`);let o=await i(`${r()}${e}`,{method:"POST",headers:a,body:JSON.stringify(t)});if(204!==o.status){if(!o.ok)throw await s(o);return await o.json()}}async function o(e,t){let n=await i(`${r()}${e}`,{method:"GET",headers:{authorization:`Bearer ${t}`}});if(!n.ok)throw await s(n);return await n.json()}async function c(e){return a("/v0/auth/login/request",{email:e})}async function u(e,t){return a("/v0/auth/login/verify",{email:e,code:t})}async function l(e){return a("/v0/auth/token/refresh",{refresh_token:e})}async function f(e,t){await a("/v0/auth/logout",{refresh_token:t},{accessToken:e})}async function d(e){return o("/v0/auth/me",e)}async function h(e,t){return(await a("/v0/reminders",t,{accessToken:e})).reminder}async function p(e){let t=await i(`${r()}/v0/reminders`,{method:"DELETE",headers:{authorization:`Bearer ${e}`}});if(204!==t.status&&!t.ok)throw await s(t)}async function y(e,t,r){return a("/v0/invite",void 0===r?{to:t}:{to:t,score:r},{accessToken:e})}e.s(["AuthApiError",0,n,"cancelReminder",0,p,"fetchMe",0,d,"logoutSession",0,f,"refreshAccessToken",0,l,"requestLoginCode",0,c,"scheduleReminder",0,h,"sendInvites",0,y,"verifyLoginCode",0,u],6375)},17707,e=>{"use strict";var t=e.i(2157),r=e.i(50227),n=e.i(94930),s=e.i(79857),i=e.i(6375);function a(){let e=process.env.FAILPROOFAI_AUTH_DIR;return e||(0,s.failproofaiHome)()}function o(){return(0,r.join)(a(),"auth.json")}function c(){return(0,r.join)(a(),"next-audit.json")}function u(){let e=o();if(!(0,t.existsSync)(e))return null;try{let r=(0,t.readFileSync)(e,"utf-8"),n=JSON.parse(r);if("string"!=typeof n.access_token||"string"!=typeof n.refresh_token||"number"!=typeof n.access_expires_at||"object"!=typeof n.user||!n.user||"string"!=typeof n.user.id||"string"!=typeof n.user.email)return null;return{access_token:n.access_token,refresh_token:n.refresh_token,access_expires_at:n.access_expires_at,refresh_expires_at:"number"==typeof n.refresh_expires_at?n.refresh_expires_at:n.access_expires_at,user:{id:n.user.id,email:n.user.email}}}catch{return null}}function l(e){(0,n.writeJsonAtomically)(o(),e)}function f(){let e=o();(0,t.existsSync)(e)&&(0,t.rmSync)(e,{force:!0})}function d(e,t){let r=Math.floor(Date.now()/1e3),n=e.user??t;if(!n)throw Error("authFromTokenResponse: missing user identity");return{access_token:e.access_token,refresh_token:e.refresh_token,access_expires_at:r+e.access_expires_in,refresh_expires_at:r+e.refresh_expires_in,user:n}}let h=new Map;async function p(e){let t=h.get(e.refresh_token);if(t)return t;let r=(async()=>{let t=d(await (0,i.refreshAccessToken)(e.refresh_token),e.user);return l(t),t})();h.set(e.refresh_token,r);try{return await r}finally{h.delete(e.refresh_token)}}async function y(){let e=u();if(!e)return null;let t=Math.floor(Date.now()/1e3);if(e.access_expires_at-t>60)return e;try{return await p(e)}catch(e){return e instanceof i.AuthApiError&&401===e.status&&f(),null}}async function m(){let e=await y();if(!e)return null;try{return{me:await (0,i.fetchMe)(e.access_token),auth:e}}catch(e){if(e instanceof i.AuthApiError&&401===e.status){let e=u();if(!e)return null;try{let t=await p(e);return{me:await (0,i.fetchMe)(t.access_token),auth:t}}catch(e){e instanceof i.AuthApiError&&401===e.status&&f()}}return null}}e.s(["authFromTokenResponse",0,d,"deleteAuth",0,f,"deleteReminder",0,function(){let e=c();(0,t.existsSync)(e)&&(0,t.rmSync)(e,{force:!0})},"readAuth",0,u,"readReminder",0,function(){let e=c();if(!(0,t.existsSync)(e))return null;try{let r=(0,t.readFileSync)(e,"utf-8"),n=JSON.parse(r);if("number"!=typeof n.next_audit_at||"string"!=typeof n.user_email||"number"!=typeof n.set_at)return null;return{next_audit_at:n.next_audit_at,user_email:n.user_email,set_at:n.set_at}}catch{return null}},"whoAmI",0,m,"writeAuth",0,l,"writeReminder",0,function(e){(0,n.writeJsonAtomically)(c(),e)}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__0ed01_d._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module.exports=[50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},60526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},66680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},74533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},69005,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),s=e.i(61916),i=e.i(74677),o=e.i(69741),d=e.i(16795),u=e.i(87718),l=e.i(95169),c=e.i(47587),p=e.i(66012),h=e.i(70101),v=e.i(26937),_=e.i(10372),m=e.i(93695);e.i(20232);var f=e.i(220),R=e.i(89171),g=e.i(17707),x=e.i(6375),y=e.i(46501);let E=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;async function w(e){let t;await (0,y.initTelemetry)();let r=await (0,g.whoAmI)();if(!r)return(0,y.trackEvent)("audit_invite_sent",{status:"unauthorized",source:"dashboard"}),R.NextResponse.json({code:"unauthorized",message:"Sign in before sending invites."},{status:401});let a={},n=await e.text();if(n.trim().length>0)try{let e=JSON.parse(n);if(null===e||"object"!=typeof e||Array.isArray(e))return(0,y.trackEvent)("audit_invite_sent",{status:"validation_error",source:"dashboard",reason:"not_an_object",user_id:r.me.id}),R.NextResponse.json({code:"validation_error",message:"Request body must be a JSON object."},{status:400});a=e}catch{return(0,y.trackEvent)("audit_invite_sent",{status:"validation_error",source:"dashboard",reason:"malformed_json",user_id:r.me.id}),R.NextResponse.json({code:"validation_error",message:"Request body is not valid JSON."},{status:400})}if(!Array.isArray(a.to))return(0,y.trackEvent)("audit_invite_sent",{status:"validation_error",source:"dashboard",reason:"missing_to",user_id:r.me.id}),R.NextResponse.json({code:"validation_error",message:"`to` must be a list of email addresses."},{status:400});let s=[],i=new Set;for(let e of a.to){if("string"!=typeof e)continue;let t=e.trim().toLowerCase();t&&E.test(t)&&t!==r.me.email.toLowerCase()&&(i.has(t)||(i.add(t),s.push(t)))}if(0===s.length)return(0,y.trackEvent)("audit_invite_sent",{status:"validation_error",source:"dashboard",reason:"no_valid_recipients",user_id:r.me.id,input_count:Array.isArray(a.to)?a.to.length:0}),R.NextResponse.json({code:"validation_error",message:"Provide at least one valid email address (other than your own)."},{status:400});if(s.length>10)return(0,y.trackEvent)("audit_invite_sent",{status:"validation_error",source:"dashboard",reason:"too_many_recipients",user_id:r.me.id,input_count:s.length}),R.NextResponse.json({code:"validation_error",message:"Up to 10 recipients per invite batch. Please send the rest in a follow-up."},{status:400});"number"==typeof a.score&&Number.isFinite(a.score)&&(t=Math.max(0,Math.min(100,Math.round(a.score))));try{let e=await (0,x.sendInvites)(r.auth.access_token,s,t);return(0,y.trackEvent)("audit_invite_sent",{status:"success",source:"dashboard",user_id:r.me.id,sent_count:e.sent.length,failed_count:e.failed.length}),R.NextResponse.json(e,{status:200})}catch(t){if(t instanceof x.AuthApiError){(0,y.trackEvent)("audit_invite_sent",{status:"failed",source:"dashboard",user_id:r.me.id,error_code:t.code,http_status:t.status,recipient_count:s.length});let e=t.status>=200&&t.status<600?t.status:504;return R.NextResponse.json({code:t.code,message:t.message,...void 0!==t.retryAfterSecs?{retry_after_secs:t.retryAfterSecs}:{}},{status:e})}let e=t instanceof Error?t.name:"unknown";return(0,y.trackEvent)("audit_invite_sent",{status:"failed",source:"dashboard",user_id:r.me.id,error_code:"upstream_unreachable",error_name:e.slice(0,50),recipient_count:s.length}),R.NextResponse.json({code:"upstream_unreachable",message:"Invite service is unreachable. Please try again in a moment."},{status:502})}}e.s(["POST",0,w,"dynamic",0,"force-dynamic"],72993);var b=e.i(72993);let A=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/audit/invite/route",pathname:"/api/audit/invite",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/audit/invite/route.ts",nextConfigOutput:"standalone",userland:b,...{}}),{workAsyncStorage:C,workUnitAsyncStorage:N,serverHooks:S}=A;async function P(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),A.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let R="/api/audit/invite/route";R=R.replace(/\/index$/,"")||"/";let g=await A.prepare(e,t,{srcPage:R,multiZoneDraftMode:!1});if(!g)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:x,deploymentId:y,params:E,nextConfig:w,parsedUrl:b,isDraftMode:C,prerenderManifest:N,routerServerContext:S,isOnDemandRevalidate:P,revalidateOnlyGenerated:k,resolvedPathname:T,clientReferenceManifest:q,serverActionsManifest:O}=g,j=(0,o.normalizeAppPath)(R),I=!!(N.dynamicRoutes[j]||N.routes[T]),M=async()=>((null==S?void 0:S.render404)?await S.render404(e,t,b,!1):t.end("This page could not be found"),null);if(I&&!C){let e=!!N.routes[T],t=N.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(w.adapterPath)return await M();throw new m.NoFallbackError}}let H=null;!I||A.isDev||C||(H="/index"===(H=T)?"/":H);let U=!0===A.isDev||!I,D=I&&!U;O&&q&&(0,i.setManifestsSingleton)({page:R,clientReferenceManifest:q,serverActionsManifest:O});let $=e.method||"GET",F=(0,s.getTracer)(),K=F.getActiveScopeSpan(),L=!!(null==S?void 0:S.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),z=(0,n.getRequestMeta)(e,"incrementalCache")||await A.getIncrementalCache(e,w,N,B);null==z||z.resetRequestCache(),globalThis.__incrementalCache=z;let G={params:E,previewProps:N.preview,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:U,incrementalCache:z,cacheLifeProfiles:w.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>A.onRequestError(e,t,a,n,S)},sharedContext:{buildId:x,deploymentId:y}},J=new d.NodeNextRequest(e),V=new d.NodeNextResponse(t),W=u.NextRequestAdapter.fromNodeNextRequest(J,(0,u.signalFromNodeResponse)(t));try{let n,i=async e=>A.handle(W,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==l.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${$} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${$} ${R}`)}),o=async n=>{var s,o;let d=async({previousCacheEntry:r})=>{try{if(!B&&P&&k&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await i(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let o=G.renderOpts.pendingWaitUntil;o&&a.waitUntil&&(a.waitUntil(o),o=void 0);let d=G.renderOpts.collectedTags;if(!I)return await (0,p.sendResponse)(J,V,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);d&&(t[_.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=_.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=_.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await A.onRequestError(e,t,{routerKind:"App Router",routePath:R,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,S),t}},u=await A.handleResponse({req:e,nextConfig:w,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:k,responseGenerator:d,waitUntil:a.waitUntil,isMinimalMode:B});if(!I)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(o=u.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",P?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),C&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return B&&I||l.delete(_.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,v.getCacheControlHeader)(u.cacheControl)),await (0,p.sendResponse)(J,V,new Response(u.value.body,{headers:l,status:u.value.status||200})),null};L&&K?await o(K):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(l.BaseServerSpan.handleRequest,{spanName:`${$} ${R}`,kind:s.SpanKind.SERVER,attributes:{"http.method":$,"http.target":e.url}},o),void 0,!L))}catch(t){if(t instanceof m.NoFallbackError||await A.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,S),I)throw t;return await (0,p.sendResponse)(J,V,new Response(null,{status:500})),null}}e.s(["handler",0,P,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:N})},"routeModule",0,A,"serverHooks",0,S,"workAsyncStorage",0,C,"workUnitAsyncStorage",0,N],69005)},78081,e=>{e.v(t=>Promise.all(["server/chunks/[externals]__0h9_83k._.js","server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_01r25oi._.js"].map(t=>e.l(t))).then(()=>t(39702)))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0effm9m._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module.exports=[50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},60526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},66680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},74533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},43488,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),o=e.i(61916),s=e.i(74677),i=e.i(69741),l=e.i(16795),u=e.i(87718),d=e.i(95169),c=e.i(47587),p=e.i(66012),h=e.i(70101),R=e.i(26937),v=e.i(10372),g=e.i(93695);e.i(20232);var f=e.i(220),_=e.i(89171),m=e.i(6375),x=e.i(17707),E=e.i(46501);async function w(){await (0,E.initTelemetry)();let e=(0,x.readAuth)();if(!e)return(0,E.trackEvent)("audit_user_logged_out",{source:"dashboard",had_session:!1,upstream:"noop"}),_.NextResponse.json({authenticated:!1},{status:200});let t="skipped",r=null;try{await (0,m.logoutSession)(e.access_token,e.refresh_token),t="revoked"}catch(e){e instanceof m.AuthApiError&&401===e.status?t="revoked":(t="failed",r=e instanceof Error?e.message.slice(0,200):String(e).slice(0,200))}return(0,x.deleteAuth)(),(0,E.trackEvent)("audit_user_logged_out",{source:"dashboard",had_session:!0,upstream:t,upstream_error:r,user_id:e.user.id}),_.NextResponse.json({authenticated:!1,upstream:t},{status:200})}e.s(["POST",0,w,"dynamic",0,"force-dynamic"],19851);var C=e.i(19851);let y=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/auth/logout/route",pathname:"/api/auth/logout",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/auth/logout/route.ts",nextConfigOutput:"standalone",userland:C,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:N,serverHooks:T}=y;async function P(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),y.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let _="/api/auth/logout/route";_=_.replace(/\/index$/,"")||"/";let m=await y.prepare(e,t,{srcPage:_,multiZoneDraftMode:!1});if(!m)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:x,deploymentId:E,params:w,nextConfig:C,parsedUrl:A,isDraftMode:N,prerenderManifest:T,routerServerContext:P,isOnDemandRevalidate:b,revalidateOnlyGenerated:S,resolvedPathname:k,clientReferenceManifest:q,serverActionsManifest:O}=m,H=(0,i.normalizeAppPath)(_),I=!!(T.dynamicRoutes[H]||T.routes[k]),U=async()=>((null==P?void 0:P.render404)?await P.render404(e,t,A,!1):t.end("This page could not be found"),null);if(I&&!N){let e=!!T.routes[k],t=T.dynamicRoutes[H];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await U();throw new g.NoFallbackError}}let M=null;!I||y.isDev||N||(M="/index"===(M=k)?"/":M);let D=!0===y.isDev||!I,j=I&&!D;O&&q&&(0,s.setManifestsSingleton)({page:_,clientReferenceManifest:q,serverActionsManifest:O});let $=e.method||"GET",F=(0,o.getTracer)(),K=F.getActiveScopeSpan(),B=!!(null==P?void 0:P.isWrappedByNextServer),L=!!(0,n.getRequestMeta)(e,"minimalMode"),G=(0,n.getRequestMeta)(e,"incrementalCache")||await y.getIncrementalCache(e,C,T,L);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let V={params:w,previewProps:T.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:D,incrementalCache:G,cacheLifeProfiles:C.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>y.onRequestError(e,t,a,n,P)},sharedContext:{buildId:x,deploymentId:E}},W=new l.NodeNextRequest(e),X=new l.NodeNextResponse(t),z=u.NextRequestAdapter.fromNodeNextRequest(W,(0,u.signalFromNodeResponse)(t));try{let n,s=async e=>y.handle(z,V).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${$} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${$} ${_}`)}),i=async n=>{var o,i;let l=async({previousCacheEntry:r})=>{try{if(!L&&b&&S&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await s(n);e.fetchMetrics=V.renderOpts.fetchMetrics;let i=V.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=V.renderOpts.collectedTags;if(!I)return await (0,p.sendResponse)(W,X,o,V.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(o.headers);l&&(t[v.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,a=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:V.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await y.onRequestError(e,t,{routerKind:"App Router",routePath:_,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:j,isOnDemandRevalidate:b})},!1,P),t}},u=await y.handleResponse({req:e,nextConfig:C,cacheKey:M,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:T,isRoutePPREnabled:!1,isOnDemandRevalidate:b,revalidateOnlyGenerated:S,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:L});if(!I)return null;if((null==u||null==(o=u.value)?void 0:o.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(i=u.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});L||t.setHeader("x-nextjs-cache",b?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),N&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return L&&I||d.delete(v.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,R.getCacheControlHeader)(u.cacheControl)),await (0,p.sendResponse)(W,X,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};B&&K?await i(K):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(d.BaseServerSpan.handleRequest,{spanName:`${$} ${_}`,kind:o.SpanKind.SERVER,attributes:{"http.method":$,"http.target":e.url}},i),void 0,!B))}catch(t){if(t instanceof g.NoFallbackError||await y.onRequestError(e,t,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:j,isOnDemandRevalidate:b})},!1,P),I)throw t;return await (0,p.sendResponse)(W,X,new Response(null,{status:500})),null}}e.s(["handler",0,P,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:N})},"routeModule",0,y,"serverHooks",0,T,"workAsyncStorage",0,A,"workUnitAsyncStorage",0,N],43488)},78081,e=>{e.v(t=>Promise.all(["server/chunks/[externals]__0h9_83k._.js","server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_01r25oi._.js"].map(t=>e.l(t))).then(()=>t(39702)))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0ix8gm7._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module.exports=[50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},60526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},66680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},74533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},52263,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),s=e.i(61916),i=e.i(74677),o=e.i(69741),d=e.i(16795),l=e.i(87718),u=e.i(95169),c=e.i(47587),p=e.i(66012),h=e.i(70101),m=e.i(26937),_=e.i(10372),R=e.i(93695);e.i(20232);var f=e.i(220),v=e.i(89171),x=e.i(17707),E=e.i(6375),g=e.i(46501);async function w(){let e=await (0,x.whoAmI)(),t=(0,x.readReminder)();return t&&e&&e.me.email===t.user_email?v.NextResponse.json({authenticated:!0,reminder:{next_audit_at:t.next_audit_at,user_email:t.user_email,set_at:t.set_at}}):v.NextResponse.json({authenticated:!!e,reminder:null})}async function y(e){let t;await (0,g.initTelemetry)();let r=await (0,x.whoAmI)();if(!r)return(0,g.trackEvent)("audit_reminder_set",{status:"unauthorized",source:"dashboard"}),v.NextResponse.json({code:"unauthorized",message:"Sign in before setting a reminder."},{status:401});let a={},n=await e.text();if(n.trim().length>0){let e;try{e=JSON.parse(n)}catch{return(0,g.trackEvent)("audit_reminder_set",{status:"validation_error",source:"dashboard",reason:"malformed_json",user_id:r.me.id}),v.NextResponse.json({code:"validation_error",message:"Request body is not valid JSON."},{status:400})}if(null===e||"object"!=typeof e||Array.isArray(e))return(0,g.trackEvent)("audit_reminder_set",{status:"validation_error",source:"dashboard",reason:"not_an_object",user_id:r.me.id}),v.NextResponse.json({code:"validation_error",message:"Request body must be a JSON object."},{status:400});a=e}let s=Math.floor(Date.now()/1e3),i=s+31536e3;if((t="number"==typeof a.at&&Number.isFinite(a.at)?Math.floor(a.at):s+86400*("number"==typeof a.in_days&&Number.isFinite(a.in_days)?Math.max(1,Math.min(365,Math.floor(a.in_days))):7))<=s)return(0,g.trackEvent)("audit_reminder_set",{status:"validation_error",source:"dashboard",reason:"in_the_past",user_id:r.me.id}),v.NextResponse.json({code:"validation_error",message:"Reminder must be in the future."},{status:400});if(t>i)return(0,g.trackEvent)("audit_reminder_set",{status:"validation_error",source:"dashboard",reason:"too_far_in_future",user_id:r.me.id}),v.NextResponse.json({code:"validation_error",message:"Reminder must be within 365 days. Did you pass milliseconds instead of seconds?"},{status:400});let o={next_audit_at:t,user_email:r.me.email,set_at:s};(0,x.writeReminder)(o);let d="skipped",l=null;try{await (0,E.scheduleReminder)(r.auth.access_token,{at:t}),d="scheduled"}catch(e){d="failed",l=e instanceof E.AuthApiError?`${e.code}: ${e.message}`.slice(0,200):e instanceof Error?e.message.slice(0,200):String(e).slice(0,200)}return(0,g.trackEvent)("audit_reminder_set",{status:"success",source:"dashboard",user_id:r.me.id,offset_days:Math.round((t-s)/86400),upstream:d,upstream_error:l}),v.NextResponse.json({authenticated:!0,reminder:o})}async function b(){await (0,g.initTelemetry)();let e=await (0,x.whoAmI)(),t=(0,x.readReminder)();(0,x.deleteReminder)();let r="skipped",a=null;if(e)try{await (0,E.cancelReminder)(e.auth.access_token),r="cancelled"}catch(e){r="failed",a=e instanceof E.AuthApiError?`${e.code}: ${e.message}`.slice(0,200):e instanceof Error?e.message.slice(0,200):String(e).slice(0,200)}return(0,g.trackEvent)("audit_reminder_cleared",{source:"dashboard",had_local_reminder:null!==t,user_id:e?.me.id??null,upstream:r,upstream_error:a}),v.NextResponse.json({ok:!0})}e.s(["DELETE",0,b,"GET",0,w,"POST",0,y,"dynamic",0,"force-dynamic"],13757);var A=e.i(13757);let N=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/auth/reminder/route",pathname:"/api/auth/reminder",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/auth/reminder/route.ts",nextConfigOutput:"standalone",userland:A,...{}}),{workAsyncStorage:C,workUnitAsyncStorage:T,serverHooks:S}=N;async function k(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),N.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let v="/api/auth/reminder/route";v=v.replace(/\/index$/,"")||"/";let x=await N.prepare(e,t,{srcPage:v,multiZoneDraftMode:!1});if(!x)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:E,deploymentId:g,params:w,nextConfig:y,parsedUrl:b,isDraftMode:A,prerenderManifest:C,routerServerContext:T,isOnDemandRevalidate:S,revalidateOnlyGenerated:k,resolvedPathname:P,clientReferenceManifest:q,serverActionsManifest:O}=x,j=(0,o.normalizeAppPath)(v),M=!!(C.dynamicRoutes[j]||C.routes[P]),I=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,b,!1):t.end("This page could not be found"),null);if(M&&!A){let e=!!C.routes[P],t=C.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(y.adapterPath)return await I();throw new R.NoFallbackError}}let H=null;!M||N.isDev||A||(H="/index"===(H=P)?"/":H);let D=!0===N.isDev||!M,U=M&&!D;O&&q&&(0,i.setManifestsSingleton)({page:v,clientReferenceManifest:q,serverActionsManifest:O});let $=e.method||"GET",F=(0,s.getTracer)(),K=F.getActiveScopeSpan(),B=!!(null==T?void 0:T.isWrappedByNextServer),L=!!(0,n.getRequestMeta)(e,"minimalMode"),G=(0,n.getRequestMeta)(e,"incrementalCache")||await N.getIncrementalCache(e,y,C,L);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let z={params:w,previewProps:C.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:D,incrementalCache:G,cacheLifeProfiles:y.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>N.onRequestError(e,t,a,n,T)},sharedContext:{buildId:E,deploymentId:g}},J=new d.NodeNextRequest(e),V=new d.NodeNextResponse(t),W=l.NextRequestAdapter.fromNodeNextRequest(J,(0,l.signalFromNodeResponse)(t));try{let n,i=async e=>N.handle(W,z).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${$} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${$} ${v}`)}),o=async n=>{var s,o;let d=async({previousCacheEntry:r})=>{try{if(!L&&S&&k&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await i(n);e.fetchMetrics=z.renderOpts.fetchMetrics;let o=z.renderOpts.pendingWaitUntil;o&&a.waitUntil&&(a.waitUntil(o),o=void 0);let d=z.renderOpts.collectedTags;if(!M)return await (0,p.sendResponse)(J,V,s,z.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);d&&(t[_.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==z.renderOpts.collectedRevalidate&&!(z.renderOpts.collectedRevalidate>=_.INFINITE_CACHE)&&z.renderOpts.collectedRevalidate,a=void 0===z.renderOpts.collectedExpire||z.renderOpts.collectedExpire>=_.INFINITE_CACHE?void 0:z.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await N.onRequestError(e,t,{routerKind:"App Router",routePath:v,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:S})},!1,T),t}},l=await N.handleResponse({req:e,nextConfig:y,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:S,revalidateOnlyGenerated:k,responseGenerator:d,waitUntil:a.waitUntil,isMinimalMode:L});if(!M)return null;if((null==l||null==(s=l.value)?void 0:s.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(o=l.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});L||t.setHeader("x-nextjs-cache",S?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(l.value.headers);return L&&M||u.delete(_.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,m.getCacheControlHeader)(l.cacheControl)),await (0,p.sendResponse)(J,V,new Response(l.value.body,{headers:u,status:l.value.status||200})),null};B&&K?await o(K):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${$} ${v}`,kind:s.SpanKind.SERVER,attributes:{"http.method":$,"http.target":e.url}},o),void 0,!B))}catch(t){if(t instanceof R.NoFallbackError||await N.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:S})},!1,T),M)throw t;return await (0,p.sendResponse)(J,V,new Response(null,{status:500})),null}}e.s(["handler",0,k,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:T})},"routeModule",0,N,"serverHooks",0,S,"workAsyncStorage",0,C,"workUnitAsyncStorage",0,T],52263)},78081,e=>{e.v(t=>Promise.all(["server/chunks/[externals]__0h9_83k._.js","server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_01r25oi._.js"].map(t=>e.l(t))).then(()=>t(39702)))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0ji11a-._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module.exports=[50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},60526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},66680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},74533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},20177,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),s=e.i(59756),i=e.i(61916),n=e.i(74677),o=e.i(69741),d=e.i(16795),l=e.i(87718),u=e.i(95169),c=e.i(47587),p=e.i(66012),h=e.i(70101),v=e.i(26937),m=e.i(10372),_=e.i(93695);e.i(20232);var R=e.i(220),f=e.i(89171),g=e.i(6375),E=e.i(17707),x=e.i(46501),w=e.i(10659);async function y(e){await (0,x.initTelemetry)();let t={};try{t=await e.json()}catch{return(0,x.trackEvent)("audit_otp_verified",{status:"validation_error",source:"dashboard",reason:"invalid_json"}),f.NextResponse.json({code:"validation_error",message:"Invalid JSON body"},{status:400})}if("string"!=typeof t.email||!t.email.trim())return(0,x.trackEvent)("audit_otp_verified",{status:"validation_error",source:"dashboard",reason:"missing_email"}),f.NextResponse.json({code:"validation_error",message:"email is required"},{status:400});if("string"!=typeof t.code||!t.code.trim())return(0,x.trackEvent)("audit_otp_verified",{status:"validation_error",source:"dashboard",reason:"missing_code",email:t.email.trim().toLowerCase()}),f.NextResponse.json({code:"validation_error",message:"code is required"},{status:400});let r=t.email.trim().toLowerCase();try{let e=await (0,g.verifyLoginCode)(t.email,t.code);return(0,E.writeAuth)((0,E.authFromTokenResponse)(e)),(0,x.trackEvent)("audit_user_identity_linked",{source:"audit_set_reminder_auth_dialog",user_id:e.user.id,email:e.user.email,local_random_id:(0,w.getInstanceId)(),$set:{email:e.user.email,user_id:e.user.id}}),(0,x.trackEvent)("audit_otp_verified",{status:"success",source:"dashboard",user_id:e.user.id,email:e.user.email}),f.NextResponse.json({authenticated:!0,user:{id:e.user.id,email:e.user.email}},{status:200})}catch(t){if(t instanceof g.AuthApiError){(0,x.trackEvent)("audit_otp_verified",{status:"failed",source:"dashboard",email:r,error_code:t.code,http_status:t.status});let e=t.status>=200&&t.status<600?t.status:504;return f.NextResponse.json({code:t.code,message:t.message},{status:e})}let e=t instanceof Error?t.message:String(t);return(0,x.trackEvent)("audit_otp_verified",{status:"failed",source:"dashboard",email:r,error_code:"upstream_unreachable",error_message:e.slice(0,200)}),f.NextResponse.json({code:"upstream_unreachable",message:`api-server unreachable: ${e}`},{status:502})}}e.s(["POST",0,y,"dynamic",0,"force-dynamic"],16241);var C=e.i(16241);let A=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/auth/login-verify/route",pathname:"/api/auth/login-verify",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/auth/login-verify/route.ts",nextConfigOutput:"standalone",userland:C,...{}}),{workAsyncStorage:b,workUnitAsyncStorage:N,serverHooks:T}=A;async function P(e,t,a){a.requestMeta&&(0,s.setRequestMeta)(e,a.requestMeta),A.isDev&&(0,s.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/auth/login-verify/route";f=f.replace(/\/index$/,"")||"/";let g=await A.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!g)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:E,deploymentId:x,params:w,nextConfig:y,parsedUrl:C,isDraftMode:b,prerenderManifest:N,routerServerContext:T,isOnDemandRevalidate:P,revalidateOnlyGenerated:k,resolvedPathname:q,clientReferenceManifest:S,serverActionsManifest:O}=g,I=(0,o.normalizeAppPath)(f),j=!!(N.dynamicRoutes[I]||N.routes[q]),H=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,C,!1):t.end("This page could not be found"),null);if(j&&!b){let e=!!N.routes[q],t=N.dynamicRoutes[I];if(t&&!1===t.fallback&&!e){if(y.adapterPath)return await H();throw new _.NoFallbackError}}let U=null;!j||A.isDev||b||(U="/index"===(U=q)?"/":U);let M=!0===A.isDev||!j,D=j&&!M;O&&S&&(0,n.setManifestsSingleton)({page:f,clientReferenceManifest:S,serverActionsManifest:O});let $=e.method||"GET",F=(0,i.getTracer)(),K=F.getActiveScopeSpan(),L=!!(null==T?void 0:T.isWrappedByNextServer),B=!!(0,s.getRequestMeta)(e,"minimalMode"),G=(0,s.getRequestMeta)(e,"incrementalCache")||await A.getIncrementalCache(e,y,N,B);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let V={params:w,previewProps:N.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:M,incrementalCache:G,cacheLifeProfiles:y.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,s)=>A.onRequestError(e,t,a,s,T)},sharedContext:{buildId:E,deploymentId:x}},W=new d.NodeNextRequest(e),X=new d.NodeNextResponse(t),z=l.NextRequestAdapter.fromNodeNextRequest(W,(0,l.signalFromNodeResponse)(t));try{let s,n=async e=>A.handle(z,V).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${$} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),s&&s!==e&&(s.setAttribute("http.route",a),s.updateName(t))}else e.updateName(`${$} ${f}`)}),o=async s=>{var i,o;let d=async({previousCacheEntry:r})=>{try{if(!B&&P&&k&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await n(s);e.fetchMetrics=V.renderOpts.fetchMetrics;let o=V.renderOpts.pendingWaitUntil;o&&a.waitUntil&&(a.waitUntil(o),o=void 0);let d=V.renderOpts.collectedTags;if(!j)return await (0,p.sendResponse)(W,X,i,V.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(i.headers);d&&(t[m.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,a=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:V.renderOpts.collectedExpire;return{value:{kind:R.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await A.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,T),t}},l=await A.handleResponse({req:e,nextConfig:y,cacheKey:U,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:k,responseGenerator:d,waitUntil:a.waitUntil,isMinimalMode:B});if(!j)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==R.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(o=l.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",P?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(l.value.headers);return B&&j||u.delete(m.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,v.getCacheControlHeader)(l.cacheControl)),await (0,p.sendResponse)(W,X,new Response(l.value.body,{headers:u,status:l.value.status||200})),null};L&&K?await o(K):(s=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${$} ${f}`,kind:i.SpanKind.SERVER,attributes:{"http.method":$,"http.target":e.url}},o),void 0,!L))}catch(t){if(t instanceof _.NoFallbackError||await A.onRequestError(e,t,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,T),j)throw t;return await (0,p.sendResponse)(W,X,new Response(null,{status:500})),null}}e.s(["handler",0,P,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:N})},"routeModule",0,A,"serverHooks",0,T,"workAsyncStorage",0,b,"workUnitAsyncStorage",0,N],20177)},78081,e=>{e.v(t=>Promise.all(["server/chunks/[externals]__0h9_83k._.js","server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_01r25oi._.js"].map(t=>e.l(t))).then(()=>t(39702)))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0ojwjxl._.js.map
|