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
|
@@ -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 a},urlQueryToSearchParams:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});function a(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 l(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(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,l(e));else t.set(r,l(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 x},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return v},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return h},ST:function(){return m},WEB_VITALS:function(){return a},execOnce:function(){return l},getDisplayName:function(){return p},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return i},isResSent:function(){return f},loadGetInitialProps:function(){return g},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return N}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function l(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>s.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 p(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function d(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function g(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await g(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${p(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,m=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class x 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 v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j 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 s},formatWithValidation:function(){return c},urlObjectKeys:function(){return i}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809)._(e.r(98183)),l=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",s=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(a.urlQueryToSearchParams(i)));let u=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||l.test(n))&&!1!==c?(c="//"+(c||""),o&&"/"!==o[0]&&(o="/"+o)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),u&&"?"!==u[0]&&(u="?"+u),o=o.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${o}${u}${s}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return s(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(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 a}});let n=e.r(18967),o=e.r(52817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.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 x},useLinkStatus:function(){return y}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809),l=e.r(43476),s=a._(e.r(71645)),i=e.r(95057),c=e.r(8372),u=e.r(18581),p=e.r(18967),f=e.r(5550);e.r(33525);let d=e.r(88540),g=e.r(91949),h=e.r(73668),m=e.r(9396);function x(t){var r,n;let o,a,x,[y,v]=(0,s.useOptimistic)(g.IDLE_LINK_STATUS),j=(0,s.useRef)(null),{href:N,as:P,children:E,prefetch:k=null,passHref:_,replace:w,shallow:S,scroll:C,onClick:O,onMouseEnter:T,onTouchStart:R,legacyBehavior:A=!1,onNavigate:L,transitionTypes:I,ref:U,unstable_dynamicOnHover:M,...$}=t;o=E,A&&("string"==typeof o||"number"==typeof o)&&(o=(0,l.jsx)("a",{children:o}));let B=s.default.useContext(c.AppRouterContext),F=!1!==k,D=!1!==k?null===(n=k)||"auto"===n?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,K="string"==typeof(r=P||N)?r:(0,i.formatUrl)(r);if(A){if(o?.$$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});a=s.default.Children.only(o)}let z=A?a&&"object"==typeof a&&a.ref:U,W=s.default.useCallback(e=>(null!==B&&(j.current=(0,g.mountLinkInstance)(e,K,B,D,F,v)),()=>{j.current&&((0,g.unmountLinkForCurrentNavigation)(j.current),j.current=null),(0,g.unmountPrefetchableInstance)(e)}),[F,K,B,D,v]),V={ref:(0,u.useMergedRef)(W,z),onClick(t){A||"function"!=typeof O||O(t),A&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!B||t.defaultPrevented||function(t,r,n,o,a,l,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)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:p}=e.r(99781);s.default.startTransition(()=>{p(r,o?"replace":"push",!1===a?d.ScrollBehavior.NoScroll:d.ScrollBehavior.Default,n.current,i)})}}(t,K,j,w,C,L,I)},onMouseEnter(e){A||"function"!=typeof T||T(e),A&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),B&&F&&(0,g.onNavigationIntent)(e.currentTarget,!0===M)},onTouchStart:function(e){A||"function"!=typeof R||R(e),A&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),B&&F&&(0,g.onNavigationIntent)(e.currentTarget,!0===M)}};return(0,p.isAbsoluteUrl)(K)?V.href=K:A&&!_&&("a"!==a.type||"href"in a.props)||(V.href=(0,f.addBasePath)(K)),x=A?s.default.cloneElement(a,V):(0,l.jsx)("a",{...$,...V,children:o}),(0,l.jsx)(b.Provider,{value:y,children:x})}e.r(84508);let b=(0,s.createContext)(g.IDLE_LINK_STATUS),y=()=>(0,s.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,o]=(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(()=>o(!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),o=e.i(71645);let a={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 l(e){return"free"!==a[e].tier}e.s(["FREE_TIER_LOC_LIMIT",0,5e4,"showProBadge",0,l],36528);let s=()=>(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:a=!1}){let[c,u]=(0,o.useState)(!1),p=(0,o.useRef)(null);if((0,o.useEffect)(()=>{function e(e){p.current&&!p.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 f=l("monorepo")&&!a;return(0,t.jsxs)("div",{className:"relative",ref:p,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"}),f&&(0,t.jsx)(s,{}),(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,o.useState)(null),[n,a]=(0,o.useState)(null),[l,s]=(0,o.useState)(!1);(0,o.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),a(t.workspace??null)}).finally(()=>s(!0))},[e]);let i=(0,o.useCallback)(async t=>{a(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:l,wq:c}}e.s(["useActiveWorkspace",0,u],60888);let p={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 f(e){let[t,r]=(0,o.useState)(null),[n,a]=(0,o.useState)(!1),[l,s]=(0,o.useState)(0);(0,o.useEffect)(()=>{fetch(`/api/license${e}`).then(e=>e.json()).then(e=>r(e)).catch(()=>r(p)).finally(()=>a(!0))},[e,l]);let i=(0,o.useCallback)(()=>s(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,f],13121);let d=[{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:o}=(0,c.useTargetPath)(),{monorepo:a,activeWorkspace:l,setActiveWorkspace:s}=u(o),{isPro:p}=f(o),g=p?[...d.slice(0,1),{href:"/blue/explorer",label:"Explorer",color:"rgb(56,189,248)"},...d.slice(1)]:d;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"})]})]}),g.map(({href:n,label:o,color:a})=>{let l=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:l?a??"rgb(226,232,240)":"rgba(148,163,184,0.8)"},children:o})]},n)}),a&&"single"!==a.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:a,activeWorkspace:l,onSelect:s,isPro:p})]})]})}],50667)},41171,e=>{"use strict";var t=e.i(43476),r=e.i(50667),n=e.i(25010),o=e.i(13121),a=e.i(22016);function l(){return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-[60vh] px-6 text-center gap-6",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",{children:"✦"}),(0,t.jsx)("span",{children:"PRO FEATURE"})]}),(0,t.jsx)("div",{className:"text-6xl select-none","aria-hidden":!0,children:"🔷"}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 max-w-md",children:[(0,t.jsx)("h2",{className:"text-2xl font-semibold text-slate-100 tracking-tight",children:"Blueprint Explorer"}),(0,t.jsx)("p",{className:"text-slate-400 text-sm leading-relaxed",children:"Deep-dive into every file in your codebase — heat scores, coverage, import graphs, state complexity, and AI-powered recommendations. Available on Pro and above."})]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2 justify-center max-w-sm",children:["File heat map","Coverage overlays","Import graph","Inspector panel","Recommendations","Per-file comments","Zone view","Wire view"].map(e=>(0,t.jsx)("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium",style:{background:"rgba(15,23,42,0.6)",border:"1px solid rgba(51,65,85,0.4)",color:"rgb(148,163,184)"},children:e},e))}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(a.default,{href:"/pricing",className:"px-5 py-2.5 rounded-lg text-sm font-semibold transition-all",style:{background:"rgb(59,130,246)",color:"#fff",boxShadow:"0 0 20px rgba(59,130,246,0.3)"},children:"Upgrade to Pro →"}),(0,t.jsx)(a.default,{href:"/blue",className:"px-4 py-2.5 rounded-lg text-sm font-medium transition-colors",style:{color:"rgb(100,116,139)",border:"1px solid rgba(51,65,85,0.4)"},children:"Back to BLUE"})]}),(0,t.jsx)("p",{className:"text-xs text-slate-600",children:"From €39/mo · Cancel anytime · EU VAT compliant"})]})}e.s(["ExplorerGate",0,function({children:e}){let{tq:a,ready:s}=(0,n.useTargetPath)(),{isPro:i,ready:c}=(0,o.useLicense)(a);return s&&c?(0,t.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,t.jsx)(r.PrismDock,{}),i?e:(0,t.jsx)(l,{})]}):(0,t.jsx)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:(0,t.jsx)(r.PrismDock,{})})}],41171)}]);
|
|
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 s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});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 s(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 b},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return v},NormalizeError:function(){return x},PageNotFoundError:function(){return y},SP:function(){return h},ST:function(){return m},WEB_VITALS:function(){return l},execOnce:function(){return a},getDisplayName:function(){return f},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return i},isResSent:function(){return p},loadGetInitialProps:function(){return g},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return P}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});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 s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>s.test(e);function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function d(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function g(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await g(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&p(r))return n;if(!n)throw Object.defineProperty(Error(`"${f(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,m=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class b extends Error{}class x extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function P(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 s},formatWithValidation:function(){return u},urlObjectKeys:function(){return i}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let l=e.r(90809)._(e.r(98183)),a=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",s=e.hash||"",i=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),i&&"object"==typeof i&&(i=String(l.urlQueryToSearchParams(i)));let c=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==u?(u="//"+(u||""),o&&"/"!==o[0]&&(o="/"+o)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${o}${c}${s}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return s(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=l(e,n)),t&&(o.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),o=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,o.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 b},useLinkStatus:function(){return y}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let l=e.r(90809),a=e.r(43476),s=l._(e.r(71645)),i=e.r(95057),u=e.r(8372),c=e.r(18581),f=e.r(18967),p=e.r(5550);e.r(33525);let d=e.r(88540),g=e.r(91949),h=e.r(73668),m=e.r(9396);function b(t){var r,n;let o,l,b,[y,v]=(0,s.useOptimistic)(g.IDLE_LINK_STATUS),j=(0,s.useRef)(null),{href:P,as:E,children:_,prefetch:k=null,passHref:N,replace:S,shallow:w,scroll:C,onClick:O,onMouseEnter:T,onTouchStart:R,legacyBehavior:A=!1,onNavigate:L,transitionTypes:I,ref:M,unstable_dynamicOnHover:$,...U}=t;o=_,A&&("string"==typeof o||"number"==typeof o)&&(o=(0,a.jsx)("a",{children:o}));let B=s.default.useContext(u.AppRouterContext),F=!1!==k,D=!1!==k?null===(n=k)||"auto"===n?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,K="string"==typeof(r=E||P)?r:(0,i.formatUrl)(r);if(A){if(o?.$$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=s.default.Children.only(o)}let z=A?l&&"object"==typeof l&&l.ref:M,W=s.default.useCallback(e=>(null!==B&&(j.current=(0,g.mountLinkInstance)(e,K,B,D,F,v)),()=>{j.current&&((0,g.unmountLinkForCurrentNavigation)(j.current),j.current=null),(0,g.unmountPrefetchableInstance)(e)}),[F,K,B,D,v]),V={ref:(0,c.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,o,l,a,i){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(99781);s.default.startTransition(()=>{f(r,o?"replace":"push",!1===l?d.ScrollBehavior.NoScroll:d.ScrollBehavior.Default,n.current,i)})}}(t,K,j,S,C,L,I)},onMouseEnter(e){A||"function"!=typeof T||T(e),A&&l.props&&"function"==typeof l.props.onMouseEnter&&l.props.onMouseEnter(e),B&&F&&(0,g.onNavigationIntent)(e.currentTarget,!0===$)},onTouchStart:function(e){A||"function"!=typeof R||R(e),A&&l.props&&"function"==typeof l.props.onTouchStart&&l.props.onTouchStart(e),B&&F&&(0,g.onNavigationIntent)(e.currentTarget,!0===$)}};return(0,f.isAbsoluteUrl)(K)?V.href=K:A&&!N&&("a"!==l.type||"href"in l.props)||(V.href=(0,p.addBasePath)(K)),b=A?s.default.cloneElement(l,V):(0,a.jsx)("a",{...U,...V,children:o}),(0,a.jsx)(x.Provider,{value:y,children:b})}e.r(84508);let x=(0,s.createContext)(g.IDLE_LINK_STATUS),y=()=>(0,s.useContext)(x);("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,o]=(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(()=>o(!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),o=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 s=()=>(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[u,c]=(0,o.useState)(!1),f=(0,o.useRef)(null);if((0,o.useEffect)(()=>{function e(e){f.current&&!f.current.contains(e.target)&&c(!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:f,children:[(0,t.jsxs)("button",{onClick:()=>c(e=>!e),className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium transition-colors",style:{background:u?"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)(s,{}),(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"})})]}),u&&(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),c(!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),c(!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 u=e.i(25010);function c(e){let[t,r]=(0,o.useState)(null),[n,l]=(0,o.useState)(null),[a,s]=(0,o.useState)(!1);(0,o.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(()=>s(!0))},[e]);let i=(0,o.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]),u=n?`&workspace=${encodeURIComponent(n)}`:"";return{monorepo:t,activeWorkspace:n,setActiveWorkspace:i,ready:a,wq:u}}e.s(["useActiveWorkspace",0,c],60888);let f={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,o.useState)(null),[n,l]=(0,o.useState)(!1),[a,s]=(0,o.useState)(0);(0,o.useEffect)(()=>{fetch(`/api/license${e}`).then(e=>e.json()).then(e=>r(e)).catch(()=>r(f)).finally(()=>l(!0))},[e,a]);let i=(0,o.useCallback)(()=>s(e=>e+1),[]),u=!!t&&"free"!==t.tier&&"forge-pro"!==t.tier&&t.isValid&&!t.isExpired&&"expired"!==t.cacheStatus;return{license:t,ready:n,refresh:i,isPro:u}}e.s(["useLicense",0,p],13121);let d=[{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:o}=(0,u.useTargetPath)(),{monorepo:l,activeWorkspace:a,setActiveWorkspace:s}=c(o),{isPro:f}=p(o),g=f?[...d.slice(0,1),{href:"/blue/explorer",label:"Explorer",color:"rgb(56,189,248)"},...d.slice(1)]:d;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"})]})]}),g.map(({href:n,label:o,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:o})]},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:s,isPro:f})]})]})}],50667)},41171,e=>{"use strict";var t=e.i(43476),r=e.i(50667),n=e.i(25010);e.s(["ExplorerGate",0,function({children:e}){let{ready:o}=(0,n.useTargetPath)();return(0,t.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,t.jsx)(r.PrismDock,{}),o?e:null]})}])}]);
|
|
@@ -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 a},urlQueryToSearchParams:function(){return o}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});function a(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 l(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,l(e));else t.set(r,l(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 a},execOnce:function(){return l},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 a=["CLS","FCP","FID","INP","LCP","TTFB"];function l(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 a=e.r(90809)._(e.r(98183)),l=/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(a.urlQueryToSearchParams(i)));let u=e.search||i&&`?${i}`||"";return s&&!s.endsWith(":")&&(s+=":"),e.slashes||(!s||l.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=a(e,s)),t&&(n.current=a(t,s))},[e,t])}function a(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 a}});let s=e.r(18967),n=e.r(52817);function a(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 a=e.r(90809),l=e.r(43476),o=a._(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,a,g,[y,j]=(0,o.useOptimistic)(f.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:N,as:k,children:w,prefetch:_=null,passHref:P,replace:S,shallow:E,scroll:C,onClick:O,onMouseEnter:R,onTouchStart:T,legacyBehavior:A=!1,onNavigate:$,transitionTypes:L,ref:M,unstable_dynamicOnHover:I,...U}=t;n=w,A&&("string"==typeof n||"number"==typeof n)&&(n=(0,l.jsx)("a",{children:n}));let D=o.default.useContext(c.AppRouterContext),B=!1!==_,F=!1!==_?null===(s=_)||"auto"===s?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,K="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});a=o.default.Children.only(n)}let z=A?a&&"object"==typeof a&&a.ref:M,W=o.default.useCallback(e=>(null!==D&&(v.current=(0,f.mountLinkInstance)(e,K,D,F,B,j)),()=>{v.current&&((0,f.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,f.unmountPrefetchableInstance)(e)}),[B,K,D,F,j]),q={ref:(0,u.useMergedRef)(W,z),onClick(t){A||"function"!=typeof O||O(t),A&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!D||t.defaultPrevented||function(t,r,s,n,a,l,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(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);o.default.startTransition(()=>{d(r,n?"replace":"push",!1===a?x.ScrollBehavior.NoScroll:x.ScrollBehavior.Default,s.current,i)})}}(t,K,v,S,C,$,L)},onMouseEnter(e){A||"function"!=typeof R||R(e),A&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),D&&B&&(0,f.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){A||"function"!=typeof T||T(e),A&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),D&&B&&(0,f.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,d.isAbsoluteUrl)(K)?q.href=K:A&&!P&&("a"!==a.type||"href"in a.props)||(q.href=(0,p.addBasePath)(K)),g=A?o.default.cloneElement(a,q):(0,l.jsx)("a",{...U,...q,children:n}),(0,l.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 a={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 l(e){return"free"!==a[e].tier}e.s(["FREE_TIER_LOC_LIMIT",0,5e4,"showProBadge",0,l],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:a=!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=l("monorepo")&&!a;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,a]=(0,n.useState)(null),[l,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),a(t.workspace??null)}).finally(()=>o(!0))},[e]);let i=(0,n.useCallback)(async t=>{a(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:l,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,a]=(0,n.useState)(!1),[l,o]=(0,n.useState)(0);(0,n.useEffect)(()=>{fetch(`/api/license${e}`).then(e=>e.json()).then(e=>r(e)).catch(()=>r(d)).finally(()=>a(!0))},[e,l]);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:a,activeWorkspace:l,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:a})=>{let l=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:l?a??"rgb(226,232,240)":"rgba(148,163,184,0.8)"},children:n})]},s)}),a&&"single"!==a.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:a,activeWorkspace:l,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}])},41147,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(22016),n=e.i(50667),a=e.i(25010),l=e.i(60888),o=e.i(527);let i="rgb(251,191,36)",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,l.useActiveWorkspace)(e),[x,f]=(0,r.useState)(null),[m,h]=(0,r.useState)(null),[g,b]=(0,r.useState)(!1),[y,j]=(0,r.useState)(null);async function v(){b(!0),j(null);try{let t=await fetch(`/api/amber/scan${e}${p}`,{method:"POST"}),r=await t.json();if(!t.ok)throw Error(r.error??"Scan failed");f(r.scan)}catch(e){j(e instanceof Error?e.message:String(e))}finally{b(!1)}}(0,r.useEffect)(()=>{u&&(fetch(`/api/amber/scan${e}${p}`).then(e=>e.json()).then(({scan:e})=>f(e??null)).catch(()=>{}),fetch(`/api/amber/registry${e}${p}`).then(e=>e.json()).then(({capabilities:e})=>h(Array.isArray(e)?e.length:0)).catch(()=>{}))},[u,p]);let N=[{href:"/amber/capabilities",label:"Capabilities",icon:"🧩",desc:`${m??"—"} registered`},{href:"/amber/files",label:"Files",icon:"📁",desc:x?`${x.file_count} scanned`:"No scan yet"},{href:"/amber/coverage",label:"Coverage",icon:"📊",desc:x?`${x.drift_count} drift entries`:"No scan yet"}];return(0,o.useDemoMode)()?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.PrismDock,{}),(0,t.jsx)(o.DemoModeNotice,{botName:"AMBER",botColor:"rgb(251,191,36)",botTagline:"Capability Registry + Coverage"})]}):(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 flex items-center justify-between",children:[(0,t.jsxs)("div",{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:"AMBER"}),(0,t.jsx)("span",{className:"text-slate-400 text-sm font-normal ml-2",children:"Capability Registry + Coverage"})]}),x&&(0,t.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5 font-mono",children:["Last scan: ",new Date(x.created_at).toLocaleString()," · ",x.target]})]}),(0,t.jsx)("button",{onClick:v,disabled:g,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50",style:{background:i,color:"#020617"},children:g?"Scanning…":x?"Re-scan":"Run scan"})]}),y&&(0,t.jsx)("div",{className:"w-full rounded-lg px-4 py-3 text-sm text-red-400 font-mono",style:{background:"rgba(239,68,68,0.08)",border:"1px solid rgba(239,68,68,0.2)"},children:y}),!x&&!g&&(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:"No AMBER scan yet"}),(0,t.jsxs)("p",{className:"text-slate-500 text-sm max-w-sm",children:["Run a scan to analyse your capability registry, file coverage, and documentation drift. Requires a ",(0,t.jsx)("span",{className:"font-mono text-amber-400",children:".amber/capabilities.md"})," in the target project."]})]}),x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"w-full grid grid-cols-4 gap-3",children:[(0,t.jsx)(d,{label:"Files",value:x.file_count}),(0,t.jsx)(d,{label:"Capabilities",value:m??x.capability_count,accent:i}),(0,t.jsx)(d,{label:"Drift",value:x.drift_count,accent:x.drift_count>0?"rgb(248,113,113)":"rgb(52,211,153)"}),(0,t.jsx)(d,{label:"Orphans",value:x.orphan_capability_count,accent:x.orphan_capability_count>0?"rgb(251,191,36)":"rgb(52,211,153)"})]}),x.drift_count>0&&(0,t.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:c,children:[(0,t.jsxs)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:["Recent Drift (",x.drift_count,")"]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[x.drift.slice(0,5).map((e,r)=>(0,t.jsxs)("div",{className:"flex items-center justify-between py-1 border-b",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 font-mono text-amber-400 ml-3 flex-shrink-0",children:e.kind.replace(/_/g," ")})]},r)),x.drift_count>5&&(0,t.jsxs)(s.default,{href:"/amber/coverage",className:"text-xs text-amber-400 hover:underline mt-1",children:["+",x.drift_count-5," more → Coverage"]})]})]}),x.orphan_capability_count>0&&(0,t.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:c,children:[(0,t.jsxs)("h2",{className:"text-xs font-semibold text-amber-400 uppercase tracking-widest",children:["Orphan Capabilities (",x.orphan_capability_count,")"]}),(0,t.jsx)("p",{className:"text-xs text-slate-500",children:"Registered in capabilities.md but matched no scanned files."}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:x.orphan_capability_ids.map(e=>(0,t.jsx)(s.default,{href:`/amber/capabilities/${encodeURIComponent(e)}`,className:"text-xs font-mono px-2 py-1 rounded hover:brightness-110 transition-all",style:{background:"rgba(251,191,36,0.1)",color:i,border:"1px solid rgba(251,191,36,0.25)"},children:e},e))})]}),x.unknown_ref_count>0&&(0,t.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:c,children:[(0,t.jsxs)("h2",{className:"text-xs font-semibold text-red-400 uppercase tracking-widest",children:["Unknown Capability Refs (",x.unknown_ref_count,")"]}),(0,t.jsx)("p",{className:"text-xs text-slate-500",children:"Files reference capability IDs not in the registry."}),(0,t.jsx)("div",{className:"flex flex-col gap-1",children:x.unknown_capability_refs.slice(0,5).map((e,r)=>(0,t.jsxs)("div",{className:"flex items-center gap-3 py-1 border-b",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 font-mono text-red-400",children:e.id})]},r))})]})]}),(0,t.jsx)("div",{className:"w-full grid grid-cols-3 gap-3",children:N.map(({href:e,label:r,icon:n,desc:a})=>(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-2xl",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:a})]},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"," · AMBER"]})]})}])}]);
|
|
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 a},urlQueryToSearchParams:function(){return o}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});function a(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 l(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,l(e));else t.set(r,l(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 a},execOnce:function(){return l},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 a=["CLS","FCP","FID","INP","LCP","TTFB"];function l(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 a=e.r(90809)._(e.r(98183)),l=/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(a.urlQueryToSearchParams(i)));let u=e.search||i&&`?${i}`||"";return s&&!s.endsWith(":")&&(s+=":"),e.slashes||(!s||l.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=a(e,s)),t&&(n.current=a(t,s))},[e,t])}function a(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 a}});let s=e.r(18967),n=e.r(52817);function a(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 a=e.r(90809),l=e.r(43476),o=a._(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,a,g,[y,j]=(0,o.useOptimistic)(f.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:N,as:k,children:w,prefetch:_=null,passHref:P,replace:S,shallow:E,scroll:C,onClick:O,onMouseEnter:R,onTouchStart:T,legacyBehavior:A=!1,onNavigate:$,transitionTypes:L,ref:M,unstable_dynamicOnHover:I,...U}=t;n=w,A&&("string"==typeof n||"number"==typeof n)&&(n=(0,l.jsx)("a",{children:n}));let D=o.default.useContext(c.AppRouterContext),B=!1!==_,F=!1!==_?null===(s=_)||"auto"===s?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,K="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});a=o.default.Children.only(n)}let z=A?a&&"object"==typeof a&&a.ref:M,W=o.default.useCallback(e=>(null!==D&&(v.current=(0,f.mountLinkInstance)(e,K,D,F,B,j)),()=>{v.current&&((0,f.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,f.unmountPrefetchableInstance)(e)}),[B,K,D,F,j]),q={ref:(0,u.useMergedRef)(W,z),onClick(t){A||"function"!=typeof O||O(t),A&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!D||t.defaultPrevented||function(t,r,s,n,a,l,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(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);o.default.startTransition(()=>{d(r,n?"replace":"push",!1===a?x.ScrollBehavior.NoScroll:x.ScrollBehavior.Default,s.current,i)})}}(t,K,v,S,C,$,L)},onMouseEnter(e){A||"function"!=typeof R||R(e),A&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),D&&B&&(0,f.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){A||"function"!=typeof T||T(e),A&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),D&&B&&(0,f.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,d.isAbsoluteUrl)(K)?q.href=K:A&&!P&&("a"!==a.type||"href"in a.props)||(q.href=(0,p.addBasePath)(K)),g=A?o.default.cloneElement(a,q):(0,l.jsx)("a",{...U,...q,children:n}),(0,l.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 a={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 l(e){return"free"!==a[e].tier}e.s(["FREE_TIER_LOC_LIMIT",0,5e4,"showProBadge",0,l],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:a=!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=l("monorepo")&&!a;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,a]=(0,n.useState)(null),[l,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),a(t.workspace??null)}).finally(()=>o(!0))},[e]);let i=(0,n.useCallback)(async t=>{a(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:l,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,a]=(0,n.useState)(!1),[l,o]=(0,n.useState)(0);(0,n.useEffect)(()=>{fetch(`/api/license${e}`).then(e=>e.json()).then(e=>r(e)).catch(()=>r(d)).finally(()=>a(!0))},[e,l]);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:a,activeWorkspace:l,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:a})=>{let l=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:l?a??"rgb(226,232,240)":"rgba(148,163,184,0.8)"},children:n})]},s)}),a&&"single"!==a.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:a,activeWorkspace:l,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}])},41147,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(22016),n=e.i(50667),a=e.i(25010),l=e.i(60888),o=e.i(527);let i="rgb(251,191,36)",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,l.useActiveWorkspace)(e),[x,f]=(0,r.useState)(null),[m,h]=(0,r.useState)(null),[g,b]=(0,r.useState)(!1),[y,j]=(0,r.useState)(null);async function v(){b(!0),j(null);try{let t=await fetch(`/api/amber/scan${e}${p}`,{method:"POST"}),r=await t.json();if(!t.ok)throw Error(r.error??"Scan failed");f(r.scan)}catch(e){j(e instanceof Error?e.message:String(e))}finally{b(!1)}}(0,r.useEffect)(()=>{u&&(fetch(`/api/amber/scan${e}${p}`).then(e=>e.json()).then(({scan:e})=>f(e??null)).catch(()=>{}),fetch(`/api/amber/registry${e}${p}`).then(e=>e.json()).then(({capabilities:e})=>h(Array.isArray(e)?e.length:0)).catch(()=>{}))},[u,p]);let N=[{href:"/amber/capabilities",label:"Capabilities",icon:"🧩",desc:`${m??"—"} registered`},{href:"/amber/files",label:"Files",icon:"📁",desc:x?`${x.file_count} scanned`:"No scan yet"},{href:"/amber/coverage",label:"Coverage",icon:"📊",desc:x?`${x.drift_count} drift entries`:"No scan yet"}];return(0,o.useDemoMode)()?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.PrismDock,{}),(0,t.jsx)(o.DemoModeNotice,{botName:"AMBER",botColor:"rgb(251,191,36)",botTagline:"Capability Registry + Coverage"})]}):(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 flex items-center justify-between",children:[(0,t.jsxs)("div",{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:"AMBER"}),(0,t.jsx)("span",{className:"text-slate-400 text-sm font-normal ml-2",children:"Capability Registry + Coverage"})]}),x&&(0,t.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5 font-mono",children:["Last scan: ",new Date(x.created_at).toLocaleString()," · ",x.target]})]}),(0,t.jsx)("button",{onClick:v,disabled:g,className:"px-4 py-2 rounded-lg text-sm font-semibold transition-all disabled:opacity-50",style:{background:i,color:"#020617"},children:g?"Scanning…":x?"Re-scan":"Run scan"})]}),y&&(0,t.jsx)("div",{className:"w-full rounded-lg px-4 py-3 text-sm text-red-400 font-mono",style:{background:"rgba(239,68,68,0.08)",border:"1px solid rgba(239,68,68,0.2)"},children:y}),!x&&!g&&(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:"No AMBER scan yet"}),(0,t.jsxs)("p",{className:"text-slate-500 text-sm max-w-sm",children:["Run a scan to analyse your capability registry, file coverage, and documentation drift. Requires a ",(0,t.jsx)("span",{className:"font-mono text-amber-400",children:".amber/capabilities.md"})," in the target project."]})]}),x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"w-full grid grid-cols-4 gap-3",children:[(0,t.jsx)(d,{label:"Files",value:x.file_count}),(0,t.jsx)(d,{label:"Capabilities",value:m??x.capability_count,accent:i}),(0,t.jsx)(d,{label:"Drift",value:x.drift_count,accent:x.drift_count>0?"rgb(248,113,113)":"rgb(52,211,153)"}),(0,t.jsx)(d,{label:"Orphans",value:x.orphan_capability_count,accent:x.orphan_capability_count>0?"rgb(251,191,36)":"rgb(52,211,153)"})]}),x.drift_count>0&&(0,t.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:c,children:[(0,t.jsxs)("h2",{className:"text-xs font-semibold text-slate-400 uppercase tracking-widest",children:["Recent Drift (",x.drift_count,")"]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[x.drift.slice(0,5).map((e,r)=>(0,t.jsxs)("div",{className:"flex items-center justify-between py-1 border-b",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 font-mono text-amber-400 ml-3 flex-shrink-0",children:e.kind.replace(/_/g," ")})]},r)),x.drift_count>5&&(0,t.jsxs)(s.default,{href:"/amber/coverage",className:"text-xs text-amber-400 hover:underline mt-1",children:["+",x.drift_count-5," more → Coverage"]})]})]}),x.orphan_capability_count>0&&(0,t.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:c,children:[(0,t.jsxs)("h2",{className:"text-xs font-semibold text-amber-400 uppercase tracking-widest",children:["Orphan Capabilities (",x.orphan_capability_count,")"]}),(0,t.jsx)("p",{className:"text-xs text-slate-500",children:"Registered in capabilities.md but matched no scanned files."}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:x.orphan_capability_ids.map(e=>(0,t.jsx)(s.default,{href:`/amber/capabilities/${encodeURIComponent(e)}`,className:"text-xs font-mono px-2 py-1 rounded hover:brightness-110 transition-all",style:{background:"rgba(251,191,36,0.1)",color:i,border:"1px solid rgba(251,191,36,0.25)"},children:e},e))})]}),x.unknown_ref_count>0&&(0,t.jsxs)("div",{className:"w-full rounded-xl p-5 flex flex-col gap-3",style:c,children:[(0,t.jsxs)("h2",{className:"text-xs font-semibold text-red-400 uppercase tracking-widest",children:["Unknown Capability Refs (",x.unknown_ref_count,")"]}),(0,t.jsx)("p",{className:"text-xs text-slate-500",children:"Files reference capability IDs not in the registry."}),(0,t.jsx)("div",{className:"flex flex-col gap-1",children:x.unknown_capability_refs.slice(0,5).map((e,r)=>(0,t.jsxs)("div",{className:"flex items-center gap-3 py-1 border-b",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 font-mono text-red-400",children:e.id})]},r))})]})]}),(0,t.jsx)("div",{className:"w-full grid grid-cols-3 gap-3",children:N.map(({href:e,label:r,icon:n,desc:a})=>(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-2xl",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:a})]},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"," · AMBER"]})]})}])}]);
|
|
@@ -0,0 +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 h},ST:function(){return m},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 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 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 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 h="u">typeof performance,m=h&&["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 f=e.r(88540),x=e.r(91949),h=e.r(73668),m=e.r(9396);function g(t){var r,s;let n,l,g,[y,j]=(0,o.useOptimistic)(x.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:N,as:k,children:C,prefetch:w=null,passHref:P,replace:S,shallow:E,scroll:_,onClick:O,onMouseEnter:$,onTouchStart:R,legacyBehavior:T=!1,onNavigate:M,transitionTypes:A,ref:L,unstable_dynamicOnHover:I,...D}=t;n=C,T&&("string"==typeof n||"number"==typeof n)&&(n=(0,a.jsx)("a",{children:n}));let U=o.default.useContext(c.AppRouterContext),F=!1!==w,B=!1!==w?null===(s=w)||"auto"===s?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,z="string"==typeof(r=k||N)?r:(0,i.formatUrl)(r);if(T){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 K=T?l&&"object"==typeof l&&l.ref:L,W=o.default.useCallback(e=>(null!==U&&(v.current=(0,x.mountLinkInstance)(e,z,U,B,F,j)),()=>{v.current&&((0,x.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,x.unmountPrefetchableInstance)(e)}),[F,z,U,B,j]),V={ref:(0,u.useMergedRef)(W,K),onClick(t){T||"function"!=typeof O||O(t),T&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(t),!U||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,h.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?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,s.current,i)})}}(t,z,v,S,_,M,A)},onMouseEnter(e){T||"function"!=typeof $||$(e),T&&l.props&&"function"==typeof l.props.onMouseEnter&&l.props.onMouseEnter(e),U&&F&&(0,x.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){T||"function"!=typeof R||R(e),T&&l.props&&"function"==typeof l.props.onTouchStart&&l.props.onTouchStart(e),U&&F&&(0,x.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,d.isAbsoluteUrl)(z)?V.href=z:T&&!P&&("a"!==l.type||"href"in l.props)||(V.href=(0,p.addBasePath)(z)),g=T?o.default.cloneElement(l,V):(0,a.jsx)("a",{...D,...V,children:n}),(0,a.jsx)(b.Provider,{value:y,children:g})}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)(""),[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 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,s.usePathname)(),{tq:n}=(0,c.useTargetPath)(),{monorepo:l,activeWorkspace:a,setActiveWorkspace:o}=u(n),{isPro:d}=p(n),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: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)},72265,e=>{"use strict";var t=e.i(43476),r=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)(r.default,{href:"/#quickstart",className:"text-sky-300 hover:text-sky-200 transition-colors font-semibold",children:"Get started →"}),(0,t.jsx)(r.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"})]})]})}])},15518,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(22016),n=e.i(50667),l=e.i(72265),a=e.i(25010);function o({data:e}){let r=e.analysis.filesInCycles??[],s=e.files.filter(e=>e.metrics.heatScore>65&&!r.includes(e.path)).sort((e,t)=>t.metrics.heatScore-e.metrics.heatScore).slice(0,3),n=[...r.map(e=>({path:e,reason:"Circular dependency",color:"rgb(248,113,113)"})),...s.map(e=>({path:e.path,reason:`Heat ${e.metrics.heatScore}`,color:"rgb(251,191,36)"}))].slice(0,5);return 0===n.length?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 h-full text-center py-4",children:[(0,t.jsx)("span",{className:"text-2xl",children:"✅"}),(0,t.jsx)("p",{className:"text-sm text-slate-400 font-medium",children:"No risky zones"}),(0,t.jsx)("p",{className:"text-xs text-slate-600",children:"Architecture looks clean"})]}):(0,t.jsx)("div",{className:"flex flex-col gap-2",children:n.map(e=>(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 px-3 py-2 rounded-lg",style:{background:"rgba(15,23,42,0.5)",border:"1px solid rgba(51,65,85,0.4)"},children:[(0,t.jsx)("span",{className:"text-xs font-mono text-slate-400 truncate flex-1",children:e.path.split("/").pop()}),(0,t.jsx)("span",{className:"text-[10px] font-semibold px-1.5 py-0.5 rounded flex-shrink-0",style:{color:e.color,background:e.color+"15"},children:e.reason})]},e.path))})}function i({data:e}){let r=(e.summary.mostImportedFiles??[]).slice(0,4),s=r[0]?.count??1;return(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[r.map(e=>{let r=Math.round(e.count/s*100),n=e.path.split("/").pop()??e.path;return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-xs font-mono text-slate-400 truncate flex-1",children:n}),(0,t.jsxs)("span",{className:"text-xs font-mono text-blue-400 ml-2 flex-shrink-0",children:[e.count," imports"]})]}),(0,t.jsx)("div",{className:"h-1 rounded-full w-full",style:{background:"rgba(51,65,85,0.4)"},children:(0,t.jsx)("div",{className:"h-1 rounded-full",style:{width:`${r}%`,background:"rgba(96,165,250,0.6)"}})})]},e.path)}),0===r.length&&(0,t.jsx)("p",{className:"text-xs text-slate-600 text-center py-4",children:"No dependency data available"})]})}function c({data:e}){let r=Math.round(e.files.reduce((e,t)=>e+t.metrics.loc,0)/(e.files.length||1)),s=(e.files.reduce((e,t)=>e+t.metrics.outgoingRuntimeDeps,0)/(e.files.length||1)).toFixed(1),n=e.files.slice().sort((e,t)=>t.metrics.loc-e.metrics.loc)[0],l=e.files.slice().sort((e,t)=>t.metrics.outgoingRuntimeDeps-e.metrics.outgoingRuntimeDeps)[0],a=[{label:"Avg file size",value:`${r} lines`},{label:"Avg connections",value:`${s} deps`},{label:"Largest file",value:n?`${n.path.split("/").pop()} (${n.metrics.loc}L)`:"—"},{label:"Most connected",value:l?`${l.path.split("/").pop()} (${l.metrics.outgoingRuntimeDeps}d)`:"—"}];return(0,t.jsx)("div",{className:"flex flex-col gap-2",children:a.map(e=>(0,t.jsxs)("div",{className:"flex items-center justify-between py-1.5 border-b",style:{borderColor:"rgba(51,65,85,0.25)"},children:[(0,t.jsx)("span",{className:"text-xs text-slate-500",children:e.label}),(0,t.jsx)("span",{className:"text-xs font-mono text-slate-300",children:e.value})]},e.label))})}e.s(["default",0,function({isDemo:e}){let{tq:u,ready:d}=(0,a.useTargetPath)(),[p,f]=(0,r.useState)(null),[x,h]=(0,r.useState)(!1),[m,g]=(0,r.useState)(!1);(0,r.useEffect)(()=>{d&&(h(!0),fetch(`/api/blue/explorer${u}`).then(e=>e.json()).then(({data:e,_proGated:t})=>{f(e??null),g(!!t)}).catch(()=>{}).finally(()=>h(!1)))},[d]);let b=(0,r.useMemo)(()=>{let e;return p?(e=100-Math.min(15*p.analysis.cycleCount,30)-Math.min(2*p.files.filter(e=>e.metrics.heatScore>70).length,20),p.files.reduce((e,t)=>e+t.metrics.loc,0)/(p.files.length||1)>200&&(e-=5),p.files.reduce((e,t)=>e+t.metrics.outgoingRuntimeDeps,0)/(p.files.length||1)>4&&(e-=5),Math.max(0,Math.round(e))):null},[p]),y=(0,r.useMemo)(()=>null!==b?b>=80?{label:"Healthy",color:"rgb(52,211,153)",bg:"rgba(52,211,153,0.12)",border:"rgba(52,211,153,0.25)"}:b>=55?{label:"Fair",color:"rgb(251,191,36)",bg:"rgba(251,191,36,0.10)",border:"rgba(251,191,36,0.25)"}:{label:"At risk",color:"rgb(248,113,113)",bg:"rgba(248,113,113,0.10)",border:"rgba(248,113,113,0.25)"}:null,[b]),j=(0,r.useMemo)(()=>p?function(e){let{summary:t,analysis:r,files:s}=e,n=t.mostImportedFiles?.[0],l=s.find(e=>e.path===n?.path),a=l?l.path.split("/").pop().replace(/\.(ts|tsx|js|jsx)$/,""):"core logic",o=0===r.cycleCount?"No circular dependencies were found — the codebase structure is clean.":1===r.cycleCount?`There is 1 circular dependency between ${r.stronglyConnectedComponents[0]?.paths.map(e=>e.split("/").pop()).join(" and ")}. This creates hidden coupling that can make changes unpredictable.`:`There are ${r.cycleCount} circular dependencies, meaning some parts of the code depend on each other in loops. This tends to make changes risky.`,i=0===s.filter(e=>e.metrics.heatScore>70).length?"No single file is carrying an outsized load.":`The most central piece of code is "${a}", used by ${n?.count??"several"} other parts of the app. Changes there ripple widely.`;return`This codebase has ${t.fileCount} files across ${t.componentCount} UI components, ${t.libCount} libraries, and ${t.hookCount} hooks. ${i} ${o}`}(p):"",[p]),v={background:"rgba(10,16,30,0.7)",border:"1px solid rgba(51,65,85,0.35)",borderRadius:"0.875rem"};return(0,t.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"#020617"},children:[(0,t.jsx)(n.PrismDock,{}),e&&(0,t.jsx)(l.DemoBanner,{}),(0,t.jsxs)("main",{className:"flex-1 flex flex-col pt-16 pb-16",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 px-6 py-3 border-b flex-shrink-0",style:{borderColor:"rgba(51,65,85,0.3)",background:"rgba(10,16,30,0.5)"},children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-blue-400 font-mono",children:"BLUE"}),(0,t.jsx)("span",{className:"text-xs text-slate-500",children:"Architecture Dashboard"}),e&&(0,t.jsx)("span",{className:"text-[10px] font-bold px-2 py-0.5 rounded-full",style:{background:"rgba(14,165,233,0.15)",color:"rgb(125,211,252)",border:"1px solid rgba(14,165,233,0.25)"},children:"DEMO"}),m&&(0,t.jsx)("span",{className:"text-[10px] font-bold px-2 py-0.5 rounded-full",style:{background:"rgba(251,191,36,0.12)",color:"rgb(251,191,36)",border:"1px solid rgba(251,191,36,0.25)"},children:"PRO"})]}),(0,t.jsx)(s.default,{href:"/blue/explorer",className:"flex items-center gap-2 px-3 py-1.5 rounded-lg text-xs font-semibold transition-all hover:brightness-110",style:{background:"rgba(51,65,85,0.4)",color:"rgb(148,163,184)",border:"1px solid rgba(71,85,105,0.5)"},children:"Expert view →"})]}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto px-6 py-6",style:{maxWidth:900,margin:"0 auto",width:"100%"},children:[x&&(0,t.jsx)("div",{className:"flex items-center justify-center h-48 text-slate-500 text-sm",children:"Loading architecture data…"}),!x&&!p&&(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center h-48 gap-4 text-center",children:[(0,t.jsx)("span",{className:"text-5xl",children:"📊"}),(0,t.jsx)("h2",{className:"text-lg font-semibold text-slate-300",children:"No data yet"}),(0,t.jsxs)("p",{className:"text-sm text-slate-500 max-w-sm",children:["Run a scan from the"," ",(0,t.jsx)(s.default,{href:"/blue/explorer",className:"text-blue-400 hover:text-blue-300",children:"Explorer"})," ","to see your dashboard."]})]}),!x&&p&&null!==b&&y&&(0,t.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-5 p-5 rounded-2xl",style:{...v,background:y.bg,borderColor:y.border},children:[(0,t.jsx)("div",{className:"flex items-center justify-center w-20 h-20 rounded-full flex-shrink-0",style:{background:y.bg,border:`3px solid ${y.color}`},children:(0,t.jsx)("span",{className:"text-3xl font-bold font-mono",style:{color:y.color},children:b})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,t.jsx)("span",{className:"text-lg font-semibold",style:{color:y.color},children:y.label}),(0,t.jsx)("span",{className:"text-xs text-slate-500",children:"/ 100"})]}),(0,t.jsx)("p",{className:"text-sm text-slate-400",children:"Healthy"===y.label?"Your codebase architecture is in good shape. Minor improvements possible.":"Fair"===y.label?"Some architectural issues need attention before they become expensive.":"Significant structural problems detected. Refactoring recommended soon."})]})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[{title:"Risky Zones",subtitle:"Files that could break things",icon:"⚠️",content:(0,t.jsx)(o,{data:p})},{title:"Most Depended On",subtitle:"Code that everything relies on",icon:"🔗",content:(0,t.jsx)(i,{data:p})},{title:"Complexity",subtitle:"Size and connection density",icon:"📐",content:(0,t.jsx)(c,{data:p})}].map(({title:e,subtitle:r,icon:s,content:n})=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 p-4",style:v,children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-base",children:s}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-semibold text-slate-300",children:e}),(0,t.jsx)("p",{className:"text-[10px] text-slate-600",children:r})]})]}),(0,t.jsx)("div",{className:"flex-1",children:n})]},e))}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 p-5",style:v,children:[(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsx)("span",{className:"text-[10px] uppercase tracking-widest text-slate-500 font-semibold",children:"What this means for your team"})}),(0,t.jsx)("p",{className:"text-sm text-slate-300 leading-relaxed",children:j}),(0,t.jsxs)("div",{className:"flex items-center gap-3 pt-1",children:[(0,t.jsx)("span",{className:"text-xs text-slate-600",children:"Want more detail?"}),(0,t.jsx)(s.default,{href:"/blue/explorer",className:"text-xs text-blue-400 hover:text-blue-300 transition-colors font-semibold",children:"Open Expert view →"}),(0,t.jsx)(s.default,{href:"/blue/explorer/graph",className:"text-xs text-slate-400 hover:text-slate-300 transition-colors",children:"Dependency graph"}),(0,t.jsx)(s.default,{href:"/blue/explorer/zones",className:"text-xs text-slate-400 hover:text-slate-300 transition-colors",children:"Zone map"})]})]}),(0,t.jsx)("div",{className:"grid grid-cols-4 gap-3",children:[{label:"Files",value:p.summary.fileCount},{label:"Connections",value:p.summary.internalDependencyCount},{label:"Cycles",value:p.analysis.cycleCount,alert:p.analysis.cycleCount>0},{label:"Components",value:p.summary.componentCount}].map(({label:e,value:r,alert:s})=>(0,t.jsxs)("div",{className:"flex flex-col gap-0.5 px-4 py-3 rounded-xl",style:{background:"rgba(15,23,42,0.5)",border:"1px solid rgba(51,65,85,0.3)"},children:[(0,t.jsx)("span",{className:"text-[10px] uppercase tracking-widest text-slate-600",children:e}),(0,t.jsx)("span",{className:"text-xl font-semibold font-mono",style:{color:s?"rgb(248,113,113)":"rgb(226,232,240)"},children:r})]},e))})]})]})]})]})}])}]);
|
|
@@ -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 a},urlQueryToSearchParams:function(){return s}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});function a(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 o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(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,o(e));else t.set(r,o(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 g},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return j},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return h},ST:function(){return m},WEB_VITALS:function(){return a},execOnce:function(){return o},getDisplayName:function(){return p},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return i},isResSent:function(){return f},loadGetInitialProps:function(){return x},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return N}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>s.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 p(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function d(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&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${p(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,m=h&&["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 n}});let n=e=>{}},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return c},urlObjectKeys:function(){return i}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let a=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",l=e.pathname||"",s=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(a.urlQueryToSearchParams(i)));let u=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==c?(c="//"+(c||""),l&&"/"!==l[0]&&(l="/"+l)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),u&&"?"!==u[0]&&(u="?"+u),l=l.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${l}${u}${s}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return s(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return l}});let n=e.r(71645);function l(e,t){let r=(0,n.useRef)(null),l=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=l.current;t&&(l.current=null,t())}else e&&(r.current=a(e,n)),t&&(l.current=a(t,n))},[e,t])}function a(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 a}});let n=e.r(18967),l=e.r(52817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,l.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 g},useLinkStatus:function(){return y}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let a=e.r(90809),o=e.r(43476),s=a._(e.r(71645)),i=e.r(95057),c=e.r(8372),u=e.r(18581),p=e.r(18967),f=e.r(5550);e.r(33525);let d=e.r(88540),x=e.r(91949),h=e.r(73668),m=e.r(9396);function g(t){var r,n;let l,a,g,[y,j]=(0,s.useOptimistic)(x.IDLE_LINK_STATUS),v=(0,s.useRef)(null),{href:N,as:w,children:k,prefetch:E=null,passHref:P,replace:_,shallow:S,scroll:C,onClick:O,onMouseEnter:R,onTouchStart:T,legacyBehavior:L=!1,onNavigate:A,transitionTypes:M,ref:$,unstable_dynamicOnHover:I,...U}=t;l=k,L&&("string"==typeof l||"number"==typeof l)&&(l=(0,o.jsx)("a",{children:l}));let B=s.default.useContext(c.AppRouterContext),F=!1!==E,D=!1!==E?null===(n=E)||"auto"===n?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,K="string"==typeof(r=w||N)?r:(0,i.formatUrl)(r);if(L){if(l?.$$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});a=s.default.Children.only(l)}let z=L?a&&"object"==typeof a&&a.ref:$,W=s.default.useCallback(e=>(null!==B&&(v.current=(0,x.mountLinkInstance)(e,K,B,D,F,j)),()=>{v.current&&((0,x.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,x.unmountPrefetchableInstance)(e)}),[F,K,B,D,j]),V={ref:(0,u.useMergedRef)(W,z),onClick(t){L||"function"!=typeof O||O(t),L&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!B||t.defaultPrevented||function(t,r,n,l,a,o,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)){l&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:p}=e.r(99781);s.default.startTransition(()=>{p(r,l?"replace":"push",!1===a?d.ScrollBehavior.NoScroll:d.ScrollBehavior.Default,n.current,i)})}}(t,K,v,_,C,A,M)},onMouseEnter(e){L||"function"!=typeof R||R(e),L&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),B&&F&&(0,x.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){L||"function"!=typeof T||T(e),L&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),B&&F&&(0,x.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,p.isAbsoluteUrl)(K)?V.href=K:L&&!P&&("a"!==a.type||"href"in a.props)||(V.href=(0,f.addBasePath)(K)),g=L?s.default.cloneElement(a,V):(0,o.jsx)("a",{...U,...V,children:l}),(0,o.jsx)(b.Provider,{value:y,children:g})}e.r(84508);let b=(0,s.createContext)(x.IDLE_LINK_STATUS),y=()=>(0,s.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,l]=(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(()=>l(!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),l=e.i(71645);let a={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 o(e){return"free"!==a[e].tier}e.s(["FREE_TIER_LOC_LIMIT",0,5e4,"showProBadge",0,o],36528);let s=()=>(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:a=!1}){let[c,u]=(0,l.useState)(!1),p=(0,l.useRef)(null);if((0,l.useEffect)(()=>{function e(e){p.current&&!p.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 f=o("monorepo")&&!a;return(0,t.jsxs)("div",{className:"relative",ref:p,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"}),f&&(0,t.jsx)(s,{}),(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,l.useState)(null),[n,a]=(0,l.useState)(null),[o,s]=(0,l.useState)(!1);(0,l.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),a(t.workspace??null)}).finally(()=>s(!0))},[e]);let i=(0,l.useCallback)(async t=>{a(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:o,wq:c}}e.s(["useActiveWorkspace",0,u],60888);let p={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 f(e){let[t,r]=(0,l.useState)(null),[n,a]=(0,l.useState)(!1),[o,s]=(0,l.useState)(0);(0,l.useEffect)(()=>{fetch(`/api/license${e}`).then(e=>e.json()).then(e=>r(e)).catch(()=>r(p)).finally(()=>a(!0))},[e,o]);let i=(0,l.useCallback)(()=>s(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,f],13121);let d=[{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:l}=(0,c.useTargetPath)(),{monorepo:a,activeWorkspace:o,setActiveWorkspace:s}=u(l),{isPro:p}=f(l),x=p?[...d.slice(0,1),{href:"/blue/explorer",label:"Explorer",color:"rgb(56,189,248)"},...d.slice(1)]:d;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:l,color:a})=>{let o=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:o?a??"rgb(226,232,240)":"rgba(148,163,184,0.8)"},children:l})]},n)}),a&&"single"!==a.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:a,activeWorkspace:o,onSelect:s,isPro:p})]})]})}],50667)},48675,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(22016),l=e.i(50667);let a="rgb(251,191,36)",o={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)"},s={critical:"rgb(248,113,113)",high:"rgb(251,191,36)",medium:"rgb(99,102,241)",low:"rgb(52,211,153)"},i={active:"rgb(52,211,153)",experimental:"rgb(99,102,241)",deprecated:"rgb(251,191,36)",sunset:"rgb(148,163,184)"};function c({cap:e}){return(0,t.jsxs)(n.default,{href:`/amber/capabilities/${encodeURIComponent(e.id)}`,className:"w-full rounded-xl p-5 flex flex-col gap-2 transition-all hover:brightness-110 cursor-pointer",style:o,children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h3",{className:"text-sm font-semibold text-slate-200 leading-snug",children:e.name}),(0,t.jsx)("span",{className:"text-xs font-mono text-slate-500",children:e.id})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 flex-shrink-0 flex-wrap justify-end",children:[e.criticality&&(0,t.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:(s[e.criticality]??a)+"18",color:s[e.criticality]??a,border:`1px solid ${s[e.criticality]??a}30`},children:e.criticality}),e.lifecycle&&(0,t.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:(i[e.lifecycle]??"rgb(148,163,184)")+"15",color:i[e.lifecycle]??"rgb(148,163,184)",border:`1px solid ${i[e.lifecycle]??"rgb(148,163,184)"}28`},children:e.lifecycle}),e.external&&(0,t.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:"rgba(99,102,241,0.12)",color:"rgb(129,140,248)",border:"1px solid rgba(99,102,241,0.25)"},children:"external"})]})]}),e.description&&(0,t.jsx)("p",{className:"text-xs text-slate-400 leading-relaxed line-clamp-2",children:e.description}),e.owner&&(0,t.jsx)("p",{className:"text-xs text-slate-600 font-mono",children:e.owner})]})}e.s(["default",0,function(){let[e,s]=(0,r.useState)([]),[i,u]=(0,r.useState)(!0),[p,f]=(0,r.useState)(!1),[d,x]=(0,r.useState)("");(0,r.useEffect)(()=>{fetch("/api/amber/capabilities").then(e=>e.json()).then(({capabilities:e})=>{Array.isArray(e)&&(s(e),0===e.length&&f(!0))}).catch(()=>f(!0)).finally(()=>u(!1))},[]);let h=d.trim()?e.filter(e=>e.name.toLowerCase().includes(d.toLowerCase())||e.id.toLowerCase().includes(d.toLowerCase())||(e.description??"").toLowerCase().includes(d.toLowerCase())):e;return(0,t.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,t.jsx)(l.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.jsx)("div",{className:"w-full flex items-center justify-between",children:(0,t.jsxs)("div",{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:a},children:"Capabilities"})]}),(0,t.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:[e.length," registered"]})]})}),e.length>0&&(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)("input",{type:"text",value:d,onChange:e=>x(e.target.value),placeholder:"Filter capabilities…",className:"w-full rounded-lg px-3 py-2 text-sm font-mono text-slate-200 outline-none focus:ring-2",style:{background:"rgba(2,6,23,0.6)",border:"1px solid var(--border-default)","--tw-ring-color":a}})}),i&&(0,t.jsx)("div",{className:"w-full text-center py-16 text-slate-500 text-sm",children:"Loading…"}),!i&&p&&(0,t.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:o,children:[(0,t.jsx)("span",{className:"text-4xl",children:"🧩"}),(0,t.jsx)("p",{className:"text-slate-300 font-medium",children:"No capability registry found"}),(0,t.jsxs)("p",{className:"text-slate-500 text-sm max-w-sm",children:["Create ",(0,t.jsx)("span",{className:"font-mono text-amber-400",children:".amber/capabilities.md"})," in your target project with a YAML frontmatter capabilities list."]})]}),!i&&0===h.length&&e.length>0&&(0,t.jsxs)("p",{className:"text-slate-500 text-sm",children:['No capabilities match "',d,'"']}),!i&&h.length>0&&(0,t.jsx)("div",{className:"w-full flex flex-col gap-3",children:h.map(e=>(0,t.jsx)(c,{cap:e},e.id))})]}),(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 / Capabilities"]})]})}])}]);
|
|
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 a},urlQueryToSearchParams:function(){return s}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});function a(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 o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(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,o(e));else t.set(r,o(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 g},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return j},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return h},ST:function(){return m},WEB_VITALS:function(){return a},execOnce:function(){return o},getDisplayName:function(){return p},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return i},isResSent:function(){return f},loadGetInitialProps:function(){return x},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return N}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>s.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 p(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function d(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&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${p(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,m=h&&["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 n}});let n=e=>{}},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return c},urlObjectKeys:function(){return i}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let a=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",l=e.pathname||"",s=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(a.urlQueryToSearchParams(i)));let u=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==c?(c="//"+(c||""),l&&"/"!==l[0]&&(l="/"+l)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),u&&"?"!==u[0]&&(u="?"+u),l=l.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${l}${u}${s}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return s(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return l}});let n=e.r(71645);function l(e,t){let r=(0,n.useRef)(null),l=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=l.current;t&&(l.current=null,t())}else e&&(r.current=a(e,n)),t&&(l.current=a(t,n))},[e,t])}function a(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 a}});let n=e.r(18967),l=e.r(52817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,l.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 g},useLinkStatus:function(){return y}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let a=e.r(90809),o=e.r(43476),s=a._(e.r(71645)),i=e.r(95057),c=e.r(8372),u=e.r(18581),p=e.r(18967),f=e.r(5550);e.r(33525);let d=e.r(88540),x=e.r(91949),h=e.r(73668),m=e.r(9396);function g(t){var r,n;let l,a,g,[y,j]=(0,s.useOptimistic)(x.IDLE_LINK_STATUS),v=(0,s.useRef)(null),{href:N,as:w,children:k,prefetch:E=null,passHref:P,replace:_,shallow:S,scroll:C,onClick:O,onMouseEnter:R,onTouchStart:T,legacyBehavior:L=!1,onNavigate:A,transitionTypes:M,ref:$,unstable_dynamicOnHover:I,...U}=t;l=k,L&&("string"==typeof l||"number"==typeof l)&&(l=(0,o.jsx)("a",{children:l}));let B=s.default.useContext(c.AppRouterContext),F=!1!==E,D=!1!==E?null===(n=E)||"auto"===n?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,K="string"==typeof(r=w||N)?r:(0,i.formatUrl)(r);if(L){if(l?.$$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});a=s.default.Children.only(l)}let z=L?a&&"object"==typeof a&&a.ref:$,W=s.default.useCallback(e=>(null!==B&&(v.current=(0,x.mountLinkInstance)(e,K,B,D,F,j)),()=>{v.current&&((0,x.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,x.unmountPrefetchableInstance)(e)}),[F,K,B,D,j]),V={ref:(0,u.useMergedRef)(W,z),onClick(t){L||"function"!=typeof O||O(t),L&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!B||t.defaultPrevented||function(t,r,n,l,a,o,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)){l&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:p}=e.r(99781);s.default.startTransition(()=>{p(r,l?"replace":"push",!1===a?d.ScrollBehavior.NoScroll:d.ScrollBehavior.Default,n.current,i)})}}(t,K,v,_,C,A,M)},onMouseEnter(e){L||"function"!=typeof R||R(e),L&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),B&&F&&(0,x.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){L||"function"!=typeof T||T(e),L&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),B&&F&&(0,x.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,p.isAbsoluteUrl)(K)?V.href=K:L&&!P&&("a"!==a.type||"href"in a.props)||(V.href=(0,f.addBasePath)(K)),g=L?s.default.cloneElement(a,V):(0,o.jsx)("a",{...U,...V,children:l}),(0,o.jsx)(b.Provider,{value:y,children:g})}e.r(84508);let b=(0,s.createContext)(x.IDLE_LINK_STATUS),y=()=>(0,s.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,l]=(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(()=>l(!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),l=e.i(71645);let a={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 o(e){return"free"!==a[e].tier}e.s(["FREE_TIER_LOC_LIMIT",0,5e4,"showProBadge",0,o],36528);let s=()=>(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:a=!1}){let[c,u]=(0,l.useState)(!1),p=(0,l.useRef)(null);if((0,l.useEffect)(()=>{function e(e){p.current&&!p.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 f=o("monorepo")&&!a;return(0,t.jsxs)("div",{className:"relative",ref:p,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"}),f&&(0,t.jsx)(s,{}),(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,l.useState)(null),[n,a]=(0,l.useState)(null),[o,s]=(0,l.useState)(!1);(0,l.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),a(t.workspace??null)}).finally(()=>s(!0))},[e]);let i=(0,l.useCallback)(async t=>{a(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:o,wq:c}}e.s(["useActiveWorkspace",0,u],60888);let p={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 f(e){let[t,r]=(0,l.useState)(null),[n,a]=(0,l.useState)(!1),[o,s]=(0,l.useState)(0);(0,l.useEffect)(()=>{fetch(`/api/license${e}`).then(e=>e.json()).then(e=>r(e)).catch(()=>r(p)).finally(()=>a(!0))},[e,o]);let i=(0,l.useCallback)(()=>s(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,f],13121);let d=[{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:l}=(0,c.useTargetPath)(),{monorepo:a,activeWorkspace:o,setActiveWorkspace:s}=u(l),{isPro:p}=f(l),x=p?[...d.slice(0,1),{href:"/blue/explorer",label:"Explorer",color:"rgb(56,189,248)"},...d.slice(1)]:d;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:l,color:a})=>{let o=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:o?a??"rgb(226,232,240)":"rgba(148,163,184,0.8)"},children:l})]},n)}),a&&"single"!==a.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:a,activeWorkspace:o,onSelect:s,isPro:p})]})]})}],50667)},48675,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(22016),l=e.i(50667);let a="rgb(251,191,36)",o={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)"},s={critical:"rgb(248,113,113)",high:"rgb(251,191,36)",medium:"rgb(99,102,241)",low:"rgb(52,211,153)"},i={active:"rgb(52,211,153)",experimental:"rgb(99,102,241)",deprecated:"rgb(251,191,36)",sunset:"rgb(148,163,184)"};function c({cap:e}){return(0,t.jsxs)(n.default,{href:`/amber/capabilities/${encodeURIComponent(e.id)}`,className:"w-full rounded-xl p-5 flex flex-col gap-2 transition-all hover:brightness-110 cursor-pointer",style:o,children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h3",{className:"text-sm font-semibold text-slate-200 leading-snug",children:e.name}),(0,t.jsx)("span",{className:"text-xs font-mono text-slate-500",children:e.id})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 flex-shrink-0 flex-wrap justify-end",children:[e.criticality&&(0,t.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:(s[e.criticality]??a)+"18",color:s[e.criticality]??a,border:`1px solid ${s[e.criticality]??a}30`},children:e.criticality}),e.lifecycle&&(0,t.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:(i[e.lifecycle]??"rgb(148,163,184)")+"15",color:i[e.lifecycle]??"rgb(148,163,184)",border:`1px solid ${i[e.lifecycle]??"rgb(148,163,184)"}28`},children:e.lifecycle}),e.external&&(0,t.jsx)("span",{className:"text-xs font-mono px-2 py-0.5 rounded-full",style:{background:"rgba(99,102,241,0.12)",color:"rgb(129,140,248)",border:"1px solid rgba(99,102,241,0.25)"},children:"external"})]})]}),e.description&&(0,t.jsx)("p",{className:"text-xs text-slate-400 leading-relaxed line-clamp-2",children:e.description}),e.owner&&(0,t.jsx)("p",{className:"text-xs text-slate-600 font-mono",children:e.owner})]})}e.s(["default",0,function(){let[e,s]=(0,r.useState)([]),[i,u]=(0,r.useState)(!0),[p,f]=(0,r.useState)(!1),[d,x]=(0,r.useState)("");(0,r.useEffect)(()=>{fetch("/api/amber/capabilities").then(e=>e.json()).then(({capabilities:e})=>{Array.isArray(e)&&(s(e),0===e.length&&f(!0))}).catch(()=>f(!0)).finally(()=>u(!1))},[]);let h=d.trim()?e.filter(e=>e.name.toLowerCase().includes(d.toLowerCase())||e.id.toLowerCase().includes(d.toLowerCase())||(e.description??"").toLowerCase().includes(d.toLowerCase())):e;return(0,t.jsxs)("div",{className:"flex flex-col min-h-screen",style:{background:"var(--bg-app)"},children:[(0,t.jsx)(l.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.jsx)("div",{className:"w-full flex items-center justify-between",children:(0,t.jsxs)("div",{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:a},children:"Capabilities"})]}),(0,t.jsxs)("p",{className:"text-xs text-slate-500 mt-0.5",children:[e.length," registered"]})]})}),e.length>0&&(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)("input",{type:"text",value:d,onChange:e=>x(e.target.value),placeholder:"Filter capabilities…",className:"w-full rounded-lg px-3 py-2 text-sm font-mono text-slate-200 outline-none focus:ring-2",style:{background:"rgba(2,6,23,0.6)",border:"1px solid var(--border-default)","--tw-ring-color":a}})}),i&&(0,t.jsx)("div",{className:"w-full text-center py-16 text-slate-500 text-sm",children:"Loading…"}),!i&&p&&(0,t.jsxs)("div",{className:"w-full rounded-xl p-8 text-center flex flex-col items-center gap-3",style:o,children:[(0,t.jsx)("span",{className:"text-4xl",children:"🧩"}),(0,t.jsx)("p",{className:"text-slate-300 font-medium",children:"No capability registry found"}),(0,t.jsxs)("p",{className:"text-slate-500 text-sm max-w-sm",children:["Create ",(0,t.jsx)("span",{className:"font-mono text-amber-400",children:".amber/capabilities.md"})," in your target project with a YAML frontmatter capabilities list."]})]}),!i&&0===h.length&&e.length>0&&(0,t.jsxs)("p",{className:"text-slate-500 text-sm",children:['No capabilities match "',d,'"']}),!i&&h.length>0&&(0,t.jsx)("div",{className:"w-full flex flex-col gap-3",children:h.map(e=>(0,t.jsx)(c,{cap:e},e.id))})]}),(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 / Capabilities"]})]})}])}]);
|