failproofai 0.0.11-beta.2 → 0.0.11-beta.3
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 +8 -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 +45 -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/run/route/app-paths-manifest.json +3 -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.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 +8 -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]__07tgnzi._.js +3 -0
- 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]__0oeun7z._.js +3 -0
- 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]__12pit4m._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__13h8pzr._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__13ra2jq._.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]__0d_ob4n._.js → [root-of-the-server]__1_mqemn._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1b9z5-i._.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]__1ixjiy8._.js +3 -0
- 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]__0fwb7ao._.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]__1rhmvod._.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/{_0ebx_lc._.js → _0p53ge1._.js} +2 -2
- package/.next/standalone/.next/server/chunks/_1-1804f._.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_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_0z7w.hh._.js → package_json_[json]_cjs_1nxcc4v._.js} +2 -2
- 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]__00jkjmt._.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__013du6r._.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0989_dx._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0e85wxv._.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0gfxvb1._.js +3 -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]__0l13qf2._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0ts150~._.js → [root-of-the-server]__0ywoypf._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1-scthx._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__100hdar._.js +3 -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]__14dd6h8._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1cd25c7._.js +4 -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]__0tcyn68._.js → [root-of-the-server]__1dky4g0._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__098zro9._.js → [root-of-the-server]__1fax1sl._.js} +4 -4
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1hlrq6y._.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1ihxdo5._.js +4 -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]__0-wn51s._.js → [root-of-the-server]__1pcxxwg._.js} +3 -3
- 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]__1vvfde2._.js +4 -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} +1 -1
- 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 +43 -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_068jk73._.js → lib_utils_ts_0az0sfq._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_1ynf7el._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_html2canvas_dist_html2canvas_esm_05gja40.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_html2canvas_dist_html2canvas_esm_1n-0xws.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_0h9llsw._.js → node_modules_next_dist_0uboya6._.js} +2 -2
- 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_0j79~gv.js → node_modules_next_dist_esm_build_templates_app-page_0xrgzyz.js} +1 -1
- 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 +3 -0
- 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/chunks/{07uz2g0_38qia.js → 03fmihek9n986.js} +1 -1
- package/.next/standalone/.next/static/chunks/09ueq8s1as8xs.css +2 -0
- package/.next/standalone/.next/static/chunks/0ehe4dh0grngk.js +41 -0
- package/.next/standalone/.next/static/chunks/{0bke.~atnsbeb.js → 0gdm-xaez4l7t.js} +1 -1
- package/.next/standalone/.next/static/chunks/{11w14gnqzprir.js → 0kdglk0vtzymo.js} +1 -1
- package/.next/standalone/.next/static/chunks/0qassxjx1ef04.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/1btx2c49fk9xt.css +1 -0
- package/.next/standalone/.next/static/chunks/1fmco3pvq_twz.js +1 -0
- package/.next/standalone/.next/static/chunks/2b1fzuhuk-42n.js +1 -0
- package/.next/standalone/.next/static/chunks/{0bv1oyxspkpkb.js → 2dtip-mvmihiu.js} +1 -1
- package/.next/standalone/.next/static/chunks/2srzafd1_ha5y.js +1 -0
- package/.next/standalone/.next/static/chunks/{0d3shmwh5_nmn.js → 33u59vf_8xpd-.js} +1 -1
- package/.next/standalone/.next/static/chunks/3gti1qdk5epqn.js +1 -0
- package/.next/standalone/.next/static/chunks/{0dvhi-prcsh3~.js → 3krzy-lhwfrmz.js} +1 -1
- package/.next/standalone/.next/static/chunks/{17mubwtqwijpu.js → 3w8d8k_dca5rp.js} +1 -1
- package/.next/standalone/.next/static/chunks/43lnq0c1rnflb.js +6 -0
- package/.next/standalone/.next/static/chunks/{turbopack-0nh.aopesgj~5.js → turbopack-00qy7zfa7m--m.js} +1 -1
- package/.next/standalone/SECURITY.md +73 -0
- package/.next/standalone/app/actions/get-audit-result.ts +24 -0
- package/.next/standalone/app/api/audit/_state.ts +72 -0
- package/.next/standalone/app/api/audit/run/route.ts +89 -0
- package/.next/standalone/app/api/audit/status/route.ts +23 -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 +364 -0
- package/.next/standalone/app/audit/_components/auth-dialog.tsx +401 -0
- package/.next/standalone/app/audit/_components/empty-state.tsx +146 -0
- package/.next/standalone/app/audit/_components/findings-section.tsx +135 -0
- package/.next/standalone/app/audit/_components/identity-section.tsx +126 -0
- package/.next/standalone/app/audit/_components/policies-section.tsx +194 -0
- package/.next/standalone/app/audit/_components/report-footer.tsx +35 -0
- package/.next/standalone/app/audit/_components/rerun-button.tsx +81 -0
- package/.next/standalone/app/audit/_components/return-section.tsx +428 -0
- package/.next/standalone/app/audit/_components/run-progress.tsx +120 -0
- package/.next/standalone/app/audit/_components/score-section.tsx +179 -0
- package/.next/standalone/app/audit/_components/share-dock.tsx +265 -0
- package/.next/standalone/app/audit/_components/share-templates.ts +67 -0
- package/.next/standalone/app/audit/_components/show-off-cta.tsx +135 -0
- package/.next/standalone/app/audit/_components/sigil.tsx +93 -0
- package/.next/standalone/app/audit/_components/strengths-section.tsx +57 -0
- package/.next/standalone/app/audit/audit-styles.css +2066 -0
- package/.next/standalone/app/audit/loading.tsx +24 -0
- package/.next/standalone/app/audit/page.tsx +53 -0
- package/.next/standalone/app/globals.css +570 -137
- package/.next/standalone/app/layout.tsx +16 -9
- package/.next/standalone/app/policies/hooks-client.tsx +223 -129
- package/.next/standalone/app/project/[name]/page.tsx +89 -39
- package/.next/standalone/app/projects/loading.tsx +30 -8
- package/.next/standalone/app/projects/page.tsx +76 -18
- 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 +154 -65
- package/.next/standalone/components/reach-developers.tsx +37 -9
- package/.next/standalone/lib/atomic-write.ts +67 -0
- package/.next/standalone/lib/auth/api-server-client.ts +281 -0
- package/.next/standalone/lib/auth/auth-store.ts +250 -0
- package/.next/standalone/lib/client-telemetry.ts +2 -0
- package/.next/standalone/lib/fetch-with-timeout.ts +42 -0
- package/.next/standalone/lib/share-card.ts +120 -0
- package/.next/standalone/lib/telemetry.ts +12 -7
- package/.next/standalone/node_modules/@next/env/package.json +1 -1
- package/.next/standalone/node_modules/next/dist/build/swc/index.js +1 -1
- package/.next/standalone/node_modules/next/dist/client/dev/debug-channel.js +102 -2
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +11 -11
- 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 +1 -1
- 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 +18 -8
- 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/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/patch-fetch.js +5 -1
- package/.next/standalone/node_modules/next/dist/server/lib/start-server.js +1 -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/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 +8 -3
- 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 +2 -1
- package/bin/failproofai.mjs +165 -144
- package/dist/cli.mjs +607 -1858
- package/lib/atomic-write.ts +67 -0
- package/lib/auth/api-server-client.ts +281 -0
- package/lib/auth/auth-store.ts +250 -0
- package/lib/client-telemetry.ts +2 -0
- package/lib/fetch-with-timeout.ts +42 -0
- package/lib/share-card.ts +120 -0
- package/lib/telemetry.ts +12 -7
- package/package.json +8 -3
- package/scripts/install-telemetry.mjs +4 -0
- package/src/audit/archetypes.ts +924 -0
- package/src/audit/cache.ts +21 -2
- package/src/audit/dashboard-cache.ts +111 -0
- package/src/audit/features.ts +268 -0
- package/src/audit/findings.ts +298 -0
- package/src/audit/index.ts +39 -21
- package/src/audit/replay.ts +29 -3
- package/src/audit/scoring.ts +174 -0
- package/src/audit/strengths.ts +138 -0
- package/src/audit/types.ts +24 -1
- package/src/auth/cli.ts +359 -0
- package/src/hooks/builtin-policies.ts +2 -1
- package/src/hooks/hook-telemetry.ts +2 -2
- package/src/hooks/policy-registry.ts +20 -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]__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/ssr/[root-of-the-server]__01as125._.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]__09v.ljl._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0agrcb8._.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0b7hkr~._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ehh6vp._.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0g8l0tu._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0j4l6hl._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0k5n2kz._.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0lp08ll._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0n0yaqw._.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0o21f.o._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0t8juvy._.js +0 -4
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0uylufv._.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]__0~03grs._.js +0 -3
- 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/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_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_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/07kpqoo7kuckx.js +0 -6
- package/.next/standalone/.next/static/chunks/0azb~vy9ds_uy.js +0 -1
- package/.next/standalone/.next/static/chunks/0f5p9plm.aqlp.css +0 -2
- package/.next/standalone/.next/static/chunks/0ffvlbgzgnlw7.js +0 -2
- package/.next/standalone/.next/static/chunks/0spktq7xqab9h.js +0 -1
- package/.next/standalone/.next/static/chunks/118q3uljozd5z.js +0 -4
- package/.next/standalone/.next/static/chunks/12pt~2f.c1sha.js +0 -1
- package/.next/standalone/.next/static/media/4fa387ec64143e14-s.0.qu-9752pffj.woff2 +0 -0
- package/.next/standalone/.next/static/media/5ce348bf30bf5439-s.0ee55_hj9qcer.woff2 +0 -0
- package/.next/standalone/.next/static/media/6306c77e7c8268e4-s.0mao5jbfbduzp.woff2 +0 -0
- package/.next/standalone/.next/static/media/797e433ab948586e-s.p.09zddjkbdep5a.woff2 +0 -0
- package/.next/standalone/.next/static/media/7d817b4c03b0c5f1-s.0uzt.a6d44yda.woff2 +0 -0
- package/.next/standalone/.next/static/media/bbc41e54d2fcbd21-s.0mvwgmnhv29no.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/audit/telemetry.ts +0 -113
- /package/.next/standalone/.next/server/app/{icon.png → api/audit/run}/route/build-manifest.json +0 -0
- /package/.next/standalone/.next/server/app/{icon.png → api/audit/run}/route.js.map +0 -0
- /package/.next/standalone/.next/static/chunks/{03~yq9q893hmn.js → 0cz1d0mv5g_q7.js} +0 -0
- /package/.next/standalone/.next/static/chunks/{0a40sy4tk8ioe.js → 0wwt5o04i4zwh.js} +0 -0
- /package/.next/standalone/.next/static/chunks/{0n1n67imq.udf.js → 1__i9af9g78vd.js} +0 -0
- /package/.next/standalone/.next/static/chunks/{0w6fzf.07a24u.js → 2so39wg7mjbi7.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
- /package/.next/standalone/.next/static/{tGVQM5SE3NvbVu0gbAJm7 → wU3ot-EKa5ApKoh785wp8}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{tGVQM5SE3NvbVu0gbAJm7 → wU3ot-EKa5ApKoh785wp8}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{tGVQM5SE3NvbVu0gbAJm7 → wU3ot-EKa5ApKoh785wp8}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Section 06 — NEXT AUDIT / "come back better." Re-audit loop CTA.
|
|
5
|
+
*
|
|
6
|
+
* Behavior matrix:
|
|
7
|
+
* - unknown (probe in flight) → buttons disabled
|
|
8
|
+
* - anon (no session) → [ set a reminder ] opens AuthDialog,
|
|
9
|
+
* on success we flip to the authed panel
|
|
10
|
+
* below and persist the 7-day reminder.
|
|
11
|
+
* - authed (any) → consolidated status panel: "signed in as
|
|
12
|
+
* …" + either the persisted "next audit in
|
|
13
|
+
* X days" line OR a "no reminder set yet"
|
|
14
|
+
* line with an inline [ set a reminder ]
|
|
15
|
+
* button. The reminder persists across
|
|
16
|
+
* reloads via ~/.failproofai/next-audit.json
|
|
17
|
+
* — same as the CLI's auth.json.
|
|
18
|
+
*
|
|
19
|
+
* Also exposes [ re-audit now ] next to [ install policies ] so the user
|
|
20
|
+
* can trigger a fresh scan inline without leaving the page. The button
|
|
21
|
+
* fires POST /api/audit/run (same backend the empty-state CTA uses).
|
|
22
|
+
*/
|
|
23
|
+
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
24
|
+
import type { AuditResult } from "@/src/audit/types";
|
|
25
|
+
import { usePostHog } from "@/contexts/PostHogContext";
|
|
26
|
+
import { isAbortError } from "@/lib/fetch-with-timeout";
|
|
27
|
+
import { AuthDialog, type AuthedUser } from "./auth-dialog";
|
|
28
|
+
import { RerunError, triggerRun } from "./rerun-button";
|
|
29
|
+
|
|
30
|
+
interface Props {
|
|
31
|
+
result: AuditResult;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const BULK_INSTALL_CMD = "failproofai policies --install";
|
|
35
|
+
const DEFAULT_REMINDER_DAYS = 7;
|
|
36
|
+
|
|
37
|
+
type AuthStatus =
|
|
38
|
+
| { kind: "unknown" }
|
|
39
|
+
| { kind: "anon" }
|
|
40
|
+
| { kind: "authed"; user: { id: string; email: string } };
|
|
41
|
+
|
|
42
|
+
interface Reminder {
|
|
43
|
+
next_audit_at: number; // unix seconds
|
|
44
|
+
user_email: string;
|
|
45
|
+
set_at: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function daysUntil(unixSecs: number): number {
|
|
49
|
+
const nowSecs = Math.floor(Date.now() / 1000);
|
|
50
|
+
return Math.max(0, Math.ceil((unixSecs - nowSecs) / 86400));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function formatNextAudit(unixSecs: number): string {
|
|
54
|
+
const d = new Date(unixSecs * 1000);
|
|
55
|
+
return d.toLocaleDateString(undefined, {
|
|
56
|
+
weekday: "short",
|
|
57
|
+
month: "short",
|
|
58
|
+
day: "numeric",
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ReturnSection({ result }: Props) {
|
|
63
|
+
const { capture } = usePostHog();
|
|
64
|
+
const hasUnenabled = result.results.some(
|
|
65
|
+
(r) => r.source === "builtin" && !r.enabledInConfig && r.hits > 0,
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
const [copied, setCopied] = useState(false);
|
|
69
|
+
const [authStatus, setAuthStatus] = useState<AuthStatus>({ kind: "unknown" });
|
|
70
|
+
const [reminder, setReminder] = useState<Reminder | null>(null);
|
|
71
|
+
const [dialogOpen, setDialogOpen] = useState(false);
|
|
72
|
+
const [reminderBusy, setReminderBusy] = useState(false);
|
|
73
|
+
const [rerunBusy, setRerunBusy] = useState(false);
|
|
74
|
+
const ctaShownRef = useRef(false);
|
|
75
|
+
/** Throttle gate for focus/visibility-triggered refreshStatus calls —
|
|
76
|
+
* rapid alt-tabbing would otherwise hit /api/auth/status (two disk
|
|
77
|
+
* reads each) once per event. */
|
|
78
|
+
const lastRefreshAtRef = useRef(0);
|
|
79
|
+
|
|
80
|
+
// Probe /api/auth/status on mount — also returns the persisted reminder
|
|
81
|
+
// when one exists and belongs to the active session.
|
|
82
|
+
const refreshStatus = useCallback(async () => {
|
|
83
|
+
lastRefreshAtRef.current = Date.now();
|
|
84
|
+
try {
|
|
85
|
+
const res = await fetch("/api/auth/status", { cache: "no-store" });
|
|
86
|
+
const body = (await res.json()) as {
|
|
87
|
+
authenticated?: boolean;
|
|
88
|
+
user?: { id: string; email: string };
|
|
89
|
+
reminder?: Reminder | null;
|
|
90
|
+
};
|
|
91
|
+
if (body.authenticated && body.user) {
|
|
92
|
+
setAuthStatus({ kind: "authed", user: body.user });
|
|
93
|
+
setReminder(body.reminder ?? null);
|
|
94
|
+
} else {
|
|
95
|
+
setAuthStatus({ kind: "anon" });
|
|
96
|
+
setReminder(null);
|
|
97
|
+
}
|
|
98
|
+
} catch {
|
|
99
|
+
setAuthStatus({ kind: "anon" });
|
|
100
|
+
setReminder(null);
|
|
101
|
+
}
|
|
102
|
+
}, []);
|
|
103
|
+
|
|
104
|
+
useEffect(() => {
|
|
105
|
+
void refreshStatus();
|
|
106
|
+
// Re-probe whenever the tab regains focus or visibility — picks up
|
|
107
|
+
// CLI `failproofai auth login` / `logout` and api-server restarts
|
|
108
|
+
// without the user having to hit reload manually. Throttled to 5s so
|
|
109
|
+
// rapid alt-tabbing (a focus + a visibility event for one switch)
|
|
110
|
+
// doesn't double-fire.
|
|
111
|
+
const REFRESH_MIN_INTERVAL_MS = 5_000;
|
|
112
|
+
const maybeRefresh = () => {
|
|
113
|
+
if (Date.now() - lastRefreshAtRef.current < REFRESH_MIN_INTERVAL_MS) return;
|
|
114
|
+
void refreshStatus();
|
|
115
|
+
};
|
|
116
|
+
const onFocus = () => maybeRefresh();
|
|
117
|
+
const onVisibility = () => {
|
|
118
|
+
if (document.visibilityState === "visible") maybeRefresh();
|
|
119
|
+
};
|
|
120
|
+
window.addEventListener("focus", onFocus);
|
|
121
|
+
document.addEventListener("visibilitychange", onVisibility);
|
|
122
|
+
return () => {
|
|
123
|
+
window.removeEventListener("focus", onFocus);
|
|
124
|
+
document.removeEventListener("visibilitychange", onVisibility);
|
|
125
|
+
};
|
|
126
|
+
}, [refreshStatus]);
|
|
127
|
+
|
|
128
|
+
// Fire-once "user saw the reminder CTA" event so we can compute the
|
|
129
|
+
// funnel shown → clicked → auth → saved. We wait until the auth probe
|
|
130
|
+
// finishes — before that the buttons are disabled and the CTA isn't
|
|
131
|
+
// really "shown".
|
|
132
|
+
useEffect(() => {
|
|
133
|
+
if (ctaShownRef.current) return;
|
|
134
|
+
if (authStatus.kind === "unknown") return;
|
|
135
|
+
ctaShownRef.current = true;
|
|
136
|
+
capture("audit_reminder_cta_shown", {
|
|
137
|
+
auth_state: authStatus.kind,
|
|
138
|
+
has_existing_reminder: reminder !== null,
|
|
139
|
+
source: "return_section",
|
|
140
|
+
});
|
|
141
|
+
}, [authStatus, capture, reminder]);
|
|
142
|
+
|
|
143
|
+
const persistReminder = useCallback(async (): Promise<Reminder | null> => {
|
|
144
|
+
// 10s ceiling so a hung route can't permanently disable the CTA.
|
|
145
|
+
const controller = new AbortController();
|
|
146
|
+
const timer = setTimeout(() => controller.abort(), 10_000);
|
|
147
|
+
try {
|
|
148
|
+
setReminderBusy(true);
|
|
149
|
+
const res = await fetch("/api/auth/reminder", {
|
|
150
|
+
method: "POST",
|
|
151
|
+
headers: { "content-type": "application/json" },
|
|
152
|
+
body: JSON.stringify({ in_days: DEFAULT_REMINDER_DAYS }),
|
|
153
|
+
signal: controller.signal,
|
|
154
|
+
});
|
|
155
|
+
if (!res.ok) {
|
|
156
|
+
// A 401 here means our local "authed" view of the world is out of
|
|
157
|
+
// date — the server-side session was revoked or expired between the
|
|
158
|
+
// status probe and this write. Flip back to anon so the user can
|
|
159
|
+
// re-authenticate instead of leaving them on a panel whose actions
|
|
160
|
+
// silently no-op.
|
|
161
|
+
if (res.status === 401) {
|
|
162
|
+
setAuthStatus({ kind: "anon" });
|
|
163
|
+
setReminder(null);
|
|
164
|
+
}
|
|
165
|
+
capture("audit_reminder_saved", {
|
|
166
|
+
status: `http_${res.status}`,
|
|
167
|
+
source: "return_section",
|
|
168
|
+
});
|
|
169
|
+
return null;
|
|
170
|
+
}
|
|
171
|
+
const body = (await res.json()) as { reminder?: Reminder };
|
|
172
|
+
capture("audit_reminder_saved", {
|
|
173
|
+
status: body.reminder ? "success" : "empty",
|
|
174
|
+
source: "return_section",
|
|
175
|
+
});
|
|
176
|
+
return body.reminder ?? null;
|
|
177
|
+
} catch (err) {
|
|
178
|
+
const kind = isAbortError(err) ? "timeout" : "error";
|
|
179
|
+
capture("audit_reminder_saved", {
|
|
180
|
+
status: kind,
|
|
181
|
+
source: "return_section",
|
|
182
|
+
});
|
|
183
|
+
return null;
|
|
184
|
+
} finally {
|
|
185
|
+
clearTimeout(timer);
|
|
186
|
+
setReminderBusy(false);
|
|
187
|
+
}
|
|
188
|
+
}, [capture]);
|
|
189
|
+
|
|
190
|
+
const handleInstall = async () => {
|
|
191
|
+
capture("audit_install_policies_clicked", {
|
|
192
|
+
source: "return_section",
|
|
193
|
+
});
|
|
194
|
+
try {
|
|
195
|
+
await navigator.clipboard.writeText(BULK_INSTALL_CMD);
|
|
196
|
+
setCopied(true);
|
|
197
|
+
capture("audit_copy_clicked", {
|
|
198
|
+
source: "return_section_install_policies",
|
|
199
|
+
item_type: "bulk_install_command",
|
|
200
|
+
});
|
|
201
|
+
setTimeout(() => setCopied(false), 1500);
|
|
202
|
+
} catch {
|
|
203
|
+
/* ignore */
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
const handleSetReminder = useCallback(async () => {
|
|
208
|
+
if (authStatus.kind === "unknown") return;
|
|
209
|
+
capture("audit_reminder_cta_clicked", {
|
|
210
|
+
auth_state: authStatus.kind,
|
|
211
|
+
has_existing_reminder: reminder !== null,
|
|
212
|
+
source: "return_section",
|
|
213
|
+
});
|
|
214
|
+
if (authStatus.kind === "authed") {
|
|
215
|
+
const next = await persistReminder();
|
|
216
|
+
if (next) setReminder(next);
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
setDialogOpen(true);
|
|
220
|
+
}, [authStatus, capture, persistReminder, reminder]);
|
|
221
|
+
|
|
222
|
+
const handleAuthed = useCallback(
|
|
223
|
+
async (user: AuthedUser) => {
|
|
224
|
+
setAuthStatus({ kind: "authed", user });
|
|
225
|
+
capture("audit_auth_completed", {
|
|
226
|
+
source: "return_section",
|
|
227
|
+
});
|
|
228
|
+
// The dialog opened because the user wanted a reminder → persist
|
|
229
|
+
// immediately, no second click required.
|
|
230
|
+
const next = await persistReminder();
|
|
231
|
+
if (next) setReminder(next);
|
|
232
|
+
},
|
|
233
|
+
[capture, persistReminder],
|
|
234
|
+
);
|
|
235
|
+
|
|
236
|
+
const handleRerun = useCallback(async () => {
|
|
237
|
+
if (rerunBusy) return;
|
|
238
|
+
capture("audit_rerun_clicked", {
|
|
239
|
+
source: "return_section",
|
|
240
|
+
since: "30d",
|
|
241
|
+
});
|
|
242
|
+
setRerunBusy(true);
|
|
243
|
+
try {
|
|
244
|
+
await triggerRun({ cli: [], since: "30d" });
|
|
245
|
+
// Reload the page after the run so the cached result + dashboard cache
|
|
246
|
+
// get re-hydrated against the new scan. Cheaper than threading state.
|
|
247
|
+
window.location.reload();
|
|
248
|
+
} catch (err) {
|
|
249
|
+
const kind = err instanceof RerunError ? err.kind : "network";
|
|
250
|
+
capture("audit_rerun_failed", {
|
|
251
|
+
kind,
|
|
252
|
+
source: "return_section",
|
|
253
|
+
since: "30d",
|
|
254
|
+
cli_filter: "all",
|
|
255
|
+
});
|
|
256
|
+
} finally {
|
|
257
|
+
setRerunBusy(false);
|
|
258
|
+
}
|
|
259
|
+
}, [capture, rerunBusy]);
|
|
260
|
+
|
|
261
|
+
const authed = authStatus.kind === "authed";
|
|
262
|
+
const hasReminder = authed && reminder !== null;
|
|
263
|
+
const days = reminder ? daysUntil(reminder.next_audit_at) : 0;
|
|
264
|
+
const authedEmail =
|
|
265
|
+
authStatus.kind === "authed" ? authStatus.user.email : "";
|
|
266
|
+
|
|
267
|
+
return (
|
|
268
|
+
<section className="section" data-screen-label="06 Next audit">
|
|
269
|
+
<div className="section-mast">
|
|
270
|
+
<div className="section-label">
|
|
271
|
+
<span className="glyph">━━</span> next audit{" "}
|
|
272
|
+
<span style={{ color: "var(--dim)" }}>·</span> improvement
|
|
273
|
+
</div>
|
|
274
|
+
<div className="section-meta">
|
|
275
|
+
<span className="g">●</span> recommended in 7d
|
|
276
|
+
</div>
|
|
277
|
+
</div>
|
|
278
|
+
<h2 className="section-h">come back better.</h2>
|
|
279
|
+
|
|
280
|
+
<div className="return-hook">
|
|
281
|
+
<div className="label">━━ the loop</div>
|
|
282
|
+
<h3>re-audit in 7 days.</h3>
|
|
283
|
+
<p>
|
|
284
|
+
after the prescribed policies have been live for a week, we'll show
|
|
285
|
+
your before/after score and which detectors went quiet.
|
|
286
|
+
</p>
|
|
287
|
+
<p style={{ marginTop: 16, color: "var(--dim)" }}>
|
|
288
|
+
most agents move from C to B in one session. some make it in a day.
|
|
289
|
+
</p>
|
|
290
|
+
|
|
291
|
+
{/* Once authed, the section stays in the consolidated status panel —
|
|
292
|
+
with the reminder line if one is set, or a "no reminder yet" line
|
|
293
|
+
+ inline [ set a reminder ] button otherwise. The anonymous CTA
|
|
294
|
+
layout only shows for genuinely-unauthed sessions. The action
|
|
295
|
+
buttons ([ set a reminder ] / [ re-audit now ] / [ install
|
|
296
|
+
policies ]) are identical in both branches — extracted into
|
|
297
|
+
<ReturnActions> below to keep them in sync. */}
|
|
298
|
+
{authed ? (
|
|
299
|
+
<div className="return-status">
|
|
300
|
+
{hasReminder && reminder ? (
|
|
301
|
+
<div className="rs-row rs-row-primary">
|
|
302
|
+
<span className="rs-dot rs-dot-pink" aria-hidden="true" />
|
|
303
|
+
<span>
|
|
304
|
+
next audit set for{" "}
|
|
305
|
+
<span className="rs-strong">{formatNextAudit(reminder.next_audit_at)}</span>
|
|
306
|
+
{" "}<span style={{ color: "var(--dim)" }}>·</span>{" "}
|
|
307
|
+
<span className="rs-strong">in {days} day{days === 1 ? "" : "s"}</span>
|
|
308
|
+
</span>
|
|
309
|
+
</div>
|
|
310
|
+
) : (
|
|
311
|
+
<div className="rs-row rs-row-primary">
|
|
312
|
+
<span className="rs-dot rs-dot-pink" aria-hidden="true" />
|
|
313
|
+
<span>
|
|
314
|
+
<span className="rs-strong">no reminder set yet</span>
|
|
315
|
+
{" "}<span style={{ color: "var(--dim)" }}>·</span>{" "}
|
|
316
|
+
recommended in {DEFAULT_REMINDER_DAYS} days
|
|
317
|
+
</span>
|
|
318
|
+
</div>
|
|
319
|
+
)}
|
|
320
|
+
<div className="rs-row">
|
|
321
|
+
<span className="rs-dot rs-dot-green" aria-hidden="true" />
|
|
322
|
+
<span>
|
|
323
|
+
signed in as <span className="rs-email">{authedEmail}</span>
|
|
324
|
+
</span>
|
|
325
|
+
</div>
|
|
326
|
+
<ReturnActions
|
|
327
|
+
style={{ marginTop: 18 }}
|
|
328
|
+
showSetReminder={!hasReminder}
|
|
329
|
+
setReminderDisabled={reminderBusy}
|
|
330
|
+
reminderBusy={reminderBusy}
|
|
331
|
+
rerunBusy={rerunBusy}
|
|
332
|
+
hasUnenabled={hasUnenabled}
|
|
333
|
+
copied={copied}
|
|
334
|
+
onSetReminder={handleSetReminder}
|
|
335
|
+
onRerun={handleRerun}
|
|
336
|
+
onInstall={handleInstall}
|
|
337
|
+
/>
|
|
338
|
+
</div>
|
|
339
|
+
) : (
|
|
340
|
+
<ReturnActions
|
|
341
|
+
showSetReminder
|
|
342
|
+
setReminderDisabled={authStatus.kind === "unknown" || reminderBusy}
|
|
343
|
+
reminderBusy={reminderBusy}
|
|
344
|
+
rerunBusy={rerunBusy}
|
|
345
|
+
hasUnenabled={hasUnenabled}
|
|
346
|
+
copied={copied}
|
|
347
|
+
onSetReminder={handleSetReminder}
|
|
348
|
+
onRerun={handleRerun}
|
|
349
|
+
onInstall={handleInstall}
|
|
350
|
+
/>
|
|
351
|
+
)}
|
|
352
|
+
</div>
|
|
353
|
+
|
|
354
|
+
<AuthDialog
|
|
355
|
+
open={dialogOpen}
|
|
356
|
+
source="return_section"
|
|
357
|
+
headline="oops — you are unknown."
|
|
358
|
+
reason="verify yourself to get the re-audit reminder."
|
|
359
|
+
onClose={() => setDialogOpen(false)}
|
|
360
|
+
onAuthed={(u) => {
|
|
361
|
+
setDialogOpen(false);
|
|
362
|
+
void handleAuthed(u);
|
|
363
|
+
}}
|
|
364
|
+
/>
|
|
365
|
+
</section>
|
|
366
|
+
);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
interface ReturnActionsProps {
|
|
370
|
+
/** Whether to render the `[ set a reminder ]` button. False when the
|
|
371
|
+
* user already has a reminder set (the authed-with-reminder case
|
|
372
|
+
* shows the panel meta instead). */
|
|
373
|
+
showSetReminder: boolean;
|
|
374
|
+
setReminderDisabled: boolean;
|
|
375
|
+
reminderBusy: boolean;
|
|
376
|
+
rerunBusy: boolean;
|
|
377
|
+
hasUnenabled: boolean;
|
|
378
|
+
copied: boolean;
|
|
379
|
+
onSetReminder: () => void;
|
|
380
|
+
onRerun: () => void;
|
|
381
|
+
onInstall: () => void;
|
|
382
|
+
style?: React.CSSProperties;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/** Action button strip shared by the authed and anon branches. Extracted
|
|
386
|
+
* to keep the three buttons in sync — the prior inline copies had
|
|
387
|
+
* already drifted on margin-top styling. */
|
|
388
|
+
function ReturnActions(props: ReturnActionsProps): React.ReactElement {
|
|
389
|
+
const {
|
|
390
|
+
showSetReminder,
|
|
391
|
+
setReminderDisabled,
|
|
392
|
+
reminderBusy,
|
|
393
|
+
rerunBusy,
|
|
394
|
+
hasUnenabled,
|
|
395
|
+
copied,
|
|
396
|
+
onSetReminder,
|
|
397
|
+
onRerun,
|
|
398
|
+
onInstall,
|
|
399
|
+
style,
|
|
400
|
+
} = props;
|
|
401
|
+
return (
|
|
402
|
+
<div className="return-actions" style={style}>
|
|
403
|
+
{showSetReminder && (
|
|
404
|
+
<button
|
|
405
|
+
type="button"
|
|
406
|
+
className="share-btn"
|
|
407
|
+
onClick={onSetReminder}
|
|
408
|
+
disabled={setReminderDisabled}
|
|
409
|
+
>
|
|
410
|
+
{reminderBusy ? "[ saving… ]" : "[ set a reminder ]"}
|
|
411
|
+
</button>
|
|
412
|
+
)}
|
|
413
|
+
<button
|
|
414
|
+
type="button"
|
|
415
|
+
className="share-btn alt"
|
|
416
|
+
onClick={onRerun}
|
|
417
|
+
disabled={rerunBusy}
|
|
418
|
+
>
|
|
419
|
+
{rerunBusy ? "[ scanning… ]" : "[ re-audit now ]"}
|
|
420
|
+
</button>
|
|
421
|
+
{hasUnenabled && (
|
|
422
|
+
<button type="button" className="share-btn alt" onClick={onInstall}>
|
|
423
|
+
{copied ? "[ ✓ copied — paste in your shell ]" : "[ install policies ]"}
|
|
424
|
+
</button>
|
|
425
|
+
)}
|
|
426
|
+
</div>
|
|
427
|
+
);
|
|
428
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Fake-progress UI shown while /api/audit/run is in flight. runAudit() does
|
|
5
|
+
* not emit granular progress events, so we animate through 4 plausible
|
|
6
|
+
* stages on a fixed 4s interval. The user sees motion + a clear "this is
|
|
7
|
+
* still working" signal.
|
|
8
|
+
*
|
|
9
|
+
* Real runs take up to 30 seconds. The 4 stages would otherwise march
|
|
10
|
+
* straight to 4/4 and 100% well before the run actually resolves, so we:
|
|
11
|
+
* - hold on the last stage in a "finishing up" label
|
|
12
|
+
* - cap the visual bar at 90% until the parent unmounts this component
|
|
13
|
+
*
|
|
14
|
+
* Visual: audit pixel-craft. A `.panel` with pink corner brackets, a
|
|
15
|
+
* scanline-style spinner header, a stack of stages with green "✓" /
|
|
16
|
+
* pink "▮▮" / dim "○" markers, and a marquee progress bar at the bottom
|
|
17
|
+
* filling pink-on-dark as the run advances.
|
|
18
|
+
*/
|
|
19
|
+
import React, { useEffect, useState } from "react";
|
|
20
|
+
|
|
21
|
+
const STAGES = [
|
|
22
|
+
{ label: "discovering transcripts", detail: "walking ~/.claude, ~/.codex, ~/.cursor, …" },
|
|
23
|
+
{ label: "parsing session logs", detail: "reading JSONL + sqlite session stores" },
|
|
24
|
+
{ label: "running policy checks", detail: "replaying through 30 builtin policies" },
|
|
25
|
+
{ label: "aggregating results", detail: "counting hits, ranking by frequency" },
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
const STAGE_DURATION_MS = 4000;
|
|
29
|
+
/** Visual cap until the actual run resolves. The component is unmounted
|
|
30
|
+
* by the parent on completion — there is no "hit 100%" frame from here. */
|
|
31
|
+
const MAX_DISPLAY_PROGRESS = 0.9;
|
|
32
|
+
|
|
33
|
+
export function RunProgress() {
|
|
34
|
+
const [stage, setStage] = useState(0);
|
|
35
|
+
const [tick, setTick] = useState(0);
|
|
36
|
+
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
const stageTimer = setInterval(() => {
|
|
39
|
+
setStage((s) => Math.min(s + 1, STAGES.length - 1));
|
|
40
|
+
}, STAGE_DURATION_MS);
|
|
41
|
+
const tickTimer = setInterval(() => setTick((t) => (t + 1) % 4), 350);
|
|
42
|
+
return () => {
|
|
43
|
+
clearInterval(stageTimer);
|
|
44
|
+
clearInterval(tickTimer);
|
|
45
|
+
};
|
|
46
|
+
}, []);
|
|
47
|
+
|
|
48
|
+
const dots = ".".repeat(tick + 1);
|
|
49
|
+
const onLastStage = stage === STAGES.length - 1;
|
|
50
|
+
const barRatio = Math.min(MAX_DISPLAY_PROGRESS, ((stage + 1) / STAGES.length) * MAX_DISPLAY_PROGRESS);
|
|
51
|
+
const barPercent = Math.round(barRatio * 100);
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<section className="section running-section" data-screen-label="00 Running">
|
|
55
|
+
<div className="section-mast">
|
|
56
|
+
<div className="section-label">
|
|
57
|
+
<span className="glyph">━━</span> audit{" "}
|
|
58
|
+
<span style={{ color: "var(--dim)" }}>·</span> in progress
|
|
59
|
+
</div>
|
|
60
|
+
<div className="section-meta">
|
|
61
|
+
<span style={{ color: "var(--accent-pink)" }}>●</span> scanning
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
<h2 className="section-h">scanning sessions{dots}</h2>
|
|
65
|
+
|
|
66
|
+
<div className="panel running-panel">
|
|
67
|
+
<div className="running-header">
|
|
68
|
+
<span className="running-prompt">$</span>
|
|
69
|
+
<span className="running-cmd">failproofai audit --since 30d</span>
|
|
70
|
+
<span className="running-cursor" aria-hidden="true">▮</span>
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
<ul className="running-stages">
|
|
74
|
+
{STAGES.map((s, i) => {
|
|
75
|
+
const done = i < stage;
|
|
76
|
+
const active = i === stage;
|
|
77
|
+
return (
|
|
78
|
+
<li
|
|
79
|
+
key={i}
|
|
80
|
+
className={"running-stage" + (done ? " done" : active ? " active" : " queued")}
|
|
81
|
+
>
|
|
82
|
+
<span className="running-marker" aria-hidden="true">
|
|
83
|
+
{done ? "✓" : active ? "▮▮" : "○"}
|
|
84
|
+
</span>
|
|
85
|
+
<div className="running-stage-body">
|
|
86
|
+
<div className="running-stage-label">{s.label}</div>
|
|
87
|
+
{active && (
|
|
88
|
+
<div className="running-stage-detail">
|
|
89
|
+
{onLastStage ? "finishing up…" : s.detail}
|
|
90
|
+
</div>
|
|
91
|
+
)}
|
|
92
|
+
</div>
|
|
93
|
+
{active && (
|
|
94
|
+
<span className="running-stage-spin" aria-hidden="true">
|
|
95
|
+
{["⠋", "⠙", "⠹", "⠸"][tick]}
|
|
96
|
+
</span>
|
|
97
|
+
)}
|
|
98
|
+
</li>
|
|
99
|
+
);
|
|
100
|
+
})}
|
|
101
|
+
</ul>
|
|
102
|
+
|
|
103
|
+
<div className="running-bar-label">
|
|
104
|
+
<span>progress</span>
|
|
105
|
+
<span style={{ color: "var(--dim)" }}>{barPercent}%</span>
|
|
106
|
+
</div>
|
|
107
|
+
<div className="running-bar-track">
|
|
108
|
+
<div
|
|
109
|
+
className="running-bar-fill"
|
|
110
|
+
style={{ width: `${barPercent}%` }}
|
|
111
|
+
/>
|
|
112
|
+
</div>
|
|
113
|
+
|
|
114
|
+
<p className="running-foot">
|
|
115
|
+
this usually takes 10–30 seconds depending on how much session history you have.
|
|
116
|
+
</p>
|
|
117
|
+
</div>
|
|
118
|
+
</section>
|
|
119
|
+
);
|
|
120
|
+
}
|