failproofai 0.0.10 → 0.0.11-beta.10
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/app-path-routes-manifest.json +9 -1
- package/.next/standalone/.next/build-manifest.json +10 -10
- package/.next/standalone/.next/prerender-manifest.json +3 -32
- package/.next/standalone/.next/required-server-files.json +2 -1
- package/.next/standalone/.next/routes-manifest.json +51 -3
- package/.next/standalone/.next/server/app/_global-error/page/build-manifest.json +7 -7
- 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 +6 -6
- 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/build-manifest.json +7 -7
- package/.next/standalone/.next/server/app/_not-found/page/next-font-manifest.json +2 -6
- 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 +12 -13
- 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 +16 -16
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +16 -16
- 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/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/audit/invite/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/audit/invite/route.js +7 -0
- package/.next/standalone/.next/server/app/api/audit/invite/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/audit/invite/route_client-reference-manifest.js +3 -0
- package/.next/standalone/.next/server/app/api/audit/run/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/audit/run/route/build-manifest.json +9 -0
- package/.next/standalone/.next/server/app/api/audit/run/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/audit/run/route.js +8 -0
- package/.next/standalone/.next/server/app/api/audit/run/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/audit/run/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/audit/run/route_client-reference-manifest.js +3 -0
- package/.next/standalone/.next/server/app/api/audit/status/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/audit/status/route/build-manifest.json +9 -0
- package/.next/standalone/.next/server/app/api/audit/status/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/audit/status/route.js +6 -0
- package/.next/standalone/.next/server/app/api/audit/status/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/audit/status/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/audit/status/route_client-reference-manifest.js +3 -0
- package/.next/standalone/.next/server/app/api/auth/login-request/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/auth/login-request/route/build-manifest.json +9 -0
- package/.next/standalone/.next/server/app/api/auth/login-request/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/auth/login-request/route.js +6 -0
- package/.next/standalone/.next/server/app/api/auth/login-request/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/auth/login-request/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/auth/login-request/route_client-reference-manifest.js +3 -0
- package/.next/standalone/.next/server/app/api/auth/login-verify/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/auth/login-verify/route/build-manifest.json +9 -0
- package/.next/standalone/.next/server/app/api/auth/login-verify/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/auth/login-verify/route.js +7 -0
- package/.next/standalone/.next/server/app/api/auth/login-verify/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/auth/login-verify/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/auth/login-verify/route_client-reference-manifest.js +3 -0
- package/.next/standalone/.next/server/app/api/auth/logout/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/auth/logout/route/build-manifest.json +9 -0
- package/.next/standalone/.next/server/app/api/auth/logout/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/auth/logout/route.js +7 -0
- package/.next/standalone/.next/server/app/api/auth/logout/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/auth/logout/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/auth/logout/route_client-reference-manifest.js +3 -0
- package/.next/standalone/.next/server/app/api/auth/reminder/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/auth/reminder/route/build-manifest.json +9 -0
- package/.next/standalone/.next/server/app/api/auth/reminder/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/auth/reminder/route.js +7 -0
- package/.next/standalone/.next/server/app/api/auth/reminder/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/auth/reminder/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/auth/reminder/route_client-reference-manifest.js +3 -0
- package/.next/standalone/.next/server/app/api/auth/status/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/auth/status/route/build-manifest.json +9 -0
- package/.next/standalone/.next/server/app/api/auth/status/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/auth/status/route.js +7 -0
- package/.next/standalone/.next/server/app/api/auth/status/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/auth/status/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/auth/status/route_client-reference-manifest.js +3 -0
- package/.next/standalone/.next/server/app/api/download/[project]/[session]/route.js +3 -3
- package/.next/standalone/.next/server/app/api/download/[project]/[session]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/audit/page/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/audit/page/build-manifest.json +18 -0
- package/.next/standalone/.next/server/app/audit/page/next-font-manifest.json +6 -0
- package/.next/standalone/.next/server/app/audit/page/react-loadable-manifest.json +1 -0
- package/.next/standalone/.next/server/app/audit/page/server-reference-manifest.json +29 -0
- package/.next/standalone/.next/server/app/audit/page.js +17 -0
- package/.next/standalone/.next/server/app/audit/page.js.map +5 -0
- package/.next/standalone/.next/server/app/audit/page.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/audit/page_client-reference-manifest.js +3 -0
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +16 -17
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +16 -17
- 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 -3
- package/.next/standalone/.next/server/app/page/build-manifest.json +7 -7
- package/.next/standalone/.next/server/app/page/next-font-manifest.json +2 -6
- package/.next/standalone/.next/server/app/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/page.js +14 -15
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/policies/page/build-manifest.json +7 -7
- package/.next/standalone/.next/server/app/policies/page/next-font-manifest.json +2 -6
- package/.next/standalone/.next/server/app/policies/page/server-reference-manifest.json +8 -8
- package/.next/standalone/.next/server/app/policies/page.js +16 -16
- package/.next/standalone/.next/server/app/policies/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/policies/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page/build-manifest.json +7 -7
- package/.next/standalone/.next/server/app/project/[name]/page/next-font-manifest.json +2 -6
- 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 +16 -17
- package/.next/standalone/.next/server/app/project/[name]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/build-manifest.json +7 -7
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/next-font-manifest.json +2 -6
- 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 +19 -20
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects/page/build-manifest.json +7 -7
- package/.next/standalone/.next/server/app/projects/page/next-font-manifest.json +2 -6
- package/.next/standalone/.next/server/app/projects/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/projects/page.js +15 -16
- 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-paths-manifest.json +9 -1
- package/.next/standalone/.next/server/chunks/[externals]__14odj07._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[externals]__0z0j--b._.js → [externals]__1nl3dvw._.js} +1 -1
- package/.next/standalone/.next/server/chunks/{[externals]__0-p9.k~._.js → [externals]__1s61mel._.js} +1 -1
- package/.next/standalone/.next/server/chunks/{[externals]_node_os_06ur78j._.js → [externals]_node_os_0by37l-._.js} +1 -1
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0kjo7d_._.js → [root-of-the-server]__0_0xu5z._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0cag8qd._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0z-180.._.js → [root-of-the-server]__0cycwg6._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__08px0ym._.js → [root-of-the-server]__0f7mikp._.js} +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0q-v9z2._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0rv7m0k._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0g48iv.._.js → [root-of-the-server]__0sb_5m8._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0j8-xkl._.js → [root-of-the-server]__0xuaoik._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__13h8pzr._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__17g9wh7._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1_mqemn._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0vlhtkc._.js → [root-of-the-server]__1hgv_75._.js} +1 -1
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0wu7fr7._.js → [root-of-the-server]__1jm9fw6._.js} +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1legmza._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__044xt9.._.js → [root-of-the-server]__1m2_4t0._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0yfq1yr._.js → [root-of-the-server]__1mhmdzs._.js} +1 -1
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0zso~62._.js → [root-of-the-server]__1ou2ehh._.js} +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1qxztj-._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1r1h8v9._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1rhmvod._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1uatkiv._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0.~nmr9._.js → [root-of-the-server]__1w9zl9-._.js} +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1y6gxxb._.js +3 -0
- package/.next/standalone/.next/server/chunks/{_0ebx_lc._.js → _0p53ge1._.js} +2 -2
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_audit_invite_route_actions_0-2n5sy.js +3 -0
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_audit_run_route_actions_1qgp9io.js +3 -0
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_audit_status_route_actions_1f7pjof.js +3 -0
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_auth_login-request_route_actions_1c49co0.js +3 -0
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_auth_login-verify_route_actions_1r3slzk.js +3 -0
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_auth_logout_route_actions_0regwyr.js +3 -0
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_auth_reminder_route_actions_1kjgxf8.js +3 -0
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_auth_status_route_actions_1aho9zu.js +3 -0
- package/.next/standalone/.next/server/chunks/{_next-internal_server_app_api_download_[project]_[session]_route_actions_0wb00i-.js → _next-internal_server_app_api_download_[project]_[session]_route_actions_1is7vs7.js} +1 -1
- package/.next/standalone/.next/server/chunks/{lib_logger_ts_047tt9f._.js → lib_logger_ts_07e65t5._.js} +1 -1
- package/.next/standalone/.next/server/chunks/node_modules_0-tu4ot._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_0ttxbz7._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_1bnh1y0._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_1epycqa._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_1wpdcgo._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_17k9e3w.js +23 -0
- package/.next/standalone/.next/server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_01r25oi._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_09z9-p7._.js +3 -0
- package/.next/standalone/.next/server/chunks/package_json_[json]_cjs_1nxcc4v._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{[externals]__12dv.x0._.js → [externals]__1_g_b3t._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[externals]_node_async_hooks_0v0ln8c._.js → [externals]_node_async_hooks_1gjz99j._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__01tn1ou._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0808sha._.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0e4-6d8._.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ehe24g._.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0f62vu9._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0g253ve._.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0h12me5._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0k65l27._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0vxf0_g._.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__11rtg6s._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__12mcauo._.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__14dd6h8._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0t5l7a5._.js → [root-of-the-server]__1d8omgc._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__10xgshr._.js → [root-of-the-server]__1dky4g0._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1e-x7j4._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1fax1sl._.js +19 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1mt35_w._.js +221 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1pcxxwg._.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1usf8v2._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1uvfwgr._.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1w6v_1u._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__212nf49._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{_03d7qyt._.js → _05whahf._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_0il3fl1._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_11_p9y8._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{_0xb8ngh._.js → _1kje4fm._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{_0zx~s__._.js → _1p0-leb._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{app_04qfs8z._.js → app_087bt9w._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{app_0uosk1e._.js → app_1fvisnp._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{app_13f0ohr._.js → app_209u41o._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_audit__components_audit-dashboard_tsx_0p9ud47._.js +65 -0
- package/.next/standalone/.next/server/chunks/ssr/app_audit_loading_tsx_1j1kc6j._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{app_error_tsx_11t4ysq._.js → app_error_tsx_1zds1ns._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{app_global-error_tsx_0m9qisk._.js → app_global-error_tsx_113y3za._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_global-error_tsx_1kp6l3x._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/app_policies_hooks-client_tsx_19dqvpc._.js +8 -0
- package/.next/standalone/.next/server/chunks/ssr/{app_project_[name]_error_tsx_0.9-fod._.js → app_project_[name]_error_tsx_1v02_5n._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{app_project_[name]_loading_tsx_03g9xy0._.js → app_project_[name]_loading_tsx_05-l4uf._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{app_project_[name]_session_[sessionId]_error_tsx_0ler-mr._.js → app_project_[name]_session_[sessionId]_error_tsx_0-lj3nd._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{app_project_[name]_session_[sessionId]_loading_tsx_0c0e3yx._.js → app_project_[name]_session_[sessionId]_loading_tsx_0l4aixs._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_projects_loading_tsx_20-3u8b._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{lib_codex-projects_ts_0eosib~._.js → lib_codex-projects_ts_0pqlw37._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{lib_copilot-projects_ts_0r8xkn8._.js → lib_copilot-projects_ts_19wl7tp._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{lib_cursor-projects_ts_0qt1scg._.js → lib_cursor-projects_ts_18-iwyk._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{lib_gemini-projects_ts_0sl~yqr._.js → lib_gemini-projects_ts_1c7bgx-._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{lib_opencode-projects_ts_0op9gyp._.js → lib_opencode-projects_ts_15bjxkm._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{lib_pi-projects_ts_103tsh1._.js → lib_pi-projects_ts_1wikofb._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/lib_utils_ts_0az0sfq._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_1ynf7el._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_html-to-image_es_index_0nye1s3.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_html-to-image_es_index_1ao30b1.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_next_0rd0oc-._.js → node_modules_next_1a1kch7._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_0uboya6._.js +6 -0
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_next_dist_11dij6w._.js → node_modules_next_dist_1d_onnt._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_next_dist_client_components_0inhx6q._.js → node_modules_next_dist_client_components_0wpq8j3._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_next_dist_client_components_builtin_forbidden_0ghu-f7.js → node_modules_next_dist_client_components_builtin_forbidden_0symwr9.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_next_dist_client_components_builtin_unauthorized_0cjv-23.js → node_modules_next_dist_client_components_builtin_unauthorized_0l_sp0x.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0-uvagv.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_03c7gi5.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_09p-8om.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0v-kfiu.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0xrgzyz.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1806lsc.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1j6dd-e.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1sa65r-.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuzn._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/src_hooks_1ezd2jf._.js +5 -0
- package/.next/standalone/.next/server/chunks/ssr/src_hooks_1tnuifj._.js +5 -0
- package/.next/standalone/.next/server/functions-config-manifest.json +2 -2
- package/.next/standalone/.next/server/instrumentation.js +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +10 -10
- package/.next/standalone/.next/server/middleware.js +2 -2
- package/.next/standalone/.next/server/next-font-manifest.js +1 -1
- package/.next/standalone/.next/server/next-font-manifest.json +2 -21
- 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 +27 -9
- package/.next/standalone/.next/static/{dAuQps6jUwCz9X1Q5FFOO → DOSSF5hRUtt3-QZEm-ZIk}/_clientMiddlewareManifest.js +2 -2
- package/.next/standalone/.next/static/chunks/{0pkl..xgo-qox.js → 02e80j0576qfu.js} +1 -1
- package/.next/standalone/.next/static/chunks/{07uz2g0_38qia.js → 03fmihek9n986.js} +1 -1
- package/.next/standalone/.next/static/chunks/0f7d7hnbh4djs.js +1 -0
- package/.next/standalone/.next/static/chunks/0h7auy7hzjyhw.js +1 -0
- package/.next/standalone/.next/static/chunks/0wwt5o04i4zwh.js +1 -0
- package/.next/standalone/.next/static/chunks/0zbxssxh53n-3.js +1 -0
- package/.next/standalone/.next/static/chunks/13f1kmjea-0md.js +2 -0
- package/.next/standalone/.next/static/chunks/13xzda05yw19e.js +1 -0
- package/.next/standalone/.next/static/chunks/{150i0n26fnvso.js → 1__i9af9g78vd.js} +1 -1
- package/.next/standalone/.next/static/chunks/1uxa5lm6yco79.js +1 -0
- package/.next/standalone/.next/static/chunks/20dqelk3xz_ya.css +1 -0
- package/.next/standalone/.next/static/chunks/{0j171xiqge4rv.js → 29lzaddhez98q.js} +1 -1
- package/.next/standalone/.next/static/chunks/29nrs5xs9c4hx.css +2 -0
- package/.next/standalone/.next/static/chunks/{0lt8ko3lw.5yt.js → 2b_e9tyly10lo.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0rnqmir4cd5p9.js → 2h0dkzyy0vocp.js} +1 -1
- package/.next/standalone/.next/static/chunks/2lp3a3a3_4_9o.js +63 -0
- package/.next/standalone/.next/static/chunks/{179yytvmam0ug.js → 2nt_slonrn0rw.js} +1 -1
- package/.next/standalone/.next/static/chunks/2plcgtv_tkv9t.js +1 -0
- package/.next/standalone/.next/static/chunks/33k2epr1iz8_z.js +6 -0
- package/.next/standalone/.next/static/chunks/{0d3shmwh5_nmn.js → 33u59vf_8xpd-.js} +1 -1
- package/.next/standalone/.next/static/chunks/3zkg2s2vzxc3d.js +1 -0
- package/.next/standalone/.next/static/chunks/{turbopack-05z7a19q43zfq.js → turbopack-3lrm4f20fz89b.js} +1 -1
- package/.next/standalone/SECURITY.md +73 -0
- package/.next/standalone/app/actions/get-audit-result.ts +35 -0
- package/.next/standalone/app/api/audit/_state.ts +79 -0
- package/.next/standalone/app/api/audit/invite/route.ts +183 -0
- package/.next/standalone/app/api/audit/run/route.ts +103 -0
- package/.next/standalone/app/api/audit/status/route.ts +24 -0
- package/.next/standalone/app/api/auth/login-request/route.ts +91 -0
- package/.next/standalone/app/api/auth/login-verify/route.ts +98 -0
- package/.next/standalone/app/api/auth/logout/route.ts +48 -0
- package/.next/standalone/app/api/auth/reminder/route.ts +213 -0
- package/.next/standalone/app/api/auth/status/route.ts +42 -0
- package/.next/standalone/app/audit/_components/audit-dashboard.tsx +397 -0
- package/.next/standalone/app/audit/_components/audit-poster.tsx +326 -0
- package/.next/standalone/app/audit/_components/audit-progress-strip.tsx +98 -0
- package/.next/standalone/app/audit/_components/auth-dialog.tsx +375 -0
- package/.next/standalone/app/audit/_components/come-back-better-section.tsx +333 -0
- package/.next/standalone/app/audit/_components/empty-state.tsx +152 -0
- package/.next/standalone/app/audit/_components/how-to-improve-section.tsx +187 -0
- package/.next/standalone/app/audit/_components/invite-dialog.tsx +227 -0
- package/.next/standalone/app/audit/_components/quirks-section.tsx +75 -0
- package/.next/standalone/app/audit/_components/report-footer.tsx +35 -0
- package/.next/standalone/app/audit/_components/rerun-button.tsx +119 -0
- package/.next/standalone/app/audit/_components/run-progress.tsx +120 -0
- package/.next/standalone/app/audit/_components/share-templates.ts +94 -0
- package/.next/standalone/app/audit/_components/sigil.tsx +36 -0
- package/.next/standalone/app/audit/_components/strengths-section.tsx +45 -0
- package/.next/standalone/app/audit/audit-styles.css +1178 -0
- package/.next/standalone/app/audit/loading.tsx +24 -0
- package/.next/standalone/app/audit/page.tsx +63 -0
- package/.next/standalone/app/components/sessions-list.tsx +77 -80
- package/.next/standalone/app/globals.css +754 -139
- package/.next/standalone/app/layout.tsx +6 -8
- package/.next/standalone/app/policies/hooks-client.tsx +340 -141
- package/.next/standalone/app/project/[name]/page.tsx +31 -37
- package/.next/standalone/app/projects/loading.tsx +30 -8
- package/.next/standalone/app/projects/page.tsx +66 -17
- package/.next/standalone/assets/audit/Audit Report.html +22 -0
- package/.next/standalone/assets/audit/Show Off Your Agent.html +22 -0
- package/.next/standalone/assets/audit/archetypes.jsx +277 -0
- package/.next/standalone/assets/audit/assets/fonts/bitcount-prop-single.woff2 +0 -0
- package/.next/standalone/assets/audit/audit.jsx +825 -0
- package/.next/standalone/assets/audit/poster-styles.css +424 -0
- package/.next/standalone/assets/audit/poster.jsx +247 -0
- package/.next/standalone/assets/audit/screenshots/poster-optimist.png +0 -0
- package/.next/standalone/assets/audit/screenshots/poster-scrolled.png +0 -0
- package/.next/standalone/assets/audit/styles.css +1225 -0
- package/.next/standalone/assets/audit/tweaks-panel.jsx +425 -0
- package/.next/standalone/assets/logos/company/icon.svg +1 -0
- package/.next/standalone/assets/logos/company/logo.svg +1 -0
- package/.next/standalone/components/navbar.tsx +119 -65
- package/.next/standalone/components/reach-developers.tsx +39 -11
- package/.next/standalone/lib/atomic-write.ts +67 -0
- package/.next/standalone/lib/auth/api-server-client.ts +306 -0
- package/.next/standalone/lib/auth/auth-store.ts +250 -0
- package/.next/standalone/lib/claude-sessions.ts +181 -0
- package/.next/standalone/lib/client-telemetry.ts +2 -0
- package/.next/standalone/lib/fetch-with-timeout.ts +59 -0
- package/.next/standalone/lib/share-card.ts +144 -0
- package/.next/standalone/lib/telemetry.ts +12 -7
- package/.next/standalone/node_modules/@next/env/package.json +2 -2
- package/.next/standalone/node_modules/next/dist/build/static-paths/app.js +2 -1
- package/.next/standalone/node_modules/next/dist/build/swc/index.js +1 -1
- package/.next/standalone/node_modules/next/dist/build/utils.js +2 -1
- package/.next/standalone/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +2 -2
- package/.next/standalone/node_modules/next/dist/client/components/router-reducer/set-cache-busting-search-param.js +8 -2
- package/.next/standalone/node_modules/next/dist/client/dev/debug-channel.js +102 -2
- package/.next/standalone/node_modules/next/dist/client/route-params.js +23 -6
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +13 -13
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +13 -13
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +2 -2
- package/.next/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +10 -10
- package/.next/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +3 -3
- package/.next/standalone/node_modules/next/dist/server/app-render/action-handler.js +21 -14
- package/.next/standalone/node_modules/next/dist/server/app-render/app-render.js +62 -9
- package/.next/standalone/node_modules/next/dist/server/app-render/collect-segment-data.js +16 -0
- package/.next/standalone/node_modules/next/dist/server/app-render/create-component-tree.js +49 -19
- package/.next/standalone/node_modules/next/dist/server/app-render/get-script-nonce-from-header.js +8 -20
- package/.next/standalone/node_modules/next/dist/server/app-render/metadata-insertion/create-server-inserted-metadata.js +8 -7
- package/.next/standalone/node_modules/next/dist/server/app-render/use-flight-response.js +2 -2
- package/.next/standalone/node_modules/next/dist/server/async-storage/work-store.js +2 -1
- package/.next/standalone/node_modules/next/dist/server/base-server.js +13 -5
- package/.next/standalone/node_modules/next/dist/server/config-schema.js +1 -0
- package/.next/standalone/node_modules/next/dist/server/config.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +2 -2
- package/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/dev/static-paths-worker.js +2 -1
- package/.next/standalone/node_modules/next/dist/server/image-optimizer.js +22 -2
- package/.next/standalone/node_modules/next/dist/server/lib/app-info-log.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/lib/encode-cache-tag.js +45 -0
- package/.next/standalone/node_modules/next/dist/server/lib/implicit-tags.js +6 -3
- package/.next/standalone/node_modules/next/dist/server/lib/is-rsc-request.js +18 -0
- package/.next/standalone/node_modules/next/dist/server/lib/mock-request.js +30 -5
- package/.next/standalone/node_modules/next/dist/server/lib/patch-fetch.js +5 -1
- package/.next/standalone/node_modules/next/dist/server/lib/patch-set-header.js +7 -0
- package/.next/standalone/node_modules/next/dist/server/lib/router-server.js +6 -3
- package/.next/standalone/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +18 -4
- package/.next/standalone/node_modules/next/dist/server/lib/server-ipc/utils.js +3 -1
- package/.next/standalone/node_modules/next/dist/server/lib/start-server.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/next-server.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/request/fallback-params.js +27 -1
- package/.next/standalone/node_modules/next/dist/server/route-modules/app-route/module.js +1 -0
- package/.next/standalone/node_modules/next/dist/server/route-modules/route-module.js +11 -1
- package/.next/standalone/node_modules/next/dist/server/server-utils.js +19 -2
- package/.next/standalone/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +5 -5
- package/.next/standalone/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/web/adapter.js +4 -1
- package/.next/standalone/node_modules/next/dist/server/web/edge-route-module-wrapper.js +2 -1
- package/.next/standalone/node_modules/next/dist/server/web/spec-extension/revalidate.js +4 -3
- package/.next/standalone/node_modules/next/dist/server/web/spec-extension/unstable-cache.js +6 -2
- package/.next/standalone/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
- package/.next/standalone/node_modules/next/dist/{server → shared/lib}/htmlescape.js +15 -0
- package/.next/standalone/node_modules/next/dist/shared/lib/router/routes/app.js +13 -1
- package/.next/standalone/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js +56 -10
- package/.next/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/.next/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
- package/.next/standalone/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/.next/standalone/node_modules/next/package.json +15 -15
- package/.next/standalone/node_modules/react/cjs/react.development.js +1 -1
- package/.next/standalone/node_modules/react/cjs/react.production.js +1 -1
- package/.next/standalone/node_modules/react/package.json +1 -1
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +1 -1
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +1 -1
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server.browser.production.js +3 -3
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server.edge.production.js +3 -3
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server.node.production.js +3 -3
- package/.next/standalone/node_modules/react-dom/cjs/react-dom.production.js +1 -1
- package/.next/standalone/node_modules/react-dom/package.json +2 -2
- package/.next/standalone/osv-scanner.toml +17 -0
- package/.next/standalone/package.json +26 -18
- package/.next/standalone/proxy.ts +1 -1
- package/.next/standalone/public/audit/fonts/bitcount-prop-single.woff2 +0 -0
- package/.next/standalone/public/icon.svg +1 -0
- package/.next/standalone/public/logo.svg +1 -0
- package/.next/standalone/server.js +1 -1
- package/.next/standalone/templates/bitcount-font/README.md +42 -0
- package/.next/standalone/templates/bitcount-font/bitcount-prop-single.woff2 +0 -0
- package/.next/standalone/templates/bitcount-font/bitcount.css +49 -0
- package/.next/standalone/templates/bitcount-font/fonts.ts.example +23 -0
- package/README.md +12 -5
- package/bin/failproofai.mjs +263 -70
- package/dist/cli.mjs +3830 -1617
- package/lib/atomic-write.ts +67 -0
- package/lib/auth/api-server-client.ts +306 -0
- package/lib/auth/auth-store.ts +250 -0
- package/lib/claude-sessions.ts +181 -0
- package/lib/client-telemetry.ts +2 -0
- package/lib/fetch-with-timeout.ts +59 -0
- package/lib/share-card.ts +144 -0
- package/lib/telemetry.ts +12 -7
- package/package.json +26 -18
- package/scripts/install-telemetry.mjs +4 -0
- package/scripts/launch.ts +2 -2
- package/scripts/postinstall.mjs +89 -1
- package/src/audit/archetypes.ts +944 -0
- package/src/audit/cache.ts +151 -0
- package/src/audit/cli-adapters/claude.ts +97 -0
- package/src/audit/cli-adapters/codex.ts +56 -0
- package/src/audit/cli-adapters/copilot.ts +51 -0
- package/src/audit/cli-adapters/cursor.ts +51 -0
- package/src/audit/cli-adapters/gemini.ts +51 -0
- package/src/audit/cli-adapters/index.ts +70 -0
- package/src/audit/cli-adapters/opencode.ts +52 -0
- package/src/audit/cli-adapters/pi.ts +51 -0
- package/src/audit/cli-adapters/shared.ts +85 -0
- package/src/audit/cli.ts +319 -0
- package/src/audit/dashboard-cache.ts +158 -0
- package/src/audit/detectors/find-from-root.ts +27 -0
- package/src/audit/detectors/git-commit-no-verify.ts +22 -0
- package/src/audit/detectors/index.ts +33 -0
- package/src/audit/detectors/prefer-edit-over-read-cat.ts +31 -0
- package/src/audit/detectors/prefer-edit-over-sed-awk.ts +27 -0
- package/src/audit/detectors/prefer-write-over-heredoc.ts +36 -0
- package/src/audit/detectors/redundant-cd-cwd.ts +28 -0
- package/src/audit/detectors/reread-after-edit.ts +58 -0
- package/src/audit/detectors/sleep-polling-loop.ts +34 -0
- package/src/audit/features.ts +314 -0
- package/src/audit/findings.ts +298 -0
- package/src/audit/index.ts +387 -0
- package/src/audit/open-browser.ts +69 -0
- package/src/audit/replay.ts +147 -0
- package/src/audit/report.ts +349 -0
- package/src/audit/scoring.ts +174 -0
- package/src/audit/social-proof.ts +34 -0
- package/src/audit/strengths.ts +138 -0
- package/src/audit/types.ts +216 -0
- package/src/auth/cli.ts +359 -0
- package/src/hooks/builtin-policies.ts +81 -2
- package/src/hooks/custom-hooks-loader.ts +19 -3
- package/src/hooks/first-run-nudge.ts +146 -0
- package/src/hooks/handler.ts +21 -102
- package/src/hooks/hook-telemetry.ts +2 -2
- package/src/hooks/install-prompt.ts +34 -4
- package/src/hooks/manager.ts +72 -5
- package/src/hooks/policy-evaluator.ts +19 -4
- package/src/hooks/policy-registry.ts +21 -1
- package/src/hooks/policy-types.ts +9 -0
- package/src/hooks/tool-name-canonicalize.ts +65 -0
- package/src/posthog-key.ts +9 -0
- package/.next/standalone/.next/server/app/icon.png/route/app-paths-manifest.json +0 -3
- package/.next/standalone/.next/server/app/icon.png/route.js +0 -7
- package/.next/standalone/.next/server/app/icon.png/route.js.nft.json +0 -1
- package/.next/standalone/.next/server/app/icon.png.body +0 -0
- package/.next/standalone/.next/server/app/icon.png.meta +0 -1
- package/.next/standalone/.next/server/chunks/[externals]_next_dist_0sqmaqd._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__06.arfm._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0__i0h0._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0d_ob4n._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0fe7_q_._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0fw.e.h._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0pxn0e1._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0xv0jh2._.js +0 -3
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_icon_png_route_actions_12.gv.r.js +0 -3
- package/.next/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0bdfoky.js +0 -3
- package/.next/standalone/.next/server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_05pz9._._.js +0 -3
- package/.next/standalone/.next/server/chunks/package_json_[json]_cjs_0z7w.hh._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__02r.cjq._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0370~qj._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0609ezh._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__07_-mkc._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__09z7o2x._.js +0 -19
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0_sh2n0._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0e9o9ri._.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0l6swv1._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0logebz._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0mi5ejy._.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0odijkc._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0podumr._.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0rkxer-._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0rl2kwi._.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0vg0uey._.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0x5limi._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ye1w50._.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ymlddl._.js +0 -223
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__10._f0s._.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/app_0cdqd9w._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/app_global-error_tsx_0xerkr6._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/app_policies_hooks-client_tsx_0q-m0y-._.js +0 -8
- package/.next/standalone/.next/server/chunks/ssr/app_projects_loading_tsx_13veom4._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/lib_utils_ts_068jk73._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_0ttbz1~._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_06u0kr8._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_0h9llsw._.js +0 -6
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0a_7sdg.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0ef3uwk.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0j79~gv.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0pbja1x.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0r6o0i2.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_11y81~_.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_12or2kf.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_0mebn66._.js +0 -3
- package/.next/standalone/.next/static/chunks/01q52wg_amm60.js +0 -2
- package/.next/standalone/.next/static/chunks/0kqar56yl~41o.js +0 -6
- package/.next/standalone/.next/static/chunks/0ml1.ck_5t36i.js +0 -1
- package/.next/standalone/.next/static/chunks/0w6fzf.07a24u.js +0 -1
- package/.next/standalone/.next/static/chunks/0zig0fh30t6ou.js +0 -1
- package/.next/standalone/.next/static/chunks/12l2t63hkyo2q.js +0 -1
- package/.next/standalone/.next/static/chunks/12pt~2f.c1sha.js +0 -1
- package/.next/standalone/.next/static/chunks/14lii11wmo450.js +0 -4
- package/.next/standalone/.next/static/chunks/17rm86uz2nd5a.css +0 -2
- package/.next/standalone/.next/static/media/4fa387ec64143e14-s.0q3udbd2bu5yp.woff2 +0 -0
- package/.next/standalone/.next/static/media/797e433ab948586e-s.p.0.q-h669a_dqa.woff2 +0 -0
- package/.next/standalone/.next/static/media/bbc41e54d2fcbd21-s.0gw~uztddq1df.woff2 +0 -0
- package/.next/standalone/.next/static/media/icon.0a.gigb3_x5pd.png +0 -0
- package/.next/standalone/app/icon.png +0 -0
- package/src/auth/login.ts +0 -104
- package/src/auth/logout.ts +0 -50
- package/src/auth/token-store.ts +0 -64
- package/src/relay/daemon.ts +0 -362
- package/src/relay/pid.ts +0 -76
- package/src/relay/queue.ts +0 -225
- /package/.next/standalone/.next/server/app/{icon.png → api/audit/invite}/route/build-manifest.json +0 -0
- /package/.next/standalone/.next/server/app/{icon.png → api/audit/invite}/route.js.map +0 -0
- /package/.next/standalone/.next/static/{dAuQps6jUwCz9X1Q5FFOO → DOSSF5hRUtt3-QZEm-ZIk}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{dAuQps6jUwCz9X1Q5FFOO → DOSSF5hRUtt3-QZEm-ZIk}/_ssgManifest.js +0 -0
- /package/.next/standalone/.next/static/chunks/{03~yq9q893hmn.js → 0cz1d0mv5g_q7.js} +0 -0
- /package/.next/standalone/.next/static/chunks/{0xbo5nl6w4lka.js → 2wbuxnsvux4di.js} +0 -0
- /package/.next/standalone/.next/static/chunks/{0_s0luks5tay-.js → 35fgpd_feci6x.js} +0 -0
- /package/.next/standalone/.next/static/chunks/{15fklyav5py5m.js → 3xpjn3cdgm-7m.js} +0 -0
- /package/.next/standalone/.next/static/chunks/{17.b3suj8zjjj.js → 4448_qq7bd963.js} +0 -0
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Two-mode empty state for /audit, styled to the audit pixel-craft system:
|
|
5
|
+
*
|
|
6
|
+
* - "no-cache" — first time the user visits /audit. CTA to run.
|
|
7
|
+
* - "zero-sessions" — ran a scan but no transcripts were found. Likely the
|
|
8
|
+
* user hasn't installed hooks for any CLI yet.
|
|
9
|
+
*
|
|
10
|
+
* Both modes use the shared `.panel` chrome with pink corner brackets, a
|
|
11
|
+
* green section eyebrow, a Bitcount Prop Single display headline, and a
|
|
12
|
+
* sharp `.btn-press` action button. Sized so it occupies the same vertical
|
|
13
|
+
* space as the loaded dashboard does on its hero — no more cramped popover.
|
|
14
|
+
*/
|
|
15
|
+
import React from "react";
|
|
16
|
+
import { triggerRun } from "./rerun-button";
|
|
17
|
+
import { usePostHog } from "@/contexts/PostHogContext";
|
|
18
|
+
|
|
19
|
+
interface Props {
|
|
20
|
+
mode: "no-cache" | "zero-sessions";
|
|
21
|
+
running: boolean;
|
|
22
|
+
onStarted: () => void;
|
|
23
|
+
onCompleted: () => Promise<void> | void;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function EmptyState({ mode, running, onStarted, onCompleted }: Props) {
|
|
27
|
+
const { capture } = usePostHog();
|
|
28
|
+
const handleRun = async () => {
|
|
29
|
+
capture("audit_first_run_clicked", {
|
|
30
|
+
source: "empty_state",
|
|
31
|
+
mode,
|
|
32
|
+
});
|
|
33
|
+
onStarted();
|
|
34
|
+
try {
|
|
35
|
+
// since:"all" — scan the user's entire session history, not a window.
|
|
36
|
+
await triggerRun({ cli: [], since: "all" });
|
|
37
|
+
} catch (err) {
|
|
38
|
+
// A failed first run falls back to the empty state via onCompleted's
|
|
39
|
+
// refetch (no cache was written). Swallow here so it doesn't surface as
|
|
40
|
+
// an unhandled promise rejection on the click handler.
|
|
41
|
+
console.error("audit first run failed:", err);
|
|
42
|
+
} finally {
|
|
43
|
+
await onCompleted();
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
if (mode === "no-cache") {
|
|
48
|
+
return (
|
|
49
|
+
<section className="section empty-section" data-screen-label="00 Empty">
|
|
50
|
+
<div className="section-mast">
|
|
51
|
+
<div className="section-label">
|
|
52
|
+
<span className="glyph">━━</span> audit{" "}
|
|
53
|
+
<span style={{ color: "var(--dim)" }}>·</span> first run
|
|
54
|
+
</div>
|
|
55
|
+
<div className="section-meta">
|
|
56
|
+
<span style={{ color: "var(--dim)" }}>○</span> no cache yet
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
<h2 className="section-h">scan and see.</h2>
|
|
60
|
+
|
|
61
|
+
<div className="panel empty-panel">
|
|
62
|
+
<div className="empty-glyph" aria-hidden="true">
|
|
63
|
+
<div className="empty-glyph-grid">
|
|
64
|
+
{Array.from({ length: 36 }).map((_, i) => {
|
|
65
|
+
// Form the word "GO" inside an 8x6 grid using a sparse hard-coded
|
|
66
|
+
// mask. Pure decoration — the grid layout sells the pixel-craft.
|
|
67
|
+
const on = ["1", "5", "8", "10", "13", "17", "20", "23", "25", "30", "32"].includes(String(i));
|
|
68
|
+
return <span key={i} className={"px" + (on ? " on" : "")} />;
|
|
69
|
+
})}
|
|
70
|
+
</div>
|
|
71
|
+
<div className="empty-glyph-label">▮▮ no audit data yet</div>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<h3 className="empty-headline">run your first audit.</h3>
|
|
75
|
+
<p className="empty-sub">
|
|
76
|
+
we'll walk every transcript across your installed CLIs — Claude Code,
|
|
77
|
+
Codex, Copilot, Cursor, OpenCode, Pi, Gemini — and count every wasteful
|
|
78
|
+
or risky action. you'll get a tier, a score, and a punch-list.
|
|
79
|
+
</p>
|
|
80
|
+
|
|
81
|
+
<div className="empty-actions">
|
|
82
|
+
<button
|
|
83
|
+
type="button"
|
|
84
|
+
className="btn btn-primary btn-press empty-cta"
|
|
85
|
+
onClick={handleRun}
|
|
86
|
+
disabled={running}
|
|
87
|
+
>
|
|
88
|
+
{running ? "[ scanning… ]" : "[ run audit ]"}
|
|
89
|
+
</button>
|
|
90
|
+
<span className="empty-meta">
|
|
91
|
+
scans all sessions · all installed CLIs · may take a while
|
|
92
|
+
</span>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</section>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// mode === "zero-sessions"
|
|
100
|
+
return (
|
|
101
|
+
<section className="section empty-section" data-screen-label="00 Empty">
|
|
102
|
+
<div className="section-mast">
|
|
103
|
+
<div className="section-label">
|
|
104
|
+
<span className="glyph">━━</span> audit{" "}
|
|
105
|
+
<span style={{ color: "var(--dim)" }}>·</span> zero transcripts
|
|
106
|
+
</div>
|
|
107
|
+
<div className="section-meta">
|
|
108
|
+
<span style={{ color: "var(--amber)" }}>●</span> hooks not installed
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
<h2 className="section-h">nothing to read.</h2>
|
|
112
|
+
|
|
113
|
+
<div className="panel empty-panel">
|
|
114
|
+
<div className="empty-glyph" aria-hidden="true">
|
|
115
|
+
<div className="empty-glyph-grid">
|
|
116
|
+
{Array.from({ length: 36 }).map((_, i) => {
|
|
117
|
+
const on = ["2", "4", "9", "11", "16", "18", "23", "25", "27", "30", "33"].includes(String(i));
|
|
118
|
+
return <span key={i} className={"px" + (on ? " on" : "")} />;
|
|
119
|
+
})}
|
|
120
|
+
</div>
|
|
121
|
+
<div className="empty-glyph-label">▮▮ no sessions found</div>
|
|
122
|
+
</div>
|
|
123
|
+
|
|
124
|
+
<h3 className="empty-headline">install hooks first.</h3>
|
|
125
|
+
<p className="empty-sub">
|
|
126
|
+
failproofai couldn't find any transcripts to scan on this machine.
|
|
127
|
+
install the hooks for at least one CLI and come back.
|
|
128
|
+
</p>
|
|
129
|
+
|
|
130
|
+
<div className="empty-actions">
|
|
131
|
+
<a
|
|
132
|
+
href="https://docs.befailproof.ai/getting-started"
|
|
133
|
+
target="_blank"
|
|
134
|
+
rel="noopener noreferrer"
|
|
135
|
+
className="btn btn-primary btn-press empty-cta"
|
|
136
|
+
onClick={() => {
|
|
137
|
+
capture("audit_install_guide_clicked", {
|
|
138
|
+
source: "empty_state",
|
|
139
|
+
mode,
|
|
140
|
+
});
|
|
141
|
+
}}
|
|
142
|
+
>
|
|
143
|
+
[ install guide → ]
|
|
144
|
+
</a>
|
|
145
|
+
<span className="empty-meta">
|
|
146
|
+
takes about 30 seconds · one command per CLI
|
|
147
|
+
</span>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
</section>
|
|
151
|
+
);
|
|
152
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Section 04 — HOW TO IMPROVE. Calm row list, one per prescribed
|
|
5
|
+
* policy:
|
|
6
|
+
*
|
|
7
|
+
* <policy-name> $ failproofai policy add <slug> [📋]
|
|
8
|
+
* <one-line explanation>
|
|
9
|
+
*
|
|
10
|
+
* A single "install all" button at the section header copies the
|
|
11
|
+
* combined install command for every prescribed policy.
|
|
12
|
+
*/
|
|
13
|
+
import React, { useMemo, useState } from "react";
|
|
14
|
+
import type { AuditResult } from "@/src/audit/types";
|
|
15
|
+
import { type Grade, tierName } from "@/src/audit/scoring";
|
|
16
|
+
import { usePostHog } from "@/contexts/PostHogContext";
|
|
17
|
+
|
|
18
|
+
interface Props {
|
|
19
|
+
result: AuditResult;
|
|
20
|
+
projected: number;
|
|
21
|
+
projectedGrade: Grade;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const DETECTOR_TO_PRIMARY_POLICY: Record<string, string> = {
|
|
25
|
+
"redundant-cd-cwd": "warn-repeated-tool-calls",
|
|
26
|
+
"prefer-edit-over-read-cat": "block-read-outside-cwd",
|
|
27
|
+
"prefer-edit-over-sed-awk": "warn-repeated-tool-calls",
|
|
28
|
+
"prefer-write-over-heredoc": "block-env-files",
|
|
29
|
+
"sleep-polling-loop": "warn-background-process",
|
|
30
|
+
"find-from-root": "block-read-outside-cwd",
|
|
31
|
+
"git-commit-no-verify": "warn-git-amend",
|
|
32
|
+
"reread-after-edit": "warn-repeated-tool-calls",
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const POLICY_DESC: Record<string, string> = {
|
|
36
|
+
"warn-repeated-tool-calls": "warns when the same tool is called 3+ times with identical parameters.",
|
|
37
|
+
"block-read-outside-cwd": "denies any file read outside the project root, including symlinks.",
|
|
38
|
+
"block-env-files": "blocks reads and writes of .env files at the tool layer.",
|
|
39
|
+
"block-secrets-write": "blocks writes to .pem, id_rsa, credentials.json, and other secret-key files.",
|
|
40
|
+
"warn-background-process": "warns before starting nohup / & / screen / tmux processes.",
|
|
41
|
+
"warn-git-amend": "warns before amending git commits.",
|
|
42
|
+
"require-ci-green-before-stop": "requires CI checks to pass on HEAD before the agent declares the task done.",
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
function shortName(name: string): string {
|
|
46
|
+
const slash = name.indexOf("/");
|
|
47
|
+
return slash >= 0 ? name.slice(slash + 1) : name;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface FixRow {
|
|
51
|
+
name: string;
|
|
52
|
+
desc: string;
|
|
53
|
+
hits: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function buildFixes(result: AuditResult): FixRow[] {
|
|
57
|
+
const enabledSet = new Set(result.enabledBuiltinNames ?? []);
|
|
58
|
+
const buckets = new Map<string, number>();
|
|
59
|
+
|
|
60
|
+
for (const row of result.results) {
|
|
61
|
+
if (row.hits === 0) continue;
|
|
62
|
+
|
|
63
|
+
let target: string;
|
|
64
|
+
if (row.source === "audit-detector") {
|
|
65
|
+
const mapped = DETECTOR_TO_PRIMARY_POLICY[shortName(row.name)];
|
|
66
|
+
if (!mapped) continue;
|
|
67
|
+
target = mapped;
|
|
68
|
+
} else if (row.source === "builtin" && !row.enabledInConfig) {
|
|
69
|
+
target = shortName(row.name);
|
|
70
|
+
} else {
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (enabledSet.has(target)) continue;
|
|
75
|
+
buckets.set(target, (buckets.get(target) ?? 0) + row.hits);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return [...buckets.entries()]
|
|
79
|
+
.sort((a, b) => b[1] - a[1])
|
|
80
|
+
.map(([name, hits]) => ({
|
|
81
|
+
name,
|
|
82
|
+
desc: POLICY_DESC[name] ?? "enable this builtin policy to close the gap.",
|
|
83
|
+
hits,
|
|
84
|
+
}));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function bulkInstall(fixes: FixRow[]): string {
|
|
88
|
+
if (fixes.length === 0) return "";
|
|
89
|
+
if (fixes.length === 1) return `failproofai policy add ${fixes[0]!.name}`;
|
|
90
|
+
return `failproofai policy add ${fixes.map((f) => f.name).join(" ")}`;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function HowToImproveSection({ result, projected, projectedGrade }: Props) {
|
|
94
|
+
const { capture } = usePostHog();
|
|
95
|
+
const fixes = useMemo(() => buildFixes(result), [result]);
|
|
96
|
+
const installAllCmd = useMemo(() => bulkInstall(fixes), [fixes]);
|
|
97
|
+
const [copiedAll, setCopiedAll] = useState(false);
|
|
98
|
+
|
|
99
|
+
if (fixes.length === 0) return null;
|
|
100
|
+
|
|
101
|
+
const handleInstallAll = async () => {
|
|
102
|
+
try {
|
|
103
|
+
await navigator.clipboard.writeText(installAllCmd);
|
|
104
|
+
setCopiedAll(true);
|
|
105
|
+
capture("audit_copy_clicked", {
|
|
106
|
+
source: "how_to_improve_section_install_all",
|
|
107
|
+
item_type: "bulk_install_command",
|
|
108
|
+
policy_count: fixes.length,
|
|
109
|
+
});
|
|
110
|
+
setTimeout(() => setCopiedAll(false), 1500);
|
|
111
|
+
} catch { /* ignore */ }
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
return (
|
|
115
|
+
<section className="audit-sec" data-screen-label="04 How to improve">
|
|
116
|
+
<div className="audit-sec-head">
|
|
117
|
+
<span className="audit-sec-eyebrow">
|
|
118
|
+
<span className="ix">04</span>{"// how to improve"}
|
|
119
|
+
</span>
|
|
120
|
+
<button
|
|
121
|
+
type="button"
|
|
122
|
+
className="install-all-btn"
|
|
123
|
+
onClick={handleInstallAll}
|
|
124
|
+
aria-label="Copy install-all command"
|
|
125
|
+
>
|
|
126
|
+
{copiedAll ? "copied" : "install all"}
|
|
127
|
+
</button>
|
|
128
|
+
</div>
|
|
129
|
+
<h2 className="audit-sec-title">install or configure</h2>
|
|
130
|
+
<div className="audit-sec-sub">
|
|
131
|
+
enable all {fixes.length === 1 ? "one" : fixes.length} → projected{" "}
|
|
132
|
+
<strong>{projected}</strong> · {tierName(projectedGrade).toLowerCase()}
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
<div className="fix-list">
|
|
136
|
+
{fixes.map((f, i) => (
|
|
137
|
+
<FixRow key={f.name} fix={f} idx={i} />
|
|
138
|
+
))}
|
|
139
|
+
</div>
|
|
140
|
+
</section>
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
function FixRow({ fix, idx }: { fix: FixRow; idx: number }) {
|
|
145
|
+
const { capture } = usePostHog();
|
|
146
|
+
const [copied, setCopied] = useState(false);
|
|
147
|
+
const install = `failproofai policy add ${fix.name}`;
|
|
148
|
+
|
|
149
|
+
const handleCopy = async () => {
|
|
150
|
+
try {
|
|
151
|
+
await navigator.clipboard.writeText(install);
|
|
152
|
+
setCopied(true);
|
|
153
|
+
capture("audit_copy_clicked", {
|
|
154
|
+
source: "how_to_improve_section",
|
|
155
|
+
item_type: "single_policy_install_command",
|
|
156
|
+
policy_name: fix.name,
|
|
157
|
+
policy_rank: idx + 1,
|
|
158
|
+
});
|
|
159
|
+
setTimeout(() => setCopied(false), 1500);
|
|
160
|
+
} catch { /* ignore */ }
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
return (
|
|
164
|
+
<div className="fix-row">
|
|
165
|
+
<div className="fix-row-info">
|
|
166
|
+
<div className="fix-name">{fix.name}</div>
|
|
167
|
+
<div className="fix-desc">{fix.desc}</div>
|
|
168
|
+
</div>
|
|
169
|
+
<div className="fix-row-cmd">
|
|
170
|
+
<code className="fix-cmd-code">{install}</code>
|
|
171
|
+
<button
|
|
172
|
+
type="button"
|
|
173
|
+
className="copy-icon-btn"
|
|
174
|
+
onClick={handleCopy}
|
|
175
|
+
aria-label={`Copy install command for ${fix.name}`}
|
|
176
|
+
>
|
|
177
|
+
{copied ? "✓" : (
|
|
178
|
+
<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
|
|
179
|
+
<rect x="3" y="3" width="9" height="11" fill="none" stroke="currentColor" strokeWidth="1.2" />
|
|
180
|
+
<rect x="5.5" y="0.5" width="9" height="11" fill="none" stroke="currentColor" strokeWidth="1.2" />
|
|
181
|
+
</svg>
|
|
182
|
+
)}
|
|
183
|
+
</button>
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
);
|
|
187
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Invite dialog — modal that takes a comma/newline-separated list of friend
|
|
5
|
+
* emails and POSTs them to /api/audit/invite. The api-server composes the
|
|
6
|
+
* actual invite email (Cc'ing the sender) using the same email infrastructure
|
|
7
|
+
* that backs the OTP flow.
|
|
8
|
+
*
|
|
9
|
+
* Anonymous users get bounced through the AuthDialog by the caller; this
|
|
10
|
+
* component assumes the session is already established.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
14
|
+
import { usePostHog } from "@/contexts/PostHogContext";
|
|
15
|
+
import { toast } from "@/app/components/toast";
|
|
16
|
+
|
|
17
|
+
interface Props {
|
|
18
|
+
open: boolean;
|
|
19
|
+
onClose: () => void;
|
|
20
|
+
/** Source tag for PostHog so we can split "invited from come-back-better"
|
|
21
|
+
* from any future entry points. */
|
|
22
|
+
source: string;
|
|
23
|
+
/** Called when the proxy returns 401 (session expired between probe and
|
|
24
|
+
* submit). The parent should re-open the AuthDialog so the user can
|
|
25
|
+
* re-authenticate; without this, a 401 dead-ends with an inline error. */
|
|
26
|
+
onUnauthorized?: () => void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const EMAIL_RE = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
30
|
+
const MAX_RECIPIENTS = 10;
|
|
31
|
+
|
|
32
|
+
function parseEmails(input: string): { valid: string[]; invalid: string[] } {
|
|
33
|
+
const tokens = input
|
|
34
|
+
.split(/[\s,;]+/)
|
|
35
|
+
.map((t) => t.trim().toLowerCase())
|
|
36
|
+
.filter(Boolean);
|
|
37
|
+
const valid: string[] = [];
|
|
38
|
+
const invalid: string[] = [];
|
|
39
|
+
const seen = new Set<string>();
|
|
40
|
+
for (const t of tokens) {
|
|
41
|
+
if (seen.has(t)) continue;
|
|
42
|
+
seen.add(t);
|
|
43
|
+
if (EMAIL_RE.test(t)) valid.push(t);
|
|
44
|
+
else invalid.push(t);
|
|
45
|
+
}
|
|
46
|
+
return { valid, invalid };
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function InviteDialog({ open, onClose, source, onUnauthorized }: Props): React.ReactElement | null {
|
|
50
|
+
const { capture } = usePostHog();
|
|
51
|
+
const [value, setValue] = useState("");
|
|
52
|
+
const [busy, setBusy] = useState(false);
|
|
53
|
+
const [error, setError] = useState<string | null>(null);
|
|
54
|
+
const inputRef = useRef<HTMLTextAreaElement | null>(null);
|
|
55
|
+
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
if (open) {
|
|
58
|
+
setValue("");
|
|
59
|
+
setBusy(false);
|
|
60
|
+
setError(null);
|
|
61
|
+
capture("audit_invite_dialog_opened", { source });
|
|
62
|
+
}
|
|
63
|
+
}, [capture, open, source]);
|
|
64
|
+
|
|
65
|
+
useEffect(() => {
|
|
66
|
+
if (!open) return;
|
|
67
|
+
const t = setTimeout(() => inputRef.current?.focus(), 50);
|
|
68
|
+
return () => clearTimeout(t);
|
|
69
|
+
}, [open]);
|
|
70
|
+
|
|
71
|
+
useEffect(() => {
|
|
72
|
+
if (!open) return;
|
|
73
|
+
const onKey = (e: KeyboardEvent): void => {
|
|
74
|
+
if (e.key === "Escape" && !busy) onClose();
|
|
75
|
+
};
|
|
76
|
+
window.addEventListener("keydown", onKey);
|
|
77
|
+
return () => window.removeEventListener("keydown", onKey);
|
|
78
|
+
}, [open, busy, onClose]);
|
|
79
|
+
|
|
80
|
+
const { valid, invalid } = useMemo(() => parseEmails(value), [value]);
|
|
81
|
+
|
|
82
|
+
const submit = useCallback(
|
|
83
|
+
async (e: React.FormEvent<HTMLFormElement>) => {
|
|
84
|
+
e.preventDefault();
|
|
85
|
+
if (busy) return;
|
|
86
|
+
if (valid.length === 0) {
|
|
87
|
+
setError("add at least one valid email address.");
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
if (valid.length > MAX_RECIPIENTS) {
|
|
91
|
+
setError(`up to ${MAX_RECIPIENTS} emails at a time. send the rest in a follow-up.`);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
setBusy(true);
|
|
95
|
+
setError(null);
|
|
96
|
+
capture("audit_invite_submitted", {
|
|
97
|
+
source,
|
|
98
|
+
recipient_count: valid.length,
|
|
99
|
+
had_invalid: invalid.length > 0,
|
|
100
|
+
});
|
|
101
|
+
try {
|
|
102
|
+
const res = await fetch("/api/audit/invite", {
|
|
103
|
+
method: "POST",
|
|
104
|
+
headers: { "content-type": "application/json" },
|
|
105
|
+
body: JSON.stringify({ to: valid }),
|
|
106
|
+
});
|
|
107
|
+
const body = (await res.json().catch(() => ({}))) as {
|
|
108
|
+
sent?: string[];
|
|
109
|
+
failed?: string[];
|
|
110
|
+
code?: string;
|
|
111
|
+
message?: string;
|
|
112
|
+
};
|
|
113
|
+
if (res.status === 401) {
|
|
114
|
+
// Session expired between probe and submit — route back through auth.
|
|
115
|
+
// Without this, repeated submits would dead-end with the same 401.
|
|
116
|
+
if (onUnauthorized) {
|
|
117
|
+
onClose();
|
|
118
|
+
onUnauthorized();
|
|
119
|
+
} else {
|
|
120
|
+
setError("session expired. please sign in again.");
|
|
121
|
+
}
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
if (!res.ok) {
|
|
125
|
+
const msg = body.message ?? "couldn't send invites.";
|
|
126
|
+
setError(msg);
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
const sent = body.sent?.length ?? 0;
|
|
130
|
+
const failed = body.failed?.length ?? 0;
|
|
131
|
+
toast(
|
|
132
|
+
failed > 0
|
|
133
|
+
? `📨 sent ${sent}, ${failed} bounced — copy the bounce and try again.`
|
|
134
|
+
: `📨 sent ${sent} ${sent === 1 ? "invite" : "invites"}. thanks for spreading the word.`,
|
|
135
|
+
);
|
|
136
|
+
onClose();
|
|
137
|
+
} catch (err) {
|
|
138
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
139
|
+
setError(`network error: ${message}`);
|
|
140
|
+
} finally {
|
|
141
|
+
setBusy(false);
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
[busy, valid, invalid, capture, source, onClose, onUnauthorized],
|
|
145
|
+
);
|
|
146
|
+
|
|
147
|
+
if (!open) return null;
|
|
148
|
+
|
|
149
|
+
return (
|
|
150
|
+
<div
|
|
151
|
+
className="auth-dialog-backdrop"
|
|
152
|
+
role="dialog"
|
|
153
|
+
aria-modal="true"
|
|
154
|
+
aria-labelledby="invite-dialog-title"
|
|
155
|
+
onClick={(e) => {
|
|
156
|
+
if (!busy && e.target === e.currentTarget) onClose();
|
|
157
|
+
}}
|
|
158
|
+
>
|
|
159
|
+
<div className="auth-dialog">
|
|
160
|
+
<button
|
|
161
|
+
type="button"
|
|
162
|
+
className="auth-close"
|
|
163
|
+
onClick={onClose}
|
|
164
|
+
disabled={busy}
|
|
165
|
+
aria-label="close"
|
|
166
|
+
>
|
|
167
|
+
×
|
|
168
|
+
</button>
|
|
169
|
+
|
|
170
|
+
<h2 id="invite-dialog-title" className="auth-headline">
|
|
171
|
+
invite friends to audit theirs
|
|
172
|
+
</h2>
|
|
173
|
+
<p className="auth-sub">
|
|
174
|
+
paste emails separated by commas, spaces, or newlines. you'll be Cc'd on every invite so they know it's from you.
|
|
175
|
+
</p>
|
|
176
|
+
|
|
177
|
+
<form onSubmit={submit} className="auth-form">
|
|
178
|
+
<textarea
|
|
179
|
+
ref={inputRef}
|
|
180
|
+
name="emails"
|
|
181
|
+
placeholder="alice@x.com, bob@y.com carol@z.com"
|
|
182
|
+
disabled={busy}
|
|
183
|
+
className="auth-input invite-textarea"
|
|
184
|
+
value={value}
|
|
185
|
+
onChange={(e) => setValue(e.target.value)}
|
|
186
|
+
rows={4}
|
|
187
|
+
required
|
|
188
|
+
/>
|
|
189
|
+
<div className="invite-summary">
|
|
190
|
+
{valid.length > 0 && (
|
|
191
|
+
<span className="invite-valid">{valid.length} valid</span>
|
|
192
|
+
)}
|
|
193
|
+
{invalid.length > 0 && (
|
|
194
|
+
<span className="invite-invalid">
|
|
195
|
+
{invalid.length} invalid: {invalid.slice(0, 3).join(", ")}
|
|
196
|
+
{invalid.length > 3 ? `, +${invalid.length - 3} more` : ""}
|
|
197
|
+
</span>
|
|
198
|
+
)}
|
|
199
|
+
{valid.length > MAX_RECIPIENTS && (
|
|
200
|
+
<span className="invite-invalid">
|
|
201
|
+
only {MAX_RECIPIENTS} per send — first {MAX_RECIPIENTS} will go.
|
|
202
|
+
</span>
|
|
203
|
+
)}
|
|
204
|
+
</div>
|
|
205
|
+
{error && <div className="auth-error">{error}</div>}
|
|
206
|
+
<div className="auth-actions">
|
|
207
|
+
<button
|
|
208
|
+
type="submit"
|
|
209
|
+
className="auth-btn primary"
|
|
210
|
+
disabled={busy || valid.length === 0}
|
|
211
|
+
>
|
|
212
|
+
{busy ? "sending…" : `send ${valid.length || ""} invite${valid.length === 1 ? "" : "s"}`.trim()}
|
|
213
|
+
</button>
|
|
214
|
+
<button
|
|
215
|
+
type="button"
|
|
216
|
+
className="auth-btn"
|
|
217
|
+
onClick={onClose}
|
|
218
|
+
disabled={busy}
|
|
219
|
+
>
|
|
220
|
+
cancel
|
|
221
|
+
</button>
|
|
222
|
+
</div>
|
|
223
|
+
</form>
|
|
224
|
+
</div>
|
|
225
|
+
</div>
|
|
226
|
+
);
|
|
227
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Section 03 — QUIRKS. "what to improve."
|
|
5
|
+
*
|
|
6
|
+
* 4-column table: when · what slipped (+ policy that would've caught it) ·
|
|
7
|
+
* severity pill · recurrence. Each row corresponds to a triggered
|
|
8
|
+
* detector. No per-finding card chrome, no 4-quad body, no corner
|
|
9
|
+
* crosshairs — evidence and fix live in section 04 (How to improve).
|
|
10
|
+
*/
|
|
11
|
+
import React from "react";
|
|
12
|
+
import type { FindingCard } from "@/src/audit/findings";
|
|
13
|
+
|
|
14
|
+
interface Props {
|
|
15
|
+
findings: FindingCard[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
type Severity = "low" | "medium" | "high";
|
|
19
|
+
|
|
20
|
+
/** Heuristic severity from occurrence count — until the audit pipeline
|
|
21
|
+
* carries a real severity field. Tuned so a single occurrence reads as
|
|
22
|
+
* low and >5 reads as high. */
|
|
23
|
+
function severityFromCount(count: number): Severity {
|
|
24
|
+
if (count >= 6) return "high";
|
|
25
|
+
if (count >= 2) return "medium";
|
|
26
|
+
return "low";
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function recurrenceLabel(count: number): string {
|
|
30
|
+
if (count <= 1) return "new";
|
|
31
|
+
if (count < 10) return `${count}× seen`;
|
|
32
|
+
return "recurring";
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function QuirksSection({ findings }: Props) {
|
|
36
|
+
if (findings.length === 0) return null;
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<section className="audit-sec" data-screen-label="03 Quirks">
|
|
40
|
+
<div className="audit-sec-head">
|
|
41
|
+
<span className="audit-sec-eyebrow">
|
|
42
|
+
<span className="ix">03</span>{"// quirks"}
|
|
43
|
+
</span>
|
|
44
|
+
<span className="audit-sec-meta">{findings.length} slipped through</span>
|
|
45
|
+
</div>
|
|
46
|
+
<h2 className="audit-sec-title">what to improve</h2>
|
|
47
|
+
|
|
48
|
+
<div className="quirks-table">
|
|
49
|
+
<div className="quirks-thead">
|
|
50
|
+
<span>when</span>
|
|
51
|
+
<span>what slipped</span>
|
|
52
|
+
<span>severity</span>
|
|
53
|
+
<span>seen</span>
|
|
54
|
+
</div>
|
|
55
|
+
{findings.map((f) => {
|
|
56
|
+
const sev = severityFromCount(f.count);
|
|
57
|
+
return (
|
|
58
|
+
<div key={f.sourceSlug} className="quirks-row">
|
|
59
|
+
<span className="q-when">{f.lastSeen}</span>
|
|
60
|
+
<span className="q-what">
|
|
61
|
+
<span className="q-title">{f.title}</span>
|
|
62
|
+
<span className="q-policy">
|
|
63
|
+
would've been caught by:{" "}
|
|
64
|
+
<code>{f.policy}</code>
|
|
65
|
+
</span>
|
|
66
|
+
</span>
|
|
67
|
+
<span className={`q-pill q-pill-${sev}`}>{sev}</span>
|
|
68
|
+
<span className="q-recur">{recurrenceLabel(f.count)}</span>
|
|
69
|
+
</div>
|
|
70
|
+
);
|
|
71
|
+
})}
|
|
72
|
+
</div>
|
|
73
|
+
</section>
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
|
|
5
|
+
interface Props {
|
|
6
|
+
cachedAt: string | null;
|
|
7
|
+
fixed?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function formatUtcShort(iso: string | null): string {
|
|
11
|
+
if (!iso) return "—";
|
|
12
|
+
const d = new Date(iso);
|
|
13
|
+
if (Number.isNaN(d.getTime())) return "—";
|
|
14
|
+
const day = d.getUTCDate().toString().padStart(2, "0");
|
|
15
|
+
const monthNames = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"];
|
|
16
|
+
const m = monthNames[d.getUTCMonth()];
|
|
17
|
+
const y = d.getUTCFullYear();
|
|
18
|
+
const hh = d.getUTCHours().toString().padStart(2, "0");
|
|
19
|
+
const mm = d.getUTCMinutes().toString().padStart(2, "0");
|
|
20
|
+
return `${day} ${m} ${y}, ${hh}:${mm} utc`;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function ReportFooter({ cachedAt, fixed = false }: Props) {
|
|
24
|
+
return (
|
|
25
|
+
<footer className={fixed ? "report-footer report-footer--fixed" : "report-footer"}>
|
|
26
|
+
<img src="/logo.svg" alt="failproof_ai" style={{ height: 18, display: "inline-block", verticalAlign: "middle" }} />
|
|
27
|
+
<span style={{ margin: "0 12px", color: "var(--line-2)" }}>·</span>
|
|
28
|
+
audit v1.0
|
|
29
|
+
<span style={{ margin: "0 12px", color: "var(--line-2)" }}>·</span>
|
|
30
|
+
generated {formatUtcShort(cachedAt)}
|
|
31
|
+
<span style={{ margin: "0 12px", color: "var(--line-2)" }}>·</span>
|
|
32
|
+
<span style={{ color: "var(--ink-2)" }}>auto-healing for your agents.</span>
|
|
33
|
+
</footer>
|
|
34
|
+
);
|
|
35
|
+
}
|