prism0x2a 0.7.1 → 0.7.2
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 +1 -0
- package/.next/standalone/.next/build-manifest.json +3 -3
- package/.next/standalone/.next/prerender-manifest.json +24 -0
- package/.next/standalone/.next/required-server-files.json +1 -1
- package/.next/standalone/.next/routes-manifest.json +6 -0
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +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 +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/amber/capabilities/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/amber/capabilities/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/amber/capabilities.html +1 -1
- package/.next/standalone/.next/server/app/amber/capabilities.rsc +3 -3
- package/.next/standalone/.next/server/app/amber/capabilities.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/amber/capabilities.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/amber/capabilities.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/amber/capabilities.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/amber/capabilities.segments/amber/capabilities/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/amber/capabilities.segments/amber/capabilities.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/amber/capabilities.segments/amber.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/amber/coverage/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/amber/coverage.html +1 -1
- package/.next/standalone/.next/server/app/amber/coverage.rsc +3 -3
- package/.next/standalone/.next/server/app/amber/coverage.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/amber/coverage.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/amber/coverage.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/amber/coverage.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/amber/coverage.segments/amber/coverage/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/amber/coverage.segments/amber/coverage.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/amber/coverage.segments/amber.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/amber/files/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/amber/files.html +1 -1
- package/.next/standalone/.next/server/app/amber/files.rsc +3 -3
- package/.next/standalone/.next/server/app/amber/files.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/amber/files.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/amber/files.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/amber/files.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/amber/files.segments/amber/files/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/amber/files.segments/amber/files.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/amber/files.segments/amber.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/amber/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/amber.html +1 -1
- package/.next/standalone/.next/server/app/amber.rsc +3 -3
- package/.next/standalone/.next/server/app/amber.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/amber.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/amber.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/amber.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/amber.segments/amber/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/amber.segments/amber.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/api/amber/scan/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/blue/scan/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/green/cross-layer/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/green/queries/[id]/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/monorepo/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/blue/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/blue/recommendations/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/blue/recommendations/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/blue/recommendations.html +1 -1
- package/.next/standalone/.next/server/app/blue/recommendations.rsc +3 -3
- package/.next/standalone/.next/server/app/blue/recommendations.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/blue/recommendations.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/recommendations.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/recommendations.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/recommendations.segments/blue/recommendations/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/recommendations.segments/blue/recommendations.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/recommendations.segments/blue.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/sessions/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/blue/sessions/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/blue/sessions.html +1 -1
- package/.next/standalone/.next/server/app/blue/sessions.rsc +3 -3
- package/.next/standalone/.next/server/app/blue/sessions.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/blue/sessions.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/sessions.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/sessions.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/sessions.segments/blue/sessions/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/sessions.segments/blue/sessions.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/sessions.segments/blue.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue.html +1 -1
- package/.next/standalone/.next/server/app/blue.rsc +3 -3
- package/.next/standalone/.next/server/app/blue.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/blue.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue.segments/blue/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue.segments/blue.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/green/cross-layer/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/green/cross-layer.html +1 -1
- package/.next/standalone/.next/server/app/green/cross-layer.rsc +3 -3
- package/.next/standalone/.next/server/app/green/cross-layer.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/green/cross-layer.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/green/cross-layer.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/green/cross-layer.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/green/cross-layer.segments/green/cross-layer/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/green/cross-layer.segments/green/cross-layer.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/green/cross-layer.segments/green.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/green/insights/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/green/insights/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/green/insights.html +1 -1
- package/.next/standalone/.next/server/app/green/insights.rsc +3 -3
- package/.next/standalone/.next/server/app/green/insights.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/green/insights.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/green/insights.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/green/insights.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/green/insights.segments/green/insights/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/green/insights.segments/green/insights.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/green/insights.segments/green.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/green/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/green/queries/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/green/queries/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/green/queries.html +1 -1
- package/.next/standalone/.next/server/app/green/queries.rsc +3 -3
- package/.next/standalone/.next/server/app/green/queries.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/green/queries.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/green/queries.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/green/queries.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/green/queries.segments/green/queries/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/green/queries.segments/green/queries.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/green/queries.segments/green.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/green.html +1 -1
- package/.next/standalone/.next/server/app/green.rsc +3 -3
- package/.next/standalone/.next/server/app/green.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/green.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/green.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/green.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/green.segments/green/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/green.segments/green.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +3 -3
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/pricing/page/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/pricing/page/build-manifest.json +16 -0
- package/.next/standalone/.next/server/app/pricing/page/next-font-manifest.json +10 -0
- package/.next/standalone/.next/server/app/pricing/page/react-loadable-manifest.json +1 -0
- package/.next/standalone/.next/server/app/pricing/page/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/pricing/page.js +14 -0
- package/.next/standalone/.next/server/app/pricing/page.js.map +5 -0
- package/.next/standalone/.next/server/app/pricing/page.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/pricing/page_client-reference-manifest.js +3 -0
- package/.next/standalone/.next/server/app/pricing.html +1 -0
- package/.next/standalone/.next/server/app/pricing.meta +15 -0
- package/.next/standalone/.next/server/app/pricing.rsc +21 -0
- package/.next/standalone/.next/server/app/pricing.segments/_full.segment.rsc +21 -0
- package/.next/standalone/.next/server/app/pricing.segments/_head.segment.rsc +6 -0
- package/.next/standalone/.next/server/app/pricing.segments/_index.segment.rsc +5 -0
- package/.next/standalone/.next/server/app/pricing.segments/_tree.segment.rsc +3 -0
- package/.next/standalone/.next/server/app/pricing.segments/pricing/__PAGE__.segment.rsc +9 -0
- package/.next/standalone/.next/server/app/pricing.segments/pricing.segment.rsc +5 -0
- package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings.html +2 -2
- package/.next/standalone/.next/server/app/settings.rsc +3 -3
- package/.next/standalone/.next/server/app/settings.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/settings.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/settings.segments/settings.segment.rsc +1 -1
- package/.next/standalone/.next/server/app-paths-manifest.json +1 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__08rxe0c._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0es1n-0._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_0a2egyj._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_next-internal_server_app_pricing_page_actions_0gvv0qw.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/app_amber_capabilities_[id]_page_tsx_12~.miw._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_amber_capabilities_page_tsx_0.t9mpr._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_amber_coverage_page_tsx_01yia_n._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_amber_files_page_tsx_00pdkc~._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_amber_page_tsx_0ihx6zl._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_blue_page_tsx_0zg5eg-._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_blue_recommendations_[id]_page_tsx_10zzlnx._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_blue_recommendations_page_tsx_08w-50l._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_blue_sessions_[id]_page_tsx_0_~w1xj._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_blue_sessions_page_tsx_0kbuf.c._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_green_cross-layer_page_tsx_0a80o-~._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_green_insights_[id]_page_tsx_0se6uk1._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_green_insights_page_tsx_04g8_lf._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_green_page_tsx_10g2g6w._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_green_queries_[id]_page_tsx_0hg.qma._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_green_queries_page_tsx_0.p0r7z._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_page_tsx_0es_sk2._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_pricing_page_tsx_0uxncj9._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/app_settings_page_tsx_0~q~t-v._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_09d0h78.js +4 -0
- package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
- package/.next/standalone/.next/server/next-font-manifest.js +1 -1
- package/.next/standalone/.next/server/next-font-manifest.json +3 -0
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/static/chunks/{084jj1qvspd5q.js → 0-nogwaahf00r.js} +1 -1
- package/.next/standalone/.next/static/chunks/{060eaovbkat-h.js → 0-ozct-0~_~y0.js} +1 -1
- package/.next/{static/chunks/0z5b7hbocrn0k.js → standalone/.next/static/chunks/0043va.q9c120.js} +1 -1
- package/.next/standalone/.next/static/{static/chunks/13gu~y8285gmc.js → chunks/0062k_6y6ie8k.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0~fd5.2v15..-.js → 01x6uo5zvt23j.js} +1 -1
- package/.next/standalone/.next/static/chunks/03f4g06bhu.q-.js +1 -0
- package/.next/standalone/.next/static/chunks/06ciexs8mfsoh.js +1 -0
- package/.next/standalone/.next/static/{static/chunks/0bn7nidxp0z1s.js → chunks/06lbhw~p794rn.js} +1 -1
- package/.next/standalone/.next/static/{static/chunks/0pzddagh.5c96.js → chunks/0921_~z_rxr9h.js} +1 -1
- package/.next/standalone/.next/static/chunks/{025srq69s.4vw.js → 0_uy4bqezjrpu.js} +1 -1
- package/.next/standalone/.next/static/chunks/0aqr1e8db8tr2.js +1 -0
- package/.next/{static/chunks/0r_f617o--_ew.js → standalone/.next/static/chunks/0gtjarbzj_b0s.js} +1 -1
- package/.next/standalone/.next/static/chunks/0i826dpus7xfj.js +1 -0
- package/.next/standalone/.next/static/chunks/0l.f7bl92nc~2.css +2 -0
- package/.next/{static/chunks/040ishla0m-l2.js → standalone/.next/static/chunks/0mtsra7dpsxy_.js} +1 -1
- package/.next/{static/chunks/03pm.ery8hgop.js → standalone/.next/static/chunks/0nc15zt~yfrj3.js} +1 -1
- package/.next/{static/chunks/154-kyu.ej3ea.js → standalone/.next/static/chunks/0ptkiyk6p_hgq.js} +1 -1
- package/.next/standalone/.next/static/{static/chunks/05dd-x8ti6pfs.js → chunks/0vsoyv8nkj.rx.js} +1 -1
- package/.next/{static/chunks/0xyj3.tdpvqe4.js → standalone/.next/static/chunks/0zpu7b02c6huw.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0vuk.7e07_u10.js → 10ibvf69namr1.js} +1 -1
- package/.next/standalone/.next/static/{static/chunks/0ck1t6t3dy~gs.js → chunks/1655x4_8fq5li.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/{084jj1qvspd5q.js → 0-nogwaahf00r.js} +1 -1
- package/.next/{static/chunks/060eaovbkat-h.js → standalone/.next/static/static/chunks/0-ozct-0~_~y0.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/{0z5b7hbocrn0k.js → 0043va.q9c120.js} +1 -1
- package/.next/{static/chunks/13gu~y8285gmc.js → standalone/.next/static/static/chunks/0062k_6y6ie8k.js} +1 -1
- package/.next/{static/chunks/0~fd5.2v15..-.js → standalone/.next/static/static/chunks/01x6uo5zvt23j.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/03f4g06bhu.q-.js +1 -0
- package/.next/standalone/.next/static/static/chunks/06ciexs8mfsoh.js +1 -0
- package/.next/{static/chunks/0bn7nidxp0z1s.js → standalone/.next/static/static/chunks/06lbhw~p794rn.js} +1 -1
- package/.next/standalone/.next/static/{chunks/0pzddagh.5c96.js → static/chunks/0921_~z_rxr9h.js} +1 -1
- package/.next/{static/chunks/025srq69s.4vw.js → standalone/.next/static/static/chunks/0_uy4bqezjrpu.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/0aqr1e8db8tr2.js +1 -0
- package/.next/standalone/.next/static/static/chunks/{0r_f617o--_ew.js → 0gtjarbzj_b0s.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/0i826dpus7xfj.js +1 -0
- package/.next/standalone/.next/static/static/chunks/0l.f7bl92nc~2.css +2 -0
- package/.next/standalone/.next/static/static/chunks/{040ishla0m-l2.js → 0mtsra7dpsxy_.js} +1 -1
- package/.next/standalone/.next/static/{chunks/03pm.ery8hgop.js → static/chunks/0nc15zt~yfrj3.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/{154-kyu.ej3ea.js → 0ptkiyk6p_hgq.js} +1 -1
- package/.next/{static/chunks/05dd-x8ti6pfs.js → standalone/.next/static/static/chunks/0vsoyv8nkj.rx.js} +1 -1
- package/.next/standalone/.next/static/{chunks/0xyj3.tdpvqe4.js → static/chunks/0zpu7b02c6huw.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/{0vuk.7e07_u10.js → 10ibvf69namr1.js} +1 -1
- package/.next/{static/chunks/0ck1t6t3dy~gs.js → standalone/.next/static/static/chunks/1655x4_8fq5li.js} +1 -1
- package/.next/standalone/CHANGELOG.md +12 -0
- package/.next/standalone/app/pricing/page.tsx +289 -0
- package/.next/standalone/app/settings/page.tsx +8 -4
- package/.next/standalone/components/PrismDock.tsx +1 -0
- package/.next/standalone/components/pricing/BillingToggle.tsx +53 -0
- package/.next/standalone/components/pricing/FeatureList.tsx +19 -0
- package/.next/standalone/components/pricing/PricingCard.tsx +120 -0
- package/.next/standalone/package.json +1 -1
- package/.next/standalone/server.js +1 -1
- package/.next/standalone/tsconfig.tsbuildinfo +1 -1
- package/.next/static/chunks/{084jj1qvspd5q.js → 0-nogwaahf00r.js} +1 -1
- package/.next/{standalone/.next/static/static/chunks/060eaovbkat-h.js → static/chunks/0-ozct-0~_~y0.js} +1 -1
- package/.next/{standalone/.next/static/chunks/0z5b7hbocrn0k.js → static/chunks/0043va.q9c120.js} +1 -1
- package/.next/{standalone/.next/static/chunks/13gu~y8285gmc.js → static/chunks/0062k_6y6ie8k.js} +1 -1
- package/.next/{standalone/.next/static/static/chunks/0~fd5.2v15..-.js → static/chunks/01x6uo5zvt23j.js} +1 -1
- package/.next/static/chunks/03f4g06bhu.q-.js +1 -0
- package/.next/static/chunks/06ciexs8mfsoh.js +1 -0
- package/.next/{standalone/.next/static/chunks/0bn7nidxp0z1s.js → static/chunks/06lbhw~p794rn.js} +1 -1
- package/.next/static/chunks/{0pzddagh.5c96.js → 0921_~z_rxr9h.js} +1 -1
- package/.next/{standalone/.next/static/static/chunks/025srq69s.4vw.js → static/chunks/0_uy4bqezjrpu.js} +1 -1
- package/.next/static/chunks/0aqr1e8db8tr2.js +1 -0
- package/.next/{standalone/.next/static/chunks/0r_f617o--_ew.js → static/chunks/0gtjarbzj_b0s.js} +1 -1
- package/.next/static/chunks/0i826dpus7xfj.js +1 -0
- package/.next/static/chunks/0l.f7bl92nc~2.css +2 -0
- package/.next/{standalone/.next/static/chunks/040ishla0m-l2.js → static/chunks/0mtsra7dpsxy_.js} +1 -1
- package/.next/{standalone/.next/static/static/chunks/03pm.ery8hgop.js → static/chunks/0nc15zt~yfrj3.js} +1 -1
- package/.next/{standalone/.next/static/chunks/154-kyu.ej3ea.js → static/chunks/0ptkiyk6p_hgq.js} +1 -1
- package/.next/{standalone/.next/static/chunks/05dd-x8ti6pfs.js → static/chunks/0vsoyv8nkj.rx.js} +1 -1
- package/.next/{standalone/.next/static/static/chunks/0xyj3.tdpvqe4.js → static/chunks/0zpu7b02c6huw.js} +1 -1
- package/.next/static/chunks/{0vuk.7e07_u10.js → 10ibvf69namr1.js} +1 -1
- package/.next/{standalone/.next/static/chunks/0ck1t6t3dy~gs.js → static/chunks/1655x4_8fq5li.js} +1 -1
- package/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/.next/standalone/.next/static/chunks/0-u-st8-.soco.js +0 -1
- package/.next/standalone/.next/static/chunks/07bef4gh~ubvq.js +0 -1
- package/.next/standalone/.next/static/chunks/07~.mame73grt.js +0 -1
- package/.next/standalone/.next/static/chunks/0ddo77uynla4l.css +0 -2
- package/.next/standalone/.next/static/static/chunks/0-u-st8-.soco.js +0 -1
- package/.next/standalone/.next/static/static/chunks/07bef4gh~ubvq.js +0 -1
- package/.next/standalone/.next/static/static/chunks/07~.mame73grt.js +0 -1
- package/.next/standalone/.next/static/static/chunks/0ddo77uynla4l.css +0 -2
- package/.next/static/chunks/0-u-st8-.soco.js +0 -1
- package/.next/static/chunks/07bef4gh~ubvq.js +0 -1
- package/.next/static/chunks/07~.mame73grt.js +0 -1
- package/.next/static/chunks/0ddo77uynla4l.css +0 -2
- /package/.next/standalone/.next/static/{NZmaO_6ZZEbF4JCKrJtF0 → W2AhxwlOVhsTt-b4T3Mjc}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{NZmaO_6ZZEbF4JCKrJtF0 → W2AhxwlOVhsTt-b4T3Mjc}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{NZmaO_6ZZEbF4JCKrJtF0 → W2AhxwlOVhsTt-b4T3Mjc}/_ssgManifest.js +0 -0
- /package/.next/standalone/.next/static/static/{NZmaO_6ZZEbF4JCKrJtF0 → W2AhxwlOVhsTt-b4T3Mjc}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/static/{NZmaO_6ZZEbF4JCKrJtF0 → W2AhxwlOVhsTt-b4T3Mjc}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/static/{NZmaO_6ZZEbF4JCKrJtF0 → W2AhxwlOVhsTt-b4T3Mjc}/_ssgManifest.js +0 -0
- /package/.next/static/{NZmaO_6ZZEbF4JCKrJtF0 → W2AhxwlOVhsTt-b4T3Mjc}/_buildManifest.js +0 -0
- /package/.next/static/{NZmaO_6ZZEbF4JCKrJtF0 → W2AhxwlOVhsTt-b4T3Mjc}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{NZmaO_6ZZEbF4JCKrJtF0 → W2AhxwlOVhsTt-b4T3Mjc}/_ssgManifest.js +0 -0
package/.next/standalone/.next/server/chunks/ssr/app_amber_capabilities_[id]_page_tsx_12~.miw._.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[73874,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444);let f="rgb(251,191,36)",g={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},h={critical:"rgb(248,113,113)",high:"rgb(251,191,36)",medium:"rgb(99,102,241)",low:"rgb(52,211,153)"},i=[{key:"eyebrow",label:"Eyebrow"},{key:"headline",label:"Headline"},{key:"body",label:"Body"},{key:"microcopy",label:"Microcopy"},{key:"value_statement",label:"Value Statement"},{key:"example_flow",label:"Example Flow"},{key:"visual_hint",label:"Visual Hint"}];function j({label:a,children:c}){return(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-xs font-semibold text-slate-500 uppercase tracking-widest",children:a}),(0,b.jsx)("div",{className:"text-sm text-slate-300 leading-relaxed",children:c})]})}a.s(["default",0,function({params:a}){let{id:k}=(0,c.use)(a),l=decodeURIComponent(k),[m,n]=(0,c.useState)(null),[o,p]=(0,c.useState)([]),[q,r]=(0,c.useState)(0),[s,t]=(0,c.useState)(!0),[u,v]=(0,c.useState)(!1);return((0,c.useEffect)(()=>{fetch(`/api/amber/capabilities/${encodeURIComponent(l)}`).then(async a=>{if(404===a.status)return void v(!0);let b=await a.json();n(b.capability),p(b.tagged_files??[]),r(b.depth_field_count??0)}).catch(()=>v(!0)).finally(()=>t(!1))},[l]),s)?(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsx)("main",{className:"flex-1 flex items-center justify-center",children:(0,b.jsx)("span",{className:"text-slate-500 text-sm",children:"Loading…"})})]}):u||!m?(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[(0,b.jsxs)("p",{className:"text-slate-400",children:["Capability not found: ",(0,b.jsx)("span",{className:"font-mono text-amber-400",children:l})]}),(0,b.jsx)(d.default,{href:"/amber/capabilities",className:"text-sm hover:underline",style:{color:f},children:"← Capabilities"})]})]}):(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center gap-2 text-sm",children:[(0,b.jsx)(d.default,{href:"/amber",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"AMBER"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)(d.default,{href:"/amber/capabilities",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"Capabilities"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("span",{className:"font-mono",style:{color:f},children:m.id})]}),(0,b.jsxs)("div",{className:"w-full flex flex-col gap-2",children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,b.jsx)("h1",{className:"text-xl font-semibold text-slate-100",children:m.name}),(0,b.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[m.criticality&&(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:(h[m.criticality]??f)+"18",color:h[m.criticality]??f,border:`1px solid ${h[m.criticality]??f}30`},children:m.criticality}),(0,b.jsxs)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:"rgba(251,191,36,0.08)",color:f,border:"1px solid rgba(251,191,36,0.2)"},children:[q,"/9 depth fields"]})]})]}),(0,b.jsx)("span",{className:"text-xs font-mono text-slate-500",children:m.id})]}),(0,b.jsxs)("div",{className:"w-full rounded-xl p-6 flex flex-col gap-4",style:g,children:[m.description&&(0,b.jsx)(j,{label:"Description",children:m.description}),(0,b.jsxs)("div",{className:"grid grid-cols-3 gap-4 pt-1",children:[m.owner&&(0,b.jsx)(j,{label:"Owner",children:m.owner}),m.lifecycle&&(0,b.jsx)(j,{label:"Lifecycle",children:m.lifecycle}),void 0!==m.external&&(0,b.jsx)(j,{label:"Exposure",children:m.external?"External":"Internal"})]}),m.depends_on&&m.depends_on.length>0&&(0,b.jsx)(j,{label:"Depends on",children:(0,b.jsx)("div",{className:"flex flex-wrap gap-1 mt-0.5",children:m.depends_on.map(a=>(0,b.jsx)(d.default,{href:`/amber/capabilities/${encodeURIComponent(a)}`,className:"text-xs font-mono px-2 py-0.5 rounded hover:brightness-110 transition-all",style:{background:"rgba(251,191,36,0.08)",color:f,border:"1px solid rgba(251,191,36,0.2)"},children:a},a))})}),m.file_path_patterns&&m.file_path_patterns.length>0&&(0,b.jsx)(j,{label:"File Patterns",children:(0,b.jsx)("div",{className:"flex flex-col gap-0.5 mt-0.5",children:m.file_path_patterns.map(a=>(0,b.jsx)("span",{className:"text-xs font-mono text-slate-400 bg-slate-800/60 px-2 py-0.5 rounded",children:a},a))})})]}),i.some(a=>m[a.key])&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-6 flex flex-col gap-4",style:g,children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold uppercase tracking-widest",style:{color:f},children:["Depth Fields (",q,"/9)"]}),i.filter(a=>m[a.key]).map(a=>(0,b.jsx)(j,{label:a.label,children:Array.isArray(m[a.key])?m[a.key].join(", "):String(m[a.key])},a.key)),m.key_concepts&&m.key_concepts.length>0&&(0,b.jsx)(j,{label:"Key Concepts",children:(0,b.jsx)("div",{className:"flex flex-wrap gap-1 mt-0.5",children:m.key_concepts.map(a=>(0,b.jsx)("span",{className:"text-xs font-mono text-slate-400 bg-slate-800/50 px-2 py-0.5 rounded",children:a},a))})}),m.panel_anchors&&m.panel_anchors.length>0&&(0,b.jsx)(j,{label:"Panel Anchors",children:(0,b.jsx)("div",{className:"flex flex-wrap gap-1 mt-0.5",children:m.panel_anchors.map(a=>(0,b.jsx)("span",{className:"text-xs font-mono text-indigo-400 bg-indigo-900/20 px-2 py-0.5 rounded",children:a},a))})})]}),(0,b.jsxs)("div",{className:"w-full rounded-xl p-6 flex flex-col gap-3",style:g,children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:["Tagged Files (",o.length,")"]}),0===o.length?(0,b.jsxs)("p",{className:"text-xs text-slate-500",children:["No files tagged with this capability in the last scan.",m.file_path_patterns?.length?" Files may be matched via file_path_patterns.":" Add @amber-capability tags or file_path_patterns to the registry."]}):(0,b.jsx)("div",{className:"flex flex-col gap-1",children:o.map(a=>(0,b.jsxs)("div",{className:"flex items-center justify-between py-1 border-b",style:{borderColor:"rgba(51,65,85,0.3)"},children:[(0,b.jsx)("span",{className:"text-xs font-mono text-slate-400 truncate flex-1",children:a.path}),a.has_doc&&(0,b.jsx)("span",{className:"text-xs text-emerald-400 ml-3 flex-shrink-0",children:"doc ✓"})]},a.path))})]})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.
|
|
1
|
+
module.exports=[73874,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444);let f="rgb(251,191,36)",g={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},h={critical:"rgb(248,113,113)",high:"rgb(251,191,36)",medium:"rgb(99,102,241)",low:"rgb(52,211,153)"},i=[{key:"eyebrow",label:"Eyebrow"},{key:"headline",label:"Headline"},{key:"body",label:"Body"},{key:"microcopy",label:"Microcopy"},{key:"value_statement",label:"Value Statement"},{key:"example_flow",label:"Example Flow"},{key:"visual_hint",label:"Visual Hint"}];function j({label:a,children:c}){return(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-xs font-semibold text-slate-500 uppercase tracking-widest",children:a}),(0,b.jsx)("div",{className:"text-sm text-slate-300 leading-relaxed",children:c})]})}a.s(["default",0,function({params:a}){let{id:k}=(0,c.use)(a),l=decodeURIComponent(k),[m,n]=(0,c.useState)(null),[o,p]=(0,c.useState)([]),[q,r]=(0,c.useState)(0),[s,t]=(0,c.useState)(!0),[u,v]=(0,c.useState)(!1);return((0,c.useEffect)(()=>{fetch(`/api/amber/capabilities/${encodeURIComponent(l)}`).then(async a=>{if(404===a.status)return void v(!0);let b=await a.json();n(b.capability),p(b.tagged_files??[]),r(b.depth_field_count??0)}).catch(()=>v(!0)).finally(()=>t(!1))},[l]),s)?(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsx)("main",{className:"flex-1 flex items-center justify-center",children:(0,b.jsx)("span",{className:"text-slate-500 text-sm",children:"Loading…"})})]}):u||!m?(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[(0,b.jsxs)("p",{className:"text-slate-400",children:["Capability not found: ",(0,b.jsx)("span",{className:"font-mono text-amber-400",children:l})]}),(0,b.jsx)(d.default,{href:"/amber/capabilities",className:"text-sm hover:underline",style:{color:f},children:"← Capabilities"})]})]}):(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center gap-2 text-sm",children:[(0,b.jsx)(d.default,{href:"/amber",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"AMBER"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)(d.default,{href:"/amber/capabilities",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"Capabilities"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("span",{className:"font-mono",style:{color:f},children:m.id})]}),(0,b.jsxs)("div",{className:"w-full flex flex-col gap-2",children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,b.jsx)("h1",{className:"text-xl font-semibold text-slate-100",children:m.name}),(0,b.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[m.criticality&&(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:(h[m.criticality]??f)+"18",color:h[m.criticality]??f,border:`1px solid ${h[m.criticality]??f}30`},children:m.criticality}),(0,b.jsxs)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:"rgba(251,191,36,0.08)",color:f,border:"1px solid rgba(251,191,36,0.2)"},children:[q,"/9 depth fields"]})]})]}),(0,b.jsx)("span",{className:"text-xs font-mono text-slate-500",children:m.id})]}),(0,b.jsxs)("div",{className:"w-full rounded-xl p-6 flex flex-col gap-4",style:g,children:[m.description&&(0,b.jsx)(j,{label:"Description",children:m.description}),(0,b.jsxs)("div",{className:"grid grid-cols-3 gap-4 pt-1",children:[m.owner&&(0,b.jsx)(j,{label:"Owner",children:m.owner}),m.lifecycle&&(0,b.jsx)(j,{label:"Lifecycle",children:m.lifecycle}),void 0!==m.external&&(0,b.jsx)(j,{label:"Exposure",children:m.external?"External":"Internal"})]}),m.depends_on&&m.depends_on.length>0&&(0,b.jsx)(j,{label:"Depends on",children:(0,b.jsx)("div",{className:"flex flex-wrap gap-1 mt-0.5",children:m.depends_on.map(a=>(0,b.jsx)(d.default,{href:`/amber/capabilities/${encodeURIComponent(a)}`,className:"text-xs font-mono px-2 py-0.5 rounded hover:brightness-110 transition-all",style:{background:"rgba(251,191,36,0.08)",color:f,border:"1px solid rgba(251,191,36,0.2)"},children:a},a))})}),m.file_path_patterns&&m.file_path_patterns.length>0&&(0,b.jsx)(j,{label:"File Patterns",children:(0,b.jsx)("div",{className:"flex flex-col gap-0.5 mt-0.5",children:m.file_path_patterns.map(a=>(0,b.jsx)("span",{className:"text-xs font-mono text-slate-400 bg-slate-800/60 px-2 py-0.5 rounded",children:a},a))})})]}),i.some(a=>m[a.key])&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-6 flex flex-col gap-4",style:g,children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold uppercase tracking-widest",style:{color:f},children:["Depth Fields (",q,"/9)"]}),i.filter(a=>m[a.key]).map(a=>(0,b.jsx)(j,{label:a.label,children:Array.isArray(m[a.key])?m[a.key].join(", "):String(m[a.key])},a.key)),m.key_concepts&&m.key_concepts.length>0&&(0,b.jsx)(j,{label:"Key Concepts",children:(0,b.jsx)("div",{className:"flex flex-wrap gap-1 mt-0.5",children:m.key_concepts.map(a=>(0,b.jsx)("span",{className:"text-xs font-mono text-slate-400 bg-slate-800/50 px-2 py-0.5 rounded",children:a},a))})}),m.panel_anchors&&m.panel_anchors.length>0&&(0,b.jsx)(j,{label:"Panel Anchors",children:(0,b.jsx)("div",{className:"flex flex-wrap gap-1 mt-0.5",children:m.panel_anchors.map(a=>(0,b.jsx)("span",{className:"text-xs font-mono text-indigo-400 bg-indigo-900/20 px-2 py-0.5 rounded",children:a},a))})})]}),(0,b.jsxs)("div",{className:"w-full rounded-xl p-6 flex flex-col gap-3",style:g,children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:["Tagged Files (",o.length,")"]}),0===o.length?(0,b.jsxs)("p",{className:"text-xs text-slate-500",children:["No files tagged with this capability in the last scan.",m.file_path_patterns?.length?" Files may be matched via file_path_patterns.":" Add @amber-capability tags or file_path_patterns to the registry."]}):(0,b.jsx)("div",{className:"flex flex-col gap-1",children:o.map(a=>(0,b.jsxs)("div",{className:"flex items-center justify-between py-1 border-b",style:{borderColor:"rgba(51,65,85,0.3)"},children:[(0,b.jsx)("span",{className:"text-xs font-mono text-slate-400 truncate flex-1",children:a.path}),a.has_doc&&(0,b.jsx)("span",{className:"text-xs text-emerald-400 ml-3 flex-shrink-0",children:"doc ✓"})]},a.path))})]})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.2"," · AMBER / Capabilities"]})]})}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=app_amber_capabilities_%5Bid%5D_page_tsx_12~.miw._.js.map
|
package/.next/standalone/.next/server/chunks/ssr/app_amber_capabilities_page_tsx_0.t9mpr._.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[98618,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444);let f="rgb(251,191,36)",g={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},h={critical:"rgb(248,113,113)",high:"rgb(251,191,36)",medium:"rgb(99,102,241)",low:"rgb(52,211,153)"},i={active:"rgb(52,211,153)",experimental:"rgb(99,102,241)",deprecated:"rgb(251,191,36)",sunset:"rgb(148,163,184)"};function j({cap:a}){return(0,b.jsxs)(d.default,{href:`/amber/capabilities/${encodeURIComponent(a.id)}`,className:"w-full rounded-xl p-5 flex flex-col gap-2 transition-all hover:brightness-110 cursor-pointer",style:g,children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,b.jsxs)("div",{className:"flex-1",children:[(0,b.jsx)("h3",{className:"text-sm font-semibold text-slate-200 leading-snug",children:a.name}),(0,b.jsx)("span",{className:"text-xs font-mono text-slate-500",children:a.id})]}),(0,b.jsxs)("div",{className:"flex items-center gap-1.5 flex-shrink-0 flex-wrap justify-end",children:[a.criticality&&(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:(h[a.criticality]??f)+"18",color:h[a.criticality]??f,border:`1px solid ${h[a.criticality]??f}30`},children:a.criticality}),a.lifecycle&&(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:(i[a.lifecycle]??"rgb(148,163,184)")+"15",color:i[a.lifecycle]??"rgb(148,163,184)",border:`1px solid ${i[a.lifecycle]??"rgb(148,163,184)"}28`},children:a.lifecycle}),a.external&&(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:"rgba(99,102,241,0.12)",color:"rgb(129,140,248)",border:"1px solid rgba(99,102,241,0.25)"},children:"external"})]})]}),a.description&&(0,b.jsx)("p",{className:"text-xs text-slate-400 leading-relaxed line-clamp-2",children:a.description}),a.owner&&(0,b.jsx)("p",{className:"text-xs text-slate-600 font-mono",children:a.owner})]})}a.s(["default",0,function(){let[a,h]=(0,c.useState)([]),[i,k]=(0,c.useState)(!0),[l,m]=(0,c.useState)(!1),[n,o]=(0,c.useState)("");(0,c.useEffect)(()=>{fetch("/api/amber/capabilities").then(a=>a.json()).then(({capabilities:a})=>{Array.isArray(a)&&(h(a),0===a.length&&m(!0))}).catch(()=>m(!0)).finally(()=>k(!1))},[]);let p=n.trim()?a.filter(a=>a.name.toLowerCase().includes(n.toLowerCase())||a.id.toLowerCase().includes(n.toLowerCase())||(a.description??"").toLowerCase().includes(n.toLowerCase())):a;return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsx)("div",{className:"w-full flex items-center justify-between",children:(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(d.default,{href:"/amber",className:"text-slate-500 hover:text-slate-300 text-sm transition-colors",children:"← AMBER"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("h1",{className:"text-xl font-semibold tracking-tight",style:{color:f},children:"Capabilities"})]}),(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:[a.length," registered"]})]})}),a.length>0&&(0,b.jsx)("div",{className:"w-full",children:(0,b.jsx)("input",{type:"text",value:n,onChange:a=>o(a.target.value),placeholder:"Filter capabilities…",className:"w-full rounded-lg px-3 py-2 text-sm font-mono text-slate-200 outline-none focus:ring-2",style:{background:"rgba(2,6,23,0.6)",border:"1px solid var(--border-default)","--tw-ring-color":f}})}),i&&(0,b.jsx)("div",{className:"w-full text-center py-16 text-slate-500 text-sm",children:"Loading…"}),!i&&l&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:g,children:[(0,b.jsx)("span",{className:"text-4xl",children:"🧩"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"No capability registry found"}),(0,b.jsxs)("p",{className:"text-slate-500 text-sm max-w-sm",children:["Create ",(0,b.jsx)("span",{className:"font-mono text-amber-400",children:".amber/capabilities.md"})," in your target project with a YAML frontmatter capabilities list."]})]}),!i&&0===p.length&&a.length>0&&(0,b.jsxs)("p",{className:"text-slate-500 text-sm",children:['No capabilities match "',n,'"']}),!i&&p.length>0&&(0,b.jsx)("div",{className:"w-full flex flex-col gap-3",children:p.map(a=>(0,b.jsx)(j,{cap:a},a.id))})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.
|
|
1
|
+
module.exports=[98618,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444);let f="rgb(251,191,36)",g={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},h={critical:"rgb(248,113,113)",high:"rgb(251,191,36)",medium:"rgb(99,102,241)",low:"rgb(52,211,153)"},i={active:"rgb(52,211,153)",experimental:"rgb(99,102,241)",deprecated:"rgb(251,191,36)",sunset:"rgb(148,163,184)"};function j({cap:a}){return(0,b.jsxs)(d.default,{href:`/amber/capabilities/${encodeURIComponent(a.id)}`,className:"w-full rounded-xl p-5 flex flex-col gap-2 transition-all hover:brightness-110 cursor-pointer",style:g,children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,b.jsxs)("div",{className:"flex-1",children:[(0,b.jsx)("h3",{className:"text-sm font-semibold text-slate-200 leading-snug",children:a.name}),(0,b.jsx)("span",{className:"text-xs font-mono text-slate-500",children:a.id})]}),(0,b.jsxs)("div",{className:"flex items-center gap-1.5 flex-shrink-0 flex-wrap justify-end",children:[a.criticality&&(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:(h[a.criticality]??f)+"18",color:h[a.criticality]??f,border:`1px solid ${h[a.criticality]??f}30`},children:a.criticality}),a.lifecycle&&(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:(i[a.lifecycle]??"rgb(148,163,184)")+"15",color:i[a.lifecycle]??"rgb(148,163,184)",border:`1px solid ${i[a.lifecycle]??"rgb(148,163,184)"}28`},children:a.lifecycle}),a.external&&(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:"rgba(99,102,241,0.12)",color:"rgb(129,140,248)",border:"1px solid rgba(99,102,241,0.25)"},children:"external"})]})]}),a.description&&(0,b.jsx)("p",{className:"text-xs text-slate-400 leading-relaxed line-clamp-2",children:a.description}),a.owner&&(0,b.jsx)("p",{className:"text-xs text-slate-600 font-mono",children:a.owner})]})}a.s(["default",0,function(){let[a,h]=(0,c.useState)([]),[i,k]=(0,c.useState)(!0),[l,m]=(0,c.useState)(!1),[n,o]=(0,c.useState)("");(0,c.useEffect)(()=>{fetch("/api/amber/capabilities").then(a=>a.json()).then(({capabilities:a})=>{Array.isArray(a)&&(h(a),0===a.length&&m(!0))}).catch(()=>m(!0)).finally(()=>k(!1))},[]);let p=n.trim()?a.filter(a=>a.name.toLowerCase().includes(n.toLowerCase())||a.id.toLowerCase().includes(n.toLowerCase())||(a.description??"").toLowerCase().includes(n.toLowerCase())):a;return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsx)("div",{className:"w-full flex items-center justify-between",children:(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(d.default,{href:"/amber",className:"text-slate-500 hover:text-slate-300 text-sm transition-colors",children:"← AMBER"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("h1",{className:"text-xl font-semibold tracking-tight",style:{color:f},children:"Capabilities"})]}),(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:[a.length," registered"]})]})}),a.length>0&&(0,b.jsx)("div",{className:"w-full",children:(0,b.jsx)("input",{type:"text",value:n,onChange:a=>o(a.target.value),placeholder:"Filter capabilities…",className:"w-full rounded-lg px-3 py-2 text-sm font-mono text-slate-200 outline-none focus:ring-2",style:{background:"rgba(2,6,23,0.6)",border:"1px solid var(--border-default)","--tw-ring-color":f}})}),i&&(0,b.jsx)("div",{className:"w-full text-center py-16 text-slate-500 text-sm",children:"Loading…"}),!i&&l&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:g,children:[(0,b.jsx)("span",{className:"text-4xl",children:"🧩"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"No capability registry found"}),(0,b.jsxs)("p",{className:"text-slate-500 text-sm max-w-sm",children:["Create ",(0,b.jsx)("span",{className:"font-mono text-amber-400",children:".amber/capabilities.md"})," in your target project with a YAML frontmatter capabilities list."]})]}),!i&&0===p.length&&a.length>0&&(0,b.jsxs)("p",{className:"text-slate-500 text-sm",children:['No capabilities match "',n,'"']}),!i&&p.length>0&&(0,b.jsx)("div",{className:"w-full flex flex-col gap-3",children:p.map(a=>(0,b.jsx)(j,{cap:a},a.id))})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.2"," · AMBER / Capabilities"]})]})}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=app_amber_capabilities_page_tsx_0.t9mpr._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[45303,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444);let f="rgb(251,191,36)",g={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},h={content_changed_no_doc_update:"Content changed, doc stale",header_added:"Header added",header_removed:"Header removed",capabilities_changed:"Capabilities changed"};a.s(["default",0,function(){let[a,i]=(0,c.useState)([]),[j,k]=(0,c.useState)(null),[l,m]=(0,c.useState)(null),[n,o]=(0,c.useState)(!0),[p,q]=(0,c.useState)(!1);(0,c.useEffect)(()=>{fetch("/api/amber/coverage").then(a=>a.json()).then(({scans:a})=>{i(a??[]),a&&a.length>0&&k(a[0].id)}).catch(()=>{}).finally(()=>o(!1))},[]),(0,c.useEffect)(()=>{j&&(q(!0),fetch(`/api/amber/coverage/${encodeURIComponent(j)}`).then(a=>a.json()).then(({scan:a})=>m(a)).catch(()=>{}).finally(()=>q(!1)))},[j]);let r=a.find(a=>a.id===j),s=l?.drift??[];return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(d.default,{href:"/amber",className:"text-slate-500 hover:text-slate-300 text-sm transition-colors",children:"← AMBER"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("h1",{className:"text-xl font-semibold tracking-tight",style:{color:f},children:"Coverage"})]}),(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:[a.length," scan snapshots"]})]}),n&&(0,b.jsx)("div",{className:"w-full text-center py-16 text-slate-500 text-sm",children:"Loading…"}),!n&&0===a.length&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:g,children:[(0,b.jsx)("span",{className:"text-4xl",children:"📊"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"No coverage history yet"}),(0,b.jsxs)("p",{className:"text-slate-500 text-sm",children:["Run an AMBER scan from the"," ",(0,b.jsx)(d.default,{href:"/amber",className:"hover:underline",style:{color:f},children:"AMBER landing page"}),"."]})]}),!n&&a.length>0&&(0,b.jsxs)("div",{className:"w-full flex gap-4",children:[(0,b.jsx)("div",{className:"w-48 flex-shrink-0 flex flex-col gap-2",children:a.map(a=>(0,b.jsxs)("button",{onClick:()=>k(a.id),className:"w-full text-left rounded-lg px-3 py-2.5 transition-all",style:{background:j===a.id?"rgba(251,191,36,0.1)":"rgba(15,23,42,0.4)",border:`1px solid ${j===a.id?"rgba(251,191,36,0.35)":"rgba(51,65,85,0.3)"}`},children:[(0,b.jsx)("p",{className:"text-xs font-mono text-slate-300",children:new Date(a.created_at).toLocaleDateString()}),(0,b.jsx)("p",{className:"text-xs text-slate-500",children:new Date(a.created_at).toLocaleTimeString()}),(0,b.jsxs)("div",{className:"flex gap-2 mt-1",children:[(0,b.jsxs)("span",{className:"text-xs font-mono",style:{color:a.drift_count>0?"rgb(248,113,113)":"rgb(52,211,153)"},children:[a.drift_count,"d"]}),(0,b.jsxs)("span",{className:"text-xs font-mono",style:{color:a.orphan_capability_count>0?f:"rgb(52,211,153)"},children:[a.orphan_capability_count,"o"]})]})]},a.id))}),(0,b.jsxs)("div",{className:"flex-1 flex flex-col gap-4",children:[p&&(0,b.jsx)("div",{className:"text-slate-500 text-sm py-8 text-center",children:"Loading scan…"}),!p&&r&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"rounded-xl p-5 flex flex-col gap-3",style:g,children:[(0,b.jsx)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:new Date(r.created_at).toLocaleString()}),(0,b.jsx)("div",{className:"grid grid-cols-3 gap-3",children:[{label:"Files",value:r.file_count},{label:"Capabilities",value:r.capability_count,color:f},{label:"Drift",value:r.drift_count,color:r.drift_count>0?"rgb(248,113,113)":"rgb(52,211,153)"},{label:"Orphans",value:r.orphan_capability_count,color:r.orphan_capability_count>0?f:"rgb(52,211,153)"},{label:"Unknown Refs",value:r.unknown_ref_count,color:r.unknown_ref_count>0?"rgb(248,113,113)":"rgb(52,211,153)"}].map(a=>(0,b.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,b.jsx)("span",{className:"text-xs text-slate-600 uppercase tracking-widest",children:a.label}),(0,b.jsx)("span",{className:"text-lg font-mono font-semibold",style:{color:a.color??"rgb(226,232,240)"},children:a.value})]},a.label))})]}),s.length>0&&(0,b.jsxs)("div",{className:"rounded-xl p-5 flex flex-col gap-3",style:g,children:[(0,b.jsx)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:"Drift Entries"}),(0,b.jsx)("div",{className:"flex flex-col gap-1",children:s.map((a,c)=>(0,b.jsxs)("div",{className:"py-1.5 border-b flex items-center justify-between gap-2",style:{borderColor:"rgba(51,65,85,0.3)"},children:[(0,b.jsx)("span",{className:"text-xs font-mono text-slate-400 truncate flex-1",children:a.file}),(0,b.jsx)("span",{className:"text-xs text-amber-400 flex-shrink-0",children:h[a.kind]??a.kind})]},c))})]}),r.orphan_capability_ids.length>0&&(0,b.jsxs)("div",{className:"rounded-xl p-5 flex flex-col gap-3",style:g,children:[(0,b.jsx)("h2",{className:"text-xs font-semibold text-amber-400 uppercase tracking-widest",children:"Orphan Capabilities"}),(0,b.jsx)("div",{className:"flex flex-wrap gap-2",children:r.orphan_capability_ids.map(a=>(0,b.jsx)(d.default,{href:`/amber/capabilities/${encodeURIComponent(a)}`,className:"text-xs font-mono px-2 py-0.5 rounded hover:brightness-110 transition-all",style:{background:"rgba(251,191,36,0.1)",color:f,border:"1px solid rgba(251,191,36,0.25)"},children:a},a))})]}),0===r.drift_count&&0===r.orphan_capability_count&&(0,b.jsx)("div",{className:"rounded-xl p-5 text-center",style:g,children:(0,b.jsx)("p",{className:"text-emerald-400 text-sm font-medium",children:"✓ Clean scan — no drift, no orphans"})})]})]})]})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.
|
|
1
|
+
module.exports=[45303,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444);let f="rgb(251,191,36)",g={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},h={content_changed_no_doc_update:"Content changed, doc stale",header_added:"Header added",header_removed:"Header removed",capabilities_changed:"Capabilities changed"};a.s(["default",0,function(){let[a,i]=(0,c.useState)([]),[j,k]=(0,c.useState)(null),[l,m]=(0,c.useState)(null),[n,o]=(0,c.useState)(!0),[p,q]=(0,c.useState)(!1);(0,c.useEffect)(()=>{fetch("/api/amber/coverage").then(a=>a.json()).then(({scans:a})=>{i(a??[]),a&&a.length>0&&k(a[0].id)}).catch(()=>{}).finally(()=>o(!1))},[]),(0,c.useEffect)(()=>{j&&(q(!0),fetch(`/api/amber/coverage/${encodeURIComponent(j)}`).then(a=>a.json()).then(({scan:a})=>m(a)).catch(()=>{}).finally(()=>q(!1)))},[j]);let r=a.find(a=>a.id===j),s=l?.drift??[];return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(d.default,{href:"/amber",className:"text-slate-500 hover:text-slate-300 text-sm transition-colors",children:"← AMBER"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("h1",{className:"text-xl font-semibold tracking-tight",style:{color:f},children:"Coverage"})]}),(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:[a.length," scan snapshots"]})]}),n&&(0,b.jsx)("div",{className:"w-full text-center py-16 text-slate-500 text-sm",children:"Loading…"}),!n&&0===a.length&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:g,children:[(0,b.jsx)("span",{className:"text-4xl",children:"📊"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"No coverage history yet"}),(0,b.jsxs)("p",{className:"text-slate-500 text-sm",children:["Run an AMBER scan from the"," ",(0,b.jsx)(d.default,{href:"/amber",className:"hover:underline",style:{color:f},children:"AMBER landing page"}),"."]})]}),!n&&a.length>0&&(0,b.jsxs)("div",{className:"w-full flex gap-4",children:[(0,b.jsx)("div",{className:"w-48 flex-shrink-0 flex flex-col gap-2",children:a.map(a=>(0,b.jsxs)("button",{onClick:()=>k(a.id),className:"w-full text-left rounded-lg px-3 py-2.5 transition-all",style:{background:j===a.id?"rgba(251,191,36,0.1)":"rgba(15,23,42,0.4)",border:`1px solid ${j===a.id?"rgba(251,191,36,0.35)":"rgba(51,65,85,0.3)"}`},children:[(0,b.jsx)("p",{className:"text-xs font-mono text-slate-300",children:new Date(a.created_at).toLocaleDateString()}),(0,b.jsx)("p",{className:"text-xs text-slate-500",children:new Date(a.created_at).toLocaleTimeString()}),(0,b.jsxs)("div",{className:"flex gap-2 mt-1",children:[(0,b.jsxs)("span",{className:"text-xs font-mono",style:{color:a.drift_count>0?"rgb(248,113,113)":"rgb(52,211,153)"},children:[a.drift_count,"d"]}),(0,b.jsxs)("span",{className:"text-xs font-mono",style:{color:a.orphan_capability_count>0?f:"rgb(52,211,153)"},children:[a.orphan_capability_count,"o"]})]})]},a.id))}),(0,b.jsxs)("div",{className:"flex-1 flex flex-col gap-4",children:[p&&(0,b.jsx)("div",{className:"text-slate-500 text-sm py-8 text-center",children:"Loading scan…"}),!p&&r&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"rounded-xl p-5 flex flex-col gap-3",style:g,children:[(0,b.jsx)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:new Date(r.created_at).toLocaleString()}),(0,b.jsx)("div",{className:"grid grid-cols-3 gap-3",children:[{label:"Files",value:r.file_count},{label:"Capabilities",value:r.capability_count,color:f},{label:"Drift",value:r.drift_count,color:r.drift_count>0?"rgb(248,113,113)":"rgb(52,211,153)"},{label:"Orphans",value:r.orphan_capability_count,color:r.orphan_capability_count>0?f:"rgb(52,211,153)"},{label:"Unknown Refs",value:r.unknown_ref_count,color:r.unknown_ref_count>0?"rgb(248,113,113)":"rgb(52,211,153)"}].map(a=>(0,b.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,b.jsx)("span",{className:"text-xs text-slate-600 uppercase tracking-widest",children:a.label}),(0,b.jsx)("span",{className:"text-lg font-mono font-semibold",style:{color:a.color??"rgb(226,232,240)"},children:a.value})]},a.label))})]}),s.length>0&&(0,b.jsxs)("div",{className:"rounded-xl p-5 flex flex-col gap-3",style:g,children:[(0,b.jsx)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:"Drift Entries"}),(0,b.jsx)("div",{className:"flex flex-col gap-1",children:s.map((a,c)=>(0,b.jsxs)("div",{className:"py-1.5 border-b flex items-center justify-between gap-2",style:{borderColor:"rgba(51,65,85,0.3)"},children:[(0,b.jsx)("span",{className:"text-xs font-mono text-slate-400 truncate flex-1",children:a.file}),(0,b.jsx)("span",{className:"text-xs text-amber-400 flex-shrink-0",children:h[a.kind]??a.kind})]},c))})]}),r.orphan_capability_ids.length>0&&(0,b.jsxs)("div",{className:"rounded-xl p-5 flex flex-col gap-3",style:g,children:[(0,b.jsx)("h2",{className:"text-xs font-semibold text-amber-400 uppercase tracking-widest",children:"Orphan Capabilities"}),(0,b.jsx)("div",{className:"flex flex-wrap gap-2",children:r.orphan_capability_ids.map(a=>(0,b.jsx)(d.default,{href:`/amber/capabilities/${encodeURIComponent(a)}`,className:"text-xs font-mono px-2 py-0.5 rounded hover:brightness-110 transition-all",style:{background:"rgba(251,191,36,0.1)",color:f,border:"1px solid rgba(251,191,36,0.25)"},children:a},a))})]}),0===r.drift_count&&0===r.orphan_capability_count&&(0,b.jsx)("div",{className:"rounded-xl p-5 text-center",style:g,children:(0,b.jsx)("p",{className:"text-emerald-400 text-sm font-medium",children:"✓ Clean scan — no drift, no orphans"})})]})]})]})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.2"," · AMBER / Coverage"]})]})}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=app_amber_coverage_page_tsx_01yia_n._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[55582,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444);let f="rgb(251,191,36)",g={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"};a.s(["default",0,function(){let[a,h]=(0,c.useState)([]),[i,j]=(0,c.useState)(null),[k,l]=(0,c.useState)(!0),[m,n]=(0,c.useState)(""),[o,p]=(0,c.useState)("");(0,c.useEffect)(()=>{fetch("/api/amber/files").then(a=>a.json()).then(({files:a,scan_at:b})=>{h(a??[]),j(b??null)}).catch(()=>{}).finally(()=>l(!1))},[]);let q=[...new Set(a.flatMap(a=>a.capabilities))].sort(),r=a.filter(a=>{let b=!m.trim()||a.path.toLowerCase().includes(m.toLowerCase()),c=!o||a.capabilities.includes(o);return b&&c}),s=a.filter(a=>0===a.capabilities.length).length,t=a.filter(a=>a.has_doc).length;return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsx)("div",{className:"w-full flex items-start justify-between",children:(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(d.default,{href:"/amber",className:"text-slate-500 hover:text-slate-300 text-sm transition-colors",children:"← AMBER"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("h1",{className:"text-xl font-semibold tracking-tight",style:{color:f},children:"Files"})]}),(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:[a.length," files · ",s," untagged · ",t," documented",i&&` \xb7 ${new Date(i).toLocaleString()}`]})]})}),a.length>0&&(0,b.jsxs)("div",{className:"w-full flex gap-3",children:[(0,b.jsx)("input",{type:"text",value:m,onChange:a=>n(a.target.value),placeholder:"Filter by path…",className:"flex-1 rounded-lg px-3 py-2 text-sm font-mono text-slate-200 outline-none",style:{background:"rgba(2,6,23,0.6)",border:"1px solid var(--border-default)"}}),(0,b.jsxs)("select",{value:o,onChange:a=>p(a.target.value),className:"rounded-lg px-3 py-2 text-sm font-mono text-slate-200 outline-none",style:{background:"rgba(2,6,23,0.6)",border:"1px solid var(--border-default)",color:o?f:"rgb(148,163,184)"},children:[(0,b.jsx)("option",{value:"",children:"All capabilities"}),q.map(a=>(0,b.jsx)("option",{value:a,children:a},a))]})]}),k&&(0,b.jsx)("div",{className:"w-full text-center py-16 text-slate-500 text-sm",children:"Loading…"}),!k&&0===a.length&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:g,children:[(0,b.jsx)("span",{className:"text-4xl",children:"📁"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"No file data yet"}),(0,b.jsxs)("p",{className:"text-slate-500 text-sm",children:["Run an AMBER scan from the"," ",(0,b.jsx)(d.default,{href:"/amber",className:"hover:underline",style:{color:f},children:"AMBER landing page"}),"."]})]}),!k&&0===r.length&&a.length>0&&(0,b.jsx)("p",{className:"text-slate-500 text-sm",children:"No files match the current filter."}),!k&&r.length>0&&(0,b.jsxs)("div",{className:"w-full rounded-xl flex flex-col",style:g,children:[(0,b.jsxs)("div",{className:"px-5 py-3 border-b flex items-center gap-3",style:{borderColor:"var(--border-default)"},children:[(0,b.jsx)("span",{className:"text-xs font-semibold text-slate-500 uppercase tracking-widest flex-1",children:"Path"}),(0,b.jsx)("span",{className:"text-xs font-semibold text-slate-500 uppercase tracking-widest w-16 text-center",children:"Doc"}),(0,b.jsx)("span",{className:"text-xs font-semibold text-slate-500 uppercase tracking-widest w-32",children:"Capabilities"})]}),(0,b.jsx)("div",{className:"flex flex-col divide-y",style:{borderColor:"rgba(51,65,85,0.3)"},children:r.slice(0,100).map(a=>(0,b.jsxs)("div",{className:"px-5 py-2.5 flex items-center gap-3 hover:bg-white/[0.02] transition-colors",children:[(0,b.jsx)("span",{className:"text-xs font-mono text-slate-400 truncate flex-1",children:a.path}),(0,b.jsx)("span",{className:"w-16 text-center text-xs",children:a.has_doc?(0,b.jsx)("span",{className:"text-emerald-400",children:"✓"}):(0,b.jsx)("span",{className:"text-slate-700",children:"—"})}),(0,b.jsxs)("div",{className:"w-32 flex flex-wrap gap-1",children:[a.capabilities.slice(0,2).map(a=>(0,b.jsx)(d.default,{href:`/amber/capabilities/${encodeURIComponent(a)}`,className:"text-xs font-mono px-1.5 py-0.5 rounded truncate hover:brightness-110 transition-all",style:{background:"rgba(251,191,36,0.1)",color:f,border:"1px solid rgba(251,191,36,0.2)",maxWidth:"7rem"},title:a,children:a.split(".").pop()},a)),a.capabilities.length>2&&(0,b.jsxs)("span",{className:"text-xs text-slate-600",children:["+",a.capabilities.length-2]}),0===a.capabilities.length&&(0,b.jsx)("span",{className:"text-xs text-slate-700 font-mono",children:"untagged"})]})]},a.path))}),r.length>100&&(0,b.jsxs)("div",{className:"px-5 py-3 text-xs text-slate-600 border-t",style:{borderColor:"var(--border-default)"},children:["Showing 100 of ",r.length," files. Use path filter to narrow results."]})]})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.
|
|
1
|
+
module.exports=[55582,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444);let f="rgb(251,191,36)",g={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"};a.s(["default",0,function(){let[a,h]=(0,c.useState)([]),[i,j]=(0,c.useState)(null),[k,l]=(0,c.useState)(!0),[m,n]=(0,c.useState)(""),[o,p]=(0,c.useState)("");(0,c.useEffect)(()=>{fetch("/api/amber/files").then(a=>a.json()).then(({files:a,scan_at:b})=>{h(a??[]),j(b??null)}).catch(()=>{}).finally(()=>l(!1))},[]);let q=[...new Set(a.flatMap(a=>a.capabilities))].sort(),r=a.filter(a=>{let b=!m.trim()||a.path.toLowerCase().includes(m.toLowerCase()),c=!o||a.capabilities.includes(o);return b&&c}),s=a.filter(a=>0===a.capabilities.length).length,t=a.filter(a=>a.has_doc).length;return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsx)("div",{className:"w-full flex items-start justify-between",children:(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(d.default,{href:"/amber",className:"text-slate-500 hover:text-slate-300 text-sm transition-colors",children:"← AMBER"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("h1",{className:"text-xl font-semibold tracking-tight",style:{color:f},children:"Files"})]}),(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:[a.length," files · ",s," untagged · ",t," documented",i&&` \xb7 ${new Date(i).toLocaleString()}`]})]})}),a.length>0&&(0,b.jsxs)("div",{className:"w-full flex gap-3",children:[(0,b.jsx)("input",{type:"text",value:m,onChange:a=>n(a.target.value),placeholder:"Filter by path…",className:"flex-1 rounded-lg px-3 py-2 text-sm font-mono text-slate-200 outline-none",style:{background:"rgba(2,6,23,0.6)",border:"1px solid var(--border-default)"}}),(0,b.jsxs)("select",{value:o,onChange:a=>p(a.target.value),className:"rounded-lg px-3 py-2 text-sm font-mono text-slate-200 outline-none",style:{background:"rgba(2,6,23,0.6)",border:"1px solid var(--border-default)",color:o?f:"rgb(148,163,184)"},children:[(0,b.jsx)("option",{value:"",children:"All capabilities"}),q.map(a=>(0,b.jsx)("option",{value:a,children:a},a))]})]}),k&&(0,b.jsx)("div",{className:"w-full text-center py-16 text-slate-500 text-sm",children:"Loading…"}),!k&&0===a.length&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:g,children:[(0,b.jsx)("span",{className:"text-4xl",children:"📁"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"No file data yet"}),(0,b.jsxs)("p",{className:"text-slate-500 text-sm",children:["Run an AMBER scan from the"," ",(0,b.jsx)(d.default,{href:"/amber",className:"hover:underline",style:{color:f},children:"AMBER landing page"}),"."]})]}),!k&&0===r.length&&a.length>0&&(0,b.jsx)("p",{className:"text-slate-500 text-sm",children:"No files match the current filter."}),!k&&r.length>0&&(0,b.jsxs)("div",{className:"w-full rounded-xl flex flex-col",style:g,children:[(0,b.jsxs)("div",{className:"px-5 py-3 border-b flex items-center gap-3",style:{borderColor:"var(--border-default)"},children:[(0,b.jsx)("span",{className:"text-xs font-semibold text-slate-500 uppercase tracking-widest flex-1",children:"Path"}),(0,b.jsx)("span",{className:"text-xs font-semibold text-slate-500 uppercase tracking-widest w-16 text-center",children:"Doc"}),(0,b.jsx)("span",{className:"text-xs font-semibold text-slate-500 uppercase tracking-widest w-32",children:"Capabilities"})]}),(0,b.jsx)("div",{className:"flex flex-col divide-y",style:{borderColor:"rgba(51,65,85,0.3)"},children:r.slice(0,100).map(a=>(0,b.jsxs)("div",{className:"px-5 py-2.5 flex items-center gap-3 hover:bg-white/[0.02] transition-colors",children:[(0,b.jsx)("span",{className:"text-xs font-mono text-slate-400 truncate flex-1",children:a.path}),(0,b.jsx)("span",{className:"w-16 text-center text-xs",children:a.has_doc?(0,b.jsx)("span",{className:"text-emerald-400",children:"✓"}):(0,b.jsx)("span",{className:"text-slate-700",children:"—"})}),(0,b.jsxs)("div",{className:"w-32 flex flex-wrap gap-1",children:[a.capabilities.slice(0,2).map(a=>(0,b.jsx)(d.default,{href:`/amber/capabilities/${encodeURIComponent(a)}`,className:"text-xs font-mono px-1.5 py-0.5 rounded truncate hover:brightness-110 transition-all",style:{background:"rgba(251,191,36,0.1)",color:f,border:"1px solid rgba(251,191,36,0.2)",maxWidth:"7rem"},title:a,children:a.split(".").pop()},a)),a.capabilities.length>2&&(0,b.jsxs)("span",{className:"text-xs text-slate-600",children:["+",a.capabilities.length-2]}),0===a.capabilities.length&&(0,b.jsx)("span",{className:"text-xs text-slate-700 font-mono",children:"untagged"})]})]},a.path))}),r.length>100&&(0,b.jsxs)("div",{className:"px-5 py-3 text-xs text-slate-600 border-t",style:{borderColor:"var(--border-default)"},children:["Showing 100 of ",r.length," files. Use path filter to narrow results."]})]})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.2"," · AMBER / Files"]})]})}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=app_amber_files_page_tsx_00pdkc~._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[50233,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444),f=a.i(42003),g=a.i(61127);let h="rgb(251,191,36)",i={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},j={background:"rgba(15,23,42,0.5)",border:"1px solid rgba(51,65,85,0.4)"};function k({label:a,value:c,accent:d}){return(0,b.jsxs)("div",{className:"rounded-lg px-4 py-3 flex flex-col gap-0.5",style:j,children:[(0,b.jsx)("span",{className:"text-xs text-slate-500 uppercase tracking-widest",children:a}),(0,b.jsx)("span",{className:"text-xl font-semibold font-mono",style:{color:d??"rgb(226,232,240)"},children:c})]})}a.s(["default",0,function(){let{tq:a,ready:j}=(0,f.useTargetPath)(),{wq:l}=(0,g.useActiveWorkspace)(a),[m,n]=(0,c.useState)(null),[o,p]=(0,c.useState)(null),[q,r]=(0,c.useState)(!1),[s,t]=(0,c.useState)(null);async function u(){r(!0),t(null);try{let b=await fetch(`/api/amber/scan${a}${l}`,{method:"POST"}),c=await b.json();if(!b.ok)throw Error(c.error??"Scan failed");n(c.scan)}catch(a){t(a instanceof Error?a.message:String(a))}finally{r(!1)}}(0,c.useEffect)(()=>{j&&(fetch(`/api/amber/scan${a}${l}`).then(a=>a.json()).then(({scan:a})=>n(a??null)).catch(()=>{}),fetch(`/api/amber/registry${a}${l}`).then(a=>a.json()).then(({capabilities:a})=>p(Array.isArray(a)?a.length:0)).catch(()=>{}))},[j,l]);let v=[{href:"/amber/capabilities",label:"Capabilities",icon:"🧩",desc:`${o??"—"} registered`},{href:"/amber/files",label:"Files",icon:"📁",desc:m?`${m.file_count} scanned`:"No scan yet"},{href:"/amber/coverage",label:"Coverage",icon:"📊",desc:m?`${m.drift_count} drift entries`:"No scan yet"}];return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("h1",{className:"text-xl font-semibold text-slate-100 tracking-tight",children:[(0,b.jsx)("span",{className:"font-mono",style:{color:h},children:"AMBER"}),(0,b.jsx)("span",{className:"text-slate-400 text-sm font-normal ml-2",children:"Capability Registry + Coverage"})]}),m&&(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5 font-mono",children:["Last scan: ",new Date(m.created_at).toLocaleString()," · ",m.target]})]}),(0,b.jsx)("button",{onClick:u,disabled:q,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50",style:{background:h,color:"#020617"},children:q?"Scanning…":m?"Re-scan":"Run scan"})]}),s&&(0,b.jsx)("div",{className:"w-full rounded-lg px-4 py-3 text-sm text-red-400 font-mono",style:{background:"rgba(239,68,68,0.08)",border:"1px solid rgba(239,68,68,0.2)"},children:s}),!m&&!q&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:i,children:[(0,b.jsx)("span",{className:"text-4xl",children:"🟡"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"No AMBER scan yet"}),(0,b.jsxs)("p",{className:"text-slate-500 text-sm max-w-sm",children:["Run a scan to analyse your capability registry, file coverage, and documentation drift. Requires a ",(0,b.jsx)("span",{className:"font-mono text-amber-400",children:".amber/capabilities.md"})," in the target project."]})]}),m&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"w-full grid grid-cols-4 gap-3",children:[(0,b.jsx)(k,{label:"Files",value:m.file_count}),(0,b.jsx)(k,{label:"Capabilities",value:o??m.capability_count,accent:h}),(0,b.jsx)(k,{label:"Drift",value:m.drift_count,accent:m.drift_count>0?"rgb(248,113,113)":"rgb(52,211,153)"}),(0,b.jsx)(k,{label:"Orphans",value:m.orphan_capability_count,accent:m.orphan_capability_count>0?"rgb(251,191,36)":"rgb(52,211,153)"})]}),m.drift_count>0&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:i,children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:["Recent Drift (",m.drift_count,")"]}),(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[m.drift.slice(0,5).map((a,c)=>(0,b.jsxs)("div",{className:"flex items-center justify-between py-1 border-b",style:{borderColor:"rgba(51,65,85,0.3)"},children:[(0,b.jsx)("span",{className:"text-xs font-mono text-slate-400 truncate flex-1",children:a.file}),(0,b.jsx)("span",{className:"text-xs font-mono text-amber-400 ml-3 flex-shrink-0",children:a.kind.replace(/_/g," ")})]},c)),m.drift_count>5&&(0,b.jsxs)(d.default,{href:"/amber/coverage",className:"text-xs text-amber-400 hover:underline mt-1",children:["+",m.drift_count-5," more → Coverage"]})]})]}),m.orphan_capability_count>0&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:i,children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-amber-400 uppercase tracking-widest",children:["Orphan Capabilities (",m.orphan_capability_count,")"]}),(0,b.jsx)("p",{className:"text-xs text-slate-500",children:"Registered in capabilities.md but matched no scanned files."}),(0,b.jsx)("div",{className:"flex flex-wrap gap-2",children:m.orphan_capability_ids.map(a=>(0,b.jsx)(d.default,{href:`/amber/capabilities/${encodeURIComponent(a)}`,className:"text-xs font-mono px-2 py-1 rounded hover:brightness-110 transition-all",style:{background:"rgba(251,191,36,0.1)",color:h,border:"1px solid rgba(251,191,36,0.25)"},children:a},a))})]}),m.unknown_ref_count>0&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:i,children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-red-400 uppercase tracking-widest",children:["Unknown Capability Refs (",m.unknown_ref_count,")"]}),(0,b.jsx)("p",{className:"text-xs text-slate-500",children:"Files reference capability IDs not in the registry."}),(0,b.jsx)("div",{className:"flex flex-col gap-1",children:m.unknown_capability_refs.slice(0,5).map((a,c)=>(0,b.jsxs)("div",{className:"flex items-center gap-3 py-1 border-b",style:{borderColor:"rgba(51,65,85,0.3)"},children:[(0,b.jsx)("span",{className:"text-xs font-mono text-slate-400 truncate flex-1",children:a.file}),(0,b.jsx)("span",{className:"text-xs font-mono text-red-400",children:a.id})]},c))})]})]}),(0,b.jsx)("div",{className:"w-full grid grid-cols-3 gap-3",children:v.map(({href:a,label:c,icon:e,desc:f})=>(0,b.jsxs)(d.default,{href:a,className:"rounded-xl p-5 flex flex-col gap-2 transition-all hover:brightness-110",style:{...i,borderColor:h+"30"},children:[(0,b.jsx)("span",{className:"text-2xl",children:e}),(0,b.jsx)("span",{className:"text-sm font-semibold",style:{color:h},children:c}),(0,b.jsx)("span",{className:"text-xs text-slate-500",children:f})]},a))})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.
|
|
1
|
+
module.exports=[50233,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444),f=a.i(42003),g=a.i(61127);let h="rgb(251,191,36)",i={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},j={background:"rgba(15,23,42,0.5)",border:"1px solid rgba(51,65,85,0.4)"};function k({label:a,value:c,accent:d}){return(0,b.jsxs)("div",{className:"rounded-lg px-4 py-3 flex flex-col gap-0.5",style:j,children:[(0,b.jsx)("span",{className:"text-xs text-slate-500 uppercase tracking-widest",children:a}),(0,b.jsx)("span",{className:"text-xl font-semibold font-mono",style:{color:d??"rgb(226,232,240)"},children:c})]})}a.s(["default",0,function(){let{tq:a,ready:j}=(0,f.useTargetPath)(),{wq:l}=(0,g.useActiveWorkspace)(a),[m,n]=(0,c.useState)(null),[o,p]=(0,c.useState)(null),[q,r]=(0,c.useState)(!1),[s,t]=(0,c.useState)(null);async function u(){r(!0),t(null);try{let b=await fetch(`/api/amber/scan${a}${l}`,{method:"POST"}),c=await b.json();if(!b.ok)throw Error(c.error??"Scan failed");n(c.scan)}catch(a){t(a instanceof Error?a.message:String(a))}finally{r(!1)}}(0,c.useEffect)(()=>{j&&(fetch(`/api/amber/scan${a}${l}`).then(a=>a.json()).then(({scan:a})=>n(a??null)).catch(()=>{}),fetch(`/api/amber/registry${a}${l}`).then(a=>a.json()).then(({capabilities:a})=>p(Array.isArray(a)?a.length:0)).catch(()=>{}))},[j,l]);let v=[{href:"/amber/capabilities",label:"Capabilities",icon:"🧩",desc:`${o??"—"} registered`},{href:"/amber/files",label:"Files",icon:"📁",desc:m?`${m.file_count} scanned`:"No scan yet"},{href:"/amber/coverage",label:"Coverage",icon:"📊",desc:m?`${m.drift_count} drift entries`:"No scan yet"}];return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("h1",{className:"text-xl font-semibold text-slate-100 tracking-tight",children:[(0,b.jsx)("span",{className:"font-mono",style:{color:h},children:"AMBER"}),(0,b.jsx)("span",{className:"text-slate-400 text-sm font-normal ml-2",children:"Capability Registry + Coverage"})]}),m&&(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5 font-mono",children:["Last scan: ",new Date(m.created_at).toLocaleString()," · ",m.target]})]}),(0,b.jsx)("button",{onClick:u,disabled:q,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50",style:{background:h,color:"#020617"},children:q?"Scanning…":m?"Re-scan":"Run scan"})]}),s&&(0,b.jsx)("div",{className:"w-full rounded-lg px-4 py-3 text-sm text-red-400 font-mono",style:{background:"rgba(239,68,68,0.08)",border:"1px solid rgba(239,68,68,0.2)"},children:s}),!m&&!q&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:i,children:[(0,b.jsx)("span",{className:"text-4xl",children:"🟡"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"No AMBER scan yet"}),(0,b.jsxs)("p",{className:"text-slate-500 text-sm max-w-sm",children:["Run a scan to analyse your capability registry, file coverage, and documentation drift. Requires a ",(0,b.jsx)("span",{className:"font-mono text-amber-400",children:".amber/capabilities.md"})," in the target project."]})]}),m&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"w-full grid grid-cols-4 gap-3",children:[(0,b.jsx)(k,{label:"Files",value:m.file_count}),(0,b.jsx)(k,{label:"Capabilities",value:o??m.capability_count,accent:h}),(0,b.jsx)(k,{label:"Drift",value:m.drift_count,accent:m.drift_count>0?"rgb(248,113,113)":"rgb(52,211,153)"}),(0,b.jsx)(k,{label:"Orphans",value:m.orphan_capability_count,accent:m.orphan_capability_count>0?"rgb(251,191,36)":"rgb(52,211,153)"})]}),m.drift_count>0&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:i,children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:["Recent Drift (",m.drift_count,")"]}),(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[m.drift.slice(0,5).map((a,c)=>(0,b.jsxs)("div",{className:"flex items-center justify-between py-1 border-b",style:{borderColor:"rgba(51,65,85,0.3)"},children:[(0,b.jsx)("span",{className:"text-xs font-mono text-slate-400 truncate flex-1",children:a.file}),(0,b.jsx)("span",{className:"text-xs font-mono text-amber-400 ml-3 flex-shrink-0",children:a.kind.replace(/_/g," ")})]},c)),m.drift_count>5&&(0,b.jsxs)(d.default,{href:"/amber/coverage",className:"text-xs text-amber-400 hover:underline mt-1",children:["+",m.drift_count-5," more → Coverage"]})]})]}),m.orphan_capability_count>0&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:i,children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-amber-400 uppercase tracking-widest",children:["Orphan Capabilities (",m.orphan_capability_count,")"]}),(0,b.jsx)("p",{className:"text-xs text-slate-500",children:"Registered in capabilities.md but matched no scanned files."}),(0,b.jsx)("div",{className:"flex flex-wrap gap-2",children:m.orphan_capability_ids.map(a=>(0,b.jsx)(d.default,{href:`/amber/capabilities/${encodeURIComponent(a)}`,className:"text-xs font-mono px-2 py-1 rounded hover:brightness-110 transition-all",style:{background:"rgba(251,191,36,0.1)",color:h,border:"1px solid rgba(251,191,36,0.25)"},children:a},a))})]}),m.unknown_ref_count>0&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:i,children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-red-400 uppercase tracking-widest",children:["Unknown Capability Refs (",m.unknown_ref_count,")"]}),(0,b.jsx)("p",{className:"text-xs text-slate-500",children:"Files reference capability IDs not in the registry."}),(0,b.jsx)("div",{className:"flex flex-col gap-1",children:m.unknown_capability_refs.slice(0,5).map((a,c)=>(0,b.jsxs)("div",{className:"flex items-center gap-3 py-1 border-b",style:{borderColor:"rgba(51,65,85,0.3)"},children:[(0,b.jsx)("span",{className:"text-xs font-mono text-slate-400 truncate flex-1",children:a.file}),(0,b.jsx)("span",{className:"text-xs font-mono text-red-400",children:a.id})]},c))})]})]}),(0,b.jsx)("div",{className:"w-full grid grid-cols-3 gap-3",children:v.map(({href:a,label:c,icon:e,desc:f})=>(0,b.jsxs)(d.default,{href:a,className:"rounded-xl p-5 flex flex-col gap-2 transition-all hover:brightness-110",style:{...i,borderColor:h+"30"},children:[(0,b.jsx)("span",{className:"text-2xl",children:e}),(0,b.jsx)("span",{className:"text-sm font-semibold",style:{color:h},children:c}),(0,b.jsx)("span",{className:"text-xs text-slate-500",children:f})]},a))})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.2"," · AMBER"]})]})}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=app_amber_page_tsx_0ihx6zl._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[26448,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444),f=a.i(42003),g=a.i(61127),h=a.i(2894);let i={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},j={background:"rgba(15,23,42,0.5)",border:"1px solid rgba(51,65,85,0.4)"};function k({label:a,value:c,accent:d}){return(0,b.jsxs)("div",{className:"rounded-lg px-4 py-3 flex flex-col gap-0.5",style:j,children:[(0,b.jsx)("span",{className:"text-xs text-slate-500 uppercase tracking-widest",children:a}),(0,b.jsx)("span",{className:"text-xl font-semibold font-mono",style:{color:d??"rgb(226,232,240)"},children:c})]})}a.s(["default",0,function(){let{tq:a,ready:l}=(0,f.useTargetPath)(),{wq:m}=(0,g.useActiveWorkspace)(a),[n,o]=(0,c.useState)(null),[p,q]=(0,c.useState)(!1),[r,s]=(0,c.useState)(null);async function t(){q(!0),s(null);try{let b=await fetch(`/api/blue/scan${a}${m}`,{method:"POST"}),c=await b.json();if(!b.ok)throw Error(c.error??"Scan failed");o(c.scan)}catch(a){s(a instanceof Error?a.message:String(a))}finally{q(!1)}}return(0,c.useEffect)(()=>{l&&fetch(`/api/blue/scan${a}${m}`).then(a=>a.json()).then(({scan:a})=>o(a??null)).catch(()=>{})},[l,m]),(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("h1",{className:"text-xl font-semibold text-slate-100 tracking-tight",children:[(0,b.jsx)("span",{className:"font-mono text-blue-400",children:"BLUE"}),(0,b.jsx)("span",{className:"text-slate-400 text-sm font-normal ml-2",children:"Architecture Intelligence"})]}),n&&(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5 font-mono",children:["Last scan: ",new Date(n.created_at).toLocaleString()," · ",n.target]})]}),(0,b.jsx)("button",{onClick:t,disabled:p,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50",style:{background:"rgb(59,130,246)",color:"#fff"},children:p?"Scanning…":n?"Re-scan":"Run scan"})]}),n?.loc_over_limit&&(0,b.jsxs)("div",{className:"w-full rounded-xl px-5 py-4 flex items-center justify-between gap-4",style:{background:"rgba(251,191,36,0.08)",border:"1px solid rgba(251,191,36,0.2)"},children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("p",{className:"text-sm font-semibold text-amber-400",children:[n.loc?.toLocaleString()," LOC in this project"]}),(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:["Free tier covers ",h.FREE_TIER_LOC_LIMIT.toLocaleString()," LOC. Partial analysis only."]})]}),(0,b.jsx)("span",{className:"text-xs font-bold px-2 py-1 rounded-full flex-shrink-0",style:{background:"rgba(251,191,36,0.15)",color:"rgb(251,191,36)",border:"1px solid rgba(251,191,36,0.3)"},children:"PRO"})]}),r&&(0,b.jsx)("div",{className:"w-full rounded-lg px-4 py-3 text-sm text-red-400 font-mono",style:{background:"rgba(239,68,68,0.08)",border:"1px solid rgba(239,68,68,0.2)"},children:r}),!n&&!p&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:i,children:[(0,b.jsx)("span",{className:"text-4xl",children:"🔵"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"No scan yet"}),(0,b.jsx)("p",{className:"text-slate-500 text-sm",children:"Run your first scan to see import cycles, churn hotspots, and TODOs."})]}),n&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"w-full grid grid-cols-3 gap-3",children:[(0,b.jsx)(k,{label:"Files",value:n.file_count}),(0,b.jsx)(k,{label:"Cycles",value:n.cycle_count,accent:n.cycle_count>0?"rgb(248,113,113)":"rgb(52,211,153)"}),(0,b.jsx)(k,{label:"TODOs",value:n.todos.length,accent:"rgb(251,191,36)"})]}),n.cycle_count>0&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:i,children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:["Import Cycles (",n.cycle_count,")"]}),(0,b.jsx)("div",{className:"flex flex-col gap-2",children:n.cycle_groups.slice(0,5).map(a=>(0,b.jsxs)("div",{className:"rounded-lg px-3 py-2",style:j,children:[(0,b.jsx)("div",{className:"flex items-center gap-2 mb-1",children:(0,b.jsxs)("span",{className:"text-xs font-mono text-red-400",children:[a.size," files"]})}),a.paths.slice(0,3).map(a=>(0,b.jsx)("p",{className:"text-xs font-mono text-slate-400 truncate",children:a},a)),a.paths.length>3&&(0,b.jsxs)("p",{className:"text-xs text-slate-600",children:["+",a.paths.length-3," more"]})]},a.id))})]}),n.top_churned_files.length>0&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:i,children:[(0,b.jsx)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:"High-Churn Files (90d)"}),(0,b.jsx)("div",{className:"flex flex-col gap-1",children:n.top_churned_files.slice(0,8).map(a=>(0,b.jsxs)("div",{className:"flex items-center justify-between py-1 border-b",style:{borderColor:"rgba(51,65,85,0.3)"},children:[(0,b.jsx)("span",{className:"text-xs font-mono text-slate-400 truncate flex-1",children:a.path}),(0,b.jsxs)("span",{className:"text-xs font-mono text-amber-400 ml-3 flex-shrink-0",children:[a.count_90d,"c"]})]},a.path))})]}),n.todos.length>0&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:i,children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:["TODOs / FIXMEs (",n.todos.length,")"]}),(0,b.jsx)("div",{className:"flex flex-col gap-1",children:n.todos.slice(0,6).map((a,c)=>(0,b.jsxs)("div",{className:"py-1 border-b",style:{borderColor:"rgba(51,65,85,0.3)"},children:[(0,b.jsx)("p",{className:"text-xs font-mono text-amber-300 truncate",children:a.text}),(0,b.jsx)("p",{className:"text-xs text-slate-600 truncate",children:a.path})]},c))})]}),(0,b.jsx)("div",{className:"w-full grid grid-cols-2 gap-3",children:[{href:"/blue/recommendations",label:"Recommendations",icon:"💡",color:"rgb(59,130,246)"},{href:"/blue/sessions",label:"Sessions",icon:"💬",color:"rgb(99,102,241)"}].map(({href:a,label:c,icon:e,color:f})=>(0,b.jsxs)(d.default,{href:a,className:"rounded-xl p-5 flex items-center gap-3 transition-all hover:brightness-110",style:{...i,borderColor:f+"40"},children:[(0,b.jsx)("span",{className:"text-2xl",children:e}),(0,b.jsx)("span",{className:"text-sm font-semibold",style:{color:f},children:c})]},a))})]})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.
|
|
1
|
+
module.exports=[26448,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444),f=a.i(42003),g=a.i(61127),h=a.i(2894);let i={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},j={background:"rgba(15,23,42,0.5)",border:"1px solid rgba(51,65,85,0.4)"};function k({label:a,value:c,accent:d}){return(0,b.jsxs)("div",{className:"rounded-lg px-4 py-3 flex flex-col gap-0.5",style:j,children:[(0,b.jsx)("span",{className:"text-xs text-slate-500 uppercase tracking-widest",children:a}),(0,b.jsx)("span",{className:"text-xl font-semibold font-mono",style:{color:d??"rgb(226,232,240)"},children:c})]})}a.s(["default",0,function(){let{tq:a,ready:l}=(0,f.useTargetPath)(),{wq:m}=(0,g.useActiveWorkspace)(a),[n,o]=(0,c.useState)(null),[p,q]=(0,c.useState)(!1),[r,s]=(0,c.useState)(null);async function t(){q(!0),s(null);try{let b=await fetch(`/api/blue/scan${a}${m}`,{method:"POST"}),c=await b.json();if(!b.ok)throw Error(c.error??"Scan failed");o(c.scan)}catch(a){s(a instanceof Error?a.message:String(a))}finally{q(!1)}}return(0,c.useEffect)(()=>{l&&fetch(`/api/blue/scan${a}${m}`).then(a=>a.json()).then(({scan:a})=>o(a??null)).catch(()=>{})},[l,m]),(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("h1",{className:"text-xl font-semibold text-slate-100 tracking-tight",children:[(0,b.jsx)("span",{className:"font-mono text-blue-400",children:"BLUE"}),(0,b.jsx)("span",{className:"text-slate-400 text-sm font-normal ml-2",children:"Architecture Intelligence"})]}),n&&(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5 font-mono",children:["Last scan: ",new Date(n.created_at).toLocaleString()," · ",n.target]})]}),(0,b.jsx)("button",{onClick:t,disabled:p,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50",style:{background:"rgb(59,130,246)",color:"#fff"},children:p?"Scanning…":n?"Re-scan":"Run scan"})]}),n?.loc_over_limit&&(0,b.jsxs)("div",{className:"w-full rounded-xl px-5 py-4 flex items-center justify-between gap-4",style:{background:"rgba(251,191,36,0.08)",border:"1px solid rgba(251,191,36,0.2)"},children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("p",{className:"text-sm font-semibold text-amber-400",children:[n.loc?.toLocaleString()," LOC in this project"]}),(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:["Free tier covers ",h.FREE_TIER_LOC_LIMIT.toLocaleString()," LOC. Partial analysis only."]})]}),(0,b.jsx)("span",{className:"text-xs font-bold px-2 py-1 rounded-full flex-shrink-0",style:{background:"rgba(251,191,36,0.15)",color:"rgb(251,191,36)",border:"1px solid rgba(251,191,36,0.3)"},children:"PRO"})]}),r&&(0,b.jsx)("div",{className:"w-full rounded-lg px-4 py-3 text-sm text-red-400 font-mono",style:{background:"rgba(239,68,68,0.08)",border:"1px solid rgba(239,68,68,0.2)"},children:r}),!n&&!p&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:i,children:[(0,b.jsx)("span",{className:"text-4xl",children:"🔵"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"No scan yet"}),(0,b.jsx)("p",{className:"text-slate-500 text-sm",children:"Run your first scan to see import cycles, churn hotspots, and TODOs."})]}),n&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"w-full grid grid-cols-3 gap-3",children:[(0,b.jsx)(k,{label:"Files",value:n.file_count}),(0,b.jsx)(k,{label:"Cycles",value:n.cycle_count,accent:n.cycle_count>0?"rgb(248,113,113)":"rgb(52,211,153)"}),(0,b.jsx)(k,{label:"TODOs",value:n.todos.length,accent:"rgb(251,191,36)"})]}),n.cycle_count>0&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:i,children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:["Import Cycles (",n.cycle_count,")"]}),(0,b.jsx)("div",{className:"flex flex-col gap-2",children:n.cycle_groups.slice(0,5).map(a=>(0,b.jsxs)("div",{className:"rounded-lg px-3 py-2",style:j,children:[(0,b.jsx)("div",{className:"flex items-center gap-2 mb-1",children:(0,b.jsxs)("span",{className:"text-xs font-mono text-red-400",children:[a.size," files"]})}),a.paths.slice(0,3).map(a=>(0,b.jsx)("p",{className:"text-xs font-mono text-slate-400 truncate",children:a},a)),a.paths.length>3&&(0,b.jsxs)("p",{className:"text-xs text-slate-600",children:["+",a.paths.length-3," more"]})]},a.id))})]}),n.top_churned_files.length>0&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:i,children:[(0,b.jsx)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:"High-Churn Files (90d)"}),(0,b.jsx)("div",{className:"flex flex-col gap-1",children:n.top_churned_files.slice(0,8).map(a=>(0,b.jsxs)("div",{className:"flex items-center justify-between py-1 border-b",style:{borderColor:"rgba(51,65,85,0.3)"},children:[(0,b.jsx)("span",{className:"text-xs font-mono text-slate-400 truncate flex-1",children:a.path}),(0,b.jsxs)("span",{className:"text-xs font-mono text-amber-400 ml-3 flex-shrink-0",children:[a.count_90d,"c"]})]},a.path))})]}),n.todos.length>0&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:i,children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:["TODOs / FIXMEs (",n.todos.length,")"]}),(0,b.jsx)("div",{className:"flex flex-col gap-1",children:n.todos.slice(0,6).map((a,c)=>(0,b.jsxs)("div",{className:"py-1 border-b",style:{borderColor:"rgba(51,65,85,0.3)"},children:[(0,b.jsx)("p",{className:"text-xs font-mono text-amber-300 truncate",children:a.text}),(0,b.jsx)("p",{className:"text-xs text-slate-600 truncate",children:a.path})]},c))})]}),(0,b.jsx)("div",{className:"w-full grid grid-cols-2 gap-3",children:[{href:"/blue/recommendations",label:"Recommendations",icon:"💡",color:"rgb(59,130,246)"},{href:"/blue/sessions",label:"Sessions",icon:"💬",color:"rgb(99,102,241)"}].map(({href:a,label:c,icon:e,color:f})=>(0,b.jsxs)(d.default,{href:a,className:"rounded-xl p-5 flex items-center gap-3 transition-all hover:brightness-110",style:{...i,borderColor:f+"40"},children:[(0,b.jsx)("span",{className:"text-2xl",children:e}),(0,b.jsx)("span",{className:"text-sm font-semibold",style:{color:f},children:c})]},a))})]})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.2"," · BLUE"]})]})}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=app_blue_page_tsx_0zg5eg-._.js.map
|
package/.next/standalone/.next/server/chunks/ssr/app_blue_recommendations_[id]_page_tsx_10zzlnx._.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[19956,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(50944),f=a.i(47444);let g={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},h={draft:"rgba(148,163,184,0.9)",approved:"rgb(52,211,153)",rejected:"rgb(248,113,113)"},i={low:"rgb(52,211,153)",medium:"rgb(251,191,36)",high:"rgb(248,113,113)"};function j({label:a,children:c}){return(0,b.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,b.jsx)("span",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:a}),(0,b.jsx)("div",{className:"text-sm text-slate-300 leading-relaxed",children:c})]})}a.s(["default",0,function({params:a}){let{id:k}=(0,c.use)(a),l=(0,e.useRouter)(),[m,n]=(0,c.useState)(null),[o,p]=(0,c.useState)(!0),[q,r]=(0,c.useState)(!1),[s,t]=(0,c.useState)(!1),[u,v]=(0,c.useState)(!1);async function w(a){if(m){t(!0);try{let b=await fetch(`/api/blue/recommendations/${k}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:a})}),c=await b.json();n(c.recommendation)}finally{t(!1)}}}async function x(){if(m){v(!0);try{let a=await fetch("/api/blue/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:`Session: ${m.title}`,rec_id:m.id})}),b=await a.json();l.push(`/blue/sessions/${b.session.id}`)}catch{v(!1)}}}return((0,c.useEffect)(()=>{fetch(`/api/blue/recommendations/${k}`).then(async a=>{404===a.status?r(!0):n((await a.json()).recommendation)}).catch(()=>r(!0)).finally(()=>p(!1))},[k]),o)?(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(f.PrismDock,{}),(0,b.jsx)("main",{className:"flex-1 flex items-center justify-center",children:(0,b.jsx)("span",{className:"text-slate-500 text-sm",children:"Loading…"})})]}):q||!m?(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(f.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[(0,b.jsx)("p",{className:"text-slate-400",children:"Recommendation not found."}),(0,b.jsx)(d.default,{href:"/blue/recommendations",className:"text-blue-400 text-sm hover:underline",children:"← Back to Recommendations"})]})]}):(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(f.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center gap-2 text-sm",children:[(0,b.jsx)(d.default,{href:"/blue",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"BLUE"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)(d.default,{href:"/blue/recommendations",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"Recommendations"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("span",{className:"text-slate-400 truncate max-w-xs",children:m.title})]}),(0,b.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,b.jsx)("h1",{className:"text-xl font-semibold text-slate-100 leading-snug flex-1",children:m.title}),(0,b.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,b.jsxs)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:i[m.risk_level]+"20",color:i[m.risk_level],border:`1px solid ${i[m.risk_level]}40`},children:[m.risk_level," risk"]}),(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:h[m.status]+"18",color:h[m.status],border:`1px solid ${h[m.status]}30`},children:m.status})]})]}),(0,b.jsxs)("p",{className:"text-xs text-slate-500 font-mono",children:["llm-generated"===m.source?"✦ AI-generated":"User-created"," · ",new Date(m.created_at).toLocaleString()]})]}),(0,b.jsxs)("div",{className:"w-full rounded-xl p-6 flex flex-col gap-5",style:g,children:[(0,b.jsx)(j,{label:"Summary",children:m.summary}),(0,b.jsx)("div",{className:"border-t",style:{borderColor:"var(--border-default)"}}),(0,b.jsx)(j,{label:"Problem",children:m.problem}),(0,b.jsx)("div",{className:"border-t",style:{borderColor:"var(--border-default)"}}),(0,b.jsx)(j,{label:"Expected Impact",children:m.expected_impact}),m.suggested_files.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"border-t",style:{borderColor:"var(--border-default)"}}),(0,b.jsx)(j,{label:"Suggested Files",children:(0,b.jsx)("div",{className:"flex flex-col gap-1 mt-0.5",children:m.suggested_files.map(a=>(0,b.jsx)("span",{className:"text-xs font-mono text-slate-400 bg-slate-800/60 px-2 py-1 rounded",children:a},a))})})]})]}),(0,b.jsxs)("div",{className:"w-full flex flex-wrap items-center gap-3",children:[(0,b.jsx)("button",{onClick:x,disabled:u,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50 flex items-center gap-2",style:{background:"rgb(59,130,246)",color:"#fff"},children:u?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"animate-spin inline-block w-3 h-3 border border-white border-t-transparent rounded-full"}),"Starting…"]}):"💬 Start session"}),"approved"!==m.status&&(0,b.jsx)("button",{onClick:()=>w("approved"),disabled:s,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50",style:{background:"rgba(52,211,153,0.12)",color:"rgb(52,211,153)",border:"1px solid rgba(52,211,153,0.3)"},children:"Approve"}),"rejected"!==m.status&&(0,b.jsx)("button",{onClick:()=>w("rejected"),disabled:s,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50",style:{background:"rgba(248,113,113,0.1)",color:"rgb(248,113,113)",border:"1px solid rgba(248,113,113,0.25)"},children:"Reject"}),"draft"!==m.status&&(0,b.jsx)("button",{onClick:()=>w("draft"),disabled:s,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50",style:{background:"rgba(148,163,184,0.1)",color:"rgba(148,163,184,0.9)",border:"1px solid rgba(148,163,184,0.2)"},children:"Reset to draft"})]})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.
|
|
1
|
+
module.exports=[19956,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(50944),f=a.i(47444);let g={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},h={draft:"rgba(148,163,184,0.9)",approved:"rgb(52,211,153)",rejected:"rgb(248,113,113)"},i={low:"rgb(52,211,153)",medium:"rgb(251,191,36)",high:"rgb(248,113,113)"};function j({label:a,children:c}){return(0,b.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,b.jsx)("span",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:a}),(0,b.jsx)("div",{className:"text-sm text-slate-300 leading-relaxed",children:c})]})}a.s(["default",0,function({params:a}){let{id:k}=(0,c.use)(a),l=(0,e.useRouter)(),[m,n]=(0,c.useState)(null),[o,p]=(0,c.useState)(!0),[q,r]=(0,c.useState)(!1),[s,t]=(0,c.useState)(!1),[u,v]=(0,c.useState)(!1);async function w(a){if(m){t(!0);try{let b=await fetch(`/api/blue/recommendations/${k}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:a})}),c=await b.json();n(c.recommendation)}finally{t(!1)}}}async function x(){if(m){v(!0);try{let a=await fetch("/api/blue/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:`Session: ${m.title}`,rec_id:m.id})}),b=await a.json();l.push(`/blue/sessions/${b.session.id}`)}catch{v(!1)}}}return((0,c.useEffect)(()=>{fetch(`/api/blue/recommendations/${k}`).then(async a=>{404===a.status?r(!0):n((await a.json()).recommendation)}).catch(()=>r(!0)).finally(()=>p(!1))},[k]),o)?(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(f.PrismDock,{}),(0,b.jsx)("main",{className:"flex-1 flex items-center justify-center",children:(0,b.jsx)("span",{className:"text-slate-500 text-sm",children:"Loading…"})})]}):q||!m?(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(f.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[(0,b.jsx)("p",{className:"text-slate-400",children:"Recommendation not found."}),(0,b.jsx)(d.default,{href:"/blue/recommendations",className:"text-blue-400 text-sm hover:underline",children:"← Back to Recommendations"})]})]}):(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(f.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center gap-2 text-sm",children:[(0,b.jsx)(d.default,{href:"/blue",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"BLUE"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)(d.default,{href:"/blue/recommendations",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"Recommendations"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("span",{className:"text-slate-400 truncate max-w-xs",children:m.title})]}),(0,b.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,b.jsx)("h1",{className:"text-xl font-semibold text-slate-100 leading-snug flex-1",children:m.title}),(0,b.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,b.jsxs)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:i[m.risk_level]+"20",color:i[m.risk_level],border:`1px solid ${i[m.risk_level]}40`},children:[m.risk_level," risk"]}),(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:h[m.status]+"18",color:h[m.status],border:`1px solid ${h[m.status]}30`},children:m.status})]})]}),(0,b.jsxs)("p",{className:"text-xs text-slate-500 font-mono",children:["llm-generated"===m.source?"✦ AI-generated":"User-created"," · ",new Date(m.created_at).toLocaleString()]})]}),(0,b.jsxs)("div",{className:"w-full rounded-xl p-6 flex flex-col gap-5",style:g,children:[(0,b.jsx)(j,{label:"Summary",children:m.summary}),(0,b.jsx)("div",{className:"border-t",style:{borderColor:"var(--border-default)"}}),(0,b.jsx)(j,{label:"Problem",children:m.problem}),(0,b.jsx)("div",{className:"border-t",style:{borderColor:"var(--border-default)"}}),(0,b.jsx)(j,{label:"Expected Impact",children:m.expected_impact}),m.suggested_files.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"border-t",style:{borderColor:"var(--border-default)"}}),(0,b.jsx)(j,{label:"Suggested Files",children:(0,b.jsx)("div",{className:"flex flex-col gap-1 mt-0.5",children:m.suggested_files.map(a=>(0,b.jsx)("span",{className:"text-xs font-mono text-slate-400 bg-slate-800/60 px-2 py-1 rounded",children:a},a))})})]})]}),(0,b.jsxs)("div",{className:"w-full flex flex-wrap items-center gap-3",children:[(0,b.jsx)("button",{onClick:x,disabled:u,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50 flex items-center gap-2",style:{background:"rgb(59,130,246)",color:"#fff"},children:u?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"animate-spin inline-block w-3 h-3 border border-white border-t-transparent rounded-full"}),"Starting…"]}):"💬 Start session"}),"approved"!==m.status&&(0,b.jsx)("button",{onClick:()=>w("approved"),disabled:s,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50",style:{background:"rgba(52,211,153,0.12)",color:"rgb(52,211,153)",border:"1px solid rgba(52,211,153,0.3)"},children:"Approve"}),"rejected"!==m.status&&(0,b.jsx)("button",{onClick:()=>w("rejected"),disabled:s,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50",style:{background:"rgba(248,113,113,0.1)",color:"rgb(248,113,113)",border:"1px solid rgba(248,113,113,0.25)"},children:"Reject"}),"draft"!==m.status&&(0,b.jsx)("button",{onClick:()=>w("draft"),disabled:s,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50",style:{background:"rgba(148,163,184,0.1)",color:"rgba(148,163,184,0.9)",border:"1px solid rgba(148,163,184,0.2)"},children:"Reset to draft"})]})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.2"," · BLUE / Recommendations"]})]})}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=app_blue_recommendations_%5Bid%5D_page_tsx_10zzlnx._.js.map
|
package/.next/standalone/.next/server/chunks/ssr/app_blue_recommendations_page_tsx_08w-50l._.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[81848,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444);let f={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},g={draft:"rgba(148,163,184,0.9)",approved:"rgb(52,211,153)",rejected:"rgb(248,113,113)"},h={low:"rgb(52,211,153)",medium:"rgb(251,191,36)",high:"rgb(248,113,113)"};function i({rec:a}){return(0,b.jsxs)(d.default,{href:`/blue/recommendations/${a.id}`,className:"w-full rounded-xl p-5 flex flex-col gap-2 transition-all hover:brightness-110 cursor-pointer",style:f,children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,b.jsx)("h3",{className:"text-sm font-semibold text-slate-200 leading-snug flex-1",children:a.title}),(0,b.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,b.jsxs)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:h[a.risk_level]+"20",color:h[a.risk_level],border:`1px solid ${h[a.risk_level]}40`},children:[a.risk_level," risk"]}),(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:g[a.status]+"18",color:g[a.status],border:`1px solid ${g[a.status]}30`},children:a.status})]})]}),(0,b.jsx)("p",{className:"text-xs text-slate-400 leading-relaxed line-clamp-2",children:a.summary}),a.suggested_files.length>0&&(0,b.jsxs)("div",{className:"flex flex-wrap gap-1 mt-1",children:[a.suggested_files.slice(0,3).map(a=>(0,b.jsx)("span",{className:"text-xs font-mono text-slate-500 bg-slate-800/60 px-2 py-0.5 rounded",children:a.split("/").pop()},a)),a.suggested_files.length>3&&(0,b.jsxs)("span",{className:"text-xs text-slate-600",children:["+",a.suggested_files.length-3," more"]})]}),(0,b.jsxs)("p",{className:"text-xs text-slate-600 mt-1",children:["llm-generated"===a.source?"✦ AI-generated":"User"," · ",new Date(a.created_at).toLocaleDateString()]})]})}a.s(["default",0,function(){let[a,g]=(0,c.useState)([]),[h,j]=(0,c.useState)(!0),[k,l]=(0,c.useState)(!1),[m,n]=(0,c.useState)(null);async function o(){try{let a=await fetch("/api/blue/recommendations"),b=await a.json();g(b.recommendations??[])}catch{}finally{j(!1)}}async function p(){l(!0),n(null);try{let a=await fetch("/api/blue/recommendations",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({generate:!0})}),b=await a.json();if(!a.ok)throw Error(b.error??"Generation failed");await o()}catch(a){n(a instanceof Error?a.message:String(a))}finally{l(!1)}}(0,c.useEffect)(()=>{o()},[]);let q={approved:a.filter(a=>"approved"===a.status),draft:a.filter(a=>"draft"===a.status),rejected:a.filter(a=>"rejected"===a.status)};return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(d.default,{href:"/blue",className:"text-slate-500 hover:text-slate-300 text-sm transition-colors",children:"← BLUE"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("h1",{className:"text-xl font-semibold text-slate-100 tracking-tight",children:(0,b.jsx)("span",{className:"font-mono text-blue-400",children:"Recommendations"})})]}),(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:[a.length," total"]})]}),(0,b.jsx)("button",{onClick:p,disabled:k,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50 flex items-center gap-2",style:{background:"rgb(59,130,246)",color:"#fff"},children:k?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"animate-spin inline-block w-3 h-3 border border-white border-t-transparent rounded-full"}),"Generating…"]}):"✦ Generate with AI"})]}),m&&(0,b.jsx)("div",{className:"w-full rounded-lg px-4 py-3 text-sm text-red-400 font-mono",style:{background:"rgba(239,68,68,0.08)",border:"1px solid rgba(239,68,68,0.2)"},children:m}),h&&(0,b.jsx)("div",{className:"w-full text-center py-16 text-slate-500 text-sm",children:"Loading…"}),!h&&0===a.length&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:f,children:[(0,b.jsx)("span",{className:"text-4xl",children:"💡"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"No recommendations yet"}),(0,b.jsx)("p",{className:"text-slate-500 text-sm max-w-sm",children:'Run a BLUE scan first, then click "Generate with AI" to get architecture recommendations.'})]}),!h&&a.length>0&&(0,b.jsxs)(b.Fragment,{children:[q.approved.length>0&&(0,b.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-emerald-400 uppercase tracking-widest",children:["Approved (",q.approved.length,")"]}),q.approved.map(a=>(0,b.jsx)(i,{rec:a},a.id))]}),q.draft.length>0&&(0,b.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:["Draft (",q.draft.length,")"]}),q.draft.map(a=>(0,b.jsx)(i,{rec:a},a.id))]}),q.rejected.length>0&&(0,b.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-red-400 uppercase tracking-widest",children:["Rejected (",q.rejected.length,")"]}),q.rejected.map(a=>(0,b.jsx)(i,{rec:a},a.id))]})]})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.
|
|
1
|
+
module.exports=[81848,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444);let f={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},g={draft:"rgba(148,163,184,0.9)",approved:"rgb(52,211,153)",rejected:"rgb(248,113,113)"},h={low:"rgb(52,211,153)",medium:"rgb(251,191,36)",high:"rgb(248,113,113)"};function i({rec:a}){return(0,b.jsxs)(d.default,{href:`/blue/recommendations/${a.id}`,className:"w-full rounded-xl p-5 flex flex-col gap-2 transition-all hover:brightness-110 cursor-pointer",style:f,children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,b.jsx)("h3",{className:"text-sm font-semibold text-slate-200 leading-snug flex-1",children:a.title}),(0,b.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,b.jsxs)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:h[a.risk_level]+"20",color:h[a.risk_level],border:`1px solid ${h[a.risk_level]}40`},children:[a.risk_level," risk"]}),(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:g[a.status]+"18",color:g[a.status],border:`1px solid ${g[a.status]}30`},children:a.status})]})]}),(0,b.jsx)("p",{className:"text-xs text-slate-400 leading-relaxed line-clamp-2",children:a.summary}),a.suggested_files.length>0&&(0,b.jsxs)("div",{className:"flex flex-wrap gap-1 mt-1",children:[a.suggested_files.slice(0,3).map(a=>(0,b.jsx)("span",{className:"text-xs font-mono text-slate-500 bg-slate-800/60 px-2 py-0.5 rounded",children:a.split("/").pop()},a)),a.suggested_files.length>3&&(0,b.jsxs)("span",{className:"text-xs text-slate-600",children:["+",a.suggested_files.length-3," more"]})]}),(0,b.jsxs)("p",{className:"text-xs text-slate-600 mt-1",children:["llm-generated"===a.source?"✦ AI-generated":"User"," · ",new Date(a.created_at).toLocaleDateString()]})]})}a.s(["default",0,function(){let[a,g]=(0,c.useState)([]),[h,j]=(0,c.useState)(!0),[k,l]=(0,c.useState)(!1),[m,n]=(0,c.useState)(null);async function o(){try{let a=await fetch("/api/blue/recommendations"),b=await a.json();g(b.recommendations??[])}catch{}finally{j(!1)}}async function p(){l(!0),n(null);try{let a=await fetch("/api/blue/recommendations",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({generate:!0})}),b=await a.json();if(!a.ok)throw Error(b.error??"Generation failed");await o()}catch(a){n(a instanceof Error?a.message:String(a))}finally{l(!1)}}(0,c.useEffect)(()=>{o()},[]);let q={approved:a.filter(a=>"approved"===a.status),draft:a.filter(a=>"draft"===a.status),rejected:a.filter(a=>"rejected"===a.status)};return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(d.default,{href:"/blue",className:"text-slate-500 hover:text-slate-300 text-sm transition-colors",children:"← BLUE"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("h1",{className:"text-xl font-semibold text-slate-100 tracking-tight",children:(0,b.jsx)("span",{className:"font-mono text-blue-400",children:"Recommendations"})})]}),(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:[a.length," total"]})]}),(0,b.jsx)("button",{onClick:p,disabled:k,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50 flex items-center gap-2",style:{background:"rgb(59,130,246)",color:"#fff"},children:k?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"animate-spin inline-block w-3 h-3 border border-white border-t-transparent rounded-full"}),"Generating…"]}):"✦ Generate with AI"})]}),m&&(0,b.jsx)("div",{className:"w-full rounded-lg px-4 py-3 text-sm text-red-400 font-mono",style:{background:"rgba(239,68,68,0.08)",border:"1px solid rgba(239,68,68,0.2)"},children:m}),h&&(0,b.jsx)("div",{className:"w-full text-center py-16 text-slate-500 text-sm",children:"Loading…"}),!h&&0===a.length&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:f,children:[(0,b.jsx)("span",{className:"text-4xl",children:"💡"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"No recommendations yet"}),(0,b.jsx)("p",{className:"text-slate-500 text-sm max-w-sm",children:'Run a BLUE scan first, then click "Generate with AI" to get architecture recommendations.'})]}),!h&&a.length>0&&(0,b.jsxs)(b.Fragment,{children:[q.approved.length>0&&(0,b.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-emerald-400 uppercase tracking-widest",children:["Approved (",q.approved.length,")"]}),q.approved.map(a=>(0,b.jsx)(i,{rec:a},a.id))]}),q.draft.length>0&&(0,b.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:["Draft (",q.draft.length,")"]}),q.draft.map(a=>(0,b.jsx)(i,{rec:a},a.id))]}),q.rejected.length>0&&(0,b.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-red-400 uppercase tracking-widest",children:["Rejected (",q.rejected.length,")"]}),q.rejected.map(a=>(0,b.jsx)(i,{rec:a},a.id))]})]})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.2"," · BLUE / Recommendations"]})]})}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=app_blue_recommendations_page_tsx_08w-50l._.js.map
|
package/.next/standalone/.next/server/chunks/ssr/app_blue_sessions_[id]_page_tsx_0_~w1xj._.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[2120,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444);let f={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"};function g({turn:a}){return(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)("div",{className:"flex justify-end",children:(0,b.jsx)("div",{className:"max-w-lg rounded-2xl rounded-tr-sm px-4 py-3 text-sm text-slate-200 leading-relaxed",style:{background:"rgba(59,130,246,0.15)",border:"1px solid rgba(59,130,246,0.25)"},children:a.prompt})}),a.response?(0,b.jsx)("div",{className:"flex justify-start",children:(0,b.jsxs)("div",{className:"max-w-lg rounded-2xl rounded-tl-sm px-4 py-3 text-sm text-slate-300 leading-relaxed",style:{background:"rgba(15,23,42,0.6)",border:"1px solid rgba(51,65,85,0.4)"},children:[(0,b.jsx)("span",{className:"text-blue-400 text-xs font-mono mr-2",children:"✦"}),(0,b.jsx)("span",{style:{whiteSpace:"pre-wrap"},children:a.response})]})}):(0,b.jsx)("div",{className:"flex justify-start",children:(0,b.jsxs)("div",{className:"rounded-2xl rounded-tl-sm px-4 py-3 flex items-center gap-2",style:{background:"rgba(15,23,42,0.6)",border:"1px solid rgba(51,65,85,0.4)"},children:[(0,b.jsx)("span",{className:"animate-spin inline-block w-3 h-3 border border-blue-400 border-t-transparent rounded-full"}),(0,b.jsx)("span",{className:"text-xs text-slate-500",children:"Thinking…"})]})})]})}a.s(["default",0,function({params:a}){let{id:h}=(0,c.use)(a),[i,j]=(0,c.useState)(null),[k,l]=(0,c.useState)(!0),[m,n]=(0,c.useState)(!1),[o,p]=(0,c.useState)(""),[q,r]=(0,c.useState)(!1),[s,t]=(0,c.useState)(!1),u=(0,c.useRef)(null);async function v(){try{let a=await fetch(`/api/blue/sessions/${h}`);if(404===a.status)return void n(!0);let b=await a.json();j(b.session)}catch{n(!0)}finally{l(!1)}}async function w(){if(!o.trim()||q||!i)return;let a=o.trim();p(""),r(!0),j(b=>b?{...b,turns:[...b.turns,{turn:b.turns.length+1,prompt:a,created_at:new Date().toISOString()}]}:b);try{let b=await fetch(`/api/blue/sessions/${h}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:a})}),c=await b.json();j(c.session)}catch{await v()}finally{r(!1)}}async function x(a){if(i){t(!0);try{let b=await fetch(`/api/blue/sessions/${h}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:a})}),c=await b.json();j(c.session)}finally{t(!1)}}}if((0,c.useEffect)(()=>{v()},[h]),(0,c.useEffect)(()=>{u.current?.scrollIntoView({behavior:"smooth"})},[i?.turns.length]),k)return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsx)("main",{className:"flex-1 flex items-center justify-center",children:(0,b.jsx)("span",{className:"text-slate-500 text-sm",children:"Loading…"})})]});if(m||!i)return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[(0,b.jsx)("p",{className:"text-slate-400",children:"Session not found."}),(0,b.jsx)(d.default,{href:"/blue/sessions",className:"text-indigo-400 text-sm hover:underline",children:"← Back to Sessions"})]})]});let y="active"===i.status;return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-28 pb-4",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center justify-between mb-4",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,b.jsx)(d.default,{href:"/blue",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"BLUE"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)(d.default,{href:"/blue/sessions",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"Sessions"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("span",{className:"text-slate-300 font-medium truncate max-w-xs",children:i.title})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[y&&(0,b.jsx)("button",{onClick:()=>x("completed"),disabled:s,className:"text-xs px-3 py-1 rounded-lg font-medium transition-all disabled:opacity-40",style:{background:"rgba(52,211,153,0.1)",color:"rgb(52,211,153)",border:"1px solid rgba(52,211,153,0.25)"},children:"Mark complete"}),y&&(0,b.jsx)("button",{onClick:()=>x("abandoned"),disabled:s,className:"text-xs px-3 py-1 rounded-lg font-medium transition-all disabled:opacity-40",style:{background:"rgba(148,163,184,0.08)",color:"rgba(148,163,184,0.6)",border:"1px solid rgba(148,163,184,0.15)"},children:"Abandon"}),!y&&(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-1 rounded-lg",style:{background:"rgba(148,163,184,0.08)",color:"rgba(148,163,184,0.6)",border:"1px solid rgba(148,163,184,0.15)"},children:i.status})]})]}),i.rec_id&&(0,b.jsx)("div",{className:"w-full mb-4",children:(0,b.jsx)(d.default,{href:`/blue/recommendations/${i.rec_id}`,className:"text-xs text-indigo-400 hover:text-indigo-300 transition-colors font-mono",children:"↗ linked recommendation"})}),(0,b.jsxs)("div",{className:"w-full flex flex-col gap-5 flex-1 overflow-y-auto pb-4",children:[0===i.turns.length&&(0,b.jsx)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-2",style:f,children:(0,b.jsx)("p",{className:"text-slate-400 text-sm",children:"No messages yet. Ask your first question below."})}),i.turns.map(a=>(0,b.jsx)(g,{turn:a},a.turn)),(0,b.jsx)("div",{ref:u})]}),y&&(0,b.jsx)("div",{className:"w-full mt-4 sticky bottom-4",children:(0,b.jsxs)("div",{className:"w-full rounded-xl p-3 flex items-end gap-3",style:{background:"rgba(2,6,23,0.85)",backdropFilter:"blur(16px)",border:"1px solid rgba(51,65,85,0.5)",boxShadow:"0 4px 24px rgba(0,0,0,0.4)"},children:[(0,b.jsx)("textarea",{rows:3,value:o,onChange:a=>p(a.target.value),onKeyDown:a=>{"Enter"!==a.key||a.shiftKey||(a.preventDefault(),w())},placeholder:"Ask about your codebase… (Enter to send, Shift+Enter for newline)",disabled:q,className:"flex-1 bg-transparent text-sm font-mono text-slate-200 outline-none resize-none placeholder:text-slate-600 disabled:opacity-50"}),(0,b.jsx)("button",{onClick:w,disabled:!o.trim()||q,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-40 flex-shrink-0 self-end",style:{background:"rgb(59,130,246)",color:"#fff"},children:q?(0,b.jsx)("span",{className:"animate-spin inline-block w-4 h-4 border-2 border-white border-t-transparent rounded-full"}):"Send"})]})})]}),(0,b.jsxs)("footer",{className:"text-center py-3 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.
|
|
1
|
+
module.exports=[2120,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444);let f={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"};function g({turn:a}){return(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)("div",{className:"flex justify-end",children:(0,b.jsx)("div",{className:"max-w-lg rounded-2xl rounded-tr-sm px-4 py-3 text-sm text-slate-200 leading-relaxed",style:{background:"rgba(59,130,246,0.15)",border:"1px solid rgba(59,130,246,0.25)"},children:a.prompt})}),a.response?(0,b.jsx)("div",{className:"flex justify-start",children:(0,b.jsxs)("div",{className:"max-w-lg rounded-2xl rounded-tl-sm px-4 py-3 text-sm text-slate-300 leading-relaxed",style:{background:"rgba(15,23,42,0.6)",border:"1px solid rgba(51,65,85,0.4)"},children:[(0,b.jsx)("span",{className:"text-blue-400 text-xs font-mono mr-2",children:"✦"}),(0,b.jsx)("span",{style:{whiteSpace:"pre-wrap"},children:a.response})]})}):(0,b.jsx)("div",{className:"flex justify-start",children:(0,b.jsxs)("div",{className:"rounded-2xl rounded-tl-sm px-4 py-3 flex items-center gap-2",style:{background:"rgba(15,23,42,0.6)",border:"1px solid rgba(51,65,85,0.4)"},children:[(0,b.jsx)("span",{className:"animate-spin inline-block w-3 h-3 border border-blue-400 border-t-transparent rounded-full"}),(0,b.jsx)("span",{className:"text-xs text-slate-500",children:"Thinking…"})]})})]})}a.s(["default",0,function({params:a}){let{id:h}=(0,c.use)(a),[i,j]=(0,c.useState)(null),[k,l]=(0,c.useState)(!0),[m,n]=(0,c.useState)(!1),[o,p]=(0,c.useState)(""),[q,r]=(0,c.useState)(!1),[s,t]=(0,c.useState)(!1),u=(0,c.useRef)(null);async function v(){try{let a=await fetch(`/api/blue/sessions/${h}`);if(404===a.status)return void n(!0);let b=await a.json();j(b.session)}catch{n(!0)}finally{l(!1)}}async function w(){if(!o.trim()||q||!i)return;let a=o.trim();p(""),r(!0),j(b=>b?{...b,turns:[...b.turns,{turn:b.turns.length+1,prompt:a,created_at:new Date().toISOString()}]}:b);try{let b=await fetch(`/api/blue/sessions/${h}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:a})}),c=await b.json();j(c.session)}catch{await v()}finally{r(!1)}}async function x(a){if(i){t(!0);try{let b=await fetch(`/api/blue/sessions/${h}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:a})}),c=await b.json();j(c.session)}finally{t(!1)}}}if((0,c.useEffect)(()=>{v()},[h]),(0,c.useEffect)(()=>{u.current?.scrollIntoView({behavior:"smooth"})},[i?.turns.length]),k)return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsx)("main",{className:"flex-1 flex items-center justify-center",children:(0,b.jsx)("span",{className:"text-slate-500 text-sm",children:"Loading…"})})]});if(m||!i)return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[(0,b.jsx)("p",{className:"text-slate-400",children:"Session not found."}),(0,b.jsx)(d.default,{href:"/blue/sessions",className:"text-indigo-400 text-sm hover:underline",children:"← Back to Sessions"})]})]});let y="active"===i.status;return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-28 pb-4",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center justify-between mb-4",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,b.jsx)(d.default,{href:"/blue",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"BLUE"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)(d.default,{href:"/blue/sessions",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"Sessions"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("span",{className:"text-slate-300 font-medium truncate max-w-xs",children:i.title})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[y&&(0,b.jsx)("button",{onClick:()=>x("completed"),disabled:s,className:"text-xs px-3 py-1 rounded-lg font-medium transition-all disabled:opacity-40",style:{background:"rgba(52,211,153,0.1)",color:"rgb(52,211,153)",border:"1px solid rgba(52,211,153,0.25)"},children:"Mark complete"}),y&&(0,b.jsx)("button",{onClick:()=>x("abandoned"),disabled:s,className:"text-xs px-3 py-1 rounded-lg font-medium transition-all disabled:opacity-40",style:{background:"rgba(148,163,184,0.08)",color:"rgba(148,163,184,0.6)",border:"1px solid rgba(148,163,184,0.15)"},children:"Abandon"}),!y&&(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-1 rounded-lg",style:{background:"rgba(148,163,184,0.08)",color:"rgba(148,163,184,0.6)",border:"1px solid rgba(148,163,184,0.15)"},children:i.status})]})]}),i.rec_id&&(0,b.jsx)("div",{className:"w-full mb-4",children:(0,b.jsx)(d.default,{href:`/blue/recommendations/${i.rec_id}`,className:"text-xs text-indigo-400 hover:text-indigo-300 transition-colors font-mono",children:"↗ linked recommendation"})}),(0,b.jsxs)("div",{className:"w-full flex flex-col gap-5 flex-1 overflow-y-auto pb-4",children:[0===i.turns.length&&(0,b.jsx)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-2",style:f,children:(0,b.jsx)("p",{className:"text-slate-400 text-sm",children:"No messages yet. Ask your first question below."})}),i.turns.map(a=>(0,b.jsx)(g,{turn:a},a.turn)),(0,b.jsx)("div",{ref:u})]}),y&&(0,b.jsx)("div",{className:"w-full mt-4 sticky bottom-4",children:(0,b.jsxs)("div",{className:"w-full rounded-xl p-3 flex items-end gap-3",style:{background:"rgba(2,6,23,0.85)",backdropFilter:"blur(16px)",border:"1px solid rgba(51,65,85,0.5)",boxShadow:"0 4px 24px rgba(0,0,0,0.4)"},children:[(0,b.jsx)("textarea",{rows:3,value:o,onChange:a=>p(a.target.value),onKeyDown:a=>{"Enter"!==a.key||a.shiftKey||(a.preventDefault(),w())},placeholder:"Ask about your codebase… (Enter to send, Shift+Enter for newline)",disabled:q,className:"flex-1 bg-transparent text-sm font-mono text-slate-200 outline-none resize-none placeholder:text-slate-600 disabled:opacity-50"}),(0,b.jsx)("button",{onClick:w,disabled:!o.trim()||q,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-40 flex-shrink-0 self-end",style:{background:"rgb(59,130,246)",color:"#fff"},children:q?(0,b.jsx)("span",{className:"animate-spin inline-block w-4 h-4 border-2 border-white border-t-transparent rounded-full"}):"Send"})]})})]}),(0,b.jsxs)("footer",{className:"text-center py-3 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.2"," · BLUE / Sessions"]})]})}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=app_blue_sessions_%5Bid%5D_page_tsx_0_~w1xj._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[40627,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(50944),f=a.i(47444);let g={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},h={active:"rgb(59,130,246)",completed:"rgb(52,211,153)",abandoned:"rgba(148,163,184,0.5)"};function i({session:a}){let c=a.turns[a.turns.length-1];return(0,b.jsxs)(d.default,{href:`/blue/sessions/${a.id}`,className:"w-full rounded-xl p-5 flex flex-col gap-2 transition-all hover:brightness-110 cursor-pointer",style:g,children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,b.jsx)("h3",{className:"text-sm font-semibold text-slate-200 leading-snug flex-1",children:a.title}),(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full flex-shrink-0",style:{background:h[a.status]+"18",color:h[a.status],border:`1px solid ${h[a.status]}35`},children:a.status})]}),c&&(0,b.jsx)("p",{className:"text-xs text-slate-500 leading-relaxed line-clamp-2",children:c.response??c.prompt}),(0,b.jsxs)("div",{className:"flex items-center gap-3 mt-1",children:[(0,b.jsxs)("span",{className:"text-xs text-slate-600",children:[a.turns.length," turn",1!==a.turns.length?"s":""]}),(0,b.jsx)("span",{className:"text-xs text-slate-700",children:"·"}),(0,b.jsx)("span",{className:"text-xs text-slate-600",children:new Date(a.updated_at).toLocaleDateString()}),a.rec_id&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"text-xs text-slate-700",children:"·"}),(0,b.jsx)("span",{className:"text-xs text-indigo-400 font-mono",children:"linked rec"})]})]})]})}a.s(["default",0,function(){let a=(0,e.useRouter)(),[h,j]=(0,c.useState)([]),[k,l]=(0,c.useState)(!0),[m,n]=(0,c.useState)(!1);async function o(){try{let a=await fetch("/api/blue/sessions"),b=await a.json();j(b.sessions??[])}catch{}finally{l(!1)}}async function p(){n(!0);try{let b=await fetch("/api/blue/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:"New session"})}),c=await b.json();a.push(`/blue/sessions/${c.session.id}`)}catch{n(!1)}}(0,c.useEffect)(()=>{o()},[]);let q=h.filter(a=>"active"===a.status),r=h.filter(a=>"completed"===a.status),s=h.filter(a=>"abandoned"===a.status);return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(f.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(d.default,{href:"/blue",className:"text-slate-500 hover:text-slate-300 text-sm transition-colors",children:"← BLUE"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("h1",{className:"text-xl font-semibold text-slate-100 tracking-tight",children:(0,b.jsx)("span",{className:"font-mono text-indigo-400",children:"Sessions"})})]}),(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:[h.length," total"]})]}),(0,b.jsx)("button",{onClick:p,disabled:m,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50",style:{background:"rgb(99,102,241)",color:"#fff"},children:m?"Creating…":"+ New session"})]}),k&&(0,b.jsx)("div",{className:"w-full text-center py-16 text-slate-500 text-sm",children:"Loading…"}),!k&&0===h.length&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:g,children:[(0,b.jsx)("span",{className:"text-4xl",children:"💬"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"No sessions yet"}),(0,b.jsx)("p",{className:"text-slate-500 text-sm",children:"Start a new session to discuss your codebase with the AI."})]}),!k&&h.length>0&&(0,b.jsxs)(b.Fragment,{children:[q.length>0&&(0,b.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-blue-400 uppercase tracking-widest",children:["Active (",q.length,")"]}),q.map(a=>(0,b.jsx)(i,{session:a},a.id))]}),r.length>0&&(0,b.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-emerald-400 uppercase tracking-widest",children:["Completed (",r.length,")"]}),r.map(a=>(0,b.jsx)(i,{session:a},a.id))]}),s.length>0&&(0,b.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-slate-600 uppercase tracking-widest",children:["Abandoned (",s.length,")"]}),s.map(a=>(0,b.jsx)(i,{session:a},a.id))]})]})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.
|
|
1
|
+
module.exports=[40627,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(50944),f=a.i(47444);let g={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},h={active:"rgb(59,130,246)",completed:"rgb(52,211,153)",abandoned:"rgba(148,163,184,0.5)"};function i({session:a}){let c=a.turns[a.turns.length-1];return(0,b.jsxs)(d.default,{href:`/blue/sessions/${a.id}`,className:"w-full rounded-xl p-5 flex flex-col gap-2 transition-all hover:brightness-110 cursor-pointer",style:g,children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,b.jsx)("h3",{className:"text-sm font-semibold text-slate-200 leading-snug flex-1",children:a.title}),(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full flex-shrink-0",style:{background:h[a.status]+"18",color:h[a.status],border:`1px solid ${h[a.status]}35`},children:a.status})]}),c&&(0,b.jsx)("p",{className:"text-xs text-slate-500 leading-relaxed line-clamp-2",children:c.response??c.prompt}),(0,b.jsxs)("div",{className:"flex items-center gap-3 mt-1",children:[(0,b.jsxs)("span",{className:"text-xs text-slate-600",children:[a.turns.length," turn",1!==a.turns.length?"s":""]}),(0,b.jsx)("span",{className:"text-xs text-slate-700",children:"·"}),(0,b.jsx)("span",{className:"text-xs text-slate-600",children:new Date(a.updated_at).toLocaleDateString()}),a.rec_id&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"text-xs text-slate-700",children:"·"}),(0,b.jsx)("span",{className:"text-xs text-indigo-400 font-mono",children:"linked rec"})]})]})]})}a.s(["default",0,function(){let a=(0,e.useRouter)(),[h,j]=(0,c.useState)([]),[k,l]=(0,c.useState)(!0),[m,n]=(0,c.useState)(!1);async function o(){try{let a=await fetch("/api/blue/sessions"),b=await a.json();j(b.sessions??[])}catch{}finally{l(!1)}}async function p(){n(!0);try{let b=await fetch("/api/blue/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:"New session"})}),c=await b.json();a.push(`/blue/sessions/${c.session.id}`)}catch{n(!1)}}(0,c.useEffect)(()=>{o()},[]);let q=h.filter(a=>"active"===a.status),r=h.filter(a=>"completed"===a.status),s=h.filter(a=>"abandoned"===a.status);return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(f.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(d.default,{href:"/blue",className:"text-slate-500 hover:text-slate-300 text-sm transition-colors",children:"← BLUE"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("h1",{className:"text-xl font-semibold text-slate-100 tracking-tight",children:(0,b.jsx)("span",{className:"font-mono text-indigo-400",children:"Sessions"})})]}),(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:[h.length," total"]})]}),(0,b.jsx)("button",{onClick:p,disabled:m,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50",style:{background:"rgb(99,102,241)",color:"#fff"},children:m?"Creating…":"+ New session"})]}),k&&(0,b.jsx)("div",{className:"w-full text-center py-16 text-slate-500 text-sm",children:"Loading…"}),!k&&0===h.length&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:g,children:[(0,b.jsx)("span",{className:"text-4xl",children:"💬"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"No sessions yet"}),(0,b.jsx)("p",{className:"text-slate-500 text-sm",children:"Start a new session to discuss your codebase with the AI."})]}),!k&&h.length>0&&(0,b.jsxs)(b.Fragment,{children:[q.length>0&&(0,b.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-blue-400 uppercase tracking-widest",children:["Active (",q.length,")"]}),q.map(a=>(0,b.jsx)(i,{session:a},a.id))]}),r.length>0&&(0,b.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-emerald-400 uppercase tracking-widest",children:["Completed (",r.length,")"]}),r.map(a=>(0,b.jsx)(i,{session:a},a.id))]}),s.length>0&&(0,b.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-slate-600 uppercase tracking-widest",children:["Abandoned (",s.length,")"]}),s.map(a=>(0,b.jsx)(i,{session:a},a.id))]})]})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.2"," · BLUE / Sessions"]})]})}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=app_blue_sessions_page_tsx_0kbuf.c._.js.map
|
package/.next/standalone/.next/server/chunks/ssr/app_green_cross-layer_page_tsx_0a80o-~._.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[97922,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444),f=a.i(42003),g=a.i(61127);let h="rgb(52,211,153)",i={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},j={critical:"rgb(248,113,113)",high:"rgb(251,191,36)",medium:"rgb(99,102,241)",low:h};function k({cap:a,drifted:c}){return(0,b.jsxs)("div",{className:"flex items-center justify-between py-2 border-b hover:bg-white/[0.015] transition-colors",style:{borderColor:"rgba(51,65,85,0.3)"},children:[(0,b.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[c&&(0,b.jsx)("span",{className:"text-xs text-red-400",children:"⚠"}),(0,b.jsx)(d.default,{href:`/amber/capabilities/${encodeURIComponent(a.capability.id)}`,className:"text-xs font-mono text-slate-400 hover:text-slate-200 transition-colors truncate",children:a.capability.id})]}),(0,b.jsx)("p",{className:"text-xs text-slate-500 truncate",children:a.capability.name})]}),(0,b.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0 ml-3",children:[(0,b.jsxs)("span",{className:"text-xs text-slate-600",children:[a.files.length,"f"]}),a.capability.criticality&&(0,b.jsx)("span",{className:"text-xs font-mono px-1.5 py-0.5 rounded",style:{color:j[a.capability.criticality]??h},children:a.capability.criticality})]})]})}a.s(["default",0,function(){let{tq:a,ready:j}=(0,f.useTargetPath)(),{wq:l}=(0,g.useActiveWorkspace)(a),[m,n]=(0,c.useState)(null),[o,p]=(0,c.useState)(!0),[q,r]=(0,c.useState)(!1);async function s(a,b=!1,c=""){try{let d=new URLSearchParams(a.replace(/^\?/,""));b&&d.set("regen","1"),new URLSearchParams(c.replace(/^&/,"")).forEach((a,b)=>d.set(b,a));let e=d.toString(),f=`/api/green/cross-layer${e?`?${e}`:""}`,g=await fetch(f,{method:b?"POST":"GET"}),h=await g.json();n(h.snapshot??null)}catch{}finally{p(!1),r(!1)}}async function t(){r(!0),await s(a,!0,l)}return(0,c.useEffect)(()=>{j&&s(a,!1,l)},[j,l]),(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(d.default,{href:"/green",className:"text-slate-500 hover:text-slate-300 text-sm transition-colors",children:"← GREEN"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("h1",{className:"text-xl font-semibold tracking-tight",style:{color:h},children:"Cross-Layer"})]}),m&&(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5 font-mono",children:[new Date(m.generated_at).toLocaleString()," · ",m.target]})]}),(0,b.jsx)("button",{onClick:t,disabled:q,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50",style:{background:h,color:"#020617"},children:q?"Rebuilding…":"Rebuild"})]}),o&&(0,b.jsx)("div",{className:"w-full text-center py-16 text-slate-500 text-sm",children:"Loading…"}),!o&&!m&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:i,children:[(0,b.jsx)("span",{className:"text-3xl font-mono",style:{color:h},children:"🔗"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"No cross-layer context yet"}),(0,b.jsxs)("p",{className:"text-slate-500 text-sm max-w-sm",children:["Run an AMBER scan first (requires ",(0,b.jsx)("span",{className:"font-mono text-amber-400",children:".amber/capabilities.md"}),"), then click Rebuild."]})]}),!o&&m&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"w-full grid grid-cols-3 gap-3",children:[{label:"Capabilities",value:m.capability_count,color:h},{label:"Files tracked",value:m.file_count},{label:"Drifted",value:m.drifted_capability_count,color:m.drifted_capability_count>0?"rgb(248,113,113)":h}].map(a=>(0,b.jsxs)("div",{className:"rounded-lg px-4 py-3 flex flex-col gap-0.5",style:{background:"rgba(15,23,42,0.5)",border:"1px solid rgba(51,65,85,0.4)"},children:[(0,b.jsx)("span",{className:"text-xs text-slate-500 uppercase tracking-widest",children:a.label}),(0,b.jsx)("span",{className:"text-xl font-semibold font-mono",style:{color:a.color??"rgb(226,232,240)"},children:a.value})]},a.label))}),m.drifted_capabilities.length>0&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:i,children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-red-400 uppercase tracking-widest",children:["Drifted Capabilities (",m.drifted_capabilities.length,")"]}),(0,b.jsx)("p",{className:"text-xs text-slate-500",children:"These capabilities have files with stale documentation or changed content since last scan."}),m.drifted_capabilities.map(a=>(0,b.jsx)(k,{cap:a,drifted:!0},a.capability.id))]}),(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-2",style:i,children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:["All Capabilities (",m.capabilities.length,")"]}),(0,b.jsxs)("div",{className:"flex flex-col",children:[m.capabilities.map(a=>(0,b.jsx)(k,{cap:a},a.capability.id)),0===m.capabilities.length&&(0,b.jsxs)("p",{className:"text-xs text-slate-500 py-4 text-center",children:["No capabilities found. Check that the target project has a valid ",(0,b.jsx)("span",{className:"font-mono",children:".amber/capabilities.md"}),"."]})]})]}),(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:i,children:[(0,b.jsx)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:"Layer Connections"}),(0,b.jsxs)("div",{className:"grid grid-cols-3 gap-4",children:[(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-xs font-mono text-blue-400",children:"BLUE"}),(0,b.jsx)("span",{className:"text-xs text-slate-500",children:"Import cycles, churn, TODOs"}),(0,b.jsx)(d.default,{href:"/blue",className:"text-xs text-blue-400 hover:underline",children:"→ View BLUE"})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-xs font-mono text-amber-400",children:"AMBER"}),(0,b.jsx)("span",{className:"text-xs text-slate-500",children:"Capability registry, coverage drift"}),(0,b.jsx)(d.default,{href:"/amber",className:"text-xs text-amber-400 hover:underline",children:"→ View AMBER"})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-xs font-mono",style:{color:h},children:"GREEN"}),(0,b.jsx)("span",{className:"text-xs text-slate-500",children:"AI insights, cross-layer queries"}),(0,b.jsx)(d.default,{href:"/green/insights",className:"text-xs hover:underline",style:{color:h},children:"→ View Insights"})]})]})]})]})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.
|
|
1
|
+
module.exports=[97922,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444),f=a.i(42003),g=a.i(61127);let h="rgb(52,211,153)",i={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},j={critical:"rgb(248,113,113)",high:"rgb(251,191,36)",medium:"rgb(99,102,241)",low:h};function k({cap:a,drifted:c}){return(0,b.jsxs)("div",{className:"flex items-center justify-between py-2 border-b hover:bg-white/[0.015] transition-colors",style:{borderColor:"rgba(51,65,85,0.3)"},children:[(0,b.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[c&&(0,b.jsx)("span",{className:"text-xs text-red-400",children:"⚠"}),(0,b.jsx)(d.default,{href:`/amber/capabilities/${encodeURIComponent(a.capability.id)}`,className:"text-xs font-mono text-slate-400 hover:text-slate-200 transition-colors truncate",children:a.capability.id})]}),(0,b.jsx)("p",{className:"text-xs text-slate-500 truncate",children:a.capability.name})]}),(0,b.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0 ml-3",children:[(0,b.jsxs)("span",{className:"text-xs text-slate-600",children:[a.files.length,"f"]}),a.capability.criticality&&(0,b.jsx)("span",{className:"text-xs font-mono px-1.5 py-0.5 rounded",style:{color:j[a.capability.criticality]??h},children:a.capability.criticality})]})]})}a.s(["default",0,function(){let{tq:a,ready:j}=(0,f.useTargetPath)(),{wq:l}=(0,g.useActiveWorkspace)(a),[m,n]=(0,c.useState)(null),[o,p]=(0,c.useState)(!0),[q,r]=(0,c.useState)(!1);async function s(a,b=!1,c=""){try{let d=new URLSearchParams(a.replace(/^\?/,""));b&&d.set("regen","1"),new URLSearchParams(c.replace(/^&/,"")).forEach((a,b)=>d.set(b,a));let e=d.toString(),f=`/api/green/cross-layer${e?`?${e}`:""}`,g=await fetch(f,{method:b?"POST":"GET"}),h=await g.json();n(h.snapshot??null)}catch{}finally{p(!1),r(!1)}}async function t(){r(!0),await s(a,!0,l)}return(0,c.useEffect)(()=>{j&&s(a,!1,l)},[j,l]),(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(d.default,{href:"/green",className:"text-slate-500 hover:text-slate-300 text-sm transition-colors",children:"← GREEN"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("h1",{className:"text-xl font-semibold tracking-tight",style:{color:h},children:"Cross-Layer"})]}),m&&(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5 font-mono",children:[new Date(m.generated_at).toLocaleString()," · ",m.target]})]}),(0,b.jsx)("button",{onClick:t,disabled:q,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50",style:{background:h,color:"#020617"},children:q?"Rebuilding…":"Rebuild"})]}),o&&(0,b.jsx)("div",{className:"w-full text-center py-16 text-slate-500 text-sm",children:"Loading…"}),!o&&!m&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:i,children:[(0,b.jsx)("span",{className:"text-3xl font-mono",style:{color:h},children:"🔗"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"No cross-layer context yet"}),(0,b.jsxs)("p",{className:"text-slate-500 text-sm max-w-sm",children:["Run an AMBER scan first (requires ",(0,b.jsx)("span",{className:"font-mono text-amber-400",children:".amber/capabilities.md"}),"), then click Rebuild."]})]}),!o&&m&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"w-full grid grid-cols-3 gap-3",children:[{label:"Capabilities",value:m.capability_count,color:h},{label:"Files tracked",value:m.file_count},{label:"Drifted",value:m.drifted_capability_count,color:m.drifted_capability_count>0?"rgb(248,113,113)":h}].map(a=>(0,b.jsxs)("div",{className:"rounded-lg px-4 py-3 flex flex-col gap-0.5",style:{background:"rgba(15,23,42,0.5)",border:"1px solid rgba(51,65,85,0.4)"},children:[(0,b.jsx)("span",{className:"text-xs text-slate-500 uppercase tracking-widest",children:a.label}),(0,b.jsx)("span",{className:"text-xl font-semibold font-mono",style:{color:a.color??"rgb(226,232,240)"},children:a.value})]},a.label))}),m.drifted_capabilities.length>0&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:i,children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-red-400 uppercase tracking-widest",children:["Drifted Capabilities (",m.drifted_capabilities.length,")"]}),(0,b.jsx)("p",{className:"text-xs text-slate-500",children:"These capabilities have files with stale documentation or changed content since last scan."}),m.drifted_capabilities.map(a=>(0,b.jsx)(k,{cap:a,drifted:!0},a.capability.id))]}),(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-2",style:i,children:[(0,b.jsxs)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:["All Capabilities (",m.capabilities.length,")"]}),(0,b.jsxs)("div",{className:"flex flex-col",children:[m.capabilities.map(a=>(0,b.jsx)(k,{cap:a},a.capability.id)),0===m.capabilities.length&&(0,b.jsxs)("p",{className:"text-xs text-slate-500 py-4 text-center",children:["No capabilities found. Check that the target project has a valid ",(0,b.jsx)("span",{className:"font-mono",children:".amber/capabilities.md"}),"."]})]})]}),(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:i,children:[(0,b.jsx)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:"Layer Connections"}),(0,b.jsxs)("div",{className:"grid grid-cols-3 gap-4",children:[(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-xs font-mono text-blue-400",children:"BLUE"}),(0,b.jsx)("span",{className:"text-xs text-slate-500",children:"Import cycles, churn, TODOs"}),(0,b.jsx)(d.default,{href:"/blue",className:"text-xs text-blue-400 hover:underline",children:"→ View BLUE"})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-xs font-mono text-amber-400",children:"AMBER"}),(0,b.jsx)("span",{className:"text-xs text-slate-500",children:"Capability registry, coverage drift"}),(0,b.jsx)(d.default,{href:"/amber",className:"text-xs text-amber-400 hover:underline",children:"→ View AMBER"})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-xs font-mono",style:{color:h},children:"GREEN"}),(0,b.jsx)("span",{className:"text-xs text-slate-500",children:"AI insights, cross-layer queries"}),(0,b.jsx)(d.default,{href:"/green/insights",className:"text-xs hover:underline",style:{color:h},children:"→ View Insights"})]})]})]})]})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.2"," · GREEN / Cross-Layer"]})]})}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=app_green_cross-layer_page_tsx_0a80o-~._.js.map
|
package/.next/standalone/.next/server/chunks/ssr/app_green_insights_[id]_page_tsx_0se6uk1._.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[99389,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444);let f="rgb(52,211,153)",g={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},h={pending:"rgb(148,163,184)",accepted:f,rejected:"rgb(248,113,113)"};function i({label:a,children:c}){return(0,b.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,b.jsx)("span",{className:"text-xs font-semibold text-slate-500 uppercase tracking-widest",children:a}),(0,b.jsx)("div",{className:"text-sm text-slate-300 leading-relaxed",children:c})]})}a.s(["default",0,function({params:a}){let{id:j}=(0,c.use)(a),k=decodeURIComponent(j),[l,m]=(0,c.useState)(null),[n,o]=(0,c.useState)(!0),[p,q]=(0,c.useState)(!1),[r,s]=(0,c.useState)(!1);async function t(a){if(l){s(!0);try{(await fetch(`/api/green/insights/${encodeURIComponent(k)}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:a})})).ok&&m(b=>b?{...b,status:a}:b)}finally{s(!1)}}}if((0,c.useEffect)(()=>{fetch(`/api/green/insights/${encodeURIComponent(k)}`).then(async a=>{404===a.status?q(!0):m((await a.json()).insight)}).catch(()=>q(!0)).finally(()=>o(!1))},[k]),n)return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsx)("main",{className:"flex-1 flex items-center justify-center",children:(0,b.jsx)("span",{className:"text-slate-500 text-sm",children:"Loading…"})})]});if(p||!l)return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[(0,b.jsx)("p",{className:"text-slate-400",children:"Insight not found."}),(0,b.jsx)(d.default,{href:"/green/insights",className:"text-sm hover:underline",style:{color:f},children:"← Insights"})]})]});let u=l.status??("auto"===l.kind?"pending":void 0);return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center gap-2 text-sm",children:[(0,b.jsx)(d.default,{href:"/green",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"GREEN"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)(d.default,{href:"/green/insights",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"Insights"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("span",{className:"text-slate-400 truncate max-w-xs",children:l.title})]}),(0,b.jsxs)("div",{className:"w-full flex flex-col gap-2",children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,b.jsx)("h1",{className:"text-xl font-semibold text-slate-100 flex-1",children:l.title}),(0,b.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:"rgba(52,211,153,0.1)",color:f,border:"1px solid rgba(52,211,153,0.25)"},children:l.kind}),u&&(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:(h[u]??"rgb(148,163,184)")+"15",color:h[u]??"rgb(148,163,184)",border:`1px solid ${h[u]??"rgb(148,163,184)"}28`},children:u})]})]}),l.generated_at&&(0,b.jsxs)("p",{className:"text-xs text-slate-600 font-mono",children:["Generated ",new Date(l.generated_at).toLocaleString()]})]}),(0,b.jsxs)("div",{className:"w-full rounded-xl p-6 flex flex-col gap-5",style:g,children:[(0,b.jsx)(i,{label:"Description",children:l.description}),(0,b.jsx)("div",{className:"border-t",style:{borderColor:"var(--border-default)"}}),(0,b.jsx)(i,{label:"Prompt Template",children:(0,b.jsx)("pre",{className:"text-xs font-mono text-slate-400 bg-slate-900/60 rounded-lg p-3 overflow-auto leading-relaxed whitespace-pre-wrap",children:l.prompt_template})}),l.supporting_evidence&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"border-t",style:{borderColor:"var(--border-default)"}}),l.supporting_evidence.capability_ids?.length?(0,b.jsx)(i,{label:"Supporting Capabilities",children:(0,b.jsx)("div",{className:"flex flex-wrap gap-1 mt-0.5",children:l.supporting_evidence.capability_ids.map(a=>(0,b.jsx)(d.default,{href:`/amber/capabilities/${encodeURIComponent(a)}`,className:"text-xs font-mono px-2 py-0.5 rounded hover:brightness-110 transition-all",style:{background:"rgba(52,211,153,0.08)",color:f,border:"1px solid rgba(52,211,153,0.2)"},children:a},a))})}):null,l.supporting_evidence.metric_pattern&&(0,b.jsx)(i,{label:"Metric Pattern",children:(0,b.jsx)("span",{className:"font-mono text-xs text-slate-400",children:l.supporting_evidence.metric_pattern})})]})]}),"auto"===l.kind&&(0,b.jsxs)("div",{className:"w-full flex flex-wrap gap-3",children:["accepted"!==u&&(0,b.jsx)("button",{onClick:()=>t("accepted"),disabled:r,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-40",style:{background:"rgba(52,211,153,0.12)",color:f,border:"1px solid rgba(52,211,153,0.3)"},children:"Accept"}),"rejected"!==u&&(0,b.jsx)("button",{onClick:()=>t("rejected"),disabled:r,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-40",style:{background:"rgba(248,113,113,0.1)",color:"rgb(248,113,113)",border:"1px solid rgba(248,113,113,0.25)"},children:"Reject"}),"pending"!==u&&(0,b.jsx)("button",{onClick:()=>t("pending"),disabled:r,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-40",style:{background:"rgba(148,163,184,0.08)",color:"rgb(148,163,184)",border:"1px solid rgba(148,163,184,0.2)"},children:"Reset"})]})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.
|
|
1
|
+
module.exports=[99389,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444);let f="rgb(52,211,153)",g={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},h={pending:"rgb(148,163,184)",accepted:f,rejected:"rgb(248,113,113)"};function i({label:a,children:c}){return(0,b.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,b.jsx)("span",{className:"text-xs font-semibold text-slate-500 uppercase tracking-widest",children:a}),(0,b.jsx)("div",{className:"text-sm text-slate-300 leading-relaxed",children:c})]})}a.s(["default",0,function({params:a}){let{id:j}=(0,c.use)(a),k=decodeURIComponent(j),[l,m]=(0,c.useState)(null),[n,o]=(0,c.useState)(!0),[p,q]=(0,c.useState)(!1),[r,s]=(0,c.useState)(!1);async function t(a){if(l){s(!0);try{(await fetch(`/api/green/insights/${encodeURIComponent(k)}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:a})})).ok&&m(b=>b?{...b,status:a}:b)}finally{s(!1)}}}if((0,c.useEffect)(()=>{fetch(`/api/green/insights/${encodeURIComponent(k)}`).then(async a=>{404===a.status?q(!0):m((await a.json()).insight)}).catch(()=>q(!0)).finally(()=>o(!1))},[k]),n)return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsx)("main",{className:"flex-1 flex items-center justify-center",children:(0,b.jsx)("span",{className:"text-slate-500 text-sm",children:"Loading…"})})]});if(p||!l)return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[(0,b.jsx)("p",{className:"text-slate-400",children:"Insight not found."}),(0,b.jsx)(d.default,{href:"/green/insights",className:"text-sm hover:underline",style:{color:f},children:"← Insights"})]})]});let u=l.status??("auto"===l.kind?"pending":void 0);return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center gap-2 text-sm",children:[(0,b.jsx)(d.default,{href:"/green",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"GREEN"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)(d.default,{href:"/green/insights",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"Insights"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("span",{className:"text-slate-400 truncate max-w-xs",children:l.title})]}),(0,b.jsxs)("div",{className:"w-full flex flex-col gap-2",children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,b.jsx)("h1",{className:"text-xl font-semibold text-slate-100 flex-1",children:l.title}),(0,b.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:"rgba(52,211,153,0.1)",color:f,border:"1px solid rgba(52,211,153,0.25)"},children:l.kind}),u&&(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:(h[u]??"rgb(148,163,184)")+"15",color:h[u]??"rgb(148,163,184)",border:`1px solid ${h[u]??"rgb(148,163,184)"}28`},children:u})]})]}),l.generated_at&&(0,b.jsxs)("p",{className:"text-xs text-slate-600 font-mono",children:["Generated ",new Date(l.generated_at).toLocaleString()]})]}),(0,b.jsxs)("div",{className:"w-full rounded-xl p-6 flex flex-col gap-5",style:g,children:[(0,b.jsx)(i,{label:"Description",children:l.description}),(0,b.jsx)("div",{className:"border-t",style:{borderColor:"var(--border-default)"}}),(0,b.jsx)(i,{label:"Prompt Template",children:(0,b.jsx)("pre",{className:"text-xs font-mono text-slate-400 bg-slate-900/60 rounded-lg p-3 overflow-auto leading-relaxed whitespace-pre-wrap",children:l.prompt_template})}),l.supporting_evidence&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"border-t",style:{borderColor:"var(--border-default)"}}),l.supporting_evidence.capability_ids?.length?(0,b.jsx)(i,{label:"Supporting Capabilities",children:(0,b.jsx)("div",{className:"flex flex-wrap gap-1 mt-0.5",children:l.supporting_evidence.capability_ids.map(a=>(0,b.jsx)(d.default,{href:`/amber/capabilities/${encodeURIComponent(a)}`,className:"text-xs font-mono px-2 py-0.5 rounded hover:brightness-110 transition-all",style:{background:"rgba(52,211,153,0.08)",color:f,border:"1px solid rgba(52,211,153,0.2)"},children:a},a))})}):null,l.supporting_evidence.metric_pattern&&(0,b.jsx)(i,{label:"Metric Pattern",children:(0,b.jsx)("span",{className:"font-mono text-xs text-slate-400",children:l.supporting_evidence.metric_pattern})})]})]}),"auto"===l.kind&&(0,b.jsxs)("div",{className:"w-full flex flex-wrap gap-3",children:["accepted"!==u&&(0,b.jsx)("button",{onClick:()=>t("accepted"),disabled:r,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-40",style:{background:"rgba(52,211,153,0.12)",color:f,border:"1px solid rgba(52,211,153,0.3)"},children:"Accept"}),"rejected"!==u&&(0,b.jsx)("button",{onClick:()=>t("rejected"),disabled:r,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-40",style:{background:"rgba(248,113,113,0.1)",color:"rgb(248,113,113)",border:"1px solid rgba(248,113,113,0.25)"},children:"Reject"}),"pending"!==u&&(0,b.jsx)("button",{onClick:()=>t("pending"),disabled:r,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-40",style:{background:"rgba(148,163,184,0.08)",color:"rgb(148,163,184)",border:"1px solid rgba(148,163,184,0.2)"},children:"Reset"})]})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.2"," · GREEN / Insights"]})]})}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=app_green_insights_%5Bid%5D_page_tsx_0se6uk1._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[92474,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444),f=a.i(42003),g=a.i(61127);let h="rgb(52,211,153)",i={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},j={stock:"rgb(99,102,241)",auto:h,custom:"rgb(251,191,36)"},k={pending:"rgb(148,163,184)",accepted:h,rejected:"rgb(248,113,113)"};function l({insight:a}){return(0,b.jsxs)(d.default,{href:`/green/insights/${encodeURIComponent(a.id)}`,className:"w-full rounded-xl p-5 flex flex-col gap-2 transition-all hover:brightness-110 cursor-pointer",style:i,children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,b.jsx)("h3",{className:"text-sm font-semibold text-slate-200 leading-snug flex-1",children:a.title}),(0,b.jsxs)("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:j[a.kind]+"18",color:j[a.kind],border:`1px solid ${j[a.kind]}30`},children:a.kind}),a.status&&"pending"!==a.status&&(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:(k[a.status]??"rgb(148,163,184)")+"15",color:k[a.status]??"rgb(148,163,184)",border:`1px solid ${k[a.status]??"rgb(148,163,184)"}28`},children:a.status})]})]}),(0,b.jsx)("p",{className:"text-xs text-slate-400 leading-relaxed line-clamp-2",children:a.description}),a.supporting_evidence?.capability_ids?.length?(0,b.jsx)("div",{className:"flex flex-wrap gap-1 mt-0.5",children:a.supporting_evidence.capability_ids.slice(0,3).map(a=>(0,b.jsx)("span",{className:"text-xs font-mono px-1.5 py-0.5 rounded",style:{background:"rgba(52,211,153,0.08)",color:h},children:a},a))}):null]})}a.s(["default",0,function(){let{tq:a,ready:j}=(0,f.useTargetPath)(),{wq:k}=(0,g.useActiveWorkspace)(a),[m,n]=(0,c.useState)([]),[o,p]=(0,c.useState)(null),[q,r]=(0,c.useState)(!0),[s,t]=(0,c.useState)(!1),[u,v]=(0,c.useState)(null),[w,x]=(0,c.useState)("all");async function y(a,b=""){try{let c=await fetch(`/api/green/insights${a}${b}`),d=await c.json();n(d.insights??[]),p(d.counts??null)}catch{}finally{r(!1)}}async function z(){t(!0),v(null);try{let b=await fetch(`/api/green/insights${a}${k}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({discover:!0})}),c=await b.json();if(!b.ok)throw Error(c.error??"Discovery failed");await y(a,k)}catch(a){v(a instanceof Error?a.message:String(a))}finally{t(!1)}}(0,c.useEffect)(()=>{j&&y(a,k)},[j,k]);let A="all"===w?m:m.filter(a=>a.kind===w);return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(d.default,{href:"/green",className:"text-slate-500 hover:text-slate-300 text-sm transition-colors",children:"← GREEN"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("h1",{className:"text-xl font-semibold tracking-tight",style:{color:h},children:"Insights"})]}),o&&(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:[o.stock," stock · ",o.auto," auto · ",o.custom," custom"]})]}),(0,b.jsx)("button",{onClick:z,disabled:s,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50 flex items-center gap-2",style:{background:h,color:"#020617"},children:s?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"animate-spin inline-block w-3 h-3 border border-current border-t-transparent rounded-full"}),"Discovering…"]}):"✦ Discover with AI"})]}),u&&(0,b.jsx)("div",{className:"w-full rounded-lg px-4 py-3 text-sm text-red-400 font-mono",style:{background:"rgba(239,68,68,0.08)",border:"1px solid rgba(239,68,68,0.2)"},children:u}),(0,b.jsx)("div",{className:"w-full flex gap-1",style:{borderBottom:"1px solid rgba(51,65,85,0.4)"},children:["all","stock","auto","custom"].map(a=>(0,b.jsxs)("button",{onClick:()=>x(a),className:"px-4 py-2 text-sm font-medium transition-colors capitalize",style:{color:w===a?h:"rgb(100,116,139)",borderBottom:`2px solid ${w===a?h:"transparent"}`,marginBottom:-1},children:[a,o&&"all"!==a&&` (${o[a]})`]},a))}),q&&(0,b.jsx)("div",{className:"w-full text-center py-16 text-slate-500 text-sm",children:"Loading…"}),!q&&0===A.length&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:i,children:[(0,b.jsx)("span",{className:"text-3xl font-mono",style:{color:h},children:"✦"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"auto"===w?"No AI insights yet":`No ${w} insights`}),"auto"===w&&(0,b.jsx)("p",{className:"text-slate-500 text-sm",children:'Click "Discover with AI" to generate insights from your codebase.'}),"custom"===w&&(0,b.jsx)(d.default,{href:"/green/queries",className:"text-sm hover:underline",style:{color:h},children:"→ Create a custom query"})]}),!q&&A.length>0&&(0,b.jsx)("div",{className:"w-full flex flex-col gap-3",children:A.map(a=>(0,b.jsx)(l,{insight:a},a.id))})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.
|
|
1
|
+
module.exports=[92474,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444),f=a.i(42003),g=a.i(61127);let h="rgb(52,211,153)",i={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},j={stock:"rgb(99,102,241)",auto:h,custom:"rgb(251,191,36)"},k={pending:"rgb(148,163,184)",accepted:h,rejected:"rgb(248,113,113)"};function l({insight:a}){return(0,b.jsxs)(d.default,{href:`/green/insights/${encodeURIComponent(a.id)}`,className:"w-full rounded-xl p-5 flex flex-col gap-2 transition-all hover:brightness-110 cursor-pointer",style:i,children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,b.jsx)("h3",{className:"text-sm font-semibold text-slate-200 leading-snug flex-1",children:a.title}),(0,b.jsxs)("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:j[a.kind]+"18",color:j[a.kind],border:`1px solid ${j[a.kind]}30`},children:a.kind}),a.status&&"pending"!==a.status&&(0,b.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:(k[a.status]??"rgb(148,163,184)")+"15",color:k[a.status]??"rgb(148,163,184)",border:`1px solid ${k[a.status]??"rgb(148,163,184)"}28`},children:a.status})]})]}),(0,b.jsx)("p",{className:"text-xs text-slate-400 leading-relaxed line-clamp-2",children:a.description}),a.supporting_evidence?.capability_ids?.length?(0,b.jsx)("div",{className:"flex flex-wrap gap-1 mt-0.5",children:a.supporting_evidence.capability_ids.slice(0,3).map(a=>(0,b.jsx)("span",{className:"text-xs font-mono px-1.5 py-0.5 rounded",style:{background:"rgba(52,211,153,0.08)",color:h},children:a},a))}):null]})}a.s(["default",0,function(){let{tq:a,ready:j}=(0,f.useTargetPath)(),{wq:k}=(0,g.useActiveWorkspace)(a),[m,n]=(0,c.useState)([]),[o,p]=(0,c.useState)(null),[q,r]=(0,c.useState)(!0),[s,t]=(0,c.useState)(!1),[u,v]=(0,c.useState)(null),[w,x]=(0,c.useState)("all");async function y(a,b=""){try{let c=await fetch(`/api/green/insights${a}${b}`),d=await c.json();n(d.insights??[]),p(d.counts??null)}catch{}finally{r(!1)}}async function z(){t(!0),v(null);try{let b=await fetch(`/api/green/insights${a}${k}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({discover:!0})}),c=await b.json();if(!b.ok)throw Error(c.error??"Discovery failed");await y(a,k)}catch(a){v(a instanceof Error?a.message:String(a))}finally{t(!1)}}(0,c.useEffect)(()=>{j&&y(a,k)},[j,k]);let A="all"===w?m:m.filter(a=>a.kind===w);return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(d.default,{href:"/green",className:"text-slate-500 hover:text-slate-300 text-sm transition-colors",children:"← GREEN"}),(0,b.jsx)("span",{className:"text-slate-700",children:"/"}),(0,b.jsx)("h1",{className:"text-xl font-semibold tracking-tight",style:{color:h},children:"Insights"})]}),o&&(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:[o.stock," stock · ",o.auto," auto · ",o.custom," custom"]})]}),(0,b.jsx)("button",{onClick:z,disabled:s,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50 flex items-center gap-2",style:{background:h,color:"#020617"},children:s?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"animate-spin inline-block w-3 h-3 border border-current border-t-transparent rounded-full"}),"Discovering…"]}):"✦ Discover with AI"})]}),u&&(0,b.jsx)("div",{className:"w-full rounded-lg px-4 py-3 text-sm text-red-400 font-mono",style:{background:"rgba(239,68,68,0.08)",border:"1px solid rgba(239,68,68,0.2)"},children:u}),(0,b.jsx)("div",{className:"w-full flex gap-1",style:{borderBottom:"1px solid rgba(51,65,85,0.4)"},children:["all","stock","auto","custom"].map(a=>(0,b.jsxs)("button",{onClick:()=>x(a),className:"px-4 py-2 text-sm font-medium transition-colors capitalize",style:{color:w===a?h:"rgb(100,116,139)",borderBottom:`2px solid ${w===a?h:"transparent"}`,marginBottom:-1},children:[a,o&&"all"!==a&&` (${o[a]})`]},a))}),q&&(0,b.jsx)("div",{className:"w-full text-center py-16 text-slate-500 text-sm",children:"Loading…"}),!q&&0===A.length&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:i,children:[(0,b.jsx)("span",{className:"text-3xl font-mono",style:{color:h},children:"✦"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"auto"===w?"No AI insights yet":`No ${w} insights`}),"auto"===w&&(0,b.jsx)("p",{className:"text-slate-500 text-sm",children:'Click "Discover with AI" to generate insights from your codebase.'}),"custom"===w&&(0,b.jsx)(d.default,{href:"/green/queries",className:"text-sm hover:underline",style:{color:h},children:"→ Create a custom query"})]}),!q&&A.length>0&&(0,b.jsx)("div",{className:"w-full flex flex-col gap-3",children:A.map(a=>(0,b.jsx)(l,{insight:a},a.id))})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.2"," · GREEN / Insights"]})]})}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=app_green_insights_page_tsx_04g8_lf._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[51569,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444),f=a.i(42003),g=a.i(61127);let h="rgb(52,211,153)",i={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},j={background:"rgba(15,23,42,0.5)",border:"1px solid rgba(51,65,85,0.4)"};function k({label:a,value:c,accent:d}){return(0,b.jsxs)("div",{className:"rounded-lg px-4 py-3 flex flex-col gap-0.5",style:j,children:[(0,b.jsx)("span",{className:"text-xs text-slate-500 uppercase tracking-widest",children:a}),(0,b.jsx)("span",{className:"text-xl font-semibold font-mono",style:{color:d??"rgb(226,232,240)"},children:c})]})}a.s(["default",0,function(){let{tq:a,ready:j}=(0,f.useTargetPath)(),{wq:l}=(0,g.useActiveWorkspace)(a),[m,n]=(0,c.useState)(null),[o,p]=(0,c.useState)(null),[q,r]=(0,c.useState)(!0);(0,c.useEffect)(()=>{j&&(fetch(`/api/green/insights${a}${l}`).then(a=>a.json()).then(({counts:a})=>n(a??null)).catch(()=>{}),fetch(`/api/green/cross-layer${a}${l}`).then(a=>a.json()).then(({snapshot:a})=>p(a??null)).catch(()=>{}).finally(()=>r(!1)))},[j,l]);let s=[{href:"/green/insights",label:"Insights",icon:"✦",desc:m?`${m.stock} stock \xb7 ${m.auto} auto \xb7 ${m.custom} custom`:"Stock + AI-generated + custom"},{href:"/green/cross-layer",label:"Cross-Layer",icon:"🔗",desc:o?`${o.capability_count} caps \xb7 ${o.drifted_capability_count} drifted`:"BLUE + AMBER + GREEN view"},{href:"/green/queries",label:"Custom Queries",icon:"🔍",desc:m?`${m.custom} saved`:"User-defined GREEN queries"}];return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full",children:[(0,b.jsxs)("h1",{className:"text-xl font-semibold text-slate-100 tracking-tight",children:[(0,b.jsx)("span",{className:"font-mono",style:{color:h},children:"GREEN"}),(0,b.jsx)("span",{className:"text-slate-400 text-sm font-normal ml-2",children:"Insights + Cross-Layer + Queries"})]}),o&&(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5 font-mono",children:["Cross-layer snapshot: ",new Date(o.generated_at).toLocaleString()]})]}),m&&(0,b.jsxs)("div",{className:"w-full grid grid-cols-3 gap-3",children:[(0,b.jsx)(k,{label:"Stock Queries",value:m.stock,accent:h}),(0,b.jsx)(k,{label:"Auto Insights",value:m.auto,accent:m.auto>0?h:"rgb(148,163,184)"}),(0,b.jsx)(k,{label:"Custom Queries",value:m.custom,accent:m.custom>0?h:"rgb(148,163,184)"})]}),o&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:i,children:[(0,b.jsx)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:"Cross-Layer Context"}),(0,b.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-xs text-slate-500 uppercase tracking-widest",children:"Capabilities"}),(0,b.jsx)("p",{className:"text-xl font-mono font-semibold",style:{color:h},children:o.capability_count})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-xs text-slate-500 uppercase tracking-widest",children:"Drifted"}),(0,b.jsx)("p",{className:"text-xl font-mono font-semibold",style:{color:o.drifted_capability_count>0?"rgb(248,113,113)":h},children:o.drifted_capability_count})]})]}),(0,b.jsx)(d.default,{href:"/green/cross-layer",className:"text-xs mt-1 hover:underline",style:{color:h},children:"→ View full cross-layer analysis"})]}),!q&&!o&&!m&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:i,children:[(0,b.jsx)("span",{className:"text-4xl",children:"✦"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"GREEN not yet initialized"}),(0,b.jsx)("p",{className:"text-slate-500 text-sm max-w-sm",children:"Run an AMBER scan first to build the cross-layer context. Then visit Insights to discover AI patterns."}),(0,b.jsx)("div",{className:"flex gap-3 mt-2",children:(0,b.jsx)(d.default,{href:"/amber",className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all",style:{background:"rgba(251,191,36,0.12)",color:"rgb(251,191,36)",border:"1px solid rgba(251,191,36,0.25)"},children:"→ Run AMBER scan"})})]}),(0,b.jsx)("div",{className:"w-full grid grid-cols-3 gap-3",children:s.map(({href:a,label:c,icon:e,desc:f})=>(0,b.jsxs)(d.default,{href:a,className:"rounded-xl p-5 flex flex-col gap-2 transition-all hover:brightness-110",style:{...i,borderColor:h+"30"},children:[(0,b.jsx)("span",{className:"text-xl font-mono",style:{color:h},children:e}),(0,b.jsx)("span",{className:"text-sm font-semibold",style:{color:h},children:c}),(0,b.jsx)("span",{className:"text-xs text-slate-500",children:f})]},a))})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.
|
|
1
|
+
module.exports=[51569,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(47444),f=a.i(42003),g=a.i(61127);let h="rgb(52,211,153)",i={background:"var(--surface-panel)",border:"1px solid var(--border-default)",boxShadow:"0 1px 2px rgba(15,23,42,.05),0 4px 16px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.04)"},j={background:"rgba(15,23,42,0.5)",border:"1px solid rgba(51,65,85,0.4)"};function k({label:a,value:c,accent:d}){return(0,b.jsxs)("div",{className:"rounded-lg px-4 py-3 flex flex-col gap-0.5",style:j,children:[(0,b.jsx)("span",{className:"text-xs text-slate-500 uppercase tracking-widest",children:a}),(0,b.jsx)("span",{className:"text-xl font-semibold font-mono",style:{color:d??"rgb(226,232,240)"},children:c})]})}a.s(["default",0,function(){let{tq:a,ready:j}=(0,f.useTargetPath)(),{wq:l}=(0,g.useActiveWorkspace)(a),[m,n]=(0,c.useState)(null),[o,p]=(0,c.useState)(null),[q,r]=(0,c.useState)(!0);(0,c.useEffect)(()=>{j&&(fetch(`/api/green/insights${a}${l}`).then(a=>a.json()).then(({counts:a})=>n(a??null)).catch(()=>{}),fetch(`/api/green/cross-layer${a}${l}`).then(a=>a.json()).then(({snapshot:a})=>p(a??null)).catch(()=>{}).finally(()=>r(!1)))},[j,l]);let s=[{href:"/green/insights",label:"Insights",icon:"✦",desc:m?`${m.stock} stock \xb7 ${m.auto} auto \xb7 ${m.custom} custom`:"Stock + AI-generated + custom"},{href:"/green/cross-layer",label:"Cross-Layer",icon:"🔗",desc:o?`${o.capability_count} caps \xb7 ${o.drifted_capability_count} drifted`:"BLUE + AMBER + GREEN view"},{href:"/green/queries",label:"Custom Queries",icon:"🔍",desc:m?`${m.custom} saved`:"User-defined GREEN queries"}];return(0,b.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,b.jsx)(e.PrismDock,{}),(0,b.jsxs)("main",{className:"flex-1 flex flex-col items-center px-6 pt-32 pb-16 gap-6",style:{maxWidth:720,margin:"0 auto",width:"100%"},children:[(0,b.jsxs)("div",{className:"w-full",children:[(0,b.jsxs)("h1",{className:"text-xl font-semibold text-slate-100 tracking-tight",children:[(0,b.jsx)("span",{className:"font-mono",style:{color:h},children:"GREEN"}),(0,b.jsx)("span",{className:"text-slate-400 text-sm font-normal ml-2",children:"Insights + Cross-Layer + Queries"})]}),o&&(0,b.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5 font-mono",children:["Cross-layer snapshot: ",new Date(o.generated_at).toLocaleString()]})]}),m&&(0,b.jsxs)("div",{className:"w-full grid grid-cols-3 gap-3",children:[(0,b.jsx)(k,{label:"Stock Queries",value:m.stock,accent:h}),(0,b.jsx)(k,{label:"Auto Insights",value:m.auto,accent:m.auto>0?h:"rgb(148,163,184)"}),(0,b.jsx)(k,{label:"Custom Queries",value:m.custom,accent:m.custom>0?h:"rgb(148,163,184)"})]}),o&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:i,children:[(0,b.jsx)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:"Cross-Layer Context"}),(0,b.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-xs text-slate-500 uppercase tracking-widest",children:"Capabilities"}),(0,b.jsx)("p",{className:"text-xl font-mono font-semibold",style:{color:h},children:o.capability_count})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-xs text-slate-500 uppercase tracking-widest",children:"Drifted"}),(0,b.jsx)("p",{className:"text-xl font-mono font-semibold",style:{color:o.drifted_capability_count>0?"rgb(248,113,113)":h},children:o.drifted_capability_count})]})]}),(0,b.jsx)(d.default,{href:"/green/cross-layer",className:"text-xs mt-1 hover:underline",style:{color:h},children:"→ View full cross-layer analysis"})]}),!q&&!o&&!m&&(0,b.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:i,children:[(0,b.jsx)("span",{className:"text-4xl",children:"✦"}),(0,b.jsx)("p",{className:"text-slate-300 font-medium",children:"GREEN not yet initialized"}),(0,b.jsx)("p",{className:"text-slate-500 text-sm max-w-sm",children:"Run an AMBER scan first to build the cross-layer context. Then visit Insights to discover AI patterns."}),(0,b.jsx)("div",{className:"flex gap-3 mt-2",children:(0,b.jsx)(d.default,{href:"/amber",className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all",style:{background:"rgba(251,191,36,0.12)",color:"rgb(251,191,36)",border:"1px solid rgba(251,191,36,0.25)"},children:"→ Run AMBER scan"})})]}),(0,b.jsx)("div",{className:"w-full grid grid-cols-3 gap-3",children:s.map(({href:a,label:c,icon:e,desc:f})=>(0,b.jsxs)(d.default,{href:a,className:"rounded-xl p-5 flex flex-col gap-2 transition-all hover:brightness-110",style:{...i,borderColor:h+"30"},children:[(0,b.jsx)("span",{className:"text-xl font-mono",style:{color:h},children:e}),(0,b.jsx)("span",{className:"text-sm font-semibold",style:{color:h},children:c}),(0,b.jsx)("span",{className:"text-xs text-slate-500",children:f})]},a))})]}),(0,b.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,b.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.7.2"," · GREEN"]})]})}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=app_green_page_tsx_10g2g6w._.js.map
|