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
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var
|
|
2
|
+
var uq=Object.defineProperty;var Xq=(q)=>q;function Gq(q,z){this[q]=Xq.bind(null,z)}var l=(q,z)=>{for(var J in z)uq(q,J,{get:z[J],enumerable:!0,configurable:!0,set:Gq.bind(z,J)})};var b=(q,z)=>()=>(q&&(z=q(q=0)),z);var d={};l(d,{removeRepoAssets:()=>fq,installRefreshSkill:()=>wq,installPlanSkill:()=>gq,installInitSkill:()=>bq,installCodexRepoSkills:()=>Cq,ensureWorkflowDoc:()=>Nq,ensureMcp:()=>Kq,auditRepo:()=>Mq,REFRESH_SKILL:()=>F,PLAN_SKILL:()=>t,INIT_SKILL:()=>E});import{existsSync as v,mkdirSync as g,readFileSync as W,rmSync as w,writeFileSync as B}from"fs";import{join as $}from"path";function bq(q){let z=$(q,".claude","skills","beacon-init");g(z,{recursive:!0});let J=$(z,"SKILL.md");return B(J,E),J}function wq(q){let z=$(q,".claude","skills","beacon-refresh");g(z,{recursive:!0});let J=$(z,"SKILL.md");return B(J,F),J}function gq(q){let z=$(q,".claude","skills","beacon-plan");g(z,{recursive:!0});let J=$(z,"SKILL.md");return B(J,t),J}function Cq(q){let z=[];for(let J of jq){let Q=$(q,".agents","skills",J.name);g(Q,{recursive:!0});let V=$(Q,"SKILL.md");B(V,J.body()),z.push(V)}return z}function Nq(q){let z=$(q,"AGENTS.md"),J="";try{J=W(z,"utf8")}catch{}let Q=new RegExp(`${j}[\\s\\S]*?${k}`);J=Q.test(J)?J.replace(Q,s):`${J.trim()}
|
|
3
3
|
|
|
4
|
-
${
|
|
5
|
-
`.trimStart(),
|
|
4
|
+
${s}
|
|
5
|
+
`.trimStart(),B(z,J.endsWith(`
|
|
6
6
|
`)?J:`${J}
|
|
7
|
-
`);let V=$(q,"CLAUDE.md"),Y="";try{Y=
|
|
7
|
+
`);let V=$(q,"CLAUDE.md"),Y="";try{Y=W(V,"utf8")}catch{}if(!/@AGENTS\.md/.test(Y))B(V,`${Y?`${Y.trim()}
|
|
8
8
|
|
|
9
9
|
`:""}@AGENTS.md
|
|
10
|
-
`)}function
|
|
11
|
-
`),{path:z,added:!0}}function
|
|
12
|
-
`)}}catch{}let V=!1,Y=$(q,"AGENTS.md");try{let Z=
|
|
10
|
+
`)}function Kq(q){let z=$(q,".mcp.json"),J={};try{J=JSON.parse(W(z,"utf8"))}catch{}if(J.mcpServers=J.mcpServers??{},J.mcpServers.beacon)return{path:z,added:!1};return J.mcpServers.beacon={command:"beacon",args:["mcp"]},B(z,JSON.stringify(J,null,2)+`
|
|
11
|
+
`),{path:z,added:!0}}function Mq(q){let z=$(q,".mcp.json"),J=!1;try{J=!!JSON.parse(W(z,"utf8")).mcpServers?.beacon}catch{}let Q=!1;try{Q=W($(q,"AGENTS.md"),"utf8").includes(j)}catch{}let V=!1;try{V=/@AGENTS\.md/.test(W($(q,"CLAUDE.md"),"utf8"))}catch{}return{repo:q,mcpRegistered:J,agentsMdBlock:Q,claudeMdImport:V,skills:{"beacon-init":v($(q,".claude","skills","beacon-init","SKILL.md")),"beacon-refresh":v($(q,".claude","skills","beacon-refresh","SKILL.md"))},codexSkills:{"beacon-init":v($(q,".agents","skills","beacon-init","SKILL.md")),"beacon-refresh":v($(q,".agents","skills","beacon-refresh","SKILL.md"))}}}function fq(q){let z=[];for(let Z of["beacon-init","beacon-refresh","beacon-db-design"]){let P=$(q,".claude","skills",Z);if(v(P))w(P,{recursive:!0,force:!0}),z.push(Z)}for(let Z of["beacon-init","beacon-refresh"]){let P=$(q,".agents","skills",Z);if(v(P))w(P,{recursive:!0,force:!0}),z.push(`codex:${Z}`)}let J=!1,Q=$(q,".mcp.json");try{let Z=JSON.parse(W(Q,"utf8"));if(Z.mcpServers?.beacon){if(delete Z.mcpServers.beacon,J=!0,Z.mcpServers&&Object.keys(Z.mcpServers).length===0)delete Z.mcpServers;if(Object.keys(Z).length===0)w(Q,{force:!0});else B(Q,JSON.stringify(Z,null,2)+`
|
|
12
|
+
`)}}catch{}let V=!1,Y=$(q,"AGENTS.md");try{let Z=W(Y,"utf8"),P=new RegExp(`\\n?${j}[\\s\\S]*?${k}\\n?`);if(P.test(Z)){let D=Z.replace(P,`
|
|
13
13
|
`).replace(/\n{3,}/g,`
|
|
14
14
|
|
|
15
|
-
`).trimStart();
|
|
16
|
-
`)?
|
|
17
|
-
`),V=!0}}catch{}let
|
|
15
|
+
`).trimStart();B(Y,D.endsWith(`
|
|
16
|
+
`)?D:`${D}
|
|
17
|
+
`),V=!0}}catch{}let U=!1,H=$(q,"CLAUDE.md");try{let Z=W(H,"utf8"),P=Z.replace(/^[ \t]*@AGENTS\.md[ \t]*\n?/m,"");if(P!==Z){if(!P.trim())w(H,{force:!0});else B(H,P);U=!0}}catch{}return{skillsRemoved:z,mcpUnregistered:J,agentsBlockRemoved:V,claudeImportRemoved:U}}var E=`---
|
|
18
18
|
name: beacon-init
|
|
19
19
|
description: Read this repository and map its architecture, schema, and roadmap into Beacon (the local visual planning panel). Use when the user runs /beacon-init, asks to "set up Beacon for this repo", or asks to initialize/bootstrap Beacon's map of this codebase.
|
|
20
20
|
---
|
|
@@ -51,7 +51,7 @@ A single \`beacon_init_persist\` MCP tool call with:
|
|
|
51
51
|
If \`beacon_init_persist\` isn't available, the Beacon panel isn't running in this repo. Tell the user to run \`beacon\` here first, then re-invoke /beacon-init.
|
|
52
52
|
|
|
53
53
|
After the tool returns, tell the user the counts (components / roadmap / tables / endpoints) and point them at the running Beacon panel.
|
|
54
|
-
`,
|
|
54
|
+
`,F=`---
|
|
55
55
|
name: beacon-refresh
|
|
56
56
|
description: Re-survey the repo and update Beacon's architecture / schema / endpoints map after /beacon-init was already run \u2014 picks up new components, removed ones, schema changes, and new routes. Use when the user runs /beacon-refresh or asks to "refresh", "update", "re-sync", or "bring Beacon up to date" with the current code.
|
|
57
57
|
---
|
|
@@ -98,7 +98,7 @@ The one caveat: if the user manually edited an INIT-source node on the canvas (e
|
|
|
98
98
|
If \`beacon_entities\` or \`beacon_init_persist\` isn't available, the Beacon panel isn't running in this repo. Tell the user to run \`beacon\` here first, then re-invoke /beacon-refresh.
|
|
99
99
|
|
|
100
100
|
After the tool returns, report the final counts plus a one-line summary of the diff you surfaced.
|
|
101
|
-
`,
|
|
101
|
+
`,t=`---
|
|
102
102
|
name: beacon-plan
|
|
103
103
|
description: Present your current plan or approach to the user on Beacon's /plan canvas for review \u2014 instead of asking for approval in prose. Use when the user says "present the plan", "show me the plan", "let me see it / the plan", or whenever you are about to end a turn asking whether to proceed with a plan, design, or approach.
|
|
104
104
|
---
|
|
@@ -140,7 +140,7 @@ If it returns feedback, revise and call it again.
|
|
|
140
140
|
If \`beacon_present_plan\` isn't available, the panel isn't wired here \u2014 fall back to ExitPlanMode
|
|
141
141
|
with the same \`\`\`beacon block (Claude Code only; Codex has no ExitPlanMode), or tell the user to
|
|
142
142
|
run \`beacon\` in this repo once.
|
|
143
|
-
`,
|
|
143
|
+
`,jq,j="<!-- beacon:workflow:start -->",k="<!-- beacon:workflow:end -->",s;var c=b(()=>{jq=[{name:"beacon-init",body:()=>E},{name:"beacon-refresh",body:()=>F}];s=`${j}
|
|
144
144
|
## Beacon \u2014 feature workflow
|
|
145
145
|
|
|
146
146
|
This project uses Beacon (a local planning/visualization panel; run \`beacon\` to open it). When you start work on a FEATURE \u2014 whether referenced via an \`@beacon:feature://\u2026\` mention, an \`@beacon:note://\u2026\` note the user wrote in the Notes panel (treat its checkbox \`- [ ]\` todos as subtasks and order features by their dependencies), or just described in chat \u2014 follow these steps in order:
|
|
@@ -194,18 +194,18 @@ Register them all in that single batched call. If a plan added five features, th
|
|
|
194
194
|
If the feature added or materially changed a REAL architectural component (a subsystem \u2014 NOT a file), also pass \`architecture: [{ title, domain, role, \u2026 }]\` so the Architecture map stays accurate. It upserts curated components by title; never list files as components.
|
|
195
195
|
|
|
196
196
|
Pull raw planning data anytime with \`beacon_entities\` (features / architecture / tables / endpoints).
|
|
197
|
-
${
|
|
198
|
-
`)}function
|
|
197
|
+
${k}`});import{existsSync as n,mkdirSync as O,readFileSync as N,rmSync as Tq,writeFileSync as K}from"fs";import{dirname as r,join as C}from"path";function L(q){try{return JSON.parse(N(q,"utf8"))}catch{return{}}}function o(q,z){O(r(q),{recursive:!0}),K(q,JSON.stringify(z,null,2)+`
|
|
198
|
+
`)}function e(q,z){let J=L(q);J.hooks=J.hooks??{},J.hooks[z.event]=J.hooks[z.event]??[];let Q=J.hooks[z.event];if(Q.some((Y)=>Y.matcher===z.matcher&&Y.hooks?.some((U)=>U.command===z.command)))return!1;return Q.push({matcher:z.matcher,hooks:[{type:"command",command:z.command}]}),o(q,J),!0}function qq(q,z){return(L(q).hooks?.[z.event]??[]).some((V)=>V.hooks?.some((Y)=>Y.command===z.command))}function zq(q,z){let J=L(q),Q=J.hooks?.[z.event];if(!Q)return!1;let V=!1,Y=Q.map((U)=>{let H=U.hooks?.length??0,Z=(U.hooks??[]).filter((P)=>P.command!==z.command);if(Z.length!==H)V=!0;return{...U,hooks:Z}}).filter((U)=>(U.hooks??[]).length>0);if(!V)return!1;if(Y.length)J.hooks[z.event]=Y;else delete J.hooks[z.event];if(J.hooks&&Object.keys(J.hooks).length===0)delete J.hooks;return o(q,J),!0}function Jq(q,z,J,Q){let V=`${z}
|
|
199
199
|
${Q.trim()}
|
|
200
|
-
${J}`,Y="";try{Y=
|
|
200
|
+
${J}`,Y="";try{Y=N(q,"utf8")}catch{}let U=new RegExp(`${z}[\\s\\S]*?${J}`);Y=U.test(Y)?Y.replace(U,V):Y.trim()?`${Y.trim()}
|
|
201
201
|
|
|
202
202
|
${V}
|
|
203
203
|
`:`${V}
|
|
204
|
-
`,r(
|
|
204
|
+
`,O(r(q),{recursive:!0}),K(q,Y.endsWith(`
|
|
205
205
|
`)?Y:`${Y}
|
|
206
|
-
`)}function
|
|
206
|
+
`)}function y(q,z){try{return N(q,"utf8").includes(z)}catch{return!1}}function Qq(q,z,J){let Q="";try{Q=N(q,"utf8")}catch{return!1}let V=new RegExp(`${z}[\\s\\S]*?${J}\\n?`);if(!V.test(Q))return!1;let Y=Q.replace(V,"").replace(/\n{3,}/g,`
|
|
207
207
|
|
|
208
|
-
`).trimStart();return
|
|
208
|
+
`).trimStart();return K(q,Y),!0}function Vq(q,z,J){let Q=C(q,z);O(Q,{recursive:!0});let V=C(Q,"SKILL.md");return K(V,J),V}function h(q,z){return n(C(q,z,"SKILL.md"))}function Yq(q,z){let J=C(q,z);if(!n(J))return!1;return Tq(J,{recursive:!0,force:!0}),!0}var M,i=`## Beacon (visual planning panel)
|
|
209
209
|
|
|
210
210
|
This machine has Beacon installed \u2014 a local visual planning surface for the terminal-side
|
|
211
211
|
agent. Beacon proposes feature plans (roadmap features + DB schema + endpoints) via MCP,
|
|
@@ -226,17 +226,17 @@ the user reviews on a canvas at /plan, and feedback flows back as the next round
|
|
|
226
226
|
Feedback bundles inline annotations on the markdown PLUS any edits the user made directly
|
|
227
227
|
on the /map and /db boards (added features, attached subtasks, edited columns, new
|
|
228
228
|
endpoints). Treat board edits as the user's revision intent \u2014 re-propose matching them
|
|
229
|
-
verbatim. Do NOT implement until the tool returns approval.`;var
|
|
229
|
+
verbatim. Do NOT implement until the tool returns approval.`;var Zq=b(()=>{M=["beacon-init","beacon-refresh","beacon-plan"]});import{mkdirSync as Iq,renameSync as Rq,rmSync as Aq,writeFileSync as Dq}from"fs";import{dirname as Eq}from"path";function _(q,z){Iq(Eq(q),{recursive:!0});let J=`${q}.tmp`;try{Dq(J,z),Rq(J,q)}catch(Q){throw Aq(J,{force:!0}),Q}}var $q=()=>{};var _q={};l(_q,{setupCodexAssets:()=>Lq,removeCodexMcp:()=>xq,removeCodexArtifacts:()=>hq,hasCodexMcp:()=>a,ensureCodexMcp:()=>vq,codexMcpProblem:()=>Oq,codexDetected:()=>Bq,auditCodex:()=>yq,CODEX_HOOKS:()=>A});import{readFileSync as R}from"fs";import{homedir as Fq}from"os";import{join as G}from"path";function Uq(){return process.env.HOME||process.env.USERPROFILE||Fq()}function Bq(){if(process.env.BEACON_CODEX==="1")return!0;if(process.env.BEACON_CODEX==="0")return!1;if(m===void 0)m=Bun.which("codex")!==null;return m}function X(q){try{return Bun.TOML.parse(q)}catch{return null}}function a(){try{return Boolean(X(R(x(),"utf8"))?.mcp_servers?.beacon)}catch{return!1}}function Oq(){let q="";try{q=R(x(),"utf8")}catch{return null}let z=X(q);if(!z)return`~/.codex/config.toml does not parse \u2014 ${u}`;if(z.mcp_servers?.beacon)return null;if(/^\s*mcp_servers\s*=/m.test(q))return`mcp_servers is an inline table \u2014 ${u}`;return null}function vq(){let q="",z=!1;try{q=R(x(),"utf8"),z=!0}catch{}if(z){let Y=X(q);if(!Y)return{added:!1,error:`~/.codex/config.toml does not parse \u2014 ${u}`};if(Y.mcp_servers?.beacon)return{added:!1};if(/^\s*mcp_servers\s*=/m.test(q))return{added:!1,error:`mcp_servers is an inline table \u2014 ${u}`}}let J=!q?"":q.endsWith(`
|
|
230
230
|
`)?`
|
|
231
231
|
`:`
|
|
232
232
|
|
|
233
|
-
`,Q=q+J+
|
|
234
|
-
`),J=z.indexOf(
|
|
233
|
+
`,Q=q+J+kq;if(X(Q)?.mcp_servers?.beacon?.command!=="beacon")return{added:!1,error:`could not safely append [mcp_servers.beacon] \u2014 ${u}`};return _(x(),Q),{added:!0}}function xq(){let q="";try{q=R(x(),"utf8")}catch{return{removed:!1}}let z=q.split(`
|
|
234
|
+
`),J=z.indexOf(Wq);if(J===-1)return{removed:!1,skipped:a()};let Q=z.indexOf(Hq,J);if(Q===-1)return{removed:!1,skipped:!0};z.splice(J,Q-J+1);let V=z.join(`
|
|
235
235
|
`).replace(/\n{3,}/g,`
|
|
236
236
|
|
|
237
|
-
`).replace(/^\n+/,"");if(
|
|
237
|
+
`).replace(/^\n+/,"");if(X(V)===null)return{removed:!1,skipped:!0};return _(x(),V),{removed:!0}}async function Lq(){let{INIT_SKILL:q,REFRESH_SKILL:z,PLAN_SKILL:J}=await Promise.resolve().then(() => (c(),d)),Q={"beacon-init":q,"beacon-refresh":z,"beacon-plan":J},V=[];for(let Z of M){if(!h(T(),Z))V.push(Z);Vq(T(),Z,Q[Z])}let Y=0;for(let Z of A)if(e(p(),{event:Z.event,matcher:Z.matcher,command:Z.command}))Y++;let U=y(f(),I);Jq(f(),I,Pq,i);let H=vq();return{skillsAdded:V,hooksAdded:Y,agentsMdBlockTouched:!U,mcp:H}}function yq(){let q={};for(let J of M)q[J]=h(T(),J);let z={};for(let J of A)z[J.event]=qq(p(),{event:J.event,command:J.command});return{detected:Bq(),skills:q,hooks:z,agentsMdBlock:y(f(),I),mcp:a()}}function hq(){let q=[];for(let V of M)if(Yq(T(),V))q.push(V);let z=0;for(let V of A)if(zq(p(),{event:V.event,command:V.command}))z++;let J=Qq(f(),I,Pq),Q=xq();return{skillsRemoved:q,hooksRemoved:z,agentsMdBlockRemoved:J,mcpRemoved:Q.removed,mcpSkipped:Q.skipped}}var S=()=>G(Uq(),".codex"),p=()=>G(S(),"hooks.json"),x=()=>G(S(),"config.toml"),f=()=>G(S(),"AGENTS.md"),T=()=>G(Uq(),".agents","skills"),I="<!-- beacon:global:start -->",Pq="<!-- beacon:global:end -->",A,m,Wq="# beacon:start (managed by Beacon \u2014 `beacon uninstall` removes this block)",Hq="# beacon:end",kq,u="add it manually: codex mcp add beacon -- beacon mcp";var mq=b(()=>{Zq();$q();A=[{event:"PostToolUse",matcher:"apply_patch",command:"beacon hook",description:"Report file edits to Beacon's active feature so the map stays fresh."},{event:"UserPromptSubmit",matcher:"*",command:"beacon prompt",description:"On feature-y prompts in a Beacon-wired repo, remind the agent to run the context\u2192propose\u2192describe loop (no-op otherwise)."},{event:"Stop",matcher:"*",command:"beacon stop-hook",description:"When the agent ends a turn asking for plan approval in prose, nudge it to present the plan on Beacon's /plan canvas."}];kq=`${Wq}
|
|
238
238
|
[mcp_servers.beacon]
|
|
239
239
|
command = "beacon"
|
|
240
240
|
args = ["mcp"]
|
|
241
|
-
${
|
|
242
|
-
`});
|
|
241
|
+
${Hq}
|
|
242
|
+
`});mq();export{Lq as setupCodexAssets,xq as removeCodexMcp,hq as removeCodexArtifacts,a as hasCodexMcp,vq as ensureCodexMcp,Oq as codexMcpProblem,Bq as codexDetected,yq as auditCodex,A as CODEX_HOOKS};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var
|
|
2
|
+
var Fq=Object.defineProperty;var Tq=(q)=>q;function Rq(q,z){this[q]=Tq.bind(null,z)}var Pq=(q,z)=>{for(var J in z)Fq(q,J,{get:z[J],enumerable:!0,configurable:!0,set:Rq.bind(z,J)})};var b=(q,z)=>()=>(q&&(z=q(q=0)),z);var n={};Pq(n,{removeRepoAssets:()=>_q,installRefreshSkill:()=>Eq,installPlanSkill:()=>yq,installInitSkill:()=>Iq,installCodexRepoSkills:()=>Dq,ensureWorkflowDoc:()=>Oq,ensureMcp:()=>hq,auditRepo:()=>kq,REFRESH_SKILL:()=>c,PLAN_SKILL:()=>Uq,INIT_SKILL:()=>t});import{existsSync as H,mkdirSync as f,readFileSync as X,rmSync as G,writeFileSync as x}from"fs";import{join as $}from"path";function Iq(q){let z=$(q,".claude","skills","beacon-init");f(z,{recursive:!0});let J=$(z,"SKILL.md");return x(J,t),J}function Eq(q){let z=$(q,".claude","skills","beacon-refresh");f(z,{recursive:!0});let J=$(z,"SKILL.md");return x(J,c),J}function yq(q){let z=$(q,".claude","skills","beacon-plan");f(z,{recursive:!0});let J=$(z,"SKILL.md");return x(J,Uq),J}function Dq(q){let z=[];for(let J of Aq){let Q=$(q,".agents","skills",J.name);f(Q,{recursive:!0});let V=$(Q,"SKILL.md");x(V,J.body()),z.push(V)}return z}function Oq(q){let z=$(q,"AGENTS.md"),J="";try{J=X(z,"utf8")}catch{}let Q=new RegExp(`${C}[\\s\\S]*?${d}`);J=Q.test(J)?J.replace(Q,Wq):`${J.trim()}
|
|
3
3
|
|
|
4
4
|
${Wq}
|
|
5
5
|
`.trimStart(),x(z,J.endsWith(`
|
|
@@ -7,14 +7,14 @@ ${Wq}
|
|
|
7
7
|
`);let V=$(q,"CLAUDE.md"),Y="";try{Y=X(V,"utf8")}catch{}if(!/@AGENTS\.md/.test(Y))x(V,`${Y?`${Y.trim()}
|
|
8
8
|
|
|
9
9
|
`:""}@AGENTS.md
|
|
10
|
-
`)}function
|
|
11
|
-
`),{path:z,added:!0}}function
|
|
12
|
-
`)}}catch{}let V=!1,Y=$(q,"AGENTS.md");try{let Z=X(Y,"utf8"),U=new RegExp(`\\n?${
|
|
10
|
+
`)}function hq(q){let z=$(q,".mcp.json"),J={};try{J=JSON.parse(X(z,"utf8"))}catch{}if(J.mcpServers=J.mcpServers??{},J.mcpServers.beacon)return{path:z,added:!1};return J.mcpServers.beacon={command:"beacon",args:["mcp"]},x(z,JSON.stringify(J,null,2)+`
|
|
11
|
+
`),{path:z,added:!0}}function kq(q){let z=$(q,".mcp.json"),J=!1;try{J=!!JSON.parse(X(z,"utf8")).mcpServers?.beacon}catch{}let Q=!1;try{Q=X($(q,"AGENTS.md"),"utf8").includes(C)}catch{}let V=!1;try{V=/@AGENTS\.md/.test(X($(q,"CLAUDE.md"),"utf8"))}catch{}return{repo:q,mcpRegistered:J,agentsMdBlock:Q,claudeMdImport:V,skills:{"beacon-init":H($(q,".claude","skills","beacon-init","SKILL.md")),"beacon-refresh":H($(q,".claude","skills","beacon-refresh","SKILL.md"))},codexSkills:{"beacon-init":H($(q,".agents","skills","beacon-init","SKILL.md")),"beacon-refresh":H($(q,".agents","skills","beacon-refresh","SKILL.md"))}}}function _q(q){let z=[];for(let Z of["beacon-init","beacon-refresh","beacon-db-design"]){let U=$(q,".claude","skills",Z);if(H(U))G(U,{recursive:!0,force:!0}),z.push(Z)}for(let Z of["beacon-init","beacon-refresh"]){let U=$(q,".agents","skills",Z);if(H(U))G(U,{recursive:!0,force:!0}),z.push(`codex:${Z}`)}let J=!1,Q=$(q,".mcp.json");try{let Z=JSON.parse(X(Q,"utf8"));if(Z.mcpServers?.beacon){if(delete Z.mcpServers.beacon,J=!0,Z.mcpServers&&Object.keys(Z.mcpServers).length===0)delete Z.mcpServers;if(Object.keys(Z).length===0)G(Q,{force:!0});else x(Q,JSON.stringify(Z,null,2)+`
|
|
12
|
+
`)}}catch{}let V=!1,Y=$(q,"AGENTS.md");try{let Z=X(Y,"utf8"),U=new RegExp(`\\n?${C}[\\s\\S]*?${d}\\n?`);if(U.test(Z)){let a=Z.replace(U,`
|
|
13
13
|
`).replace(/\n{3,}/g,`
|
|
14
14
|
|
|
15
|
-
`).trimStart();x(Y,
|
|
16
|
-
`)?
|
|
17
|
-
`),V=!0}}catch{}let P=!1,W=$(q,"CLAUDE.md");try{let Z=X(W,"utf8"),U=Z.replace(/^[ \t]*@AGENTS\.md[ \t]*\n?/m,"");if(U!==Z){if(!U.trim())
|
|
15
|
+
`).trimStart();x(Y,a.endsWith(`
|
|
16
|
+
`)?a:`${a}
|
|
17
|
+
`),V=!0}}catch{}let P=!1,W=$(q,"CLAUDE.md");try{let Z=X(W,"utf8"),U=Z.replace(/^[ \t]*@AGENTS\.md[ \t]*\n?/m,"");if(U!==Z){if(!U.trim())G(W,{force:!0});else x(W,U);P=!0}}catch{}return{skillsRemoved:z,mcpUnregistered:J,agentsBlockRemoved:V,claudeImportRemoved:P}}var t=`---
|
|
18
18
|
name: beacon-init
|
|
19
19
|
description: Read this repository and map its architecture, schema, and roadmap into Beacon (the local visual planning panel). Use when the user runs /beacon-init, asks to "set up Beacon for this repo", or asks to initialize/bootstrap Beacon's map of this codebase.
|
|
20
20
|
---
|
|
@@ -51,7 +51,7 @@ A single \`beacon_init_persist\` MCP tool call with:
|
|
|
51
51
|
If \`beacon_init_persist\` isn't available, the Beacon panel isn't running in this repo. Tell the user to run \`beacon\` here first, then re-invoke /beacon-init.
|
|
52
52
|
|
|
53
53
|
After the tool returns, tell the user the counts (components / roadmap / tables / endpoints) and point them at the running Beacon panel.
|
|
54
|
-
`,
|
|
54
|
+
`,c=`---
|
|
55
55
|
name: beacon-refresh
|
|
56
56
|
description: Re-survey the repo and update Beacon's architecture / schema / endpoints map after /beacon-init was already run \u2014 picks up new components, removed ones, schema changes, and new routes. Use when the user runs /beacon-refresh or asks to "refresh", "update", "re-sync", or "bring Beacon up to date" with the current code.
|
|
57
57
|
---
|
|
@@ -140,7 +140,7 @@ If it returns feedback, revise and call it again.
|
|
|
140
140
|
If \`beacon_present_plan\` isn't available, the panel isn't wired here \u2014 fall back to ExitPlanMode
|
|
141
141
|
with the same \`\`\`beacon block (Claude Code only; Codex has no ExitPlanMode), or tell the user to
|
|
142
142
|
run \`beacon\` in this repo once.
|
|
143
|
-
`,
|
|
143
|
+
`,Aq,C="<!-- beacon:workflow:start -->",d="<!-- beacon:workflow:end -->",Wq;var r=b(()=>{Aq=[{name:"beacon-init",body:()=>t},{name:"beacon-refresh",body:()=>c}];Wq=`${C}
|
|
144
144
|
## Beacon \u2014 feature workflow
|
|
145
145
|
|
|
146
146
|
This project uses Beacon (a local planning/visualization panel; run \`beacon\` to open it). When you start work on a FEATURE \u2014 whether referenced via an \`@beacon:feature://\u2026\` mention, an \`@beacon:note://\u2026\` note the user wrote in the Notes panel (treat its checkbox \`- [ ]\` todos as subtasks and order features by their dependencies), or just described in chat \u2014 follow these steps in order:
|
|
@@ -194,31 +194,18 @@ Register them all in that single batched call. If a plan added five features, th
|
|
|
194
194
|
If the feature added or materially changed a REAL architectural component (a subsystem \u2014 NOT a file), also pass \`architecture: [{ title, domain, role, \u2026 }]\` so the Architecture map stays accurate. It upserts curated components by title; never list files as components.
|
|
195
195
|
|
|
196
196
|
Pull raw planning data anytime with \`beacon_entities\` (features / architecture / tables / endpoints).
|
|
197
|
-
${
|
|
198
|
-
`)}function
|
|
197
|
+
${d}`});import{existsSync as xq,mkdirSync as s,readFileSync as M,rmSync as Lq,writeFileSync as F}from"fs";import{dirname as Xq,join as K}from"path";function l(q){try{return JSON.parse(M(q,"utf8"))}catch{return{}}}function wq(q,z){s(Xq(q),{recursive:!0}),F(q,JSON.stringify(z,null,2)+`
|
|
198
|
+
`)}function R(q,z){let J=l(q);J.hooks=J.hooks??{},J.hooks[z.event]=J.hooks[z.event]??[];let Q=J.hooks[z.event];if(Q.some((Y)=>Y.matcher===z.matcher&&Y.hooks?.some((P)=>P.command===z.command)))return!1;return Q.push({matcher:z.matcher,hooks:[{type:"command",command:z.command}]}),wq(q,J),!0}function I(q,z){return(l(q).hooks?.[z.event]??[]).some((V)=>V.hooks?.some((Y)=>Y.command===z.command))}function E(q,z){let J=l(q),Q=J.hooks?.[z.event];if(!Q)return!1;let V=!1,Y=Q.map((P)=>{let W=P.hooks?.length??0,Z=(P.hooks??[]).filter((U)=>U.command!==z.command);if(Z.length!==W)V=!0;return{...P,hooks:Z}}).filter((P)=>(P.hooks??[]).length>0);if(!V)return!1;if(Y.length)J.hooks[z.event]=Y;else delete J.hooks[z.event];if(J.hooks&&Object.keys(J.hooks).length===0)delete J.hooks;return wq(q,J),!0}function y(q,z,J,Q){let V=`${z}
|
|
199
199
|
${Q.trim()}
|
|
200
200
|
${J}`,Y="";try{Y=M(q,"utf8")}catch{}let P=new RegExp(`${z}[\\s\\S]*?${J}`);Y=P.test(Y)?Y.replace(P,V):Y.trim()?`${Y.trim()}
|
|
201
201
|
|
|
202
202
|
${V}
|
|
203
203
|
`:`${V}
|
|
204
|
-
`,
|
|
204
|
+
`,s(Xq(q),{recursive:!0}),F(q,Y.endsWith(`
|
|
205
205
|
`)?Y:`${Y}
|
|
206
|
-
`)}function
|
|
206
|
+
`)}function v(q,z){try{return M(q,"utf8").includes(z)}catch{return!1}}function A(q,z,J){let Q="";try{Q=M(q,"utf8")}catch{return!1}let V=new RegExp(`${z}[\\s\\S]*?${J}\\n?`);if(!V.test(Q))return!1;let Y=Q.replace(V,"").replace(/\n{3,}/g,`
|
|
207
207
|
|
|
208
|
-
`).trimStart();return F(q,Y),!0}function
|
|
209
|
-
`)?`
|
|
210
|
-
`:`
|
|
211
|
-
|
|
212
|
-
`,Q=q+J+nq;if(N(Q)?.mcp_servers?.beacon?.command!=="beacon")return{added:!1,error:`could not safely append [mcp_servers.beacon] \u2014 ${u}`};return i(v(),Q),{added:!0}}function Gq(){let q="";try{q=L(v(),"utf8")}catch{return{removed:!1}}let z=q.split(`
|
|
213
|
-
`),J=z.indexOf(Bq);if(J===-1)return{removed:!1,skipped:zq()};let Q=z.indexOf(uq,J);if(Q===-1)return{removed:!1,skipped:!0};z.splice(J,Q-J+1);let V=z.join(`
|
|
214
|
-
`).replace(/\n{3,}/g,`
|
|
215
|
-
|
|
216
|
-
`).replace(/^\n+/,"");if(N(V)===null)return{removed:!1,skipped:!0};return i(v(),V),{removed:!0}}async function sq(){let{INIT_SKILL:q,REFRESH_SKILL:z,PLAN_SKILL:J}=await Promise.resolve().then(() => (n(),d)),Q={"beacon-init":q,"beacon-refresh":z,"beacon-plan":J},V=[];for(let Z of w){if(!B(h(),Z))V.push(Z);y(h(),Z,Q[Z])}let Y=0;for(let Z of _)if(T(qq(),{event:Z.event,matcher:Z.matcher,command:Z.command}))Y++;let P=j(D(),k);E(D(),k,gq,Jq);let W=Nq();return{skillsAdded:V,hooksAdded:Y,agentsMdBlockTouched:!P,mcp:W}}function lq(){let q={};for(let J of w)q[J]=B(h(),J);let z={};for(let J of _)z[J.event]=R(qq(),{event:J.event,command:J.command});return{detected:jq(),skills:q,hooks:z,agentsMdBlock:j(D(),k),mcp:zq()}}function iq(){let q=[];for(let V of w)if(O(h(),V))q.push(V);let z=0;for(let V of _)if(I(qq(),{event:V.event,command:V.command}))z++;let J=A(D(),k,gq),Q=Gq();return{skillsRemoved:q,hooksRemoved:z,agentsMdBlockRemoved:J,mcpRemoved:Q.removed,mcpSkipped:Q.skipped}}var e=()=>G(vq(),".codex"),qq=()=>G(e(),"hooks.json"),v=()=>G(e(),"config.toml"),D=()=>G(e(),"AGENTS.md"),h=()=>G(vq(),".agents","skills"),k="<!-- beacon:global:start -->",gq="<!-- beacon:global:end -->",_,o,Bq="# beacon:start (managed by Beacon \u2014 `beacon uninstall` removes this block)",uq="# beacon:end",nq,u="add it manually: codex mcp add beacon -- beacon mcp";var Kq=g(()=>{l();Hq();fq();_=[{event:"PostToolUse",matcher:"apply_patch",command:"beacon hook",description:"Report file edits to Beacon's active feature so the map stays fresh."},{event:"UserPromptSubmit",matcher:"*",command:"beacon prompt",description:"On feature-y prompts in a Beacon-wired repo, remind the agent to run the context\u2192propose\u2192describe loop (no-op otherwise)."},{event:"Stop",matcher:"*",command:"beacon stop-hook",description:"When the agent ends a turn asking for plan approval in prose, nudge it to present the plan on Beacon's /plan canvas."}];nq=`${Bq}
|
|
217
|
-
[mcp_servers.beacon]
|
|
218
|
-
command = "beacon"
|
|
219
|
-
args = ["mcp"]
|
|
220
|
-
${uq}
|
|
221
|
-
`});import{existsSync as oq}from"fs";import{homedir as eq}from"os";import{join as m}from"path";function qz(){return process.env.HOME||process.env.USERPROFILE||eq()}function zz(q,z){return y(Qq(),q,z)}function Mq(q){return B(Qq(),q)}function Jz(q){return O(Qq(),q)}function Qz(q){return T(Vq(),q)}function Vz(q){return R(Vq(),q)}function Yz(q){return I(Vq(),q)}function Zz(q){E(Yq(),Zq,Cq,q)}function Fq(){return j(Yq(),Zq)}function $z(){return A(Yq(),Zq,Cq)}function Tz(){let q={};for(let J of w)q[J]=Mq(J);let z={};for(let J of $q)z[J.event]=Vz({event:J.event,command:J.command});return{homeExists:oq(p()),skills:q,hooks:z,claudeMdBlock:Fq()}}async function Pz(){let{INIT_SKILL:q,REFRESH_SKILL:z,PLAN_SKILL:J}=await Promise.resolve().then(() => (n(),d)),Q={"beacon-init":q,"beacon-refresh":z,"beacon-plan":J},V=[];for(let W of w){if(!Mq(W))V.push(W);zz(W,Q[W])}let Y=0;for(let W of $q)if(Qz({event:W.event,matcher:W.matcher,command:W.command}))Y++;let P=Fq();return Zz(Jq),{skillsAdded:V,hooksAdded:Y,claudeMdBlockTouched:!P}}async function Rz(){let q;try{q={ok:!0,...await Pz()}}catch(z){q={ok:!1,error:z instanceof Error?z.message:String(z),skillsAdded:[],hooksAdded:0,claudeMdBlockTouched:!1}}try{let z=await Promise.resolve().then(() => (Kq(),bq));if(z.codexDetected())q.codex={ok:!0,...await z.setupCodexAssets()}}catch(z){q.codex={ok:!1,error:z instanceof Error?z.message:String(z),skillsAdded:[],hooksAdded:0,agentsMdBlockTouched:!1,mcp:{added:!1}}}return q}function Iz(){let q=[];for(let Q of w)if(Jz(Q))q.push(Q);let z=0;for(let Q of $q)if(Yz(Q))z++;let J=$z();return{skillsRemoved:q,hooksRemoved:z,claudeMdBlockRemoved:J}}var p=()=>m(qz(),".claude"),Qq=()=>m(p(),"skills"),Vq=()=>m(p(),"settings.json"),Yq=()=>m(p(),"CLAUDE.md"),Zq="<!-- beacon:global:start -->",Cq="<!-- beacon:global:end -->",w,$q,Jq=`## Beacon (visual planning panel)
|
|
208
|
+
`).trimStart();return F(q,Y),!0}function D(q,z,J){let Q=K(q,z);s(Q,{recursive:!0});let V=K(Q,"SKILL.md");return F(V,J),V}function j(q,z){return xq(K(q,z,"SKILL.md"))}function O(q,z){let J=K(q,z);if(!xq(J))return!1;return Lq(J,{recursive:!0,force:!0}),!0}var w,T=`## Beacon (visual planning panel)
|
|
222
209
|
|
|
223
210
|
This machine has Beacon installed \u2014 a local visual planning surface for the terminal-side
|
|
224
211
|
agent. Beacon proposes feature plans (roadmap features + DB schema + endpoints) via MCP,
|
|
@@ -239,4 +226,17 @@ the user reviews on a canvas at /plan, and feedback flows back as the next round
|
|
|
239
226
|
Feedback bundles inline annotations on the markdown PLUS any edits the user made directly
|
|
240
227
|
on the /map and /db boards (added features, attached subtasks, edited columns, new
|
|
241
228
|
endpoints). Treat board edits as the user's revision intent \u2014 re-propose matching them
|
|
242
|
-
verbatim. Do NOT implement until the tool returns approval.`;var
|
|
229
|
+
verbatim. Do NOT implement until the tool returns approval.`;var i=b(()=>{w=["beacon-init","beacon-refresh","beacon-plan"]});import{mkdirSync as mq,renameSync as pq,rmSync as Sq,writeFileSync as aq}from"fs";import{dirname as tq}from"path";function o(q,z){mq(tq(q),{recursive:!0});let J=`${q}.tmp`;try{aq(J,z),pq(J,q)}catch(Q){throw Sq(J,{force:!0}),Q}}var Hq=()=>{};var Gq={};Pq(Gq,{setupCodexAssets:()=>rq,removeCodexMcp:()=>bq,removeCodexArtifacts:()=>lq,hasCodexMcp:()=>Jq,ensureCodexMcp:()=>Nq,codexMcpProblem:()=>nq,codexDetected:()=>jq,auditCodex:()=>sq,CODEX_HOOKS:()=>m});import{readFileSync as L}from"fs";import{homedir as cq}from"os";import{join as N}from"path";function gq(){return process.env.HOME||process.env.USERPROFILE||cq()}function jq(){if(process.env.BEACON_CODEX==="1")return!0;if(process.env.BEACON_CODEX==="0")return!1;if(e===void 0)e=Bun.which("codex")!==null;return e}function u(q){try{return Bun.TOML.parse(q)}catch{return null}}function Jq(){try{return Boolean(u(L(g(),"utf8"))?.mcp_servers?.beacon)}catch{return!1}}function nq(){let q="";try{q=L(g(),"utf8")}catch{return null}let z=u(q);if(!z)return`~/.codex/config.toml does not parse \u2014 ${B}`;if(z.mcp_servers?.beacon)return null;if(/^\s*mcp_servers\s*=/m.test(q))return`mcp_servers is an inline table \u2014 ${B}`;return null}function Nq(){let q="",z=!1;try{q=L(g(),"utf8"),z=!0}catch{}if(z){let Y=u(q);if(!Y)return{added:!1,error:`~/.codex/config.toml does not parse \u2014 ${B}`};if(Y.mcp_servers?.beacon)return{added:!1};if(/^\s*mcp_servers\s*=/m.test(q))return{added:!1,error:`mcp_servers is an inline table \u2014 ${B}`}}let J=!q?"":q.endsWith(`
|
|
230
|
+
`)?`
|
|
231
|
+
`:`
|
|
232
|
+
|
|
233
|
+
`,Q=q+J+dq;if(u(Q)?.mcp_servers?.beacon?.command!=="beacon")return{added:!1,error:`could not safely append [mcp_servers.beacon] \u2014 ${B}`};return o(g(),Q),{added:!0}}function bq(){let q="";try{q=L(g(),"utf8")}catch{return{removed:!1}}let z=q.split(`
|
|
234
|
+
`),J=z.indexOf(Bq);if(J===-1)return{removed:!1,skipped:Jq()};let Q=z.indexOf(uq,J);if(Q===-1)return{removed:!1,skipped:!0};z.splice(J,Q-J+1);let V=z.join(`
|
|
235
|
+
`).replace(/\n{3,}/g,`
|
|
236
|
+
|
|
237
|
+
`).replace(/^\n+/,"");if(u(V)===null)return{removed:!1,skipped:!0};return o(g(),V),{removed:!0}}async function rq(){let{INIT_SKILL:q,REFRESH_SKILL:z,PLAN_SKILL:J}=await Promise.resolve().then(() => (r(),n)),Q={"beacon-init":q,"beacon-refresh":z,"beacon-plan":J},V=[];for(let Z of w){if(!j(k(),Z))V.push(Z);D(k(),Z,Q[Z])}let Y=0;for(let Z of m)if(R(zq(),{event:Z.event,matcher:Z.matcher,command:Z.command}))Y++;let P=v(h(),_);y(h(),_,vq,T);let W=Nq();return{skillsAdded:V,hooksAdded:Y,agentsMdBlockTouched:!P,mcp:W}}function sq(){let q={};for(let J of w)q[J]=j(k(),J);let z={};for(let J of m)z[J.event]=I(zq(),{event:J.event,command:J.command});return{detected:jq(),skills:q,hooks:z,agentsMdBlock:v(h(),_),mcp:Jq()}}function lq(){let q=[];for(let V of w)if(O(k(),V))q.push(V);let z=0;for(let V of m)if(E(zq(),{event:V.event,command:V.command}))z++;let J=A(h(),_,vq),Q=bq();return{skillsRemoved:q,hooksRemoved:z,agentsMdBlockRemoved:J,mcpRemoved:Q.removed,mcpSkipped:Q.skipped}}var qq=()=>N(gq(),".codex"),zq=()=>N(qq(),"hooks.json"),g=()=>N(qq(),"config.toml"),h=()=>N(qq(),"AGENTS.md"),k=()=>N(gq(),".agents","skills"),_="<!-- beacon:global:start -->",vq="<!-- beacon:global:end -->",m,e,Bq="# beacon:start (managed by Beacon \u2014 `beacon uninstall` removes this block)",uq="# beacon:end",dq,B="add it manually: codex mcp add beacon -- beacon mcp";var fq=b(()=>{i();Hq();m=[{event:"PostToolUse",matcher:"apply_patch",command:"beacon hook",description:"Report file edits to Beacon's active feature so the map stays fresh."},{event:"UserPromptSubmit",matcher:"*",command:"beacon prompt",description:"On feature-y prompts in a Beacon-wired repo, remind the agent to run the context\u2192propose\u2192describe loop (no-op otherwise)."},{event:"Stop",matcher:"*",command:"beacon stop-hook",description:"When the agent ends a turn asking for plan approval in prose, nudge it to present the plan on Beacon's /plan canvas."}];dq=`${Bq}
|
|
238
|
+
[mcp_servers.beacon]
|
|
239
|
+
command = "beacon"
|
|
240
|
+
args = ["mcp"]
|
|
241
|
+
${uq}
|
|
242
|
+
`});i();import{existsSync as iq}from"fs";import{homedir as oq}from"os";import{join as p}from"path";function eq(){return process.env.HOME||process.env.USERPROFILE||oq()}var S=()=>p(eq(),".claude"),Qq=()=>p(S(),"skills"),Vq=()=>p(S(),"settings.json"),Yq=()=>p(S(),"CLAUDE.md"),Zq="<!-- beacon:global:start -->",Cq="<!-- beacon:global:end -->";var qz=T,$q=[{event:"PostToolUse",matcher:"Edit|Write|MultiEdit",command:"beacon hook",description:"Report file edits to Beacon's active feature so the map stays fresh."},{event:"PermissionRequest",matcher:"ExitPlanMode",command:"beacon plan",description:"Pipe the agent's plan markdown into Beacon's /plan canvas for review."},{event:"UserPromptSubmit",matcher:"*",command:"beacon prompt",description:"On feature-y prompts in a Beacon-wired repo, remind the agent to run the context\u2192propose\u2192describe loop (no-op otherwise)."},{event:"Stop",matcher:"*",command:"beacon stop-hook",description:"When the agent ends a turn asking for plan approval in prose (instead of presenting it), nudge it to present the plan on Beacon's /plan canvas. Bounded by stop_hook_active \u2014 at most one nudge."}];function zz(q,z){return D(Qq(),q,z)}function Kq(q){return j(Qq(),q)}function Jz(q){return O(Qq(),q)}function Qz(q){return R(Vq(),q)}function Vz(q){return I(Vq(),q)}function Yz(q){return E(Vq(),q)}function Zz(q){y(Yq(),Zq,Cq,q)}function Mq(){return v(Yq(),Zq)}function $z(){return A(Yq(),Zq,Cq)}function Fz(){let q={};for(let J of w)q[J]=Kq(J);let z={};for(let J of $q)z[J.event]=Vz({event:J.event,command:J.command});return{homeExists:iq(S()),skills:q,hooks:z,claudeMdBlock:Mq()}}async function Pz(){let{INIT_SKILL:q,REFRESH_SKILL:z,PLAN_SKILL:J}=await Promise.resolve().then(() => (r(),n)),Q={"beacon-init":q,"beacon-refresh":z,"beacon-plan":J},V=[];for(let W of w){if(!Kq(W))V.push(W);zz(W,Q[W])}let Y=0;for(let W of $q)if(Qz({event:W.event,matcher:W.matcher,command:W.command}))Y++;let P=Mq();return Zz(qz),{skillsAdded:V,hooksAdded:Y,claudeMdBlockTouched:!P}}async function Tz(){let q;try{q={ok:!0,...await Pz()}}catch(z){q={ok:!1,error:z instanceof Error?z.message:String(z),skillsAdded:[],hooksAdded:0,claudeMdBlockTouched:!1}}try{let z=await Promise.resolve().then(() => (fq(),Gq));if(z.codexDetected())q.codex={ok:!0,...await z.setupCodexAssets()}}catch(z){q.codex={ok:!1,error:z instanceof Error?z.message:String(z),skillsAdded:[],hooksAdded:0,agentsMdBlockTouched:!1,mcp:{added:!1}}}return q}function Rz(){let q=[];for(let Q of w)if(Jz(Q))q.push(Q);let z=0;for(let Q of $q)if(Yz(Q))z++;let J=$z();return{skillsRemoved:q,hooksRemoved:z,claudeMdBlockRemoved:J}}export{Pz as setupGlobalAssets,Tz as selfHealGlobal,Jz as removeGlobalSkill,Yz as removeGlobalHook,$z as removeGlobalClaudeMdBlock,Rz as removeBeaconArtifacts,Kq as isGlobalSkillInstalled,zz as installGlobalSkill,Vz as hasGlobalHook,Mq as hasGlobalClaudeMdBlock,Qz as ensureGlobalHook,Zz as ensureGlobalClaudeMdBlock,Fz as auditGlobal,w as GLOBAL_SKILLS,$q as GLOBAL_HOOKS,qz as GLOBAL_CLAUDE_MD_BLOCK};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.id=333,exports.ids=[333],exports.modules={2483:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,95547,23))},7572:(a,b,c)=>{"use strict";c.d(b,{MainRegion:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call MainRegion() from the server but MainRegion is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/wenzorithelly/Desktop/beacon/components/ai/main-region.tsx","MainRegion")},7667:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>e});var d=c(88868);let e=async a=>[{type:"image/png",sizes:"180x180",url:(0,d.fillMetadataSegment)(".",await a.params,"apple-icon.png",!0)+"?f9d64651576bd776"}]},10836:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,81921,23)),Promise.resolve().then(c.t.bind(c,60440,23)),Promise.resolve().then(c.t.bind(c,84342,23)),Promise.resolve().then(c.t.bind(c,82265,23)),Promise.resolve().then(c.t.bind(c,35421,23)),Promise.resolve().then(c.t.bind(c,61335,23)),Promise.resolve().then(c.t.bind(c,70664,23)),Promise.resolve().then(c.bind(c,74661))},17017:(a,b,c)=>{"use strict";c.d(b,{UpdateBanner:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call UpdateBanner() from the server but UpdateBanner is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/wenzorithelly/Desktop/beacon/components/update-banner.tsx","UpdateBanner")},18718:(a,b,c)=>{"use strict";c.d(b,{MainRegion:()=>e});var d=c(48249);function e({children:a}){return(0,d.jsx)("main",{className:"flex flex-1 flex-col",children:a})}},23704:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>v,metadata:()=>u});var d=c(5735),e=c(1382),f=c.n(e),g=c(28205),h=c.n(g);c(82704);var i=c(77946),j=c(60867),k=c(7572),l=c(48136),m=c(81974),n=c(71412),o=c(30818),p=c(17017),q=c(45301),r=c(73024),s=c(76760);let t=null,u={title:"Beacon",description:"A local control panel for the repository you're working in"};function v({children:a}){return(0,d.jsx)("html",{lang:"en",className:`dark ${f().variable} ${h().variable} h-full antialiased`,children:(0,d.jsx)("body",{className:"min-h-full flex flex-col bg-background text-foreground",children:"1"===process.env.BEACON_PUBLIC||"1"===process.env.VERCEL?a:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.LiveRefresh,{}),(0,d.jsxs)(n.NotesProvider,{children:[(0,d.jsxs)(l.PlanProvider,{children:[(0,d.jsx)(i.TopNav,{repo:(0,q.Qq)()}),(0,d.jsx)(k.MainRegion,{children:a}),(0,d.jsx)(m.PlanBar,{})]}),(0,d.jsx)(o.NotesDrawer,{})]}),(0,d.jsx)(p.UpdateBanner,{currentVersion:function(){if(null!==t)return t;let a="0.0.0";try{let b=JSON.parse((0,r.readFileSync)((0,s.join)(process.cwd(),"package.json"),"utf8"));"string"==typeof b.version&&(a=b.version)}catch{}return t=a,a}()})]})})})}},30818:(a,b,c)=>{"use strict";c.d(b,{NotesDrawer:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call NotesDrawer() from the server but NotesDrawer is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/wenzorithelly/Desktop/beacon/components/notes/notes-drawer.tsx","NotesDrawer")},33161:(a,b,c)=>{"use strict";c.d(b,{LiveRefresh:()=>e}),c(67484);var d=c(19099);function e(){return(0,d.useRouter)(),null}},33191:(a,b,c)=>{"use strict";c.d(b,{cn:()=>f});var d=c(99314),e=c(96862);function f(...a){return(0,e.QP)((0,d.$)(a))}},38344:(a,b,c)=>{Promise.resolve().then(c.bind(c,18718)),Promise.resolve().then(c.bind(c,33161)),Promise.resolve().then(c.bind(c,69370)),Promise.resolve().then(c.bind(c,42337)),Promise.resolve().then(c.bind(c,41616)),Promise.resolve().then(c.bind(c,81166)),Promise.resolve().then(c.bind(c,41164)),Promise.resolve().then(c.bind(c,59953))},41164:(a,b,c)=>{"use strict";c.d(b,{TopNav:()=>q});var d=c(48249),e=c(2116),f=c.n(e),g=c(19099),h=c(92361),i=c(79291),j=c(67484),k=c(85271),l=c(55056),m=c(33191);function n({fallback:a}){let b=(0,g.useRouter)(),[c,e]=(0,j.useState)([]),[f,h]=(0,j.useState)(null);if(0===c.length)return a?(0,d.jsxs)("span",{className:"font-mono text-xs text-muted-foreground",children:["\xb7 ",a]}):null;async function i(a){h(a),document.cookie=`beacon_ws=${a}; Path=/; Max-Age=31536000; SameSite=Lax`,await Promise.race([fetch("/api/workspace",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:a}),signal:AbortSignal.timeout(8e3)}).catch(()=>{}),new Promise(a=>setTimeout(a,2500))]),b.refresh()}let o=c.find(a=>a.id===f);return(0,d.jsxs)(l.l6,{value:f??"",onValueChange:a=>a&&i(a),children:[(0,d.jsxs)(l.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,d.jsx)(k.A,{className:"size-3.5 shrink-0 text-muted-foreground"}),(0,d.jsx)(l.yv,{children:()=>o?.name??"Project"})]}),(0,d.jsxs)(l.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,d.jsx)("p",{className:"px-2 pt-1 pb-1.5 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground/70",children:"Workspace"}),c.map(a=>{var b,c;let e,g=a.id===f;return(0,d.jsx)(l.eb,{value:a.id,className:(0,m.cn)("gap-2.5 rounded-lg py-1.5 pr-8 pl-1.5 transition-colors",g&&"bg-white/[0.05]"),children:(0,d.jsxs)("span",{className:"flex items-center gap-2.5",children:[(0,d.jsx)("span",{className:(0,m.cn)("flex size-7 shrink-0 items-center justify-center rounded-md border",g?"border-sky-400/30 bg-sky-400/10 text-sky-300":"border-white/10 bg-white/[0.03] text-muted-foreground"),children:(0,d.jsx)(k.A,{className:"size-3.5"})}),(0,d.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,d.jsx)("span",{className:"truncate text-[13px] font-medium leading-tight text-foreground",children:a.name}),(0,d.jsx)("span",{className:"truncate font-mono text-[10px] leading-tight text-muted-foreground",children:(b=a.path,c=a.name,(e=b.replace(/^\/(Users|home)\/[^/]+/,"~").split("/").filter(Boolean))[e.length-1]===c&&e.pop(),(e.length>3?[e[0],"…",e[e.length-1]]:e).join("/")||"~")})]})]})},a.id)})]})]})}var o=c(69370);let p=[{href:"/plan",label:"Plans"},{href:"/map",label:"Map"},{href:"/settings",label:"Settings"}];function q({repo:a}){let b=(0,g.usePathname)(),{toggle:c,open:e}=(0,o.b)();return(0,d.jsx)("header",{className:"pointer-events-none fixed left-3 top-3 z-30",children:(0,d.jsxs)("div",{className:"glass pointer-events-auto flex h-10 items-center gap-1 rounded-full pl-3 pr-1.5",children:[(0,d.jsxs)(f(),{href:"/",className:"mr-1 flex items-center gap-2 text-sm font-semibold tracking-tight",children:[(0,d.jsx)(i._,{size:18,className:"text-foreground"}),"Beacon"]}),(0,d.jsx)("span",{"aria-hidden":!0,className:"mx-1 h-5 w-px bg-white/10"}),(0,d.jsx)(n,{fallback:a}),(0,d.jsx)("span",{"aria-hidden":!0,className:"mx-1 h-5 w-px bg-white/10"}),(0,d.jsx)("nav",{className:"flex items-center gap-0.5 text-sm",children:p.map(a=>{let c=b===a.href||b.startsWith(a.href+"/");return(0,d.jsx)(f(),{href:a.href,className:(0,m.cn)("rounded-full px-3 py-1 text-[13px] tracking-tight transition-colors",c?"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:a.label},a.href)})}),(0,d.jsx)("span",{"aria-hidden":!0,className:"mx-1 h-5 w-px bg-white/10"}),(0,d.jsx)("button",{type:"button",onClick:c,"aria-pressed":e,"aria-label":"Notes",title:"Notes",className:(0,m.cn)("flex items-center justify-center rounded-full p-1.5 transition-colors",e?"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,d.jsx)(h.A,{className:"size-4"})})]})})}},41616:(a,b,c)=>{"use strict";c.d(b,{PlanBar:()=>l});var d=c(48249),e=c(2116),f=c.n(e),g=c(19099),h=c(47352),i=c(49783),j=c(57684),k=c(81166);function l(){let{status:a,discard:b}=(0,k.j)(),c=(0,g.usePathname)();return a.pending&&"/plan"!==c?(0,d.jsx)("div",{className:"pointer-events-none fixed inset-x-0 top-14 z-40 flex justify-center px-2",children:(0,d.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,d.jsx)(h.A,{className:"size-3.5 shrink-0 text-emerald-300"}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"truncate text-[12px] leading-tight text-foreground",children:[(0,d.jsx)("span",{className:"text-emerald-300/80",children:"Plan ready \xb7 "}),a.description||"(no description)"]}),(0,d.jsxs)("div",{className:"text-[10px] leading-tight text-muted-foreground",children:[a.features," feature(s) \xb7 ",a.tables," table(s) \xb7 ",a.endpoints," ","endpoint(s)"]})]}),(0,d.jsxs)(f(),{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,d.jsx)(i.A,{className:"size-3"})," Open plan"]}),(0,d.jsxs)("button",{onClick:b,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,d.jsx)(j.A,{className:"size-3"})," Discard"]})]})}):null}},42337:(a,b,c)=>{"use strict";c.d(b,{NotesDrawer:()=>H});var d=c(48249),e=c(67484),f=c(92361),g=c(69473),h=c(45535),i=c(39470),j=c(52066),k=c(57684),l=c(48779),m=c(13191),n=c(18252),o=c(92329),p=c(82359),q=c(99086),r=c(18201),s=c(81965),t=c(47161),u=c(24853),v=c(890),w=c(45348),x=c(69131);let y=w.z.extend({renderMarkdown:(a,b)=>`<u>${b.renderChildren(a)}</u>`}),z=[u.W.configure({underline:!1}),y,v._0,v.L2.configure({nested:!0})],A=new x.db({extensions:z});var B=c(33191);function C({value:a,onChange:b}){let c=(0,m.hG)({extensions:z,content:a?function a(b){if("text"===b.type&&(b.text??"").includes("<u>"))return{type:"__frag",content:function(a){let b,c=a.text??"",d=a.marks??[],e=/<u>([\s\S]*?)<\/u>/g,f=[],g=0;for(;null!==(b=e.exec(c));)b.index>g&&f.push({...a,text:c.slice(g,b.index)}),f.push({type:"text",text:b[1],marks:[...d,{type:"underline"}]}),g=e.lastIndex;return g<c.length&&f.push({...a,text:c.slice(g)}),f.filter(a=>(a.text??"").length>0)}(b)};if(Array.isArray(b.content)){let c=b.content.flatMap(b=>{let c=a(b);return"__frag"===c.type?c.content:[c]});return{...b,content:c}}return b}(A.parse(a)):void 0,immediatelyRender:!1,editorProps:{attributes:{class:"note-prose focus:outline-none"}},onUpdate:({editor:a})=>{var c;return b((c=a.getJSON(),A.serialize(c)))}});return c?(0,d.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,d.jsx)(D,{editor:c}),(0,d.jsx)(m.$Z,{editor:c,className:"min-h-0 flex-1 overflow-y-auto px-1 py-2 text-[14px] leading-relaxed"})]}):null}function D({editor:a}){let[,b]=(0,e.useReducer)(a=>a+1,0),c=()=>a.chain().focus();return(0,d.jsxs)("div",{className:"flex items-center gap-0.5 border-b border-white/10 pb-2",children:[(0,d.jsx)(E,{label:"Bold",active:a.isActive("bold"),onClick:()=>c().toggleBold().run(),children:(0,d.jsx)(n.A,{className:"size-4"})}),(0,d.jsx)(E,{label:"Italic",active:a.isActive("italic"),onClick:()=>c().toggleItalic().run(),children:(0,d.jsx)(o.A,{className:"size-4"})}),(0,d.jsx)(E,{label:"Underline",active:a.isActive("underline"),onClick:()=>c().toggleUnderline().run(),children:(0,d.jsx)(p.A,{className:"size-4"})}),(0,d.jsx)(E,{label:"Strikethrough",active:a.isActive("strike"),onClick:()=>c().toggleStrike().run(),children:(0,d.jsx)(q.A,{className:"size-4"})}),(0,d.jsx)("span",{"aria-hidden":!0,className:"mx-1 h-5 w-px bg-white/10"}),(0,d.jsx)(E,{label:"Checklist",active:a.isActive("taskList"),onClick:()=>c().toggleTaskList().run(),children:(0,d.jsx)(r.A,{className:"size-4"})}),(0,d.jsx)(E,{label:"Bullet list",active:a.isActive("bulletList"),onClick:()=>c().toggleBulletList().run(),children:(0,d.jsx)(s.A,{className:"size-4"})}),(0,d.jsx)(E,{label:"Numbered list",active:a.isActive("orderedList"),onClick:()=>c().toggleOrderedList().run(),children:(0,d.jsx)(t.A,{className:"size-4"})})]})}function E({label:a,active:b,onClick:c,children:e}){return(0,d.jsx)("button",{type:"button","aria-label":a,"aria-pressed":b,title:a,onMouseDown:a=>a.preventDefault(),onClick:c,className:(0,B.cn)("rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground",b&&"bg-white/[0.12] text-foreground"),children:e})}var F=c(69370);function G(a){return[...a].sort((a,b)=>a.pinned!==b.pinned?Number(b.pinned)-Number(a.pinned):b.updatedAt.localeCompare(a.updatedAt))}function H(){let{open:a,close:b}=(0,F.b)(),[c,m]=(0,e.useState)([]),[n,o]=(0,e.useState)(null),p=(0,e.useRef)({}),q=(0,e.useRef)({}),r=(0,e.useCallback)(a=>{clearTimeout(p.current[a]);let b=q.current[a];b&&(delete q.current[a],fetch(`/api/notes/${a}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(b)}).catch(()=>{}))},[]),s=(0,e.useCallback)((a,b)=>{q.current[a]={...q.current[a],...b},clearTimeout(p.current[a]),p.current[a]=setTimeout(()=>r(a),500)},[r]);(0,e.useCallback)(async()=>{try{let a=await fetch("/api/notes",{cache:"no-store"});if(!a.ok)return;let b=await a.json();m(G(b)),o(a=>a??b[0]?.id??null)}catch{}},[]);let t=(0,e.useCallback)(async()=>{let a=await fetch("/api/notes",{method:"POST"}).catch(()=>null);if(!a?.ok)return;let b=await a.json();m(a=>G([b,...a])),o(b.id)},[]),u=(0,e.useCallback)(async a=>{clearTimeout(p.current[a]),delete q.current[a],m(b=>{let c=b.filter(b=>b.id!==a);return o(b=>b===a?c[0]?.id??null:b),c}),await fetch(`/api/notes/${a}`,{method:"DELETE"}).catch(()=>{})},[]),v=(0,e.useCallback)((a,b)=>{m(c=>G(c.map(c=>c.id===a?{...c,...b,updatedAt:new Date().toISOString()}:c))),s(a,b)},[s]),w=(0,e.useCallback)(a=>v(a.id,{pinned:!a.pinned}),[v]),x=c.find(a=>a.id===n)??null;return(0,d.jsx)("div",{"aria-hidden":!a,className:(0,B.cn)("fixed inset-y-0 right-0 z-40 flex transition-transform duration-300 ease-out",a?"translate-x-0":"pointer-events-none translate-x-full"),children:(0,d.jsxs)(l.b,{className:"flex h-full w-[420px] flex-col rounded-l-2xl border-l border-white/10",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 border-b border-white/10 px-3 py-2.5",children:[(0,d.jsx)(f.A,{className:"size-4 text-[var(--accent-2,#ff7a45)]"}),(0,d.jsx)("span",{className:"text-sm font-semibold tracking-tight",children:"Notes"}),(0,d.jsx)("span",{className:"ml-auto"}),(0,d.jsx)("button",{type:"button",onClick:t,"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,d.jsx)(g.A,{className:"size-4"})}),(0,d.jsx)("button",{type:"button",onClick:b,"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,d.jsx)(h.A,{className:"size-4"})})]}),(0,d.jsx)("div",{className:"max-h-44 shrink-0 overflow-y-auto border-b border-white/10 p-1.5",children:0===c.length?(0,d.jsxs)("p",{className:"px-2 py-3 text-[13px] text-muted-foreground",children:["No notes yet. Hit ",(0,d.jsx)("span",{className:"text-foreground",children:"+"})," to start one."]}):c.map(a=>(0,d.jsxs)("div",{className:(0,B.cn)("group flex items-center gap-1 rounded-md px-2 py-1.5 text-[13px]",a.id===n?"bg-white/[0.09] text-foreground":"text-muted-foreground hover:bg-white/[0.04]"),children:[(0,d.jsxs)("button",{type:"button",onClick:()=>o(a.id),className:"min-w-0 flex-1 truncate text-left",children:[a.pinned&&(0,d.jsx)(i.A,{className:"mr-1 inline size-3 -translate-y-px"}),a.title||"Untitled"]}),(0,d.jsx)("button",{type:"button",onClick:()=>w(a),"aria-label":a.pinned?"Unpin":"Pin",title:a.pinned?"Unpin":"Pin",className:"rounded p-1 opacity-0 transition hover:bg-white/[0.08] hover:text-foreground group-hover:opacity-100",children:a.pinned?(0,d.jsx)(j.A,{className:"size-3.5"}):(0,d.jsx)(i.A,{className:"size-3.5"})}),(0,d.jsx)("button",{type:"button",onClick:()=>u(a.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,d.jsx)(k.A,{className:"size-3.5"})})]},a.id))}),x?(0,d.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-2 p-3",children:[(0,d.jsx)("input",{value:x.title,onChange:a=>v(x.id,{title:a.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,d.jsx)(C,{value:x.body,onChange:a=>v(x.id,{body:a})},x.id)]}):(0,d.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,d.jsx)("span",{className:"px-1 text-foreground",children:"@"}),"-mention it in your terminal to turn it into features."]})]})})}},48136:(a,b,c)=>{"use strict";c.d(b,{PlanProvider:()=>e});var d=c(77943);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call PlanProvider() from the server but PlanProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/wenzorithelly/Desktop/beacon/components/plan/plan-context.tsx","PlanProvider");(0,d.registerClientReference)(function(){throw Error("Attempted to call usePlan() from the server but usePlan is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/wenzorithelly/Desktop/beacon/components/plan/plan-context.tsx","usePlan")},48779:(a,b,c)=>{"use strict";c.d(b,{b:()=>f});var d=c(48249);c(67484);var e=c(33191);function f({className:a,children:b,...c}){return(0,d.jsxs)("div",{className:(0,e.cn)("glass relative isolate overflow-hidden",a),...c,children:[(0,d.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,d.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"}}),b]})}},49183:(a,b,c)=>{"use strict";c.d(b,{EO:()=>f,S2:()=>d,W6:()=>e});let d="https://api.github.com/repos/wenzorithelly/beacon/releases/latest",e=(process.env.NEXT_PUBLIC_BEACON_SITE_URL??"https://www.trybeacon.sh").replace(/\/$/,""),f=`curl -fsSL ${e}/install.sh | sh`},55056:(a,b,c)=>{"use strict";c.d(b,{bq:()=>x,eb:()=>z,gC:()=>y,l6:()=>v,yv:()=>w});var d=c(48249);c(67484);var e=c(80336),f=c(11102),g=c(57602),h=c(90586),i=c(13810),j=c(58103),k=c(28879),l=c(90204),m=c(26550),n=c(57859),o=c(56045),p=c(75154),q=c(91464),r=c(33191),s=c(69627),t=c(35471),u=c(85448);let v=e.H;function w({className:a,...b}){return(0,d.jsx)(f.y,{"data-slot":"select-value",className:(0,r.cn)("flex flex-1 text-left",a),...b})}function x({className:a,size:b="default",children:c,...e}){return(0,d.jsxs)(g.b,{"data-slot":"select-trigger","data-size":b,className:(0,r.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",a),...e,children:[c,(0,d.jsx)(h.w,{render:(0,d.jsx)(s.A,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function y({className:a,children:b,side:c="bottom",sideOffset:e=4,align:f="center",alignOffset:g=0,alignItemWithTrigger:h=!0,...m}){return(0,d.jsx)(i.V,{children:(0,d.jsx)(j.l,{side:c,sideOffset:e,align:f,alignOffset:g,alignItemWithTrigger:h,className:"isolate z-50",children:(0,d.jsxs)(k.t,{"data-slot":"select-content","data-align-trigger":h,className:(0,r.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",a),...m,children:[(0,d.jsx)(A,{}),(0,d.jsx)(l.B,{children:b}),(0,d.jsx)(B,{})]})})})}function z({className:a,children:b,...c}){return(0,d.jsxs)(m.e,{"data-slot":"select-item",className:(0,r.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",a),...c,children:[(0,d.jsx)(n.h,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:b}),(0,d.jsx)(o.h,{render:(0,d.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:(0,d.jsx)(t.A,{className:"pointer-events-none"})})]})}function A({className:a,...b}){return(0,d.jsx)(p.w,{"data-slot":"select-scroll-up-button",className:(0,r.cn)("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",a),...b,children:(0,d.jsx)(u.A,{})})}function B({className:a,...b}){return(0,d.jsx)(q.d,{"data-slot":"select-scroll-down-button",className:(0,r.cn)("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",a),...b,children:(0,d.jsx)(s.A,{})})}},59953:(a,b,c)=>{"use strict";c.d(b,{UpdateBanner:()=>k});var d=c(48249),e=c(67484),f=c(95417),g=c(45535),h=c(35471),i=c(20878),j=c(49183);function k({currentVersion:a}){let[b,c]=(0,e.useState)(null),[l,m]=(0,e.useState)(!1);if(!b)return null;let n=async()=>{try{await navigator.clipboard?.writeText(j.EO),m(!0),setTimeout(()=>m(!1),1600)}catch{}};return(0,d.jsx)("div",{className:"pointer-events-none fixed bottom-4 right-4 z-50 flex justify-end",children:(0,d.jsx)("div",{className:"glass pointer-events-auto w-[320px] rounded-xl p-3.5 shadow-xl",children:(0,d.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,d.jsx)(f.A,{className:"mt-0.5 size-4 shrink-0 text-[#ff7a45]"}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsx)("p",{className:"text-[13px] font-semibold tracking-tight text-foreground",children:"New version available"}),(0,d.jsx)("button",{type:"button",onClick:()=>{try{localStorage.setItem("beacon:update-dismissed",b)}catch{}c(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,d.jsx)(g.A,{className:"size-3.5"})})]}),(0,d.jsxs)("p",{className:"mt-0.5 text-[11px] text-muted-foreground",children:[a," →"," ",(0,d.jsx)("span",{className:"text-foreground",children:b.replace(/^v/i,"")})," \xb7 update Beacon"]}),(0,d.jsxs)("button",{type:"button",onClick:n,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,d.jsx)("span",{className:"truncate",children:j.EO}),l?(0,d.jsx)(h.A,{className:"size-3.5 shrink-0 text-[#ff7a45]"}):(0,d.jsx)(i.A,{className:"size-3.5 shrink-0"})]})]})]})})})}},60867:(a,b,c)=>{"use strict";c.d(b,{LiveRefresh:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call LiveRefresh() from the server but LiveRefresh is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/wenzorithelly/Desktop/beacon/components/live-refresh.tsx","LiveRefresh")},61837:(a,b,c)=>{"use strict";function d(){return null}function e(a){return a?{"x-beacon-workspace":a}:{}}function f(a){let b=new URLSearchParams,c=d();for(let[d,e]of(c&&b.set("ws",c),Object.entries(a??{})))b.set(d,e);let e=b.toString();return e?`/plan?${e}`:"/plan"}c.d(b,{X0:()=>d,dh:()=>e,rc:()=>f})},62731:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,81921,23))},69370:(a,b,c)=>{"use strict";c.d(b,{NotesProvider:()=>g,b:()=>h});var d=c(48249),e=c(67484);let f=(0,e.createContext)(null);function g({children:a}){let[b,c]=(0,e.useState)(!1),h=(0,e.useCallback)(()=>c(!0),[]),i=(0,e.useCallback)(()=>c(!1),[]),j=(0,e.useCallback)(()=>c(a=>!a),[]),k=(0,e.useMemo)(()=>({open:b,openDrawer:h,close:i,toggle:j}),[b,h,i,j]);return(0,d.jsx)(f.Provider,{value:k,children:a})}function h(){let a=(0,e.useContext)(f);if(!a)throw Error("useNotes must be used inside NotesProvider");return a}},71412:(a,b,c)=>{"use strict";c.d(b,{NotesProvider:()=>e});var d=c(77943);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call NotesProvider() from the server but NotesProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/wenzorithelly/Desktop/beacon/components/notes/notes-context.tsx","NotesProvider");(0,d.registerClientReference)(function(){throw Error("Attempted to call useNotes() from the server but useNotes is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/wenzorithelly/Desktop/beacon/components/notes/notes-context.tsx","useNotes")},74452:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,95547,23)),Promise.resolve().then(c.t.bind(c,15098,23)),Promise.resolve().then(c.t.bind(c,47644,23)),Promise.resolve().then(c.t.bind(c,33859,23)),Promise.resolve().then(c.t.bind(c,98099,23)),Promise.resolve().then(c.t.bind(c,16237,23)),Promise.resolve().then(c.t.bind(c,98562,23)),Promise.resolve().then(c.t.bind(c,36675,23))},74792:(a,b,c)=>{Promise.resolve().then(c.bind(c,7572)),Promise.resolve().then(c.bind(c,60867)),Promise.resolve().then(c.bind(c,71412)),Promise.resolve().then(c.bind(c,30818)),Promise.resolve().then(c.bind(c,81974)),Promise.resolve().then(c.bind(c,48136)),Promise.resolve().then(c.bind(c,77946)),Promise.resolve().then(c.bind(c,17017))},77946:(a,b,c)=>{"use strict";c.d(b,{TopNav:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call TopNav() from the server but TopNav is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/wenzorithelly/Desktop/beacon/components/top-nav.tsx","TopNav")},79291:(a,b,c)=>{"use strict";c.d(b,{_:()=>e});var d=c(48249);function e({size:a=18,className:b}){return(0,d.jsxs)("svg",{width:a,height:a,viewBox:"11 1.5 74 74",fill:"none",className:b,"aria-hidden":"true",children:[(0,d.jsx)("defs",{children:(0,d.jsxs)("linearGradient",{id:"beacon-mark-beam",x1:"0",y1:"1",x2:"0",y2:"0",children:[(0,d.jsx)("stop",{offset:"0",stopColor:"#ffb27a",stopOpacity:"0.9"}),(0,d.jsx)("stop",{offset:"0.55",stopColor:"#ff7a45",stopOpacity:"0.3"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#ff7a45",stopOpacity:"0"})]})}),(0,d.jsx)("path",{d:"M48 30 L40 4 L56 4 Z",fill:"url(#beacon-mark-beam)"}),(0,d.jsx)("path",{d:"M48 33 L72.5 73 L23.5 73 Z",fill:"currentColor",stroke:"currentColor",strokeWidth:2.4,strokeLinejoin:"round"}),(0,d.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,d.jsx)("circle",{cx:"48",cy:"31",r:"2",fill:"#ffd9c2"})]})}},81166:(a,b,c)=>{"use strict";c.d(b,{PlanProvider:()=>j,j:()=>k});var d=c(48249),e=c(67484),f=c(19099),g=c(61837);let h={pending:!1,proposedAt:0,tables:0,endpoints:0,features:0},i=(0,e.createContext)(null);function j({children:a}){let b=(0,f.useRouter)(),[c,k]=(0,e.useState)(h),l=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/plan",{method:"GET",cache:"no-store",headers:(0,g.dh)((0,g.X0)())});if(!a.ok)return;let b=await a.json();k(b)}catch{}},[]),m=(0,e.useCallback)(async()=>{await fetch("/api/plan",{method:"DELETE",headers:(0,g.dh)((0,g.X0)())}).catch(()=>{}),k(h),b.refresh()},[b]),n=(0,e.useCallback)(async()=>{await fetch("/api/plan/approve",{method:"POST",headers:(0,g.dh)((0,g.X0)())}).catch(()=>{}),k(h),b.refresh()},[b]);return(0,d.jsx)(i.Provider,{value:{status:c,discard:m,approvePlan:n,refresh:l},children:a})}function k(){let a=(0,e.useContext)(i);if(!a)throw Error("usePlan must be used inside PlanProvider");return a}},81974:(a,b,c)=>{"use strict";c.d(b,{PlanBar:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call PlanBar() from the server but PlanBar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/wenzorithelly/Desktop/beacon/components/plan/plan-bar.tsx","PlanBar")},82704:()=>{},86364:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>e});var d=c(88868);let e=async a=>[{type:"image/svg+xml",sizes:"any",url:(0,d.fillMetadataSegment)(".",await a.params,"icon.svg",!0)+"?ae28182cec326ab8"}]}};
|