prism0x2a 0.11.3 → 0.12.0
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/required-server-files.js +1 -1
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/capabilities/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/amber/coverage/[scanId]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/amber/coverage/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/amber/files/route.js.nft.json +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/explorer/outdated/route.js +1 -1
- package/.next/standalone/.next/server/app/api/blue/explorer/outdated/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/blue/explorer/route.js +2 -2
- package/.next/standalone/.next/server/app/api/blue/explorer/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/config/route.js +1 -1
- package/.next/standalone/.next/server/app/api/config/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/license/activate/route.js +1 -1
- package/.next/standalone/.next/server/app/api/license/activate/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/license/deactivate/route.js +1 -1
- package/.next/standalone/.next/server/app/api/license/deactivate/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/dashboard/page/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/blue/dashboard/page/build-manifest.json +16 -0
- package/.next/standalone/.next/server/app/blue/dashboard/page/next-font-manifest.json +10 -0
- package/.next/standalone/.next/server/app/blue/dashboard/page/react-loadable-manifest.json +1 -0
- package/.next/standalone/.next/server/app/blue/dashboard/page/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/blue/dashboard/page.js +16 -0
- package/.next/standalone/.next/server/app/blue/dashboard/page.js.map +5 -0
- package/.next/standalone/.next/server/app/blue/dashboard/page.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/blue/dashboard/page_client-reference-manifest.js +3 -0
- package/.next/standalone/.next/server/app/blue/explorer/ask/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/ask/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/ask.html +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/ask.rsc +4 -4
- package/.next/standalone/.next/server/app/blue/explorer/ask.segments/_full.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/blue/explorer/ask.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/ask.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/ask.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/ask.segments/blue/explorer/ask/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/ask.segments/blue/explorer/ask.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/ask.segments/blue/explorer.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/ask.segments/blue.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/explain/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/explain/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/explain.html +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/explain.rsc +4 -4
- package/.next/standalone/.next/server/app/blue/explorer/explain.segments/_full.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/blue/explorer/explain.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/explain.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/explain.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/explain.segments/blue/explorer/explain/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/explain.segments/blue/explorer/explain.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/explain.segments/blue/explorer.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/explain.segments/blue.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/file/[path]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/flow/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/flow/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/flow.html +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/flow.rsc +4 -4
- package/.next/standalone/.next/server/app/blue/explorer/flow.segments/_full.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/blue/explorer/flow.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/flow.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/flow.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/flow.segments/blue/explorer/flow/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/flow.segments/blue/explorer/flow.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/flow.segments/blue/explorer.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/flow.segments/blue.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/graph/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/graph/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/graph.html +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/graph.rsc +4 -4
- package/.next/standalone/.next/server/app/blue/explorer/graph.segments/_full.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/blue/explorer/graph.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/graph.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/graph.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/graph.segments/blue/explorer/graph/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/graph.segments/blue/explorer/graph.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/graph.segments/blue/explorer.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/graph.segments/blue.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/refactor/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/refactor/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/refactor.html +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/refactor.rsc +4 -4
- package/.next/standalone/.next/server/app/blue/explorer/refactor.segments/_full.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/blue/explorer/refactor.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/refactor.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/refactor.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/refactor.segments/blue/explorer/refactor/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/refactor.segments/blue/explorer/refactor.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/refactor.segments/blue/explorer.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/refactor.segments/blue.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/wire/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/wire/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/wire.html +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/wire.rsc +4 -4
- package/.next/standalone/.next/server/app/blue/explorer/wire.segments/_full.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/blue/explorer/wire.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/wire.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/wire.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/wire.segments/blue/explorer/wire/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/wire.segments/blue/explorer/wire.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/wire.segments/blue/explorer.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/wire.segments/blue.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/zones/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/zones/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/zones.html +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/zones.rsc +4 -4
- package/.next/standalone/.next/server/app/blue/explorer/zones.segments/_full.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/blue/explorer/zones.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/zones.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/zones.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/zones.segments/blue/explorer/zones/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/zones.segments/blue/explorer/zones.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer/zones.segments/blue/explorer.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer/zones.segments/blue.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer.html +2 -2
- package/.next/standalone/.next/server/app/blue/explorer.rsc +4 -4
- package/.next/standalone/.next/server/app/blue/explorer.segments/_full.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/blue/explorer.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/blue/explorer.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer.segments/blue/explorer/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer.segments/blue/explorer.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/blue/explorer.segments/blue.segment.rsc +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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/opengraph-image/route/middleware-manifest.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/pricing/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/pricing.html +2 -2
- package/.next/standalone/.next/server/app/pricing.rsc +2 -2
- package/.next/standalone/.next/server/app/pricing.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/pricing.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/pricing.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/pricing.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/pricing.segments/pricing/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/pricing.segments/pricing.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/settings/page.js +1 -1
- package/.next/standalone/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/sitemap.xml.body +2 -2
- package/.next/standalone/.next/server/app-paths-manifest.json +1 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0l5er61._.js → [root-of-the-server]__0d~9v.g._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0lfd1n5._.js → [root-of-the-server]__0iya3md._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0zz4pqi._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0q97-bq._.js → [root-of-the-server]__11rli_7._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__133de91._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_02.nmks.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/0_lp_modules_next_dist_server_route-modules_app-page_vendored_ssr_react-dom_0j2o5l5.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0-v0zkq._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__02fj~fq._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__07hbx_~._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0_e85m1._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0dfvt6t._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0f_01kv._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0hu0394._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0je_29r._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0kj~9t5._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0qj9bd9._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0rkr0vj._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0s.m1v5._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ufwt1o._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0v~k49l._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0wbl.9m._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0zc2vvu._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__104zs41._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__11g2zs0._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__11nem7j._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__12el_~a._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_01z7a3z._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_06ehp-1._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_0mop~3p._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_0svurmy._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_10229r-._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_10yjd82._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_12bwj-4._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_next-internal_server_app_blue_dashboard_page_actions_0eh7qft.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/app_blue_explorer_page_tsx_0xl_925._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/app_blue_explorer_wire_page_tsx_0d_vm6m._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/app_blue_explorer_zones_page_tsx_0bml286._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/components_0fj4wag._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/components_SettingsClient_tsx_0-gd9ob._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0b6~up7.js +4 -0
- package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
- package/.next/standalone/.next/server/middleware-manifest.json +1 -1
- 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 +2 -2
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/{static/chunks/06~81j91_htvp.js → standalone/.next/static/chunks/0.3bg4xkrjvo0.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0f59_jvh6fd4l.js → 0.j_bxggmji1k.js} +1 -1
- package/.next/{static/chunks/0ta.1a8te5kgz.js → standalone/.next/static/chunks/00cxha..pn8~6.js} +1 -1
- package/.next/{static/chunks/0dfua7i7rl295.js → standalone/.next/static/chunks/00dnkxoco_vlr.js} +1 -1
- package/.next/standalone/.next/static/chunks/033oufisr-tx..css +2 -0
- package/.next/standalone/.next/static/chunks/{16p436qs7o0rb.js → 06nj.hjzuqggj.js} +1 -1
- package/.next/standalone/.next/static/chunks/07-dx53lginm0.js +1 -0
- package/.next/{static/chunks/02p06f~i1bknz.js → standalone/.next/static/chunks/0_vcora9w67ub.js} +1 -1
- package/.next/standalone/.next/static/{static/chunks/0eo8ad~0y-h.f.js → chunks/0d.ufos622fi7.js} +1 -1
- package/.next/{static/chunks/145i6072lhi1v.js → standalone/.next/static/chunks/0ea_0cptipeu2.js} +1 -1
- package/.next/standalone/.next/static/chunks/0fm4dzf7b63w..js +1 -0
- package/.next/standalone/.next/static/chunks/{0~0s-op0iuxvy.js → 0h_8jfb.njzxi.js} +1 -1
- package/.next/{static/chunks/0gen29d04~p.7.js → standalone/.next/static/chunks/0j0z7r54d7m_e.js} +1 -1
- package/.next/{static/chunks/12j_ykroo3tih.js → standalone/.next/static/chunks/0j~k3-8clubiz.js} +1 -1
- package/.next/standalone/.next/static/chunks/0kldoaou0205d.js +1 -0
- package/.next/standalone/.next/static/chunks/{0-h3yz2l5bway.js → 0ljl5dz351n5d.js} +1 -1
- package/.next/standalone/.next/static/{static/chunks/07thanmp95eil.js → chunks/0n3_kkvqwqwm6.js} +1 -1
- package/.next/standalone/.next/static/chunks/0nn2kn-xz.a2e.js +1 -0
- package/.next/standalone/.next/static/chunks/0nymymmlvpr56.js +1 -0
- package/.next/standalone/.next/static/{static/chunks/04904c3_3watc.js → chunks/0uvhey9zkzy86.js} +1 -1
- package/.next/standalone/.next/static/{static/chunks/0pc74~c7s1qjt.js → chunks/0vzny0m3asx38.js} +1 -1
- package/.next/standalone/.next/static/{static/chunks/0iqf1ofr-ylk6.js → chunks/0w2i690bzmxw2.js} +1 -1
- package/.next/standalone/.next/static/chunks/0x-h0f6ko35nj.js +1 -0
- package/.next/standalone/.next/static/{static/chunks/0j0tiqo1_22k3.js → chunks/0y_rdkmrqw03e.js} +1 -1
- package/.next/standalone/.next/static/chunks/{113l1vi8ew6kx.js → 0zjr3ecd2fm2e.js} +1 -1
- package/.next/standalone/.next/static/chunks/0~3txj~b.biqj.js +1 -0
- package/.next/standalone/.next/static/{static/chunks/0kneimmac.hcw.js → chunks/128lh2io12_mg.js} +1 -1
- package/.next/{static/chunks/14dh8yt5tk871.js → standalone/.next/static/chunks/171m~3gqt1j1f.js} +1 -1
- package/.next/standalone/.next/static/chunks/17_sp-apw4ih7.js +1 -0
- package/.next/standalone/.next/static/chunks/17z8o_14u~.bb.js +1 -0
- package/.next/standalone/.next/static/static/chunks/{06~81j91_htvp.js → 0.3bg4xkrjvo0.js} +1 -1
- package/.next/{static/chunks/0f59_jvh6fd4l.js → standalone/.next/static/static/chunks/0.j_bxggmji1k.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/{0ta.1a8te5kgz.js → 00cxha..pn8~6.js} +1 -1
- package/.next/standalone/.next/static/{chunks/0dfua7i7rl295.js → static/chunks/00dnkxoco_vlr.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/033oufisr-tx..css +2 -0
- package/.next/standalone/.next/static/static/chunks/{16p436qs7o0rb.js → 06nj.hjzuqggj.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/07-dx53lginm0.js +1 -0
- package/.next/standalone/.next/static/{chunks/02p06f~i1bknz.js → static/chunks/0_vcora9w67ub.js} +1 -1
- package/.next/standalone/.next/static/{chunks/0eo8ad~0y-h.f.js → static/chunks/0d.ufos622fi7.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/{145i6072lhi1v.js → 0ea_0cptipeu2.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/0fm4dzf7b63w..js +1 -0
- package/.next/{static/chunks/0~0s-op0iuxvy.js → standalone/.next/static/static/chunks/0h_8jfb.njzxi.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/{0gen29d04~p.7.js → 0j0z7r54d7m_e.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/{12j_ykroo3tih.js → 0j~k3-8clubiz.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/0kldoaou0205d.js +1 -0
- package/.next/standalone/.next/static/static/chunks/{0-h3yz2l5bway.js → 0ljl5dz351n5d.js} +1 -1
- package/.next/standalone/.next/static/{chunks/07thanmp95eil.js → static/chunks/0n3_kkvqwqwm6.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/0nn2kn-xz.a2e.js +1 -0
- package/.next/standalone/.next/static/static/chunks/0nymymmlvpr56.js +1 -0
- package/.next/{static/chunks/04904c3_3watc.js → standalone/.next/static/static/chunks/0uvhey9zkzy86.js} +1 -1
- package/.next/{static/chunks/0pc74~c7s1qjt.js → standalone/.next/static/static/chunks/0vzny0m3asx38.js} +1 -1
- package/.next/standalone/.next/static/{chunks/0iqf1ofr-ylk6.js → static/chunks/0w2i690bzmxw2.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/0x-h0f6ko35nj.js +1 -0
- package/.next/standalone/.next/static/{chunks/0j0tiqo1_22k3.js → static/chunks/0y_rdkmrqw03e.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/{113l1vi8ew6kx.js → 0zjr3ecd2fm2e.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/0~3txj~b.biqj.js +1 -0
- package/.next/{static/chunks/0kneimmac.hcw.js → standalone/.next/static/static/chunks/128lh2io12_mg.js} +1 -1
- package/.next/standalone/.next/static/{chunks/14dh8yt5tk871.js → static/chunks/171m~3gqt1j1f.js} +1 -1
- package/.next/standalone/.next/static/static/chunks/17_sp-apw4ih7.js +1 -0
- package/.next/standalone/.next/static/static/chunks/17z8o_14u~.bb.js +1 -0
- package/.next/standalone/CHANGELOG.md +30 -0
- package/.next/standalone/app/api/blue/explorer/outdated/route.ts +5 -1
- package/.next/standalone/app/api/blue/explorer/route.ts +26 -2
- package/.next/standalone/app/blue/dashboard/page.tsx +7 -0
- package/.next/standalone/app/blue/explorer/flow/page.tsx +85 -5
- package/.next/standalone/app/blue/explorer/graph/page.tsx +83 -24
- package/.next/standalone/app/blue/explorer/page.tsx +134 -100
- package/.next/standalone/app/blue/explorer/wire/page.tsx +79 -5
- package/.next/standalone/app/blue/explorer/zones/page.tsx +79 -5
- package/.next/standalone/bin/prism.js +91 -0
- package/.next/standalone/components/blue-explorer/DashboardClient.tsx +360 -0
- package/.next/standalone/components/blue-explorer/DemoBanner.tsx +43 -0
- package/.next/standalone/components/blue-explorer/ExplorerGate.tsx +5 -16
- package/.next/standalone/components/blue-explorer/ExplorerNav.tsx +12 -1
- package/.next/standalone/components/blue-explorer/UpgradeBlur.tsx +85 -0
- package/.next/standalone/components/blue-explorer/ViewModeToggle.tsx +32 -0
- package/.next/standalone/lib/prism/blue/explorer/useExplorerBlueprint.ts +10 -6
- package/.next/standalone/lib/prism/blue/explorer/useViewMode.ts +25 -0
- package/.next/standalone/package.json +1 -1
- package/.next/standalone/public/demo/blueprint.json +2902 -0
- package/.next/standalone/public/public/demo/blueprint.json +2902 -0
- package/.next/standalone/scripts/generate-demo-blueprint.js +450 -0
- package/.next/standalone/server.js +1 -1
- package/.next/standalone/tsconfig.tsbuildinfo +1 -1
- package/.next/{standalone/.next/static/chunks/06~81j91_htvp.js → static/chunks/0.3bg4xkrjvo0.js} +1 -1
- package/.next/{standalone/.next/static/static/chunks/0f59_jvh6fd4l.js → static/chunks/0.j_bxggmji1k.js} +1 -1
- package/.next/{standalone/.next/static/chunks/0ta.1a8te5kgz.js → static/chunks/00cxha..pn8~6.js} +1 -1
- package/.next/{standalone/.next/static/static/chunks/0dfua7i7rl295.js → static/chunks/00dnkxoco_vlr.js} +1 -1
- package/.next/static/chunks/033oufisr-tx..css +2 -0
- package/.next/static/chunks/{16p436qs7o0rb.js → 06nj.hjzuqggj.js} +1 -1
- package/.next/static/chunks/07-dx53lginm0.js +1 -0
- package/.next/{standalone/.next/static/static/chunks/02p06f~i1bknz.js → static/chunks/0_vcora9w67ub.js} +1 -1
- package/.next/static/chunks/{0eo8ad~0y-h.f.js → 0d.ufos622fi7.js} +1 -1
- package/.next/{standalone/.next/static/chunks/145i6072lhi1v.js → static/chunks/0ea_0cptipeu2.js} +1 -1
- package/.next/static/chunks/0fm4dzf7b63w..js +1 -0
- package/.next/{standalone/.next/static/static/chunks/0~0s-op0iuxvy.js → static/chunks/0h_8jfb.njzxi.js} +1 -1
- package/.next/{standalone/.next/static/chunks/0gen29d04~p.7.js → static/chunks/0j0z7r54d7m_e.js} +1 -1
- package/.next/{standalone/.next/static/chunks/12j_ykroo3tih.js → static/chunks/0j~k3-8clubiz.js} +1 -1
- package/.next/static/chunks/0kldoaou0205d.js +1 -0
- package/.next/static/chunks/{0-h3yz2l5bway.js → 0ljl5dz351n5d.js} +1 -1
- package/.next/static/chunks/{07thanmp95eil.js → 0n3_kkvqwqwm6.js} +1 -1
- package/.next/static/chunks/0nn2kn-xz.a2e.js +1 -0
- package/.next/static/chunks/0nymymmlvpr56.js +1 -0
- package/.next/{standalone/.next/static/chunks/04904c3_3watc.js → static/chunks/0uvhey9zkzy86.js} +1 -1
- package/.next/{standalone/.next/static/chunks/0pc74~c7s1qjt.js → static/chunks/0vzny0m3asx38.js} +1 -1
- package/.next/static/chunks/{0iqf1ofr-ylk6.js → 0w2i690bzmxw2.js} +1 -1
- package/.next/static/chunks/0x-h0f6ko35nj.js +1 -0
- package/.next/static/chunks/{0j0tiqo1_22k3.js → 0y_rdkmrqw03e.js} +1 -1
- package/.next/static/chunks/{113l1vi8ew6kx.js → 0zjr3ecd2fm2e.js} +1 -1
- package/.next/static/chunks/0~3txj~b.biqj.js +1 -0
- package/.next/{standalone/.next/static/chunks/0kneimmac.hcw.js → static/chunks/128lh2io12_mg.js} +1 -1
- package/.next/{standalone/.next/static/static/chunks/14dh8yt5tk871.js → static/chunks/171m~3gqt1j1f.js} +1 -1
- package/.next/static/chunks/17_sp-apw4ih7.js +1 -0
- package/.next/static/chunks/17z8o_14u~.bb.js +1 -0
- package/CHANGELOG.md +30 -0
- package/bin/prism.js +91 -0
- package/package.json +1 -1
- package/public/demo/blueprint.json +2902 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0dyk0qn._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0hob61c._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0oo54zk._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0.ka4xf._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_07.lcck._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0coo8pw._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0h6lz_4._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0ip-ny~._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0uh4anr._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0zp-~jg._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_12xcgz-._.js +0 -3
- package/.next/standalone/.next/static/chunks/088~a4503djtf.js +0 -1
- package/.next/standalone/.next/static/chunks/08cugc99x6as4.js +0 -1
- package/.next/standalone/.next/static/chunks/0_80tkutlvwij.js +0 -1
- package/.next/standalone/.next/static/chunks/0iugobs2v97z1.js +0 -1
- package/.next/standalone/.next/static/chunks/0jkwpkx9wn6uh.js +0 -1
- package/.next/standalone/.next/static/chunks/0p.nolrk8ntle.css +0 -2
- package/.next/standalone/.next/static/chunks/0usb21qmle4jd.js +0 -1
- package/.next/standalone/.next/static/chunks/0z67pbgnjs45..js +0 -1
- package/.next/standalone/.next/static/chunks/11rjbrpl3fah0.js +0 -1
- package/.next/standalone/.next/static/static/chunks/088~a4503djtf.js +0 -1
- package/.next/standalone/.next/static/static/chunks/08cugc99x6as4.js +0 -1
- package/.next/standalone/.next/static/static/chunks/0_80tkutlvwij.js +0 -1
- package/.next/standalone/.next/static/static/chunks/0iugobs2v97z1.js +0 -1
- package/.next/standalone/.next/static/static/chunks/0jkwpkx9wn6uh.js +0 -1
- package/.next/standalone/.next/static/static/chunks/0p.nolrk8ntle.css +0 -2
- package/.next/standalone/.next/static/static/chunks/0usb21qmle4jd.js +0 -1
- package/.next/standalone/.next/static/static/chunks/0z67pbgnjs45..js +0 -1
- package/.next/standalone/.next/static/static/chunks/11rjbrpl3fah0.js +0 -1
- package/.next/static/chunks/088~a4503djtf.js +0 -1
- package/.next/static/chunks/08cugc99x6as4.js +0 -1
- package/.next/static/chunks/0_80tkutlvwij.js +0 -1
- package/.next/static/chunks/0iugobs2v97z1.js +0 -1
- package/.next/static/chunks/0jkwpkx9wn6uh.js +0 -1
- package/.next/static/chunks/0p.nolrk8ntle.css +0 -2
- package/.next/static/chunks/0usb21qmle4jd.js +0 -1
- package/.next/static/chunks/0z67pbgnjs45..js +0 -1
- package/.next/static/chunks/11rjbrpl3fah0.js +0 -1
- /package/.next/standalone/.next/static/{4B0PSb_4-FAhQuHa-jI2u → pAZQ9WAfgX65XBLSCQ2yC}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{4B0PSb_4-FAhQuHa-jI2u → pAZQ9WAfgX65XBLSCQ2yC}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{4B0PSb_4-FAhQuHa-jI2u → pAZQ9WAfgX65XBLSCQ2yC}/_ssgManifest.js +0 -0
- /package/.next/standalone/.next/static/static/{4B0PSb_4-FAhQuHa-jI2u → pAZQ9WAfgX65XBLSCQ2yC}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/static/{4B0PSb_4-FAhQuHa-jI2u → pAZQ9WAfgX65XBLSCQ2yC}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/static/{4B0PSb_4-FAhQuHa-jI2u → pAZQ9WAfgX65XBLSCQ2yC}/_ssgManifest.js +0 -0
- /package/.next/static/{4B0PSb_4-FAhQuHa-jI2u → pAZQ9WAfgX65XBLSCQ2yC}/_buildManifest.js +0 -0
- /package/.next/static/{4B0PSb_4-FAhQuHa-jI2u → pAZQ9WAfgX65XBLSCQ2yC}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{4B0PSb_4-FAhQuHa-jI2u → pAZQ9WAfgX65XBLSCQ2yC}/_ssgManifest.js +0 -0
package/.next/{static/chunks/14dh8yt5tk871.js → standalone/.next/static/chunks/171m~3gqt1j1f.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return i},searchParamsToUrlQuery:function(){return l},urlQueryToSearchParams:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function l(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function s(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,s(e));else t.set(r,s(n));return t}function i(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return m},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return j},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return h},ST:function(){return g},WEB_VITALS:function(){return l},execOnce:function(){return s},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return i},isResSent:function(){return p},loadGetInitialProps:function(){return x},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return N}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let l=["CLS","FCP","FID","INP","LCP","TTFB"];function s(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>o.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function x(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await x(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&p(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let h="u">typeof performance,g=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class j extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function N(e){return JSON.stringify({message:e.message,stack:e.stack})}},33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return c},urlObjectKeys:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let l=e.r(90809)._(e.r(98183)),s=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",o=e.hash||"",i=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),i&&"object"==typeof i&&(i=String(l.urlQueryToSearchParams(i)));let u=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||s.test(n))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),o&&"#"!==o[0]&&(o="#"+o),u&&"?"!==u[0]&&(u="?"+u),a=a.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${a}${u}${o}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return o(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(71645);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=l(e,n)),t&&(a.current=l(t,n))},[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return l}});let n=e.r(18967),a=e.r(52817);function l(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return m},useLinkStatus:function(){return y}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let l=e.r(90809),s=e.r(43476),o=l._(e.r(71645)),i=e.r(95057),c=e.r(8372),u=e.r(18581),d=e.r(18967),p=e.r(5550);e.r(33525);let f=e.r(88540),x=e.r(91949),h=e.r(73668),g=e.r(9396);function m(t){var r,n;let a,l,m,[y,j]=(0,o.useOptimistic)(x.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:N,as:_,children:k,prefetch:w=null,passHref:E,replace:S,shallow:P,scroll:C,onClick:O,onMouseEnter:R,onTouchStart:T,legacyBehavior:A=!1,onNavigate:L,transitionTypes:M,ref:I,unstable_dynamicOnHover:$,...U}=t;a=k,A&&("string"==typeof a||"number"==typeof a)&&(a=(0,s.jsx)("a",{children:a}));let B=o.default.useContext(c.AppRouterContext),D=!1!==w,F=!1!==w?null===(n=w)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,K="string"==typeof(r=_||N)?r:(0,i.formatUrl)(r);if(A){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});l=o.default.Children.only(a)}let z=A?l&&"object"==typeof l&&l.ref:I,W=o.default.useCallback(e=>(null!==B&&(v.current=(0,x.mountLinkInstance)(e,K,B,F,D,j)),()=>{v.current&&((0,x.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,x.unmountPrefetchableInstance)(e)}),[D,K,B,F,j]),V={ref:(0,u.useMergedRef)(W,z),onClick(t){A||"function"!=typeof O||O(t),A&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(t),!B||t.defaultPrevented||function(t,r,n,a,l,s,i){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);o.default.startTransition(()=>{d(r,a?"replace":"push",!1===l?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,i)})}}(t,K,v,S,C,L,M)},onMouseEnter(e){A||"function"!=typeof R||R(e),A&&l.props&&"function"==typeof l.props.onMouseEnter&&l.props.onMouseEnter(e),B&&D&&(0,x.onNavigationIntent)(e.currentTarget,!0===$)},onTouchStart:function(e){A||"function"!=typeof T||T(e),A&&l.props&&"function"==typeof l.props.onTouchStart&&l.props.onTouchStart(e),B&&D&&(0,x.onNavigationIntent)(e.currentTarget,!0===$)}};return(0,d.isAbsoluteUrl)(K)?V.href=K:A&&!E&&("a"!==l.type||"href"in l.props)||(V.href=(0,p.addBasePath)(K)),m=A?o.default.cloneElement(l,V):(0,s.jsx)("a",{...U,...V,children:a}),(0,s.jsx)(b.Provider,{value:y,children:m})}e.r(84508);let b=(0,o.createContext)(x.IDLE_LINK_STATUS),y=()=>(0,o.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18566,(e,t,r)=>{t.exports=e.r(76562)},25010,e=>{"use strict";var t=e.i(71645);e.s(["useTargetPath",0,function(){let[e,r]=(0,t.useState)(""),[n,a]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{fetch("/api/config").then(e=>e.json()).then(e=>{let t=e.targetPath??"";r(t?`?target=${encodeURIComponent(t)}`:"")}).catch(()=>{}).finally(()=>a(!0))},[]),{tq:e,ready:n}}])},50667,36528,60888,13121,e=>{"use strict";var t=e.i(43476),r=e.i(22016),n=e.i(18566),a=e.i(71645);let l={monorepo:{tier:"pro",label:"Monorepo support"},aggregate_scan:{tier:"pro",label:"Aggregate workspace scan"},cross_workspace_insights:{tier:"pro",label:"Cross-workspace insights"},llm_insights:{tier:"pro",label:"AI-powered insights"},custom_queries:{tier:"pro",label:"Custom GREEN queries"},cross_layer_context:{tier:"pro",label:"Cross-layer context"},auto_insights:{tier:"pro",label:"Auto-generated insights"},team_sync:{tier:"team",label:"Team sync"},ci_integration:{tier:"team",label:"CI integration"},blueprint_explorer:{tier:"pro",label:"Blueprint Explorer"},forge_unlimited:{tier:"forge-pro",label:"forge0x2B unlimited"},forge_unlimited_generation:{tier:"forge-pro",label:"forge0x2B unlimited generation"}};function s(e){return"free"!==l[e].tier}e.s(["FREE_TIER_LOC_LIMIT",0,5e4,"showProBadge",0,s],36528);let o=()=>(0,t.jsx)("span",{className:"text-[10px] font-bold px-1 py-0.5 rounded leading-none",style:{background:"rgba(251,191,36,0.15)",color:"rgb(251,191,36)",border:"1px solid rgba(251,191,36,0.3)"},children:"PRO"});function i({monorepo:e,activeWorkspace:r,onSelect:n,isPro:l=!1}){let[c,u]=(0,a.useState)(!1),d=(0,a.useRef)(null);if((0,a.useEffect)(()=>{function e(e){d.current&&!d.current.contains(e.target)&&u(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),!e||"single"===e.type||0===e.packages.length)return null;let p=s("monorepo")&&!l;return(0,t.jsxs)("div",{className:"relative",ref:d,children:[(0,t.jsxs)("button",{onClick:()=>u(e=>!e),className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium transition-colors",style:{background:c?"rgba(51,65,85,0.5)":"rgba(51,65,85,0.25)",border:"1px solid rgba(51,65,85,0.5)",color:"rgb(148,163,184)"},title:`Monorepo: ${e.type}`,children:[(0,t.jsx)("span",{className:"font-mono",style:{color:"rgb(52,211,153)",fontSize:10},children:e.type.toUpperCase()}),(0,t.jsx)("span",{className:"max-w-[80px] truncate",children:r??"all workspaces"}),p&&(0,t.jsx)(o,{}),(0,t.jsx)("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"currentColor",className:"opacity-60",children:(0,t.jsx)("path",{d:"M1 2.5l3 3 3-3",stroke:"currentColor",strokeWidth:"1.2",fill:"none",strokeLinecap:"round"})})]}),c&&(0,t.jsxs)("div",{className:"absolute top-full mt-1 right-0 z-50 rounded-xl overflow-hidden py-1 min-w-[180px]",style:{background:"rgba(15,23,42,0.95)",backdropFilter:"blur(20px)",border:"1px solid rgba(51,65,85,0.5)",boxShadow:"0 4px 24px rgba(0,0,0,0.4)"},children:[(0,t.jsxs)("button",{className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 transition-colors hover:bg-white/5",style:{color:null===r?"rgb(52,211,153)":"rgb(148,163,184)"},onClick:()=>{n(null),u(!1)},children:[(0,t.jsx)("span",{className:"font-mono text-[10px] opacity-60",children:"∑"}),"All workspaces",null===r&&(0,t.jsx)("span",{className:"ml-auto text-[10px] opacity-60",children:"✓"})]}),(0,t.jsx)("div",{className:"my-1",style:{borderTop:"1px solid rgba(51,65,85,0.3)"}}),e.packages.map(e=>(0,t.jsxs)("button",{className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 transition-colors hover:bg-white/5",style:{color:r===e.name?"rgb(52,211,153)":"rgb(148,163,184)"},onClick:()=>{n(e.name),u(!1)},children:[(0,t.jsx)("span",{className:"font-mono text-[10px] opacity-50",children:"pkg"}),(0,t.jsx)("span",{className:"flex-1 truncate",children:e.name}),void 0!==e.loc&&(0,t.jsxs)("span",{className:"text-[10px] font-mono opacity-40",children:[(e.loc/1e3).toFixed(1),"k"]}),r===e.name&&(0,t.jsx)("span",{className:"text-[10px] opacity-60",children:"✓"})]},e.path))]})]})}var c=e.i(25010);function u(e){let[t,r]=(0,a.useState)(null),[n,l]=(0,a.useState)(null),[s,o]=(0,a.useState)(!1);(0,a.useEffect)(()=>{Promise.all([fetch(`/api/monorepo${e}`).then(e=>e.json()).catch(()=>({monorepo:null})),fetch(`/api/monorepo/active${e}`).then(e=>e.json()).catch(()=>({workspace:null}))]).then(([e,t])=>{r(e.monorepo??null),l(t.workspace??null)}).finally(()=>o(!0))},[e]);let i=(0,a.useCallback)(async t=>{l(t),await fetch(`/api/monorepo/active${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({workspace:t})}).catch(()=>{})},[e]),c=n?`&workspace=${encodeURIComponent(n)}`:"";return{monorepo:t,activeWorkspace:n,setActiveWorkspace:i,ready:s,wq:c}}e.s(["useActiveWorkspace",0,u],60888);let d={tier:"free",issuedAt:null,expiresAt:null,userId:null,features:[],isValid:!1,isExpired:!1,licenseKey:null,instanceId:null,productName:null,subscriptionStatus:null,validatedAt:null,revalidationDue:null,gracePeriodEnd:null,activationLimit:null,activationUsage:null,cacheStatus:"no-cache",daysSinceValidation:null};function p(e){let[t,r]=(0,a.useState)(null),[n,l]=(0,a.useState)(!1),[s,o]=(0,a.useState)(0);(0,a.useEffect)(()=>{fetch(`/api/license${e}`).then(e=>e.json()).then(e=>r(e)).catch(()=>r(d)).finally(()=>l(!0))},[e,s]);let i=(0,a.useCallback)(()=>o(e=>e+1),[]),c=!!t&&"free"!==t.tier&&"forge-pro"!==t.tier&&t.isValid&&!t.isExpired&&"expired"!==t.cacheStatus;return{license:t,ready:n,refresh:i,isPro:c}}e.s(["useLicense",0,p],13121);let f=[{href:"/blue",label:"BLUE",color:"rgb(59,130,246)"},{href:"/amber",label:"AMBER",color:"rgb(251,191,36)"},{href:"/green",label:"GREEN",color:"rgb(52,211,153)"},{href:"/pricing",label:"Plans",color:"rgb(167,139,250)"},{href:"/settings",label:"⚙",color:void 0}];e.s(["PrismDock",0,function(){let e=(0,n.usePathname)(),{tq:a}=(0,c.useTargetPath)(),{monorepo:l,activeWorkspace:s,setActiveWorkspace:o}=u(a),{isPro:d}=p(a),x=d?[...f.slice(0,1),{href:"/blue/explorer",label:"Explorer",color:"rgb(56,189,248)"},...f.slice(1)]:f;return(0,t.jsxs)("div",{className:"fixed top-3 left-1/2 -translate-x-1/2 z-50 flex items-center gap-2 px-4 py-2 rounded-full",style:{background:"linear-gradient(to bottom, rgba(15,23,42,0.4), rgba(2,6,23,0.5))",backdropFilter:"blur(24px) saturate(1.5)",border:"1px solid rgba(51,65,85,0.3)",boxShadow:"0 1px 2px rgba(15,23,42,.06),0 4px 12px rgba(15,23,42,.12),0 16px 40px rgba(15,23,42,.18),inset 0 1px 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(15,23,42,.4)"},children:[(0,t.jsxs)(r.default,{href:"/",className:"flex items-center gap-1.5 group",children:[(0,t.jsx)("span",{className:"text-sky-400 text-lg select-none",children:"✦"}),(0,t.jsxs)("span",{className:"text-slate-200 text-sm font-semibold tracking-tight group-hover:text-white transition-colors",children:["prism",(0,t.jsx)("span",{className:"font-mono text-sky-500",children:"0x2A"})]})]}),x.map(({href:n,label:a,color:l})=>{let s=e===n||"/blue"!==n&&e.startsWith(n);return(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-px h-4",style:{background:"rgba(51,65,85,0.6)"}}),(0,t.jsx)(r.default,{href:n,className:"text-sm font-medium transition-colors px-1",style:{color:s?l??"rgb(226,232,240)":"rgba(148,163,184,0.8)"},children:a})]},n)}),l&&"single"!==l.type&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-px h-4",style:{background:"rgba(51,65,85,0.6)"}}),(0,t.jsx)(i,{monorepo:l,activeWorkspace:s,onSelect:o,isPro:d})]})]})}],50667)},84835,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(22016),a=e.i(50667);let l="rgb(251,191,36)",s={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)"},o={content_changed_no_doc_update:"Content changed, doc stale",header_added:"Header added",header_removed:"Header removed",capabilities_changed:"Capabilities changed"};e.s(["default",0,function(){let[e,i]=(0,r.useState)([]),[c,u]=(0,r.useState)(null),[d,p]=(0,r.useState)(null),[f,x]=(0,r.useState)(!0),[h,g]=(0,r.useState)(!1);(0,r.useEffect)(()=>{fetch("/api/amber/coverage").then(e=>e.json()).then(({scans:e})=>{i(e??[]),e&&e.length>0&&u(e[0].id)}).catch(()=>{}).finally(()=>x(!1))},[]),(0,r.useEffect)(()=>{c&&(g(!0),fetch(`/api/amber/coverage/${encodeURIComponent(c)}`).then(e=>e.json()).then(({scan:e})=>p(e)).catch(()=>{}).finally(()=>g(!1)))},[c]);let m=e.find(e=>e.id===c),b=d?.drift??[];return(0,t.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,t.jsx)(a.PrismDock,{}),(0,t.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,t.jsxs)("div",{className:"w-full",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(n.default,{href:"/amber",className:"text-slate-500 hover:text-slate-300 text-sm transition-colors",children:"← AMBER"}),(0,t.jsx)("span",{className:"text-slate-700",children:"/"}),(0,t.jsx)("h1",{className:"text-xl font-semibold tracking-tight",style:{color:l},children:"Coverage"})]}),(0,t.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:[e.length," scan snapshots"]})]}),f&&(0,t.jsx)("div",{className:"w-full text-center py-16 text-slate-500 text-sm",children:"Loading…"}),!f&&0===e.length&&(0,t.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:s,children:[(0,t.jsx)("span",{className:"text-4xl",children:"📊"}),(0,t.jsx)("p",{className:"text-slate-300 font-medium",children:"No coverage history yet"}),(0,t.jsxs)("p",{className:"text-slate-500 text-sm",children:["Run an AMBER scan from the"," ",(0,t.jsx)(n.default,{href:"/amber",className:"hover:underline",style:{color:l},children:"AMBER landing page"}),"."]})]}),!f&&e.length>0&&(0,t.jsxs)("div",{className:"w-full flex gap-4",children:[(0,t.jsx)("div",{className:"w-48 flex-shrink-0 flex flex-col gap-2",children:e.map(e=>(0,t.jsxs)("button",{onClick:()=>u(e.id),className:"w-full text-left rounded-lg px-3 py-2.5 transition-all",style:{background:c===e.id?"rgba(251,191,36,0.1)":"rgba(15,23,42,0.4)",border:`1px solid ${c===e.id?"rgba(251,191,36,0.35)":"rgba(51,65,85,0.3)"}`},children:[(0,t.jsx)("p",{className:"text-xs font-mono text-slate-300",children:new Date(e.created_at).toLocaleDateString()}),(0,t.jsx)("p",{className:"text-xs text-slate-500",children:new Date(e.created_at).toLocaleTimeString()}),(0,t.jsxs)("div",{className:"flex gap-2 mt-1",children:[(0,t.jsxs)("span",{className:"text-xs font-mono",style:{color:e.drift_count>0?"rgb(248,113,113)":"rgb(52,211,153)"},children:[e.drift_count,"d"]}),(0,t.jsxs)("span",{className:"text-xs font-mono",style:{color:e.orphan_capability_count>0?l:"rgb(52,211,153)"},children:[e.orphan_capability_count,"o"]})]})]},e.id))}),(0,t.jsxs)("div",{className:"flex-1 flex flex-col gap-4",children:[h&&(0,t.jsx)("div",{className:"text-slate-500 text-sm py-8 text-center",children:"Loading scan…"}),!h&&m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"rounded-xl p-5 flex flex-col gap-3",style:s,children:[(0,t.jsx)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:new Date(m.created_at).toLocaleString()}),(0,t.jsx)("div",{className:"grid grid-cols-3 gap-3",children:[{label:"Files",value:m.file_count},{label:"Capabilities",value:m.capability_count,color:l},{label:"Drift",value:m.drift_count,color:m.drift_count>0?"rgb(248,113,113)":"rgb(52,211,153)"},{label:"Orphans",value:m.orphan_capability_count,color:m.orphan_capability_count>0?l:"rgb(52,211,153)"},{label:"Unknown Refs",value:m.unknown_ref_count,color:m.unknown_ref_count>0?"rgb(248,113,113)":"rgb(52,211,153)"}].map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-xs text-slate-600 uppercase tracking-widest",children:e.label}),(0,t.jsx)("span",{className:"text-lg font-mono font-semibold",style:{color:e.color??"rgb(226,232,240)"},children:e.value})]},e.label))})]}),b.length>0&&(0,t.jsxs)("div",{className:"rounded-xl p-5 flex flex-col gap-3",style:s,children:[(0,t.jsx)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:"Drift Entries"}),(0,t.jsx)("div",{className:"flex flex-col gap-1",children:b.map((e,r)=>(0,t.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,t.jsx)("span",{className:"text-xs font-mono text-slate-400 truncate flex-1",children:e.file}),(0,t.jsx)("span",{className:"text-xs text-amber-400 flex-shrink-0",children:o[e.kind]??e.kind})]},r))})]}),m.orphan_capability_ids.length>0&&(0,t.jsxs)("div",{className:"rounded-xl p-5 flex flex-col gap-3",style:s,children:[(0,t.jsx)("h2",{className:"text-xs font-semibold text-amber-400 uppercase tracking-widest",children:"Orphan Capabilities"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:m.orphan_capability_ids.map(e=>(0,t.jsx)(n.default,{href:`/amber/capabilities/${encodeURIComponent(e)}`,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:l,border:"1px solid rgba(251,191,36,0.25)"},children:e},e))})]}),0===m.drift_count&&0===m.orphan_capability_count&&(0,t.jsx)("div",{className:"rounded-xl p-5 text-center",style:s,children:(0,t.jsx)("p",{className:"text-emerald-400 text-sm font-medium",children:"✓ Clean scan — no drift, no orphans"})})]})]})]})]}),(0,t.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,t.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.11.3"," · AMBER / Coverage"]})]})}])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return i},searchParamsToUrlQuery:function(){return l},urlQueryToSearchParams:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function l(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function s(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,s(e));else t.set(r,s(n));return t}function i(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return m},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return j},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return h},ST:function(){return g},WEB_VITALS:function(){return l},execOnce:function(){return s},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return i},isResSent:function(){return p},loadGetInitialProps:function(){return x},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return N}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let l=["CLS","FCP","FID","INP","LCP","TTFB"];function s(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>o.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function x(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await x(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&p(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let h="u">typeof performance,g=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class j extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function N(e){return JSON.stringify({message:e.message,stack:e.stack})}},33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return c},urlObjectKeys:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let l=e.r(90809)._(e.r(98183)),s=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",o=e.hash||"",i=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),i&&"object"==typeof i&&(i=String(l.urlQueryToSearchParams(i)));let u=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||s.test(n))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),o&&"#"!==o[0]&&(o="#"+o),u&&"?"!==u[0]&&(u="?"+u),a=a.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${a}${u}${o}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return o(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(71645);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=l(e,n)),t&&(a.current=l(t,n))},[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return l}});let n=e.r(18967),a=e.r(52817);function l(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return m},useLinkStatus:function(){return y}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let l=e.r(90809),s=e.r(43476),o=l._(e.r(71645)),i=e.r(95057),c=e.r(8372),u=e.r(18581),d=e.r(18967),p=e.r(5550);e.r(33525);let f=e.r(88540),x=e.r(91949),h=e.r(73668),g=e.r(9396);function m(t){var r,n;let a,l,m,[y,j]=(0,o.useOptimistic)(x.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:N,as:_,children:k,prefetch:w=null,passHref:E,replace:S,shallow:P,scroll:C,onClick:O,onMouseEnter:R,onTouchStart:T,legacyBehavior:A=!1,onNavigate:L,transitionTypes:M,ref:I,unstable_dynamicOnHover:$,...U}=t;a=k,A&&("string"==typeof a||"number"==typeof a)&&(a=(0,s.jsx)("a",{children:a}));let B=o.default.useContext(c.AppRouterContext),D=!1!==w,F=!1!==w?null===(n=w)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,K="string"==typeof(r=_||N)?r:(0,i.formatUrl)(r);if(A){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});l=o.default.Children.only(a)}let z=A?l&&"object"==typeof l&&l.ref:I,W=o.default.useCallback(e=>(null!==B&&(v.current=(0,x.mountLinkInstance)(e,K,B,F,D,j)),()=>{v.current&&((0,x.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,x.unmountPrefetchableInstance)(e)}),[D,K,B,F,j]),V={ref:(0,u.useMergedRef)(W,z),onClick(t){A||"function"!=typeof O||O(t),A&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(t),!B||t.defaultPrevented||function(t,r,n,a,l,s,i){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);o.default.startTransition(()=>{d(r,a?"replace":"push",!1===l?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,i)})}}(t,K,v,S,C,L,M)},onMouseEnter(e){A||"function"!=typeof R||R(e),A&&l.props&&"function"==typeof l.props.onMouseEnter&&l.props.onMouseEnter(e),B&&D&&(0,x.onNavigationIntent)(e.currentTarget,!0===$)},onTouchStart:function(e){A||"function"!=typeof T||T(e),A&&l.props&&"function"==typeof l.props.onTouchStart&&l.props.onTouchStart(e),B&&D&&(0,x.onNavigationIntent)(e.currentTarget,!0===$)}};return(0,d.isAbsoluteUrl)(K)?V.href=K:A&&!E&&("a"!==l.type||"href"in l.props)||(V.href=(0,p.addBasePath)(K)),m=A?o.default.cloneElement(l,V):(0,s.jsx)("a",{...U,...V,children:a}),(0,s.jsx)(b.Provider,{value:y,children:m})}e.r(84508);let b=(0,o.createContext)(x.IDLE_LINK_STATUS),y=()=>(0,o.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18566,(e,t,r)=>{t.exports=e.r(76562)},25010,e=>{"use strict";var t=e.i(71645);e.s(["useTargetPath",0,function(){let[e,r]=(0,t.useState)(""),[n,a]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{fetch("/api/config").then(e=>e.json()).then(e=>{let t=e.targetPath??"";r(t?`?target=${encodeURIComponent(t)}`:"")}).catch(()=>{}).finally(()=>a(!0))},[]),{tq:e,ready:n}}])},50667,36528,60888,13121,e=>{"use strict";var t=e.i(43476),r=e.i(22016),n=e.i(18566),a=e.i(71645);let l={monorepo:{tier:"pro",label:"Monorepo support"},aggregate_scan:{tier:"pro",label:"Aggregate workspace scan"},cross_workspace_insights:{tier:"pro",label:"Cross-workspace insights"},llm_insights:{tier:"pro",label:"AI-powered insights"},custom_queries:{tier:"pro",label:"Custom GREEN queries"},cross_layer_context:{tier:"pro",label:"Cross-layer context"},auto_insights:{tier:"pro",label:"Auto-generated insights"},team_sync:{tier:"team",label:"Team sync"},ci_integration:{tier:"team",label:"CI integration"},blueprint_explorer:{tier:"pro",label:"Blueprint Explorer"},forge_unlimited:{tier:"forge-pro",label:"forge0x2B unlimited"},forge_unlimited_generation:{tier:"forge-pro",label:"forge0x2B unlimited generation"}};function s(e){return"free"!==l[e].tier}e.s(["FREE_TIER_LOC_LIMIT",0,5e4,"showProBadge",0,s],36528);let o=()=>(0,t.jsx)("span",{className:"text-[10px] font-bold px-1 py-0.5 rounded leading-none",style:{background:"rgba(251,191,36,0.15)",color:"rgb(251,191,36)",border:"1px solid rgba(251,191,36,0.3)"},children:"PRO"});function i({monorepo:e,activeWorkspace:r,onSelect:n,isPro:l=!1}){let[c,u]=(0,a.useState)(!1),d=(0,a.useRef)(null);if((0,a.useEffect)(()=>{function e(e){d.current&&!d.current.contains(e.target)&&u(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),!e||"single"===e.type||0===e.packages.length)return null;let p=s("monorepo")&&!l;return(0,t.jsxs)("div",{className:"relative",ref:d,children:[(0,t.jsxs)("button",{onClick:()=>u(e=>!e),className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium transition-colors",style:{background:c?"rgba(51,65,85,0.5)":"rgba(51,65,85,0.25)",border:"1px solid rgba(51,65,85,0.5)",color:"rgb(148,163,184)"},title:`Monorepo: ${e.type}`,children:[(0,t.jsx)("span",{className:"font-mono",style:{color:"rgb(52,211,153)",fontSize:10},children:e.type.toUpperCase()}),(0,t.jsx)("span",{className:"max-w-[80px] truncate",children:r??"all workspaces"}),p&&(0,t.jsx)(o,{}),(0,t.jsx)("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"currentColor",className:"opacity-60",children:(0,t.jsx)("path",{d:"M1 2.5l3 3 3-3",stroke:"currentColor",strokeWidth:"1.2",fill:"none",strokeLinecap:"round"})})]}),c&&(0,t.jsxs)("div",{className:"absolute top-full mt-1 right-0 z-50 rounded-xl overflow-hidden py-1 min-w-[180px]",style:{background:"rgba(15,23,42,0.95)",backdropFilter:"blur(20px)",border:"1px solid rgba(51,65,85,0.5)",boxShadow:"0 4px 24px rgba(0,0,0,0.4)"},children:[(0,t.jsxs)("button",{className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 transition-colors hover:bg-white/5",style:{color:null===r?"rgb(52,211,153)":"rgb(148,163,184)"},onClick:()=>{n(null),u(!1)},children:[(0,t.jsx)("span",{className:"font-mono text-[10px] opacity-60",children:"∑"}),"All workspaces",null===r&&(0,t.jsx)("span",{className:"ml-auto text-[10px] opacity-60",children:"✓"})]}),(0,t.jsx)("div",{className:"my-1",style:{borderTop:"1px solid rgba(51,65,85,0.3)"}}),e.packages.map(e=>(0,t.jsxs)("button",{className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 transition-colors hover:bg-white/5",style:{color:r===e.name?"rgb(52,211,153)":"rgb(148,163,184)"},onClick:()=>{n(e.name),u(!1)},children:[(0,t.jsx)("span",{className:"font-mono text-[10px] opacity-50",children:"pkg"}),(0,t.jsx)("span",{className:"flex-1 truncate",children:e.name}),void 0!==e.loc&&(0,t.jsxs)("span",{className:"text-[10px] font-mono opacity-40",children:[(e.loc/1e3).toFixed(1),"k"]}),r===e.name&&(0,t.jsx)("span",{className:"text-[10px] opacity-60",children:"✓"})]},e.path))]})]})}var c=e.i(25010);function u(e){let[t,r]=(0,a.useState)(null),[n,l]=(0,a.useState)(null),[s,o]=(0,a.useState)(!1);(0,a.useEffect)(()=>{Promise.all([fetch(`/api/monorepo${e}`).then(e=>e.json()).catch(()=>({monorepo:null})),fetch(`/api/monorepo/active${e}`).then(e=>e.json()).catch(()=>({workspace:null}))]).then(([e,t])=>{r(e.monorepo??null),l(t.workspace??null)}).finally(()=>o(!0))},[e]);let i=(0,a.useCallback)(async t=>{l(t),await fetch(`/api/monorepo/active${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({workspace:t})}).catch(()=>{})},[e]),c=n?`&workspace=${encodeURIComponent(n)}`:"";return{monorepo:t,activeWorkspace:n,setActiveWorkspace:i,ready:s,wq:c}}e.s(["useActiveWorkspace",0,u],60888);let d={tier:"free",issuedAt:null,expiresAt:null,userId:null,features:[],isValid:!1,isExpired:!1,licenseKey:null,instanceId:null,productName:null,subscriptionStatus:null,validatedAt:null,revalidationDue:null,gracePeriodEnd:null,activationLimit:null,activationUsage:null,cacheStatus:"no-cache",daysSinceValidation:null};function p(e){let[t,r]=(0,a.useState)(null),[n,l]=(0,a.useState)(!1),[s,o]=(0,a.useState)(0);(0,a.useEffect)(()=>{fetch(`/api/license${e}`).then(e=>e.json()).then(e=>r(e)).catch(()=>r(d)).finally(()=>l(!0))},[e,s]);let i=(0,a.useCallback)(()=>o(e=>e+1),[]),c=!!t&&"free"!==t.tier&&"forge-pro"!==t.tier&&t.isValid&&!t.isExpired&&"expired"!==t.cacheStatus;return{license:t,ready:n,refresh:i,isPro:c}}e.s(["useLicense",0,p],13121);let f=[{href:"/blue",label:"BLUE",color:"rgb(59,130,246)"},{href:"/amber",label:"AMBER",color:"rgb(251,191,36)"},{href:"/green",label:"GREEN",color:"rgb(52,211,153)"},{href:"/pricing",label:"Plans",color:"rgb(167,139,250)"},{href:"/settings",label:"⚙",color:void 0}];e.s(["PrismDock",0,function(){let e=(0,n.usePathname)(),{tq:a}=(0,c.useTargetPath)(),{monorepo:l,activeWorkspace:s,setActiveWorkspace:o}=u(a),{isPro:d}=p(a),x=d?[...f.slice(0,1),{href:"/blue/explorer",label:"Explorer",color:"rgb(56,189,248)"},...f.slice(1)]:f;return(0,t.jsxs)("div",{className:"fixed top-3 left-1/2 -translate-x-1/2 z-50 flex items-center gap-2 px-4 py-2 rounded-full",style:{background:"linear-gradient(to bottom, rgba(15,23,42,0.4), rgba(2,6,23,0.5))",backdropFilter:"blur(24px) saturate(1.5)",border:"1px solid rgba(51,65,85,0.3)",boxShadow:"0 1px 2px rgba(15,23,42,.06),0 4px 12px rgba(15,23,42,.12),0 16px 40px rgba(15,23,42,.18),inset 0 1px 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(15,23,42,.4)"},children:[(0,t.jsxs)(r.default,{href:"/",className:"flex items-center gap-1.5 group",children:[(0,t.jsx)("span",{className:"text-sky-400 text-lg select-none",children:"✦"}),(0,t.jsxs)("span",{className:"text-slate-200 text-sm font-semibold tracking-tight group-hover:text-white transition-colors",children:["prism",(0,t.jsx)("span",{className:"font-mono text-sky-500",children:"0x2A"})]})]}),x.map(({href:n,label:a,color:l})=>{let s=e===n||"/blue"!==n&&e.startsWith(n);return(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-px h-4",style:{background:"rgba(51,65,85,0.6)"}}),(0,t.jsx)(r.default,{href:n,className:"text-sm font-medium transition-colors px-1",style:{color:s?l??"rgb(226,232,240)":"rgba(148,163,184,0.8)"},children:a})]},n)}),l&&"single"!==l.type&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-px h-4",style:{background:"rgba(51,65,85,0.6)"}}),(0,t.jsx)(i,{monorepo:l,activeWorkspace:s,onSelect:o,isPro:d})]})]})}],50667)},84835,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(22016),a=e.i(50667);let l="rgb(251,191,36)",s={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)"},o={content_changed_no_doc_update:"Content changed, doc stale",header_added:"Header added",header_removed:"Header removed",capabilities_changed:"Capabilities changed"};e.s(["default",0,function(){let[e,i]=(0,r.useState)([]),[c,u]=(0,r.useState)(null),[d,p]=(0,r.useState)(null),[f,x]=(0,r.useState)(!0),[h,g]=(0,r.useState)(!1);(0,r.useEffect)(()=>{fetch("/api/amber/coverage").then(e=>e.json()).then(({scans:e})=>{i(e??[]),e&&e.length>0&&u(e[0].id)}).catch(()=>{}).finally(()=>x(!1))},[]),(0,r.useEffect)(()=>{c&&(g(!0),fetch(`/api/amber/coverage/${encodeURIComponent(c)}`).then(e=>e.json()).then(({scan:e})=>p(e)).catch(()=>{}).finally(()=>g(!1)))},[c]);let m=e.find(e=>e.id===c),b=d?.drift??[];return(0,t.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,t.jsx)(a.PrismDock,{}),(0,t.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,t.jsxs)("div",{className:"w-full",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(n.default,{href:"/amber",className:"text-slate-500 hover:text-slate-300 text-sm transition-colors",children:"← AMBER"}),(0,t.jsx)("span",{className:"text-slate-700",children:"/"}),(0,t.jsx)("h1",{className:"text-xl font-semibold tracking-tight",style:{color:l},children:"Coverage"})]}),(0,t.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:[e.length," scan snapshots"]})]}),f&&(0,t.jsx)("div",{className:"w-full text-center py-16 text-slate-500 text-sm",children:"Loading…"}),!f&&0===e.length&&(0,t.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:s,children:[(0,t.jsx)("span",{className:"text-4xl",children:"📊"}),(0,t.jsx)("p",{className:"text-slate-300 font-medium",children:"No coverage history yet"}),(0,t.jsxs)("p",{className:"text-slate-500 text-sm",children:["Run an AMBER scan from the"," ",(0,t.jsx)(n.default,{href:"/amber",className:"hover:underline",style:{color:l},children:"AMBER landing page"}),"."]})]}),!f&&e.length>0&&(0,t.jsxs)("div",{className:"w-full flex gap-4",children:[(0,t.jsx)("div",{className:"w-48 flex-shrink-0 flex flex-col gap-2",children:e.map(e=>(0,t.jsxs)("button",{onClick:()=>u(e.id),className:"w-full text-left rounded-lg px-3 py-2.5 transition-all",style:{background:c===e.id?"rgba(251,191,36,0.1)":"rgba(15,23,42,0.4)",border:`1px solid ${c===e.id?"rgba(251,191,36,0.35)":"rgba(51,65,85,0.3)"}`},children:[(0,t.jsx)("p",{className:"text-xs font-mono text-slate-300",children:new Date(e.created_at).toLocaleDateString()}),(0,t.jsx)("p",{className:"text-xs text-slate-500",children:new Date(e.created_at).toLocaleTimeString()}),(0,t.jsxs)("div",{className:"flex gap-2 mt-1",children:[(0,t.jsxs)("span",{className:"text-xs font-mono",style:{color:e.drift_count>0?"rgb(248,113,113)":"rgb(52,211,153)"},children:[e.drift_count,"d"]}),(0,t.jsxs)("span",{className:"text-xs font-mono",style:{color:e.orphan_capability_count>0?l:"rgb(52,211,153)"},children:[e.orphan_capability_count,"o"]})]})]},e.id))}),(0,t.jsxs)("div",{className:"flex-1 flex flex-col gap-4",children:[h&&(0,t.jsx)("div",{className:"text-slate-500 text-sm py-8 text-center",children:"Loading scan…"}),!h&&m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"rounded-xl p-5 flex flex-col gap-3",style:s,children:[(0,t.jsx)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:new Date(m.created_at).toLocaleString()}),(0,t.jsx)("div",{className:"grid grid-cols-3 gap-3",children:[{label:"Files",value:m.file_count},{label:"Capabilities",value:m.capability_count,color:l},{label:"Drift",value:m.drift_count,color:m.drift_count>0?"rgb(248,113,113)":"rgb(52,211,153)"},{label:"Orphans",value:m.orphan_capability_count,color:m.orphan_capability_count>0?l:"rgb(52,211,153)"},{label:"Unknown Refs",value:m.unknown_ref_count,color:m.unknown_ref_count>0?"rgb(248,113,113)":"rgb(52,211,153)"}].map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-xs text-slate-600 uppercase tracking-widest",children:e.label}),(0,t.jsx)("span",{className:"text-lg font-mono font-semibold",style:{color:e.color??"rgb(226,232,240)"},children:e.value})]},e.label))})]}),b.length>0&&(0,t.jsxs)("div",{className:"rounded-xl p-5 flex flex-col gap-3",style:s,children:[(0,t.jsx)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:"Drift Entries"}),(0,t.jsx)("div",{className:"flex flex-col gap-1",children:b.map((e,r)=>(0,t.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,t.jsx)("span",{className:"text-xs font-mono text-slate-400 truncate flex-1",children:e.file}),(0,t.jsx)("span",{className:"text-xs text-amber-400 flex-shrink-0",children:o[e.kind]??e.kind})]},r))})]}),m.orphan_capability_ids.length>0&&(0,t.jsxs)("div",{className:"rounded-xl p-5 flex flex-col gap-3",style:s,children:[(0,t.jsx)("h2",{className:"text-xs font-semibold text-amber-400 uppercase tracking-widest",children:"Orphan Capabilities"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:m.orphan_capability_ids.map(e=>(0,t.jsx)(n.default,{href:`/amber/capabilities/${encodeURIComponent(e)}`,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:l,border:"1px solid rgba(251,191,36,0.25)"},children:e},e))})]}),0===m.drift_count&&0===m.orphan_capability_count&&(0,t.jsx)("div",{className:"rounded-xl p-5 text-center",style:s,children:(0,t.jsx)("p",{className:"text-emerald-400 text-sm font-medium",children:"✓ Clean scan — no drift, no orphans"})})]})]})]})]}),(0,t.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,t.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.12.0"," · AMBER / Coverage"]})]})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,80949,e=>{"use strict";var t=e.i(71645),s=e.i(25010);e.s(["useExplorerBlueprint",0,function(){let{tq:e,ready:l}=(0,s.useTargetPath)(),a=new URLSearchParams(e.slice(1)).get("target")??"",[r,n]=(0,t.useState)(null),[o,i]=(0,t.useState)(!1),[c,x]=(0,t.useState)(null),[d,p]=(0,t.useState)(!1),[m,u]=(0,t.useState)(!1),[h,b]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{l&&(i(!0),fetch(`/api/blue/explorer${e}`).then(e=>e.json()).then(({data:t,_isDemo:s,_proGated:l})=>{n(t??null),u(!!s),b(!!l),!t?.generatedAt||s||l||fetch(`/api/blue/explorer/outdated${e}&since=${encodeURIComponent(t.generatedAt)}`).then(e=>e.json()).then(({outdated:e})=>p(!!e)).catch(()=>{})}).catch(()=>x("Failed to load blueprint")).finally(()=>i(!1)))},[l]),{data:r,setData:n,loading:o,error:c,outdated:d,setOutdated:p,target:a,ready:l,isDemo:m,isProGated:h}}])},89458,e=>{"use strict";var t=e.i(43476),s=e.i(22016),l=e.i(18566),a=e.i(71645);function r({target:e,onComplete:s}){let[l,n]=(0,a.useState)(!1);async function o(){n(!0);try{let t=await fetch("/api/blue/explorer",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({target:e})}),l=await t.json();t.ok&&l.data&&s(l.data)}finally{n(!1)}}return(0,t.jsx)("button",{onClick:o,disabled:l,className:"text-xs px-3 py-1 rounded-md font-medium transition-all disabled:opacity-50",style:{background:"rgba(59,130,246,0.15)",color:"rgb(96,165,250)",border:"1px solid rgba(59,130,246,0.25)"},children:l?"Scanning…":"↺ Rescan"})}function n({mode:e,onChange:s}){return(0,t.jsx)("div",{className:"flex items-center rounded-lg overflow-hidden flex-shrink-0",style:{border:"1px solid rgba(51,65,85,0.5)",background:"rgba(15,23,42,0.6)"},children:["simple","expert"].map(l=>(0,t.jsx)("button",{onClick:()=>s(l),className:"px-2.5 py-1 text-[10px] font-semibold capitalize transition-all",style:e===l?{background:"rgba(59,130,246,0.2)",color:"rgb(96,165,250)"}:{background:"transparent",color:"rgb(71,85,105)"},children:"simple"===l?"Simple":"Expert"},l))})}let o=[{href:"/blue/explorer",label:"List",exact:!0},{href:"/blue/explorer/graph",label:"Graph",exact:!1},{href:"/blue/explorer/zones",label:"Zones",exact:!1},{href:"/blue/explorer/wire",label:"Wire",exact:!1},{href:"/blue/explorer/flow",label:"Flow",exact:!1},{href:"/blue/explorer/ask",label:"Ask ✦",exact:!1},{href:"/blue/explorer/refactor",label:"Refactor",exact:!1}];e.s(["ExplorerNav",0,function({target:e,outdated:a,onRescan:i,hideRescan:c,viewMode:x,onViewModeChange:d}){let p=(0,l.usePathname)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-1 px-4 py-2 border-b flex-shrink-0",style:{borderColor:"rgba(51,65,85,0.4)",background:"rgba(15,23,42,0.5)"},children:[(0,t.jsx)("span",{className:"text-xs font-semibold text-blue-400 font-mono mr-3",children:"BLUE / Explorer"}),o.map(({href:e,label:l,exact:a})=>{let r=a?p===e:p.startsWith(e)&&!p.startsWith("/blue/explorer/file")&&!p.startsWith("/blue/explorer/explain");return(0,t.jsx)(s.default,{href:e,className:"text-xs px-3 py-1 rounded-md transition-colors",style:{background:r?"rgba(59,130,246,0.15)":"transparent",color:r?"rgb(96,165,250)":"rgb(100,116,139)",border:r?"1px solid rgba(59,130,246,0.3)":"1px solid transparent"},children:l},e)}),(0,t.jsx)("div",{className:"flex-1"}),x&&d&&(0,t.jsx)(n,{mode:x,onChange:d}),!c&&(0,t.jsx)(r,{target:e,onComplete:i})]}),a&&(0,t.jsxs)("div",{className:"px-4 py-2 text-xs font-mono flex items-center gap-2 flex-shrink-0 border-b",style:{background:"rgba(120,53,15,0.2)",borderColor:"rgba(120,53,15,0.4)",color:"rgb(251,191,36)"},children:[(0,t.jsx)("span",{children:"⚠"}),(0,t.jsx)("span",{children:"Source files changed since last scan — run ↺ Rescan to update."})]})]})}],89458)},14845,63308,e=>{"use strict";var t=e.i(43476);function s(e){switch(e){case"component":return"🧩";case"page":return"📄";case"lib":return"📦";case"api":return"⚡";case"hook":return"🪝";case"config":return"⚙️";case"test":return"🧪";case"app":return"📱";default:return"📁"}}e.s(["COV_BG",0,{none:"rgba(51,65,85,0.3)",low:"rgba(239,68,68,0.1)",mid:"rgba(250,204,21,0.1)",high:"rgba(74,222,128,0.1)"},"COV_BORDER",0,{none:"#334155",low:"#7f1d1d",mid:"#713f12",high:"#14532d"},"COV_COLOR",0,{none:"#475569",low:"#f87171",mid:"#facc15",high:"#4ade80"},"catIcon",0,s,"covAvg",0,function(e){return e?(e.statements+e.branches+e.functions+e.lines)/4:null},"covBucket",0,function(e){return null===e?"none":e>=80?"high":e>=50?"mid":"low"},"heatBadgeClass",0,function(e){return e>=75?"bg-red-950/60 text-red-400 border border-red-900/40":e>=50?"bg-orange-950/60 text-orange-400 border border-orange-900/40":e>=25?"bg-yellow-950/60 text-yellow-500 border border-yellow-900/40":"bg-slate-800/60 text-slate-500 border border-slate-700/40"},"heatBarColor",0,function(e){return e>=75?"#f87171":e>=50?"#fb923c":e>=25?"#facc15":"#475569"},"heatColor",0,function(e){return e>=50?"#ef4444":e>=30?"#f97316":e>=15?"#eab308":e>=5?"#3b82f6":"#475569"}],63308);var l=e.i(71645);function a({values:e,direction:s="neutral",label:r}){let[n,o]=(0,l.useState)(null);if(e.length<2)return null;let i=Math.min(...e),c=Math.max(...e,i+1)-i,x=e.map((t,s)=>`${s/(e.length-1)*48},${10-(t-i)/c*9}`).join(" "),d=e[0],p=e[e.length-1],m=p-d,u=c>0&&Math.abs(m)>.05*c?"up-good"===s?m>0?"#22c55e":"#f97316":"down-good"===s?m<0?"#22c55e":"#f97316":"#64748b":"#64748b",h=e.map((t,s)=>`${s/(e.length-1)*160},${36-(t-i)/c*32}`).join(" "),b=e=>Number.isInteger(e)?e.toString():Math.abs(e)>=10?e.toFixed(1):e.toFixed(2),f=`${m>=0?"+":""}${b(m)}`;return(0,t.jsxs)("div",{className:"relative shrink-0 cursor-default",onMouseEnter:e=>{let t=e.currentTarget.getBoundingClientRect();o({x:t.left+t.width/2,y:t.top})},onMouseLeave:()=>o(null),children:[(0,t.jsx)("svg",{width:48,height:10,className:"opacity-70 block","aria-hidden":!0,children:(0,t.jsx)("polyline",{points:x,fill:"none",stroke:u,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),n&&(0,t.jsx)("div",{className:"pointer-events-none fixed z-[9999]",style:{left:n.x,top:n.y-8,transform:"translate(-50%, -100%)"},children:(0,t.jsxs)("div",{className:"bg-slate-900 border border-slate-700/80 rounded-lg shadow-2xl px-3 pt-2.5 pb-2 w-[188px]",children:[r&&(0,t.jsx)("p",{className:"text-[9px] uppercase tracking-widest text-slate-500 mb-1.5 font-semibold truncate",children:r}),(0,t.jsxs)("svg",{width:160,height:38,className:"block mb-2","aria-hidden":!0,children:[(0,t.jsx)("line",{x1:0,y1:37,x2:160,y2:37,stroke:"#1e293b",strokeWidth:"1"}),(0,t.jsx)("polyline",{points:h,fill:"none",stroke:u,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("circle",{cx:0,cy:36-(d-i)/c*32,r:"2.5",fill:u,opacity:"0.5"}),(0,t.jsx)("circle",{cx:160,cy:36-(p-i)/c*32,r:"3",fill:u})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between text-[10px] font-mono leading-none mb-1",children:[(0,t.jsx)("span",{className:"text-slate-500",children:b(d)}),(0,t.jsx)("span",{className:"text-slate-600 px-1",children:"→"}),(0,t.jsx)("span",{style:{color:u},className:"font-semibold",children:b(p)}),(0,t.jsx)("span",{className:"ml-auto pl-2 font-semibold",style:{color:0===m?"#64748b":m>0==("up-good"===s)?"#22c55e":"#f97316"},children:f})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between text-[9px] font-mono text-slate-600 pt-1 border-t border-slate-800",children:[(0,t.jsxs)("span",{children:["↓ ",b(i)]}),(0,t.jsxs)("span",{children:[e.length," pts"]}),(0,t.jsxs)("span",{children:["↑ ",b(Math.max(...e))]})]})]})})]})}function r({label:e,value:s,trend:l,direction:n="neutral"}){return(0,t.jsxs)("div",{className:"flex items-center justify-between bg-slate-900/60 px-2.5 py-1.5 rounded gap-2",children:[(0,t.jsx)("span",{className:"text-slate-500 text-xs",children:e}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[l&&l.length>=2&&(0,t.jsx)(a,{values:l,direction:n,label:e}),(0,t.jsx)("span",{className:"text-slate-300 font-mono font-medium text-xs",children:s})]})]})}function n({label:e,value:s}){return(0,t.jsxs)("div",{className:"bg-slate-900 rounded-lg p-3 text-center border border-slate-800",children:[(0,t.jsx)("p",{className:"text-xl font-bold text-slate-100 font-mono",children:s}),(0,t.jsx)("p",{className:"text-[11px] text-slate-500 mt-1",children:e})]})}e.s(["ExplorerFileInspector",0,function({file:e}){let s=e.coverage;return(0,t.jsxs)("div",{className:"flex flex-col gap-4 p-4 overflow-y-auto h-full",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-semibold text-slate-200 font-mono break-all",children:e.path}),(0,t.jsxs)("div",{className:"flex gap-2 mt-1 flex-wrap",children:[(0,t.jsxs)("span",{className:"text-[10px] font-mono text-slate-500",children:[e.metrics.loc," LOC"]}),(0,t.jsxs)("span",{className:"text-[10px] font-mono text-slate-500",children:["heat ",e.metrics.heatScore.toFixed(1)]}),(0,t.jsx)("span",{className:"text-[10px] font-mono text-slate-500",children:e.category}),e.hasUseClientDirective&&(0,t.jsx)("span",{className:"text-[10px] text-purple-400",children:"client"}),e.isApiRoute&&(0,t.jsx)("span",{className:"text-[10px] text-green-400",children:"api"}),e.isCyclic&&(0,t.jsx)("span",{className:"text-[10px] text-red-400",children:"cyclic"})]})]}),e.docSummary&&(0,t.jsx)("div",{className:"bg-slate-900/60 rounded px-3 py-2",children:(0,t.jsx)("p",{className:"text-xs text-slate-400 leading-relaxed",children:e.docSummary})}),s&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-widest font-semibold text-slate-600 mb-1",children:"Coverage"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:[(0,t.jsx)(r,{label:"Statements",value:`${s.statements.toFixed(0)}%`}),(0,t.jsx)(r,{label:"Branches",value:`${s.branches.toFixed(0)}%`}),(0,t.jsx)(r,{label:"Functions",value:`${s.functions.toFixed(0)}%`}),(0,t.jsx)(r,{label:"Lines",value:`${s.lines.toFixed(0)}%`})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-widest font-semibold text-slate-600 mb-1",children:"Metrics"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(r,{label:"Incoming deps",value:e.metrics.incomingRuntimeDeps}),(0,t.jsx)(r,{label:"Outgoing deps",value:e.metrics.outgoingRuntimeDeps}),null!==e.metrics.complexityScore&&(0,t.jsx)(r,{label:"Complexity",value:e.metrics.complexityScore.toFixed(1)}),e.stateComplexity&&(0,t.jsx)(r,{label:"State hooks",value:e.stateComplexity.hookCounts.total})]})]}),e.exports.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-widest font-semibold text-slate-600 mb-1",children:"Exports"}),(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[e.exports.slice(0,8).map(e=>(0,t.jsx)("span",{className:"text-[11px] font-mono text-slate-400 truncate",children:e},e)),e.exports.length>8&&(0,t.jsxs)("span",{className:"text-[10px] text-slate-600",children:["+",e.exports.length-8," more"]})]})]}),e.explainability.symbolSummaries.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-widest font-semibold text-slate-600 mb-1",children:"Symbols"}),(0,t.jsx)("div",{className:"flex flex-col gap-1",children:e.explainability.symbolSummaries.slice(0,6).map(e=>(0,t.jsxs)("div",{className:"bg-slate-900/60 rounded px-2 py-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"text-[9px] font-mono text-slate-500 uppercase",children:e.kind}),(0,t.jsx)("span",{className:"text-[11px] font-mono text-slate-200",children:e.name}),e.exported&&(0,t.jsx)("span",{className:"text-[9px] text-blue-400",children:"↑"})]}),e.doc&&(0,t.jsx)("p",{className:"text-[10px] text-slate-500 mt-0.5 truncate",children:e.doc})]},e.name))})]}),e.internalImports.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-[10px] uppercase tracking-widest font-semibold text-slate-600 mb-1",children:["Imports (",e.internalImports.length," internal)"]}),(0,t.jsxs)("div",{className:"flex flex-col gap-0.5 max-h-32 overflow-y-auto",children:[e.internalImports.slice(0,10).map(e=>(0,t.jsx)("span",{className:"text-[10px] font-mono text-slate-500 truncate",children:e},e)),e.internalImports.length>10&&(0,t.jsxs)("span",{className:"text-[9px] text-slate-600",children:["+",e.internalImports.length-10," more"]})]})]})]})},"ExplorerSummary",0,function({data:e}){let{summary:l,heatmap:a}=e,o=e.files.reduce((e,t)=>(e[t.category]=(e[t.category]??0)+1,e),{}),i=e.files.filter(e=>null!==e.coverage).length,c=l.fileCount>0?Math.round(i/l.fileCount*100):0,x=l.fileCount>0?Math.round(l.cyclicFileCount/l.fileCount*100):0,d=e.files.length>0?e.files.reduce((e,t)=>e+t.metrics.heatScore,0)/e.files.length:0;return(0,t.jsxs)("div",{className:"flex flex-col gap-4 p-4 overflow-y-auto",children:[(0,t.jsxs)("p",{className:"text-[10px] text-slate-600 font-mono",children:["Generated ",new Date(e.generatedAt).toLocaleString()]}),(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-2",children:[(0,t.jsx)(n,{label:"Files",value:l.fileCount}),(0,t.jsx)(n,{label:"Components",value:l.componentCount}),(0,t.jsx)(n,{label:"Routes",value:l.routesDiscovered.length}),(0,t.jsx)(n,{label:"Cyclic",value:l.cyclicFileCount}),(0,t.jsx)(n,{label:"Client",value:l.clientFileCount}),(0,t.jsx)(n,{label:"Server",value:l.serverFileCount})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(r,{label:"Avg heat score",value:d.toFixed(1)}),(0,t.jsx)(r,{label:"Coverage files",value:`${i} / ${l.fileCount} (${c}%)`,direction:"up-good"}),(0,t.jsx)(r,{label:"Cyclic rate",value:`${x}%`,direction:"down-good"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-widest font-semibold text-slate-600 mb-1",children:"Categories"}),Object.entries(o).sort(([,e],[,t])=>t-e).map(([e,l])=>(0,t.jsxs)("div",{className:"flex items-center justify-between bg-slate-900/60 px-2.5 py-1.5 rounded",children:[(0,t.jsxs)("span",{className:"text-slate-500 text-xs",children:[s(e)," ",e]}),(0,t.jsx)("span",{className:"text-slate-300 font-mono font-medium text-xs",children:l})]},e))]}),a.hottestFiles.length>0&&(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-widest font-semibold text-slate-600 mb-1",children:"Hottest files"}),a.hottestFiles.slice(0,6).map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-2 bg-slate-900/60 px-2.5 py-1.5 rounded",children:[(0,t.jsx)("span",{className:"text-[10px] font-mono text-orange-400 shrink-0",children:e.heatScore.toFixed(0)}),(0,t.jsx)("span",{className:"text-[11px] font-mono text-slate-400 truncate flex-1",children:e.path.split("/").pop()})]},e.path))]}),l.mostImportedFiles.length>0&&(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-widest font-semibold text-slate-600 mb-1",children:"Most imported"}),l.mostImportedFiles.slice(0,5).map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-2 bg-slate-900/60 px-2.5 py-1.5 rounded",children:[(0,t.jsxs)("span",{className:"text-[10px] font-mono text-blue-400 shrink-0",children:[e.count,"×"]}),(0,t.jsx)("span",{className:"text-[11px] font-mono text-slate-400 truncate flex-1",children:e.path.split("/").pop()})]},e.path))]})]})}],14845)},72265,e=>{"use strict";var t=e.i(43476),s=e.i(22016);e.s(["DemoBanner",0,function(){return(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 px-4 py-2.5 text-xs",style:{background:"rgba(14,165,233,0.08)",borderBottom:"1px solid rgba(14,165,233,0.2)"},children:[(0,t.jsxs)("span",{className:"flex items-center gap-2 text-sky-400 font-medium",children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"✦"}),"Demo data — NexPay sample project. Install Prism to scan your own codebase."]}),(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[(0,t.jsx)(s.default,{href:"/#quickstart",className:"text-sky-300 hover:text-sky-200 transition-colors font-semibold",children:"Get started →"}),(0,t.jsx)(s.default,{href:"/pricing",className:"px-3 py-1 rounded-md text-xs font-semibold transition-colors",style:{background:"rgba(14,165,233,0.15)",border:"1px solid rgba(14,165,233,0.3)",color:"rgb(125,211,252)"},children:"View pricing"})]})]})}])},38714,e=>{"use strict";var t=e.i(71645);let s="prism.viewMode";e.s(["useViewMode",0,function(){let[e,l]=(0,t.useState)("expert");return(0,t.useEffect)(()=>{try{let e=localStorage.getItem(s);("simple"===e||"expert"===e)&&l(e)}catch{}},[]),[e,(0,t.useCallback)(e=>{l(e);try{localStorage.setItem(s,e)}catch{}},[])]}])},32901,e=>{"use strict";var t=e.i(43476),s=e.i(22016);e.s(["UpgradeBlur",0,function({children:e,feature:l="Blueprint Explorer"}){return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"pointer-events-none select-none",style:{filter:"blur(5px)",opacity:.45},"aria-hidden":!0,children:e}),(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",style:{minHeight:320},children:(0,t.jsxs)("div",{className:"rounded-2xl px-8 py-7 flex flex-col items-center gap-4 text-center max-w-sm w-full mx-4",style:{background:"rgba(2,6,23,0.88)",border:"1px solid rgba(59,130,246,0.3)",boxShadow:"0 0 40px rgba(59,130,246,0.12), 0 8px 32px rgba(0,0,0,0.4)",backdropFilter:"blur(8px)"},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1 rounded-full text-xs font-bold",style:{background:"rgba(59,130,246,0.12)",border:"1px solid rgba(59,130,246,0.3)",color:"rgb(96,165,250)"},children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"✦"}),(0,t.jsx)("span",{children:"PRO FEATURE"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-slate-100 mb-1",children:l}),(0,t.jsx)("p",{className:"text-xs text-slate-400 leading-relaxed",children:"Full view available on Pro and above — heat scores, import graphs, coverage overlays, AI recommendations, and zone analysis."})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,t.jsx)(s.default,{href:"/pricing?utm_source=upgrade_blur&utm_content=blueprint_explorer",className:"w-full py-2.5 rounded-lg text-sm font-semibold text-center transition-all",style:{background:"rgb(59,130,246)",color:"#fff",boxShadow:"0 0 20px rgba(59,130,246,0.3)"},children:"Unlock — from €39/mo"}),(0,t.jsx)(s.default,{href:"/pricing?utm_source=upgrade_blur&utm_content=spectrum",className:"w-full py-2 rounded-lg text-xs font-medium text-center transition-colors",style:{color:"rgb(167,139,250)",border:"1px solid rgba(99,102,241,0.25)"},children:"Spectrum 0x55 bundle — €49/mo (prism + forge)"})]})]})})]})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,89458,e=>{"use strict";var t=e.i(43476),s=e.i(22016),l=e.i(18566),a=e.i(71645);function r({target:e,onComplete:s}){let[l,n]=(0,a.useState)(!1);async function o(){n(!0);try{let t=await fetch("/api/blue/explorer",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({target:e})}),l=await t.json();t.ok&&l.data&&s(l.data)}finally{n(!1)}}return(0,t.jsx)("button",{onClick:o,disabled:l,className:"text-xs px-3 py-1 rounded-md font-medium transition-all disabled:opacity-50",style:{background:"rgba(59,130,246,0.15)",color:"rgb(96,165,250)",border:"1px solid rgba(59,130,246,0.25)"},children:l?"Scanning…":"↺ Rescan"})}function n({mode:e,onChange:s}){return(0,t.jsx)("div",{className:"flex items-center rounded-lg overflow-hidden flex-shrink-0",style:{border:"1px solid rgba(51,65,85,0.5)",background:"rgba(15,23,42,0.6)"},children:["simple","expert"].map(l=>(0,t.jsx)("button",{onClick:()=>s(l),className:"px-2.5 py-1 text-[10px] font-semibold capitalize transition-all",style:e===l?{background:"rgba(59,130,246,0.2)",color:"rgb(96,165,250)"}:{background:"transparent",color:"rgb(71,85,105)"},children:"simple"===l?"Simple":"Expert"},l))})}let o=[{href:"/blue/explorer",label:"List",exact:!0},{href:"/blue/explorer/graph",label:"Graph",exact:!1},{href:"/blue/explorer/zones",label:"Zones",exact:!1},{href:"/blue/explorer/wire",label:"Wire",exact:!1},{href:"/blue/explorer/flow",label:"Flow",exact:!1},{href:"/blue/explorer/ask",label:"Ask ✦",exact:!1},{href:"/blue/explorer/refactor",label:"Refactor",exact:!1}];e.s(["ExplorerNav",0,function({target:e,outdated:a,onRescan:i,hideRescan:c,viewMode:x,onViewModeChange:d}){let p=(0,l.usePathname)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-1 px-4 py-2 border-b flex-shrink-0",style:{borderColor:"rgba(51,65,85,0.4)",background:"rgba(15,23,42,0.5)"},children:[(0,t.jsx)("span",{className:"text-xs font-semibold text-blue-400 font-mono mr-3",children:"BLUE / Explorer"}),o.map(({href:e,label:l,exact:a})=>{let r=a?p===e:p.startsWith(e)&&!p.startsWith("/blue/explorer/file")&&!p.startsWith("/blue/explorer/explain");return(0,t.jsx)(s.default,{href:e,className:"text-xs px-3 py-1 rounded-md transition-colors",style:{background:r?"rgba(59,130,246,0.15)":"transparent",color:r?"rgb(96,165,250)":"rgb(100,116,139)",border:r?"1px solid rgba(59,130,246,0.3)":"1px solid transparent"},children:l},e)}),(0,t.jsx)("div",{className:"flex-1"}),x&&d&&(0,t.jsx)(n,{mode:x,onChange:d}),!c&&(0,t.jsx)(r,{target:e,onComplete:i})]}),a&&(0,t.jsxs)("div",{className:"px-4 py-2 text-xs font-mono flex items-center gap-2 flex-shrink-0 border-b",style:{background:"rgba(120,53,15,0.2)",borderColor:"rgba(120,53,15,0.4)",color:"rgb(251,191,36)"},children:[(0,t.jsx)("span",{children:"⚠"}),(0,t.jsx)("span",{children:"Source files changed since last scan — run ↺ Rescan to update."})]})]})}],89458)},80949,e=>{"use strict";var t=e.i(71645),s=e.i(25010);e.s(["useExplorerBlueprint",0,function(){let{tq:e,ready:l}=(0,s.useTargetPath)(),a=new URLSearchParams(e.slice(1)).get("target")??"",[r,n]=(0,t.useState)(null),[o,i]=(0,t.useState)(!1),[c,x]=(0,t.useState)(null),[d,p]=(0,t.useState)(!1),[m,u]=(0,t.useState)(!1),[h,b]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{l&&(i(!0),fetch(`/api/blue/explorer${e}`).then(e=>e.json()).then(({data:t,_isDemo:s,_proGated:l})=>{n(t??null),u(!!s),b(!!l),!t?.generatedAt||s||l||fetch(`/api/blue/explorer/outdated${e}&since=${encodeURIComponent(t.generatedAt)}`).then(e=>e.json()).then(({outdated:e})=>p(!!e)).catch(()=>{})}).catch(()=>x("Failed to load blueprint")).finally(()=>i(!1)))},[l]),{data:r,setData:n,loading:o,error:c,outdated:d,setOutdated:p,target:a,ready:l,isDemo:m,isProGated:h}}])},14845,63308,e=>{"use strict";var t=e.i(43476);function s(e){switch(e){case"component":return"🧩";case"page":return"📄";case"lib":return"📦";case"api":return"⚡";case"hook":return"🪝";case"config":return"⚙️";case"test":return"🧪";case"app":return"📱";default:return"📁"}}e.s(["COV_BG",0,{none:"rgba(51,65,85,0.3)",low:"rgba(239,68,68,0.1)",mid:"rgba(250,204,21,0.1)",high:"rgba(74,222,128,0.1)"},"COV_BORDER",0,{none:"#334155",low:"#7f1d1d",mid:"#713f12",high:"#14532d"},"COV_COLOR",0,{none:"#475569",low:"#f87171",mid:"#facc15",high:"#4ade80"},"catIcon",0,s,"covAvg",0,function(e){return e?(e.statements+e.branches+e.functions+e.lines)/4:null},"covBucket",0,function(e){return null===e?"none":e>=80?"high":e>=50?"mid":"low"},"heatBadgeClass",0,function(e){return e>=75?"bg-red-950/60 text-red-400 border border-red-900/40":e>=50?"bg-orange-950/60 text-orange-400 border border-orange-900/40":e>=25?"bg-yellow-950/60 text-yellow-500 border border-yellow-900/40":"bg-slate-800/60 text-slate-500 border border-slate-700/40"},"heatBarColor",0,function(e){return e>=75?"#f87171":e>=50?"#fb923c":e>=25?"#facc15":"#475569"},"heatColor",0,function(e){return e>=50?"#ef4444":e>=30?"#f97316":e>=15?"#eab308":e>=5?"#3b82f6":"#475569"}],63308);var l=e.i(71645);function a({values:e,direction:s="neutral",label:r}){let[n,o]=(0,l.useState)(null);if(e.length<2)return null;let i=Math.min(...e),c=Math.max(...e,i+1)-i,x=e.map((t,s)=>`${s/(e.length-1)*48},${10-(t-i)/c*9}`).join(" "),d=e[0],p=e[e.length-1],m=p-d,u=c>0&&Math.abs(m)>.05*c?"up-good"===s?m>0?"#22c55e":"#f97316":"down-good"===s?m<0?"#22c55e":"#f97316":"#64748b":"#64748b",h=e.map((t,s)=>`${s/(e.length-1)*160},${36-(t-i)/c*32}`).join(" "),b=e=>Number.isInteger(e)?e.toString():Math.abs(e)>=10?e.toFixed(1):e.toFixed(2),f=`${m>=0?"+":""}${b(m)}`;return(0,t.jsxs)("div",{className:"relative shrink-0 cursor-default",onMouseEnter:e=>{let t=e.currentTarget.getBoundingClientRect();o({x:t.left+t.width/2,y:t.top})},onMouseLeave:()=>o(null),children:[(0,t.jsx)("svg",{width:48,height:10,className:"opacity-70 block","aria-hidden":!0,children:(0,t.jsx)("polyline",{points:x,fill:"none",stroke:u,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),n&&(0,t.jsx)("div",{className:"pointer-events-none fixed z-[9999]",style:{left:n.x,top:n.y-8,transform:"translate(-50%, -100%)"},children:(0,t.jsxs)("div",{className:"bg-slate-900 border border-slate-700/80 rounded-lg shadow-2xl px-3 pt-2.5 pb-2 w-[188px]",children:[r&&(0,t.jsx)("p",{className:"text-[9px] uppercase tracking-widest text-slate-500 mb-1.5 font-semibold truncate",children:r}),(0,t.jsxs)("svg",{width:160,height:38,className:"block mb-2","aria-hidden":!0,children:[(0,t.jsx)("line",{x1:0,y1:37,x2:160,y2:37,stroke:"#1e293b",strokeWidth:"1"}),(0,t.jsx)("polyline",{points:h,fill:"none",stroke:u,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("circle",{cx:0,cy:36-(d-i)/c*32,r:"2.5",fill:u,opacity:"0.5"}),(0,t.jsx)("circle",{cx:160,cy:36-(p-i)/c*32,r:"3",fill:u})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between text-[10px] font-mono leading-none mb-1",children:[(0,t.jsx)("span",{className:"text-slate-500",children:b(d)}),(0,t.jsx)("span",{className:"text-slate-600 px-1",children:"→"}),(0,t.jsx)("span",{style:{color:u},className:"font-semibold",children:b(p)}),(0,t.jsx)("span",{className:"ml-auto pl-2 font-semibold",style:{color:0===m?"#64748b":m>0==("up-good"===s)?"#22c55e":"#f97316"},children:f})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between text-[9px] font-mono text-slate-600 pt-1 border-t border-slate-800",children:[(0,t.jsxs)("span",{children:["↓ ",b(i)]}),(0,t.jsxs)("span",{children:[e.length," pts"]}),(0,t.jsxs)("span",{children:["↑ ",b(Math.max(...e))]})]})]})})]})}function r({label:e,value:s,trend:l,direction:n="neutral"}){return(0,t.jsxs)("div",{className:"flex items-center justify-between bg-slate-900/60 px-2.5 py-1.5 rounded gap-2",children:[(0,t.jsx)("span",{className:"text-slate-500 text-xs",children:e}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[l&&l.length>=2&&(0,t.jsx)(a,{values:l,direction:n,label:e}),(0,t.jsx)("span",{className:"text-slate-300 font-mono font-medium text-xs",children:s})]})]})}function n({label:e,value:s}){return(0,t.jsxs)("div",{className:"bg-slate-900 rounded-lg p-3 text-center border border-slate-800",children:[(0,t.jsx)("p",{className:"text-xl font-bold text-slate-100 font-mono",children:s}),(0,t.jsx)("p",{className:"text-[11px] text-slate-500 mt-1",children:e})]})}e.s(["ExplorerFileInspector",0,function({file:e}){let s=e.coverage;return(0,t.jsxs)("div",{className:"flex flex-col gap-4 p-4 overflow-y-auto h-full",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-semibold text-slate-200 font-mono break-all",children:e.path}),(0,t.jsxs)("div",{className:"flex gap-2 mt-1 flex-wrap",children:[(0,t.jsxs)("span",{className:"text-[10px] font-mono text-slate-500",children:[e.metrics.loc," LOC"]}),(0,t.jsxs)("span",{className:"text-[10px] font-mono text-slate-500",children:["heat ",e.metrics.heatScore.toFixed(1)]}),(0,t.jsx)("span",{className:"text-[10px] font-mono text-slate-500",children:e.category}),e.hasUseClientDirective&&(0,t.jsx)("span",{className:"text-[10px] text-purple-400",children:"client"}),e.isApiRoute&&(0,t.jsx)("span",{className:"text-[10px] text-green-400",children:"api"}),e.isCyclic&&(0,t.jsx)("span",{className:"text-[10px] text-red-400",children:"cyclic"})]})]}),e.docSummary&&(0,t.jsx)("div",{className:"bg-slate-900/60 rounded px-3 py-2",children:(0,t.jsx)("p",{className:"text-xs text-slate-400 leading-relaxed",children:e.docSummary})}),s&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-widest font-semibold text-slate-600 mb-1",children:"Coverage"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:[(0,t.jsx)(r,{label:"Statements",value:`${s.statements.toFixed(0)}%`}),(0,t.jsx)(r,{label:"Branches",value:`${s.branches.toFixed(0)}%`}),(0,t.jsx)(r,{label:"Functions",value:`${s.functions.toFixed(0)}%`}),(0,t.jsx)(r,{label:"Lines",value:`${s.lines.toFixed(0)}%`})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-widest font-semibold text-slate-600 mb-1",children:"Metrics"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(r,{label:"Incoming deps",value:e.metrics.incomingRuntimeDeps}),(0,t.jsx)(r,{label:"Outgoing deps",value:e.metrics.outgoingRuntimeDeps}),null!==e.metrics.complexityScore&&(0,t.jsx)(r,{label:"Complexity",value:e.metrics.complexityScore.toFixed(1)}),e.stateComplexity&&(0,t.jsx)(r,{label:"State hooks",value:e.stateComplexity.hookCounts.total})]})]}),e.exports.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-widest font-semibold text-slate-600 mb-1",children:"Exports"}),(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[e.exports.slice(0,8).map(e=>(0,t.jsx)("span",{className:"text-[11px] font-mono text-slate-400 truncate",children:e},e)),e.exports.length>8&&(0,t.jsxs)("span",{className:"text-[10px] text-slate-600",children:["+",e.exports.length-8," more"]})]})]}),e.explainability.symbolSummaries.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-widest font-semibold text-slate-600 mb-1",children:"Symbols"}),(0,t.jsx)("div",{className:"flex flex-col gap-1",children:e.explainability.symbolSummaries.slice(0,6).map(e=>(0,t.jsxs)("div",{className:"bg-slate-900/60 rounded px-2 py-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"text-[9px] font-mono text-slate-500 uppercase",children:e.kind}),(0,t.jsx)("span",{className:"text-[11px] font-mono text-slate-200",children:e.name}),e.exported&&(0,t.jsx)("span",{className:"text-[9px] text-blue-400",children:"↑"})]}),e.doc&&(0,t.jsx)("p",{className:"text-[10px] text-slate-500 mt-0.5 truncate",children:e.doc})]},e.name))})]}),e.internalImports.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-[10px] uppercase tracking-widest font-semibold text-slate-600 mb-1",children:["Imports (",e.internalImports.length," internal)"]}),(0,t.jsxs)("div",{className:"flex flex-col gap-0.5 max-h-32 overflow-y-auto",children:[e.internalImports.slice(0,10).map(e=>(0,t.jsx)("span",{className:"text-[10px] font-mono text-slate-500 truncate",children:e},e)),e.internalImports.length>10&&(0,t.jsxs)("span",{className:"text-[9px] text-slate-600",children:["+",e.internalImports.length-10," more"]})]})]})]})},"ExplorerSummary",0,function({data:e}){let{summary:l,heatmap:a}=e,o=e.files.reduce((e,t)=>(e[t.category]=(e[t.category]??0)+1,e),{}),i=e.files.filter(e=>null!==e.coverage).length,c=l.fileCount>0?Math.round(i/l.fileCount*100):0,x=l.fileCount>0?Math.round(l.cyclicFileCount/l.fileCount*100):0,d=e.files.length>0?e.files.reduce((e,t)=>e+t.metrics.heatScore,0)/e.files.length:0;return(0,t.jsxs)("div",{className:"flex flex-col gap-4 p-4 overflow-y-auto",children:[(0,t.jsxs)("p",{className:"text-[10px] text-slate-600 font-mono",children:["Generated ",new Date(e.generatedAt).toLocaleString()]}),(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-2",children:[(0,t.jsx)(n,{label:"Files",value:l.fileCount}),(0,t.jsx)(n,{label:"Components",value:l.componentCount}),(0,t.jsx)(n,{label:"Routes",value:l.routesDiscovered.length}),(0,t.jsx)(n,{label:"Cyclic",value:l.cyclicFileCount}),(0,t.jsx)(n,{label:"Client",value:l.clientFileCount}),(0,t.jsx)(n,{label:"Server",value:l.serverFileCount})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(r,{label:"Avg heat score",value:d.toFixed(1)}),(0,t.jsx)(r,{label:"Coverage files",value:`${i} / ${l.fileCount} (${c}%)`,direction:"up-good"}),(0,t.jsx)(r,{label:"Cyclic rate",value:`${x}%`,direction:"down-good"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-widest font-semibold text-slate-600 mb-1",children:"Categories"}),Object.entries(o).sort(([,e],[,t])=>t-e).map(([e,l])=>(0,t.jsxs)("div",{className:"flex items-center justify-between bg-slate-900/60 px-2.5 py-1.5 rounded",children:[(0,t.jsxs)("span",{className:"text-slate-500 text-xs",children:[s(e)," ",e]}),(0,t.jsx)("span",{className:"text-slate-300 font-mono font-medium text-xs",children:l})]},e))]}),a.hottestFiles.length>0&&(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-widest font-semibold text-slate-600 mb-1",children:"Hottest files"}),a.hottestFiles.slice(0,6).map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-2 bg-slate-900/60 px-2.5 py-1.5 rounded",children:[(0,t.jsx)("span",{className:"text-[10px] font-mono text-orange-400 shrink-0",children:e.heatScore.toFixed(0)}),(0,t.jsx)("span",{className:"text-[11px] font-mono text-slate-400 truncate flex-1",children:e.path.split("/").pop()})]},e.path))]}),l.mostImportedFiles.length>0&&(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-[10px] uppercase tracking-widest font-semibold text-slate-600 mb-1",children:"Most imported"}),l.mostImportedFiles.slice(0,5).map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-2 bg-slate-900/60 px-2.5 py-1.5 rounded",children:[(0,t.jsxs)("span",{className:"text-[10px] font-mono text-blue-400 shrink-0",children:[e.count,"×"]}),(0,t.jsx)("span",{className:"text-[11px] font-mono text-slate-400 truncate flex-1",children:e.path.split("/").pop()})]},e.path))]})]})}],14845)},72265,e=>{"use strict";var t=e.i(43476),s=e.i(22016);e.s(["DemoBanner",0,function(){return(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 px-4 py-2.5 text-xs",style:{background:"rgba(14,165,233,0.08)",borderBottom:"1px solid rgba(14,165,233,0.2)"},children:[(0,t.jsxs)("span",{className:"flex items-center gap-2 text-sky-400 font-medium",children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"✦"}),"Demo data — NexPay sample project. Install Prism to scan your own codebase."]}),(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[(0,t.jsx)(s.default,{href:"/#quickstart",className:"text-sky-300 hover:text-sky-200 transition-colors font-semibold",children:"Get started →"}),(0,t.jsx)(s.default,{href:"/pricing",className:"px-3 py-1 rounded-md text-xs font-semibold transition-colors",style:{background:"rgba(14,165,233,0.15)",border:"1px solid rgba(14,165,233,0.3)",color:"rgb(125,211,252)"},children:"View pricing"})]})]})}])},32901,e=>{"use strict";var t=e.i(43476),s=e.i(22016);e.s(["UpgradeBlur",0,function({children:e,feature:l="Blueprint Explorer"}){return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"pointer-events-none select-none",style:{filter:"blur(5px)",opacity:.45},"aria-hidden":!0,children:e}),(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",style:{minHeight:320},children:(0,t.jsxs)("div",{className:"rounded-2xl px-8 py-7 flex flex-col items-center gap-4 text-center max-w-sm w-full mx-4",style:{background:"rgba(2,6,23,0.88)",border:"1px solid rgba(59,130,246,0.3)",boxShadow:"0 0 40px rgba(59,130,246,0.12), 0 8px 32px rgba(0,0,0,0.4)",backdropFilter:"blur(8px)"},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1 rounded-full text-xs font-bold",style:{background:"rgba(59,130,246,0.12)",border:"1px solid rgba(59,130,246,0.3)",color:"rgb(96,165,250)"},children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"✦"}),(0,t.jsx)("span",{children:"PRO FEATURE"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-slate-100 mb-1",children:l}),(0,t.jsx)("p",{className:"text-xs text-slate-400 leading-relaxed",children:"Full view available on Pro and above — heat scores, import graphs, coverage overlays, AI recommendations, and zone analysis."})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,t.jsx)(s.default,{href:"/pricing?utm_source=upgrade_blur&utm_content=blueprint_explorer",className:"w-full py-2.5 rounded-lg text-sm font-semibold text-center transition-all",style:{background:"rgb(59,130,246)",color:"#fff",boxShadow:"0 0 20px rgba(59,130,246,0.3)"},children:"Unlock — from €39/mo"}),(0,t.jsx)(s.default,{href:"/pricing?utm_source=upgrade_blur&utm_content=spectrum",className:"w-full py-2 rounded-lg text-xs font-medium text-center transition-colors",style:{color:"rgb(167,139,250)",border:"1px solid rgba(99,102,241,0.25)"},children:"Spectrum 0x55 bundle — €49/mo (prism + forge)"})]})]})})]})}])},38714,e=>{"use strict";var t=e.i(71645);let s="prism.viewMode";e.s(["useViewMode",0,function(){let[e,l]=(0,t.useState)("expert");return(0,t.useEffect)(()=>{try{let e=localStorage.getItem(s);("simple"===e||"expert"===e)&&l(e)}catch{}},[]),[e,(0,t.useCallback)(e=>{l(e);try{localStorage.setItem(s,e)}catch{}},[])]}])},17248,e=>{"use strict";var t=e.i(43476),s=e.i(71645),l=e.i(22016),a=e.i(63308);function r({file:e,selected:s,colorMode:l,onClick:o}){var i;let c,x=e.metrics.heatScore,{filename:d,dir:p}={filename:(c=(i=e.path).split("/")).pop()??i,dir:c.join("/")},m=e.coverage,u=(0,a.covAvg)(m),h=(0,a.covBucket)(u),b="neutral"===l,f="coverage"===l,g=s?"rgb(59,130,246)":"transparent";return s||b||(g=f?a.COV_COLOR[h]:x>=50?"#f97316":x>=25?"#facc15":"transparent"),(0,t.jsxs)("button",{onClick:o,className:`w-full text-left px-4 py-2.5 border-b border-slate-800/40 hover:bg-slate-800/30 transition-colors border-l-2 ${s?"bg-slate-800/60":""}`,style:{borderLeftColor:g},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:`text-[10px] font-mono px-1.5 py-0.5 rounded shrink-0 ${b?"bg-slate-800/60 text-slate-500 border border-slate-700/40":(0,a.heatBadgeClass)(x)}`,children:x.toFixed(1)}),(f||b)&&(0,t.jsxs)("span",{className:"text-[10px] font-mono px-1.5 py-0.5 rounded shrink-0 border",style:b?{color:"#64748b",borderColor:"#334155",background:"rgba(30,41,59,0.4)"}:{color:a.COV_COLOR[h],borderColor:a.COV_BORDER[h],background:a.COV_BG[h]},title:m?`${u?.toFixed(1)}% avg \xb7 S:${m.statements}% B:${m.branches}% F:${m.functions}% L:${m.lines}%`:"No coverage data",children:["🧪 ",m?`${u?.toFixed(0)}%`:"—"]}),(0,t.jsx)("span",{className:"text-sm text-slate-200 font-medium truncate flex-1 min-w-0",children:d}),(0,t.jsxs)("div",{className:"flex gap-1 shrink-0 items-center",children:[(0,t.jsxs)("span",{className:"text-[9px] font-mono text-slate-600",children:[e.metrics.loc,"L"]}),e.hasUseClientDirective&&(0,t.jsx)(n,{label:"client",color:"purple"}),e.isApiRoute&&(0,t.jsx)(n,{label:"api",color:"green"}),e.isCyclic&&(0,t.jsx)(n,{label:"cycle",color:"red"}),(e.commitStats?.count_180d??0)>10&&(0,t.jsx)("span",{title:`Hot: ${e.commitStats.count_180d} commits/180d`,className:"text-[10px]",children:"🔥"})]})]}),p&&(0,t.jsxs)("div",{className:"text-[11px] text-slate-600 font-mono mt-0.5 truncate pl-[52px]",children:[p,"/"]}),(0,t.jsx)("div",{className:"mt-1.5 h-0.5 rounded-full bg-slate-800 overflow-hidden",children:(0,t.jsx)("div",{className:"h-full rounded-full",style:b?{width:"100%",backgroundColor:"#1e293b"}:f&&m?{width:`${Math.min(100,u??0)}%`,backgroundColor:a.COV_COLOR[h]}:{width:`${Math.min(100,x)}%`,backgroundColor:(0,a.heatBarColor)(x)}})})]})}function n({label:e,color:s}){let l={purple:{bg:"rgba(168,85,247,0.12)",text:"rgb(216,180,254)",border:"rgba(168,85,247,0.3)"},green:{bg:"rgba(34,197,94,0.12)",text:"rgb(134,239,172)",border:"rgba(34,197,94,0.3)"},red:{bg:"rgba(239,68,68,0.12)",text:"rgb(252,165,165)",border:"rgba(239,68,68,0.3)"},teal:{bg:"rgba(20,184,166,0.12)",text:"rgb(94,234,212)",border:"rgba(20,184,166,0.3)"}}[s];return(0,t.jsx)("span",{className:"text-[9px] font-mono px-1 py-0.5 rounded",style:{background:l.bg,color:l.text,border:`1px solid ${l.border}`},children:e})}var o=e.i(14845),i=e.i(89458),c=e.i(72265),x=e.i(32901),d=e.i(80949),p=e.i(38714);e.s(["default",0,function(){let{data:e,setData:n,loading:m,error:u,outdated:h,setOutdated:b,target:f,isDemo:g,isProGated:j}=(0,d.useExplorerBlueprint)(),[v,N]=(0,p.useViewMode)(),[y,k]=(0,s.useState)(null),[w,C]=(0,s.useState)("heat"),[S,F]=(0,s.useState)("heat"),[$,R]=(0,s.useState)(""),[O,B]=(0,s.useState)("all"),M=(0,s.useMemo)(()=>e?["all",...Array.from(new Set(e.files.map(e=>e.category))).sort()]:[],[e]),L=(0,s.useMemo)(()=>{if(!e)return[];let t=new Map;for(let s of e.files){let e=s.path.split("/")[0]??"(root)",l=t.get(e)??[];l.push(s),t.set(e,l)}return Array.from(t.entries()).map(([e,t])=>({zone:e,files:t.sort((e,t)=>t.metrics.heatScore-e.metrics.heatScore)})).sort((e,t)=>t.files[0]?.metrics.heatScore-e.files[0]?.metrics.heatScore)},[e]),I=(0,s.useMemo)(()=>{if(!e)return[];let t=e.files;if("all"!==O&&(t=t.filter(e=>e.category===O)),$.trim()){let e=$.toLowerCase();t=t.filter(t=>t.path.toLowerCase().includes(e))}return[...t].sort((e,t)=>"heat"===S?t.metrics.heatScore-e.metrics.heatScore:"loc"===S?t.metrics.loc-e.metrics.loc:"name"===S?e.path.localeCompare(t.path):"deps"===S?t.metrics.outgoingRuntimeDeps-e.metrics.outgoingRuntimeDeps:0)},[e,O,$,S]),E=(0,t.jsxs)("main",{className:"flex flex-col flex-1 pt-16 h-screen overflow-hidden",children:[g&&(0,t.jsx)(c.DemoBanner,{}),(0,t.jsx)(i.ExplorerNav,{target:f,outdated:h,onRescan:function(e){e&&(n(e),b(!1))},hideRescan:g||j,viewMode:v,onViewModeChange:N}),u&&(0,t.jsx)("div",{className:"px-4 py-2 text-xs text-red-400 font-mono bg-red-950/30 border-b border-red-900/30 flex-shrink-0",children:u}),m&&(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center text-slate-500 text-sm",children:"Loading blueprint data…"}),!m&&!e&&(0,t.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center gap-4 text-center px-6",children:[(0,t.jsx)("span",{className:"text-5xl",children:"📐"}),(0,t.jsx)("h2",{className:"text-lg font-semibold text-slate-300",children:"No blueprint yet"}),(0,t.jsxs)("p",{className:"text-sm text-slate-500 max-w-sm",children:["No blueprint generated yet. Click"," ",(0,t.jsx)("span",{className:"font-mono text-blue-400",children:"↺ Re-scan"})," ","above to analyse your codebase."]}),(0,t.jsxs)("p",{className:"text-xs text-slate-600",children:["Or place a ",(0,t.jsx)("span",{className:"font-mono",children:"blueprint.json"})," in"," ",(0,t.jsx)("span",{className:"font-mono text-slate-500",children:".prism/"})," manually."]})]}),!m&&e&&(0,t.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[(0,t.jsx)("div",{className:"w-64 flex-shrink-0 overflow-y-auto border-r",style:{borderColor:"rgba(51,65,85,0.3)",background:"rgba(8,15,30,0.6)"},children:(0,t.jsx)(o.ExplorerSummary,{data:e})}),(0,t.jsx)("div",{className:"flex flex-col flex-1 overflow-hidden",children:"simple"===v?(0,t.jsx)("div",{className:"flex-1 overflow-y-auto px-4 py-4 flex flex-col gap-4",children:L.map(({zone:e,files:s})=>(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-1 mb-1",children:[(0,t.jsx)("span",{className:"text-[10px] uppercase tracking-widest font-semibold text-slate-500",children:e}),(0,t.jsxs)("span",{className:"text-[10px] text-slate-700 font-mono",children:[s.length," files"]})]}),s.map(e=>{let s=e.metrics.heatScore;return(0,t.jsxs)("div",{onClick:()=>k(y?.id===e.id?null:e),className:"flex items-center justify-between px-3 py-2 rounded-lg cursor-pointer transition-colors",style:{background:y?.id===e.id?"rgba(59,130,246,0.1)":"rgba(15,23,42,0.4)",border:`1px solid ${y?.id===e.id?"rgba(59,130,246,0.3)":"rgba(51,65,85,0.3)"}`},children:[(0,t.jsx)("span",{className:"text-xs font-mono text-slate-400 truncate flex-1",children:e.path.split("/").pop()}),e.isCyclic&&(0,t.jsx)("span",{className:"text-[10px] text-red-400 ml-2 flex-shrink-0",children:"cycle"}),(0,t.jsx)("span",{className:"text-xs font-mono ml-2 flex-shrink-0",style:{color:s>=70?"rgb(248,113,113)":s>=40?"rgb(251,191,36)":"rgb(100,116,139)"},children:s})]},e.id)})]},e))}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border-b flex-shrink-0",style:{borderColor:"rgba(51,65,85,0.3)",background:"rgba(10,16,30,0.5)"},children:[(0,t.jsx)("input",{type:"text",value:$,onChange:e=>R(e.target.value),placeholder:"Filter files…",className:"text-xs px-2.5 py-1 rounded bg-slate-900 border border-slate-700/60 text-slate-300 placeholder:text-slate-600 outline-none focus:border-blue-500/50 w-40"}),(0,t.jsx)("select",{value:O,onChange:e=>B(e.target.value),className:"text-xs px-2 py-1 rounded bg-slate-900 border border-slate-700/60 text-slate-400 outline-none",children:M.map(e=>(0,t.jsx)("option",{value:e,children:"all"===e?"All categories":`${(0,a.catIcon)(e)} ${e}`},e))}),(0,t.jsx)("div",{className:"flex gap-1 ml-1",children:["heat","coverage","neutral"].map(e=>(0,t.jsx)("button",{onClick:()=>C(e),className:"text-[10px] px-2 py-0.5 rounded capitalize",style:{background:w===e?"rgba(59,130,246,0.2)":"rgba(30,41,59,0.5)",color:w===e?"rgb(96,165,250)":"rgb(100,116,139)",border:`1px solid ${w===e?"rgba(59,130,246,0.3)":"rgba(51,65,85,0.3)"}`},children:e},e))}),(0,t.jsxs)("select",{value:S,onChange:e=>F(e.target.value),className:"text-xs px-2 py-1 rounded bg-slate-900 border border-slate-700/60 text-slate-400 outline-none ml-auto",children:[(0,t.jsx)("option",{value:"heat",children:"Sort: heat"}),(0,t.jsx)("option",{value:"loc",children:"Sort: LOC"}),(0,t.jsx)("option",{value:"name",children:"Sort: name"}),(0,t.jsx)("option",{value:"deps",children:"Sort: deps"})]}),(0,t.jsxs)("span",{className:"text-[10px] text-slate-600 font-mono",children:[I.length," files"]})]}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto",children:[I.map(e=>(0,t.jsx)(r,{file:e,selected:y?.id===e.id,colorMode:w,onClick:()=>k(y?.id===e.id?null:e)},e.id)),0===I.length&&(0,t.jsx)("div",{className:"p-8 text-center text-slate-600 text-sm",children:"No files match your filter."})]})]})}),y&&(0,t.jsxs)("div",{className:"w-72 flex-shrink-0 border-l overflow-y-auto",style:{borderColor:"rgba(51,65,85,0.3)",background:"rgba(8,12,24,0.7)"},children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-2 border-b flex-shrink-0",style:{borderColor:"rgba(51,65,85,0.3)"},children:[(0,t.jsx)("span",{className:"text-[10px] uppercase tracking-widest text-slate-500 font-semibold",children:"Inspector"}),(0,t.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,t.jsx)(l.default,{href:`/blue/explorer/file/${encodeURIComponent(y.path)}`,className:"text-[10px] text-blue-400 hover:text-blue-300 transition-colors",children:"deep-dive →"}),(0,t.jsx)("button",{onClick:()=>k(null),className:"text-slate-600 hover:text-slate-400 text-xs",children:"✕"})]})]}),(0,t.jsx)(o.ExplorerFileInspector,{file:y})]})]})]});return j?(0,t.jsx)(x.UpgradeBlur,{children:E}):E}],17248)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return i},searchParamsToUrlQuery:function(){return l},urlQueryToSearchParams:function(){return o}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function l(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,a(e));else t.set(r,a(n));return t}function i(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return m},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return j},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return g},ST:function(){return h},WEB_VITALS:function(){return l},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return i},isResSent:function(){return p},loadGetInitialProps:function(){return x},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return N}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let l=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>o.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function x(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await x(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&p(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let g="u">typeof performance,h=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class j extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function N(e){return JSON.stringify({message:e.message,stack:e.stack})}},33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return c},urlObjectKeys:function(){return i}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let l=e.r(90809)._(e.r(98183)),a=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",o=e.hash||"",i=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),i&&"object"==typeof i&&(i=String(l.urlQueryToSearchParams(i)));let u=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),o&&"#"!==o[0]&&(o="#"+o),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${s}${u}${o}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return o(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(71645);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=l(e,n)),t&&(s.current=l(t,n))},[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return l}});let n=e.r(18967),s=e.r(52817);function l(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return m},useLinkStatus:function(){return y}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let l=e.r(90809),a=e.r(43476),o=l._(e.r(71645)),i=e.r(95057),c=e.r(8372),u=e.r(18581),d=e.r(18967),p=e.r(5550);e.r(33525);let f=e.r(88540),x=e.r(91949),g=e.r(73668),h=e.r(9396);function m(t){var r,n;let s,l,m,[y,j]=(0,o.useOptimistic)(x.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:N,as:k,children:_,prefetch:w=null,passHref:P,replace:E,shallow:S,scroll:C,onClick:O,onMouseEnter:R,onTouchStart:T,legacyBehavior:I=!1,onNavigate:A,transitionTypes:L,ref:$,unstable_dynamicOnHover:U,...M}=t;s=_,I&&("string"==typeof s||"number"==typeof s)&&(s=(0,a.jsx)("a",{children:s}));let B=o.default.useContext(c.AppRouterContext),D=!1!==w,F=!1!==w?null===(n=w)||"auto"===n?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,K="string"==typeof(r=k||N)?r:(0,i.formatUrl)(r);if(I){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});l=o.default.Children.only(s)}let z=I?l&&"object"==typeof l&&l.ref:$,W=o.default.useCallback(e=>(null!==B&&(v.current=(0,x.mountLinkInstance)(e,K,B,F,D,j)),()=>{v.current&&((0,x.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,x.unmountPrefetchableInstance)(e)}),[D,K,B,F,j]),G={ref:(0,u.useMergedRef)(W,z),onClick(t){I||"function"!=typeof O||O(t),I&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(t),!B||t.defaultPrevented||function(t,r,n,s,l,a,i){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);o.default.startTransition(()=>{d(r,s?"replace":"push",!1===l?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,i)})}}(t,K,v,E,C,A,L)},onMouseEnter(e){I||"function"!=typeof R||R(e),I&&l.props&&"function"==typeof l.props.onMouseEnter&&l.props.onMouseEnter(e),B&&D&&(0,x.onNavigationIntent)(e.currentTarget,!0===U)},onTouchStart:function(e){I||"function"!=typeof T||T(e),I&&l.props&&"function"==typeof l.props.onTouchStart&&l.props.onTouchStart(e),B&&D&&(0,x.onNavigationIntent)(e.currentTarget,!0===U)}};return(0,d.isAbsoluteUrl)(K)?G.href=K:I&&!P&&("a"!==l.type||"href"in l.props)||(G.href=(0,p.addBasePath)(K)),m=I?o.default.cloneElement(l,G):(0,a.jsx)("a",{...M,...G,children:s}),(0,a.jsx)(b.Provider,{value:y,children:m})}e.r(84508);let b=(0,o.createContext)(x.IDLE_LINK_STATUS),y=()=>(0,o.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18566,(e,t,r)=>{t.exports=e.r(76562)},25010,e=>{"use strict";var t=e.i(71645);e.s(["useTargetPath",0,function(){let[e,r]=(0,t.useState)(""),[n,s]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{fetch("/api/config").then(e=>e.json()).then(e=>{let t=e.targetPath??"";r(t?`?target=${encodeURIComponent(t)}`:"")}).catch(()=>{}).finally(()=>s(!0))},[]),{tq:e,ready:n}}])},50667,36528,60888,13121,e=>{"use strict";var t=e.i(43476),r=e.i(22016),n=e.i(18566),s=e.i(71645);let l={monorepo:{tier:"pro",label:"Monorepo support"},aggregate_scan:{tier:"pro",label:"Aggregate workspace scan"},cross_workspace_insights:{tier:"pro",label:"Cross-workspace insights"},llm_insights:{tier:"pro",label:"AI-powered insights"},custom_queries:{tier:"pro",label:"Custom GREEN queries"},cross_layer_context:{tier:"pro",label:"Cross-layer context"},auto_insights:{tier:"pro",label:"Auto-generated insights"},team_sync:{tier:"team",label:"Team sync"},ci_integration:{tier:"team",label:"CI integration"},blueprint_explorer:{tier:"pro",label:"Blueprint Explorer"},forge_unlimited:{tier:"forge-pro",label:"forge0x2B unlimited"},forge_unlimited_generation:{tier:"forge-pro",label:"forge0x2B unlimited generation"}};function a(e){return"free"!==l[e].tier}e.s(["FREE_TIER_LOC_LIMIT",0,5e4,"showProBadge",0,a],36528);let o=()=>(0,t.jsx)("span",{className:"text-[10px] font-bold px-1 py-0.5 rounded leading-none",style:{background:"rgba(251,191,36,0.15)",color:"rgb(251,191,36)",border:"1px solid rgba(251,191,36,0.3)"},children:"PRO"});function i({monorepo:e,activeWorkspace:r,onSelect:n,isPro:l=!1}){let[c,u]=(0,s.useState)(!1),d=(0,s.useRef)(null);if((0,s.useEffect)(()=>{function e(e){d.current&&!d.current.contains(e.target)&&u(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),!e||"single"===e.type||0===e.packages.length)return null;let p=a("monorepo")&&!l;return(0,t.jsxs)("div",{className:"relative",ref:d,children:[(0,t.jsxs)("button",{onClick:()=>u(e=>!e),className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium transition-colors",style:{background:c?"rgba(51,65,85,0.5)":"rgba(51,65,85,0.25)",border:"1px solid rgba(51,65,85,0.5)",color:"rgb(148,163,184)"},title:`Monorepo: ${e.type}`,children:[(0,t.jsx)("span",{className:"font-mono",style:{color:"rgb(52,211,153)",fontSize:10},children:e.type.toUpperCase()}),(0,t.jsx)("span",{className:"max-w-[80px] truncate",children:r??"all workspaces"}),p&&(0,t.jsx)(o,{}),(0,t.jsx)("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"currentColor",className:"opacity-60",children:(0,t.jsx)("path",{d:"M1 2.5l3 3 3-3",stroke:"currentColor",strokeWidth:"1.2",fill:"none",strokeLinecap:"round"})})]}),c&&(0,t.jsxs)("div",{className:"absolute top-full mt-1 right-0 z-50 rounded-xl overflow-hidden py-1 min-w-[180px]",style:{background:"rgba(15,23,42,0.95)",backdropFilter:"blur(20px)",border:"1px solid rgba(51,65,85,0.5)",boxShadow:"0 4px 24px rgba(0,0,0,0.4)"},children:[(0,t.jsxs)("button",{className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 transition-colors hover:bg-white/5",style:{color:null===r?"rgb(52,211,153)":"rgb(148,163,184)"},onClick:()=>{n(null),u(!1)},children:[(0,t.jsx)("span",{className:"font-mono text-[10px] opacity-60",children:"∑"}),"All workspaces",null===r&&(0,t.jsx)("span",{className:"ml-auto text-[10px] opacity-60",children:"✓"})]}),(0,t.jsx)("div",{className:"my-1",style:{borderTop:"1px solid rgba(51,65,85,0.3)"}}),e.packages.map(e=>(0,t.jsxs)("button",{className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 transition-colors hover:bg-white/5",style:{color:r===e.name?"rgb(52,211,153)":"rgb(148,163,184)"},onClick:()=>{n(e.name),u(!1)},children:[(0,t.jsx)("span",{className:"font-mono text-[10px] opacity-50",children:"pkg"}),(0,t.jsx)("span",{className:"flex-1 truncate",children:e.name}),void 0!==e.loc&&(0,t.jsxs)("span",{className:"text-[10px] font-mono opacity-40",children:[(e.loc/1e3).toFixed(1),"k"]}),r===e.name&&(0,t.jsx)("span",{className:"text-[10px] opacity-60",children:"✓"})]},e.path))]})]})}var c=e.i(25010);function u(e){let[t,r]=(0,s.useState)(null),[n,l]=(0,s.useState)(null),[a,o]=(0,s.useState)(!1);(0,s.useEffect)(()=>{Promise.all([fetch(`/api/monorepo${e}`).then(e=>e.json()).catch(()=>({monorepo:null})),fetch(`/api/monorepo/active${e}`).then(e=>e.json()).catch(()=>({workspace:null}))]).then(([e,t])=>{r(e.monorepo??null),l(t.workspace??null)}).finally(()=>o(!0))},[e]);let i=(0,s.useCallback)(async t=>{l(t),await fetch(`/api/monorepo/active${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({workspace:t})}).catch(()=>{})},[e]),c=n?`&workspace=${encodeURIComponent(n)}`:"";return{monorepo:t,activeWorkspace:n,setActiveWorkspace:i,ready:a,wq:c}}e.s(["useActiveWorkspace",0,u],60888);let d={tier:"free",issuedAt:null,expiresAt:null,userId:null,features:[],isValid:!1,isExpired:!1,licenseKey:null,instanceId:null,productName:null,subscriptionStatus:null,validatedAt:null,revalidationDue:null,gracePeriodEnd:null,activationLimit:null,activationUsage:null,cacheStatus:"no-cache",daysSinceValidation:null};function p(e){let[t,r]=(0,s.useState)(null),[n,l]=(0,s.useState)(!1),[a,o]=(0,s.useState)(0);(0,s.useEffect)(()=>{fetch(`/api/license${e}`).then(e=>e.json()).then(e=>r(e)).catch(()=>r(d)).finally(()=>l(!0))},[e,a]);let i=(0,s.useCallback)(()=>o(e=>e+1),[]),c=!!t&&"free"!==t.tier&&"forge-pro"!==t.tier&&t.isValid&&!t.isExpired&&"expired"!==t.cacheStatus;return{license:t,ready:n,refresh:i,isPro:c}}e.s(["useLicense",0,p],13121);let f=[{href:"/blue",label:"BLUE",color:"rgb(59,130,246)"},{href:"/amber",label:"AMBER",color:"rgb(251,191,36)"},{href:"/green",label:"GREEN",color:"rgb(52,211,153)"},{href:"/pricing",label:"Plans",color:"rgb(167,139,250)"},{href:"/settings",label:"⚙",color:void 0}];e.s(["PrismDock",0,function(){let e=(0,n.usePathname)(),{tq:s}=(0,c.useTargetPath)(),{monorepo:l,activeWorkspace:a,setActiveWorkspace:o}=u(s),{isPro:d}=p(s),x=d?[...f.slice(0,1),{href:"/blue/explorer",label:"Explorer",color:"rgb(56,189,248)"},...f.slice(1)]:f;return(0,t.jsxs)("div",{className:"fixed top-3 left-1/2 -translate-x-1/2 z-50 flex items-center gap-2 px-4 py-2 rounded-full",style:{background:"linear-gradient(to bottom, rgba(15,23,42,0.4), rgba(2,6,23,0.5))",backdropFilter:"blur(24px) saturate(1.5)",border:"1px solid rgba(51,65,85,0.3)",boxShadow:"0 1px 2px rgba(15,23,42,.06),0 4px 12px rgba(15,23,42,.12),0 16px 40px rgba(15,23,42,.18),inset 0 1px 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(15,23,42,.4)"},children:[(0,t.jsxs)(r.default,{href:"/",className:"flex items-center gap-1.5 group",children:[(0,t.jsx)("span",{className:"text-sky-400 text-lg select-none",children:"✦"}),(0,t.jsxs)("span",{className:"text-slate-200 text-sm font-semibold tracking-tight group-hover:text-white transition-colors",children:["prism",(0,t.jsx)("span",{className:"font-mono text-sky-500",children:"0x2A"})]})]}),x.map(({href:n,label:s,color:l})=>{let a=e===n||"/blue"!==n&&e.startsWith(n);return(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-px h-4",style:{background:"rgba(51,65,85,0.6)"}}),(0,t.jsx)(r.default,{href:n,className:"text-sm font-medium transition-colors px-1",style:{color:a?l??"rgb(226,232,240)":"rgba(148,163,184,0.8)"},children:s})]},n)}),l&&"single"!==l.type&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-px h-4",style:{background:"rgba(51,65,85,0.6)"}}),(0,t.jsx)(i,{monorepo:l,activeWorkspace:a,onSelect:o,isPro:d})]})]})}],50667)},83329,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(22016),s=e.i(50667);let l="rgb(52,211,153)",a={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)"},o={pending:"rgb(148,163,184)",accepted:l,rejected:"rgb(248,113,113)"};function i({label:e,children:r}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-xs font-semibold text-slate-500 uppercase tracking-widest",children:e}),(0,t.jsx)("div",{className:"text-sm text-slate-300 leading-relaxed",children:r})]})}e.s(["default",0,function({params:e}){let{id:c}=(0,r.use)(e),u=decodeURIComponent(c),[d,p]=(0,r.useState)(null),[f,x]=(0,r.useState)(!0),[g,h]=(0,r.useState)(!1),[m,b]=(0,r.useState)(!1);async function y(e){if(d){b(!0);try{(await fetch(`/api/green/insights/${encodeURIComponent(u)}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:e})})).ok&&p(t=>t?{...t,status:e}:t)}finally{b(!1)}}}if((0,r.useEffect)(()=>{fetch(`/api/green/insights/${encodeURIComponent(u)}`).then(async e=>{404===e.status?h(!0):p((await e.json()).insight)}).catch(()=>h(!0)).finally(()=>x(!1))},[u]),f)return(0,t.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,t.jsx)(s.PrismDock,{}),(0,t.jsx)("main",{className:"flex-1 flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-slate-500 text-sm",children:"Loading…"})})]});if(g||!d)return(0,t.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,t.jsx)(s.PrismDock,{}),(0,t.jsxs)("main",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[(0,t.jsx)("p",{className:"text-slate-400",children:"Insight not found."}),(0,t.jsx)(n.default,{href:"/green/insights",className:"text-sm hover:underline",style:{color:l},children:"← Insights"})]})]});let j=d.status??("auto"===d.kind?"pending":void 0);return(0,t.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,t.jsx)(s.PrismDock,{}),(0,t.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,t.jsxs)("div",{className:"w-full flex items-center gap-2 text-sm",children:[(0,t.jsx)(n.default,{href:"/green",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"GREEN"}),(0,t.jsx)("span",{className:"text-slate-700",children:"/"}),(0,t.jsx)(n.default,{href:"/green/insights",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"Insights"}),(0,t.jsx)("span",{className:"text-slate-700",children:"/"}),(0,t.jsx)("span",{className:"text-slate-400 truncate max-w-xs",children:d.title})]}),(0,t.jsxs)("div",{className:"w-full flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsx)("h1",{className:"text-xl font-semibold text-slate-100 flex-1",children:d.title}),(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,t.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:"rgba(52,211,153,0.1)",color:l,border:"1px solid rgba(52,211,153,0.25)"},children:d.kind}),j&&(0,t.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:(o[j]??"rgb(148,163,184)")+"15",color:o[j]??"rgb(148,163,184)",border:`1px solid ${o[j]??"rgb(148,163,184)"}28`},children:j})]})]}),d.generated_at&&(0,t.jsxs)("p",{className:"text-xs text-slate-600 font-mono",children:["Generated ",new Date(d.generated_at).toLocaleString()]})]}),(0,t.jsxs)("div",{className:"w-full rounded-xl p-6 flex flex-col gap-5",style:a,children:[(0,t.jsx)(i,{label:"Description",children:d.description}),(0,t.jsx)("div",{className:"border-t",style:{borderColor:"var(--border-default)"}}),(0,t.jsx)(i,{label:"Prompt Template",children:(0,t.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:d.prompt_template})}),d.supporting_evidence&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"border-t",style:{borderColor:"var(--border-default)"}}),d.supporting_evidence.capability_ids?.length?(0,t.jsx)(i,{label:"Supporting Capabilities",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-1 mt-0.5",children:d.supporting_evidence.capability_ids.map(e=>(0,t.jsx)(n.default,{href:`/amber/capabilities/${encodeURIComponent(e)}`,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:l,border:"1px solid rgba(52,211,153,0.2)"},children:e},e))})}):null,d.supporting_evidence.metric_pattern&&(0,t.jsx)(i,{label:"Metric Pattern",children:(0,t.jsx)("span",{className:"font-mono text-xs text-slate-400",children:d.supporting_evidence.metric_pattern})})]})]}),"auto"===d.kind&&(0,t.jsxs)("div",{className:"w-full flex flex-wrap gap-3",children:["accepted"!==j&&(0,t.jsx)("button",{onClick:()=>y("accepted"),disabled:m,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:l,border:"1px solid rgba(52,211,153,0.3)"},children:"Accept"}),"rejected"!==j&&(0,t.jsx)("button",{onClick:()=>y("rejected"),disabled:m,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"!==j&&(0,t.jsx)("button",{onClick:()=>y("pending"),disabled:m,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,t.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,t.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.11.3"," · GREEN / Insights"]})]})}])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return i},searchParamsToUrlQuery:function(){return l},urlQueryToSearchParams:function(){return o}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function l(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,a(e));else t.set(r,a(n));return t}function i(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return m},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return j},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return g},ST:function(){return h},WEB_VITALS:function(){return l},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return i},isResSent:function(){return p},loadGetInitialProps:function(){return x},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return N}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let l=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>o.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function x(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await x(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&p(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let g="u">typeof performance,h=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class j extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function N(e){return JSON.stringify({message:e.message,stack:e.stack})}},33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return c},urlObjectKeys:function(){return i}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let l=e.r(90809)._(e.r(98183)),a=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",o=e.hash||"",i=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),i&&"object"==typeof i&&(i=String(l.urlQueryToSearchParams(i)));let u=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),o&&"#"!==o[0]&&(o="#"+o),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${s}${u}${o}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return o(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(71645);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=l(e,n)),t&&(s.current=l(t,n))},[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return l}});let n=e.r(18967),s=e.r(52817);function l(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return m},useLinkStatus:function(){return y}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let l=e.r(90809),a=e.r(43476),o=l._(e.r(71645)),i=e.r(95057),c=e.r(8372),u=e.r(18581),d=e.r(18967),p=e.r(5550);e.r(33525);let f=e.r(88540),x=e.r(91949),g=e.r(73668),h=e.r(9396);function m(t){var r,n;let s,l,m,[y,j]=(0,o.useOptimistic)(x.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:N,as:k,children:_,prefetch:w=null,passHref:P,replace:E,shallow:S,scroll:C,onClick:O,onMouseEnter:R,onTouchStart:T,legacyBehavior:I=!1,onNavigate:A,transitionTypes:L,ref:$,unstable_dynamicOnHover:U,...M}=t;s=_,I&&("string"==typeof s||"number"==typeof s)&&(s=(0,a.jsx)("a",{children:s}));let B=o.default.useContext(c.AppRouterContext),D=!1!==w,F=!1!==w?null===(n=w)||"auto"===n?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,K="string"==typeof(r=k||N)?r:(0,i.formatUrl)(r);if(I){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});l=o.default.Children.only(s)}let z=I?l&&"object"==typeof l&&l.ref:$,W=o.default.useCallback(e=>(null!==B&&(v.current=(0,x.mountLinkInstance)(e,K,B,F,D,j)),()=>{v.current&&((0,x.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,x.unmountPrefetchableInstance)(e)}),[D,K,B,F,j]),G={ref:(0,u.useMergedRef)(W,z),onClick(t){I||"function"!=typeof O||O(t),I&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(t),!B||t.defaultPrevented||function(t,r,n,s,l,a,i){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);o.default.startTransition(()=>{d(r,s?"replace":"push",!1===l?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,i)})}}(t,K,v,E,C,A,L)},onMouseEnter(e){I||"function"!=typeof R||R(e),I&&l.props&&"function"==typeof l.props.onMouseEnter&&l.props.onMouseEnter(e),B&&D&&(0,x.onNavigationIntent)(e.currentTarget,!0===U)},onTouchStart:function(e){I||"function"!=typeof T||T(e),I&&l.props&&"function"==typeof l.props.onTouchStart&&l.props.onTouchStart(e),B&&D&&(0,x.onNavigationIntent)(e.currentTarget,!0===U)}};return(0,d.isAbsoluteUrl)(K)?G.href=K:I&&!P&&("a"!==l.type||"href"in l.props)||(G.href=(0,p.addBasePath)(K)),m=I?o.default.cloneElement(l,G):(0,a.jsx)("a",{...M,...G,children:s}),(0,a.jsx)(b.Provider,{value:y,children:m})}e.r(84508);let b=(0,o.createContext)(x.IDLE_LINK_STATUS),y=()=>(0,o.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18566,(e,t,r)=>{t.exports=e.r(76562)},25010,e=>{"use strict";var t=e.i(71645);e.s(["useTargetPath",0,function(){let[e,r]=(0,t.useState)(""),[n,s]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{fetch("/api/config").then(e=>e.json()).then(e=>{let t=e.targetPath??"";r(t?`?target=${encodeURIComponent(t)}`:"")}).catch(()=>{}).finally(()=>s(!0))},[]),{tq:e,ready:n}}])},50667,36528,60888,13121,e=>{"use strict";var t=e.i(43476),r=e.i(22016),n=e.i(18566),s=e.i(71645);let l={monorepo:{tier:"pro",label:"Monorepo support"},aggregate_scan:{tier:"pro",label:"Aggregate workspace scan"},cross_workspace_insights:{tier:"pro",label:"Cross-workspace insights"},llm_insights:{tier:"pro",label:"AI-powered insights"},custom_queries:{tier:"pro",label:"Custom GREEN queries"},cross_layer_context:{tier:"pro",label:"Cross-layer context"},auto_insights:{tier:"pro",label:"Auto-generated insights"},team_sync:{tier:"team",label:"Team sync"},ci_integration:{tier:"team",label:"CI integration"},blueprint_explorer:{tier:"pro",label:"Blueprint Explorer"},forge_unlimited:{tier:"forge-pro",label:"forge0x2B unlimited"},forge_unlimited_generation:{tier:"forge-pro",label:"forge0x2B unlimited generation"}};function a(e){return"free"!==l[e].tier}e.s(["FREE_TIER_LOC_LIMIT",0,5e4,"showProBadge",0,a],36528);let o=()=>(0,t.jsx)("span",{className:"text-[10px] font-bold px-1 py-0.5 rounded leading-none",style:{background:"rgba(251,191,36,0.15)",color:"rgb(251,191,36)",border:"1px solid rgba(251,191,36,0.3)"},children:"PRO"});function i({monorepo:e,activeWorkspace:r,onSelect:n,isPro:l=!1}){let[c,u]=(0,s.useState)(!1),d=(0,s.useRef)(null);if((0,s.useEffect)(()=>{function e(e){d.current&&!d.current.contains(e.target)&&u(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),!e||"single"===e.type||0===e.packages.length)return null;let p=a("monorepo")&&!l;return(0,t.jsxs)("div",{className:"relative",ref:d,children:[(0,t.jsxs)("button",{onClick:()=>u(e=>!e),className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium transition-colors",style:{background:c?"rgba(51,65,85,0.5)":"rgba(51,65,85,0.25)",border:"1px solid rgba(51,65,85,0.5)",color:"rgb(148,163,184)"},title:`Monorepo: ${e.type}`,children:[(0,t.jsx)("span",{className:"font-mono",style:{color:"rgb(52,211,153)",fontSize:10},children:e.type.toUpperCase()}),(0,t.jsx)("span",{className:"max-w-[80px] truncate",children:r??"all workspaces"}),p&&(0,t.jsx)(o,{}),(0,t.jsx)("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"currentColor",className:"opacity-60",children:(0,t.jsx)("path",{d:"M1 2.5l3 3 3-3",stroke:"currentColor",strokeWidth:"1.2",fill:"none",strokeLinecap:"round"})})]}),c&&(0,t.jsxs)("div",{className:"absolute top-full mt-1 right-0 z-50 rounded-xl overflow-hidden py-1 min-w-[180px]",style:{background:"rgba(15,23,42,0.95)",backdropFilter:"blur(20px)",border:"1px solid rgba(51,65,85,0.5)",boxShadow:"0 4px 24px rgba(0,0,0,0.4)"},children:[(0,t.jsxs)("button",{className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 transition-colors hover:bg-white/5",style:{color:null===r?"rgb(52,211,153)":"rgb(148,163,184)"},onClick:()=>{n(null),u(!1)},children:[(0,t.jsx)("span",{className:"font-mono text-[10px] opacity-60",children:"∑"}),"All workspaces",null===r&&(0,t.jsx)("span",{className:"ml-auto text-[10px] opacity-60",children:"✓"})]}),(0,t.jsx)("div",{className:"my-1",style:{borderTop:"1px solid rgba(51,65,85,0.3)"}}),e.packages.map(e=>(0,t.jsxs)("button",{className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 transition-colors hover:bg-white/5",style:{color:r===e.name?"rgb(52,211,153)":"rgb(148,163,184)"},onClick:()=>{n(e.name),u(!1)},children:[(0,t.jsx)("span",{className:"font-mono text-[10px] opacity-50",children:"pkg"}),(0,t.jsx)("span",{className:"flex-1 truncate",children:e.name}),void 0!==e.loc&&(0,t.jsxs)("span",{className:"text-[10px] font-mono opacity-40",children:[(e.loc/1e3).toFixed(1),"k"]}),r===e.name&&(0,t.jsx)("span",{className:"text-[10px] opacity-60",children:"✓"})]},e.path))]})]})}var c=e.i(25010);function u(e){let[t,r]=(0,s.useState)(null),[n,l]=(0,s.useState)(null),[a,o]=(0,s.useState)(!1);(0,s.useEffect)(()=>{Promise.all([fetch(`/api/monorepo${e}`).then(e=>e.json()).catch(()=>({monorepo:null})),fetch(`/api/monorepo/active${e}`).then(e=>e.json()).catch(()=>({workspace:null}))]).then(([e,t])=>{r(e.monorepo??null),l(t.workspace??null)}).finally(()=>o(!0))},[e]);let i=(0,s.useCallback)(async t=>{l(t),await fetch(`/api/monorepo/active${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({workspace:t})}).catch(()=>{})},[e]),c=n?`&workspace=${encodeURIComponent(n)}`:"";return{monorepo:t,activeWorkspace:n,setActiveWorkspace:i,ready:a,wq:c}}e.s(["useActiveWorkspace",0,u],60888);let d={tier:"free",issuedAt:null,expiresAt:null,userId:null,features:[],isValid:!1,isExpired:!1,licenseKey:null,instanceId:null,productName:null,subscriptionStatus:null,validatedAt:null,revalidationDue:null,gracePeriodEnd:null,activationLimit:null,activationUsage:null,cacheStatus:"no-cache",daysSinceValidation:null};function p(e){let[t,r]=(0,s.useState)(null),[n,l]=(0,s.useState)(!1),[a,o]=(0,s.useState)(0);(0,s.useEffect)(()=>{fetch(`/api/license${e}`).then(e=>e.json()).then(e=>r(e)).catch(()=>r(d)).finally(()=>l(!0))},[e,a]);let i=(0,s.useCallback)(()=>o(e=>e+1),[]),c=!!t&&"free"!==t.tier&&"forge-pro"!==t.tier&&t.isValid&&!t.isExpired&&"expired"!==t.cacheStatus;return{license:t,ready:n,refresh:i,isPro:c}}e.s(["useLicense",0,p],13121);let f=[{href:"/blue",label:"BLUE",color:"rgb(59,130,246)"},{href:"/amber",label:"AMBER",color:"rgb(251,191,36)"},{href:"/green",label:"GREEN",color:"rgb(52,211,153)"},{href:"/pricing",label:"Plans",color:"rgb(167,139,250)"},{href:"/settings",label:"⚙",color:void 0}];e.s(["PrismDock",0,function(){let e=(0,n.usePathname)(),{tq:s}=(0,c.useTargetPath)(),{monorepo:l,activeWorkspace:a,setActiveWorkspace:o}=u(s),{isPro:d}=p(s),x=d?[...f.slice(0,1),{href:"/blue/explorer",label:"Explorer",color:"rgb(56,189,248)"},...f.slice(1)]:f;return(0,t.jsxs)("div",{className:"fixed top-3 left-1/2 -translate-x-1/2 z-50 flex items-center gap-2 px-4 py-2 rounded-full",style:{background:"linear-gradient(to bottom, rgba(15,23,42,0.4), rgba(2,6,23,0.5))",backdropFilter:"blur(24px) saturate(1.5)",border:"1px solid rgba(51,65,85,0.3)",boxShadow:"0 1px 2px rgba(15,23,42,.06),0 4px 12px rgba(15,23,42,.12),0 16px 40px rgba(15,23,42,.18),inset 0 1px 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(15,23,42,.4)"},children:[(0,t.jsxs)(r.default,{href:"/",className:"flex items-center gap-1.5 group",children:[(0,t.jsx)("span",{className:"text-sky-400 text-lg select-none",children:"✦"}),(0,t.jsxs)("span",{className:"text-slate-200 text-sm font-semibold tracking-tight group-hover:text-white transition-colors",children:["prism",(0,t.jsx)("span",{className:"font-mono text-sky-500",children:"0x2A"})]})]}),x.map(({href:n,label:s,color:l})=>{let a=e===n||"/blue"!==n&&e.startsWith(n);return(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-px h-4",style:{background:"rgba(51,65,85,0.6)"}}),(0,t.jsx)(r.default,{href:n,className:"text-sm font-medium transition-colors px-1",style:{color:a?l??"rgb(226,232,240)":"rgba(148,163,184,0.8)"},children:s})]},n)}),l&&"single"!==l.type&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-px h-4",style:{background:"rgba(51,65,85,0.6)"}}),(0,t.jsx)(i,{monorepo:l,activeWorkspace:a,onSelect:o,isPro:d})]})]})}],50667)},83329,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(22016),s=e.i(50667);let l="rgb(52,211,153)",a={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)"},o={pending:"rgb(148,163,184)",accepted:l,rejected:"rgb(248,113,113)"};function i({label:e,children:r}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-xs font-semibold text-slate-500 uppercase tracking-widest",children:e}),(0,t.jsx)("div",{className:"text-sm text-slate-300 leading-relaxed",children:r})]})}e.s(["default",0,function({params:e}){let{id:c}=(0,r.use)(e),u=decodeURIComponent(c),[d,p]=(0,r.useState)(null),[f,x]=(0,r.useState)(!0),[g,h]=(0,r.useState)(!1),[m,b]=(0,r.useState)(!1);async function y(e){if(d){b(!0);try{(await fetch(`/api/green/insights/${encodeURIComponent(u)}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:e})})).ok&&p(t=>t?{...t,status:e}:t)}finally{b(!1)}}}if((0,r.useEffect)(()=>{fetch(`/api/green/insights/${encodeURIComponent(u)}`).then(async e=>{404===e.status?h(!0):p((await e.json()).insight)}).catch(()=>h(!0)).finally(()=>x(!1))},[u]),f)return(0,t.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,t.jsx)(s.PrismDock,{}),(0,t.jsx)("main",{className:"flex-1 flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-slate-500 text-sm",children:"Loading…"})})]});if(g||!d)return(0,t.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,t.jsx)(s.PrismDock,{}),(0,t.jsxs)("main",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[(0,t.jsx)("p",{className:"text-slate-400",children:"Insight not found."}),(0,t.jsx)(n.default,{href:"/green/insights",className:"text-sm hover:underline",style:{color:l},children:"← Insights"})]})]});let j=d.status??("auto"===d.kind?"pending":void 0);return(0,t.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,t.jsx)(s.PrismDock,{}),(0,t.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,t.jsxs)("div",{className:"w-full flex items-center gap-2 text-sm",children:[(0,t.jsx)(n.default,{href:"/green",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"GREEN"}),(0,t.jsx)("span",{className:"text-slate-700",children:"/"}),(0,t.jsx)(n.default,{href:"/green/insights",className:"text-slate-500 hover:text-slate-300 transition-colors",children:"Insights"}),(0,t.jsx)("span",{className:"text-slate-700",children:"/"}),(0,t.jsx)("span",{className:"text-slate-400 truncate max-w-xs",children:d.title})]}),(0,t.jsxs)("div",{className:"w-full flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsx)("h1",{className:"text-xl font-semibold text-slate-100 flex-1",children:d.title}),(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,t.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:"rgba(52,211,153,0.1)",color:l,border:"1px solid rgba(52,211,153,0.25)"},children:d.kind}),j&&(0,t.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:(o[j]??"rgb(148,163,184)")+"15",color:o[j]??"rgb(148,163,184)",border:`1px solid ${o[j]??"rgb(148,163,184)"}28`},children:j})]})]}),d.generated_at&&(0,t.jsxs)("p",{className:"text-xs text-slate-600 font-mono",children:["Generated ",new Date(d.generated_at).toLocaleString()]})]}),(0,t.jsxs)("div",{className:"w-full rounded-xl p-6 flex flex-col gap-5",style:a,children:[(0,t.jsx)(i,{label:"Description",children:d.description}),(0,t.jsx)("div",{className:"border-t",style:{borderColor:"var(--border-default)"}}),(0,t.jsx)(i,{label:"Prompt Template",children:(0,t.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:d.prompt_template})}),d.supporting_evidence&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"border-t",style:{borderColor:"var(--border-default)"}}),d.supporting_evidence.capability_ids?.length?(0,t.jsx)(i,{label:"Supporting Capabilities",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-1 mt-0.5",children:d.supporting_evidence.capability_ids.map(e=>(0,t.jsx)(n.default,{href:`/amber/capabilities/${encodeURIComponent(e)}`,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:l,border:"1px solid rgba(52,211,153,0.2)"},children:e},e))})}):null,d.supporting_evidence.metric_pattern&&(0,t.jsx)(i,{label:"Metric Pattern",children:(0,t.jsx)("span",{className:"font-mono text-xs text-slate-400",children:d.supporting_evidence.metric_pattern})})]})]}),"auto"===d.kind&&(0,t.jsxs)("div",{className:"w-full flex flex-wrap gap-3",children:["accepted"!==j&&(0,t.jsx)("button",{onClick:()=>y("accepted"),disabled:m,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:l,border:"1px solid rgba(52,211,153,0.3)"},children:"Accept"}),"rejected"!==j&&(0,t.jsx)("button",{onClick:()=>y("rejected"),disabled:m,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"!==j&&(0,t.jsx)("button",{onClick:()=>y("pending"),disabled:m,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,t.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,t.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.12.0"," · GREEN / Insights"]})]})}])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={assign:function(){return i},searchParamsToUrlQuery:function(){return l},urlQueryToSearchParams:function(){return o}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});function l(e){let t={};for(let[r,s]of e.entries()){let e=t[r];void 0===e?t[r]=s:Array.isArray(e)?e.push(s):t[r]=[e,s]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,s]of Object.entries(e))if(Array.isArray(s))for(let e of s)t.append(r,a(e));else t.set(r,a(s));return t}function i(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,s]of r.entries())e.append(t,s)}return e}},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return j},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return m},ST:function(){return h},WEB_VITALS:function(){return l},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return i},isResSent:function(){return p},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return x},stringifyError:function(){return N}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});let l=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...s)=>(r||(r=!0,t=e(...s)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>o.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function x(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let s=await e.getInitialProps(t);if(r&&p(r))return s;if(!s)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${s}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return s}let m="u">typeof performance,h=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class j extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function N(e){return JSON.stringify({message:e.message,stack:e.stack})}},33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return s}});let s=e=>{}},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={formatUrl:function(){return o},formatWithValidation:function(){return c},urlObjectKeys:function(){return i}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});let l=e.r(90809)._(e.r(98183)),a=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,s=e.protocol||"",n=e.pathname||"",o=e.hash||"",i=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),i&&"object"==typeof i&&(i=String(l.urlQueryToSearchParams(i)));let u=e.search||i&&`?${i}`||"";return s&&!s.endsWith(":")&&(s+=":"),e.slashes||(!s||a.test(s))&&!1!==c?(c="//"+(c||""),n&&"/"!==n[0]&&(n="/"+n)):c||(c=""),o&&"#"!==o[0]&&(o="#"+o),u&&"?"!==u[0]&&(u="?"+u),n=n.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${s}${c}${n}${u}${o}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return o(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return n}});let s=e.r(71645);function n(e,t){let r=(0,s.useRef)(null),n=(0,s.useRef)(null);return(0,s.useCallback)(s=>{if(null===s){let e=r.current;e&&(r.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(r.current=l(e,s)),t&&(n.current=l(t,s))},[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return l}});let s=e.r(18967),n=e.r(52817);function l(e){if(!(0,s.isAbsoluteUrl)(e))return!0;try{let t=(0,s.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,n.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return s}});let s=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={default:function(){return g},useLinkStatus:function(){return y}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});let l=e.r(90809),a=e.r(43476),o=l._(e.r(71645)),i=e.r(95057),c=e.r(8372),u=e.r(18581),d=e.r(18967),p=e.r(5550);e.r(33525);let x=e.r(88540),f=e.r(91949),m=e.r(73668),h=e.r(9396);function g(t){var r,s;let n,l,g,[y,j]=(0,o.useOptimistic)(f.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:N,as:k,children:w,prefetch:E=null,passHref:_,replace:P,shallow:S,scroll:C,onClick:O,onMouseEnter:R,onTouchStart:T,legacyBehavior:A=!1,onNavigate:$,transitionTypes:L,ref:I,unstable_dynamicOnHover:M,...U}=t;n=w,A&&("string"==typeof n||"number"==typeof n)&&(n=(0,a.jsx)("a",{children:n}));let B=o.default.useContext(c.AppRouterContext),D=!1!==E,F=!1!==E?null===(s=E)||"auto"===s?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,z="string"==typeof(r=k||N)?r:(0,i.formatUrl)(r);if(A){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});l=o.default.Children.only(n)}let G=A?l&&"object"==typeof l&&l.ref:I,K=o.default.useCallback(e=>(null!==B&&(v.current=(0,f.mountLinkInstance)(e,z,B,F,D,j)),()=>{v.current&&((0,f.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,f.unmountPrefetchableInstance)(e)}),[D,z,B,F,j]),q={ref:(0,u.useMergedRef)(K,G),onClick(t){A||"function"!=typeof O||O(t),A&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(t),!B||t.defaultPrevented||function(t,r,s,n,l,a,i){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){n&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);o.default.startTransition(()=>{d(r,n?"replace":"push",!1===l?x.ScrollBehavior.NoScroll:x.ScrollBehavior.Default,s.current,i)})}}(t,z,v,P,C,$,L)},onMouseEnter(e){A||"function"!=typeof R||R(e),A&&l.props&&"function"==typeof l.props.onMouseEnter&&l.props.onMouseEnter(e),B&&D&&(0,f.onNavigationIntent)(e.currentTarget,!0===M)},onTouchStart:function(e){A||"function"!=typeof T||T(e),A&&l.props&&"function"==typeof l.props.onTouchStart&&l.props.onTouchStart(e),B&&D&&(0,f.onNavigationIntent)(e.currentTarget,!0===M)}};return(0,d.isAbsoluteUrl)(z)?q.href=z:A&&!_&&("a"!==l.type||"href"in l.props)||(q.href=(0,p.addBasePath)(z)),g=A?o.default.cloneElement(l,q):(0,a.jsx)("a",{...U,...q,children:n}),(0,a.jsx)(b.Provider,{value:y,children:g})}e.r(84508);let b=(0,o.createContext)(f.IDLE_LINK_STATUS),y=()=>(0,o.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18566,(e,t,r)=>{t.exports=e.r(76562)},25010,e=>{"use strict";var t=e.i(71645);e.s(["useTargetPath",0,function(){let[e,r]=(0,t.useState)(""),[s,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{fetch("/api/config").then(e=>e.json()).then(e=>{let t=e.targetPath??"";r(t?`?target=${encodeURIComponent(t)}`:"")}).catch(()=>{}).finally(()=>n(!0))},[]),{tq:e,ready:s}}])},50667,36528,60888,13121,e=>{"use strict";var t=e.i(43476),r=e.i(22016),s=e.i(18566),n=e.i(71645);let l={monorepo:{tier:"pro",label:"Monorepo support"},aggregate_scan:{tier:"pro",label:"Aggregate workspace scan"},cross_workspace_insights:{tier:"pro",label:"Cross-workspace insights"},llm_insights:{tier:"pro",label:"AI-powered insights"},custom_queries:{tier:"pro",label:"Custom GREEN queries"},cross_layer_context:{tier:"pro",label:"Cross-layer context"},auto_insights:{tier:"pro",label:"Auto-generated insights"},team_sync:{tier:"team",label:"Team sync"},ci_integration:{tier:"team",label:"CI integration"},blueprint_explorer:{tier:"pro",label:"Blueprint Explorer"},forge_unlimited:{tier:"forge-pro",label:"forge0x2B unlimited"},forge_unlimited_generation:{tier:"forge-pro",label:"forge0x2B unlimited generation"}};function a(e){return"free"!==l[e].tier}e.s(["FREE_TIER_LOC_LIMIT",0,5e4,"showProBadge",0,a],36528);let o=()=>(0,t.jsx)("span",{className:"text-[10px] font-bold px-1 py-0.5 rounded leading-none",style:{background:"rgba(251,191,36,0.15)",color:"rgb(251,191,36)",border:"1px solid rgba(251,191,36,0.3)"},children:"PRO"});function i({monorepo:e,activeWorkspace:r,onSelect:s,isPro:l=!1}){let[c,u]=(0,n.useState)(!1),d=(0,n.useRef)(null);if((0,n.useEffect)(()=>{function e(e){d.current&&!d.current.contains(e.target)&&u(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),!e||"single"===e.type||0===e.packages.length)return null;let p=a("monorepo")&&!l;return(0,t.jsxs)("div",{className:"relative",ref:d,children:[(0,t.jsxs)("button",{onClick:()=>u(e=>!e),className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium transition-colors",style:{background:c?"rgba(51,65,85,0.5)":"rgba(51,65,85,0.25)",border:"1px solid rgba(51,65,85,0.5)",color:"rgb(148,163,184)"},title:`Monorepo: ${e.type}`,children:[(0,t.jsx)("span",{className:"font-mono",style:{color:"rgb(52,211,153)",fontSize:10},children:e.type.toUpperCase()}),(0,t.jsx)("span",{className:"max-w-[80px] truncate",children:r??"all workspaces"}),p&&(0,t.jsx)(o,{}),(0,t.jsx)("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"currentColor",className:"opacity-60",children:(0,t.jsx)("path",{d:"M1 2.5l3 3 3-3",stroke:"currentColor",strokeWidth:"1.2",fill:"none",strokeLinecap:"round"})})]}),c&&(0,t.jsxs)("div",{className:"absolute top-full mt-1 right-0 z-50 rounded-xl overflow-hidden py-1 min-w-[180px]",style:{background:"rgba(15,23,42,0.95)",backdropFilter:"blur(20px)",border:"1px solid rgba(51,65,85,0.5)",boxShadow:"0 4px 24px rgba(0,0,0,0.4)"},children:[(0,t.jsxs)("button",{className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 transition-colors hover:bg-white/5",style:{color:null===r?"rgb(52,211,153)":"rgb(148,163,184)"},onClick:()=>{s(null),u(!1)},children:[(0,t.jsx)("span",{className:"font-mono text-[10px] opacity-60",children:"∑"}),"All workspaces",null===r&&(0,t.jsx)("span",{className:"ml-auto text-[10px] opacity-60",children:"✓"})]}),(0,t.jsx)("div",{className:"my-1",style:{borderTop:"1px solid rgba(51,65,85,0.3)"}}),e.packages.map(e=>(0,t.jsxs)("button",{className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 transition-colors hover:bg-white/5",style:{color:r===e.name?"rgb(52,211,153)":"rgb(148,163,184)"},onClick:()=>{s(e.name),u(!1)},children:[(0,t.jsx)("span",{className:"font-mono text-[10px] opacity-50",children:"pkg"}),(0,t.jsx)("span",{className:"flex-1 truncate",children:e.name}),void 0!==e.loc&&(0,t.jsxs)("span",{className:"text-[10px] font-mono opacity-40",children:[(e.loc/1e3).toFixed(1),"k"]}),r===e.name&&(0,t.jsx)("span",{className:"text-[10px] opacity-60",children:"✓"})]},e.path))]})]})}var c=e.i(25010);function u(e){let[t,r]=(0,n.useState)(null),[s,l]=(0,n.useState)(null),[a,o]=(0,n.useState)(!1);(0,n.useEffect)(()=>{Promise.all([fetch(`/api/monorepo${e}`).then(e=>e.json()).catch(()=>({monorepo:null})),fetch(`/api/monorepo/active${e}`).then(e=>e.json()).catch(()=>({workspace:null}))]).then(([e,t])=>{r(e.monorepo??null),l(t.workspace??null)}).finally(()=>o(!0))},[e]);let i=(0,n.useCallback)(async t=>{l(t),await fetch(`/api/monorepo/active${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({workspace:t})}).catch(()=>{})},[e]),c=s?`&workspace=${encodeURIComponent(s)}`:"";return{monorepo:t,activeWorkspace:s,setActiveWorkspace:i,ready:a,wq:c}}e.s(["useActiveWorkspace",0,u],60888);let d={tier:"free",issuedAt:null,expiresAt:null,userId:null,features:[],isValid:!1,isExpired:!1,licenseKey:null,instanceId:null,productName:null,subscriptionStatus:null,validatedAt:null,revalidationDue:null,gracePeriodEnd:null,activationLimit:null,activationUsage:null,cacheStatus:"no-cache",daysSinceValidation:null};function p(e){let[t,r]=(0,n.useState)(null),[s,l]=(0,n.useState)(!1),[a,o]=(0,n.useState)(0);(0,n.useEffect)(()=>{fetch(`/api/license${e}`).then(e=>e.json()).then(e=>r(e)).catch(()=>r(d)).finally(()=>l(!0))},[e,a]);let i=(0,n.useCallback)(()=>o(e=>e+1),[]),c=!!t&&"free"!==t.tier&&"forge-pro"!==t.tier&&t.isValid&&!t.isExpired&&"expired"!==t.cacheStatus;return{license:t,ready:s,refresh:i,isPro:c}}e.s(["useLicense",0,p],13121);let x=[{href:"/blue",label:"BLUE",color:"rgb(59,130,246)"},{href:"/amber",label:"AMBER",color:"rgb(251,191,36)"},{href:"/green",label:"GREEN",color:"rgb(52,211,153)"},{href:"/pricing",label:"Plans",color:"rgb(167,139,250)"},{href:"/settings",label:"⚙",color:void 0}];e.s(["PrismDock",0,function(){let e=(0,s.usePathname)(),{tq:n}=(0,c.useTargetPath)(),{monorepo:l,activeWorkspace:a,setActiveWorkspace:o}=u(n),{isPro:d}=p(n),f=d?[...x.slice(0,1),{href:"/blue/explorer",label:"Explorer",color:"rgb(56,189,248)"},...x.slice(1)]:x;return(0,t.jsxs)("div",{className:"fixed top-3 left-1/2 -translate-x-1/2 z-50 flex items-center gap-2 px-4 py-2 rounded-full",style:{background:"linear-gradient(to bottom, rgba(15,23,42,0.4), rgba(2,6,23,0.5))",backdropFilter:"blur(24px) saturate(1.5)",border:"1px solid rgba(51,65,85,0.3)",boxShadow:"0 1px 2px rgba(15,23,42,.06),0 4px 12px rgba(15,23,42,.12),0 16px 40px rgba(15,23,42,.18),inset 0 1px 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(15,23,42,.4)"},children:[(0,t.jsxs)(r.default,{href:"/",className:"flex items-center gap-1.5 group",children:[(0,t.jsx)("span",{className:"text-sky-400 text-lg select-none",children:"✦"}),(0,t.jsxs)("span",{className:"text-slate-200 text-sm font-semibold tracking-tight group-hover:text-white transition-colors",children:["prism",(0,t.jsx)("span",{className:"font-mono text-sky-500",children:"0x2A"})]})]}),f.map(({href:s,label:n,color:l})=>{let a=e===s||"/blue"!==s&&e.startsWith(s);return(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-px h-4",style:{background:"rgba(51,65,85,0.6)"}}),(0,t.jsx)(r.default,{href:s,className:"text-sm font-medium transition-colors px-1",style:{color:a?l??"rgb(226,232,240)":"rgba(148,163,184,0.8)"},children:n})]},s)}),l&&"single"!==l.type&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-px h-4",style:{background:"rgba(51,65,85,0.6)"}}),(0,t.jsx)(i,{monorepo:l,activeWorkspace:a,onSelect:o,isPro:d})]})]})}],50667)},527,e=>{"use strict";var t=e.i(43476),r=e.i(22016);e.s(["DemoModeNotice",0,function({botName:e,botColor:s,botTagline:n}){return(0,t.jsxs)("div",{className:"max-w-3xl mx-auto px-6 py-16",children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-3 mb-2",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold",style:{color:s},children:e}),(0,t.jsx)("span",{className:"text-sm text-slate-500",children:n})]}),(0,t.jsxs)("div",{className:"mt-8 rounded-2xl p-6",style:{background:"rgba(15,23,42,0.6)",border:"1px solid rgba(51,65,85,0.5)"},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,t.jsx)("div",{className:"w-2 h-2 rounded-full",style:{background:s}}),(0,t.jsx)("span",{className:"text-xs font-mono uppercase tracking-widest text-slate-400",children:"Public Preview"})]}),(0,t.jsxs)("h2",{className:"text-xl font-semibold text-slate-200 mb-3",children:["This is the public preview of ",e]}),(0,t.jsxs)("p",{className:"text-slate-400 leading-relaxed mb-5",children:[e," runs ",(0,t.jsx)("strong",{children:"locally on your machine"})," to scan your codebase. The dashboard you're looking at is the public marketing preview — there's no codebase to scan here."]}),(0,t.jsxs)("p",{className:"text-slate-400 leading-relaxed mb-5",children:["To use ",e," on YOUR project, install prism0x2A locally:"]}),(0,t.jsxs)("div",{className:"rounded-lg p-4 font-mono text-sm",style:{background:"rgba(2,6,23,0.8)",border:"1px solid rgba(51,65,85,0.4)"},children:[(0,t.jsxs)("div",{className:"text-slate-300",children:[(0,t.jsx)("span",{style:{color:"rgb(52,211,153)"},children:"$"})," ","npm install --save-dev prism0x2a"]}),(0,t.jsxs)("div",{className:"text-slate-300 mt-1",children:[(0,t.jsx)("span",{style:{color:"rgb(52,211,153)"},children:"$"})," ","npx prism dev"]})]}),(0,t.jsxs)("p",{className:"text-xs text-slate-500 mt-4 leading-relaxed",children:["Free up to 50k LOC. Dashboard opens at"," ",(0,t.jsx)("code",{className:"text-slate-400",children:"localhost:3001"}),". No cloud, no data leaves your machine."]}),(0,t.jsxs)("div",{className:"flex gap-3 mt-6",children:[(0,t.jsx)(r.default,{href:"/#quickstart",className:"px-5 py-2.5 rounded-lg text-sm font-semibold transition-colors",style:{background:s,color:"rgb(15,23,42)"},children:"Full quickstart →"}),(0,t.jsx)(r.default,{href:"/pricing",className:"px-5 py-2.5 rounded-lg text-sm font-semibold text-slate-200 transition-colors",style:{background:"rgba(51,65,85,0.4)",border:"1px solid rgba(71,85,105,0.4)"},children:"View pricing"})]})]}),(0,t.jsx)("div",{className:"mt-6 text-center",children:(0,t.jsx)(r.default,{href:"/",className:"text-sm text-slate-500 hover:text-slate-300",children:"← Back to landing"})})]})},"SettingsDemoGuard",0,function(){return(0,t.jsxs)("div",{className:"max-w-lg mx-auto px-6 py-16",children:[(0,t.jsxs)("div",{className:"rounded-2xl p-6",style:{background:"rgba(15,23,42,0.6)",border:"1px solid rgba(51,65,85,0.5)"},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,t.jsx)("div",{className:"w-2 h-2 rounded-full bg-sky-400"}),(0,t.jsx)("span",{className:"text-xs font-mono uppercase tracking-widest text-slate-400",children:"Local only"})]}),(0,t.jsx)("h2",{className:"text-xl font-semibold text-slate-200 mb-3",children:"Settings are only available locally"}),(0,t.jsxs)("p",{className:"text-slate-400 leading-relaxed mb-5",children:["You're viewing the public marketing preview of"," ",(0,t.jsx)("span",{className:"font-mono text-sky-400",children:"prism0x2A"}),". The settings page stores your Anthropic API key and license in your local OS keychain — it only works when running on your own machine."]}),(0,t.jsxs)("div",{className:"rounded-lg p-4 font-mono text-sm mb-5",style:{background:"rgba(2,6,23,0.8)",border:"1px solid rgba(51,65,85,0.4)"},children:[(0,t.jsxs)("div",{className:"text-slate-300",children:[(0,t.jsx)("span",{style:{color:"rgb(52,211,153)"},children:"$"})," ","npm install --save-dev prism0x2a"]}),(0,t.jsxs)("div",{className:"text-slate-300 mt-1",children:[(0,t.jsx)("span",{style:{color:"rgb(52,211,153)"},children:"$"})," ","npx prism dev"]})]}),(0,t.jsxs)("p",{className:"text-xs text-slate-500 leading-relaxed mb-6",children:["Free up to 50k LOC. Dashboard opens at"," ",(0,t.jsx)("code",{className:"text-slate-400",children:"localhost:3001"}),". No cloud, no data leaves your machine."]}),(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)(r.default,{href:"/#quickstart",className:"px-5 py-2.5 rounded-lg text-sm font-semibold transition-colors",style:{background:"rgb(14,165,233)",color:"rgb(15,23,42)"},children:"Quickstart guide →"}),(0,t.jsx)(r.default,{href:"/pricing",className:"px-5 py-2.5 rounded-lg text-sm font-semibold text-slate-200 transition-colors",style:{background:"rgba(51,65,85,0.4)",border:"1px solid rgba(71,85,105,0.4)"},children:"View pricing"})]})]}),(0,t.jsx)("div",{className:"mt-6 text-center",children:(0,t.jsx)(r.default,{href:"/",className:"text-sm text-slate-500 hover:text-slate-300",children:"← Back to landing"})})]})},"useDemoMode",0,function(){let e=window.location.hostname;return e.includes(".vercel.app")||"prism0x2a.dev"===e||"www.prism0x2a.dev"===e}])},67334,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(22016),n=e.i(50667),l=e.i(527),a=e.i(25010),o=e.i(60888);let i="rgb(52,211,153)",c={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)"},u={background:"rgba(15,23,42,0.5)",border:"1px solid rgba(51,65,85,0.4)"};function d({label:e,value:r,accent:s}){return(0,t.jsxs)("div",{className:"rounded-lg px-4 py-3 flex flex-col gap-0.5",style:u,children:[(0,t.jsx)("span",{className:"text-xs text-slate-500 uppercase tracking-widest",children:e}),(0,t.jsx)("span",{className:"text-xl font-semibold font-mono",style:{color:s??"rgb(226,232,240)"},children:r})]})}e.s(["default",0,function(){let{tq:e,ready:u}=(0,a.useTargetPath)(),{wq:p}=(0,o.useActiveWorkspace)(e),[x,f]=(0,r.useState)(null),[m,h]=(0,r.useState)(null),[g,b]=(0,r.useState)(!0);(0,r.useEffect)(()=>{u&&(fetch(`/api/green/insights${e}${p}`).then(e=>e.json()).then(({counts:e})=>f(e??null)).catch(()=>{}),fetch(`/api/green/cross-layer${e}${p}`).then(e=>e.json()).then(({snapshot:e})=>h(e??null)).catch(()=>{}).finally(()=>b(!1)))},[u,p]);let y=[{href:"/green/insights",label:"Insights",icon:"✦",desc:x?`${x.stock} stock \xb7 ${x.auto} auto \xb7 ${x.custom} custom`:"Stock + AI-generated + custom"},{href:"/green/cross-layer",label:"Cross-Layer",icon:"🔗",desc:m?`${m.capability_count} caps \xb7 ${m.drifted_capability_count} drifted`:"BLUE + AMBER + GREEN view"},{href:"/green/queries",label:"Custom Queries",icon:"🔍",desc:x?`${x.custom} saved`:"User-defined GREEN queries"}];return(0,l.useDemoMode)()?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.PrismDock,{}),(0,t.jsx)(l.DemoModeNotice,{botName:"GREEN",botColor:"rgb(52,211,153)",botTagline:"Insights + Cross-Layer + Queries"})]}):(0,t.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,t.jsx)(n.PrismDock,{}),(0,t.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,t.jsxs)("div",{className:"w-full",children:[(0,t.jsxs)("h1",{className:"text-xl font-semibold text-slate-100 tracking-tight",children:[(0,t.jsx)("span",{className:"font-mono",style:{color:i},children:"GREEN"}),(0,t.jsx)("span",{className:"text-slate-400 text-sm font-normal ml-2",children:"Insights + Cross-Layer + Queries"})]}),m&&(0,t.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5 font-mono",children:["Cross-layer snapshot: ",new Date(m.generated_at).toLocaleString()]})]}),x&&(0,t.jsxs)("div",{className:"w-full grid grid-cols-3 gap-3",children:[(0,t.jsx)(d,{label:"Stock Queries",value:x.stock,accent:i}),(0,t.jsx)(d,{label:"Auto Insights",value:x.auto,accent:x.auto>0?i:"rgb(148,163,184)"}),(0,t.jsx)(d,{label:"Custom Queries",value:x.custom,accent:x.custom>0?i:"rgb(148,163,184)"})]}),m&&(0,t.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:c,children:[(0,t.jsx)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:"Cross-Layer Context"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs text-slate-500 uppercase tracking-widest",children:"Capabilities"}),(0,t.jsx)("p",{className:"text-xl font-mono font-semibold",style:{color:i},children:m.capability_count})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs text-slate-500 uppercase tracking-widest",children:"Drifted"}),(0,t.jsx)("p",{className:"text-xl font-mono font-semibold",style:{color:m.drifted_capability_count>0?"rgb(248,113,113)":i},children:m.drifted_capability_count})]})]}),(0,t.jsx)(s.default,{href:"/green/cross-layer",className:"text-xs mt-1 hover:underline",style:{color:i},children:"→ View full cross-layer analysis"})]}),!g&&!m&&!x&&(0,t.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:c,children:[(0,t.jsx)("span",{className:"text-4xl",children:"✦"}),(0,t.jsx)("p",{className:"text-slate-300 font-medium",children:"GREEN not yet initialized"}),(0,t.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,t.jsx)("div",{className:"flex gap-3 mt-2",children:(0,t.jsx)(s.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,t.jsx)("div",{className:"w-full grid grid-cols-3 gap-3",children:y.map(({href:e,label:r,icon:n,desc:l})=>(0,t.jsxs)(s.default,{href:e,className:"rounded-xl p-5 flex flex-col gap-2 transition-all hover:brightness-110",style:{...c,borderColor:i+"30"},children:[(0,t.jsx)("span",{className:"text-xl font-mono",style:{color:i},children:n}),(0,t.jsx)("span",{className:"text-sm font-semibold",style:{color:i},children:r}),(0,t.jsx)("span",{className:"text-xs text-slate-500",children:l})]},e))})]}),(0,t.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,t.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.11.3"," · GREEN"]})]})}])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={assign:function(){return i},searchParamsToUrlQuery:function(){return l},urlQueryToSearchParams:function(){return o}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});function l(e){let t={};for(let[r,s]of e.entries()){let e=t[r];void 0===e?t[r]=s:Array.isArray(e)?e.push(s):t[r]=[e,s]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,s]of Object.entries(e))if(Array.isArray(s))for(let e of s)t.append(r,a(e));else t.set(r,a(s));return t}function i(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,s]of r.entries())e.append(t,s)}return e}},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return j},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return m},ST:function(){return h},WEB_VITALS:function(){return l},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return i},isResSent:function(){return p},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return x},stringifyError:function(){return N}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});let l=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...s)=>(r||(r=!0,t=e(...s)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>o.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function x(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let s=await e.getInitialProps(t);if(r&&p(r))return s;if(!s)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${s}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return s}let m="u">typeof performance,h=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class j extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function N(e){return JSON.stringify({message:e.message,stack:e.stack})}},33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return s}});let s=e=>{}},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={formatUrl:function(){return o},formatWithValidation:function(){return c},urlObjectKeys:function(){return i}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});let l=e.r(90809)._(e.r(98183)),a=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,s=e.protocol||"",n=e.pathname||"",o=e.hash||"",i=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),i&&"object"==typeof i&&(i=String(l.urlQueryToSearchParams(i)));let u=e.search||i&&`?${i}`||"";return s&&!s.endsWith(":")&&(s+=":"),e.slashes||(!s||a.test(s))&&!1!==c?(c="//"+(c||""),n&&"/"!==n[0]&&(n="/"+n)):c||(c=""),o&&"#"!==o[0]&&(o="#"+o),u&&"?"!==u[0]&&(u="?"+u),n=n.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${s}${c}${n}${u}${o}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return o(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return n}});let s=e.r(71645);function n(e,t){let r=(0,s.useRef)(null),n=(0,s.useRef)(null);return(0,s.useCallback)(s=>{if(null===s){let e=r.current;e&&(r.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(r.current=l(e,s)),t&&(n.current=l(t,s))},[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return l}});let s=e.r(18967),n=e.r(52817);function l(e){if(!(0,s.isAbsoluteUrl)(e))return!0;try{let t=(0,s.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,n.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return s}});let s=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={default:function(){return g},useLinkStatus:function(){return y}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});let l=e.r(90809),a=e.r(43476),o=l._(e.r(71645)),i=e.r(95057),c=e.r(8372),u=e.r(18581),d=e.r(18967),p=e.r(5550);e.r(33525);let x=e.r(88540),f=e.r(91949),m=e.r(73668),h=e.r(9396);function g(t){var r,s;let n,l,g,[y,j]=(0,o.useOptimistic)(f.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:N,as:k,children:w,prefetch:E=null,passHref:_,replace:P,shallow:S,scroll:C,onClick:O,onMouseEnter:R,onTouchStart:T,legacyBehavior:A=!1,onNavigate:$,transitionTypes:L,ref:I,unstable_dynamicOnHover:M,...U}=t;n=w,A&&("string"==typeof n||"number"==typeof n)&&(n=(0,a.jsx)("a",{children:n}));let B=o.default.useContext(c.AppRouterContext),D=!1!==E,F=!1!==E?null===(s=E)||"auto"===s?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,z="string"==typeof(r=k||N)?r:(0,i.formatUrl)(r);if(A){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});l=o.default.Children.only(n)}let G=A?l&&"object"==typeof l&&l.ref:I,K=o.default.useCallback(e=>(null!==B&&(v.current=(0,f.mountLinkInstance)(e,z,B,F,D,j)),()=>{v.current&&((0,f.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,f.unmountPrefetchableInstance)(e)}),[D,z,B,F,j]),q={ref:(0,u.useMergedRef)(K,G),onClick(t){A||"function"!=typeof O||O(t),A&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(t),!B||t.defaultPrevented||function(t,r,s,n,l,a,i){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){n&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);o.default.startTransition(()=>{d(r,n?"replace":"push",!1===l?x.ScrollBehavior.NoScroll:x.ScrollBehavior.Default,s.current,i)})}}(t,z,v,P,C,$,L)},onMouseEnter(e){A||"function"!=typeof R||R(e),A&&l.props&&"function"==typeof l.props.onMouseEnter&&l.props.onMouseEnter(e),B&&D&&(0,f.onNavigationIntent)(e.currentTarget,!0===M)},onTouchStart:function(e){A||"function"!=typeof T||T(e),A&&l.props&&"function"==typeof l.props.onTouchStart&&l.props.onTouchStart(e),B&&D&&(0,f.onNavigationIntent)(e.currentTarget,!0===M)}};return(0,d.isAbsoluteUrl)(z)?q.href=z:A&&!_&&("a"!==l.type||"href"in l.props)||(q.href=(0,p.addBasePath)(z)),g=A?o.default.cloneElement(l,q):(0,a.jsx)("a",{...U,...q,children:n}),(0,a.jsx)(b.Provider,{value:y,children:g})}e.r(84508);let b=(0,o.createContext)(f.IDLE_LINK_STATUS),y=()=>(0,o.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18566,(e,t,r)=>{t.exports=e.r(76562)},25010,e=>{"use strict";var t=e.i(71645);e.s(["useTargetPath",0,function(){let[e,r]=(0,t.useState)(""),[s,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{fetch("/api/config").then(e=>e.json()).then(e=>{let t=e.targetPath??"";r(t?`?target=${encodeURIComponent(t)}`:"")}).catch(()=>{}).finally(()=>n(!0))},[]),{tq:e,ready:s}}])},50667,36528,60888,13121,e=>{"use strict";var t=e.i(43476),r=e.i(22016),s=e.i(18566),n=e.i(71645);let l={monorepo:{tier:"pro",label:"Monorepo support"},aggregate_scan:{tier:"pro",label:"Aggregate workspace scan"},cross_workspace_insights:{tier:"pro",label:"Cross-workspace insights"},llm_insights:{tier:"pro",label:"AI-powered insights"},custom_queries:{tier:"pro",label:"Custom GREEN queries"},cross_layer_context:{tier:"pro",label:"Cross-layer context"},auto_insights:{tier:"pro",label:"Auto-generated insights"},team_sync:{tier:"team",label:"Team sync"},ci_integration:{tier:"team",label:"CI integration"},blueprint_explorer:{tier:"pro",label:"Blueprint Explorer"},forge_unlimited:{tier:"forge-pro",label:"forge0x2B unlimited"},forge_unlimited_generation:{tier:"forge-pro",label:"forge0x2B unlimited generation"}};function a(e){return"free"!==l[e].tier}e.s(["FREE_TIER_LOC_LIMIT",0,5e4,"showProBadge",0,a],36528);let o=()=>(0,t.jsx)("span",{className:"text-[10px] font-bold px-1 py-0.5 rounded leading-none",style:{background:"rgba(251,191,36,0.15)",color:"rgb(251,191,36)",border:"1px solid rgba(251,191,36,0.3)"},children:"PRO"});function i({monorepo:e,activeWorkspace:r,onSelect:s,isPro:l=!1}){let[c,u]=(0,n.useState)(!1),d=(0,n.useRef)(null);if((0,n.useEffect)(()=>{function e(e){d.current&&!d.current.contains(e.target)&&u(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),!e||"single"===e.type||0===e.packages.length)return null;let p=a("monorepo")&&!l;return(0,t.jsxs)("div",{className:"relative",ref:d,children:[(0,t.jsxs)("button",{onClick:()=>u(e=>!e),className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium transition-colors",style:{background:c?"rgba(51,65,85,0.5)":"rgba(51,65,85,0.25)",border:"1px solid rgba(51,65,85,0.5)",color:"rgb(148,163,184)"},title:`Monorepo: ${e.type}`,children:[(0,t.jsx)("span",{className:"font-mono",style:{color:"rgb(52,211,153)",fontSize:10},children:e.type.toUpperCase()}),(0,t.jsx)("span",{className:"max-w-[80px] truncate",children:r??"all workspaces"}),p&&(0,t.jsx)(o,{}),(0,t.jsx)("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"currentColor",className:"opacity-60",children:(0,t.jsx)("path",{d:"M1 2.5l3 3 3-3",stroke:"currentColor",strokeWidth:"1.2",fill:"none",strokeLinecap:"round"})})]}),c&&(0,t.jsxs)("div",{className:"absolute top-full mt-1 right-0 z-50 rounded-xl overflow-hidden py-1 min-w-[180px]",style:{background:"rgba(15,23,42,0.95)",backdropFilter:"blur(20px)",border:"1px solid rgba(51,65,85,0.5)",boxShadow:"0 4px 24px rgba(0,0,0,0.4)"},children:[(0,t.jsxs)("button",{className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 transition-colors hover:bg-white/5",style:{color:null===r?"rgb(52,211,153)":"rgb(148,163,184)"},onClick:()=>{s(null),u(!1)},children:[(0,t.jsx)("span",{className:"font-mono text-[10px] opacity-60",children:"∑"}),"All workspaces",null===r&&(0,t.jsx)("span",{className:"ml-auto text-[10px] opacity-60",children:"✓"})]}),(0,t.jsx)("div",{className:"my-1",style:{borderTop:"1px solid rgba(51,65,85,0.3)"}}),e.packages.map(e=>(0,t.jsxs)("button",{className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 transition-colors hover:bg-white/5",style:{color:r===e.name?"rgb(52,211,153)":"rgb(148,163,184)"},onClick:()=>{s(e.name),u(!1)},children:[(0,t.jsx)("span",{className:"font-mono text-[10px] opacity-50",children:"pkg"}),(0,t.jsx)("span",{className:"flex-1 truncate",children:e.name}),void 0!==e.loc&&(0,t.jsxs)("span",{className:"text-[10px] font-mono opacity-40",children:[(e.loc/1e3).toFixed(1),"k"]}),r===e.name&&(0,t.jsx)("span",{className:"text-[10px] opacity-60",children:"✓"})]},e.path))]})]})}var c=e.i(25010);function u(e){let[t,r]=(0,n.useState)(null),[s,l]=(0,n.useState)(null),[a,o]=(0,n.useState)(!1);(0,n.useEffect)(()=>{Promise.all([fetch(`/api/monorepo${e}`).then(e=>e.json()).catch(()=>({monorepo:null})),fetch(`/api/monorepo/active${e}`).then(e=>e.json()).catch(()=>({workspace:null}))]).then(([e,t])=>{r(e.monorepo??null),l(t.workspace??null)}).finally(()=>o(!0))},[e]);let i=(0,n.useCallback)(async t=>{l(t),await fetch(`/api/monorepo/active${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({workspace:t})}).catch(()=>{})},[e]),c=s?`&workspace=${encodeURIComponent(s)}`:"";return{monorepo:t,activeWorkspace:s,setActiveWorkspace:i,ready:a,wq:c}}e.s(["useActiveWorkspace",0,u],60888);let d={tier:"free",issuedAt:null,expiresAt:null,userId:null,features:[],isValid:!1,isExpired:!1,licenseKey:null,instanceId:null,productName:null,subscriptionStatus:null,validatedAt:null,revalidationDue:null,gracePeriodEnd:null,activationLimit:null,activationUsage:null,cacheStatus:"no-cache",daysSinceValidation:null};function p(e){let[t,r]=(0,n.useState)(null),[s,l]=(0,n.useState)(!1),[a,o]=(0,n.useState)(0);(0,n.useEffect)(()=>{fetch(`/api/license${e}`).then(e=>e.json()).then(e=>r(e)).catch(()=>r(d)).finally(()=>l(!0))},[e,a]);let i=(0,n.useCallback)(()=>o(e=>e+1),[]),c=!!t&&"free"!==t.tier&&"forge-pro"!==t.tier&&t.isValid&&!t.isExpired&&"expired"!==t.cacheStatus;return{license:t,ready:s,refresh:i,isPro:c}}e.s(["useLicense",0,p],13121);let x=[{href:"/blue",label:"BLUE",color:"rgb(59,130,246)"},{href:"/amber",label:"AMBER",color:"rgb(251,191,36)"},{href:"/green",label:"GREEN",color:"rgb(52,211,153)"},{href:"/pricing",label:"Plans",color:"rgb(167,139,250)"},{href:"/settings",label:"⚙",color:void 0}];e.s(["PrismDock",0,function(){let e=(0,s.usePathname)(),{tq:n}=(0,c.useTargetPath)(),{monorepo:l,activeWorkspace:a,setActiveWorkspace:o}=u(n),{isPro:d}=p(n),f=d?[...x.slice(0,1),{href:"/blue/explorer",label:"Explorer",color:"rgb(56,189,248)"},...x.slice(1)]:x;return(0,t.jsxs)("div",{className:"fixed top-3 left-1/2 -translate-x-1/2 z-50 flex items-center gap-2 px-4 py-2 rounded-full",style:{background:"linear-gradient(to bottom, rgba(15,23,42,0.4), rgba(2,6,23,0.5))",backdropFilter:"blur(24px) saturate(1.5)",border:"1px solid rgba(51,65,85,0.3)",boxShadow:"0 1px 2px rgba(15,23,42,.06),0 4px 12px rgba(15,23,42,.12),0 16px 40px rgba(15,23,42,.18),inset 0 1px 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(15,23,42,.4)"},children:[(0,t.jsxs)(r.default,{href:"/",className:"flex items-center gap-1.5 group",children:[(0,t.jsx)("span",{className:"text-sky-400 text-lg select-none",children:"✦"}),(0,t.jsxs)("span",{className:"text-slate-200 text-sm font-semibold tracking-tight group-hover:text-white transition-colors",children:["prism",(0,t.jsx)("span",{className:"font-mono text-sky-500",children:"0x2A"})]})]}),f.map(({href:s,label:n,color:l})=>{let a=e===s||"/blue"!==s&&e.startsWith(s);return(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-px h-4",style:{background:"rgba(51,65,85,0.6)"}}),(0,t.jsx)(r.default,{href:s,className:"text-sm font-medium transition-colors px-1",style:{color:a?l??"rgb(226,232,240)":"rgba(148,163,184,0.8)"},children:n})]},s)}),l&&"single"!==l.type&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-px h-4",style:{background:"rgba(51,65,85,0.6)"}}),(0,t.jsx)(i,{monorepo:l,activeWorkspace:a,onSelect:o,isPro:d})]})]})}],50667)},527,e=>{"use strict";var t=e.i(43476),r=e.i(22016);e.s(["DemoModeNotice",0,function({botName:e,botColor:s,botTagline:n}){return(0,t.jsxs)("div",{className:"max-w-3xl mx-auto px-6 py-16",children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-3 mb-2",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold",style:{color:s},children:e}),(0,t.jsx)("span",{className:"text-sm text-slate-500",children:n})]}),(0,t.jsxs)("div",{className:"mt-8 rounded-2xl p-6",style:{background:"rgba(15,23,42,0.6)",border:"1px solid rgba(51,65,85,0.5)"},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,t.jsx)("div",{className:"w-2 h-2 rounded-full",style:{background:s}}),(0,t.jsx)("span",{className:"text-xs font-mono uppercase tracking-widest text-slate-400",children:"Public Preview"})]}),(0,t.jsxs)("h2",{className:"text-xl font-semibold text-slate-200 mb-3",children:["This is the public preview of ",e]}),(0,t.jsxs)("p",{className:"text-slate-400 leading-relaxed mb-5",children:[e," runs ",(0,t.jsx)("strong",{children:"locally on your machine"})," to scan your codebase. The dashboard you're looking at is the public marketing preview — there's no codebase to scan here."]}),(0,t.jsxs)("p",{className:"text-slate-400 leading-relaxed mb-5",children:["To use ",e," on YOUR project, install prism0x2A locally:"]}),(0,t.jsxs)("div",{className:"rounded-lg p-4 font-mono text-sm",style:{background:"rgba(2,6,23,0.8)",border:"1px solid rgba(51,65,85,0.4)"},children:[(0,t.jsxs)("div",{className:"text-slate-300",children:[(0,t.jsx)("span",{style:{color:"rgb(52,211,153)"},children:"$"})," ","npm install --save-dev prism0x2a"]}),(0,t.jsxs)("div",{className:"text-slate-300 mt-1",children:[(0,t.jsx)("span",{style:{color:"rgb(52,211,153)"},children:"$"})," ","npx prism dev"]})]}),(0,t.jsxs)("p",{className:"text-xs text-slate-500 mt-4 leading-relaxed",children:["Free up to 50k LOC. Dashboard opens at"," ",(0,t.jsx)("code",{className:"text-slate-400",children:"localhost:3001"}),". No cloud, no data leaves your machine."]}),(0,t.jsxs)("div",{className:"flex gap-3 mt-6",children:[(0,t.jsx)(r.default,{href:"/#quickstart",className:"px-5 py-2.5 rounded-lg text-sm font-semibold transition-colors",style:{background:s,color:"rgb(15,23,42)"},children:"Full quickstart →"}),(0,t.jsx)(r.default,{href:"/pricing",className:"px-5 py-2.5 rounded-lg text-sm font-semibold text-slate-200 transition-colors",style:{background:"rgba(51,65,85,0.4)",border:"1px solid rgba(71,85,105,0.4)"},children:"View pricing"})]})]}),(0,t.jsx)("div",{className:"mt-6 text-center",children:(0,t.jsx)(r.default,{href:"/",className:"text-sm text-slate-500 hover:text-slate-300",children:"← Back to landing"})})]})},"SettingsDemoGuard",0,function(){return(0,t.jsxs)("div",{className:"max-w-lg mx-auto px-6 py-16",children:[(0,t.jsxs)("div",{className:"rounded-2xl p-6",style:{background:"rgba(15,23,42,0.6)",border:"1px solid rgba(51,65,85,0.5)"},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,t.jsx)("div",{className:"w-2 h-2 rounded-full bg-sky-400"}),(0,t.jsx)("span",{className:"text-xs font-mono uppercase tracking-widest text-slate-400",children:"Local only"})]}),(0,t.jsx)("h2",{className:"text-xl font-semibold text-slate-200 mb-3",children:"Settings are only available locally"}),(0,t.jsxs)("p",{className:"text-slate-400 leading-relaxed mb-5",children:["You're viewing the public marketing preview of"," ",(0,t.jsx)("span",{className:"font-mono text-sky-400",children:"prism0x2A"}),". The settings page stores your Anthropic API key and license in your local OS keychain — it only works when running on your own machine."]}),(0,t.jsxs)("div",{className:"rounded-lg p-4 font-mono text-sm mb-5",style:{background:"rgba(2,6,23,0.8)",border:"1px solid rgba(51,65,85,0.4)"},children:[(0,t.jsxs)("div",{className:"text-slate-300",children:[(0,t.jsx)("span",{style:{color:"rgb(52,211,153)"},children:"$"})," ","npm install --save-dev prism0x2a"]}),(0,t.jsxs)("div",{className:"text-slate-300 mt-1",children:[(0,t.jsx)("span",{style:{color:"rgb(52,211,153)"},children:"$"})," ","npx prism dev"]})]}),(0,t.jsxs)("p",{className:"text-xs text-slate-500 leading-relaxed mb-6",children:["Free up to 50k LOC. Dashboard opens at"," ",(0,t.jsx)("code",{className:"text-slate-400",children:"localhost:3001"}),". No cloud, no data leaves your machine."]}),(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)(r.default,{href:"/#quickstart",className:"px-5 py-2.5 rounded-lg text-sm font-semibold transition-colors",style:{background:"rgb(14,165,233)",color:"rgb(15,23,42)"},children:"Quickstart guide →"}),(0,t.jsx)(r.default,{href:"/pricing",className:"px-5 py-2.5 rounded-lg text-sm font-semibold text-slate-200 transition-colors",style:{background:"rgba(51,65,85,0.4)",border:"1px solid rgba(71,85,105,0.4)"},children:"View pricing"})]})]}),(0,t.jsx)("div",{className:"mt-6 text-center",children:(0,t.jsx)(r.default,{href:"/",className:"text-sm text-slate-500 hover:text-slate-300",children:"← Back to landing"})})]})},"useDemoMode",0,function(){let e=window.location.hostname;return e.includes(".vercel.app")||"prism0x2a.dev"===e||"www.prism0x2a.dev"===e}])},67334,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(22016),n=e.i(50667),l=e.i(527),a=e.i(25010),o=e.i(60888);let i="rgb(52,211,153)",c={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)"},u={background:"rgba(15,23,42,0.5)",border:"1px solid rgba(51,65,85,0.4)"};function d({label:e,value:r,accent:s}){return(0,t.jsxs)("div",{className:"rounded-lg px-4 py-3 flex flex-col gap-0.5",style:u,children:[(0,t.jsx)("span",{className:"text-xs text-slate-500 uppercase tracking-widest",children:e}),(0,t.jsx)("span",{className:"text-xl font-semibold font-mono",style:{color:s??"rgb(226,232,240)"},children:r})]})}e.s(["default",0,function(){let{tq:e,ready:u}=(0,a.useTargetPath)(),{wq:p}=(0,o.useActiveWorkspace)(e),[x,f]=(0,r.useState)(null),[m,h]=(0,r.useState)(null),[g,b]=(0,r.useState)(!0);(0,r.useEffect)(()=>{u&&(fetch(`/api/green/insights${e}${p}`).then(e=>e.json()).then(({counts:e})=>f(e??null)).catch(()=>{}),fetch(`/api/green/cross-layer${e}${p}`).then(e=>e.json()).then(({snapshot:e})=>h(e??null)).catch(()=>{}).finally(()=>b(!1)))},[u,p]);let y=[{href:"/green/insights",label:"Insights",icon:"✦",desc:x?`${x.stock} stock \xb7 ${x.auto} auto \xb7 ${x.custom} custom`:"Stock + AI-generated + custom"},{href:"/green/cross-layer",label:"Cross-Layer",icon:"🔗",desc:m?`${m.capability_count} caps \xb7 ${m.drifted_capability_count} drifted`:"BLUE + AMBER + GREEN view"},{href:"/green/queries",label:"Custom Queries",icon:"🔍",desc:x?`${x.custom} saved`:"User-defined GREEN queries"}];return(0,l.useDemoMode)()?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.PrismDock,{}),(0,t.jsx)(l.DemoModeNotice,{botName:"GREEN",botColor:"rgb(52,211,153)",botTagline:"Insights + Cross-Layer + Queries"})]}):(0,t.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,t.jsx)(n.PrismDock,{}),(0,t.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,t.jsxs)("div",{className:"w-full",children:[(0,t.jsxs)("h1",{className:"text-xl font-semibold text-slate-100 tracking-tight",children:[(0,t.jsx)("span",{className:"font-mono",style:{color:i},children:"GREEN"}),(0,t.jsx)("span",{className:"text-slate-400 text-sm font-normal ml-2",children:"Insights + Cross-Layer + Queries"})]}),m&&(0,t.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5 font-mono",children:["Cross-layer snapshot: ",new Date(m.generated_at).toLocaleString()]})]}),x&&(0,t.jsxs)("div",{className:"w-full grid grid-cols-3 gap-3",children:[(0,t.jsx)(d,{label:"Stock Queries",value:x.stock,accent:i}),(0,t.jsx)(d,{label:"Auto Insights",value:x.auto,accent:x.auto>0?i:"rgb(148,163,184)"}),(0,t.jsx)(d,{label:"Custom Queries",value:x.custom,accent:x.custom>0?i:"rgb(148,163,184)"})]}),m&&(0,t.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:c,children:[(0,t.jsx)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:"Cross-Layer Context"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs text-slate-500 uppercase tracking-widest",children:"Capabilities"}),(0,t.jsx)("p",{className:"text-xl font-mono font-semibold",style:{color:i},children:m.capability_count})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs text-slate-500 uppercase tracking-widest",children:"Drifted"}),(0,t.jsx)("p",{className:"text-xl font-mono font-semibold",style:{color:m.drifted_capability_count>0?"rgb(248,113,113)":i},children:m.drifted_capability_count})]})]}),(0,t.jsx)(s.default,{href:"/green/cross-layer",className:"text-xs mt-1 hover:underline",style:{color:i},children:"→ View full cross-layer analysis"})]}),!g&&!m&&!x&&(0,t.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:c,children:[(0,t.jsx)("span",{className:"text-4xl",children:"✦"}),(0,t.jsx)("p",{className:"text-slate-300 font-medium",children:"GREEN not yet initialized"}),(0,t.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,t.jsx)("div",{className:"flex gap-3 mt-2",children:(0,t.jsx)(s.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,t.jsx)("div",{className:"w-full grid grid-cols-3 gap-3",children:y.map(({href:e,label:r,icon:n,desc:l})=>(0,t.jsxs)(s.default,{href:e,className:"rounded-xl p-5 flex flex-col gap-2 transition-all hover:brightness-110",style:{...c,borderColor:i+"30"},children:[(0,t.jsx)("span",{className:"text-xl font-mono",style:{color:i},children:n}),(0,t.jsx)("span",{className:"text-sm font-semibold",style:{color:i},children:r}),(0,t.jsx)("span",{className:"text-xs text-slate-500",children:l})]},e))})]}),(0,t.jsxs)("footer",{className:"text-center py-4 text-xs text-slate-600",children:["prism",(0,t.jsx)("span",{className:"font-mono",children:"0x2A"})," v","0.12.0"," · GREEN"]})]})}])}]);
|