@tyroneross/navgator 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +23 -0
- package/.claude-plugin/plugin.json +10 -7
- package/CLAUDE.md +72 -0
- package/README.md +49 -80
- package/dist/cli/index.js +1 -1
- package/hooks/hooks.json +5 -5
- package/package.json +5 -3
- package/scripts/install-plugin.sh +98 -0
- package/skills/check/SKILL.md +64 -0
- package/skills/connections/SKILL.md +54 -0
- package/skills/diagram/SKILL.md +64 -0
- package/skills/export/SKILL.md +49 -0
- package/skills/impact/SKILL.md +58 -0
- package/skills/install/SKILL.md +94 -0
- package/skills/scan/SKILL.md +75 -0
- package/skills/status/SKILL.md +37 -0
- package/skills/ui/SKILL.md +43 -0
- package/skills/update/SKILL.md +43 -0
- package/web/.next/standalone/web/.next/BUILD_ID +1 -0
- package/web/.next/standalone/web/.next/app-path-routes-manifest.json +13 -0
- package/web/.next/standalone/web/.next/build-manifest.json +20 -0
- package/web/.next/standalone/web/.next/package.json +1 -0
- package/web/.next/standalone/web/.next/prerender-manifest.json +88 -0
- package/web/.next/standalone/web/.next/required-server-files.json +317 -0
- package/web/.next/standalone/web/.next/routes-manifest.json +110 -0
- package/web/.next/standalone/web/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/_global-error/page/build-manifest.json +17 -0
- package/web/.next/standalone/web/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
- package/web/.next/standalone/web/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
- package/web/.next/standalone/web/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/_global-error/page.js +10 -0
- package/web/.next/standalone/web/.next/server/app/_global-error/page.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/_global-error/page.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/_global-error/page_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/_global-error.html +2 -0
- package/web/.next/standalone/web/.next/server/app/_global-error.meta +15 -0
- package/web/.next/standalone/web/.next/server/app/_global-error.rsc +12 -0
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_full.segment.rsc +12 -0
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_head.segment.rsc +7 -0
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_index.segment.rsc +4 -0
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
- package/web/.next/standalone/web/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/_not-found/page/build-manifest.json +17 -0
- package/web/.next/standalone/web/.next/server/app/_not-found/page/next-font-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
- package/web/.next/standalone/web/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/_not-found/page.js +13 -0
- package/web/.next/standalone/web/.next/server/app/_not-found/page.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/_not-found/page_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/_not-found.html +1 -0
- package/web/.next/standalone/web/.next/server/app/_not-found.meta +16 -0
- package/web/.next/standalone/web/.next/server/app/_not-found.rsc +17 -0
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_full.segment.rsc +17 -0
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_head.segment.rsc +8 -0
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_index.segment.rsc +8 -0
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +4 -0
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_tree.segment.rsc +3 -0
- package/web/.next/standalone/web/.next/server/app/api/components/route/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/api/components/route/build-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/api/components/route/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/api/components/route.js +6 -0
- package/web/.next/standalone/web/.next/server/app/api/components/route.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/api/components/route.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/api/components/route_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/api/connections/route/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/api/connections/route/build-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/api/connections/route/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/api/connections/route.js +6 -0
- package/web/.next/standalone/web/.next/server/app/api/connections/route.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/api/connections/route.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/api/connections/route_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/api/graph/route/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/api/graph/route/build-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/api/graph/route/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/api/graph/route.js +6 -0
- package/web/.next/standalone/web/.next/server/app/api/graph/route.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/api/graph/route.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/api/graph/route_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/api/projects/route/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/api/projects/route/build-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/api/projects/route/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/api/projects/route.js +6 -0
- package/web/.next/standalone/web/.next/server/app/api/projects/route.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/api/projects/route.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/api/projects/route_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/api/prompts/route/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/api/prompts/route/build-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/api/prompts/route/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/api/prompts/route.js +7 -0
- package/web/.next/standalone/web/.next/server/app/api/prompts/route.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/api/prompts/route.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/api/prompts/route_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/api/scan/route/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/api/scan/route/build-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/api/scan/route/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/api/scan/route.js +6 -0
- package/web/.next/standalone/web/.next/server/app/api/scan/route.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/api/scan/route.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/api/scan/route_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/api/settings/route/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/api/settings/route/build-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/api/settings/route/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/api/settings/route.js +6 -0
- package/web/.next/standalone/web/.next/server/app/api/settings/route.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/api/settings/route.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/api/settings/route_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/api/status/route/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/api/status/route/build-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/api/status/route/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/api/status/route.js +6 -0
- package/web/.next/standalone/web/.next/server/app/api/status/route.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/api/status/route.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/api/status/route_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app/index.html +1 -0
- package/web/.next/standalone/web/.next/server/app/index.meta +14 -0
- package/web/.next/standalone/web/.next/server/app/index.rsc +23 -0
- package/web/.next/standalone/web/.next/server/app/index.segments/__PAGE__.segment.rsc +9 -0
- package/web/.next/standalone/web/.next/server/app/index.segments/_full.segment.rsc +23 -0
- package/web/.next/standalone/web/.next/server/app/index.segments/_head.segment.rsc +8 -0
- package/web/.next/standalone/web/.next/server/app/index.segments/_index.segment.rsc +8 -0
- package/web/.next/standalone/web/.next/server/app/index.segments/_tree.segment.rsc +5 -0
- package/web/.next/standalone/web/.next/server/app/page/app-paths-manifest.json +3 -0
- package/web/.next/standalone/web/.next/server/app/page/build-manifest.json +17 -0
- package/web/.next/standalone/web/.next/server/app/page/next-font-manifest.json +11 -0
- package/web/.next/standalone/web/.next/server/app/page/react-loadable-manifest.json +1 -0
- package/web/.next/standalone/web/.next/server/app/page/server-reference-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/app/page.js +15 -0
- package/web/.next/standalone/web/.next/server/app/page.js.map +5 -0
- package/web/.next/standalone/web/.next/server/app/page.js.nft.json +1 -0
- package/web/.next/standalone/web/.next/server/app/page_client-reference-manifest.js +2 -0
- package/web/.next/standalone/web/.next/server/app-paths-manifest.json +13 -0
- package/web/.next/standalone/web/.next/server/chunks/2374f_next_dist_esm_build_templates_app-route_0bb4e66a.js +19 -0
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__006b837d._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__1ab91221._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__2e09fec9._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__38d0390f._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__539ef30d._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__594bcf20._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__b888fadf._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__f3450c22._.js +21 -0
- package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__fa2ec862._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/[turbopack]_runtime.js +770 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_e6039567._.js +6 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_09351209._.js +6 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_222be7ae._.js +6 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_2346e1b3._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_cec86455._.js +4 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_client_components_9c5d1a14._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_client_components_builtin_forbidden_8eae0c85.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_client_components_builtin_global-error_81159d60.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_client_components_builtin_unauthorized_7d34a31c.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_e03afa0e._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_esm_build_templates_app-page_2c8d71b9.js +4 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/2374f_next_dist_server_route-modules_app-page_vendored_ssr_react-dom_8910f04c.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__1a0663e6._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__4306eafc._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__44903626._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__60278e3f._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__61942f24._.js +4 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__8c45c3c9._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__9a2f110d._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__ed07bd88._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[root-of-the-server]__f2db61af._.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/[turbopack]_runtime.js +770 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/web_0103e631._.js +4 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/web_171de0df._.js +14 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/web__next-internal_server_app__global-error_page_actions_2a1e94d4.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/web__next-internal_server_app__not-found_page_actions_9eaa9845.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/ssr/web__next-internal_server_app_page_actions_ec26bf28.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/web__next-internal_server_app_api_components_route_actions_c88bf2a6.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/web__next-internal_server_app_api_connections_route_actions_b1d5e95a.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/web__next-internal_server_app_api_graph_route_actions_e2dd052c.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/web__next-internal_server_app_api_projects_route_actions_3f671cbb.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/web__next-internal_server_app_api_prompts_route_actions_85b56166.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/web__next-internal_server_app_api_scan_route_actions_861cde8d.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/web__next-internal_server_app_api_settings_route_actions_e19026ae.js +3 -0
- package/web/.next/standalone/web/.next/server/chunks/web__next-internal_server_app_api_status_route_actions_8b8c6c89.js +3 -0
- package/web/.next/standalone/web/.next/server/functions-config-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/middleware-build-manifest.js +21 -0
- package/web/.next/standalone/web/.next/server/middleware-manifest.json +6 -0
- package/web/.next/standalone/web/.next/server/next-font-manifest.js +1 -0
- package/web/.next/standalone/web/.next/server/next-font-manifest.json +15 -0
- package/web/.next/standalone/web/.next/server/pages/404.html +1 -0
- package/web/.next/standalone/web/.next/server/pages/500.html +2 -0
- package/web/.next/standalone/web/.next/server/pages-manifest.json +4 -0
- package/web/.next/standalone/web/.next/server/server-reference-manifest.js +1 -0
- package/web/.next/standalone/web/.next/server/server-reference-manifest.json +5 -0
- package/web/.next/standalone/web/.next/static/P-ZMQO7_Wnj487ks3guqa/_buildManifest.js +11 -0
- package/web/.next/standalone/web/.next/static/P-ZMQO7_Wnj487ks3guqa/_clientMiddlewareManifest.json +1 -0
- package/web/.next/standalone/web/.next/static/P-ZMQO7_Wnj487ks3guqa/_ssgManifest.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/062ae79751df2759.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/159889e17b2cf1f8.js +2 -0
- package/web/.next/standalone/web/.next/static/chunks/458d6f37339fc069.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/6d3d39425a878d7f.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/8a80e7184ad3a13f.css +2 -0
- package/web/.next/standalone/web/.next/static/chunks/a6dad97d9634a72d.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/c056475f5f4424b6.css +1 -0
- package/web/.next/standalone/web/.next/static/chunks/c57fee8cce8d7cb9.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/cb3513192b63e480.js +12 -0
- package/web/.next/standalone/web/.next/static/chunks/dd22b5f2beb2cc31.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/e0affeef0ddb9a97.js +4 -0
- package/web/.next/standalone/web/.next/static/chunks/f74a6859e1c4d5e3.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/turbopack-c0c89f9e6f0a38c4.js +3 -0
- package/web/.next/standalone/web/.next/static/media/4fa387ec64143e14-s.c1fdd6c2.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/7178b3e590c64307-s.b97b3418.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/797e433ab948586e-s.p.dbea232f.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/8a480f0b521d4e75-s.8e0177b5.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/bbc41e54d2fcbd21-s.799d8ef8.woff2 +0 -0
- package/web/.next/standalone/web/.next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2 +0 -0
- package/web/.next/standalone/web/app/api/components/route.ts +252 -0
- package/web/.next/standalone/web/app/api/connections/route.ts +319 -0
- package/web/.next/standalone/web/app/api/graph/route.ts +235 -0
- package/web/.next/standalone/web/app/api/projects/route.ts +221 -0
- package/web/.next/standalone/web/app/api/prompts/route.ts +328 -0
- package/web/.next/standalone/web/app/api/scan/route.ts +108 -0
- package/web/.next/standalone/web/app/api/settings/route.ts +198 -0
- package/web/.next/standalone/web/app/api/status/route.ts +169 -0
- package/web/.next/standalone/web/app/globals.css +99 -0
- package/web/.next/standalone/web/app/layout.tsx +49 -0
- package/web/.next/standalone/web/app/page.tsx +94 -0
- package/web/.next/standalone/web/components/components-panel.tsx +240 -0
- package/web/.next/standalone/web/components/connections-panel.tsx +220 -0
- package/web/.next/standalone/web/components/diagram-view.tsx +735 -0
- package/web/.next/standalone/web/components/header.tsx +225 -0
- package/web/.next/standalone/web/components/impact-analysis.tsx +358 -0
- package/web/.next/standalone/web/components/llm-tracking-panel.tsx +1483 -0
- package/web/.next/standalone/web/components/settings-panel.tsx +671 -0
- package/web/.next/standalone/web/components/sidebar.tsx +74 -0
- package/web/.next/standalone/web/components/status-overview.tsx +326 -0
- package/web/.next/standalone/web/components/theme-provider.tsx +11 -0
- package/web/.next/standalone/web/components/ui/accordion.tsx +66 -0
- package/web/.next/standalone/web/components/ui/alert-dialog.tsx +157 -0
- package/web/.next/standalone/web/components/ui/alert.tsx +66 -0
- package/web/.next/standalone/web/components/ui/aspect-ratio.tsx +11 -0
- package/web/.next/standalone/web/components/ui/avatar.tsx +53 -0
- package/web/.next/standalone/web/components/ui/badge.tsx +46 -0
- package/web/.next/standalone/web/components/ui/breadcrumb.tsx +109 -0
- package/web/.next/standalone/web/components/ui/button-group.tsx +83 -0
- package/web/.next/standalone/web/components/ui/button.tsx +60 -0
- package/web/.next/standalone/web/components/ui/calendar.tsx +213 -0
- package/web/.next/standalone/web/components/ui/card.tsx +92 -0
- package/web/.next/standalone/web/components/ui/carousel.tsx +241 -0
- package/web/.next/standalone/web/components/ui/chart.tsx +353 -0
- package/web/.next/standalone/web/components/ui/checkbox.tsx +32 -0
- package/web/.next/standalone/web/components/ui/collapsible.tsx +33 -0
- package/web/.next/standalone/web/components/ui/command.tsx +184 -0
- package/web/.next/standalone/web/components/ui/context-menu.tsx +252 -0
- package/web/.next/standalone/web/components/ui/dialog.tsx +143 -0
- package/web/.next/standalone/web/components/ui/drawer.tsx +135 -0
- package/web/.next/standalone/web/components/ui/dropdown-menu.tsx +257 -0
- package/web/.next/standalone/web/components/ui/empty.tsx +104 -0
- package/web/.next/standalone/web/components/ui/field.tsx +244 -0
- package/web/.next/standalone/web/components/ui/form.tsx +167 -0
- package/web/.next/standalone/web/components/ui/hover-card.tsx +44 -0
- package/web/.next/standalone/web/components/ui/input-group.tsx +169 -0
- package/web/.next/standalone/web/components/ui/input-otp.tsx +77 -0
- package/web/.next/standalone/web/components/ui/input.tsx +21 -0
- package/web/.next/standalone/web/components/ui/item.tsx +193 -0
- package/web/.next/standalone/web/components/ui/kbd.tsx +28 -0
- package/web/.next/standalone/web/components/ui/label.tsx +24 -0
- package/web/.next/standalone/web/components/ui/menubar.tsx +276 -0
- package/web/.next/standalone/web/components/ui/navigation-menu.tsx +166 -0
- package/web/.next/standalone/web/components/ui/pagination.tsx +127 -0
- package/web/.next/standalone/web/components/ui/popover.tsx +48 -0
- package/web/.next/standalone/web/components/ui/progress.tsx +31 -0
- package/web/.next/standalone/web/components/ui/radio-group.tsx +45 -0
- package/web/.next/standalone/web/components/ui/resizable.tsx +56 -0
- package/web/.next/standalone/web/components/ui/scroll-area.tsx +58 -0
- package/web/.next/standalone/web/components/ui/select.tsx +185 -0
- package/web/.next/standalone/web/components/ui/separator.tsx +28 -0
- package/web/.next/standalone/web/components/ui/sheet.tsx +139 -0
- package/web/.next/standalone/web/components/ui/sidebar.tsx +726 -0
- package/web/.next/standalone/web/components/ui/skeleton.tsx +13 -0
- package/web/.next/standalone/web/components/ui/slider.tsx +63 -0
- package/web/.next/standalone/web/components/ui/sonner.tsx +25 -0
- package/web/.next/standalone/web/components/ui/spinner.tsx +16 -0
- package/web/.next/standalone/web/components/ui/switch.tsx +31 -0
- package/web/.next/standalone/web/components/ui/table.tsx +116 -0
- package/web/.next/standalone/web/components/ui/tabs.tsx +66 -0
- package/web/.next/standalone/web/components/ui/textarea.tsx +18 -0
- package/web/.next/standalone/web/components/ui/toast.tsx +129 -0
- package/web/.next/standalone/web/components/ui/toaster.tsx +35 -0
- package/web/.next/standalone/web/components/ui/toggle-group.tsx +73 -0
- package/web/.next/standalone/web/components/ui/toggle.tsx +47 -0
- package/web/.next/standalone/web/components/ui/tooltip.tsx +61 -0
- package/web/.next/standalone/web/components/ui/use-mobile.tsx +19 -0
- package/web/.next/standalone/web/components/ui/use-toast.ts +191 -0
- package/web/.next/standalone/web/components.json +21 -0
- package/web/.next/standalone/web/hooks/use-mobile.ts +19 -0
- package/web/.next/standalone/web/hooks/use-toast.ts +191 -0
- package/web/.next/standalone/web/lib/hooks/index.ts +8 -0
- package/web/.next/standalone/web/lib/hooks/use-components.ts +83 -0
- package/web/.next/standalone/web/lib/hooks/use-connections.ts +83 -0
- package/web/.next/standalone/web/lib/hooks/use-projects.ts +116 -0
- package/web/.next/standalone/web/lib/hooks/use-prompts.ts +122 -0
- package/web/.next/standalone/web/lib/hooks/use-settings.ts +135 -0
- package/web/.next/standalone/web/lib/hooks/use-status.ts +80 -0
- package/web/.next/standalone/web/lib/project-context.tsx +46 -0
- package/web/.next/standalone/web/lib/transform.ts +625 -0
- package/web/.next/standalone/web/lib/types.ts +198 -0
- package/web/.next/standalone/web/lib/utils.ts +6 -0
- package/web/.next/standalone/web/next.config.mjs +12 -0
- package/web/.next/standalone/web/package-lock.json +3987 -0
- package/web/.next/standalone/web/package.json +73 -0
- package/web/.next/standalone/web/pnpm-lock.yaml +5 -0
- package/web/.next/standalone/web/postcss.config.mjs +8 -0
- package/web/.next/standalone/web/public/apple-icon.png +0 -0
- package/web/.next/standalone/web/public/icon-dark-32x32.png +0 -0
- package/web/.next/standalone/web/public/icon-light-32x32.png +0 -0
- package/web/.next/standalone/web/public/icon.svg +26 -0
- package/web/.next/standalone/web/public/navgator-logo.png +0 -0
- package/web/.next/standalone/web/public/placeholder-logo.png +0 -0
- package/web/.next/standalone/web/public/placeholder-logo.svg +1 -0
- package/web/.next/standalone/web/public/placeholder-user.jpg +0 -0
- package/web/.next/standalone/web/public/placeholder.jpg +0 -0
- package/web/.next/standalone/web/public/placeholder.svg +1 -0
- package/web/.next/standalone/web/public/public/apple-icon.png +0 -0
- package/web/.next/standalone/web/public/public/icon-dark-32x32.png +0 -0
- package/web/.next/standalone/web/public/public/icon-light-32x32.png +0 -0
- package/web/.next/standalone/web/public/public/icon.svg +26 -0
- package/web/.next/standalone/web/public/public/navgator-logo.png +0 -0
- package/web/.next/standalone/web/public/public/placeholder-logo.png +0 -0
- package/web/.next/standalone/web/public/public/placeholder-logo.svg +1 -0
- package/web/.next/standalone/web/public/public/placeholder-user.jpg +0 -0
- package/web/.next/standalone/web/public/public/placeholder.jpg +0 -0
- package/web/.next/standalone/web/public/public/placeholder.svg +1 -0
- package/web/.next/standalone/web/server.js +38 -0
- package/web/.next/standalone/web/styles/globals.css +125 -0
- package/web/.next/standalone/web/tsconfig.json +41 -0
- package/web/.next/static/P-ZMQO7_Wnj487ks3guqa/_buildManifest.js +11 -0
- package/web/.next/static/P-ZMQO7_Wnj487ks3guqa/_clientMiddlewareManifest.json +1 -0
- package/web/.next/static/P-ZMQO7_Wnj487ks3guqa/_ssgManifest.js +1 -0
- package/web/.next/static/chunks/062ae79751df2759.js +1 -0
- package/web/.next/static/chunks/159889e17b2cf1f8.js +2 -0
- package/web/.next/static/chunks/458d6f37339fc069.js +1 -0
- package/web/.next/static/chunks/6d3d39425a878d7f.js +1 -0
- package/web/.next/static/chunks/8a80e7184ad3a13f.css +2 -0
- package/web/.next/static/chunks/a6dad97d9634a72d.js +1 -0
- package/web/.next/static/chunks/c056475f5f4424b6.css +1 -0
- package/web/.next/static/chunks/c57fee8cce8d7cb9.js +1 -0
- package/web/.next/static/chunks/cb3513192b63e480.js +12 -0
- package/web/.next/static/chunks/dd22b5f2beb2cc31.js +1 -0
- package/web/.next/static/chunks/e0affeef0ddb9a97.js +4 -0
- package/web/.next/static/chunks/f74a6859e1c4d5e3.js +1 -0
- package/web/.next/static/chunks/turbopack-c0c89f9e6f0a38c4.js +3 -0
- package/web/.next/static/media/4fa387ec64143e14-s.c1fdd6c2.woff2 +0 -0
- package/web/.next/static/media/7178b3e590c64307-s.b97b3418.woff2 +0 -0
- package/web/.next/static/media/797e433ab948586e-s.p.dbea232f.woff2 +0 -0
- package/web/.next/static/media/8a480f0b521d4e75-s.8e0177b5.woff2 +0 -0
- package/web/.next/static/media/bbc41e54d2fcbd21-s.799d8ef8.woff2 +0 -0
- package/web/.next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2 +0 -0
- package/commands/nav-check.md +0 -64
- package/commands/nav-connections.md +0 -58
- package/commands/nav-diagram.md +0 -106
- package/commands/nav-export.md +0 -71
- package/commands/nav-impact.md +0 -58
- package/commands/nav-scan.md +0 -46
- package/commands/nav-status.md +0 -44
- package/skills/architecture-awareness/SKILL.md +0 -141
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API Route: /api/settings
|
|
3
|
+
*
|
|
4
|
+
* Loads and saves NavGator settings to .claude/settings.json
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { NextRequest, NextResponse } from "next/server";
|
|
8
|
+
import * as fs from "fs/promises";
|
|
9
|
+
import * as path from "path";
|
|
10
|
+
|
|
11
|
+
interface SettingsData {
|
|
12
|
+
scan: {
|
|
13
|
+
rootPath: string;
|
|
14
|
+
excludePaths: string[];
|
|
15
|
+
includePatterns: string[];
|
|
16
|
+
scanDepth: number;
|
|
17
|
+
watchMode: boolean;
|
|
18
|
+
autoScanOnChange: boolean;
|
|
19
|
+
};
|
|
20
|
+
detection: {
|
|
21
|
+
npm: boolean;
|
|
22
|
+
database: boolean;
|
|
23
|
+
service: boolean;
|
|
24
|
+
queue: boolean;
|
|
25
|
+
cache: boolean;
|
|
26
|
+
storage: boolean;
|
|
27
|
+
auth: boolean;
|
|
28
|
+
llm: boolean;
|
|
29
|
+
staticAnalysis: boolean;
|
|
30
|
+
environmentVariables: boolean;
|
|
31
|
+
configFiles: boolean;
|
|
32
|
+
};
|
|
33
|
+
notifications: {
|
|
34
|
+
enabled: boolean;
|
|
35
|
+
onNewConnection: boolean;
|
|
36
|
+
onBreakingChange: boolean;
|
|
37
|
+
onSecurityIssue: boolean;
|
|
38
|
+
slackWebhook: string;
|
|
39
|
+
};
|
|
40
|
+
display: {
|
|
41
|
+
theme: "dark" | "light" | "system";
|
|
42
|
+
compactMode: boolean;
|
|
43
|
+
showLineNumbers: boolean;
|
|
44
|
+
diagramDirection: "TB" | "LR";
|
|
45
|
+
maxVisibleConnections: number;
|
|
46
|
+
};
|
|
47
|
+
lastSaved?: number;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const DEFAULTS: SettingsData = {
|
|
51
|
+
scan: {
|
|
52
|
+
rootPath: "./src",
|
|
53
|
+
excludePaths: ["node_modules", ".git", "dist", "build", ".next"],
|
|
54
|
+
includePatterns: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
|
|
55
|
+
scanDepth: 10,
|
|
56
|
+
watchMode: false,
|
|
57
|
+
autoScanOnChange: true,
|
|
58
|
+
},
|
|
59
|
+
detection: {
|
|
60
|
+
npm: true,
|
|
61
|
+
database: true,
|
|
62
|
+
service: true,
|
|
63
|
+
queue: true,
|
|
64
|
+
cache: true,
|
|
65
|
+
storage: true,
|
|
66
|
+
auth: true,
|
|
67
|
+
llm: true,
|
|
68
|
+
staticAnalysis: true,
|
|
69
|
+
environmentVariables: true,
|
|
70
|
+
configFiles: true,
|
|
71
|
+
},
|
|
72
|
+
notifications: {
|
|
73
|
+
enabled: true,
|
|
74
|
+
onNewConnection: false,
|
|
75
|
+
onBreakingChange: true,
|
|
76
|
+
onSecurityIssue: true,
|
|
77
|
+
slackWebhook: "",
|
|
78
|
+
},
|
|
79
|
+
display: {
|
|
80
|
+
theme: "dark",
|
|
81
|
+
compactMode: false,
|
|
82
|
+
showLineNumbers: true,
|
|
83
|
+
diagramDirection: "TB",
|
|
84
|
+
maxVisibleConnections: 50,
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
let cachedData: SettingsData | null = null;
|
|
89
|
+
let cacheTimestamp = 0;
|
|
90
|
+
const CACHE_TTL = 30000;
|
|
91
|
+
|
|
92
|
+
function getSettingsPath(projectPath?: string | null): string {
|
|
93
|
+
const root =
|
|
94
|
+
projectPath ||
|
|
95
|
+
process.env.NAVGATOR_PROJECT_PATH ||
|
|
96
|
+
process.cwd().replace(/\/web$/, "");
|
|
97
|
+
return path.join(root, ".claude", "settings.json");
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
async function loadSettings(
|
|
101
|
+
projectPath?: string | null
|
|
102
|
+
): Promise<{ data: SettingsData; source: "local" | "default" }> {
|
|
103
|
+
const settingsPath = getSettingsPath(projectPath);
|
|
104
|
+
try {
|
|
105
|
+
const content = await fs.readFile(settingsPath, "utf-8");
|
|
106
|
+
const parsed = JSON.parse(content) as SettingsData;
|
|
107
|
+
// Merge with defaults to fill any missing keys
|
|
108
|
+
return {
|
|
109
|
+
data: {
|
|
110
|
+
scan: { ...DEFAULTS.scan, ...parsed.scan },
|
|
111
|
+
detection: { ...DEFAULTS.detection, ...parsed.detection },
|
|
112
|
+
notifications: { ...DEFAULTS.notifications, ...parsed.notifications },
|
|
113
|
+
display: { ...DEFAULTS.display, ...parsed.display },
|
|
114
|
+
lastSaved: parsed.lastSaved,
|
|
115
|
+
},
|
|
116
|
+
source: "local",
|
|
117
|
+
};
|
|
118
|
+
} catch {
|
|
119
|
+
return { data: { ...DEFAULTS }, source: "default" };
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* GET /api/settings
|
|
125
|
+
*/
|
|
126
|
+
export async function GET(request: NextRequest) {
|
|
127
|
+
const searchParams = request.nextUrl.searchParams;
|
|
128
|
+
const refresh = searchParams.get("refresh") === "true";
|
|
129
|
+
const projectPath = searchParams.get("path");
|
|
130
|
+
|
|
131
|
+
if (!refresh && cachedData && Date.now() - cacheTimestamp < CACHE_TTL) {
|
|
132
|
+
return NextResponse.json({
|
|
133
|
+
success: true,
|
|
134
|
+
data: cachedData,
|
|
135
|
+
source: "cache",
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
try {
|
|
140
|
+
const { data, source } = await loadSettings(projectPath);
|
|
141
|
+
cachedData = data;
|
|
142
|
+
cacheTimestamp = Date.now();
|
|
143
|
+
|
|
144
|
+
return NextResponse.json({ success: true, data, source });
|
|
145
|
+
} catch (error) {
|
|
146
|
+
return NextResponse.json({
|
|
147
|
+
success: false,
|
|
148
|
+
data: DEFAULTS,
|
|
149
|
+
source: "default",
|
|
150
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* POST /api/settings
|
|
157
|
+
*/
|
|
158
|
+
export async function POST(request: NextRequest) {
|
|
159
|
+
try {
|
|
160
|
+
const body = await request.json();
|
|
161
|
+
const projectPath = body.projectPath || null;
|
|
162
|
+
const settingsPath = getSettingsPath(projectPath);
|
|
163
|
+
|
|
164
|
+
// Load existing, merge with incoming
|
|
165
|
+
const { data: existing } = await loadSettings(projectPath);
|
|
166
|
+
const merged: SettingsData = {
|
|
167
|
+
scan: body.scan ? { ...existing.scan, ...body.scan } : existing.scan,
|
|
168
|
+
detection: body.detection
|
|
169
|
+
? { ...existing.detection, ...body.detection }
|
|
170
|
+
: existing.detection,
|
|
171
|
+
notifications: body.notifications
|
|
172
|
+
? { ...existing.notifications, ...body.notifications }
|
|
173
|
+
: existing.notifications,
|
|
174
|
+
display: body.display
|
|
175
|
+
? { ...existing.display, ...body.display }
|
|
176
|
+
: existing.display,
|
|
177
|
+
lastSaved: Date.now(),
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
// Ensure directory exists
|
|
181
|
+
await fs.mkdir(path.dirname(settingsPath), { recursive: true });
|
|
182
|
+
await fs.writeFile(settingsPath, JSON.stringify(merged, null, 2));
|
|
183
|
+
|
|
184
|
+
// Invalidate cache
|
|
185
|
+
cachedData = merged;
|
|
186
|
+
cacheTimestamp = Date.now();
|
|
187
|
+
|
|
188
|
+
return NextResponse.json({ success: true, data: merged });
|
|
189
|
+
} catch (error) {
|
|
190
|
+
return NextResponse.json(
|
|
191
|
+
{
|
|
192
|
+
success: false,
|
|
193
|
+
error: error instanceof Error ? error.message : "Failed to save",
|
|
194
|
+
},
|
|
195
|
+
{ status: 500 }
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API Route: /api/status
|
|
3
|
+
*
|
|
4
|
+
* Returns project status and metadata from NavGator scans.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { NextRequest, NextResponse } from "next/server";
|
|
8
|
+
import * as fs from "fs/promises";
|
|
9
|
+
import * as path from "path";
|
|
10
|
+
import type { StatusApiResponse, ProjectStatus } from "@/lib/types";
|
|
11
|
+
|
|
12
|
+
// Cache for status data (keyed by project path)
|
|
13
|
+
const statusCache = new Map<string, { data: ProjectStatus; timestamp: number }>();
|
|
14
|
+
const CACHE_TTL = 30000; // 30 second cache
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* GET /api/status
|
|
18
|
+
*/
|
|
19
|
+
export async function GET(request: NextRequest) {
|
|
20
|
+
const searchParams = request.nextUrl.searchParams;
|
|
21
|
+
const refresh = searchParams.get("refresh") === "true";
|
|
22
|
+
const projectPath = searchParams.get("path");
|
|
23
|
+
|
|
24
|
+
const cacheKey = projectPath || "__default__";
|
|
25
|
+
const cached = statusCache.get(cacheKey);
|
|
26
|
+
|
|
27
|
+
// Check cache
|
|
28
|
+
if (!refresh && cached && Date.now() - cached.timestamp < CACHE_TTL) {
|
|
29
|
+
return NextResponse.json<StatusApiResponse>({
|
|
30
|
+
success: true,
|
|
31
|
+
data: cached.data,
|
|
32
|
+
source: "cache",
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
try {
|
|
37
|
+
const data = await loadStatusData(projectPath);
|
|
38
|
+
|
|
39
|
+
if (data) {
|
|
40
|
+
statusCache.set(cacheKey, { data, timestamp: Date.now() });
|
|
41
|
+
|
|
42
|
+
return NextResponse.json<StatusApiResponse>({
|
|
43
|
+
success: true,
|
|
44
|
+
data,
|
|
45
|
+
source: "scan",
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// No scan data - return empty state
|
|
50
|
+
return NextResponse.json<StatusApiResponse>({
|
|
51
|
+
success: true,
|
|
52
|
+
data: getEmptyStatus(projectPath),
|
|
53
|
+
source: "scan",
|
|
54
|
+
error: "No scan data found. Run `navgator setup` to scan your project.",
|
|
55
|
+
});
|
|
56
|
+
} catch (error) {
|
|
57
|
+
console.error("Error loading status data:", error);
|
|
58
|
+
return NextResponse.json<StatusApiResponse>({
|
|
59
|
+
success: false,
|
|
60
|
+
data: getEmptyStatus(projectPath),
|
|
61
|
+
source: "scan",
|
|
62
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// =============================================================================
|
|
68
|
+
// DATA LOADING
|
|
69
|
+
// =============================================================================
|
|
70
|
+
|
|
71
|
+
async function loadStatusData(projectPath?: string | null): Promise<ProjectStatus | null> {
|
|
72
|
+
// Priority: query param > env var > NavGator directory
|
|
73
|
+
const root = projectPath ||
|
|
74
|
+
process.env.NAVGATOR_PROJECT_PATH ||
|
|
75
|
+
process.cwd().replace(/\/web$/, "");
|
|
76
|
+
const indexPath = path.join(root, ".claude", "architecture", "index.json");
|
|
77
|
+
|
|
78
|
+
try {
|
|
79
|
+
const content = await fs.readFile(indexPath, "utf-8");
|
|
80
|
+
const index = JSON.parse(content);
|
|
81
|
+
|
|
82
|
+
// Extract project name from path
|
|
83
|
+
const projectName = extractProjectName(root);
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
project_path: root,
|
|
87
|
+
project_name: projectName,
|
|
88
|
+
last_scan: index.last_scan || null,
|
|
89
|
+
last_scan_formatted: index.last_scan
|
|
90
|
+
? formatRelativeTime(index.last_scan)
|
|
91
|
+
: null,
|
|
92
|
+
stats: {
|
|
93
|
+
total_components: index.stats?.total_components || 0,
|
|
94
|
+
total_connections: index.stats?.total_connections || 0,
|
|
95
|
+
components_by_type: index.stats?.components_by_type || {},
|
|
96
|
+
connections_by_type: index.stats?.connections_by_type || {},
|
|
97
|
+
outdated_count: index.stats?.outdated_count || 0,
|
|
98
|
+
vulnerable_count: index.stats?.vulnerable_count || 0,
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
} catch {
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function extractProjectName(projectPath: string): string {
|
|
107
|
+
// Try to read package.json for a proper name
|
|
108
|
+
try {
|
|
109
|
+
const packageJsonPath = path.join(projectPath, "package.json");
|
|
110
|
+
// Use sync read since we're in a helper function
|
|
111
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
112
|
+
const packageJson = require(packageJsonPath);
|
|
113
|
+
if (packageJson.name) {
|
|
114
|
+
return formatProjectName(packageJson.name);
|
|
115
|
+
}
|
|
116
|
+
} catch {
|
|
117
|
+
// Fall back to directory name
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Extract from path - get last segment and format
|
|
121
|
+
const segments = projectPath.split(path.sep).filter(Boolean);
|
|
122
|
+
const dirName = segments[segments.length - 1] || "project";
|
|
123
|
+
return formatProjectName(dirName);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function formatProjectName(name: string): string {
|
|
127
|
+
// Convert kebab-case, snake_case, etc to Title Case
|
|
128
|
+
return name
|
|
129
|
+
.replace(/[-_]/g, " ")
|
|
130
|
+
.replace(/\b\w/g, (c) => c.toUpperCase())
|
|
131
|
+
.trim();
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function formatRelativeTime(timestamp: number): string {
|
|
135
|
+
const now = Date.now();
|
|
136
|
+
const diff = now - timestamp;
|
|
137
|
+
|
|
138
|
+
const minutes = Math.floor(diff / 60000);
|
|
139
|
+
const hours = Math.floor(diff / 3600000);
|
|
140
|
+
const days = Math.floor(diff / 86400000);
|
|
141
|
+
|
|
142
|
+
if (minutes < 1) return "just now";
|
|
143
|
+
if (minutes < 60) return `${minutes}m ago`;
|
|
144
|
+
if (hours < 24) return `${hours}h ago`;
|
|
145
|
+
if (days < 7) return `${days}d ago`;
|
|
146
|
+
|
|
147
|
+
return new Date(timestamp).toLocaleDateString();
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function getEmptyStatus(projectPath?: string | null): ProjectStatus {
|
|
151
|
+
// Priority: query param > env var > NavGator directory
|
|
152
|
+
const root = projectPath ||
|
|
153
|
+
process.env.NAVGATOR_PROJECT_PATH ||
|
|
154
|
+
process.cwd().replace(/\/web$/, "");
|
|
155
|
+
return {
|
|
156
|
+
project_path: root,
|
|
157
|
+
project_name: extractProjectName(root),
|
|
158
|
+
last_scan: null,
|
|
159
|
+
last_scan_formatted: null,
|
|
160
|
+
stats: {
|
|
161
|
+
total_components: 0,
|
|
162
|
+
total_connections: 0,
|
|
163
|
+
components_by_type: {},
|
|
164
|
+
connections_by_type: {},
|
|
165
|
+
outdated_count: 0,
|
|
166
|
+
vulnerable_count: 0,
|
|
167
|
+
},
|
|
168
|
+
};
|
|
169
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
@import 'tw-animate-css';
|
|
3
|
+
|
|
4
|
+
@custom-variant dark (&:is(.dark *));
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
/* Dark theme as default - developer tool aesthetic */
|
|
8
|
+
--background: oklch(0.09 0 0);
|
|
9
|
+
--foreground: oklch(0.95 0 0);
|
|
10
|
+
--card: oklch(0.12 0 0);
|
|
11
|
+
--card-foreground: oklch(0.95 0 0);
|
|
12
|
+
--popover: oklch(0.12 0 0);
|
|
13
|
+
--popover-foreground: oklch(0.95 0 0);
|
|
14
|
+
--primary: oklch(0.75 0.15 160);
|
|
15
|
+
--primary-foreground: oklch(0.1 0 0);
|
|
16
|
+
--secondary: oklch(0.18 0 0);
|
|
17
|
+
--secondary-foreground: oklch(0.95 0 0);
|
|
18
|
+
--muted: oklch(0.18 0 0);
|
|
19
|
+
--muted-foreground: oklch(0.6 0 0);
|
|
20
|
+
--accent: oklch(0.75 0.15 160);
|
|
21
|
+
--accent-foreground: oklch(0.1 0 0);
|
|
22
|
+
--destructive: oklch(0.6 0.2 25);
|
|
23
|
+
--destructive-foreground: oklch(0.95 0 0);
|
|
24
|
+
--border: oklch(0.22 0 0);
|
|
25
|
+
--input: oklch(0.18 0 0);
|
|
26
|
+
--ring: oklch(0.75 0.15 160);
|
|
27
|
+
--chart-1: oklch(0.75 0.15 160);
|
|
28
|
+
--chart-2: oklch(0.7 0.15 250);
|
|
29
|
+
--chart-3: oklch(0.75 0.18 45);
|
|
30
|
+
--chart-4: oklch(0.65 0.2 300);
|
|
31
|
+
--chart-5: oklch(0.7 0.15 200);
|
|
32
|
+
--radius: 0.5rem;
|
|
33
|
+
--sidebar: oklch(0.1 0 0);
|
|
34
|
+
--sidebar-foreground: oklch(0.95 0 0);
|
|
35
|
+
--sidebar-primary: oklch(0.75 0.15 160);
|
|
36
|
+
--sidebar-primary-foreground: oklch(0.1 0 0);
|
|
37
|
+
--sidebar-accent: oklch(0.18 0 0);
|
|
38
|
+
--sidebar-accent-foreground: oklch(0.95 0 0);
|
|
39
|
+
--sidebar-border: oklch(0.22 0 0);
|
|
40
|
+
--sidebar-ring: oklch(0.75 0.15 160);
|
|
41
|
+
|
|
42
|
+
/* Custom tokens for NavGator */
|
|
43
|
+
--success: oklch(0.75 0.15 160);
|
|
44
|
+
--warning: oklch(0.75 0.18 70);
|
|
45
|
+
--info: oklch(0.7 0.15 250);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@theme inline {
|
|
49
|
+
--font-sans: 'Geist', 'Geist Fallback';
|
|
50
|
+
--font-mono: 'Geist Mono', 'Geist Mono Fallback';
|
|
51
|
+
--color-background: var(--background);
|
|
52
|
+
--color-foreground: var(--foreground);
|
|
53
|
+
--color-card: var(--card);
|
|
54
|
+
--color-card-foreground: var(--card-foreground);
|
|
55
|
+
--color-popover: var(--popover);
|
|
56
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
57
|
+
--color-primary: var(--primary);
|
|
58
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
59
|
+
--color-secondary: var(--secondary);
|
|
60
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
61
|
+
--color-muted: var(--muted);
|
|
62
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
63
|
+
--color-accent: var(--accent);
|
|
64
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
65
|
+
--color-destructive: var(--destructive);
|
|
66
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
67
|
+
--color-border: var(--border);
|
|
68
|
+
--color-input: var(--input);
|
|
69
|
+
--color-ring: var(--ring);
|
|
70
|
+
--color-chart-1: var(--chart-1);
|
|
71
|
+
--color-chart-2: var(--chart-2);
|
|
72
|
+
--color-chart-3: var(--chart-3);
|
|
73
|
+
--color-chart-4: var(--chart-4);
|
|
74
|
+
--color-chart-5: var(--chart-5);
|
|
75
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
76
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
77
|
+
--radius-lg: var(--radius);
|
|
78
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
79
|
+
--color-sidebar: var(--sidebar);
|
|
80
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
81
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
82
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
83
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
84
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
85
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
86
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
87
|
+
--color-success: var(--success);
|
|
88
|
+
--color-warning: var(--warning);
|
|
89
|
+
--color-info: var(--info);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@layer base {
|
|
93
|
+
* {
|
|
94
|
+
@apply border-border outline-ring/50;
|
|
95
|
+
}
|
|
96
|
+
body {
|
|
97
|
+
@apply bg-background text-foreground;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import type { Metadata } from 'next'
|
|
3
|
+
import { Geist, Geist_Mono } from 'next/font/google'
|
|
4
|
+
import { Analytics } from '@vercel/analytics/next'
|
|
5
|
+
import { ProjectProvider } from '@/lib/project-context'
|
|
6
|
+
import './globals.css'
|
|
7
|
+
|
|
8
|
+
const _geist = Geist({ subsets: ["latin"] });
|
|
9
|
+
const _geistMono = Geist_Mono({ subsets: ["latin"] });
|
|
10
|
+
|
|
11
|
+
export const metadata: Metadata = {
|
|
12
|
+
title: 'NavGator - Architecture Connection Tracker',
|
|
13
|
+
description: 'Know your stack before you change it. Track architecture connections across your entire stack.',
|
|
14
|
+
generator: 'v0.app',
|
|
15
|
+
icons: {
|
|
16
|
+
icon: [
|
|
17
|
+
{
|
|
18
|
+
url: '/icon-light-32x32.png',
|
|
19
|
+
media: '(prefers-color-scheme: light)',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
url: '/icon-dark-32x32.png',
|
|
23
|
+
media: '(prefers-color-scheme: dark)',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
url: '/icon.svg',
|
|
27
|
+
type: 'image/svg+xml',
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
apple: '/apple-icon.png',
|
|
31
|
+
},
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export default function RootLayout({
|
|
35
|
+
children,
|
|
36
|
+
}: Readonly<{
|
|
37
|
+
children: React.ReactNode
|
|
38
|
+
}>) {
|
|
39
|
+
return (
|
|
40
|
+
<html lang="en">
|
|
41
|
+
<body className={`font-sans antialiased`}>
|
|
42
|
+
<ProjectProvider>
|
|
43
|
+
{children}
|
|
44
|
+
</ProjectProvider>
|
|
45
|
+
<Analytics />
|
|
46
|
+
</body>
|
|
47
|
+
</html>
|
|
48
|
+
)
|
|
49
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { useState } from "react"
|
|
4
|
+
import { Header } from "@/components/header"
|
|
5
|
+
import { Sidebar } from "@/components/sidebar"
|
|
6
|
+
import { StatusOverview } from "@/components/status-overview"
|
|
7
|
+
import { ComponentsPanel } from "@/components/components-panel"
|
|
8
|
+
import { ConnectionsPanel } from "@/components/connections-panel"
|
|
9
|
+
import { ImpactAnalysis } from "@/components/impact-analysis"
|
|
10
|
+
import { DiagramView } from "@/components/diagram-view"
|
|
11
|
+
import { LLMTrackingPanel } from "@/components/llm-tracking-panel"
|
|
12
|
+
import { SettingsPanel } from "@/components/settings-panel"
|
|
13
|
+
import { useProjects } from "@/lib/hooks"
|
|
14
|
+
import { useActiveProject } from "@/lib/project-context"
|
|
15
|
+
import { useStatus } from "@/lib/hooks"
|
|
16
|
+
|
|
17
|
+
export type View = "overview" | "components" | "connections" | "impact" | "diagram" | "llm" | "settings"
|
|
18
|
+
|
|
19
|
+
export default function Dashboard() {
|
|
20
|
+
const [activeView, setActiveView] = useState<View>("overview")
|
|
21
|
+
const [selectedComponent, setSelectedComponent] = useState<string | null>(null)
|
|
22
|
+
const [initialTypeFilter, setInitialTypeFilter] = useState<string | null>(null)
|
|
23
|
+
|
|
24
|
+
const { activeProjectPath, setActiveProjectPath } = useActiveProject()
|
|
25
|
+
const { projects, isLoading: isLoadingProjects, addProject, removeProject } = useProjects()
|
|
26
|
+
const { status } = useStatus({ autoFetch: true })
|
|
27
|
+
|
|
28
|
+
const handleSelectProject = (path: string) => {
|
|
29
|
+
setActiveProjectPath(path)
|
|
30
|
+
// Reset view state when switching projects
|
|
31
|
+
setActiveView("overview")
|
|
32
|
+
setSelectedComponent(null)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<div className="flex min-h-screen flex-col bg-background">
|
|
37
|
+
<Header
|
|
38
|
+
activeProject={activeProjectPath}
|
|
39
|
+
projectName={status?.project_name || null}
|
|
40
|
+
projectPath={status?.project_path || activeProjectPath}
|
|
41
|
+
projects={projects}
|
|
42
|
+
onSelectProject={handleSelectProject}
|
|
43
|
+
onAddProject={addProject}
|
|
44
|
+
onRemoveProject={removeProject}
|
|
45
|
+
isLoadingProjects={isLoadingProjects}
|
|
46
|
+
/>
|
|
47
|
+
<div className="flex flex-1">
|
|
48
|
+
<Sidebar activeView={activeView} setActiveView={setActiveView} />
|
|
49
|
+
<main className="flex-1 overflow-auto p-6">
|
|
50
|
+
{activeView === "overview" && (
|
|
51
|
+
<StatusOverview
|
|
52
|
+
onSelectComponent={(name) => {
|
|
53
|
+
setSelectedComponent(name)
|
|
54
|
+
setActiveView("impact")
|
|
55
|
+
}}
|
|
56
|
+
onNavigate={setActiveView}
|
|
57
|
+
onNavigateToType={(type) => {
|
|
58
|
+
setInitialTypeFilter(type)
|
|
59
|
+
setActiveView("components")
|
|
60
|
+
}}
|
|
61
|
+
/>
|
|
62
|
+
)}
|
|
63
|
+
{activeView === "components" && (
|
|
64
|
+
<ComponentsPanel
|
|
65
|
+
initialTypeFilter={initialTypeFilter}
|
|
66
|
+
onSelectComponent={(name) => {
|
|
67
|
+
setSelectedComponent(name)
|
|
68
|
+
setInitialTypeFilter(null)
|
|
69
|
+
setActiveView("impact")
|
|
70
|
+
}}
|
|
71
|
+
/>
|
|
72
|
+
)}
|
|
73
|
+
{activeView === "connections" && (
|
|
74
|
+
<ConnectionsPanel
|
|
75
|
+
selectedComponent={selectedComponent}
|
|
76
|
+
onSelectComponent={setSelectedComponent}
|
|
77
|
+
/>
|
|
78
|
+
)}
|
|
79
|
+
{activeView === "impact" && (
|
|
80
|
+
<ImpactAnalysis
|
|
81
|
+
componentName={selectedComponent}
|
|
82
|
+
onSelectComponent={setSelectedComponent}
|
|
83
|
+
/>
|
|
84
|
+
)}
|
|
85
|
+
{activeView === "diagram" && (
|
|
86
|
+
<DiagramView selectedComponent={selectedComponent} />
|
|
87
|
+
)}
|
|
88
|
+
{activeView === "llm" && <LLMTrackingPanel />}
|
|
89
|
+
{activeView === "settings" && <SettingsPanel />}
|
|
90
|
+
</main>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
)
|
|
94
|
+
}
|