trybeacon 0.1.17 → 0.1.19
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/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +12 -12
- package/.next/build-manifest.json +3 -3
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +3 -3
- package/.next/required-server-files.js +4 -4
- package/.next/required-server-files.json +4 -4
- package/.next/server/app/_global-error/page.js +3 -3
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +2 -2
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +9 -9
- package/.next/server/app/_not-found.segments/_full.segment.rsc +9 -9
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +9 -9
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/api/board-annotations/[id]/route.js +1 -1
- package/.next/server/app/api/board-annotations/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/board-annotations/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/board-annotations/route.js +1 -1
- package/.next/server/app/api/board-annotations/route.js.nft.json +1 -1
- package/.next/server/app/api/board-annotations/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/bug-flags/[id]/route.js +1 -1
- package/.next/server/app/api/bug-flags/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/bug-flags/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/bug-flags/route.js +1 -1
- package/.next/server/app/api/bug-flags/route.js.nft.json +1 -1
- package/.next/server/app/api/bug-flags/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/code-graph/position/route.js +1 -1
- package/.next/server/app/api/code-graph/position/route.js.nft.json +1 -1
- package/.next/server/app/api/code-graph/position/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/code-graph/route.js +1 -1
- package/.next/server/app/api/code-graph/route.js.nft.json +1 -1
- package/.next/server/app/api/code-graph/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/context/feature/route.js +1 -1
- package/.next/server/app/api/context/feature/route.js.nft.json +1 -1
- package/.next/server/app/api/context/feature/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/context/file/route.js +1 -1
- package/.next/server/app/api/context/file/route.js.nft.json +1 -1
- package/.next/server/app/api/context/file/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/context/route.js +1 -1
- package/.next/server/app/api/context/route.js.nft.json +1 -1
- package/.next/server/app/api/context/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/db/arrange/route.js +1 -1
- package/.next/server/app/api/db/arrange/route.js.nft.json +1 -1
- package/.next/server/app/api/db/arrange/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/db/backfill-access/route.js +1 -1
- package/.next/server/app/api/db/backfill-access/route.js.nft.json +1 -1
- package/.next/server/app/api/db/backfill-access/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/db/position/route.js +1 -1
- package/.next/server/app/api/db/position/route.js.nft.json +1 -1
- package/.next/server/app/api/db/position/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/db/reconcile-endpoints/route.js +1 -1
- package/.next/server/app/api/db/reconcile-endpoints/route.js.nft.json +1 -1
- package/.next/server/app/api/db/reconcile-endpoints/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/db/relations/[id]/route.js +1 -1
- package/.next/server/app/api/db/relations/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/db/relations/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/db/tables/[id]/route.js +1 -1
- package/.next/server/app/api/db/tables/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/db/tables/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/draft/approve/route.js +2 -2
- package/.next/server/app/api/draft/approve/route.js.nft.json +1 -1
- package/.next/server/app/api/draft/approve/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/draft/route.js +2 -2
- package/.next/server/app/api/draft/route.js.nft.json +1 -1
- package/.next/server/app/api/draft/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/draft/status/route.js +1 -1
- package/.next/server/app/api/draft/status/route.js.nft.json +1 -1
- package/.next/server/app/api/draft/status/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/edges/[id]/route.js +1 -1
- package/.next/server/app/api/edges/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/edges/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/edges/route.js +1 -1
- package/.next/server/app/api/edges/route.js.nft.json +1 -1
- package/.next/server/app/api/edges/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/endpoints/[id]/route.js +1 -1
- package/.next/server/app/api/endpoints/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/endpoints/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/entities/route.js +1 -1
- package/.next/server/app/api/entities/route.js.nft.json +1 -1
- package/.next/server/app/api/entities/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/feedback/[id]/route.js +1 -1
- package/.next/server/app/api/feedback/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/feedback/[id]/vote/route.js +1 -1
- package/.next/server/app/api/feedback/[id]/vote/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/feedback/route.js +1 -1
- package/.next/server/app/api/feedback/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/ingest/route.js +2 -2
- package/.next/server/app/api/ingest/route.js.nft.json +1 -1
- package/.next/server/app/api/ingest/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/init/route.js +2 -2
- package/.next/server/app/api/init/route.js.nft.json +1 -1
- package/.next/server/app/api/init/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/map/describe/route.js +2 -2
- package/.next/server/app/api/map/describe/route.js.nft.json +1 -1
- package/.next/server/app/api/map/describe/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/map/files/route.js +1 -1
- package/.next/server/app/api/map/files/route.js.nft.json +1 -1
- package/.next/server/app/api/map/files/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/map/finish/route.js +1 -1
- package/.next/server/app/api/map/finish/route.js.nft.json +1 -1
- package/.next/server/app/api/map/finish/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/map/route.js +1 -1
- package/.next/server/app/api/map/route.js.nft.json +1 -1
- package/.next/server/app/api/map/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/map/start/route.js +1 -1
- package/.next/server/app/api/map/start/route.js.nft.json +1 -1
- package/.next/server/app/api/map/start/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/map/touch-active/route.js +1 -1
- package/.next/server/app/api/map/touch-active/route.js.nft.json +1 -1
- package/.next/server/app/api/map/touch-active/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/nodes/[id]/position/route.js +1 -1
- package/.next/server/app/api/nodes/[id]/position/route.js.nft.json +1 -1
- package/.next/server/app/api/nodes/[id]/position/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/nodes/[id]/route.js +1 -1
- package/.next/server/app/api/nodes/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/nodes/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/nodes/positions/route.js +1 -1
- package/.next/server/app/api/nodes/positions/route.js.nft.json +1 -1
- package/.next/server/app/api/nodes/positions/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/nodes/route.js +1 -1
- package/.next/server/app/api/nodes/route.js.nft.json +1 -1
- package/.next/server/app/api/nodes/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/nodes/subtasks/route.js +1 -1
- package/.next/server/app/api/nodes/subtasks/route.js.nft.json +1 -1
- package/.next/server/app/api/nodes/subtasks/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/notes/[id]/route.js +1 -1
- package/.next/server/app/api/notes/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/notes/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/notes/route.js +1 -1
- package/.next/server/app/api/notes/route.js.nft.json +1 -1
- package/.next/server/app/api/notes/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/open/route.js +1 -1
- package/.next/server/app/api/open/route.js.nft.json +1 -1
- package/.next/server/app/api/open/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/plan/annotations/route.js +2 -2
- package/.next/server/app/api/plan/annotations/route.js.nft.json +1 -1
- package/.next/server/app/api/plan/annotations/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/plan/approve/route.js +1 -1
- package/.next/server/app/api/plan/approve/route.js.nft.json +1 -1
- package/.next/server/app/api/plan/approve/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/plan/history/route.js +1 -1
- package/.next/server/app/api/plan/history/route.js.nft.json +1 -1
- package/.next/server/app/api/plan/history/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/plan/markdown/route.js +1 -1
- package/.next/server/app/api/plan/markdown/route.js.nft.json +1 -1
- package/.next/server/app/api/plan/markdown/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/plan/presence/route.js +1 -1
- package/.next/server/app/api/plan/presence/route.js.nft.json +1 -1
- package/.next/server/app/api/plan/presence/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/plan/route.js +1 -1
- package/.next/server/app/api/plan/route.js.nft.json +1 -1
- package/.next/server/app/api/plan/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/plan/verdict/route.js +2 -2
- package/.next/server/app/api/plan/verdict/route.js.nft.json +1 -1
- package/.next/server/app/api/plan/verdict/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/preferences/route.js +1 -1
- package/.next/server/app/api/preferences/route.js.nft.json +1 -1
- package/.next/server/app/api/preferences/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/reset/route.js +1 -1
- package/.next/server/app/api/reset/route.js.nft.json +1 -1
- package/.next/server/app/api/reset/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/stream/route.js +2 -2
- package/.next/server/app/api/stream/route.js.nft.json +1 -1
- package/.next/server/app/api/stream/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/version/route.js +1 -1
- package/.next/server/app/api/version/route.js.nft.json +1 -1
- package/.next/server/app/api/version/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/workspace/activate/route.js +1 -1
- package/.next/server/app/api/workspace/activate/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/activate/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/workspace/route.js +1 -1
- package/.next/server/app/api/workspace/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/route_client-reference-manifest.js +1 -1
- package/.next/server/app/apple-icon.png/route.js +1 -1
- package/.next/server/app/docs/page.js +2 -2
- package/.next/server/app/docs/page.js.nft.json +1 -1
- package/.next/server/app/docs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/docs.html +1 -1
- package/.next/server/app/docs.rsc +10 -10
- package/.next/server/app/docs.segments/_full.segment.rsc +10 -10
- package/.next/server/app/docs.segments/_head.segment.rsc +1 -1
- package/.next/server/app/docs.segments/_index.segment.rsc +9 -9
- package/.next/server/app/docs.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/docs.segments/docs.segment.rsc +1 -1
- package/.next/server/app/feedback/page.js +2 -2
- package/.next/server/app/feedback/page.js.nft.json +1 -1
- package/.next/server/app/feedback/page_client-reference-manifest.js +1 -1
- package/.next/server/app/feedback.html +1 -1
- package/.next/server/app/feedback.rsc +10 -10
- package/.next/server/app/feedback.segments/_full.segment.rsc +10 -10
- package/.next/server/app/feedback.segments/_head.segment.rsc +1 -1
- package/.next/server/app/feedback.segments/_index.segment.rsc +9 -9
- package/.next/server/app/feedback.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/feedback.segments/feedback/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/feedback.segments/feedback.segment.rsc +1 -1
- package/.next/server/app/help/page.js +2 -2
- package/.next/server/app/help/page.js.nft.json +1 -1
- package/.next/server/app/help/page_client-reference-manifest.js +1 -1
- package/.next/server/app/help.html +1 -1
- package/.next/server/app/help.rsc +28 -29
- package/.next/server/app/help.segments/_full.segment.rsc +28 -29
- package/.next/server/app/help.segments/_head.segment.rsc +1 -1
- package/.next/server/app/help.segments/_index.segment.rsc +9 -9
- package/.next/server/app/help.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/help.segments/help/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/help.segments/help.segment.rsc +1 -1
- package/.next/server/app/icon.svg/route.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +10 -10
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +10 -10
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +9 -9
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/map/page.js +2 -2
- package/.next/server/app/map/page.js.nft.json +1 -1
- package/.next/server/app/map/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page.js +2 -2
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/plan/page.js +2 -2
- package/.next/server/app/plan/page.js.nft.json +1 -1
- package/.next/server/app/plan/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/page.js +2 -2
- package/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +12 -12
- package/.next/server/chunks/2981.js +1 -1
- package/.next/server/chunks/3015.js +1 -0
- package/.next/server/chunks/319.js +3 -3
- package/.next/server/chunks/5258.js +1 -1
- package/.next/server/chunks/7263.js +1 -0
- package/.next/server/chunks/9127.js +1 -1
- package/.next/server/instrumentation.js +1 -1
- package/.next/server/instrumentation.js.nft.json +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware.js +2 -2
- package/.next/server/next-font-manifest.js +1 -1
- package/.next/server/next-font-manifest.json +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/9005-8ce19752fc3ddd2c.js +1 -0
- package/.next/static/chunks/app/_not-found/page-57c7dfeb659fcab6.js +1 -0
- package/.next/static/chunks/app/docs/page-5b14c5cfd82e6427.js +1 -0
- package/.next/static/chunks/app/feedback/{page-24a5b2f8d24d9024.js → page-9c313281ba613e34.js} +1 -1
- package/.next/static/chunks/app/help/page-d720609312abff8b.js +1 -0
- package/.next/static/chunks/app/layout-78fefdd943b8c8f9.js +1 -0
- package/.next/static/chunks/app/map/{page-ed40021c6ab84daf.js → page-2d506579d74725fe.js} +1 -1
- package/.next/static/chunks/app/{page-2c4582b256e877c0.js → page-bb6bef10a857544d.js} +1 -1
- package/.next/static/chunks/app/plan/{page-645f031f5db46170.js → page-d6b31633d9630a26.js} +1 -1
- package/.next/static/chunks/app/settings/page-d1b0fe0c79c8a745.js +1 -0
- package/.next/static/chunks/main-app-1a32dc335629e4e4.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/global-error-df87398e192c5e45.js +1 -0
- package/.next/trace +37 -37
- package/.next/trace-build +1 -1
- package/.next/types/app/api/board-annotations/[id]/route.ts +1 -1
- package/.next/types/app/api/board-annotations/route.ts +1 -1
- package/.next/types/app/api/bug-flags/[id]/route.ts +1 -1
- package/.next/types/app/api/bug-flags/route.ts +1 -1
- package/.next/types/app/api/code-graph/position/route.ts +1 -1
- package/.next/types/app/api/code-graph/route.ts +1 -1
- package/.next/types/app/api/context/feature/route.ts +1 -1
- package/.next/types/app/api/context/file/route.ts +1 -1
- package/.next/types/app/api/context/route.ts +1 -1
- package/.next/types/app/api/db/arrange/route.ts +1 -1
- package/.next/types/app/api/db/backfill-access/route.ts +1 -1
- package/.next/types/app/api/db/position/route.ts +1 -1
- package/.next/types/app/api/db/reconcile-endpoints/route.ts +1 -1
- package/.next/types/app/api/db/relations/[id]/route.ts +1 -1
- package/.next/types/app/api/db/tables/[id]/route.ts +1 -1
- package/.next/types/app/api/draft/approve/route.ts +1 -1
- package/.next/types/app/api/draft/route.ts +1 -1
- package/.next/types/app/api/draft/status/route.ts +1 -1
- package/.next/types/app/api/edges/[id]/route.ts +1 -1
- package/.next/types/app/api/edges/route.ts +1 -1
- package/.next/types/app/api/endpoints/[id]/route.ts +1 -1
- package/.next/types/app/api/entities/route.ts +1 -1
- package/.next/types/app/api/feedback/[id]/route.ts +1 -1
- package/.next/types/app/api/feedback/[id]/vote/route.ts +1 -1
- package/.next/types/app/api/feedback/route.ts +1 -1
- package/.next/types/app/api/ingest/route.ts +1 -1
- package/.next/types/app/api/init/route.ts +1 -1
- package/.next/types/app/api/map/describe/route.ts +1 -1
- package/.next/types/app/api/map/files/route.ts +1 -1
- package/.next/types/app/api/map/finish/route.ts +1 -1
- package/.next/types/app/api/map/route.ts +1 -1
- package/.next/types/app/api/map/start/route.ts +1 -1
- package/.next/types/app/api/map/touch-active/route.ts +1 -1
- package/.next/types/app/api/nodes/[id]/position/route.ts +1 -1
- package/.next/types/app/api/nodes/[id]/route.ts +1 -1
- package/.next/types/app/api/nodes/positions/route.ts +1 -1
- package/.next/types/app/api/nodes/route.ts +1 -1
- package/.next/types/app/api/nodes/subtasks/route.ts +1 -1
- package/.next/types/app/api/notes/[id]/route.ts +1 -1
- package/.next/types/app/api/notes/route.ts +1 -1
- package/.next/types/app/api/open/route.ts +1 -1
- package/.next/types/app/api/plan/annotations/route.ts +1 -1
- package/.next/types/app/api/plan/approve/route.ts +1 -1
- package/.next/types/app/api/plan/history/route.ts +1 -1
- package/.next/types/app/api/plan/markdown/route.ts +1 -1
- package/.next/types/app/api/plan/presence/route.ts +1 -1
- package/.next/types/app/api/plan/verdict/route.ts +1 -1
- package/.next/types/app/api/preferences/route.ts +1 -1
- package/.next/types/app/api/reset/route.ts +1 -1
- package/.next/types/app/api/stream/route.ts +1 -1
- package/.next/types/app/api/version/route.ts +1 -1
- package/.next/types/app/api/workspace/activate/route.ts +1 -1
- package/.next/types/app/api/workspace/route.ts +1 -1
- package/.next/types/app/docs/page.ts +1 -1
- package/.next/types/app/feedback/page.ts +1 -1
- package/.next/types/app/help/page.ts +1 -1
- package/.next/types/app/map/page.ts +1 -1
- package/.next/types/app/page.ts +1 -1
- package/.next/types/app/plan/page.ts +1 -1
- package/.next/types/app/settings/page.ts +1 -1
- package/dist/bin/doctor.js +24 -24
- package/dist/bin/hook.js +24 -24
- package/dist/bin/mcp.js +30 -30
- package/dist/bin/plan.js +25 -25
- package/dist/bin/uninstall.js +26 -26
- package/dist/lib/codex-install.js +25 -25
- package/dist/lib/global-install.js +28 -28
- package/package.json +1 -1
- package/.next/server/chunks/333.js +0 -1
- package/.next/server/chunks/6962.js +0 -1
- package/.next/static/chunks/1152-ce3b96f2d3495ed8.js +0 -1
- package/.next/static/chunks/app/_not-found/page-b2c1eefe2cdbb8c3.js +0 -1
- package/.next/static/chunks/app/docs/page-c28a9d071c9f4e9a.js +0 -1
- package/.next/static/chunks/app/help/page-7ece210a72cf4a67.js +0 -1
- package/.next/static/chunks/app/layout-d4b764b7fd4ec5c6.js +0 -1
- package/.next/static/chunks/app/settings/page-36505744af5d38d8.js +0 -1
- package/.next/static/chunks/main-app-cb1a040ffaced80b.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/global-error-c82bd7a72a198de4.js +0 -1
- /package/.next/static/{O43psSufYlBZeD2MfUpT5 → zkOVrPg9gaBl1KxEF44lf}/_buildManifest.js +0 -0
- /package/.next/static/{O43psSufYlBZeD2MfUpT5 → zkOVrPg9gaBl1KxEF44lf}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9040],{39593:(e,s,a)=>{"use strict";a.d(s,{EO:()=>o,S2:()=>n,W6:()=>r});var t=a(41463);let n="https://api.github.com/repos/wenzorithelly/beacon/releases/latest",r=(t.env.NEXT_PUBLIC_BEACON_SITE_URL??"https://www.trybeacon.sh").replace(/\/$/,""),o=`curl -fsSL ${r}/install.sh | sh`},52965:(e,s,a)=>{"use strict";a.d(s,{_:()=>n});var t=a(95155);function n({size:e=18,className:s}){return(0,t.jsxs)("svg",{width:e,height:e,viewBox:"11 1.5 74 74",fill:"none",className:s,"aria-hidden":"true",children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"beacon-mark-beam",x1:"0",y1:"1",x2:"0",y2:"0",children:[(0,t.jsx)("stop",{offset:"0",stopColor:"#ffb27a",stopOpacity:"0.9"}),(0,t.jsx)("stop",{offset:"0.55",stopColor:"#ff7a45",stopOpacity:"0.3"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#ff7a45",stopOpacity:"0"})]})}),(0,t.jsx)("path",{d:"M48 30 L40 4 L56 4 Z",fill:"url(#beacon-mark-beam)"}),(0,t.jsx)("path",{d:"M48 33 L72.5 73 L23.5 73 Z",fill:"currentColor",stroke:"currentColor",strokeWidth:2.4,strokeLinejoin:"round"}),(0,t.jsx)("circle",{cx:"48",cy:"31",r:"5.2",fill:"var(--accent-2, #ff7a45)",style:{filter:"drop-shadow(0 0 4px var(--accent-2, #ff7a45))"}}),(0,t.jsx)("circle",{cx:"48",cy:"31",r:"2",fill:"#ffd9c2"})]})}},73954:(e,s,a)=>{"use strict";a.d(s,{Docs:()=>w});var t=a(95155),n=a(12115),r=a(98500),o=a.n(r),i=a(52965),l=a(39593);a(93340);let d=[{id:"overview",title:"What is Beacon"},{id:"install",title:"Install"},{id:"quickstart",title:"Quickstart"},{id:"loop",title:"The planning loop"},{id:"canvases",title:"The canvases"},{id:"cli",title:"CLI reference"},{id:"integration",title:"Claude Code integration"},{id:"config",title:"Configuration"},{id:"troubleshooting",title:"Troubleshooting"}],c=[{cmd:"beacon",what:"Register the current repo, ensure the shared server is running, and open the panel on this repo. The everyday command."},{cmd:"beacon doctor",what:"Audit what's wired — the global Claude Code hooks + skills, this repo's .mcp.json, and the running daemon."},{cmd:"beacon stop",what:"Stop the shared background server. It restarts the next time you run beacon."},{cmd:"beacon setup",what:"(Re)install Beacon's per-repo helpers — the skills and .mcp.json — in the current repo without opening the panel."},{cmd:"beacon uninstall",what:"Reverse every Beacon artifact: the global ~/.claude wiring and the per-repo files."},{cmd:"beacon mcp",what:"The stdio MCP server Claude Code spawns automatically. You never run this by hand."}],h=[{name:"/beacon-init",when:"First time you point Beacon at a repo.",what:"The agent reads the codebase and fills Beacon's map — the main components, the rough roadmap themes, the database schema, and the endpoints. Run it once per repo to bootstrap the picture."},{name:"/beacon-refresh",when:"Every few weeks, or after a big set of changes.",what:"The agent re-surveys the repo and updates what /beacon-init produced — adds new components, drops removed ones, picks up new tables and routes. Anything you added by hand on the canvas survives."},{name:"/beacon-plan",when:"Whenever you want to review an approach on the canvas.",what:"Present the current plan or approach on Beacon's /plan page for annotation instead of asking for approval as a wall of text."}],m=[{name:"beacon_context_for_feature",what:"Before touching code, the agent pulls the files attached to a feature plus their imports, the endpoints in that domain, the tables those endpoints touch, and the surrounding components — one round-trip instead of a blind Glob/Grep scan."},{name:"beacon_blast_radius",what:"Mid-feature, the agent runs this on a file it's about to edit to see what imports it and what it imports — so it can judge whether a change is safe."},{name:"beacon_propose_plan",what:"When the agent has a feature plan (tables + relations + endpoints), this opens it on /plan and BLOCKS the session until you Approve, Discard, or Submit feedback."},{name:"beacon_describe_feature",what:"When a feature is done, the agent records a short markdown summary and the files it touched, keeping the next session's context accurate."},{name:"beacon_map",what:"A quick list of features already on the roadmap. The agent calls it near the start of work to avoid duplicating what's planned."},{name:"beacon_entities",what:"A raw readout of everything mapped — features, architecture, tables, endpoints — when the agent just needs the planning data."}],p=[{trigger:"Plan mode (ExitPlanMode)",what:"When the agent shows you a plan, Beacon intercepts it and renders the markdown on /plan with a native annotation panel. Select text and type → it becomes a comment. Approve / Discard / Submit feedback flows back to the session as the next instruction."},{trigger:"File edits (PostToolUse)",what:"Every Edit/Write the agent runs is reported to Beacon and the file is attached to whichever feature the session is working on. The /map view fills in with the real files behind each feature, without you tagging anything."},{trigger:"Code-graph watcher",what:"While the panel is open, a background watcher rebuilds the Files view as you save code — the maps stay current with the repo on their own."}],x=[{key:"BEACON_HOME",what:"Where per-workspace data lives — the SQLite databases and the server record. Defaults to ~/.beacon."},{key:"PORT",what:"Port for the shared local server. Defaults to 4319."},{key:"Settings → intel",what:"In the panel, the Settings page drives the code-intelligence model/provider and your editor, and triggers a code-map sync."}];function u({text:e,label:s="Copy"}){let[a,r]=(0,n.useState)(!1);return(0,t.jsx)("button",{onClick:()=>{navigator.clipboard?.writeText(e),r(!0),setTimeout(()=>r(!1),1500)},className:"glass-soft w-hover grid h-8 w-8 shrink-0 place-items-center rounded-md","aria-label":s,children:a?(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#ff7a45",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M20 6 9 17l-5-5"})}):(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),(0,t.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})}function g({children:e,copy:s}){return(0,t.jsxs)("div",{className:"glass-soft flex items-center gap-3 rounded-lg px-4 py-2.5",children:[(0,t.jsx)("span",{className:"w-signal select-none",children:"$"}),(0,t.jsx)("code",{className:"w-mono w-scrollbar-none flex-1 overflow-x-auto whitespace-nowrap text-[0.85rem] text-foreground",children:e}),s&&(0,t.jsx)(u,{text:e})]})}function f({id:e,eyebrow:s,children:a}){return(0,t.jsxs)("div",{className:"mb-5 scroll-mt-28",id:e,children:[(0,t.jsx)("p",{className:"w-mono w-eyebrow w-signal mb-2",children:s}),(0,t.jsx)("h2",{className:"text-[1.6rem] font-semibold tracking-tight",children:a})]})}function w(){let[e,s]=(0,n.useState)(d[0].id),a=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=new IntersectionObserver(e=>{let a=e.filter(e=>e.isIntersecting).sort((e,s)=>e.boundingClientRect.top-s.boundingClientRect.top);a[0]&&s(a[0].target.id)},{rootMargin:"-20% 0px -70% 0px",threshold:0});return d.forEach(s=>{let a=document.getElementById(s.id);a&&e.observe(a)}),()=>e.disconnect()},[]),(0,t.jsxs)("div",{className:"welcome",ref:a,children:[(0,t.jsx)("div",{className:"welcome-bg","aria-hidden":!0}),(0,t.jsx)("header",{className:"fixed inset-x-0 top-0 z-50",children:(0,t.jsx)("div",{className:"mx-auto max-w-6xl px-6",children:(0,t.jsxs)("div",{className:"w-load mt-4 glass flex items-center justify-between rounded-full py-2.5 pl-5 pr-3",style:{animationDelay:".05s"},children:[(0,t.jsxs)(o(),{href:"/",className:"flex items-center gap-2.5",children:[(0,t.jsx)(i._,{size:20,className:"text-foreground"}),(0,t.jsx)("span",{className:"font-semibold tracking-tight",children:"Beacon"}),(0,t.jsx)("span",{className:"w-mono w-eyebrow w-muted ml-1 hidden sm:inline",children:"docs"})]}),(0,t.jsxs)("nav",{className:"flex items-center gap-6 text-sm w-muted",children:[(0,t.jsx)(o(),{href:"/",className:"transition-colors hover:text-foreground",children:"Home"}),(0,t.jsx)("a",{href:"#install",className:"transition-colors hover:text-foreground",children:"Install"})]})]})})}),(0,t.jsx)("div",{className:"mx-auto max-w-6xl px-6 pb-24 pt-20",children:(0,t.jsxs)("div",{className:"lg:grid lg:grid-cols-[15rem_1fr] lg:gap-14",children:[(0,t.jsx)("aside",{className:"hidden lg:block",children:(0,t.jsxs)("nav",{className:"sticky top-28",children:[(0,t.jsx)("p",{className:"w-mono w-eyebrow w-muted mb-4",children:"On this page"}),(0,t.jsx)("ul",{className:"space-y-1.5 text-sm",children:d.map(s=>(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:`#${s.id}`,className:`block border-l-2 py-1 pl-3 transition-colors ${e===s.id?"w-signal border-[#ff7a45]":"w-muted border-transparent hover:text-foreground"}`,children:s.title})},s.id))})]})}),(0,t.jsxs)("main",{className:"min-w-0 max-w-2xl",children:[(0,t.jsxs)("section",{className:"w-load",children:[(0,t.jsx)(f,{id:"overview",eyebrow:"Overview",children:"What is Beacon"}),(0,t.jsxs)("p",{className:"w-muted leading-relaxed",children:["Beacon is the ",(0,t.jsx)("span",{className:"text-foreground",children:"visual planning surface for the coding agent in your terminal"}),". That session is the brain; Beacon is its eyes and hands. The agent proposes a feature plan — roadmap features, database schema, and endpoints — you review it on a canvas instead of a wall of text, give scoped feedback, and approve or discard with a click. The verdict flows straight back to your session."]}),(0,t.jsxs)("p",{className:"w-muted mt-4 leading-relaxed",children:["It runs entirely on your machine — ",(0,t.jsx)("span",{className:"text-foreground",children:"local, no account, no API key"}),". One shared server quietly serves every repo you open; each keeps its own data under ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"~/.beacon"}),"."]})]}),(0,t.jsxs)("section",{className:"mt-16",children:[(0,t.jsx)(f,{id:"install",eyebrow:"Get started",children:"Install"}),(0,t.jsxs)("p",{className:"w-muted mb-4 leading-relaxed",children:["One command. It installs ",(0,t.jsx)("span",{className:"text-foreground",children:"Bun"})," if you don't have it, then puts the"," ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"beacon"})," CLI on your PATH. Re-run it any time to update."]}),(0,t.jsx)(g,{copy:!0,children:l.EO}),(0,t.jsx)("p",{className:"w-muted mt-4 leading-relaxed",children:"Then, inside any repository:"}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(g,{copy:!0,children:"beacon"})})]}),(0,t.jsxs)("section",{className:"mt-16",children:[(0,t.jsx)(f,{id:"quickstart",eyebrow:"Get started",children:"Quickstart"}),(0,t.jsx)("ol",{className:"space-y-5",children:[(0,t.jsxs)(t.Fragment,{children:["Install with the command above, then run ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"beacon"})," inside a repo. It registers the repo, starts the shared server, and opens the panel in your browser."]}),(0,t.jsxs)(t.Fragment,{children:["In your Claude Code session, run ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"/beacon-init"}),". The agent reads the repo and draws its architecture, schema, and roadmap onto the canvas."]}),(0,t.jsxs)(t.Fragment,{children:["Ask the agent to plan a feature. It calls ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"beacon_propose_plan"})," and the plan renders live on ",(0,t.jsx)("span",{className:"text-foreground",children:"/plan"}),"."]}),(0,t.jsxs)(t.Fragment,{children:["Review it — annotate inline, edit the boards — then ",(0,t.jsx)("span",{className:"text-foreground",children:"Approve"}),", ",(0,t.jsx)("span",{className:"text-foreground",children:"Submit feedback"}),", or ",(0,t.jsx)("span",{className:"text-foreground",children:"Discard"}),". Your verdict returns to the session."]})].map((e,s)=>(0,t.jsxs)("li",{className:"relative pl-11",children:[(0,t.jsx)("span",{className:"w-mono glass absolute left-0 top-0 grid h-7 w-7 place-items-center rounded-md text-[0.72rem] font-semibold text-foreground",children:s+1}),(0,t.jsx)("p",{className:"w-muted leading-relaxed",children:e})]},s))})]}),(0,t.jsxs)("section",{className:"mt-16",children:[(0,t.jsx)(f,{id:"loop",eyebrow:"Concepts",children:"The planning loop"}),(0,t.jsx)("p",{className:"w-muted leading-relaxed",children:"The loop is the whole point. It closes in five steps:"}),(0,t.jsx)("ol",{className:"mt-4 space-y-3",children:[(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-foreground",children:"Propose."})," The agent calls ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"beacon_propose_plan"})," (or you present a plan in plan mode). The tool ",(0,t.jsx)("span",{className:"text-foreground",children:"blocks"})," — the session waits for your verdict."]}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-foreground",children:"Review."})," The plan renders on ",(0,t.jsx)("span",{className:"text-foreground",children:"/plan"}),": a native annotation panel on the left, the roadmap and database boards on the right. Select text to comment; edit the boards directly."]}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-foreground",children:"Decide."})," Approve, Discard, or Submit feedback. Feedback bundles your inline notes plus any board edits."]}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-foreground",children:"Return."})," The verdict flows back to the terminal. On feedback, the agent revises and re-proposes — the loop continues."]}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-foreground",children:"Record."})," On approval the schema and roadmap drafts persist, and when the work is done the agent calls ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"beacon_describe_feature"})," so the next session has accurate context."]})].map((e,s)=>(0,t.jsx)("li",{className:"glass w-hover rounded-lg p-4",children:(0,t.jsx)("p",{className:"w-muted text-[0.95rem] leading-relaxed",children:e})},s))})]}),(0,t.jsxs)("section",{className:"mt-16",children:[(0,t.jsx)(f,{id:"canvases",eyebrow:"Concepts",children:"The canvases"}),(0,t.jsx)("div",{className:"space-y-4",children:[{path:"/map",what:"The roadmap: feature cards, their sub-tasks, and dependency links — plus a separate architecture view of the real components. Files the agent edits attach themselves here."},{path:"/db",what:"The database design board: tables and columns, endpoints, and the endpoint→table links. Proposed schema lands as a distinct draft layer you can approve or discard."},{path:"/plan",what:"The split-screen review page: annotations on the left, the roadmap + database boards tabbed on the right, plus a history of every plan and its verdict."}].map(e=>(0,t.jsxs)("div",{className:"glass w-hover rounded-lg p-5",children:[(0,t.jsx)("p",{className:"w-mono text-foreground mb-1",children:e.path}),(0,t.jsx)("p",{className:"w-muted text-[0.95rem] leading-relaxed",children:e.what})]},e.path))})]}),(0,t.jsxs)("section",{className:"mt-16",children:[(0,t.jsx)(f,{id:"cli",eyebrow:"Reference",children:"CLI reference"}),(0,t.jsx)("div",{className:"space-y-3",children:c.map(e=>(0,t.jsxs)("div",{className:"glass rounded-lg p-4",children:[(0,t.jsxs)("code",{className:"w-mono text-foreground text-[0.9rem]",children:[(0,t.jsx)("span",{className:"w-signal select-none",children:"$ "}),e.cmd]}),(0,t.jsx)("p",{className:"w-muted mt-1.5 text-[0.92rem] leading-relaxed",children:e.what})]},e.cmd))})]}),(0,t.jsxs)("section",{className:"mt-16",children:[(0,t.jsx)(f,{id:"integration",eyebrow:"Reference",children:"Claude Code integration"}),(0,t.jsx)("h3",{className:"mb-1 mt-2 font-semibold text-foreground",children:"Skills — you type these"}),(0,t.jsx)("p",{className:"w-muted mb-4 text-[0.92rem]",children:"Slash commands that tell the agent to do something Beacon-shaped."}),(0,t.jsx)("div",{className:"space-y-3",children:h.map(e=>(0,t.jsxs)("div",{className:"glass rounded-lg p-4",children:[(0,t.jsx)("code",{className:"w-mono text-foreground text-[0.9rem]",children:e.name}),(0,t.jsxs)("p",{className:"w-muted mt-1.5 text-[0.92rem] leading-relaxed",children:[(0,t.jsx)("span",{className:"text-foreground",children:"When:"})," ",e.when," ",e.what]})]},e.name))}),(0,t.jsx)("h3",{className:"mb-1 mt-8 font-semibold text-foreground",children:"MCP tools — the agent calls these"}),(0,t.jsx)("p",{className:"w-muted mb-4 text-[0.92rem]",children:"You don't run these; the agent reaches for them when they fit. Knowing they exist makes its moves legible."}),(0,t.jsx)("div",{className:"space-y-3",children:m.map(e=>(0,t.jsxs)("div",{className:"glass rounded-lg p-4",children:[(0,t.jsx)("code",{className:"w-mono text-foreground text-[0.9rem]",children:e.name}),(0,t.jsx)("p",{className:"w-muted mt-1.5 text-[0.92rem] leading-relaxed",children:e.what})]},e.name))}),(0,t.jsx)("h3",{className:"mb-1 mt-8 font-semibold text-foreground",children:"Hooks — these run on their own"}),(0,t.jsx)("p",{className:"w-muted mb-4 text-[0.92rem]",children:"Wired into Claude Code globally; they react to what the session is already doing."}),(0,t.jsx)("div",{className:"space-y-3",children:p.map(e=>(0,t.jsxs)("div",{className:"glass rounded-lg p-4",children:[(0,t.jsx)("p",{className:"font-medium text-foreground text-[0.92rem]",children:e.trigger}),(0,t.jsx)("p",{className:"w-muted mt-1.5 text-[0.92rem] leading-relaxed",children:e.what})]},e.trigger))})]}),(0,t.jsxs)("section",{className:"mt-16",children:[(0,t.jsx)(f,{id:"config",eyebrow:"Reference",children:"Configuration"}),(0,t.jsx)("div",{className:"space-y-3",children:x.map(e=>(0,t.jsxs)("div",{className:"glass rounded-lg p-4",children:[(0,t.jsx)("code",{className:"w-mono text-foreground text-[0.9rem]",children:e.key}),(0,t.jsx)("p",{className:"w-muted mt-1.5 text-[0.92rem] leading-relaxed",children:e.what})]},e.key))})]}),(0,t.jsxs)("section",{className:"mt-16",children:[(0,t.jsx)(f,{id:"troubleshooting",eyebrow:"Help",children:"Troubleshooting"}),(0,t.jsx)("p",{className:"w-muted mb-4 leading-relaxed",children:"When something looks off, start here:"}),(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsx)(g,{copy:!0,children:"beacon doctor"})}),(0,t.jsx)("div",{className:"space-y-3",children:[{q:"The panel won't open",a:(0,t.jsxs)(t.Fragment,{children:["Make sure the server is up — run ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"beacon"})," again, or ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"beacon stop"})," then ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"beacon"})," to restart it."]})},{q:"The @beacon tools or skills are missing in Claude Code",a:(0,t.jsxs)(t.Fragment,{children:["Run ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"beacon setup"})," in the repo, then restart your Claude Code session so it re-reads the MCP registration."]})},{q:"How do I update?",a:(0,t.jsx)(t.Fragment,{children:"Re-run the install command — it fetches the latest and relinks. Nothing else to do."})}].map(e=>(0,t.jsxs)("div",{className:"glass rounded-lg p-4",children:[(0,t.jsx)("p",{className:"font-medium text-foreground text-[0.92rem]",children:e.q}),(0,t.jsx)("p",{className:"w-muted mt-1.5 text-[0.92rem] leading-relaxed",children:e.a})]},e.q))})]})]})]})}),(0,t.jsx)("footer",{className:"px-6 pb-12 pt-8",children:(0,t.jsxs)("div",{className:"mx-auto max-w-6xl",children:[(0,t.jsx)("div",{className:"w-accent-line mb-8 h-px w-full opacity-60"}),(0,t.jsxs)("div",{className:"flex flex-col items-center justify-between gap-5 md:flex-row",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(i._,{size:26,className:"text-foreground"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-semibold leading-tight",children:"Beacon"}),(0,t.jsx)("p",{className:"w-mono w-muted text-[0.72rem]",children:"the visual planning surface for your terminal"})]})]}),(0,t.jsxs)("nav",{className:"flex items-center gap-6 text-sm w-muted",children:[(0,t.jsx)(o(),{href:"/",className:"transition-colors hover:text-foreground",children:"Home"}),(0,t.jsx)("a",{href:"#overview",className:"transition-colors hover:text-foreground",children:"Docs"})]}),(0,t.jsxs)("p",{className:"w-mono w-muted text-[0.72rem]",children:["Created by"," ",(0,t.jsxs)("a",{href:"https://www.instagram.com/wenzorithelly/",target:"_blank",rel:"noreferrer",className:"w-signal inline-flex items-center gap-1 underline decoration-dotted underline-offset-2 transition-opacity hover:opacity-80",children:[(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("rect",{x:"2",y:"2",width:"20",height:"20",rx:"5",ry:"5"}),(0,t.jsx)("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),(0,t.jsx)("line",{x1:"17.5",y1:"6.5",x2:"17.51",y2:"6.5"})]}),"Wenzo"]}),(0,t.jsx)("span",{className:"mx-2 opacity-40",children:"\xb7"}),"\xa9 2026 Beacon"]})]})]})})]})}},82780:(e,s,a)=>{Promise.resolve().then(a.bind(a,73954))},93340:()=>{}},e=>{e.O(0,[1477,8500,8441,3794,7358],()=>e(e.s=82780)),_N_E=e.O()}]);
|
package/.next/static/chunks/app/feedback/{page-24a5b2f8d24d9024.js → page-9c313281ba613e34.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8080],{9383:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(30772).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},30772:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var r=a(12115),s=a(30907);let l=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var o=a(71265);let n=(e,t)=>{let a=(0,r.forwardRef)(({className:a,...n},d)=>(0,r.createElement)(o.default,{ref:d,iconNode:t,className:(0,s.z)(`lucide-${l(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...n}));return a.displayName=l(e),a}},30907:(e,t,a)=>{"use strict";a.d(t,{z:()=>r});let r=(...e)=>e.filter((e,t,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim()},39593:(e,t,a)=>{"use strict";a.d(t,{EO:()=>o,S2:()=>s,W6:()=>l});var r=a(41463);let s="https://api.github.com/repos/wenzorithelly/beacon/releases/latest",l=(r.env.NEXT_PUBLIC_BEACON_SITE_URL??"https://www.trybeacon.sh").replace(/\/$/,""),o=`curl -fsSL ${l}/install.sh | sh`},65738:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(30772).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},71265:(e,t,a)=>{"use strict";a.d(t,{default:()=>n});var r=a(12115),s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},l=a(30907);let o=(0,r.createContext)({}),n=(0,r.forwardRef)(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:n,className:d="",children:i,iconNode:c,...u},h)=>{let{size:f=24,strokeWidth:p=2,absoluteStrokeWidth:x=!1,color:m="currentColor",className:b=""}=(0,r.useContext)(o)??{},y=n??x?24*Number(a??p)/Number(t??f):a??p;return(0,r.createElement)("svg",{ref:h,...s,width:t??f??s.width,height:t??f??s.height,stroke:e??m,strokeWidth:y,className:(0,l.z)("lucide",b,d),...!i&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(u)&&{"aria-hidden":"true"},...u},[...c.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(i)?i:[i]])})},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8080],{9383:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(30772).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},30772:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var r=a(12115),s=a(30907);let l=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var o=a(71265);let n=(e,t)=>{let a=(0,r.forwardRef)(({className:a,...n},d)=>(0,r.createElement)(o.default,{ref:d,iconNode:t,className:(0,s.z)(`lucide-${l(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...n}));return a.displayName=l(e),a}},30907:(e,t,a)=>{"use strict";a.d(t,{z:()=>r});let r=(...e)=>e.filter((e,t,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim()},39593:(e,t,a)=>{"use strict";a.d(t,{EO:()=>o,S2:()=>s,W6:()=>l});var r=a(41463);let s="https://api.github.com/repos/wenzorithelly/beacon/releases/latest",l=(r.env.NEXT_PUBLIC_BEACON_SITE_URL??"https://www.trybeacon.sh").replace(/\/$/,""),o=`curl -fsSL ${l}/install.sh | sh`},65738:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(30772).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},71265:(e,t,a)=>{"use strict";a.d(t,{default:()=>n});var r=a(12115),s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},l=a(30907);let o=(0,r.createContext)({}),n=(0,r.forwardRef)(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:n,className:d="",children:i,iconNode:c,...u},h)=>{let{size:f=24,strokeWidth:p=2,absoluteStrokeWidth:x=!1,color:m="currentColor",className:b=""}=(0,r.useContext)(o)??{},y=n??x?24*Number(a??p)/Number(t??f):a??p;return(0,r.createElement)("svg",{ref:h,...s,width:t??f??s.width,height:t??f??s.height,stroke:e??m,strokeWidth:y,className:(0,l.z)("lucide",b,d),...!i&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(u)&&{"aria-hidden":"true"},...u},[...c.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(i)?i:[i]])})},76104:(e,t,a)=>{Promise.resolve().then(a.bind(a,90546))},90546:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>b});var r=a(95155),s=a(12115),l=a(92571),o=a(9383),n=a(30772);let d=(0,n.A)("arrow-big-up",[["path",{d:"M9 19a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-6a1 1 0 0 1 1-1h3.293a.707.707 0 0 0 .5-1.207l-7.086-7.086a1 1 0 0 0-1.414 0l-7.086 7.086a.707.707 0 0 0 .5 1.207H8a1 1 0 0 1 1 1z",key:"106j91"}]]),i=(0,n.A)("arrow-big-down",[["path",{d:"M9 5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v6a1 1 0 0 0 1 1h3.293a.707.707 0 0 1 .5 1.207l-7.086 7.086a1 1 0 0 1-1.414 0l-7.086-7.086a.707.707 0 0 1 .5-1.207H8a1 1 0 0 0 1-1z",key:"1o3tkq"}]]);var c=a(65738),u=a(39593);let h="beacon:feedback-votes",f="beacon:feedback-mine",p=`${u.W6}/api/feedback`;function x(e){try{return JSON.parse(localStorage.getItem(e)||"{}")}catch{return{}}}function m(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}function b(){let[e,t]=(0,s.useState)(null),[a,n]=(0,s.useState)(null),[u,b]=(0,s.useState)(""),[y,w]=(0,s.useState)(!1),[g,k]=(0,s.useState)({}),[N,j]=(0,s.useState)({}),v=(0,s.useCallback)(async()=>{try{let e=await fetch(p,{cache:"no-store"});if(!e.ok)throw Error();let a=await e.json();t(a.feedback??[]),n(null)}catch{n("Couldn't reach the feedback service."),t([])}},[]);(0,s.useEffect)(()=>{k(x(h)),j(x(f)),v()},[v]);let C=async()=>{let e=u.trim();if(e&&!y){w(!0);try{let a=await fetch(p,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({body:e})});if(!a.ok)throw Error();let{feedback:r,token:s}=await a.json();t(e=>[r,...e??[]]);let l={...N,[r.id]:s};j(l),m(f,l),b("")}catch{n("Couldn't post your feedback.")}finally{w(!1)}}},A=async(e,a)=>{if(g[e])return;let r={...g,[e]:a};k(r),m(h,r);try{let r=await fetch(`${p}/${e}/vote`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({dir:a})});if(!r.ok)throw Error();let{feedback:s}=await r.json();t(t=>t?.map(t=>t.id===e?s:t)??null)}catch{let t={...r};delete t[e],k(t),m(h,t)}},E=async a=>{let r=N[a];if(r){t(e=>e?.filter(e=>e.id!==a)??null);try{if(!(await fetch(`${p}/${a}`,{method:"DELETE",headers:{"x-feedback-token":r}})).ok)throw Error();let e={...N};delete e[a],j(e),m(f,e)}catch{t(e),n("Couldn't delete that feedback.")}}};return(0,r.jsxs)("div",{className:"mx-auto w-full max-w-2xl px-4 pb-24 pt-20",children:[(0,r.jsxs)("header",{className:"mb-6",children:[(0,r.jsx)("h1",{className:"text-lg font-semibold tracking-tight text-foreground",children:"Feedback"}),(0,r.jsx)("p",{className:"mt-1 text-[13px] text-muted-foreground",children:"Tell us what to build or fix. Posts are anonymous and shared with everyone running Beacon — upvote the ones you want most. You can delete your own."})]}),(0,r.jsxs)("div",{className:"glass mb-8 rounded-xl p-3",children:[(0,r.jsx)("textarea",{value:u,onChange:e=>b(e.target.value),onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&"Enter"===e.key&&C()},maxLength:2e3,rows:3,placeholder:"What would make Beacon better?",className:"w-full resize-none bg-transparent text-[14px] text-foreground placeholder:text-muted-foreground/60 focus:outline-none"}),(0,r.jsxs)("div",{className:"mt-2 flex items-center justify-between",children:[(0,r.jsxs)("span",{className:"text-[11px] text-muted-foreground/70",children:[u.length,"/2000 \xb7 ⌘↵ to send"]}),(0,r.jsxs)("button",{type:"button",onClick:C,disabled:!u.trim()||y,className:"flex items-center gap-1.5 rounded-lg border border-[#ff7a45]/40 bg-[#ff7a45]/15 px-3 py-1.5 text-[12px] font-semibold text-[#ff7a45] transition-colors hover:bg-[#ff7a45]/25 disabled:cursor-not-allowed disabled:opacity-40",children:[y?(0,r.jsx)(l.A,{className:"size-3.5 animate-spin"}):(0,r.jsx)(o.A,{className:"size-3.5"}),"Post"]})]})]}),a&&(0,r.jsx)("p",{className:"mb-4 rounded-lg border border-red-500/30 bg-red-500/10 px-3 py-2 text-[12px] text-red-300",children:a}),null===e?(0,r.jsx)("div",{className:"flex justify-center py-10 text-muted-foreground",children:(0,r.jsx)(l.A,{className:"size-5 animate-spin"})}):0===e.length?(0,r.jsx)("p",{className:"py-10 text-center text-[13px] text-muted-foreground",children:"No feedback yet — be the first."}):(0,r.jsx)("ul",{className:"flex flex-col gap-2.5",children:e.map(e=>{let t=g[e.id],a=!!N[e.id],s=e.upvotes-e.downvotes;return(0,r.jsxs)("li",{className:"glass-soft flex gap-3 rounded-xl p-3",children:[(0,r.jsxs)("div",{className:"flex shrink-0 flex-col items-center gap-0.5 pt-0.5",children:[(0,r.jsx)("button",{type:"button",onClick:()=>A(e.id,"up"),disabled:!!t,"aria-label":"Upvote",className:`rounded-md p-0.5 transition-colors disabled:cursor-default ${"up"===t?"text-[#ff7a45]":"text-muted-foreground hover:text-foreground disabled:opacity-40"}`,children:(0,r.jsx)(d,{className:"size-5"})}),(0,r.jsx)("span",{className:"min-w-5 text-center text-[13px] font-semibold tabular-nums text-foreground",children:s}),(0,r.jsx)("button",{type:"button",onClick:()=>A(e.id,"down"),disabled:!!t,"aria-label":"Downvote",className:`rounded-md p-0.5 transition-colors disabled:cursor-default ${"down"===t?"text-[#ff7a45]":"text-muted-foreground hover:text-foreground disabled:opacity-40"}`,children:(0,r.jsx)(i,{className:"size-5"})})]}),(0,r.jsx)("p",{className:"min-w-0 flex-1 whitespace-pre-wrap break-words pt-0.5 text-[14px] leading-relaxed text-foreground",children:e.body}),a&&(0,r.jsx)("button",{type:"button",onClick:()=>E(e.id),"aria-label":"Delete your feedback",title:"Delete your feedback",className:"shrink-0 self-start rounded-md p-1 text-muted-foreground/60 transition-colors hover:bg-red-500/15 hover:text-red-300",children:(0,r.jsx)(c.A,{className:"size-4"})})]},e.id)})})]})}},92571:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(30772).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])}},e=>{e.O(0,[8441,3794,7358],()=>e(e.s=76104)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[728],{29619:(e,t,r)=>{Promise.resolve().then(r.bind(r,71265)),Promise.resolve().then(r.t.bind(r,98500,23))},30907:(e,t,r)=>{"use strict";r.d(t,{z:()=>i});let i=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()},71265:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var i=r(12115),s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},o=r(30907);let n=(0,i.createContext)({}),l=(0,i.forwardRef)(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:l,className:a="",children:h,iconNode:d,...u},c)=>{let{size:k=24,strokeWidth:m=2,absoluteStrokeWidth:w=!1,color:f="currentColor",className:b=""}=(0,i.useContext)(n)??{},N=l??w?24*Number(r??m)/Number(t??k):r??m;return(0,i.createElement)("svg",{ref:c,...s,width:t??k??s.width,height:t??k??s.height,stroke:e??f,strokeWidth:N,className:(0,o.z)("lucide",b,a),...!h&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(u)&&{"aria-hidden":"true"},...u},[...d.map(([e,t])=>(0,i.createElement)(e,t)),...Array.isArray(h)?h:[h]])})}},e=>{e.O(0,[8500,8441,3794,7358],()=>e(e.s=29619)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{434:(e,t,s)=>{"use strict";s.d(t,{PlanBar:()=>u});var n=s(95155),r=s(98500),a=s.n(r),i=s(73321),l=s(86272),o=s(32133),c=s(65738),d=s(48484);function u(){let{status:e,discard:t}=(0,d.j)(),s=(0,i.usePathname)();return e.pending&&"/plan"!==s?(0,n.jsx)("div",{className:"pointer-events-none fixed inset-x-0 top-14 z-40 flex justify-center px-2",children:(0,n.jsxs)("div",{className:"pointer-events-auto flex max-w-3xl items-center gap-2 rounded-xl border border-emerald-500/30 bg-card/85 px-3 py-1.5 shadow-lg backdrop-blur supports-[backdrop-filter]:bg-card/70",children:[(0,n.jsx)(l.A,{className:"size-3.5 shrink-0 text-emerald-300"}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsxs)("div",{className:"truncate text-[12px] leading-tight text-foreground",children:[(0,n.jsx)("span",{className:"text-emerald-300/80",children:"Plan ready \xb7 "}),e.description||"(no description)"]}),(0,n.jsxs)("div",{className:"text-[10px] leading-tight text-muted-foreground",children:[e.features," feature(s) \xb7 ",e.tables," table(s) \xb7 ",e.endpoints," ","endpoint(s)"]})]}),(0,n.jsxs)(a(),{href:"/plan",className:"flex shrink-0 items-center gap-1 rounded-md border border-emerald-500/40 bg-emerald-500/15 px-2 py-1 text-[11px] font-semibold text-emerald-300 transition-colors hover:bg-emerald-500/25",title:"Open Plannotator + canvases side by side",children:[(0,n.jsx)(o.A,{className:"size-3"})," Open plan"]}),(0,n.jsxs)("button",{onClick:t,className:"flex shrink-0 items-center gap-1 rounded-md px-2 py-1 text-[11px] font-medium text-muted-foreground transition-colors hover:bg-red-500/15 hover:text-red-300",title:"Discard the plan",children:[(0,n.jsx)(c.A,{className:"size-3"})," Discard"]})]})}):null}},1494:(e,t,s)=>{"use strict";s.d(t,{NotesDrawer:()=>T});var n=s(95155),r=s(12115),a=s(82879),i=s(2125),l=s(9005),o=s(62700),c=s(27076),d=s(65738),u=s(82099),x=s(13439),h=s(95112),p=s(67357),f=s(50109),m=s(38332),g=s(8143),b=s(58309),v=s(5497),j=s(11436),N=s(82150),w=s(83694),y=s(35580);let k=w.z.extend({renderMarkdown:(e,t)=>`<u>${t.renderChildren(e)}</u>`}),C=[j.W.configure({underline:!1}),k,N._0,N.L2.configure({nested:!0})],z=new y.db({extensions:C});var A=s(91337);function P({value:e,onChange:t}){let s=(0,x.hG)({extensions:C,content:e?function e(t){if("text"===t.type&&(t.text??"").includes("<u>"))return{type:"__frag",content:function(e){let t,s=e.text??"",n=e.marks??[],r=/<u>([\s\S]*?)<\/u>/g,a=[],i=0;for(;null!==(t=r.exec(s));)t.index>i&&a.push({...e,text:s.slice(i,t.index)}),a.push({type:"text",text:t[1],marks:[...n,{type:"underline"}]}),i=r.lastIndex;return i<s.length&&a.push({...e,text:s.slice(i)}),a.filter(e=>(e.text??"").length>0)}(t)};if(Array.isArray(t.content)){let s=t.content.flatMap(t=>{let s=e(t);return"__frag"===s.type?s.content:[s]});return{...t,content:s}}return t}(z.parse(e)):void 0,immediatelyRender:!1,editorProps:{attributes:{class:"note-prose focus:outline-none"}},onUpdate:({editor:e})=>{var s;return t((s=e.getJSON(),z.serialize(s)))}});return s?(0,n.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,n.jsx)(_,{editor:s}),(0,n.jsx)(x.$Z,{editor:s,className:"min-h-0 flex-1 overflow-y-auto px-1 py-2 text-[14px] leading-relaxed"})]}):null}function _({editor:e}){let[,t]=(0,r.useReducer)(e=>e+1,0);(0,r.useEffect)(()=>{let s=()=>t();return e.on("transaction",s),()=>{e.off("transaction",s)}},[e]);let s=()=>e.chain().focus();return(0,n.jsxs)("div",{className:"flex items-center gap-0.5 border-b border-white/10 pb-2",children:[(0,n.jsx)(S,{label:"Bold",active:e.isActive("bold"),onClick:()=>s().toggleBold().run(),children:(0,n.jsx)(h.A,{className:"size-4"})}),(0,n.jsx)(S,{label:"Italic",active:e.isActive("italic"),onClick:()=>s().toggleItalic().run(),children:(0,n.jsx)(p.A,{className:"size-4"})}),(0,n.jsx)(S,{label:"Underline",active:e.isActive("underline"),onClick:()=>s().toggleUnderline().run(),children:(0,n.jsx)(f.A,{className:"size-4"})}),(0,n.jsx)(S,{label:"Strikethrough",active:e.isActive("strike"),onClick:()=>s().toggleStrike().run(),children:(0,n.jsx)(m.A,{className:"size-4"})}),(0,n.jsx)("span",{"aria-hidden":!0,className:"mx-1 h-5 w-px bg-white/10"}),(0,n.jsx)(S,{label:"Checklist",active:e.isActive("taskList"),onClick:()=>s().toggleTaskList().run(),children:(0,n.jsx)(g.A,{className:"size-4"})}),(0,n.jsx)(S,{label:"Bullet list",active:e.isActive("bulletList"),onClick:()=>s().toggleBulletList().run(),children:(0,n.jsx)(b.A,{className:"size-4"})}),(0,n.jsx)(S,{label:"Numbered list",active:e.isActive("orderedList"),onClick:()=>s().toggleOrderedList().run(),children:(0,n.jsx)(v.A,{className:"size-4"})})]})}function S({label:e,active:t,onClick:s,children:r}){return(0,n.jsx)("button",{type:"button","aria-label":e,"aria-pressed":t,title:e,onMouseDown:e=>e.preventDefault(),onClick:s,className:(0,A.cn)("rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground",t&&"bg-white/[0.12] text-foreground"),children:r})}var E=s(81984);function O(e){return[...e].sort((e,t)=>e.pinned!==t.pinned?Number(t.pinned)-Number(e.pinned):t.updatedAt.localeCompare(e.updatedAt))}function T(){let{open:e,close:t}=(0,E.b)(),[s,x]=(0,r.useState)([]),[h,p]=(0,r.useState)(null),f=(0,r.useRef)({}),m=(0,r.useRef)({}),g=(0,r.useCallback)(e=>{clearTimeout(f.current[e]);let t=m.current[e];t&&(delete m.current[e],fetch(`/api/notes/${e}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)}).catch(()=>{}))},[]),b=(0,r.useCallback)((e,t)=>{m.current[e]={...m.current[e],...t},clearTimeout(f.current[e]),f.current[e]=setTimeout(()=>g(e),500)},[g]),v=(0,r.useCallback)(async()=>{try{let e=await fetch("/api/notes",{cache:"no-store"});if(!e.ok)return;let t=await e.json();x(O(t)),p(e=>e??t[0]?.id??null)}catch{}},[]);(0,r.useEffect)(()=>{e?v():Object.keys(m.current).forEach(g)},[e,v,g]);let j=(0,r.useCallback)(async()=>{let e=await fetch("/api/notes",{method:"POST"}).catch(()=>null);if(!e?.ok)return;let t=await e.json();x(e=>O([t,...e])),p(t.id)},[]),N=(0,r.useCallback)(async e=>{clearTimeout(f.current[e]),delete m.current[e],x(t=>{let s=t.filter(t=>t.id!==e);return p(t=>t===e?s[0]?.id??null:t),s}),await fetch(`/api/notes/${e}`,{method:"DELETE"}).catch(()=>{})},[]),w=(0,r.useCallback)((e,t)=>{x(s=>O(s.map(s=>s.id===e?{...s,...t,updatedAt:new Date().toISOString()}:s))),b(e,t)},[b]),y=(0,r.useCallback)(e=>w(e.id,{pinned:!e.pinned}),[w]),k=s.find(e=>e.id===h)??null;return(0,n.jsx)("div",{"aria-hidden":!e,className:(0,A.cn)("fixed inset-y-0 right-0 z-40 flex transition-transform duration-300 ease-out",e?"translate-x-0":"pointer-events-none translate-x-full"),children:(0,n.jsxs)(u.b,{className:"flex h-full w-[420px] flex-col rounded-l-2xl border-l border-white/10",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 border-b border-white/10 px-3 py-2.5",children:[(0,n.jsx)(a.A,{className:"size-4 text-[var(--accent-2,#ff7a45)]"}),(0,n.jsx)("span",{className:"text-sm font-semibold tracking-tight",children:"Notes"}),(0,n.jsx)("span",{className:"ml-auto"}),(0,n.jsx)("button",{type:"button",onClick:j,"aria-label":"New note",title:"New note",className:"rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground",children:(0,n.jsx)(i.A,{className:"size-4"})}),(0,n.jsx)("button",{type:"button",onClick:t,"aria-label":"Close notes",title:"Close",className:"rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground",children:(0,n.jsx)(l.A,{className:"size-4"})})]}),(0,n.jsx)("div",{className:"max-h-44 shrink-0 overflow-y-auto border-b border-white/10 p-1.5",children:0===s.length?(0,n.jsxs)("p",{className:"px-2 py-3 text-[13px] text-muted-foreground",children:["No notes yet. Hit ",(0,n.jsx)("span",{className:"text-foreground",children:"+"})," to start one."]}):s.map(e=>(0,n.jsxs)("div",{className:(0,A.cn)("group flex items-center gap-1 rounded-md px-2 py-1.5 text-[13px]",e.id===h?"bg-white/[0.09] text-foreground":"text-muted-foreground hover:bg-white/[0.04]"),children:[(0,n.jsxs)("button",{type:"button",onClick:()=>p(e.id),className:"min-w-0 flex-1 truncate text-left",children:[e.pinned&&(0,n.jsx)(o.A,{className:"mr-1 inline size-3 -translate-y-px"}),e.title||"Untitled"]}),(0,n.jsx)("button",{type:"button",onClick:()=>y(e),"aria-label":e.pinned?"Unpin":"Pin",title:e.pinned?"Unpin":"Pin",className:"rounded p-1 opacity-0 transition hover:bg-white/[0.08] hover:text-foreground group-hover:opacity-100",children:e.pinned?(0,n.jsx)(c.A,{className:"size-3.5"}):(0,n.jsx)(o.A,{className:"size-3.5"})}),(0,n.jsx)("button",{type:"button",onClick:()=>N(e.id),"aria-label":"Delete note",title:"Delete",className:"rounded p-1 opacity-0 transition hover:bg-white/[0.08] hover:text-red-300 group-hover:opacity-100",children:(0,n.jsx)(d.A,{className:"size-3.5"})})]},e.id))}),k?(0,n.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-2 p-3",children:[(0,n.jsx)("input",{value:k.title,onChange:e=>w(k.id,{title:e.target.value}),placeholder:"Untitled",className:"w-full bg-transparent text-base font-semibold tracking-tight text-foreground placeholder:text-muted-foreground/60 focus:outline-none"}),(0,n.jsx)(P,{value:k.body,onChange:e=>w(k.id,{body:e})},k.id)]}):(0,n.jsxs)("div",{className:"flex flex-1 items-center justify-center p-6 text-center text-[13px] text-muted-foreground",children:["Select a note, or create one. Then ",(0,n.jsx)("span",{className:"px-1 text-foreground",children:"@"}),"-mention it in your terminal to turn it into features."]})]})})}},5893:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,66872,23)),Promise.resolve().then(s.bind(s,52174)),Promise.resolve().then(s.bind(s,30165)),Promise.resolve().then(s.bind(s,81984)),Promise.resolve().then(s.bind(s,1494)),Promise.resolve().then(s.bind(s,434)),Promise.resolve().then(s.bind(s,48484)),Promise.resolve().then(s.bind(s,96848)),Promise.resolve().then(s.bind(s,33082)),Promise.resolve().then(s.t.bind(s,35353,23)),Promise.resolve().then(s.t.bind(s,63494,23))},26518:(e,t,s)=>{"use strict";s.d(t,{bq:()=>y,eb:()=>C,gC:()=>k,l6:()=>N,yv:()=>w});var n=s(95155);s(12115);var r=s(40595),a=s(41294),i=s(75681),l=s(17314),o=s(37265),c=s(23107),d=s(70826),u=s(67564),x=s(1938),h=s(15433),p=s(5919),f=s(45450),m=s(88988),g=s(91337),b=s(12363),v=s(64577),j=s(94088);let N=r.H;function w({className:e,...t}){return(0,n.jsx)(a.y,{"data-slot":"select-value",className:(0,g.cn)("flex flex-1 text-left",e),...t})}function y({className:e,size:t="default",children:s,...r}){return(0,n.jsxs)(i.b,{"data-slot":"select-trigger","data-size":t,className:(0,g.cn)("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[s,(0,n.jsx)(l.w,{render:(0,n.jsx)(b.A,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function k({className:e,children:t,side:s="bottom",sideOffset:r=4,align:a="center",alignOffset:i=0,alignItemWithTrigger:l=!0,...x}){return(0,n.jsx)(o.V,{children:(0,n.jsx)(c.l,{side:s,sideOffset:r,align:a,alignOffset:i,alignItemWithTrigger:l,className:"isolate z-50",children:(0,n.jsxs)(d.t,{"data-slot":"select-content","data-align-trigger":l,className:(0,g.cn)("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...x,children:[(0,n.jsx)(z,{}),(0,n.jsx)(u.B,{children:t}),(0,n.jsx)(A,{})]})})})}function C({className:e,children:t,...s}){return(0,n.jsxs)(x.e,{"data-slot":"select-item",className:(0,g.cn)("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...s,children:[(0,n.jsx)(h.h,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:t}),(0,n.jsx)(p.h,{render:(0,n.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:(0,n.jsx)(v.A,{className:"pointer-events-none"})})]})}function z({className:e,...t}){return(0,n.jsx)(f.w,{"data-slot":"select-scroll-up-button",className:(0,g.cn)("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,n.jsx)(j.A,{})})}function A({className:e,...t}){return(0,n.jsx)(m.d,{"data-slot":"select-scroll-down-button",className:(0,g.cn)("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,n.jsx)(b.A,{})})}},30165:(e,t,s)=>{"use strict";s.d(t,{LiveRefresh:()=>a});var n=s(12115),r=s(73321);function a(){let e=(0,r.useRouter)();return(0,n.useEffect)(()=>{let t=!1,s=new EventSource("/api/stream");return s.onmessage=()=>{if(!t){t=!0;return}e.refresh()},()=>s.close()},[e]),null}},33082:(e,t,s)=>{"use strict";s.d(t,{UpdateBanner:()=>x});var n=s(95155),r=s(12115),a=s(56363),i=s(9005),l=s(64577),o=s(99314),c=s(39593);function d(e){if("string"!=typeof e)return null;let t=e.trim().replace(/^v/i,"").match(/^(\d+)(?:\.(\d+))?(?:\.(\d+))?/);return t?[Number(t[1]),Number(t[2]??0),Number(t[3]??0)]:null}let u="beacon:update-dismissed";function x({currentVersion:e}){let[t,s]=(0,r.useState)(null),[h,p]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{let t=!1;return(async()=>{try{let n=await fetch(c.S2,{headers:{Accept:"application/vnd.github+json"}});if(!n.ok)return;let r=await n.json(),a="string"==typeof r?.tag_name?r.tag_name:"";if(t||!function(e,t){let s=d(e),n=d(t);if(!s||!n)return!1;for(let e=0;e<3;e++){if(s[e]>n[e])return!0;if(s[e]<n[e])break}return!1}(a,e)||localStorage.getItem(u)===a)return;s(a)}catch{}})(),()=>{t=!0}},[e]),!t)return null;let f=async()=>{try{await navigator.clipboard?.writeText(c.EO),p(!0),setTimeout(()=>p(!1),1600)}catch{}};return(0,n.jsx)("div",{className:"pointer-events-none fixed bottom-4 right-4 z-50 flex justify-end",children:(0,n.jsx)("div",{className:"glass pointer-events-auto w-[320px] rounded-xl p-3.5 shadow-xl",children:(0,n.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,n.jsx)(a.A,{className:"mt-0.5 size-4 shrink-0 text-[#ff7a45]"}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-[13px] font-semibold tracking-tight text-foreground",children:"New version available"}),(0,n.jsx)("button",{type:"button",onClick:()=>{try{localStorage.setItem(u,t)}catch{}s(null)},"aria-label":"Dismiss",className:"shrink-0 rounded-md p-0.5 text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground",children:(0,n.jsx)(i.A,{className:"size-3.5"})})]}),(0,n.jsxs)("p",{className:"mt-0.5 text-[11px] text-muted-foreground",children:[e," →"," ",(0,n.jsx)("span",{className:"text-foreground",children:t.replace(/^v/i,"")})," \xb7 update Beacon"]}),(0,n.jsxs)("button",{type:"button",onClick:f,title:"Copy the update command",className:"mt-2.5 flex w-full items-center justify-between gap-2 rounded-lg border border-white/10 bg-black/30 px-2.5 py-1.5 text-left font-mono text-[11px] text-muted-foreground transition-colors hover:border-white/20 hover:text-foreground",children:[(0,n.jsx)("span",{className:"truncate",children:c.EO}),h?(0,n.jsx)(l.A,{className:"size-3.5 shrink-0 text-[#ff7a45]"}):(0,n.jsx)(o.A,{className:"size-3.5 shrink-0"})]})]})]})})})}},39593:(e,t,s)=>{"use strict";s.d(t,{EO:()=>i,S2:()=>r,W6:()=>a});var n=s(41463);let r="https://api.github.com/repos/wenzorithelly/beacon/releases/latest",a=(n.env.NEXT_PUBLIC_BEACON_SITE_URL??"https://www.trybeacon.sh").replace(/\/$/,""),i=`curl -fsSL ${a}/install.sh | sh`},48484:(e,t,s)=>{"use strict";s.d(t,{PlanProvider:()=>c,j:()=>d});var n=s(95155),r=s(12115),a=s(73321),i=s(99979);let l={pending:!1,proposedAt:0,tables:0,endpoints:0,features:0},o=(0,r.createContext)(null);function c({children:e}){let t=(0,a.useRouter)(),[s,d]=(0,r.useState)(l),u=(0,r.useCallback)(async()=>{try{let e=await fetch("/api/plan",{method:"GET",cache:"no-store",headers:(0,i.dh)((0,i.X0)())});if(!e.ok)return;let t=await e.json();d(t)}catch{}},[]);(0,r.useEffect)(()=>{u();let e=setInterval(()=>void u(),4e3);return()=>clearInterval(e)},[u]);let x=(0,r.useCallback)(async()=>{await fetch("/api/plan",{method:"DELETE",headers:(0,i.dh)((0,i.X0)())}).catch(()=>{}),d(l),t.refresh()},[t]),h=(0,r.useCallback)(async()=>{await fetch("/api/plan/approve",{method:"POST",headers:(0,i.dh)((0,i.X0)())}).catch(()=>{}),d(l),t.refresh()},[t]);return(0,n.jsx)(o.Provider,{value:{status:s,discard:x,approvePlan:h,refresh:u},children:e})}function d(){let e=(0,r.useContext)(o);if(!e)throw Error("usePlan must be used inside PlanProvider");return e}},52174:(e,t,s)=>{"use strict";s.d(t,{MainRegion:()=>r});var n=s(95155);function r({children:e}){return(0,n.jsx)("main",{className:"flex flex-1 flex-col",children:e})}},52965:(e,t,s)=>{"use strict";s.d(t,{_:()=>r});var n=s(95155);function r({size:e=18,className:t}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"11 1.5 74 74",fill:"none",className:t,"aria-hidden":"true",children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"beacon-mark-beam",x1:"0",y1:"1",x2:"0",y2:"0",children:[(0,n.jsx)("stop",{offset:"0",stopColor:"#ffb27a",stopOpacity:"0.9"}),(0,n.jsx)("stop",{offset:"0.55",stopColor:"#ff7a45",stopOpacity:"0.3"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#ff7a45",stopOpacity:"0"})]})}),(0,n.jsx)("path",{d:"M48 30 L40 4 L56 4 Z",fill:"url(#beacon-mark-beam)"}),(0,n.jsx)("path",{d:"M48 33 L72.5 73 L23.5 73 Z",fill:"currentColor",stroke:"currentColor",strokeWidth:2.4,strokeLinejoin:"round"}),(0,n.jsx)("circle",{cx:"48",cy:"31",r:"5.2",fill:"var(--accent-2, #ff7a45)",style:{filter:"drop-shadow(0 0 4px var(--accent-2, #ff7a45))"}}),(0,n.jsx)("circle",{cx:"48",cy:"31",r:"2",fill:"#ffd9c2"})]})}},66872:()=>{},81984:(e,t,s)=>{"use strict";s.d(t,{NotesProvider:()=>i,b:()=>l});var n=s(95155),r=s(12115);let a=(0,r.createContext)(null);function i({children:e}){let[t,s]=(0,r.useState)(!1),l=(0,r.useCallback)(()=>s(!0),[]),o=(0,r.useCallback)(()=>s(!1),[]),c=(0,r.useCallback)(()=>s(e=>!e),[]),d=(0,r.useMemo)(()=>({open:t,openDrawer:l,close:o,toggle:c}),[t,l,o,c]);return(0,n.jsx)(a.Provider,{value:d,children:e})}function l(){let e=(0,r.useContext)(a);if(!e)throw Error("useNotes must be used inside NotesProvider");return e}},82099:(e,t,s)=>{"use strict";s.d(t,{b:()=>a});var n=s(95155);s(12115);var r=s(91337);function a({className:e,children:t,...s}){return(0,n.jsxs)("div",{className:(0,r.cn)("glass relative isolate overflow-hidden",e),...s,children:[(0,n.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 rounded-[inherit]",style:{background:"radial-gradient(90% 60% at 0% 0%, oklch(1 0 0 / 0.04), transparent 42%)"}}),(0,n.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 rounded-[inherit] opacity-[0.035] mix-blend-overlay",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E\")",backgroundSize:"120px 120px"}}),t]})}},91337:(e,t,s)=>{"use strict";s.d(t,{cn:()=>a});var n=s(29722),r=s(622);function a(...e){return(0,r.QP)((0,n.$)(e))}},96848:(e,t,s)=>{"use strict";s.d(t,{TopNav:()=>m});var n=s(95155),r=s(98500),a=s.n(r),i=s(73321),l=s(82879),o=s(52965),c=s(12115),d=s(39143),u=s(26518),x=s(91337);function h({fallback:e}){let t=(0,i.useRouter)(),[s,r]=(0,c.useState)([]),[a,l]=(0,c.useState)(null);if((0,c.useEffect)(()=>{let e=!0,t=()=>fetch("/api/workspace").then(e=>e.ok?e.json():null).then(t=>{e&&t&&(r(t.workspaces??[]),l(t.active??null))}).catch(()=>{});t();let s=setInterval(t,5e3);return()=>{e=!1,clearInterval(s)}},[]),0===s.length)return e?(0,n.jsxs)("span",{className:"font-mono text-xs text-muted-foreground",children:["\xb7 ",e]}):null;async function o(e){l(e),document.cookie=`beacon_ws=${e}; Path=/; Max-Age=31536000; SameSite=Lax`,await Promise.race([fetch("/api/workspace",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:e}),signal:AbortSignal.timeout(8e3)}).catch(()=>{}),new Promise(e=>setTimeout(e,2500))]),t.refresh()}let p=s.find(e=>e.id===a);return(0,n.jsxs)(u.l6,{value:a??"",onValueChange:e=>e&&o(e),children:[(0,n.jsxs)(u.bq,{className:"h-7 gap-1.5 rounded-lg border-white/12 bg-white/[0.04] px-2 text-xs font-medium transition-colors hover:bg-white/[0.07]",children:[(0,n.jsx)(d.A,{className:"size-3.5 shrink-0 text-muted-foreground"}),(0,n.jsx)(u.yv,{children:()=>p?.name??"Project"})]}),(0,n.jsxs)(u.gC,{align:"start",alignItemWithTrigger:!1,sideOffset:6,className:"min-w-[250px] border border-white/10 bg-popover/95 p-1.5 backdrop-blur-xl",children:[(0,n.jsx)("p",{className:"px-2 pt-1 pb-1.5 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground/70",children:"Workspace"}),s.map(e=>{var t,s;let r,i=e.id===a;return(0,n.jsx)(u.eb,{value:e.id,className:(0,x.cn)("gap-2.5 rounded-lg py-1.5 pr-8 pl-1.5 transition-colors",i&&"bg-white/[0.05]"),children:(0,n.jsxs)("span",{className:"flex items-center gap-2.5",children:[(0,n.jsx)("span",{className:(0,x.cn)("flex size-7 shrink-0 items-center justify-center rounded-md border",i?"border-sky-400/30 bg-sky-400/10 text-sky-300":"border-white/10 bg-white/[0.03] text-muted-foreground"),children:(0,n.jsx)(d.A,{className:"size-3.5"})}),(0,n.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,n.jsx)("span",{className:"truncate text-[13px] font-medium leading-tight text-foreground",children:e.name}),(0,n.jsx)("span",{className:"truncate font-mono text-[10px] leading-tight text-muted-foreground",children:(t=e.path,s=e.name,(r=t.replace(/^\/(Users|home)\/[^/]+/,"~").split("/").filter(Boolean))[r.length-1]===s&&r.pop(),(r.length>3?[r[0],"…",r[r.length-1]]:r).join("/")||"~")})]})]})},e.id)})]})]})}var p=s(81984);let f=[{href:"/plan",label:"Plans"},{href:"/map",label:"Map"},{href:"/settings",label:"Settings"}];function m({repo:e}){let t=(0,i.usePathname)(),{toggle:s,open:r}=(0,p.b)();return(0,n.jsx)("header",{className:"pointer-events-none fixed left-3 top-3 z-30",children:(0,n.jsxs)("div",{className:"glass pointer-events-auto flex h-10 items-center gap-1 rounded-full pl-3 pr-1.5",children:[(0,n.jsxs)(a(),{href:"/",className:"mr-1 flex items-center gap-2 text-sm font-semibold tracking-tight",children:[(0,n.jsx)(o._,{size:18,className:"text-foreground"}),"Beacon"]}),(0,n.jsx)("span",{"aria-hidden":!0,className:"mx-1 h-5 w-px bg-white/10"}),(0,n.jsx)(h,{fallback:e}),(0,n.jsx)("span",{"aria-hidden":!0,className:"mx-1 h-5 w-px bg-white/10"}),(0,n.jsx)("nav",{className:"flex items-center gap-0.5 text-sm",children:f.map(e=>{let s=t===e.href||t.startsWith(e.href+"/");return(0,n.jsx)(a(),{href:e.href,className:(0,x.cn)("rounded-full px-3 py-1 text-[13px] tracking-tight transition-colors",s?"bg-white/[0.09] text-foreground shadow-[inset_0_1px_0_rgba(255,255,255,0.06)]":"text-muted-foreground hover:bg-white/[0.04] hover:text-foreground"),children:e.label},e.href)})}),(0,n.jsx)("span",{"aria-hidden":!0,className:"mx-1 h-5 w-px bg-white/10"}),(0,n.jsx)("button",{type:"button",onClick:s,"aria-pressed":r,"aria-label":"Notes",title:"Notes",className:(0,x.cn)("flex items-center justify-center rounded-full p-1.5 transition-colors",r?"bg-white/[0.09] text-foreground shadow-[inset_0_1px_0_rgba(255,255,255,0.06)]":"text-muted-foreground hover:bg-white/[0.04] hover:text-foreground"),children:(0,n.jsx)(l.A,{className:"size-4"})})]})})}},99979:(e,t,s)=>{"use strict";function n(){return new URLSearchParams(window.location.search).get("ws")}function r(e){return e?{"x-beacon-workspace":e}:{}}function a(e){let t=new URLSearchParams,s=n();for(let[n,r]of(s&&t.set("ws",s),Object.entries(e??{})))t.set(n,r);let r=t.toString();return r?`/plan?${r}`:"/plan"}s.d(t,{X0:()=>n,dh:()=>r,rc:()=>a})}},e=>{e.O(0,[7513,7352,5004,277,8500,4294,7886,8441,3794,7358],()=>e(e.s=5893)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5823],{15373:(e,t,s)=>{"use strict";s.d(t,{FilesMapClient:()=>w});var o=s(95155),r=s(12115),n=s(81750),l=s(6266),a=s(7679),i=s(98766),d=s(15629),c=s(79176),u=s(74371);s(53255);var p=s(18986),h=s(9005),x=s(25583),m=s(82099),f=s(62311);let b=/(^|\/)tests?\/|\.(test|spec)\.[jt]sx?$/i;var g=s(91337);let y={ts:"#3178c6",js:"#f7df1e",py:"#3776ab",go:"#00add8",rs:"#dea584",swift:"#f05138",java:"#b07219",ruby:"#cc342d",kotlin:"#a97bff",csharp:"#178600",php:"#4f5d95",cpp:"#f34b7d",c:"#555555"},j={file:function({data:e}){var t;let s=!!e.touched,r=e.recency??0,a=e.inDegree??0,i=10+.35*Math.min(a,20),d=s?Math.max(13+4*r,i):i,c={fontSize:`${d}px`,...s?{boxShadow:`0 0 ${6+Math.round(12*r)}px ${1+Math.round(3*r)}px rgba(45,212,191,${(.25+.5*r).toFixed(2)})`,zIndex:10}:{}},u=a>0?` \xb7 imported by ${a}`:"",p=s?`${e.tooltip} \xb7 edited ${e.count??0}\xd7 this session${u}`:e.untested?`${e.tooltip} \xb7 no test imports this file${u}`:`${e.tooltip}${u}`;return(0,o.jsxs)("div",{title:p,style:c,className:(0,g.cn)("relative rounded-md border bg-card/85 px-2 py-0.5 text-[10px] font-medium backdrop-blur transition-[font-size,box-shadow,border-color] duration-300",s?"border-teal-300/80 px-2.5 py-1 font-semibold text-foreground":e.untested?"border-amber-400/60 text-foreground/85":"border-white/10 text-foreground/85",e.isNewest&&"animate-touch-pulse"),children:[(0,o.jsx)(n.h7,{type:"target",position:l.yX.Top,isConnectable:!1,className:"!h-0 !w-0 !min-w-0 !border-0 !bg-transparent"}),e.untested&&(0,o.jsx)("span",{"aria-hidden":!0,className:"absolute -right-1 -top-1 size-1.5 rounded-full bg-amber-400 ring-2 ring-background"}),s&&(e.count??0)>0&&(0,o.jsx)("span",{"aria-hidden":!0,className:"absolute -left-1.5 -top-1.5 flex h-3 min-w-3 items-center justify-center rounded-full bg-teal-400 px-0.5 text-[7px] font-bold text-background ring-1 ring-background",children:e.count}),e.lang&&(0,o.jsx)("span",{"aria-hidden":!0,title:e.lang,className:"absolute -bottom-1 -right-1 size-1.5 rounded-full ring-1 ring-background",style:{backgroundColor:(t=e.lang)&&y[t]||"#9ca3af"}}),e.label,(0,o.jsx)(n.h7,{type:"source",position:l.yX.Bottom,isConnectable:!1,className:"!h-0 !w-0 !min-w-0 !border-0 !bg-transparent"})]})}};function w({files:e,edges:t,touched:s}){let l,y=(0,r.useMemo)(()=>{if(!e.some(e=>0===e.x&&0===e.y)){let t=new Map;for(let s of e)t.set(s.path,{x:s.x,y:s.y});return{positions:t,fresh:!1}}return{positions:function(e,t){let s=e.map(e=>{let t=0!==e.x||0!==e.y,s=e.path.includes("/")?e.path.split("/").pop():e.path;return{id:e.path,x:t?e.x:(Math.random()-.5)*600,y:t?e.y:(Math.random()-.5)*600,fx:t?e.x:void 0,fy:t?e.y:void 0,pinned:t,radius:Math.max(28,(6*s.length+24)/2+8)}}),o=t.filter(e=>e.from!==e.to).map(e=>({source:e.from,target:e.to})),r=(0,a.A)(s).force("link",(0,i.A)(o).id(e=>e.id).distance(130).strength(.45)).force("charge",(0,d.A)().strength(-380).distanceMax(1e3)).force("collide",(0,c.A)().radius(e=>e.radius).strength(1)).force("center",(0,u.A)(0,0).strength(.025)).stop();for(let e=0;e<500;e++)r.tick();let n=new Map;for(let e of s)n.set(e.id,{x:e.x??0,y:e.y??0});return n}(e,t),fresh:!0}},[e,t]),k=(0,r.useMemo)(()=>(function(e,t){var s;let o=new Set;for(let e of t)s=e.from,b.test(s)&&o.add(e.to);let r=new Set;for(let t of e)b.test(t)||o.has(t)||r.add(t);return r})(e.map(e=>e.path),t),[e,t]),v=(0,r.useMemo)(()=>{let e=new Map,t=Object.entries(s??{});if(!t.length)return e;let o=t.map(([,e])=>e.lastAt),r=Math.max(...o),n=Math.min(...o),l=r-n||1,a=t[0][0],i=t[0][1].lastAt;for(let[e,s]of t)s.lastAt>=i&&(a=e,i=s.lastAt);for(let[s,o]of t)e.set(s,{count:o.count,recency:(o.lastAt-n)/l,isNewest:s===a});return e},[s]),C=v.size>0,M=(0,r.useMemo)(()=>Array.from(v.entries()).map(([e,t])=>({path:e,label:e.slice(e.lastIndexOf("/")+1),count:t.count,recency:t.recency})).sort((e,t)=>t.recency-e.recency),[v]),S=(0,r.useMemo)(()=>e.map(e=>{let t=y.positions.get(e.path)??{x:e.x,y:e.y},s=e.path.lastIndexOf("/"),o=s>=0?e.path.slice(s+1):e.path,r=v.get(e.path);return{id:e.path,type:"file",position:t,data:{label:o,tooltip:e.path,untested:k.has(e.path),inDegree:e.inDegree??0,lang:e.lang??null,touched:!!r,count:r?.count??0,recency:r?.recency??0,isNewest:r?.isNewest??!1}}}),[e,y,k,v]),A=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(!y.fresh||A.current)return;A.current=!0;let t=e.filter(e=>0===e.x&&0===e.y).map(e=>{let t=y.positions.get(e.path);return t?{path:e.path,x:t.x,y:t.y}:null}).filter(e=>null!==e);t.length&&fetch("/api/code-graph/position",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({batch:t})})},[y,e]);let E=(0,r.useMemo)(()=>t.map(e=>({id:`${e.from}|${e.to}`,source:e.from,target:e.to,type:"straight",style:e.circular?{stroke:"#f87171",strokeDasharray:"5 3",strokeWidth:2}:{stroke:"#a1a1aa",strokeWidth:1.5,opacity:.85}})),[t]),[$,z]=(0,r.useState)(S),[O,I]=(0,r.useState)(E),[_,D]=(0,r.useState)(null),[P,R]=(0,r.useState)(null),[T,F]=(0,r.useState)(!1),[L,W]=(0,r.useState)(!1),[Z,B]=(0,r.useState)(!1),[H,U]=(0,r.useState)(!1),J=(0,r.useRef)(null),K=(0,r.useCallback)(e=>{D(e),R(null);let t=J.current?.getNode(e);t&&J.current&&J.current.setCenter(t.position.x+40,t.position.y+12,{zoom:1.4,duration:600})},[]),V=(0,r.useCallback)(()=>{D(null),R(null);let e=!L;if(W(e),B(e),e&&J.current){let e=Array.from(v.keys()).map(e=>({id:e}));e.length&&J.current.fitView({nodes:e,duration:600,padding:.4})}},[L,v]);(0,r.useEffect)(()=>U(!0),[]),(0,r.useEffect)(()=>z(S),[S]),(0,r.useEffect)(()=>I(E),[E]);let X=(0,r.useCallback)(e=>z(t=>(0,n._0)(e,t)),[]),G=(0,r.useCallback)(e=>I(t=>(0,n.zW)(e,t)),[]),q=(0,r.useCallback)((e,t,s)=>{fetch("/api/code-graph/position",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:e,x:t,y:s})})},[]),Q=(0,r.useMemo)(()=>new Set(t.filter(e=>e.circular).map(e=>`${e.from}|${e.to}`)),[t]),Y=(0,r.useMemo)(()=>{let e=new Set;for(let s of t)s.circular&&(e.add(s.from),e.add(s.to));return e},[t]),ee=(0,r.useMemo)(()=>{if(P){let e=O.find(e=>e.id===P);return e?new Set([e.source,e.target]):null}if(_){let e=new Set([_]);for(let s of t)s.from===_&&e.add(s.to),s.to===_&&e.add(s.from);return e}return T?Y:L&&C?new Set(v.keys()):null},[_,P,T,Y,t,O,L,C,v]),et=(0,r.useMemo)(()=>ee?$.map(e=>({...e,style:{...e.style,opacity:ee.has(e.id)?1:.15,transition:"opacity 120ms"}})):$,[$,ee]),es=(0,r.useMemo)(()=>_||P||T||L?O.map(e=>{let t=!1;return P?t=e.id===P:_?t=e.source===_||e.target===_:T?t=Q.has(e.id):L&&(t=v.has(e.source)&&v.has(e.target)),t?{...e,zIndex:20,style:{...e.style,opacity:1,strokeWidth:2}}:{...e,style:{...e.style,opacity:.05}}}):O,[O,_,P,T,Q,L,v]),eo=t.filter(e=>e.circular).length,er=(0,r.useMemo)(()=>_?t.filter(e=>e.from===_).map(e=>e.to):[],[_,t]),en=(0,r.useMemo)(()=>_?t.filter(e=>e.to===_).map(e=>e.from):[],[_,t]),el=null!==_||Z&&C,ea=(0,r.useCallback)(()=>{D(null),B(!1),W(!1)},[]);return H?(0,o.jsxs)("div",{className:"canvas-dots relative h-screen w-full",children:[(0,o.jsxs)(n.Gc,{nodes:et,edges:es,nodeTypes:j,onNodesChange:X,onEdgesChange:G,onNodeClick:(e,t)=>{D(t.id),R(null)},onEdgeClick:(e,t)=>{R(t.id),D(null)},onPaneClick:()=>{D(null),R(null)},onInit:e=>{J.current=e},onNodeDragStop:(e,t)=>q(t.id,t.position.x,t.position.y),deleteKeyCode:null,colorMode:"dark",fitView:!0,minZoom:.05,panOnScroll:!0,zoomActivationKeyCode:["Meta","Control"],proOptions:{hideAttribution:!0},children:[(0,o.jsx)(n.H2,{position:"bottom-right",className:"!overflow-hidden !rounded-xl !border !border-white/10 [&_button]:!border-white/10 [&_button]:!bg-card/70 [&_button]:!text-foreground [&_button]:!backdrop-blur"}),(0,o.jsx)(n.of,{pannable:!0,zoomable:!0,position:"bottom-left",style:{width:140,height:90},className:"!rounded-xl !border !border-white/10 !bg-card/50 !backdrop-blur",nodeColor:()=>"#555"}),(0,o.jsx)(n.Zk,{position:"top-center",className:"glass rounded-full px-1 py-0.5",children:(0,o.jsx)(f.Z,{active:"FILES",tabs:[{value:"ROADMAP",label:"Roadmap",href:"/map?view=ROADMAP"},{value:"ARCHITECTURE",label:"Architecture",href:"/map?view=ARCHITECTURE"},{value:"FILES",label:"Files",href:"/map?view=FILES"},{value:"DATABASE",label:"Database",href:"/map?view=DATABASE"}]})}),(0,o.jsxs)(n.Zk,{position:"top-right",className:"glass flex items-center gap-3 rounded-xl px-3 py-1.5 text-[11px]",children:[(0,o.jsxs)("span",{className:"text-muted-foreground",children:[e.length," files \xb7 ",t.length," imports"]}),eo>0&&(0,o.jsxs)("button",{type:"button",onClick:()=>{F(e=>!e),D(null),R(null)},title:T?"Show all imports":"Show only files involved in import cycles",className:(0,g.cn)("flex items-center gap-1.5 rounded-md px-1.5 py-0.5 transition-colors",T?"bg-red-500/15 text-red-200 ring-1 ring-red-400/40":"text-red-300 hover:bg-red-500/10"),children:[(0,o.jsx)("span",{"aria-hidden":!0,className:"inline-block h-0 w-5 border-t border-dashed",style:{borderColor:"#ef4444"}}),eo," circular"]}),C&&(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("button",{type:"button",onClick:V,title:L?"Show all files again":"Focus + zoom to the files edited this session",className:(0,g.cn)("flex items-center gap-1.5 rounded-md px-1.5 py-0.5 transition-colors",L?"bg-teal-500/15 text-teal-200 ring-1 ring-teal-400/40":"text-teal-300 hover:bg-teal-500/10"),children:[(0,o.jsx)(p.A,{className:"size-3"}),v.size," edited"]})})]})]}),el&&(0,o.jsxs)(m.b,{className:"absolute bottom-3 right-3 top-16 z-10 flex w-72 flex-col rounded-2xl",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between border-b border-white/10 px-3.5 py-2.5",children:[(0,o.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground",children:_?"File":"Edited this session"}),(0,o.jsx)("button",{onClick:ea,title:"Close panel",className:"rounded-md p-1 text-muted-foreground transition-colors hover:bg-white/10 hover:text-foreground",children:(0,o.jsx)(h.A,{className:"size-4"})})]}),(0,o.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto p-3",children:_?(0,o.jsxs)("div",{className:"space-y-3",children:[(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:"flex items-start gap-1.5",children:[(0,o.jsx)(x.A,{className:"mt-0.5 size-4 shrink-0 text-muted-foreground"}),(0,o.jsx)("h2",{className:"break-all text-sm font-semibold leading-tight",children:_.slice(_.lastIndexOf("/")+1)})]}),(0,o.jsx)("div",{className:"mt-0.5 break-all font-mono text-[10px] text-muted-foreground",children:_})]}),(0,o.jsxs)("div",{className:"flex flex-wrap gap-1",children:[(l=v.get(_))?(0,o.jsxs)("span",{className:"rounded bg-teal-500/15 px-1.5 py-0.5 text-[10px] font-semibold text-teal-300",children:["edited ",l.count,"\xd7"]}):null,k.has(_)&&(0,o.jsx)("span",{className:"rounded bg-amber-500/15 px-1.5 py-0.5 text-[10px] font-semibold text-amber-300",children:"untested"})]}),(0,o.jsx)("button",{onClick:()=>fetch(`/api/open?path=${encodeURIComponent(_)}`).catch(()=>{}),className:"w-full rounded-md border border-white/10 px-2 py-1.5 text-[11px] text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground",children:"Open in editor"}),(0,o.jsx)(N,{label:"Imports",paths:er,onPick:K}),(0,o.jsx)(N,{label:"Imported by",paths:en,onPick:K})]}):(0,o.jsx)("ul",{className:"space-y-0.5",children:M.map(e=>(0,o.jsx)("li",{children:(0,o.jsxs)("button",{onClick:()=>K(e.path),title:e.path,className:"flex w-full items-center justify-between gap-2 rounded px-2 py-1 text-left transition-colors hover:bg-white/[0.06]",children:[(0,o.jsx)("span",{className:"truncate text-[11px] text-foreground/90",children:e.label}),(0,o.jsxs)("span",{className:"shrink-0 text-[9px] text-teal-300/80",children:[e.count,"\xd7"]})]})},e.path))})})]})]}):(0,o.jsx)("div",{className:"flex h-screen w-full items-center justify-center text-sm text-muted-foreground",children:"Loading graph…"})}function N({label:e,paths:t,onPick:s}){return t.length?(0,o.jsxs)("div",{children:[(0,o.jsxs)("h3",{className:"mb-1 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground",children:[e," (",t.length,")"]}),(0,o.jsx)("ul",{className:"space-y-0.5",children:t.map(e=>(0,o.jsx)("li",{children:(0,o.jsx)("button",{onClick:()=>s(e),title:e,className:"block w-full truncate rounded px-1.5 py-0.5 text-left font-mono text-[10px] text-muted-foreground transition-colors hover:bg-white/5 hover:text-foreground",children:e.slice(e.lastIndexOf("/")+1)})},e))})]}):null}},24791:(e,t,s)=>{Promise.resolve().then(s.bind(s,26856)),Promise.resolve().then(s.bind(s,15373)),Promise.resolve().then(s.bind(s,58601))}},e=>{e.O(0,[2574,3862,8500,4294,766,1202,7028,1152,8441,3794,7358],()=>e(e.s=24791)),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5823],{15373:(e,t,s)=>{"use strict";s.d(t,{FilesMapClient:()=>w});var o=s(95155),r=s(12115),n=s(81750),l=s(6266),a=s(7679),i=s(98766),d=s(15629),c=s(79176),u=s(74371);s(53255);var p=s(18986),h=s(9005),x=s(25583),m=s(82099),f=s(62311);let b=/(^|\/)tests?\/|\.(test|spec)\.[jt]sx?$/i;var g=s(91337);let y={ts:"#3178c6",js:"#f7df1e",py:"#3776ab",go:"#00add8",rs:"#dea584",swift:"#f05138",java:"#b07219",ruby:"#cc342d",kotlin:"#a97bff",csharp:"#178600",php:"#4f5d95",cpp:"#f34b7d",c:"#555555"},j={file:function({data:e}){var t;let s=!!e.touched,r=e.recency??0,a=e.inDegree??0,i=10+.35*Math.min(a,20),d=s?Math.max(13+4*r,i):i,c={fontSize:`${d}px`,...s?{boxShadow:`0 0 ${6+Math.round(12*r)}px ${1+Math.round(3*r)}px rgba(45,212,191,${(.25+.5*r).toFixed(2)})`,zIndex:10}:{}},u=a>0?` \xb7 imported by ${a}`:"",p=s?`${e.tooltip} \xb7 edited ${e.count??0}\xd7 this session${u}`:e.untested?`${e.tooltip} \xb7 no test imports this file${u}`:`${e.tooltip}${u}`;return(0,o.jsxs)("div",{title:p,style:c,className:(0,g.cn)("relative rounded-md border bg-card/85 px-2 py-0.5 text-[10px] font-medium backdrop-blur transition-[font-size,box-shadow,border-color] duration-300",s?"border-teal-300/80 px-2.5 py-1 font-semibold text-foreground":e.untested?"border-amber-400/60 text-foreground/85":"border-white/10 text-foreground/85",e.isNewest&&"animate-touch-pulse"),children:[(0,o.jsx)(n.h7,{type:"target",position:l.yX.Top,isConnectable:!1,className:"!h-0 !w-0 !min-w-0 !border-0 !bg-transparent"}),e.untested&&(0,o.jsx)("span",{"aria-hidden":!0,className:"absolute -right-1 -top-1 size-1.5 rounded-full bg-amber-400 ring-2 ring-background"}),s&&(e.count??0)>0&&(0,o.jsx)("span",{"aria-hidden":!0,className:"absolute -left-1.5 -top-1.5 flex h-3 min-w-3 items-center justify-center rounded-full bg-teal-400 px-0.5 text-[7px] font-bold text-background ring-1 ring-background",children:e.count}),e.lang&&(0,o.jsx)("span",{"aria-hidden":!0,title:e.lang,className:"absolute -bottom-1 -right-1 size-1.5 rounded-full ring-1 ring-background",style:{backgroundColor:(t=e.lang)&&y[t]||"#9ca3af"}}),e.label,(0,o.jsx)(n.h7,{type:"source",position:l.yX.Bottom,isConnectable:!1,className:"!h-0 !w-0 !min-w-0 !border-0 !bg-transparent"})]})}};function w({files:e,edges:t,touched:s}){let l,y=(0,r.useMemo)(()=>{if(!e.some(e=>0===e.x&&0===e.y)){let t=new Map;for(let s of e)t.set(s.path,{x:s.x,y:s.y});return{positions:t,fresh:!1}}return{positions:function(e,t){let s=e.map(e=>{let t=0!==e.x||0!==e.y,s=e.path.includes("/")?e.path.split("/").pop():e.path;return{id:e.path,x:t?e.x:(Math.random()-.5)*600,y:t?e.y:(Math.random()-.5)*600,fx:t?e.x:void 0,fy:t?e.y:void 0,pinned:t,radius:Math.max(28,(6*s.length+24)/2+8)}}),o=t.filter(e=>e.from!==e.to).map(e=>({source:e.from,target:e.to})),r=(0,a.A)(s).force("link",(0,i.A)(o).id(e=>e.id).distance(130).strength(.45)).force("charge",(0,d.A)().strength(-380).distanceMax(1e3)).force("collide",(0,c.A)().radius(e=>e.radius).strength(1)).force("center",(0,u.A)(0,0).strength(.025)).stop();for(let e=0;e<500;e++)r.tick();let n=new Map;for(let e of s)n.set(e.id,{x:e.x??0,y:e.y??0});return n}(e,t),fresh:!0}},[e,t]),k=(0,r.useMemo)(()=>(function(e,t){var s;let o=new Set;for(let e of t)s=e.from,b.test(s)&&o.add(e.to);let r=new Set;for(let t of e)b.test(t)||o.has(t)||r.add(t);return r})(e.map(e=>e.path),t),[e,t]),v=(0,r.useMemo)(()=>{let e=new Map,t=Object.entries(s??{});if(!t.length)return e;let o=t.map(([,e])=>e.lastAt),r=Math.max(...o),n=Math.min(...o),l=r-n||1,a=t[0][0],i=t[0][1].lastAt;for(let[e,s]of t)s.lastAt>=i&&(a=e,i=s.lastAt);for(let[s,o]of t)e.set(s,{count:o.count,recency:(o.lastAt-n)/l,isNewest:s===a});return e},[s]),C=v.size>0,M=(0,r.useMemo)(()=>Array.from(v.entries()).map(([e,t])=>({path:e,label:e.slice(e.lastIndexOf("/")+1),count:t.count,recency:t.recency})).sort((e,t)=>t.recency-e.recency),[v]),S=(0,r.useMemo)(()=>e.map(e=>{let t=y.positions.get(e.path)??{x:e.x,y:e.y},s=e.path.lastIndexOf("/"),o=s>=0?e.path.slice(s+1):e.path,r=v.get(e.path);return{id:e.path,type:"file",position:t,data:{label:o,tooltip:e.path,untested:k.has(e.path),inDegree:e.inDegree??0,lang:e.lang??null,touched:!!r,count:r?.count??0,recency:r?.recency??0,isNewest:r?.isNewest??!1}}}),[e,y,k,v]),A=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(!y.fresh||A.current)return;A.current=!0;let t=e.filter(e=>0===e.x&&0===e.y).map(e=>{let t=y.positions.get(e.path);return t?{path:e.path,x:t.x,y:t.y}:null}).filter(e=>null!==e);t.length&&fetch("/api/code-graph/position",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({batch:t})})},[y,e]);let E=(0,r.useMemo)(()=>t.map(e=>({id:`${e.from}|${e.to}`,source:e.from,target:e.to,type:"straight",style:e.circular?{stroke:"#f87171",strokeDasharray:"5 3",strokeWidth:2}:{stroke:"#a1a1aa",strokeWidth:1.5,opacity:.85}})),[t]),[$,z]=(0,r.useState)(S),[O,I]=(0,r.useState)(E),[_,D]=(0,r.useState)(null),[P,R]=(0,r.useState)(null),[T,F]=(0,r.useState)(!1),[L,W]=(0,r.useState)(!1),[Z,B]=(0,r.useState)(!1),[H,U]=(0,r.useState)(!1),J=(0,r.useRef)(null),K=(0,r.useCallback)(e=>{D(e),R(null);let t=J.current?.getNode(e);t&&J.current&&J.current.setCenter(t.position.x+40,t.position.y+12,{zoom:1.4,duration:600})},[]),V=(0,r.useCallback)(()=>{D(null),R(null);let e=!L;if(W(e),B(e),e&&J.current){let e=Array.from(v.keys()).map(e=>({id:e}));e.length&&J.current.fitView({nodes:e,duration:600,padding:.4})}},[L,v]);(0,r.useEffect)(()=>U(!0),[]),(0,r.useEffect)(()=>z(S),[S]),(0,r.useEffect)(()=>I(E),[E]);let X=(0,r.useCallback)(e=>z(t=>(0,n._0)(e,t)),[]),G=(0,r.useCallback)(e=>I(t=>(0,n.zW)(e,t)),[]),q=(0,r.useCallback)((e,t,s)=>{fetch("/api/code-graph/position",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:e,x:t,y:s})})},[]),Q=(0,r.useMemo)(()=>new Set(t.filter(e=>e.circular).map(e=>`${e.from}|${e.to}`)),[t]),Y=(0,r.useMemo)(()=>{let e=new Set;for(let s of t)s.circular&&(e.add(s.from),e.add(s.to));return e},[t]),ee=(0,r.useMemo)(()=>{if(P){let e=O.find(e=>e.id===P);return e?new Set([e.source,e.target]):null}if(_){let e=new Set([_]);for(let s of t)s.from===_&&e.add(s.to),s.to===_&&e.add(s.from);return e}return T?Y:L&&C?new Set(v.keys()):null},[_,P,T,Y,t,O,L,C,v]),et=(0,r.useMemo)(()=>ee?$.map(e=>({...e,style:{...e.style,opacity:ee.has(e.id)?1:.15,transition:"opacity 120ms"}})):$,[$,ee]),es=(0,r.useMemo)(()=>_||P||T||L?O.map(e=>{let t=!1;return P?t=e.id===P:_?t=e.source===_||e.target===_:T?t=Q.has(e.id):L&&(t=v.has(e.source)&&v.has(e.target)),t?{...e,zIndex:20,style:{...e.style,opacity:1,strokeWidth:2}}:{...e,style:{...e.style,opacity:.05}}}):O,[O,_,P,T,Q,L,v]),eo=t.filter(e=>e.circular).length,er=(0,r.useMemo)(()=>_?t.filter(e=>e.from===_).map(e=>e.to):[],[_,t]),en=(0,r.useMemo)(()=>_?t.filter(e=>e.to===_).map(e=>e.from):[],[_,t]),el=null!==_||Z&&C,ea=(0,r.useCallback)(()=>{D(null),B(!1),W(!1)},[]);return H?(0,o.jsxs)("div",{className:"canvas-dots relative h-screen w-full",children:[(0,o.jsxs)(n.Gc,{nodes:et,edges:es,nodeTypes:j,onNodesChange:X,onEdgesChange:G,onNodeClick:(e,t)=>{D(t.id),R(null)},onEdgeClick:(e,t)=>{R(t.id),D(null)},onPaneClick:()=>{D(null),R(null)},onInit:e=>{J.current=e},onNodeDragStop:(e,t)=>q(t.id,t.position.x,t.position.y),deleteKeyCode:null,colorMode:"dark",fitView:!0,minZoom:.05,panOnScroll:!0,zoomActivationKeyCode:["Meta","Control"],proOptions:{hideAttribution:!0},children:[(0,o.jsx)(n.H2,{position:"bottom-right",className:"!overflow-hidden !rounded-xl !border !border-white/10 [&_button]:!border-white/10 [&_button]:!bg-card/70 [&_button]:!text-foreground [&_button]:!backdrop-blur"}),(0,o.jsx)(n.of,{pannable:!0,zoomable:!0,position:"bottom-left",style:{width:140,height:90},className:"!rounded-xl !border !border-white/10 !bg-card/50 !backdrop-blur",nodeColor:()=>"#555"}),(0,o.jsx)(n.Zk,{position:"top-center",className:"glass rounded-full px-1 py-0.5",children:(0,o.jsx)(f.Z,{active:"FILES",tabs:[{value:"ROADMAP",label:"Roadmap",href:"/map?view=ROADMAP"},{value:"ARCHITECTURE",label:"Architecture",href:"/map?view=ARCHITECTURE"},{value:"FILES",label:"Files",href:"/map?view=FILES"},{value:"DATABASE",label:"Database",href:"/map?view=DATABASE"}]})}),(0,o.jsxs)(n.Zk,{position:"top-right",className:"glass flex items-center gap-3 rounded-xl px-3 py-1.5 text-[11px]",children:[(0,o.jsxs)("span",{className:"text-muted-foreground",children:[e.length," files \xb7 ",t.length," imports"]}),eo>0&&(0,o.jsxs)("button",{type:"button",onClick:()=>{F(e=>!e),D(null),R(null)},title:T?"Show all imports":"Show only files involved in import cycles",className:(0,g.cn)("flex items-center gap-1.5 rounded-md px-1.5 py-0.5 transition-colors",T?"bg-red-500/15 text-red-200 ring-1 ring-red-400/40":"text-red-300 hover:bg-red-500/10"),children:[(0,o.jsx)("span",{"aria-hidden":!0,className:"inline-block h-0 w-5 border-t border-dashed",style:{borderColor:"#ef4444"}}),eo," circular"]}),C&&(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("button",{type:"button",onClick:V,title:L?"Show all files again":"Focus + zoom to the files edited this session",className:(0,g.cn)("flex items-center gap-1.5 rounded-md px-1.5 py-0.5 transition-colors",L?"bg-teal-500/15 text-teal-200 ring-1 ring-teal-400/40":"text-teal-300 hover:bg-teal-500/10"),children:[(0,o.jsx)(p.A,{className:"size-3"}),v.size," edited"]})})]})]}),el&&(0,o.jsxs)(m.b,{className:"absolute bottom-3 right-3 top-16 z-10 flex w-72 flex-col rounded-2xl",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between border-b border-white/10 px-3.5 py-2.5",children:[(0,o.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground",children:_?"File":"Edited this session"}),(0,o.jsx)("button",{onClick:ea,title:"Close panel",className:"rounded-md p-1 text-muted-foreground transition-colors hover:bg-white/10 hover:text-foreground",children:(0,o.jsx)(h.A,{className:"size-4"})})]}),(0,o.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto p-3",children:_?(0,o.jsxs)("div",{className:"space-y-3",children:[(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:"flex items-start gap-1.5",children:[(0,o.jsx)(x.A,{className:"mt-0.5 size-4 shrink-0 text-muted-foreground"}),(0,o.jsx)("h2",{className:"break-all text-sm font-semibold leading-tight",children:_.slice(_.lastIndexOf("/")+1)})]}),(0,o.jsx)("div",{className:"mt-0.5 break-all font-mono text-[10px] text-muted-foreground",children:_})]}),(0,o.jsxs)("div",{className:"flex flex-wrap gap-1",children:[(l=v.get(_))?(0,o.jsxs)("span",{className:"rounded bg-teal-500/15 px-1.5 py-0.5 text-[10px] font-semibold text-teal-300",children:["edited ",l.count,"\xd7"]}):null,k.has(_)&&(0,o.jsx)("span",{className:"rounded bg-amber-500/15 px-1.5 py-0.5 text-[10px] font-semibold text-amber-300",children:"untested"})]}),(0,o.jsx)("button",{onClick:()=>fetch(`/api/open?path=${encodeURIComponent(_)}`).catch(()=>{}),className:"w-full rounded-md border border-white/10 px-2 py-1.5 text-[11px] text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground",children:"Open in editor"}),(0,o.jsx)(N,{label:"Imports",paths:er,onPick:K}),(0,o.jsx)(N,{label:"Imported by",paths:en,onPick:K})]}):(0,o.jsx)("ul",{className:"space-y-0.5",children:M.map(e=>(0,o.jsx)("li",{children:(0,o.jsxs)("button",{onClick:()=>K(e.path),title:e.path,className:"flex w-full items-center justify-between gap-2 rounded px-2 py-1 text-left transition-colors hover:bg-white/[0.06]",children:[(0,o.jsx)("span",{className:"truncate text-[11px] text-foreground/90",children:e.label}),(0,o.jsxs)("span",{className:"shrink-0 text-[9px] text-teal-300/80",children:[e.count,"\xd7"]})]})},e.path))})})]})]}):(0,o.jsx)("div",{className:"flex h-screen w-full items-center justify-center text-sm text-muted-foreground",children:"Loading graph…"})}function N({label:e,paths:t,onPick:s}){return t.length?(0,o.jsxs)("div",{children:[(0,o.jsxs)("h3",{className:"mb-1 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground",children:[e," (",t.length,")"]}),(0,o.jsx)("ul",{className:"space-y-0.5",children:t.map(e=>(0,o.jsx)("li",{children:(0,o.jsx)("button",{onClick:()=>s(e),title:e,className:"block w-full truncate rounded px-1.5 py-0.5 text-left font-mono text-[10px] text-muted-foreground transition-colors hover:bg-white/5 hover:text-foreground",children:e.slice(e.lastIndexOf("/")+1)})},e))})]}):null}},39454:(e,t,s)=>{Promise.resolve().then(s.bind(s,26856)),Promise.resolve().then(s.bind(s,15373)),Promise.resolve().then(s.bind(s,28116))}},e=>{e.O(0,[2574,3862,8500,4294,766,1202,7028,9005,8441,3794,7358],()=>e(e.s=39454)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{30772:(e,s,a)=>{"use strict";a.d(s,{A:()=>i});var l=a(12115),t=a(30907);let n=e=>{let s=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,s,a)=>a?a.toUpperCase():s.toLowerCase());return s.charAt(0).toUpperCase()+s.slice(1)};var r=a(71265);let i=(e,s)=>{let a=(0,l.forwardRef)(({className:a,...i},c)=>(0,l.createElement)(r.default,{ref:c,iconNode:s,className:(0,t.z)(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...i}));return a.displayName=n(e),a}},30907:(e,s,a)=>{"use strict";a.d(s,{z:()=>l});let l=(...e)=>e.filter((e,s,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===s).join(" ").trim()},31698:(e,s,a)=>{"use strict";a.d(s,{Landing:()=>N});var l=a(95155),t=a(12115),n=a(98500),r=a.n(n),i=a(81499),c=a(51128),d=a(86272),o=a(64577),m=a(32133),h=a(65738),x=a(99314),p=a(52965),u=a(39593);a(93340);let j=u.EO;function w({d:e,color:s}){return(0,l.jsx)("svg",{width:15,height:15,viewBox:"0 0 24 24",fill:s??"currentColor","aria-hidden":!0,children:(0,l.jsx)("path",{d:e})})}let f=[{n:"01",title:"Propose",body:(0,l.jsxs)(l.Fragment,{children:["Ask the session in your terminal to plan a feature. It calls"," ",(0,l.jsx)("span",{className:"w-mono text-foreground",children:"beacon_propose_plan"})," and blocks until you decide. No fire-and-forget."]}),code:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"w-signal",children:"›"})," plan: magic-link sign-in"]})},{n:"02",title:"Review",body:"The plan renders as feature nodes, tables, and endpoints. Select any passage to annotate it, mark it for deletion, or edit the boards directly.",code:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"text-foreground",children:"/plan"})," \xb7 2 features \xb7 1 table"]})},{n:"03",title:"Verdict",body:"Approve persists the drafts. Feedback sends your notes back and the agent re-plans. Discard throws it away. Every plan is archived either way.",code:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{style:{color:"#6ee7b7"},children:"✓ approved"})," \xb7 drafts persisted"]})}],b=[{route:"/plan",title:"Review",body:"Split screen: the proposal on the left, live canvases on the right. Every plan archived with your decision and a snapshot of the moment."},{route:"/map",title:"Roadmap",body:"Features, sub-tasks, and dependencies as a graph. Duplicate features get blocked before they exist."},{route:"/db",title:"Database",body:"Proposed tables and endpoints land as drafts, diffed against your live schema: new, changed, or untouched."}],y=[{label:"Reuse first",body:"Beacon blocks duplicate features. Check the map before you create."},{label:"Design data first",body:(0,l.jsxs)(l.Fragment,{children:["Tables and endpoints before code. Review the schema as a draft on"," ",(0,l.jsx)("span",{className:"text-foreground",children:"/db"}),"."]})},{label:"Close every loop",body:"Register finished work so the map stays accurate next session."}];function g(){let e=(0,t.useRef)(null),[s,a]=(0,t.useState)(1);return(0,t.useEffect)(()=>{let s=e.current;if(!s)return;let l=new ResizeObserver(()=>a(Math.min(1,s.clientWidth/620)));return l.observe(s),()=>l.disconnect()},[]),(0,l.jsxs)("div",{className:"bm-window glass",children:[(0,l.jsxs)("div",{className:"bm-tabs",children:[(0,l.jsx)("span",{className:"h-3 w-3 rounded-full",style:{background:"#ff7a45",boxShadow:"0 0 7px rgba(255,122,69,.7)"}}),(0,l.jsx)("span",{className:"h-3 w-3 rounded-full",style:{background:"oklch(1 0 0 / .16)"}}),(0,l.jsx)("span",{className:"h-3 w-3 rounded-full",style:{background:"oklch(1 0 0 / .16)"}}),(0,l.jsx)("span",{className:"bm-tab active ml-2",children:"Roadmap"}),(0,l.jsx)("span",{className:"bm-tab",children:"Database"}),(0,l.jsx)("span",{className:"w-mono ml-auto hidden text-[0.66rem] w-muted min-[400px]:block",children:"/plan \xb7 review"})]}),(0,l.jsx)("div",{className:"bm-canvas",ref:e,style:{aspectRatio:"620 / 392"},children:(0,l.jsxs)("div",{className:"bm-stage",style:{width:620,height:392,transform:`scale(${s})`},children:[(0,l.jsxs)("svg",{className:"bm-edges",width:620,height:392,viewBox:"0 0 620 392","aria-hidden":!0,children:[(0,l.jsx)("path",{className:"bm-edge",style:{animationDelay:"1s"},pathLength:1,d:"M 135 111 C 135 148 165 168 165 210"}),(0,l.jsx)("path",{className:"bm-edge",style:{animationDelay:"1.15s"},pathLength:1,d:"M 244 78 C 300 78 320 150 374 150"}),(0,l.jsx)("path",{className:"bm-edge bm-edge-tail",style:{animationDelay:"1.7s"},pathLength:1,d:"M 596 205 C 596 230 576 242 558 252"})]}),(0,l.jsxs)("div",{className:"bm-node bm-node-draft",style:{left:26,top:38,width:218,animationDelay:".45s"},children:[(0,l.jsx)("div",{className:"bm-title",children:"Magic-link sign-in"}),(0,l.jsx)("div",{className:"bm-role",children:"Email a one-time link, no passwords"}),(0,l.jsxs)("div",{className:"bm-chiprow",children:[(0,l.jsx)("span",{className:"chip chip-sky",children:"feature"}),(0,l.jsx)("span",{className:"chip chip-violet",children:"auth"}),(0,l.jsx)("span",{className:"chip chip-amber",style:{marginLeft:"auto"},children:"Pending"})]})]}),(0,l.jsxs)("div",{className:"bm-node bm-node-draft",style:{left:70,top:210,width:190,animationDelay:".75s"},children:[(0,l.jsx)("div",{className:"bm-title",children:"Issue + verify token"}),(0,l.jsxs)("div",{className:"bm-chiprow",children:[(0,l.jsx)("span",{className:"chip chip-zinc",children:"sub-task"}),(0,l.jsx)("span",{className:"chip chip-amber",style:{marginLeft:"auto"},children:"Pending"})]})]}),(0,l.jsxs)("div",{className:"bm-table",style:{left:374,top:96,width:222,animationDelay:".6s"},children:[(0,l.jsxs)("div",{className:"bm-table-head",children:[(0,l.jsx)("span",{children:"auth_tokens"}),(0,l.jsx)("span",{className:"chip chip-green",children:"new"})]}),(0,l.jsxs)("div",{className:"bm-trow",children:[(0,l.jsx)(i.A,{size:9,style:{color:"#fde68a"}}),(0,l.jsx)("span",{children:"id"}),(0,l.jsx)("span",{className:"t",children:"uuid"})]}),(0,l.jsxs)("div",{className:"bm-trow",children:[(0,l.jsx)("span",{style:{width:9}}),(0,l.jsx)("span",{children:"token_hash"}),(0,l.jsx)("span",{className:"t",children:"text"})]}),(0,l.jsxs)("div",{className:"bm-trow",children:[(0,l.jsx)(c.A,{size:9,style:{color:"#7dd3fc"}}),(0,l.jsx)("span",{children:"user_id"}),(0,l.jsx)("span",{className:"t",children:"→ users"})]}),(0,l.jsxs)("div",{className:"bm-trow",children:[(0,l.jsx)("span",{style:{width:9}}),(0,l.jsx)("span",{children:"expires_at"}),(0,l.jsx)("span",{className:"t",children:"timestamp"})]})]}),(0,l.jsx)("span",{className:"bm-dot",style:{left:135,top:111,animationDelay:"1s"}}),(0,l.jsx)("span",{className:"bm-dot",style:{left:165,top:210,animationDelay:"1.3s"}}),(0,l.jsx)("span",{className:"bm-dot",style:{left:244,top:78,animationDelay:"1.15s"}}),(0,l.jsx)("span",{className:"bm-dot",style:{left:374,top:150,animationDelay:"1.45s"}}),(0,l.jsx)("span",{className:"bm-pin",style:{left:596,top:201,animationDelay:"1.55s"},children:"1"}),(0,l.jsxs)("div",{className:"bm-bubble",style:{left:356,top:252,width:226,animationDelay:"1.85s"},children:[(0,l.jsx)("div",{className:"lab",children:"annotation \xb7 you"}),(0,l.jsx)("div",{className:"txt",children:"Expire links after 15 min, not 24 h."})]}),(0,l.jsxs)("div",{className:"bm-bar",style:{animationDelay:"2.15s"},children:[(0,l.jsx)(d.A,{size:11,style:{color:"#6ee7b7"}}),(0,l.jsx)("span",{className:"ready",children:"plan ready \xb7 waiting for your verdict"}),(0,l.jsxs)("span",{className:"bm-btn bm-btn-approve",children:[(0,l.jsx)(o.A,{size:10})," Approve"]}),(0,l.jsxs)("span",{className:"bm-btn bm-btn-ghost",children:[(0,l.jsx)(m.A,{size:10})," Feedback"]}),(0,l.jsxs)("span",{className:"bm-btn bm-btn-ghost",children:[(0,l.jsx)(h.A,{size:10})," Discard"]})]})]})})]})}function N(){let e=(0,t.useRef)(null),[s,a]=(0,t.useState)(null);(0,t.useEffect)(()=>{let s=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(e.target.classList.add("in"),s.unobserve(e.target))})},{threshold:.12});return e.current?.querySelectorAll(".w-reveal").forEach(e=>s.observe(e)),()=>s.disconnect()},[]);let n=e=>(0,l.jsx)("button",{onClick:()=>{navigator.clipboard?.writeText(j),a(e),setTimeout(()=>a(null),1600)},className:"glass-soft w-hover grid h-8 w-8 shrink-0 place-items-center rounded-md","aria-label":"Copy install command",children:s===e?(0,l.jsx)(o.A,{size:13,style:{color:"#ff7a45"}}):(0,l.jsx)(x.A,{size:13,className:"w-muted"})});return(0,l.jsxs)("div",{className:"welcome",ref:e,children:[(0,l.jsx)("div",{className:"welcome-bg","aria-hidden":!0}),(0,l.jsx)("header",{className:"fixed inset-x-0 top-0 z-50",children:(0,l.jsx)("div",{className:"mx-auto max-w-6xl px-6",children:(0,l.jsxs)("div",{className:"w-load mt-4 glass flex items-center justify-between rounded-full py-2.5 pl-5 pr-3",style:{animationDelay:".05s"},children:[(0,l.jsxs)(r(),{href:"#top",className:"flex items-center gap-2.5",children:[(0,l.jsx)(p._,{size:20,className:"text-foreground"}),(0,l.jsx)("span",{className:"font-semibold tracking-tight",children:"Beacon"})]}),(0,l.jsxs)("nav",{className:"flex items-center gap-6 text-sm w-muted",children:[(0,l.jsx)("a",{href:"#how",className:"transition-colors hover:text-foreground",children:"The loop"}),(0,l.jsx)("a",{href:"#quickstart",className:"hidden transition-colors hover:text-foreground sm:block",children:"Quickstart"}),(0,l.jsx)("a",{href:"/docs",className:"transition-colors hover:text-foreground",children:"Docs"})]})]})})}),(0,l.jsx)("span",{id:"top"}),(0,l.jsxs)("section",{className:"px-6 pb-16 pt-20 md:pt-24",children:[(0,l.jsxs)("div",{className:"mx-auto grid max-w-6xl items-center gap-12 lg:grid-cols-[1fr_1.1fr]",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsxs)("div",{className:"w-load glass-soft mb-6 inline-flex items-center gap-2 rounded-full px-3.5 py-1.5",style:{animationDelay:".12s"},children:[(0,l.jsx)("span",{className:"w-live h-1.5 w-1.5 rounded-full",style:{background:"#ff7a45",boxShadow:"0 0 8px #ff7a45"}}),(0,l.jsx)("span",{className:"w-mono w-eyebrow w-muted",children:"Local \xb7 no account \xb7 no API key"})]}),(0,l.jsxs)("h1",{className:"w-load font-semibold text-[clamp(2.2rem,4.6vw,3.4rem)]",style:{letterSpacing:"-0.025em",lineHeight:1.06,animationDelay:".18s"},children:["Give your coding agent ",(0,l.jsx)("span",{className:"w-signal",children:"eyes"})," and hands."]}),(0,l.jsx)("p",{className:"w-load w-muted mt-5 max-w-md text-[1.02rem] leading-relaxed",style:{animationDelay:".26s"},children:"The session in your terminal is the brain. Beacon is where its plans become visible: features, tables, and endpoints on a canvas you annotate, edit, and approve with one click."}),(0,l.jsxs)("div",{className:"w-load mt-8",style:{animationDelay:".34s"},children:[(0,l.jsxs)("div",{className:"glass flex max-w-lg items-center gap-3 rounded-lg py-2.5 pl-4 pr-2",children:[(0,l.jsxs)("code",{className:"w-mono w-scrollbar-none min-w-0 flex-1 overflow-x-auto whitespace-nowrap text-[0.85rem]",children:[(0,l.jsx)("span",{className:"w-signal select-none",children:"$"}),(0,l.jsx)("span",{className:"ml-2",children:j}),(0,l.jsx)("span",{className:"w-caret ml-1 inline-block h-3.5 w-1.5 align-middle",style:{background:"#ff7a45"}})]}),n("hero")]}),(0,l.jsxs)("p",{className:"w-mono w-muted mt-3 text-[0.78rem]",children:["then run ",(0,l.jsx)("span",{className:"text-foreground",children:"beacon"})," inside any repo"]})]}),(0,l.jsxs)("div",{className:"w-load mt-9 flex flex-wrap items-center gap-x-5 gap-y-2",style:{animationDelay:".42s"},children:[(0,l.jsx)("span",{className:"w-mono w-eyebrow w-muted",children:"Works with"}),(0,l.jsxs)("span",{className:"flex items-center gap-2 text-sm text-foreground/90",children:[(0,l.jsx)(w,{d:"m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z",color:"#D97757"})," Claude Code"]}),(0,l.jsxs)("span",{className:"flex items-center gap-2 text-sm text-foreground/90",children:[(0,l.jsx)(w,{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"})," Codex"]})]})]}),(0,l.jsx)("div",{className:"w-load min-w-0",style:{animationDelay:".3s"},children:(0,l.jsx)(g,{})})]}),(0,l.jsxs)("a",{href:"#how",className:"w-load mx-auto mt-12 flex w-fit flex-col items-center gap-2 w-muted transition-colors hover:text-foreground md:mt-20",style:{animationDelay:".6s"},children:[(0,l.jsx)("span",{className:"w-mono w-eyebrow",children:"The loop"}),(0,l.jsx)("svg",{className:"w-cue",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,l.jsx)("path",{d:"m6 9 6 6 6-6"})})]})]}),(0,l.jsx)("section",{id:"how",className:"px-6 py-16 md:py-24",children:(0,l.jsxs)("div",{className:"mx-auto max-w-5xl",children:[(0,l.jsxs)("div",{className:"w-reveal mb-14 text-center",children:[(0,l.jsx)("p",{className:"w-mono w-eyebrow w-signal mb-4",children:"The loop"}),(0,l.jsx)("h2",{className:"text-[clamp(1.9rem,4vw,2.75rem)] font-semibold tracking-tight",children:"Propose. Review. Verdict. Repeat."}),(0,l.jsx)("div",{className:"w-accent-line mx-auto mt-6 h-px w-40"})]}),(0,l.jsx)("div",{className:"grid gap-10 md:grid-cols-3",children:f.map(e=>(0,l.jsxs)("div",{className:"loop-card w-reveal glass w-hover rounded-lg p-6",children:[(0,l.jsx)("p",{className:"w-mono w-eyebrow w-signal mb-3",children:e.n}),(0,l.jsx)("h3",{className:"mb-2 font-semibold",children:e.title}),(0,l.jsx)("p",{className:"w-muted mb-4 text-[0.92rem] leading-relaxed",children:e.body}),(0,l.jsx)("code",{className:"w-mono glass-soft inline-block rounded-md px-3 py-1.5 text-[0.74rem]",children:e.code})]},e.n))}),(0,l.jsxs)("p",{className:"w-reveal w-mono w-muted mt-10 text-center text-[0.78rem]",children:["feedback sends the agent back to ",(0,l.jsx)("span",{className:"w-signal",children:"01"})," \xb7 approval persists the drafts"]})]})}),(0,l.jsx)("section",{className:"px-6 py-12",children:(0,l.jsxs)("div",{className:"mx-auto max-w-5xl",children:[(0,l.jsxs)("div",{className:"w-reveal mb-12 text-center",children:[(0,l.jsx)("p",{className:"w-mono w-eyebrow w-signal mb-4",children:"The surfaces"}),(0,l.jsx)("h2",{className:"text-[clamp(1.6rem,3.4vw,2.25rem)] font-semibold tracking-tight",children:"Everything the agent plans, drawn"})]}),(0,l.jsx)("div",{className:"grid gap-5 md:grid-cols-3",children:b.map(e=>(0,l.jsxs)("div",{className:"w-reveal glass w-hover rounded-lg p-6",children:[(0,l.jsx)("p",{className:"w-mono mb-1 text-[0.82rem] font-semibold w-signal",children:e.route}),(0,l.jsx)("h3",{className:"mb-2 font-semibold",children:e.title}),(0,l.jsx)("p",{className:"w-muted text-[0.92rem] leading-relaxed",children:e.body})]},e.route))})]})}),(0,l.jsxs)("section",{id:"quickstart",className:"px-6 py-16 md:py-24",children:[(0,l.jsxs)("div",{className:"mx-auto max-w-3xl",children:[(0,l.jsxs)("div",{className:"w-reveal mb-12 text-center",children:[(0,l.jsx)("p",{className:"w-mono w-eyebrow w-signal mb-4",children:"Quickstart"}),(0,l.jsx)("h2",{className:"text-[clamp(1.6rem,3.4vw,2.25rem)] font-semibold tracking-tight",children:"Five lines to your first approved plan"})]}),(0,l.jsxs)("div",{className:"w-reveal glass overflow-hidden rounded-lg",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 border-b px-4 py-3",style:{borderColor:"var(--border)"},children:[(0,l.jsx)("span",{className:"h-3 w-3 rounded-full",style:{background:"#ff7a45",boxShadow:"0 0 7px rgba(255,122,69,.7)"}}),(0,l.jsx)("span",{className:"h-3 w-3 rounded-full",style:{background:"oklch(1 0 0 / .16)"}}),(0,l.jsx)("span",{className:"h-3 w-3 rounded-full",style:{background:"oklch(1 0 0 / .16)"}}),(0,l.jsx)("span",{className:"w-mono ml-2 text-[0.72rem] w-muted",children:"your-repo — terminal"})]}),(0,l.jsxs)("div",{className:"px-5 py-4",children:[(0,l.jsxs)("div",{className:"ql",children:[(0,l.jsxs)("code",{className:"cmd w-scrollbar-none",children:[(0,l.jsx)("span",{className:"w-signal select-none",children:"$ "}),j]}),(0,l.jsx)("span",{className:"note",children:"01 \xb7 one binary, no account"}),n("qs")]}),(0,l.jsxs)("div",{className:"ql",children:[(0,l.jsxs)("code",{className:"cmd",children:[(0,l.jsx)("span",{className:"w-signal select-none",children:"$ "}),"cd your-repo && beacon"]}),(0,l.jsx)("span",{className:"note",children:"02 \xb7 registers the repo, opens the panel"})]}),(0,l.jsxs)("div",{className:"ql",children:[(0,l.jsxs)("code",{className:"cmd",children:[(0,l.jsx)("span",{className:"w-signal select-none",children:"› "}),"/beacon-init"]}),(0,l.jsx)("span",{className:"note",children:"03 \xb7 maps architecture, schema, roadmap"})]}),(0,l.jsxs)("div",{className:"ql",children:[(0,l.jsxs)("code",{className:"cmd",children:[(0,l.jsx)("span",{className:"w-signal select-none",children:"› "}),"plan: magic-link sign-in"]}),(0,l.jsx)("span",{className:"note",children:"04 \xb7 the plan streams onto /plan"})]}),(0,l.jsxs)("div",{className:"ql",children:[(0,l.jsxs)("code",{className:"cmd",children:[(0,l.jsxs)("span",{className:"select-none",style:{color:"#6ee7b7"},children:["✓"," "]}),"approve \xb7 feedback \xb7 discard"]}),(0,l.jsx)("span",{className:"note",children:"05 \xb7 the verdict returns to your session"})]})]})]})]}),(0,l.jsx)("div",{className:"mx-auto mt-16 max-w-5xl",children:(0,l.jsx)("div",{className:"w-reveal glass grid overflow-hidden rounded-lg md:grid-cols-3 md:divide-x md:divide-y-0 divide-y",style:{borderColor:"var(--border)"},children:y.map(e=>(0,l.jsxs)("div",{className:"p-6",style:{borderColor:"oklch(1 0 0 / 0.07)"},children:[(0,l.jsx)("p",{className:"w-mono w-eyebrow w-signal mb-2.5",children:e.label}),(0,l.jsx)("p",{className:"w-muted text-[0.9rem] leading-relaxed",children:e.body})]},e.label))})})]}),(0,l.jsx)("footer",{className:"px-6 pb-12 pt-8",children:(0,l.jsxs)("div",{className:"mx-auto max-w-5xl",children:[(0,l.jsx)("div",{className:"w-accent-line mb-8 h-px w-full opacity-60"}),(0,l.jsxs)("div",{className:"flex flex-col items-center justify-between gap-5 md:flex-row",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,l.jsx)(p._,{size:26,className:"text-foreground"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"font-semibold leading-tight",children:"Beacon"}),(0,l.jsx)("p",{className:"w-mono w-muted text-[0.72rem]",children:"the visual planning surface for your terminal"})]})]}),(0,l.jsxs)("nav",{className:"flex items-center gap-6 text-sm w-muted",children:[(0,l.jsx)("a",{href:"/docs",className:"transition-colors hover:text-foreground",children:"Docs"}),(0,l.jsx)("a",{href:"#",className:"transition-colors hover:text-foreground",children:"Changelog"})]}),(0,l.jsxs)("p",{className:"w-mono w-muted text-[0.72rem]",children:["Created by"," ",(0,l.jsxs)("a",{href:"https://www.instagram.com/wenzorithelly/",target:"_blank",rel:"noreferrer",className:"w-signal inline-flex items-center gap-1 underline decoration-dotted underline-offset-2 transition-opacity hover:opacity-80",children:[(0,l.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,l.jsx)("rect",{x:"2",y:"2",width:"20",height:"20",rx:"5",ry:"5"}),(0,l.jsx)("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),(0,l.jsx)("line",{x1:"17.5",y1:"6.5",x2:"17.51",y2:"6.5"})]}),"Wenzo"]}),(0,l.jsx)("span",{className:"mx-2 opacity-40",children:"\xb7"}),"\xa9 2026 Beacon"]})]})]})})]})}},32133:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(30772).A)("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]])},39593:(e,s,a)=>{"use strict";a.d(s,{EO:()=>r,S2:()=>t,W6:()=>n});var l=a(41463);let t="https://api.github.com/repos/wenzorithelly/beacon/releases/latest",n=(l.env.NEXT_PUBLIC_BEACON_SITE_URL??"https://www.trybeacon.sh").replace(/\/$/,""),r=`curl -fsSL ${n}/install.sh | sh`},51128:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(30772).A)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},52965:(e,s,a)=>{"use strict";a.d(s,{_:()=>t});var l=a(95155);function t({size:e=18,className:s}){return(0,l.jsxs)("svg",{width:e,height:e,viewBox:"11 1.5 74 74",fill:"none",className:s,"aria-hidden":"true",children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"beacon-mark-beam",x1:"0",y1:"1",x2:"0",y2:"0",children:[(0,l.jsx)("stop",{offset:"0",stopColor:"#ffb27a",stopOpacity:"0.9"}),(0,l.jsx)("stop",{offset:"0.55",stopColor:"#ff7a45",stopOpacity:"0.3"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#ff7a45",stopOpacity:"0"})]})}),(0,l.jsx)("path",{d:"M48 30 L40 4 L56 4 Z",fill:"url(#beacon-mark-beam)"}),(0,l.jsx)("path",{d:"M48 33 L72.5 73 L23.5 73 Z",fill:"currentColor",stroke:"currentColor",strokeWidth:2.4,strokeLinejoin:"round"}),(0,l.jsx)("circle",{cx:"48",cy:"31",r:"5.2",fill:"var(--accent-2, #ff7a45)",style:{filter:"drop-shadow(0 0 4px var(--accent-2, #ff7a45))"}}),(0,l.jsx)("circle",{cx:"48",cy:"31",r:"2",fill:"#ffd9c2"})]})}},64577:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(30772).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},65738:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(30772).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},71265:(e,s,a)=>{"use strict";a.d(s,{default:()=>i});var l=a(12115),t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},n=a(30907);let r=(0,l.createContext)({}),i=(0,l.forwardRef)(({color:e,size:s,strokeWidth:a,absoluteStrokeWidth:i,className:c="",children:d,iconNode:o,...m},h)=>{let{size:x=24,strokeWidth:p=2,absoluteStrokeWidth:u=!1,color:j="currentColor",className:w=""}=(0,l.useContext)(r)??{},f=i??u?24*Number(a??p)/Number(s??x):a??p;return(0,l.createElement)("svg",{ref:h,...t,width:s??x??t.width,height:s??x??t.height,stroke:e??j,strokeWidth:f,className:(0,n.z)("lucide",w,c),...!d&&!(e=>{for(let s in e)if(s.startsWith("aria-")||"role"===s||"title"===s)return!0;return!1})(m)&&{"aria-hidden":"true"},...m},[...o.map(([e,s])=>(0,l.createElement)(e,s)),...Array.isArray(d)?d:[d]])})},72543:(e,s,a)=>{Promise.resolve().then(a.bind(a,31698))},81499:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(30772).A)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]])},86272:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(30772).A)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]])},93340:()=>{},99314:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(30772).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])}},e=>{e.O(0,[1477,8500,8441,3794,7358],()=>e(e.s=72543)),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{30772:(e,s,a)=>{"use strict";a.d(s,{A:()=>i});var l=a(12115),t=a(30907);let n=e=>{let s=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,s,a)=>a?a.toUpperCase():s.toLowerCase());return s.charAt(0).toUpperCase()+s.slice(1)};var r=a(71265);let i=(e,s)=>{let a=(0,l.forwardRef)(({className:a,...i},c)=>(0,l.createElement)(r.default,{ref:c,iconNode:s,className:(0,t.z)(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...i}));return a.displayName=n(e),a}},30907:(e,s,a)=>{"use strict";a.d(s,{z:()=>l});let l=(...e)=>e.filter((e,s,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===s).join(" ").trim()},31698:(e,s,a)=>{"use strict";a.d(s,{Landing:()=>N});var l=a(95155),t=a(12115),n=a(98500),r=a.n(n),i=a(81499),c=a(51128),d=a(86272),o=a(64577),m=a(32133),h=a(65738),x=a(99314),p=a(52965),u=a(39593);a(93340);let j=u.EO;function w({d:e,color:s}){return(0,l.jsx)("svg",{width:15,height:15,viewBox:"0 0 24 24",fill:s??"currentColor","aria-hidden":!0,children:(0,l.jsx)("path",{d:e})})}let f=[{n:"01",title:"Propose",body:(0,l.jsxs)(l.Fragment,{children:["Ask the session in your terminal to plan a feature. It calls"," ",(0,l.jsx)("span",{className:"w-mono text-foreground",children:"beacon_propose_plan"})," and blocks until you decide. No fire-and-forget."]}),code:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"w-signal",children:"›"})," plan: magic-link sign-in"]})},{n:"02",title:"Review",body:"The plan renders as feature nodes, tables, and endpoints. Select any passage to annotate it, mark it for deletion, or edit the boards directly.",code:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"text-foreground",children:"/plan"})," \xb7 2 features \xb7 1 table"]})},{n:"03",title:"Verdict",body:"Approve persists the drafts. Feedback sends your notes back and the agent re-plans. Discard throws it away. Every plan is archived either way.",code:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{style:{color:"#6ee7b7"},children:"✓ approved"})," \xb7 drafts persisted"]})}],b=[{route:"/plan",title:"Review",body:"Split screen: the proposal on the left, live canvases on the right. Every plan archived with your decision and a snapshot of the moment."},{route:"/map",title:"Roadmap",body:"Features, sub-tasks, and dependencies as a graph. Duplicate features get blocked before they exist."},{route:"/db",title:"Database",body:"Proposed tables and endpoints land as drafts, diffed against your live schema: new, changed, or untouched."}],y=[{label:"Reuse first",body:"Beacon blocks duplicate features. Check the map before you create."},{label:"Design data first",body:(0,l.jsxs)(l.Fragment,{children:["Tables and endpoints before code. Review the schema as a draft on"," ",(0,l.jsx)("span",{className:"text-foreground",children:"/db"}),"."]})},{label:"Close every loop",body:"Register finished work so the map stays accurate next session."}];function g(){let e=(0,t.useRef)(null),[s,a]=(0,t.useState)(1);return(0,t.useEffect)(()=>{let s=e.current;if(!s)return;let l=new ResizeObserver(()=>a(Math.min(1,s.clientWidth/620)));return l.observe(s),()=>l.disconnect()},[]),(0,l.jsxs)("div",{className:"bm-window glass",children:[(0,l.jsxs)("div",{className:"bm-tabs",children:[(0,l.jsx)("span",{className:"h-3 w-3 rounded-full",style:{background:"#ff7a45",boxShadow:"0 0 7px rgba(255,122,69,.7)"}}),(0,l.jsx)("span",{className:"h-3 w-3 rounded-full",style:{background:"oklch(1 0 0 / .16)"}}),(0,l.jsx)("span",{className:"h-3 w-3 rounded-full",style:{background:"oklch(1 0 0 / .16)"}}),(0,l.jsx)("span",{className:"bm-tab active ml-2",children:"Roadmap"}),(0,l.jsx)("span",{className:"bm-tab",children:"Database"}),(0,l.jsx)("span",{className:"w-mono ml-auto hidden text-[0.66rem] w-muted min-[400px]:block",children:"/plan \xb7 review"})]}),(0,l.jsx)("div",{className:"bm-canvas",ref:e,style:{aspectRatio:"620 / 392"},children:(0,l.jsxs)("div",{className:"bm-stage",style:{width:620,height:392,transform:`scale(${s})`},children:[(0,l.jsxs)("svg",{className:"bm-edges",width:620,height:392,viewBox:"0 0 620 392","aria-hidden":!0,children:[(0,l.jsx)("path",{className:"bm-edge",style:{animationDelay:"1s"},pathLength:1,d:"M 135 111 C 135 148 165 168 165 210"}),(0,l.jsx)("path",{className:"bm-edge",style:{animationDelay:"1.15s"},pathLength:1,d:"M 244 78 C 300 78 320 150 374 150"}),(0,l.jsx)("path",{className:"bm-edge bm-edge-tail",style:{animationDelay:"1.7s"},pathLength:1,d:"M 596 205 C 596 230 576 242 558 252"})]}),(0,l.jsxs)("div",{className:"bm-node bm-node-draft",style:{left:26,top:38,width:218,animationDelay:".45s"},children:[(0,l.jsx)("div",{className:"bm-title",children:"Magic-link sign-in"}),(0,l.jsx)("div",{className:"bm-role",children:"Email a one-time link, no passwords"}),(0,l.jsxs)("div",{className:"bm-chiprow",children:[(0,l.jsx)("span",{className:"chip chip-sky",children:"feature"}),(0,l.jsx)("span",{className:"chip chip-violet",children:"auth"}),(0,l.jsx)("span",{className:"chip chip-amber",style:{marginLeft:"auto"},children:"Pending"})]})]}),(0,l.jsxs)("div",{className:"bm-node bm-node-draft",style:{left:70,top:210,width:190,animationDelay:".75s"},children:[(0,l.jsx)("div",{className:"bm-title",children:"Issue + verify token"}),(0,l.jsxs)("div",{className:"bm-chiprow",children:[(0,l.jsx)("span",{className:"chip chip-zinc",children:"sub-task"}),(0,l.jsx)("span",{className:"chip chip-amber",style:{marginLeft:"auto"},children:"Pending"})]})]}),(0,l.jsxs)("div",{className:"bm-table",style:{left:374,top:96,width:222,animationDelay:".6s"},children:[(0,l.jsxs)("div",{className:"bm-table-head",children:[(0,l.jsx)("span",{children:"auth_tokens"}),(0,l.jsx)("span",{className:"chip chip-green",children:"new"})]}),(0,l.jsxs)("div",{className:"bm-trow",children:[(0,l.jsx)(i.A,{size:9,style:{color:"#fde68a"}}),(0,l.jsx)("span",{children:"id"}),(0,l.jsx)("span",{className:"t",children:"uuid"})]}),(0,l.jsxs)("div",{className:"bm-trow",children:[(0,l.jsx)("span",{style:{width:9}}),(0,l.jsx)("span",{children:"token_hash"}),(0,l.jsx)("span",{className:"t",children:"text"})]}),(0,l.jsxs)("div",{className:"bm-trow",children:[(0,l.jsx)(c.A,{size:9,style:{color:"#7dd3fc"}}),(0,l.jsx)("span",{children:"user_id"}),(0,l.jsx)("span",{className:"t",children:"→ users"})]}),(0,l.jsxs)("div",{className:"bm-trow",children:[(0,l.jsx)("span",{style:{width:9}}),(0,l.jsx)("span",{children:"expires_at"}),(0,l.jsx)("span",{className:"t",children:"timestamp"})]})]}),(0,l.jsx)("span",{className:"bm-dot",style:{left:135,top:111,animationDelay:"1s"}}),(0,l.jsx)("span",{className:"bm-dot",style:{left:165,top:210,animationDelay:"1.3s"}}),(0,l.jsx)("span",{className:"bm-dot",style:{left:244,top:78,animationDelay:"1.15s"}}),(0,l.jsx)("span",{className:"bm-dot",style:{left:374,top:150,animationDelay:"1.45s"}}),(0,l.jsx)("span",{className:"bm-pin",style:{left:596,top:201,animationDelay:"1.55s"},children:"1"}),(0,l.jsxs)("div",{className:"bm-bubble",style:{left:356,top:252,width:226,animationDelay:"1.85s"},children:[(0,l.jsx)("div",{className:"lab",children:"annotation \xb7 you"}),(0,l.jsx)("div",{className:"txt",children:"Expire links after 15 min, not 24 h."})]}),(0,l.jsxs)("div",{className:"bm-bar",style:{animationDelay:"2.15s"},children:[(0,l.jsx)(d.A,{size:11,style:{color:"#6ee7b7"}}),(0,l.jsx)("span",{className:"ready",children:"plan ready \xb7 waiting for your verdict"}),(0,l.jsxs)("span",{className:"bm-btn bm-btn-approve",children:[(0,l.jsx)(o.A,{size:10})," Approve"]}),(0,l.jsxs)("span",{className:"bm-btn bm-btn-ghost",children:[(0,l.jsx)(m.A,{size:10})," Feedback"]}),(0,l.jsxs)("span",{className:"bm-btn bm-btn-ghost",children:[(0,l.jsx)(h.A,{size:10})," Discard"]})]})]})})]})}function N(){let e=(0,t.useRef)(null),[s,a]=(0,t.useState)(null);(0,t.useEffect)(()=>{let s=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(e.target.classList.add("in"),s.unobserve(e.target))})},{threshold:.12});return e.current?.querySelectorAll(".w-reveal").forEach(e=>s.observe(e)),()=>s.disconnect()},[]);let n=e=>(0,l.jsx)("button",{onClick:()=>{navigator.clipboard?.writeText(j),a(e),setTimeout(()=>a(null),1600)},className:"glass-soft w-hover grid h-8 w-8 shrink-0 place-items-center rounded-md","aria-label":"Copy install command",children:s===e?(0,l.jsx)(o.A,{size:13,style:{color:"#ff7a45"}}):(0,l.jsx)(x.A,{size:13,className:"w-muted"})});return(0,l.jsxs)("div",{className:"welcome",ref:e,children:[(0,l.jsx)("div",{className:"welcome-bg","aria-hidden":!0}),(0,l.jsx)("header",{className:"fixed inset-x-0 top-0 z-50",children:(0,l.jsx)("div",{className:"mx-auto max-w-6xl px-6",children:(0,l.jsxs)("div",{className:"w-load mt-4 glass flex items-center justify-between rounded-full py-2.5 pl-5 pr-3",style:{animationDelay:".05s"},children:[(0,l.jsxs)(r(),{href:"#top",className:"flex items-center gap-2.5",children:[(0,l.jsx)(p._,{size:20,className:"text-foreground"}),(0,l.jsx)("span",{className:"font-semibold tracking-tight",children:"Beacon"})]}),(0,l.jsxs)("nav",{className:"flex items-center gap-6 text-sm w-muted",children:[(0,l.jsx)("a",{href:"#how",className:"transition-colors hover:text-foreground",children:"The loop"}),(0,l.jsx)("a",{href:"#quickstart",className:"hidden transition-colors hover:text-foreground sm:block",children:"Quickstart"}),(0,l.jsx)("a",{href:"/docs",className:"transition-colors hover:text-foreground",children:"Docs"})]})]})})}),(0,l.jsx)("span",{id:"top"}),(0,l.jsxs)("section",{className:"px-6 pb-16 pt-20 md:pt-24",children:[(0,l.jsxs)("div",{className:"mx-auto grid max-w-6xl items-center gap-12 lg:grid-cols-[1fr_1.1fr]",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsxs)("div",{className:"w-load glass-soft mb-6 inline-flex items-center gap-2 rounded-full px-3.5 py-1.5",style:{animationDelay:".12s"},children:[(0,l.jsx)("span",{className:"w-live h-1.5 w-1.5 rounded-full",style:{background:"#ff7a45",boxShadow:"0 0 8px #ff7a45"}}),(0,l.jsx)("span",{className:"w-mono w-eyebrow w-muted",children:"Local \xb7 no account \xb7 no API key"})]}),(0,l.jsxs)("h1",{className:"w-load font-semibold text-[clamp(2.2rem,4.6vw,3.4rem)]",style:{letterSpacing:"-0.025em",lineHeight:1.06,animationDelay:".18s"},children:["Give your coding agent ",(0,l.jsx)("span",{className:"w-signal",children:"eyes"})," and hands."]}),(0,l.jsx)("p",{className:"w-load w-muted mt-5 max-w-md text-[1.02rem] leading-relaxed",style:{animationDelay:".26s"},children:"The session in your terminal is the brain. Beacon is where its plans become visible: features, tables, and endpoints on a canvas you annotate, edit, and approve with one click."}),(0,l.jsxs)("div",{className:"w-load mt-8",style:{animationDelay:".34s"},children:[(0,l.jsxs)("div",{className:"glass flex max-w-lg items-center gap-3 rounded-lg py-2.5 pl-4 pr-2",children:[(0,l.jsxs)("code",{className:"w-mono w-scrollbar-none min-w-0 flex-1 overflow-x-auto whitespace-nowrap text-[0.85rem]",children:[(0,l.jsx)("span",{className:"w-signal select-none",children:"$"}),(0,l.jsx)("span",{className:"ml-2",children:j}),(0,l.jsx)("span",{className:"w-caret ml-1 inline-block h-3.5 w-1.5 align-middle",style:{background:"#ff7a45"}})]}),n("hero")]}),(0,l.jsxs)("p",{className:"w-mono w-muted mt-3 text-[0.78rem]",children:["then run ",(0,l.jsx)("span",{className:"text-foreground",children:"beacon"})," inside any repo"]})]}),(0,l.jsxs)("div",{className:"w-load mt-9 flex flex-wrap items-center gap-x-5 gap-y-2",style:{animationDelay:".42s"},children:[(0,l.jsx)("span",{className:"w-mono w-eyebrow w-muted",children:"Works with"}),(0,l.jsxs)("span",{className:"flex items-center gap-2 text-sm text-foreground/90",children:[(0,l.jsx)(w,{d:"m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z",color:"#D97757"})," Claude Code"]}),(0,l.jsxs)("span",{className:"flex items-center gap-2 text-sm text-foreground/90",children:[(0,l.jsx)(w,{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"})," Codex"]})]})]}),(0,l.jsx)("div",{className:"w-load min-w-0",style:{animationDelay:".3s"},children:(0,l.jsx)(g,{})})]}),(0,l.jsxs)("a",{href:"#how",className:"w-load mx-auto mt-12 flex w-fit flex-col items-center gap-2 w-muted transition-colors hover:text-foreground md:mt-20",style:{animationDelay:".6s"},children:[(0,l.jsx)("span",{className:"w-mono w-eyebrow",children:"The loop"}),(0,l.jsx)("svg",{className:"w-cue",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,l.jsx)("path",{d:"m6 9 6 6 6-6"})})]})]}),(0,l.jsx)("section",{id:"how",className:"px-6 py-16 md:py-24",children:(0,l.jsxs)("div",{className:"mx-auto max-w-5xl",children:[(0,l.jsxs)("div",{className:"w-reveal mb-14 text-center",children:[(0,l.jsx)("p",{className:"w-mono w-eyebrow w-signal mb-4",children:"The loop"}),(0,l.jsx)("h2",{className:"text-[clamp(1.9rem,4vw,2.75rem)] font-semibold tracking-tight",children:"Propose. Review. Verdict. Repeat."}),(0,l.jsx)("div",{className:"w-accent-line mx-auto mt-6 h-px w-40"})]}),(0,l.jsx)("div",{className:"grid gap-10 md:grid-cols-3",children:f.map(e=>(0,l.jsxs)("div",{className:"loop-card w-reveal glass w-hover rounded-lg p-6",children:[(0,l.jsx)("p",{className:"w-mono w-eyebrow w-signal mb-3",children:e.n}),(0,l.jsx)("h3",{className:"mb-2 font-semibold",children:e.title}),(0,l.jsx)("p",{className:"w-muted mb-4 text-[0.92rem] leading-relaxed",children:e.body}),(0,l.jsx)("code",{className:"w-mono glass-soft inline-block rounded-md px-3 py-1.5 text-[0.74rem]",children:e.code})]},e.n))}),(0,l.jsxs)("p",{className:"w-reveal w-mono w-muted mt-10 text-center text-[0.78rem]",children:["feedback sends the agent back to ",(0,l.jsx)("span",{className:"w-signal",children:"01"})," \xb7 approval persists the drafts"]})]})}),(0,l.jsx)("section",{className:"px-6 py-12",children:(0,l.jsxs)("div",{className:"mx-auto max-w-5xl",children:[(0,l.jsxs)("div",{className:"w-reveal mb-12 text-center",children:[(0,l.jsx)("p",{className:"w-mono w-eyebrow w-signal mb-4",children:"The surfaces"}),(0,l.jsx)("h2",{className:"text-[clamp(1.6rem,3.4vw,2.25rem)] font-semibold tracking-tight",children:"Everything the agent plans, drawn"})]}),(0,l.jsx)("div",{className:"grid gap-5 md:grid-cols-3",children:b.map(e=>(0,l.jsxs)("div",{className:"w-reveal glass w-hover rounded-lg p-6",children:[(0,l.jsx)("p",{className:"w-mono mb-1 text-[0.82rem] font-semibold w-signal",children:e.route}),(0,l.jsx)("h3",{className:"mb-2 font-semibold",children:e.title}),(0,l.jsx)("p",{className:"w-muted text-[0.92rem] leading-relaxed",children:e.body})]},e.route))})]})}),(0,l.jsxs)("section",{id:"quickstart",className:"px-6 py-16 md:py-24",children:[(0,l.jsxs)("div",{className:"mx-auto max-w-3xl",children:[(0,l.jsxs)("div",{className:"w-reveal mb-12 text-center",children:[(0,l.jsx)("p",{className:"w-mono w-eyebrow w-signal mb-4",children:"Quickstart"}),(0,l.jsx)("h2",{className:"text-[clamp(1.6rem,3.4vw,2.25rem)] font-semibold tracking-tight",children:"Five lines to your first approved plan"})]}),(0,l.jsxs)("div",{className:"w-reveal glass overflow-hidden rounded-lg",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 border-b px-4 py-3",style:{borderColor:"var(--border)"},children:[(0,l.jsx)("span",{className:"h-3 w-3 rounded-full",style:{background:"#ff7a45",boxShadow:"0 0 7px rgba(255,122,69,.7)"}}),(0,l.jsx)("span",{className:"h-3 w-3 rounded-full",style:{background:"oklch(1 0 0 / .16)"}}),(0,l.jsx)("span",{className:"h-3 w-3 rounded-full",style:{background:"oklch(1 0 0 / .16)"}}),(0,l.jsx)("span",{className:"w-mono ml-2 text-[0.72rem] w-muted",children:"your-repo — terminal"})]}),(0,l.jsxs)("div",{className:"px-5 py-4",children:[(0,l.jsxs)("div",{className:"ql",children:[(0,l.jsxs)("code",{className:"cmd w-scrollbar-none",children:[(0,l.jsx)("span",{className:"w-signal select-none",children:"$ "}),j]}),(0,l.jsx)("span",{className:"note",children:"01 \xb7 one binary, no account"}),n("qs")]}),(0,l.jsxs)("div",{className:"ql",children:[(0,l.jsxs)("code",{className:"cmd",children:[(0,l.jsx)("span",{className:"w-signal select-none",children:"$ "}),"cd your-repo && beacon"]}),(0,l.jsx)("span",{className:"note",children:"02 \xb7 registers the repo, opens the panel"})]}),(0,l.jsxs)("div",{className:"ql",children:[(0,l.jsxs)("code",{className:"cmd",children:[(0,l.jsx)("span",{className:"w-signal select-none",children:"› "}),"/beacon-init"]}),(0,l.jsx)("span",{className:"note",children:"03 \xb7 maps architecture, schema, roadmap"})]}),(0,l.jsxs)("div",{className:"ql",children:[(0,l.jsxs)("code",{className:"cmd",children:[(0,l.jsx)("span",{className:"w-signal select-none",children:"› "}),"plan: magic-link sign-in"]}),(0,l.jsx)("span",{className:"note",children:"04 \xb7 the plan streams onto /plan"})]}),(0,l.jsxs)("div",{className:"ql",children:[(0,l.jsxs)("code",{className:"cmd",children:[(0,l.jsxs)("span",{className:"select-none",style:{color:"#6ee7b7"},children:["✓"," "]}),"approve \xb7 feedback \xb7 discard"]}),(0,l.jsx)("span",{className:"note",children:"05 \xb7 the verdict returns to your session"})]})]})]})]}),(0,l.jsx)("div",{className:"mx-auto mt-16 max-w-5xl",children:(0,l.jsx)("div",{className:"w-reveal glass grid overflow-hidden rounded-lg md:grid-cols-3 md:divide-x md:divide-y-0 divide-y",style:{borderColor:"var(--border)"},children:y.map(e=>(0,l.jsxs)("div",{className:"p-6",style:{borderColor:"oklch(1 0 0 / 0.07)"},children:[(0,l.jsx)("p",{className:"w-mono w-eyebrow w-signal mb-2.5",children:e.label}),(0,l.jsx)("p",{className:"w-muted text-[0.9rem] leading-relaxed",children:e.body})]},e.label))})})]}),(0,l.jsx)("footer",{className:"px-6 pb-12 pt-8",children:(0,l.jsxs)("div",{className:"mx-auto max-w-5xl",children:[(0,l.jsx)("div",{className:"w-accent-line mb-8 h-px w-full opacity-60"}),(0,l.jsxs)("div",{className:"flex flex-col items-center justify-between gap-5 md:flex-row",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,l.jsx)(p._,{size:26,className:"text-foreground"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"font-semibold leading-tight",children:"Beacon"}),(0,l.jsx)("p",{className:"w-mono w-muted text-[0.72rem]",children:"the visual planning surface for your terminal"})]})]}),(0,l.jsxs)("nav",{className:"flex items-center gap-6 text-sm w-muted",children:[(0,l.jsx)("a",{href:"/docs",className:"transition-colors hover:text-foreground",children:"Docs"}),(0,l.jsx)("a",{href:"#",className:"transition-colors hover:text-foreground",children:"Changelog"})]}),(0,l.jsxs)("p",{className:"w-mono w-muted text-[0.72rem]",children:["Created by"," ",(0,l.jsxs)("a",{href:"https://www.instagram.com/wenzorithelly/",target:"_blank",rel:"noreferrer",className:"w-signal inline-flex items-center gap-1 underline decoration-dotted underline-offset-2 transition-opacity hover:opacity-80",children:[(0,l.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,l.jsx)("rect",{x:"2",y:"2",width:"20",height:"20",rx:"5",ry:"5"}),(0,l.jsx)("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),(0,l.jsx)("line",{x1:"17.5",y1:"6.5",x2:"17.51",y2:"6.5"})]}),"Wenzo"]}),(0,l.jsx)("span",{className:"mx-2 opacity-40",children:"\xb7"}),"\xa9 2026 Beacon"]})]})]})})]})}},32133:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(30772).A)("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]])},39593:(e,s,a)=>{"use strict";a.d(s,{EO:()=>r,S2:()=>t,W6:()=>n});var l=a(41463);let t="https://api.github.com/repos/wenzorithelly/beacon/releases/latest",n=(l.env.NEXT_PUBLIC_BEACON_SITE_URL??"https://www.trybeacon.sh").replace(/\/$/,""),r=`curl -fsSL ${n}/install.sh | sh`},50814:(e,s,a)=>{Promise.resolve().then(a.bind(a,31698))},51128:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(30772).A)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},52965:(e,s,a)=>{"use strict";a.d(s,{_:()=>t});var l=a(95155);function t({size:e=18,className:s}){return(0,l.jsxs)("svg",{width:e,height:e,viewBox:"11 1.5 74 74",fill:"none",className:s,"aria-hidden":"true",children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"beacon-mark-beam",x1:"0",y1:"1",x2:"0",y2:"0",children:[(0,l.jsx)("stop",{offset:"0",stopColor:"#ffb27a",stopOpacity:"0.9"}),(0,l.jsx)("stop",{offset:"0.55",stopColor:"#ff7a45",stopOpacity:"0.3"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#ff7a45",stopOpacity:"0"})]})}),(0,l.jsx)("path",{d:"M48 30 L40 4 L56 4 Z",fill:"url(#beacon-mark-beam)"}),(0,l.jsx)("path",{d:"M48 33 L72.5 73 L23.5 73 Z",fill:"currentColor",stroke:"currentColor",strokeWidth:2.4,strokeLinejoin:"round"}),(0,l.jsx)("circle",{cx:"48",cy:"31",r:"5.2",fill:"var(--accent-2, #ff7a45)",style:{filter:"drop-shadow(0 0 4px var(--accent-2, #ff7a45))"}}),(0,l.jsx)("circle",{cx:"48",cy:"31",r:"2",fill:"#ffd9c2"})]})}},64577:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(30772).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},65738:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(30772).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},71265:(e,s,a)=>{"use strict";a.d(s,{default:()=>i});var l=a(12115),t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},n=a(30907);let r=(0,l.createContext)({}),i=(0,l.forwardRef)(({color:e,size:s,strokeWidth:a,absoluteStrokeWidth:i,className:c="",children:d,iconNode:o,...m},h)=>{let{size:x=24,strokeWidth:p=2,absoluteStrokeWidth:u=!1,color:j="currentColor",className:w=""}=(0,l.useContext)(r)??{},f=i??u?24*Number(a??p)/Number(s??x):a??p;return(0,l.createElement)("svg",{ref:h,...t,width:s??x??t.width,height:s??x??t.height,stroke:e??j,strokeWidth:f,className:(0,n.z)("lucide",w,c),...!d&&!(e=>{for(let s in e)if(s.startsWith("aria-")||"role"===s||"title"===s)return!0;return!1})(m)&&{"aria-hidden":"true"},...m},[...o.map(([e,s])=>(0,l.createElement)(e,s)),...Array.isArray(d)?d:[d]])})},81499:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(30772).A)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]])},86272:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(30772).A)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]])},93340:()=>{},99314:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(30772).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])}},e=>{e.O(0,[1477,8500,8441,3794,7358],()=>e(e.s=50814)),_N_E=e.O()}]);
|