beadscope 0.0.0-stage → 0.5.1
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 -0
- package/.next/app-path-routes-manifest.json +35 -0
- package/.next/build/chunks/[root-of-the-server]__05i36w1t4lzaf._.js +502 -0
- package/.next/build/chunks/[root-of-the-server]__05i36w1t4lzaf._.js.map +11 -0
- package/.next/build/chunks/[root-of-the-server]__1kki86fknkq7y._.js +191 -0
- package/.next/build/chunks/[root-of-the-server]__1kki86fknkq7y._.js.map +8 -0
- package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_1gfkiq9iz8yb8._.js +13 -0
- package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_1gfkiq9iz8yb8._.js.map +5 -0
- package/.next/build/chunks/[turbopack]_runtime.js +1056 -0
- package/.next/build/chunks/[turbopack]_runtime.js.map +11 -0
- package/.next/build/chunks/node_modules_20v-8wlfss9m1._.js +7240 -0
- package/.next/build/chunks/node_modules_20v-8wlfss9m1._.js.map +47 -0
- package/.next/build/chunks/pool_entry-[turbopack-node]_transforms_postcss_ts_0tp-k2vy8nj6i._.js +6 -0
- package/.next/build/chunks/pool_entry-[turbopack-node]_transforms_postcss_ts_0tp-k2vy8nj6i._.js.map +5 -0
- package/.next/build/package.json +1 -0
- package/.next/build-manifest.json +69 -0
- package/.next/export-marker.json +6 -0
- package/.next/fallback-build-manifest.json +15 -0
- package/.next/images-manifest.json +68 -0
- package/.next/next-minimal-server.js.nft.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/package.json +1 -0
- package/.next/prerender-manifest.json +193 -0
- package/.next/required-server-files.js +379 -0
- package/.next/required-server-files.json +379 -0
- package/.next/routes-manifest.json +293 -0
- package/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
- package/.next/server/app/_global-error/page/build-manifest.json +22 -0
- package/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
- package/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
- package/.next/server/app/_global-error/page.js +10 -0
- package/.next/server/app/_global-error/page.js.map +5 -0
- package/.next/server/app/_global-error/page.js.nft.json +1 -0
- package/.next/server/app/_global-error/page_client-reference-manifest.js +3 -0
- package/.next/server/app/_global-error.html +1 -0
- package/.next/server/app/_global-error.meta +30 -0
- package/.next/server/app/_global-error.rsc +19 -0
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +24 -0
- package/.next/server/app/_global-error.segments/_full.segment.rsc +19 -0
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +2 -0
- package/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
- package/.next/server/app/_not-found/page/build-manifest.json +22 -0
- package/.next/server/app/_not-found/page/next-font-manifest.json +11 -0
- package/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
- package/.next/server/app/_not-found/page.js +13 -0
- package/.next/server/app/_not-found/page.js.map +5 -0
- package/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/.next/server/app/_not-found/page_client-reference-manifest.js +3 -0
- package/.next/server/app/_not-found.html +12 -0
- package/.next/server/app/_not-found.meta +35 -0
- package/.next/server/app/_not-found.rsc +25 -0
- package/.next/server/app/_not-found.segments/_full.segment.rsc +25 -0
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +31 -0
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -0
- package/.next/server/app/api/config/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/config/route/build-manifest.json +12 -0
- package/.next/server/app/api/config/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/config/route.js +11 -0
- package/.next/server/app/api/config/route.js.map +5 -0
- package/.next/server/app/api/config/route.js.nft.json +1 -0
- package/.next/server/app/api/config/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/fs/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/fs/route/build-manifest.json +12 -0
- package/.next/server/app/api/fs/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/fs/route.js +10 -0
- package/.next/server/app/api/fs/route.js.map +5 -0
- package/.next/server/app/api/fs/route.js.nft.json +1 -0
- package/.next/server/app/api/fs/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/p/[projectId]/activity/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/p/[projectId]/activity/route/build-manifest.json +12 -0
- package/.next/server/app/api/p/[projectId]/activity/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/p/[projectId]/activity/route.js +11 -0
- package/.next/server/app/api/p/[projectId]/activity/route.js.map +5 -0
- package/.next/server/app/api/p/[projectId]/activity/route.js.nft.json +1 -0
- package/.next/server/app/api/p/[projectId]/activity/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/p/[projectId]/attachments/[...path]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/p/[projectId]/attachments/[...path]/route/build-manifest.json +12 -0
- package/.next/server/app/api/p/[projectId]/attachments/[...path]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/p/[projectId]/attachments/[...path]/route.js +10 -0
- package/.next/server/app/api/p/[projectId]/attachments/[...path]/route.js.map +5 -0
- package/.next/server/app/api/p/[projectId]/attachments/[...path]/route.js.nft.json +1 -0
- package/.next/server/app/api/p/[projectId]/attachments/[...path]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/p/[projectId]/attachments/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/p/[projectId]/attachments/route/build-manifest.json +12 -0
- package/.next/server/app/api/p/[projectId]/attachments/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/p/[projectId]/attachments/route.js +10 -0
- package/.next/server/app/api/p/[projectId]/attachments/route.js.map +5 -0
- package/.next/server/app/api/p/[projectId]/attachments/route.js.nft.json +1 -0
- package/.next/server/app/api/p/[projectId]/attachments/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/archive/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/archive/route/build-manifest.json +12 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/archive/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/archive/route.js +11 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/archive/route.js.map +5 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/archive/route.js.nft.json +1 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/archive/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/assist/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/assist/route/build-manifest.json +12 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/assist/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/assist/route.js +11 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/assist/route.js.map +5 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/assist/route.js.nft.json +1 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/assist/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/comments/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/comments/route/build-manifest.json +12 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/comments/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/comments/route.js +11 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/comments/route.js.map +5 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/comments/route.js.nft.json +1 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/comments/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/deps/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/deps/route/build-manifest.json +12 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/deps/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/deps/route.js +11 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/deps/route.js.map +5 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/deps/route.js.nft.json +1 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/deps/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/gate/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/gate/route/build-manifest.json +12 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/gate/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/gate/route.js +11 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/gate/route.js.map +5 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/gate/route.js.nft.json +1 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/gate/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/human/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/human/route/build-manifest.json +12 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/human/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/human/route.js +11 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/human/route.js.map +5 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/human/route.js.nft.json +1 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/human/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/route/build-manifest.json +12 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/route.js +11 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/route.js.map +5 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/status/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/status/route/build-manifest.json +12 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/status/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/status/route.js +11 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/status/route.js.map +5 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/status/route.js.nft.json +1 -0
- package/.next/server/app/api/p/[projectId]/beads/[id]/status/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/p/[projectId]/beads/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/p/[projectId]/beads/route/build-manifest.json +12 -0
- package/.next/server/app/api/p/[projectId]/beads/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/p/[projectId]/beads/route.js +11 -0
- package/.next/server/app/api/p/[projectId]/beads/route.js.map +5 -0
- package/.next/server/app/api/p/[projectId]/beads/route.js.nft.json +1 -0
- package/.next/server/app/api/p/[projectId]/beads/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/p/[projectId]/beads/stream/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/p/[projectId]/beads/stream/route/build-manifest.json +12 -0
- package/.next/server/app/api/p/[projectId]/beads/stream/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/p/[projectId]/beads/stream/route.js +8 -0
- package/.next/server/app/api/p/[projectId]/beads/stream/route.js.map +5 -0
- package/.next/server/app/api/p/[projectId]/beads/stream/route.js.nft.json +1 -0
- package/.next/server/app/api/p/[projectId]/beads/stream/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/p/[projectId]/doctor/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/p/[projectId]/doctor/route/build-manifest.json +12 -0
- package/.next/server/app/api/p/[projectId]/doctor/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/p/[projectId]/doctor/route.js +11 -0
- package/.next/server/app/api/p/[projectId]/doctor/route.js.map +5 -0
- package/.next/server/app/api/p/[projectId]/doctor/route.js.nft.json +1 -0
- package/.next/server/app/api/p/[projectId]/doctor/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/p/[projectId]/gamification/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/p/[projectId]/gamification/route/build-manifest.json +12 -0
- package/.next/server/app/api/p/[projectId]/gamification/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/p/[projectId]/gamification/route.js +12 -0
- package/.next/server/app/api/p/[projectId]/gamification/route.js.map +5 -0
- package/.next/server/app/api/p/[projectId]/gamification/route.js.nft.json +1 -0
- package/.next/server/app/api/p/[projectId]/gamification/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/p/[projectId]/insights/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/p/[projectId]/insights/route/build-manifest.json +12 -0
- package/.next/server/app/api/p/[projectId]/insights/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/p/[projectId]/insights/route.js +12 -0
- package/.next/server/app/api/p/[projectId]/insights/route.js.map +5 -0
- package/.next/server/app/api/p/[projectId]/insights/route.js.nft.json +1 -0
- package/.next/server/app/api/p/[projectId]/insights/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/p/[projectId]/order/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/p/[projectId]/order/route/build-manifest.json +12 -0
- package/.next/server/app/api/p/[projectId]/order/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/p/[projectId]/order/route.js +10 -0
- package/.next/server/app/api/p/[projectId]/order/route.js.map +5 -0
- package/.next/server/app/api/p/[projectId]/order/route.js.nft.json +1 -0
- package/.next/server/app/api/p/[projectId]/order/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/p/[projectId]/publish/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/p/[projectId]/publish/route/build-manifest.json +12 -0
- package/.next/server/app/api/p/[projectId]/publish/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/p/[projectId]/publish/route.js +14 -0
- package/.next/server/app/api/p/[projectId]/publish/route.js.map +5 -0
- package/.next/server/app/api/p/[projectId]/publish/route.js.nft.json +1 -0
- package/.next/server/app/api/p/[projectId]/publish/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/projects/[id]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/projects/[id]/route/build-manifest.json +12 -0
- package/.next/server/app/api/projects/[id]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/projects/[id]/route.js +11 -0
- package/.next/server/app/api/projects/[id]/route.js.map +5 -0
- package/.next/server/app/api/projects/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/projects/[id]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/projects/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/projects/route/build-manifest.json +12 -0
- package/.next/server/app/api/projects/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/projects/route.js +10 -0
- package/.next/server/app/api/projects/route.js.map +5 -0
- package/.next/server/app/api/projects/route.js.nft.json +1 -0
- package/.next/server/app/api/projects/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/telemetry/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/telemetry/route/build-manifest.json +12 -0
- package/.next/server/app/api/telemetry/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/telemetry/route.js +8 -0
- package/.next/server/app/api/telemetry/route.js.map +5 -0
- package/.next/server/app/api/telemetry/route.js.nft.json +1 -0
- package/.next/server/app/api/telemetry/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/update/check/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/update/check/route/build-manifest.json +12 -0
- package/.next/server/app/api/update/check/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/update/check/route.js +11 -0
- package/.next/server/app/api/update/check/route.js.map +5 -0
- package/.next/server/app/api/update/check/route.js.nft.json +1 -0
- package/.next/server/app/api/update/check/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/update/run/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/update/run/route/build-manifest.json +12 -0
- package/.next/server/app/api/update/run/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/update/run/route.js +11 -0
- package/.next/server/app/api/update/run/route.js.map +5 -0
- package/.next/server/app/api/update/run/route.js.nft.json +1 -0
- package/.next/server/app/api/update/run/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/viewer-mode/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/viewer-mode/route/build-manifest.json +12 -0
- package/.next/server/app/api/viewer-mode/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/viewer-mode/route.js +10 -0
- package/.next/server/app/api/viewer-mode/route.js.map +5 -0
- package/.next/server/app/api/viewer-mode/route.js.nft.json +1 -0
- package/.next/server/app/api/viewer-mode/route_client-reference-manifest.js +3 -0
- package/.next/server/app/apple-icon.png/route/app-paths-manifest.json +3 -0
- package/.next/server/app/apple-icon.png/route/build-manifest.json +12 -0
- package/.next/server/app/apple-icon.png/route.js +8 -0
- package/.next/server/app/apple-icon.png/route.js.map +5 -0
- package/.next/server/app/apple-icon.png/route.js.nft.json +1 -0
- package/.next/server/app/apple-icon.png.body +0 -0
- package/.next/server/app/apple-icon.png.meta +1 -0
- package/.next/server/app/favicon.ico/route/app-paths-manifest.json +3 -0
- package/.next/server/app/favicon.ico/route/build-manifest.json +12 -0
- package/.next/server/app/favicon.ico/route.js +8 -0
- package/.next/server/app/favicon.ico/route.js.map +5 -0
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -0
- package/.next/server/app/favicon.ico.body +0 -0
- package/.next/server/app/favicon.ico.meta +1 -0
- package/.next/server/app/icon.svg/route/app-paths-manifest.json +3 -0
- package/.next/server/app/icon.svg/route/build-manifest.json +12 -0
- package/.next/server/app/icon.svg/route.js +8 -0
- package/.next/server/app/icon.svg/route.js.map +5 -0
- package/.next/server/app/icon.svg/route.js.nft.json +1 -0
- package/.next/server/app/icon.svg.body +1 -0
- package/.next/server/app/icon.svg.meta +1 -0
- package/.next/server/app/index.html +12 -0
- package/.next/server/app/index.meta +29 -0
- package/.next/server/app/index.rsc +27 -0
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +30 -0
- package/.next/server/app/index.segments/_full.segment.rsc +27 -0
- package/.next/server/app/index.segments/_tree.segment.rsc +5 -0
- package/.next/server/app/p/[projectId]/page/app-paths-manifest.json +3 -0
- package/.next/server/app/p/[projectId]/page/build-manifest.json +22 -0
- package/.next/server/app/p/[projectId]/page/next-font-manifest.json +11 -0
- package/.next/server/app/p/[projectId]/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/p/[projectId]/page/server-reference-manifest.json +4 -0
- package/.next/server/app/p/[projectId]/page.js +15 -0
- package/.next/server/app/p/[projectId]/page.js.map +5 -0
- package/.next/server/app/p/[projectId]/page.js.nft.json +1 -0
- package/.next/server/app/p/[projectId]/page_client-reference-manifest.js +3 -0
- package/.next/server/app/page/app-paths-manifest.json +3 -0
- package/.next/server/app/page/build-manifest.json +22 -0
- package/.next/server/app/page/next-font-manifest.json +11 -0
- package/.next/server/app/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/page/server-reference-manifest.json +4 -0
- package/.next/server/app/page.js +14 -0
- package/.next/server/app/page.js.map +5 -0
- package/.next/server/app/page.js.nft.json +1 -0
- package/.next/server/app/page_client-reference-manifest.js +3 -0
- package/.next/server/app-paths-manifest.json +35 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_attachments_[___path]_route_actions_1040addoe_3v-.js +3 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_attachments_[___path]_route_actions_1040addoe_3v-.js.map +1 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_attachments_route_actions_0xbz9ode02i8m.js +3 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_attachments_route_actions_0xbz9ode02i8m.js.map +1 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_beads_[id]_archive_route_actions_11wcutlx3g3z6.js +3 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_beads_[id]_archive_route_actions_11wcutlx3g3z6.js.map +1 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_beads_[id]_assist_route_actions_20an4chs-trua.js +3 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_beads_[id]_assist_route_actions_20an4chs-trua.js.map +1 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_beads_[id]_comments_route_actions_1nfem6pen0k0g.js +3 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_beads_[id]_comments_route_actions_1nfem6pen0k0g.js.map +1 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_beads_[id]_deps_route_actions_18gjapy3mw4wv.js +3 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_beads_[id]_deps_route_actions_18gjapy3mw4wv.js.map +1 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_beads_[id]_gate_route_actions_187fh3sknhoaj.js +3 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_beads_[id]_gate_route_actions_187fh3sknhoaj.js.map +1 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_beads_[id]_human_route_actions_07owr7gyh2_8k.js +3 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_beads_[id]_human_route_actions_07owr7gyh2_8k.js.map +1 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_beads_[id]_route_actions_1etbw4at9d6k4.js +3 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_beads_[id]_route_actions_1etbw4at9d6k4.js.map +1 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_beads_[id]_status_route_actions_1umhmm3s8juuu.js +3 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_beads_[id]_status_route_actions_1umhmm3s8juuu.js.map +1 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_beads_stream_route_actions_175r-6ar5_pmi.js +3 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_beads_stream_route_actions_175r-6ar5_pmi.js.map +1 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_gamification_route_actions_1ogeffkobnbsr.js +3 -0
- package/.next/server/chunks/1oeh_server_app_api_p_[projectId]_gamification_route_actions_1ogeffkobnbsr.js.map +1 -0
- package/.next/server/chunks/[externals]__0lwlz8xkhksb0._.js +3 -0
- package/.next/server/chunks/[externals]__0lwlz8xkhksb0._.js.map +1 -0
- package/.next/server/chunks/[externals]__1auxgbs1xf3g3._.js +3 -0
- package/.next/server/chunks/[externals]__1auxgbs1xf3g3._.js.map +1 -0
- package/.next/server/chunks/[externals]__1h8nsgzt8l8pm._.js +3 -0
- package/.next/server/chunks/[externals]__1h8nsgzt8l8pm._.js.map +1 -0
- package/.next/server/chunks/[externals]__1p2j9_5g429uh._.js +3 -0
- package/.next/server/chunks/[externals]__1p2j9_5g429uh._.js.map +1 -0
- package/.next/server/chunks/[externals]__1py9g7vq1lv21._.js +3 -0
- package/.next/server/chunks/[externals]__1py9g7vq1lv21._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0190u3x31o2kc._.js +327 -0
- package/.next/server/chunks/[root-of-the-server]__0190u3x31o2kc._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__035zaj0slqy-4._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__035zaj0slqy-4._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0bzf8xm20iw7a._.js +57 -0
- package/.next/server/chunks/[root-of-the-server]__0bzf8xm20iw7a._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0p9qh6g3s0rez._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0p9qh6g3s0rez._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0v7bhiiq13er3._.js +57 -0
- package/.next/server/chunks/[root-of-the-server]__0v7bhiiq13er3._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0yiz2szg7yt42._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0yiz2szg7yt42._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1-f7qk3-8a266._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1-f7qk3-8a266._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__122sebyef7_fq._.js +57 -0
- package/.next/server/chunks/[root-of-the-server]__122sebyef7_fq._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__12b8wltp8nh6j._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__12b8wltp8nh6j._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__15bjnu5yieigz._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__15bjnu5yieigz._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__15y25z0ilm3d6._.js +57 -0
- package/.next/server/chunks/[root-of-the-server]__15y25z0ilm3d6._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1egyye6rj7_du._.js +57 -0
- package/.next/server/chunks/[root-of-the-server]__1egyye6rj7_du._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1gdvsv3omtde3._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1gdvsv3omtde3._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1zrubp2jc8bi0._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1zrubp2jc8bi0._.js.map +1 -0
- package/.next/server/chunks/[turbopack]_runtime.js +937 -0
- package/.next/server/chunks/[turbopack]_runtime.js.map +10 -0
- package/.next/server/chunks/_004qegokrf7fy._.js +3 -0
- package/.next/server/chunks/_004qegokrf7fy._.js.map +1 -0
- package/.next/server/chunks/_013mswtsyfnoo._.js +3 -0
- package/.next/server/chunks/_013mswtsyfnoo._.js.map +1 -0
- package/.next/server/chunks/_0gij0z-co_3s4._.js +3 -0
- package/.next/server/chunks/_0gij0z-co_3s4._.js.map +1 -0
- package/.next/server/chunks/_0gjygs98zpepc._.js +3 -0
- package/.next/server/chunks/_0gjygs98zpepc._.js.map +1 -0
- package/.next/server/chunks/_0grrkbm3e2o1h._.js +3 -0
- package/.next/server/chunks/_0grrkbm3e2o1h._.js.map +1 -0
- package/.next/server/chunks/_0j2w6pi0oz3ag._.js +3 -0
- package/.next/server/chunks/_0j2w6pi0oz3ag._.js.map +1 -0
- package/.next/server/chunks/_0kd1hwufqyhnn._.js +3 -0
- package/.next/server/chunks/_0kd1hwufqyhnn._.js.map +1 -0
- package/.next/server/chunks/_0sr--n5b--0bk._.js +3 -0
- package/.next/server/chunks/_0sr--n5b--0bk._.js.map +1 -0
- package/.next/server/chunks/_0tuzzupepjznm._.js +3 -0
- package/.next/server/chunks/_0tuzzupepjznm._.js.map +1 -0
- package/.next/server/chunks/_0vx1iev9xu_vx._.js +329 -0
- package/.next/server/chunks/_0vx1iev9xu_vx._.js.map +1 -0
- package/.next/server/chunks/_0wemi40xtpagp._.js +3 -0
- package/.next/server/chunks/_0wemi40xtpagp._.js.map +1 -0
- package/.next/server/chunks/_0wh8igpovqaep._.js +3 -0
- package/.next/server/chunks/_0wh8igpovqaep._.js.map +1 -0
- package/.next/server/chunks/_10s9tyeasgb0i._.js +3 -0
- package/.next/server/chunks/_10s9tyeasgb0i._.js.map +1 -0
- package/.next/server/chunks/_10uu_24l62-_0._.js +3 -0
- package/.next/server/chunks/_10uu_24l62-_0._.js.map +1 -0
- package/.next/server/chunks/_111ja8xkcaayx._.js +3 -0
- package/.next/server/chunks/_111ja8xkcaayx._.js.map +1 -0
- package/.next/server/chunks/_146xyuw6iu78n._.js +3 -0
- package/.next/server/chunks/_146xyuw6iu78n._.js.map +1 -0
- package/.next/server/chunks/_170e1_rlfsf03._.js +3 -0
- package/.next/server/chunks/_170e1_rlfsf03._.js.map +1 -0
- package/.next/server/chunks/_18ktg21m5ffu5._.js +3 -0
- package/.next/server/chunks/_18ktg21m5ffu5._.js.map +1 -0
- package/.next/server/chunks/_19tb4jcjqiyom._.js +3 -0
- package/.next/server/chunks/_19tb4jcjqiyom._.js.map +1 -0
- package/.next/server/chunks/_1ffeeaqyjdqzf._.js +3 -0
- package/.next/server/chunks/_1ffeeaqyjdqzf._.js.map +1 -0
- package/.next/server/chunks/_1k3na_-a86gbn._.js +3 -0
- package/.next/server/chunks/_1k3na_-a86gbn._.js.map +1 -0
- package/.next/server/chunks/_1kwx_epvqg4do._.js +3 -0
- package/.next/server/chunks/_1kwx_epvqg4do._.js.map +1 -0
- package/.next/server/chunks/_1mxn_lbuesj3_._.js +3 -0
- package/.next/server/chunks/_1mxn_lbuesj3_._.js.map +1 -0
- package/.next/server/chunks/_1n-6yntr59hz-._.js +3 -0
- package/.next/server/chunks/_1n-6yntr59hz-._.js.map +1 -0
- package/.next/server/chunks/_1o0e0kk3zhmfk._.js +3 -0
- package/.next/server/chunks/_1o0e0kk3zhmfk._.js.map +1 -0
- package/.next/server/chunks/_1qxheoabqmzqk._.js +3 -0
- package/.next/server/chunks/_1qxheoabqmzqk._.js.map +1 -0
- package/.next/server/chunks/_1tji4d-rsralm._.js +3 -0
- package/.next/server/chunks/_1tji4d-rsralm._.js.map +1 -0
- package/.next/server/chunks/_1w6vul60in-n6._.js +3 -0
- package/.next/server/chunks/_1w6vul60in-n6._.js.map +1 -0
- package/.next/server/chunks/_1yp1pldb73ib4._.js +3 -0
- package/.next/server/chunks/_1yp1pldb73ib4._.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_config_route_actions_0ep4_f1yut2mt.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_config_route_actions_0ep4_f1yut2mt.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_fs_route_actions_0bfrr9ckhntty.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_fs_route_actions_0bfrr9ckhntty.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_p_[projectId]_activity_route_actions_1o0prtv03y3nn.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_p_[projectId]_activity_route_actions_1o0prtv03y3nn.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_p_[projectId]_beads_route_actions_073r35dma_j8s.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_p_[projectId]_beads_route_actions_073r35dma_j8s.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_p_[projectId]_doctor_route_actions_1rijqoag5taoa.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_p_[projectId]_doctor_route_actions_1rijqoag5taoa.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_p_[projectId]_insights_route_actions_0jz8vtlr3le7i.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_p_[projectId]_insights_route_actions_0jz8vtlr3le7i.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_p_[projectId]_order_route_actions_02ppmkb6_hzeb.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_p_[projectId]_order_route_actions_02ppmkb6_hzeb.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_p_[projectId]_publish_route_actions_09aeeim6yuy6h.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_p_[projectId]_publish_route_actions_09aeeim6yuy6h.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_projects_[id]_route_actions_0xth066-5sa64.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_projects_[id]_route_actions_0xth066-5sa64.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_projects_route_actions_0h5ne2fr_h1tq.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_projects_route_actions_0h5ne2fr_h1tq.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_telemetry_route_actions_1w3amzmkajq41.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_telemetry_route_actions_1w3amzmkajq41.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_update_check_route_actions_1i8_z9m5w7fuz.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_update_check_route_actions_1i8_z9m5w7fuz.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_update_run_route_actions_0hd7t05lf6pu_.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_update_run_route_actions_0hd7t05lf6pu_.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_viewer-mode_route_actions_1bxw5uknzqmon.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_viewer-mode_route_actions_1bxw5uknzqmon.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_apple-icon_png_route_actions_0jcl8aui56a1m.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_apple-icon_png_route_actions_0jcl8aui56a1m.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_favicon_ico_route_actions_0g2jjlssn1kss.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_favicon_ico_route_actions_0g2jjlssn1kss.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_icon_svg_route_actions_1r2h_ubdhjtcp.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_icon_svg_route_actions_1r2h_ubdhjtcp.js.map +1 -0
- package/.next/server/chunks/instrumentation-node_ts_157o961d03nbm._.js +3 -0
- package/.next/server/chunks/instrumentation-node_ts_157o961d03nbm._.js.map +1 -0
- package/.next/server/chunks/lib_beads-view_ts_1fvxcrevh9zu_._.js +3 -0
- package/.next/server/chunks/lib_beads-view_ts_1fvxcrevh9zu_._.js.map +1 -0
- package/.next/server/chunks/lib_config_ts_0zrjxh_mm8sv8._.js +3 -0
- package/.next/server/chunks/lib_config_ts_0zrjxh_mm8sv8._.js.map +1 -0
- package/.next/server/chunks/lib_gamification_ts_0ojrlsdva9tsn._.js +3 -0
- package/.next/server/chunks/lib_gamification_ts_0ojrlsdva9tsn._.js.map +1 -0
- package/.next/server/chunks/lib_self-update_ts_1s_0im4leryko._.js +3 -0
- package/.next/server/chunks/lib_self-update_ts_1s_0im4leryko._.js.map +1 -0
- package/.next/server/chunks/lib_store_ts_06cg85jmkn83a._.js +5 -0
- package/.next/server/chunks/lib_store_ts_06cg85jmkn83a._.js.map +1 -0
- package/.next/server/chunks/node_modules_next_0sx6ib_cz483a._.js +320 -0
- package/.next/server/chunks/node_modules_next_0sx6ib_cz483a._.js.map +1 -0
- package/.next/server/chunks/ssr/[externals]__05zh3njt6xz3h._.js +3 -0
- package/.next/server/chunks/ssr/[externals]__05zh3njt6xz3h._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0_jjlev4jw3sc._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0_jjlev4jw3sc._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0gttu4_51ori6._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0gttu4_51ori6._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0py1t7q9ntzgc._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0py1t7q9ntzgc._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0uzyn00104lyw._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0uzyn00104lyw._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__10sjsc4ko7y98._.js +14 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__10sjsc4ko7y98._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__10zoxas8t6ikf._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__10zoxas8t6ikf._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1_1soca8mkipl._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1_1soca8mkipl._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1cf6qt9agg_9-._.js +14 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1cf6qt9agg_9-._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1kh1tntqbjk8h._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1kh1tntqbjk8h._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1oibig2utok9d._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1oibig2utok9d._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1xizcyi5hek65._.js +60 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1xizcyi5hek65._.js.map +1 -0
- package/.next/server/chunks/ssr/[turbopack]_runtime.js +937 -0
- package/.next/server/chunks/ssr/[turbopack]_runtime.js.map +10 -0
- package/.next/server/chunks/ssr/_02mwe4ucwaopu._.js +291 -0
- package/.next/server/chunks/ssr/_02mwe4ucwaopu._.js.map +1 -0
- package/.next/server/chunks/ssr/_0_ky_k50rh6-9._.js +3 -0
- package/.next/server/chunks/ssr/_0_ky_k50rh6-9._.js.map +1 -0
- package/.next/server/chunks/ssr/_1020o02v8ucmf._.js +3 -0
- package/.next/server/chunks/ssr/_1020o02v8ucmf._.js.map +1 -0
- package/.next/server/chunks/ssr/_1i_x4qkev3tax._.js +3 -0
- package/.next/server/chunks/ssr/_1i_x4qkev3tax._.js.map +1 -0
- package/.next/server/chunks/ssr/_1mzldxegsozij._.js +3 -0
- package/.next/server/chunks/ssr/_1mzldxegsozij._.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0zi5s8-psc_d2.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0zi5s8-psc_d2.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0pt47yrisjoev.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0pt47yrisjoev.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_p_[projectId]_page_actions_1v83cl8bzuchz.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_p_[projectId]_page_actions_1v83cl8bzuchz.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_page_actions_0hhsz1jew5ls7.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_page_actions_0hhsz1jew5ls7.js.map +1 -0
- package/.next/server/chunks/ssr/components_launcher_tsx_1i40oht1v6miz._.js +3 -0
- package/.next/server/chunks/ssr/components_launcher_tsx_1i40oht1v6miz._.js.map +1 -0
- package/.next/server/chunks/ssr/components_providers_tsx_0thx-xfvr_dtx._.js +3 -0
- package/.next/server/chunks/ssr/components_providers_tsx_0thx-xfvr_dtx._.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_0gxlxpuufujz9._.js +33 -0
- package/.next/server/chunks/ssr/node_modules_0gxlxpuufujz9._.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_0h91jdk0pr40d._.js +33 -0
- package/.next/server/chunks/ssr/node_modules_0h91jdk0pr40d._.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_0janj0i6dqko7._.js +6 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_0janj0i6dqko7._.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_1dupwucoqt5qm._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_1dupwucoqt5qm._.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_0wpq8j32_ibz4._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_0wpq8j32_ibz4._.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0symwr9mbf-fh.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0symwr9mbf-fh.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0q-w892nagajq.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0q-w892nagajq.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0l_sp0xky89qu.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0l_sp0xky89qu.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_08w9x0-loejdh.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_08w9x0-loejdh.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0bpybjk9qyzcp.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0bpybjk9qyzcp.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0d8m61g-qls74.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0d8m61g-qls74.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_13q04th-918ib.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_13q04th-918ib.js.map +1 -0
- package/.next/server/edge/chunks/_0o_tvsklgn-yk._.js +3 -0
- package/.next/server/edge/chunks/_0o_tvsklgn-yk._.js.map +1 -0
- package/.next/server/edge/chunks/node_modules_next_dist_esm_build_templates_edge-wrapper_1oiuqfca5iqka.js.map +1 -0
- package/.next/server/edge/chunks/turbopack-node_modules_next_dist_esm_build_templates_edge-wrapper_1oiuqfca5iqka.js +3 -0
- package/.next/server/functions-config-manifest.json +19 -0
- package/.next/server/instrumentation/middleware-manifest.json +12 -0
- package/.next/server/instrumentation.js +4 -0
- package/.next/server/instrumentation.js.map +5 -0
- package/.next/server/instrumentation.js.nft.json +1 -0
- package/.next/server/interception-route-rewrite-manifest.js +1 -0
- package/.next/server/middleware/middleware-manifest.json +6 -0
- package/.next/server/middleware-build-manifest.js +69 -0
- package/.next/server/middleware-manifest.json +6 -0
- package/.next/server/middleware.js +5 -0
- package/.next/server/middleware.js.map +5 -0
- package/.next/server/middleware.js.nft.json +1 -0
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/next-font-manifest.json +19 -0
- package/.next/server/pages/404.html +12 -0
- package/.next/server/pages/500.html +1 -0
- package/.next/server/pages-manifest.json +4 -0
- package/.next/server/prefetch-hints.json +34 -0
- package/.next/server/preview-props.json +5 -0
- package/.next/server/server-reference-manifest.js +1 -0
- package/.next/server/server-reference-manifest.json +5 -0
- package/.next/static/chunks/04lvtbsumb9l-.js +22 -0
- package/.next/static/chunks/07balm4l-kilq.js +1 -0
- package/.next/static/chunks/0cz1d0mv5g_q7.js +1 -0
- package/.next/static/chunks/0lf_v5uyq3i9q.js +1 -0
- package/.next/static/chunks/1ix59xuhq-q14.css +1 -0
- package/.next/static/chunks/1j-4i4b4rc0hy.js +58 -0
- package/.next/static/chunks/1oizlhl9fdqt_.js +1 -0
- package/.next/static/chunks/21v6r4y8vgqng.css +3 -0
- package/.next/static/chunks/2ca16cvfmb3l3.js +1 -0
- package/.next/static/chunks/2k0ht_txv9ool.js +1 -0
- package/.next/static/chunks/2x0qc_flzv-la.js +31 -0
- package/.next/static/chunks/2xh00k9l33qnb.js +1 -0
- package/.next/static/chunks/3-53rbq2namxd.js +1 -0
- package/.next/static/chunks/3yqhmu1hny1_2.js +1 -0
- package/.next/static/chunks/turbopack-3-ry682tkyiqk.js +1 -0
- package/.next/static/media/4fa387ec64143e14-s.2tuy5pz7dlieh.woff2 +0 -0
- package/.next/static/media/53b9e256198e5412-s.390ncx5urfkfu.woff2 +0 -0
- package/.next/static/media/5ce348bf30bf5439-s.31988l_ccedte.woff2 +0 -0
- package/.next/static/media/6306c77e7c8268e4-s.2dbetqa9o8jxf.woff2 +0 -0
- package/.next/static/media/7178b3e590c64307-s.21jp631_3pja2.woff2 +0 -0
- package/.next/static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2 +0 -0
- package/.next/static/media/7d817b4c03b0c5f1-s.1uyisp29ctx0d.woff2 +0 -0
- package/.next/static/media/8a480f0b521d4e75-s.1qq4vpdcun5oj.woff2 +0 -0
- package/.next/static/media/apple-icon.3wegq_e2im0r7.png +0 -0
- package/.next/static/media/bbc41e54d2fcbd21-s.1rgnod-3esatf.woff2 +0 -0
- package/.next/static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2 +0 -0
- package/.next/static/media/favicon.2zdrk8nf2w92v.ico +0 -0
- package/.next/static/media/fef07dbb0973bf53-s.3p2_lha1f2xer.woff2 +0 -0
- package/.next/static/media/icon.20nhmzpyywyzw.svg +1 -0
- package/.next/static/xa_jNrYAvP6guImijiv2P/_buildManifest.js +11 -0
- package/.next/static/xa_jNrYAvP6guImijiv2P/_clientMiddlewareManifest.js +6 -0
- package/.next/static/xa_jNrYAvP6guImijiv2P/_ssgManifest.js +1 -0
- package/.next/turbopack +0 -0
- package/LICENSE +22 -0
- package/README.md +459 -2
- package/bin/beadscope.mjs +724 -0
- package/next.config.ts +43 -0
- package/package.json +105 -4
- package/public/file.svg +1 -0
- package/public/globe.svg +1 -0
- package/public/next.svg +1 -0
- package/public/vercel.svg +1 -0
- package/public/window.svg +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/config.ts"],"sourcesContent":["import \"server-only\";\nimport fs from \"node:fs\";\nimport path from \"node:path\";\nimport os from \"node:os\";\nimport { execFileSync } from \"node:child_process\";\n\n/**\n * Local app config (NOT stored in beads). Lives as a small JSON file under the\n * OS config dir. Holds the human actor used to stamp writes, the human allowlist\n * for origin detection, the poll interval, and the registry of beads projects\n * the app knows about.\n *\n * Project identity is per-request (driven by the /p/<projectId> URL), so the\n * \"active\" project is NOT stored here — only the durable list of discovered ones.\n */\nexport interface ProjectEntry {\n id: string;\n name: string;\n path: string;\n /** ISO timestamps. */\n addedAt: string;\n lastOpened: string;\n}\n\nexport interface AppConfig {\n humanActor: string;\n humanAllowlist: string[];\n pollIntervalMs: number;\n projects: ProjectEntry[];\n /**\n * Manual board ordering, kept app-local (NOT in beads): projectId → columnId →\n * ordered bead ids. Lets users drag beads within a column to set work order.\n */\n orders: Record<string, Record<string, string[]>>;\n /** Opt-in: show the gamification XP/level layer (off by default). */\n gamification: boolean;\n /**\n * True once the human actor was saved from Settings. Until then the actor\n * follows the computed default, even if an older version wrote it to disk.\n */\n humanActorChosen?: boolean;\n}\n\n/**\n * The built-in demo dataset, surfaced as an always-available pseudo-project.\n * It has no filesystem path; the store resolver maps it to the in-memory store.\n */\nexport const DEMO_PROJECT = {\n id: \"demo\",\n name: \"Demo\",\n path: null,\n} as const;\nexport type DemoProject = typeof DEMO_PROJECT;\n\nexport class ConfigError extends Error {\n code: string;\n constructor(message: string, code: string) {\n super(message);\n this.name = \"ConfigError\";\n this.code = code;\n }\n}\n\n/**\n * BEADSCOPE_READ_ONLY=1 (or \"true\") supplies the default for new browser sessions.\n * The session cookie overrides that default when the user changes the mode.\n * In the effective read-only mode, project writes are refused server-side and\n * editing controls are disabled. App settings remain available.\n */\nexport const VIEWER_MODE_COOKIE = \"beadscope-viewer-mode\";\n\nexport function isReadOnly(request?: Request): boolean {\n // This is a browser preference, not an authorization boundary. A session\n // cookie lets one browser override the launch default without affecting others.\n const cookie = request?.headers.get(\"cookie\")?.split(\";\").map((v) => v.trim())\n .find((v) => v.startsWith(`${VIEWER_MODE_COOKIE}=`))?.slice(VIEWER_MODE_COOKIE.length + 1);\n if (cookie === \"read-only\") return true;\n if (cookie === \"editing\") return false;\n const v = process.env.BEADSCOPE_READ_ONLY;\n return v === \"1\" || v === \"true\";\n}\n\n/**\n * Focus-view lane chips: BEADSCOPE_LANE_PREFIX names a label prefix (e.g. \"ctx:\")\n * whose values partition work into lanes/teams/areas. When set, the Focus view\n * offers one filter chip per lane label found on the visible beads. Unset →\n * no chips (the feature is invisible).\n */\nexport function lanePrefix(): string | null {\n return process.env.BEADSCOPE_LANE_PREFIX || null;\n}\n\nexport function configDir(): string {\n const base = process.env.XDG_CONFIG_HOME || path.join(os.homedir(), \".config\");\n return path.join(base, \"beadscope\");\n}\nfunction configFile(): string {\n return path.join(configDir(), \"config.json\");\n}\n\nfunction osUserName(): string {\n try {\n return os.userInfo().username || \"you\";\n } catch {\n return \"you\";\n }\n}\n\n/** git's user.name as seen from the launch directory, or null without git or a name. */\nfunction gitUserName(): string | null {\n try {\n const name = execFileSync(\"git\", [\"config\", \"--get\", \"user.name\"], {\n cwd: process.cwd(),\n encoding: \"utf8\",\n timeout: 2000,\n stdio: [\"ignore\", \"pipe\", \"ignore\"],\n }).trim();\n return name || null;\n } catch {\n return null;\n }\n}\n\nfunction defaults(): AppConfig {\n // Same order as bd's own actor (`bd --help`, --actor): BEADS_ACTOR, then git\n // user.name, then the OS user. If Beadscope stamped writes with the OS name\n // while `bd update --claim` used the git name, bd would refuse to let the UI\n // close beads the user claimed from the CLI.\n const humanActor = process.env.BEADS_ACTOR || gitUserName() || osUserName();\n return {\n humanActor,\n humanAllowlist: [humanActor],\n // Fallback refresh interval. The SSE change stream (see lib/beads-watch)\n // drives fast updates; this interval only backstops a dropped stream.\n pollIntervalMs: 30000,\n projects: [],\n orders: {},\n gamification: false,\n };\n}\n\n// ---- helpers -------------------------------------------------------------\n\nfunction hasBeads(p: string): boolean {\n try {\n return fs.existsSync(path.join(p, \".beads\"));\n } catch {\n return false;\n }\n}\nfunction realpathOrSelf(p: string): string {\n try {\n return fs.realpathSync(p);\n } catch {\n return path.resolve(p);\n }\n}\nfunction sameDir(a: string, b: string): boolean {\n return realpathOrSelf(a) === realpathOrSelf(b);\n}\nfunction slug(s: string): string {\n return (\n s\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, \"-\")\n .replace(/^-+|-+$/g, \"\") || \"project\"\n );\n}\nfunction makeId(absPath: string, taken: Set<string>): string {\n const base = slug(path.basename(absPath));\n let id = base;\n while (taken.has(id) || id === DEMO_PROJECT.id) {\n id = `${base}-${Math.random().toString(36).slice(2, 6)}`;\n }\n return id;\n}\nfunction makeEntry(inputPath: string, taken: Set<string>): ProjectEntry {\n const abs = path.resolve(inputPath);\n const now = new Date().toISOString();\n return {\n id: makeId(abs, taken),\n name: path.basename(abs) || abs,\n path: abs,\n addedAt: now,\n lastOpened: now,\n };\n}\n\n/** Drop malformed registry entries so a bad config file never crashes startup. */\nfunction sanitizeProjects(input: unknown): ProjectEntry[] {\n if (!Array.isArray(input)) return [];\n const out: ProjectEntry[] = [];\n const seen = new Set<string>();\n for (const it of input) {\n if (!it || typeof it !== \"object\") continue;\n const e = it as Record<string, unknown>;\n if (typeof e.id !== \"string\" || typeof e.path !== \"string\") continue;\n if (e.id === DEMO_PROJECT.id || seen.has(e.id)) continue;\n seen.add(e.id);\n out.push({\n id: e.id,\n path: e.path,\n name: typeof e.name === \"string\" && e.name ? e.name : path.basename(e.path) || e.path,\n addedAt: typeof e.addedAt === \"string\" ? e.addedAt : new Date().toISOString(),\n lastOpened: typeof e.lastOpened === \"string\" ? e.lastOpened : new Date().toISOString(),\n });\n }\n return out;\n}\n\n// ---- load / persist ------------------------------------------------------\n\nlet cached: AppConfig | null = null;\n\n/**\n * Persist the config, preserving any unknown keys already on disk (e.g. the\n * legacy `repoPath`/`demo` fields) so older app versions can still read them.\n */\nfunction persist(cfg: AppConfig): void {\n cached = cfg;\n try {\n fs.mkdirSync(configDir(), { recursive: true });\n let base: Record<string, unknown> = {};\n try {\n base = JSON.parse(fs.readFileSync(configFile(), \"utf8\")) as Record<string, unknown>;\n } catch {\n base = {};\n }\n const next = { ...base, ...cfg };\n fs.writeFileSync(configFile(), JSON.stringify(next, null, 2), \"utf8\");\n } catch {\n /* best-effort; config still applies for the session */\n }\n}\n\nexport function getConfig(): AppConfig {\n if (cached) return cached;\n const d = defaults();\n\n let onDisk:\n | (Partial<AppConfig> & { repoPath?: string; demo?: boolean })\n | null = null;\n try {\n onDisk = JSON.parse(fs.readFileSync(configFile(), \"utf8\"));\n } catch {\n onDisk = null;\n }\n\n // Before 0.3.1 the computed default (the OS user) was written to disk along\n // with the first project, so an unchosen OS username on disk is a stale\n // default rather than a preference. Replace it, and keep the new actor in the\n // allowlist so the user's own writes still render as human.\n const staleActor =\n !onDisk?.humanActorChosen && onDisk?.humanActor === osUserName() && d.humanActor !== onDisk.humanActor;\n const storedAllowlist = onDisk?.humanAllowlist && onDisk.humanAllowlist.length ? onDisk.humanAllowlist : null;\n const merged: AppConfig = {\n humanActor: staleActor ? d.humanActor : onDisk?.humanActor || d.humanActor,\n humanAllowlist: !storedAllowlist\n ? d.humanAllowlist\n : staleActor && !storedAllowlist.includes(d.humanActor)\n ? [...storedAllowlist, d.humanActor]\n : storedAllowlist,\n pollIntervalMs:\n typeof onDisk?.pollIntervalMs === \"number\" ? onDisk.pollIntervalMs : d.pollIntervalMs,\n projects: sanitizeProjects(onDisk?.projects),\n orders:\n onDisk?.orders && typeof onDisk.orders === \"object\" && !Array.isArray(onDisk.orders)\n ? (onDisk.orders as Record<string, Record<string, string[]>>)\n : {},\n gamification: typeof onDisk?.gamification === \"boolean\" ? onDisk.gamification : d.gamification,\n humanActorChosen: onDisk?.humanActorChosen === true,\n };\n\n // One-time migration: back-fill the registry from the legacy single repoPath\n // (or BEADS_REPO / cwd) when no projects array exists yet.\n let migrated = false;\n if (!onDisk || onDisk.projects === undefined) {\n const legacyPath = onDisk?.repoPath || process.env.BEADS_REPO || process.cwd();\n if (\n legacyPath &&\n hasBeads(legacyPath) &&\n !merged.projects.some((p) => sameDir(p.path, legacyPath))\n ) {\n merged.projects.push(makeEntry(legacyPath, new Set(merged.projects.map((p) => p.id))));\n migrated = true;\n }\n }\n\n cached = merged;\n // Persist the migrated entry so its id is stable across restarts.\n if (migrated) persist(merged);\n return cached;\n}\n\n/**\n * The actor to close a bead as. bd refuses to close a claimed bead as anyone\n * but its assignee. Before 0.3.1 Beadscope wrote as the OS user, so beads people\n * assigned to themselves then still carry that name. It is the same person on\n * this machine, so close those as it rather than failing — #61 in reverse.\n * Every other assignee (a teammate, an agent) keeps bd's protection.\n */\nexport function closeActor(assignee: string | null | undefined): string {\n const { humanActor } = getConfig();\n return assignee && assignee !== humanActor && assignee === osUserName() ? assignee : humanActor;\n}\n\n/** Update global settings (actor / allowlist / poll). Project registry has its own mutators. */\nexport function saveConfig(\n patch: Partial<Pick<AppConfig, \"humanActor\" | \"humanAllowlist\" | \"pollIntervalMs\" | \"gamification\">>,\n): AppConfig {\n const next = { ...getConfig(), ...patch };\n if (patch.humanActor !== undefined) next.humanActorChosen = true;\n persist(next);\n return next;\n}\n\n// ---- project registry ----------------------------------------------------\n\nexport function listProjects(): ProjectEntry[] {\n return getConfig().projects;\n}\n\nexport function getProject(id: string): ProjectEntry | DemoProject | undefined {\n if (id === DEMO_PROJECT.id) return DEMO_PROJECT;\n return getConfig().projects.find((p) => p.id === id);\n}\n\n/** Add (or re-touch) a project by folder path. Validates a `.beads` dir exists. */\nexport function addProject(inputPath: string): ProjectEntry {\n const cfg = getConfig();\n const abs = path.resolve(inputPath);\n if (!hasBeads(abs)) {\n throw new ConfigError(`No .beads directory found in ${abs}`, \"no_beads\");\n }\n const existing = cfg.projects.find((p) => sameDir(p.path, abs));\n if (existing) {\n existing.lastOpened = new Date().toISOString();\n persist(cfg);\n return existing;\n }\n const entry = makeEntry(abs, new Set(cfg.projects.map((p) => p.id)));\n cfg.projects.push(entry);\n persist(cfg);\n return entry;\n}\n\nexport function removeProject(id: string): void {\n const cfg = getConfig();\n cfg.projects = cfg.projects.filter((p) => p.id !== id);\n // Drop any saved board ordering for the removed project so it can't orphan.\n if (cfg.orders[id]) {\n const rest = { ...cfg.orders };\n delete rest[id];\n cfg.orders = rest;\n }\n persist(cfg);\n}\n\nexport function touchProject(id: string): void {\n const cfg = getConfig();\n const p = cfg.projects.find((x) => x.id === id);\n if (p) {\n p.lastOpened = new Date().toISOString();\n persist(cfg);\n }\n}\n\nexport function renameProject(id: string, name: string): ProjectEntry | undefined {\n const cfg = getConfig();\n const p = cfg.projects.find((x) => x.id === id);\n if (!p) return undefined;\n p.name = name;\n persist(cfg);\n return p;\n}\n\n// ---- manual board ordering ------------------------------------------------\n\n/** All saved column orders for a project: columnId → ordered bead ids. */\nexport function getColumnOrders(projectId: string): Record<string, string[]> {\n return getConfig().orders[projectId] ?? {};\n}\n\n/** Replace the saved order for one column of one project. */\nexport function setColumnOrder(\n projectId: string,\n columnId: string,\n ids: string[],\n): Record<string, string[]> {\n const cfg = getConfig();\n const proj = { ...(cfg.orders[projectId] ?? {}) };\n proj[columnId] = ids;\n cfg.orders = { ...cfg.orders, [projectId]: proj };\n persist(cfg);\n return proj;\n}\n"],"names":["DEMO_PROJECT","id","name","path","ConfigError","Error","code","message","VIEWER_MODE_COOKIE","isReadOnly","request","cookie","headers","get","split","map","v","trim","find","startsWith","slice","length","process","env","BEADSCOPE_READ_ONLY","lanePrefix","BEADSCOPE_LANE_PREFIX","configDir","base","XDG_CONFIG_HOME","join","homedir","configFile","osUserName","userInfo","username","gitUserName","cwd","encoding","timeout","stdio","defaults","humanActor","BEADS_ACTOR","humanAllowlist","pollIntervalMs","projects","orders","gamification","hasBeads","p","existsSync","realpathOrSelf","realpathSync","resolve","sameDir","a","b","slug","s","toLowerCase","replace","makeId","absPath","taken","basename","has","Math","random","toString","makeEntry","inputPath","abs","now","Date","toISOString","addedAt","lastOpened","sanitizeProjects","input","Array","isArray","out","seen","Set","it","e","add","push","cached","persist","cfg","mkdirSync","recursive","JSON","parse","readFileSync","next","writeFileSync","stringify","getConfig","d","onDisk","staleActor","humanActorChosen","storedAllowlist","merged","includes","migrated","undefined","legacyPath","repoPath","BEADS_REPO","some","closeActor","assignee","saveConfig","patch","listProjects","getProject","addProject","existing","entry","removeProject","filter","rest","touchProject","x","renameProject","getColumnOrders","projectId","setColumnOrder","columnId","ids","proj"],"mappings":"uCACA,IAAA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAA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,CAAiB,CACjBE,CAAgB,CAChBC,CAAa,EAEb,IAAM1C,EAAMS,IACNkC,EAAO,CAAE,GAAI3C,EAAI5C,MAAM,CAACmF,EAAU,EAAI,CAAC,CAAC,AAAE,EAIhD,OAHAI,CAAI,CAACF,EAAS,CAAGC,EACjB1C,EAAI5C,MAAM,CAAG,CAAE,GAAG4C,EAAI5C,MAAM,CAAE,CAACmF,EAAU,CAAEI,CAAK,EAChD5C,EAAQC,GACD2C,CACT,QArCO,SAASR,AAAa7H,CAAU,EACrC,IAAM0F,EAAMS,IACNlD,EAAIyC,EAAI7C,QAAQ,CAAC5B,IAAI,CAAC,AAAC6G,GAAMA,EAAE9H,EAAE,GAAKA,GACxCiD,GAAG,CACLA,EAAE2B,UAAU,CAAG,IAAIH,OAAOC,WAAW,GACrCe,EAAQC,GAEZ"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[50464,e=>{"use strict";var t=e.i(5622),r=e.i(27080);let a=[8,5,3,2,1],l=e=>50*e*(e+1),n=e=>new Date(e).toISOString().slice(0,10),o=(e,t)=>n(Date.parse(e+"T00:00:00Z")+864e5*t);e.s(["f",0,function(e,s,i,d,c){let p=new Map(e.map(e=>[e.id,e])),u=new Map;for(let r of e)for(let e of r.dependencies??[])t.K.includes(e.type)&&u.set(e.depends_on_id,(u.get(e.depends_on_id)??0)+1);let f=s.filter(e=>"field_change"===e.kind&&e.extra?.field==="status"&&e.extra?.new_value==="closed"&&e.issue_id),y=[];if(f.length>0)for(let e of f){let t=p.get(e.issue_id);t&&y.push({bead:t,actor:e.actor,at:e.created_at?Date.parse(e.created_at):null})}else for(let t of e)t.closed_at&&y.push({bead:t,actor:t.assignee||t.created_by,at:Date.parse(t.closed_at)});let b=new Map,g=new Map;for(let e of y){let t=e.actor||"unknown",r=a[Math.min(4,Math.max(0,e.bead.priority??2))]+(u.get(e.bead.id)??0)*2,l=b.get(t)??{xp:0,closed:0,days:new Set,unblocker:!1,epicSlayer:!1,maxPerDay:0};if(l.xp+=r,l.closed+=1,(u.get(e.bead.id)??0)>0&&(l.unblocker=!0),"epic"===e.bead.issue_type&&(l.epicSlayer=!0),null!==e.at&&Number.isFinite(e.at)){let r=n(e.at);l.days.add(r);let a=g.get(t)??new Map,o=(a.get(r)??0)+1;a.set(r,o),g.set(t,a),o>l.maxPerDay&&(l.maxPerDay=o)}b.set(t,l)}let k=[...b.entries()].map(([e,t])=>{let a=function(e,t){if(0===e.size)return{current:0,longest:0};let r=[...e].sort(),a=1,l=1;for(let e=1;e<r.length;e++)(l=o(r[e-1],1)===r[e]?l+1:1)>a&&(a=l);let s=n(t),i=e.has(s)?s:o(s,-1),d=0;for(;e.has(i);)d++,i=o(i,-1);return{current:d,longest:a}}(t.days,c);return{actor:e,origin:(0,r.P)(e,i),xp:t.xp,closed:t.closed,currentStreak:a.current,longestStreak:a.longest}}).sort((e,t)=>t.xp-e.xp),x=k.reduce((e,t)=>e+t.xp,0),_=k.reduce((e,t)=>e+t.closed,0),m=b.get(d),S=k.find(e=>e.actor===d)??{actor:d,origin:(0,r.P)(d,i),xp:0,closed:0,currentStreak:0,longestStreak:0},h=[{key:"first",label:"First Blood",description:"Close your first bead",earned:S.closed>=1},{key:"unblocker",label:"Unblocker",description:"Close a bead that was blocking others",earned:!!m?.unblocker},{key:"epic",label:"Epic Slayer",description:"Close an epic",earned:!!m?.epicSlayer},{key:"combo",label:"Combo",description:"Close 3+ beads in a single day",earned:(m?.maxPerDay??0)>=3},{key:"onfire",label:"On Fire",description:"Keep a 3-day closing streak",earned:S.currentStreak>=3}];return{actors:k,totalXp:x,totalClosed:_,you:{...S,...function(e){let t=0;for(;e>=l(t+1);)t++;let r=l(t),a=l(t+1)-r;return{level:t,intoLevel:e-r,span:a,progress:a>0?(e-r)/a:0}}(S.xp),badges:h}}}])}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=lib_gamification_ts_0ojrlsdva9tsn._.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/gamification.ts"],"sourcesContent":["import \"server-only\";\nimport { type Bead, BLOCKING_DEP_TYPES } from \"./schema\";\nimport { originOf, type Origin } from \"./attribution\";\nimport type { RawInteraction } from \"./interactions\";\n\n/**\n * Gamification stats engine. Everything is DERIVED from bd history — closes\n * (from the interaction log, or bead.closed_at as a fallback) weighted by\n * priority and by how many beads each close unblocked. No state is stored.\n * Produces XP/levels, daily streaks, badges, and a per-actor leaderboard.\n */\n\nconst PRIORITY_XP = [8, 5, 3, 2, 1]; // P0 (critical) → P4 (backlog)\nconst UNBLOCK_BONUS = 2;\nconst DAY = 86_400_000;\n\nexport interface LevelInfo {\n level: number;\n intoLevel: number;\n span: number;\n progress: number; // 0..1 toward next level\n}\nexport interface ActorStat {\n actor: string;\n origin: Origin;\n xp: number;\n closed: number;\n currentStreak: number;\n longestStreak: number;\n}\nexport interface Badge {\n key: string;\n label: string;\n description: string;\n earned: boolean;\n}\nexport interface YouSummary extends ActorStat, LevelInfo {\n badges: Badge[];\n}\nexport interface GamificationData {\n actors: ActorStat[]; // sorted desc by xp\n totalXp: number;\n totalClosed: number;\n you: YouSummary;\n}\n\n/** Cumulative XP to reach level L: 50·L·(L+1) → 0,100,300,600,1000,… */\nconst needFor = (L: number) => 50 * L * (L + 1);\nexport function levelInfo(xp: number): LevelInfo {\n let level = 0;\n while (xp >= needFor(level + 1)) level++;\n const base = needFor(level);\n const span = needFor(level + 1) - base;\n return { level, intoLevel: xp - base, span, progress: span > 0 ? (xp - base) / span : 0 };\n}\n\nconst dayKey = (t: number) => new Date(t).toISOString().slice(0, 10);\nconst shiftDay = (key: string, deltaDays: number) =>\n dayKey(Date.parse(key + \"T00:00:00Z\") + deltaDays * DAY);\n\nfunction streaks(days: Set<string>, now: number): { current: number; longest: number } {\n if (days.size === 0) return { current: 0, longest: 0 };\n const sorted = [...days].sort();\n let longest = 1;\n let run = 1;\n for (let i = 1; i < sorted.length; i++) {\n run = shiftDay(sorted[i - 1], 1) === sorted[i] ? run + 1 : 1;\n if (run > longest) longest = run;\n }\n // Current streak: walk back from today (or yesterday, if today isn't done yet).\n const today = dayKey(now);\n let cursor = days.has(today) ? today : shiftDay(today, -1);\n let current = 0;\n while (days.has(cursor)) {\n current++;\n cursor = shiftDay(cursor, -1);\n }\n return { current, longest };\n}\n\ninterface Acc {\n xp: number;\n closed: number;\n days: Set<string>;\n unblocker: boolean;\n epicSlayer: boolean;\n maxPerDay: number;\n}\n\nexport function computeGamification(\n beads: Bead[],\n events: RawInteraction[],\n humanAllowlist: string[],\n humanActor: string,\n now: number,\n): GamificationData {\n const byId = new Map(beads.map((b) => [b.id, b]));\n\n // How many beads each bead was blocking (dependents waiting on it).\n const blocking = new Map<string, number>();\n for (const b of beads) {\n for (const d of b.dependencies ?? []) {\n if ((BLOCKING_DEP_TYPES as readonly string[]).includes(d.type)) {\n blocking.set(d.depends_on_id, (blocking.get(d.depends_on_id) ?? 0) + 1);\n }\n }\n }\n\n // Closes (with timestamps) from the interaction log, else bead.closed_at.\n const closeEvents = events.filter(\n (e) => e.kind === \"field_change\" && e.extra?.field === \"status\" && e.extra?.new_value === \"closed\" && e.issue_id,\n );\n const closes: { bead: Bead; actor?: string; at: number | null }[] = [];\n if (closeEvents.length > 0) {\n for (const e of closeEvents) {\n const bead = byId.get(e.issue_id!);\n if (bead) closes.push({ bead, actor: e.actor, at: e.created_at ? Date.parse(e.created_at) : null });\n }\n } else {\n for (const b of beads) {\n if (b.closed_at) closes.push({ bead: b, actor: b.assignee || b.created_by, at: Date.parse(b.closed_at) });\n }\n }\n\n const acc = new Map<string, Acc>();\n const dayCount = new Map<string, Map<string, number>>(); // actor → day → count\n for (const c of closes) {\n const actor = c.actor || \"unknown\";\n const pr = Math.min(4, Math.max(0, c.bead.priority ?? 2));\n const xp = PRIORITY_XP[pr] + (blocking.get(c.bead.id) ?? 0) * UNBLOCK_BONUS;\n const a = acc.get(actor) ?? { xp: 0, closed: 0, days: new Set<string>(), unblocker: false, epicSlayer: false, maxPerDay: 0 };\n a.xp += xp;\n a.closed += 1;\n if ((blocking.get(c.bead.id) ?? 0) > 0) a.unblocker = true;\n if (c.bead.issue_type === \"epic\") a.epicSlayer = true;\n if (c.at !== null && Number.isFinite(c.at)) {\n const k = dayKey(c.at);\n a.days.add(k);\n const dc = dayCount.get(actor) ?? new Map<string, number>();\n const n = (dc.get(k) ?? 0) + 1;\n dc.set(k, n);\n dayCount.set(actor, dc);\n if (n > a.maxPerDay) a.maxPerDay = n;\n }\n acc.set(actor, a);\n }\n\n const actors: ActorStat[] = [...acc.entries()]\n .map(([actor, a]) => {\n const s = streaks(a.days, now);\n return {\n actor,\n origin: originOf(actor, humanAllowlist),\n xp: a.xp,\n closed: a.closed,\n currentStreak: s.current,\n longestStreak: s.longest,\n };\n })\n .sort((x, y) => y.xp - x.xp);\n\n const totalXp = actors.reduce((s, a) => s + a.xp, 0);\n const totalClosed = actors.reduce((s, a) => s + a.closed, 0);\n\n const mineAcc = acc.get(humanActor);\n const mineStat: ActorStat = actors.find((a) => a.actor === humanActor) ?? {\n actor: humanActor,\n origin: originOf(humanActor, humanAllowlist),\n xp: 0,\n closed: 0,\n currentStreak: 0,\n longestStreak: 0,\n };\n const badges: Badge[] = [\n { key: \"first\", label: \"First Blood\", description: \"Close your first bead\", earned: mineStat.closed >= 1 },\n { key: \"unblocker\", label: \"Unblocker\", description: \"Close a bead that was blocking others\", earned: !!mineAcc?.unblocker },\n { key: \"epic\", label: \"Epic Slayer\", description: \"Close an epic\", earned: !!mineAcc?.epicSlayer },\n { key: \"combo\", label: \"Combo\", description: \"Close 3+ beads in a single day\", earned: (mineAcc?.maxPerDay ?? 0) >= 3 },\n { key: \"onfire\", label: \"On Fire\", description: \"Keep a 3-day closing streak\", earned: mineStat.currentStreak >= 3 },\n ];\n\n return {\n actors,\n totalXp,\n totalClosed,\n you: { ...mineStat, ...levelInfo(mineStat.xp), badges },\n };\n}\n"],"names":["PRIORITY_XP","UNBLOCK_BONUS","DAY","needFor","L","levelInfo","xp","level","base","span","intoLevel","progress","dayKey","t","Date","toISOString","slice","shiftDay","key","deltaDays","parse","streaks","days","now","size","current","longest","sorted","sort","run","i","length","today","cursor","has","computeGamification","beads","events","humanAllowlist","humanActor","byId","Map","map","b","id","blocking","d","dependencies","includes","type","set","depends_on_id","get","closeEvents","filter","e","kind","extra","field","new_value","issue_id","closes","bead","push","actor","at","created_at","closed_at","assignee","created_by","acc","dayCount","c","pr","Math","min","max","priority","a","closed","Set","unblocker","epicSlayer","maxPerDay","issue_type","Number","isFinite","k","add","dc","n","actors","entries","s","origin","currentStreak","longestStreak","x","y","totalXp","reduce","totalClosed","mineAcc","mineStat","find","badges","label","description","earned","you"],"mappings":"uCACA,IAAA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OAUA,IAAMA,EAAc,CAAC,EAAG,EAAG,EAAG,EAAG,EAAE,CAmC7BG,CAnC+B,CAmCpBC,AAAD,GAAe,GAAKA,GAAKA,CAAD,EAAK,CAAC,CASxCQ,EAAS,AAACC,GAAc,IAAIC,KAAKD,EA5C6B,CA4C1BE,WAAW,GAAGC,KAAK,CAAC,EAAG,IAC3DC,EAAW,CAACC,EAAaC,IAC7BP,EAAOE,KAAKM,KAAK,CAACF,EAAM,cAAgBC,AA5C9B,YA4C0CjB,QA+B/C,SAASiC,AACdC,CAAa,CACbC,CAAwB,CACxBC,CAAwB,CACxBC,CAAkB,CAClBhB,CAAW,EAEX,IAAMiB,EAAO,IAAIC,IAAIL,EAAMM,GAAG,CAAC,AAACC,GAAM,CAACA,EAAEC,EAAE,CAAED,EAAE,GAGzCE,EAAW,IAAIJ,IACrB,IAAK,IAAME,KAAKP,EACd,IAAK,AADgB,IACVU,KAAKH,EAAEI,YAAY,EAAI,EAAE,CAAE,AAC/B,EAAA,CAAkB,CAAuBC,QAAQ,CAACF,EAAEG,IAAI,GAAG,AAC9DJ,EAASK,GAAG,CAACJ,EAAEK,aAAa,CAAE,CAACN,EAASO,GA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,QAASwF,MAAO,QAASC,YAAa,iCAAkCC,OAAQ,CAACN,GAASnB,YAAa,CAAC,EAAK,CAAE,EACtH,CAAEjE,IAAK,SAAUwF,MAAO,UAAWC,YAAa,8BAA+BC,OAAQL,EAASR,aAAa,EAAI,CAAE,EACpH,CAED,MAAO,QACLJ,UACAQ,EACAE,cACAQ,IAAK,CAAE,GAAGN,CAAQ,CAAE,GAAGlG,AAzIpB,SAASA,AAAUC,CAAU,EAClC,IAAIC,EAAQ,EACZ,KAAOD,GAAMH,EAAQI,EAAQ,IAAIA,IACjC,IAAMC,EAAOL,EAAQI,GACfE,EAAON,EAAQI,EAAQ,GAAKC,EAClC,MAAO,OAAED,EAAOG,UAAWJ,EAAKE,EAAMC,OAAME,SAAUF,EAAO,EAAI,CAACH,EAAKE,CAAAA,CAAI,CAAIC,EAAO,CAAE,CAC1F,EAmIqC8F,EAASjG,EAAE,CAAC,QAAEmG,CAAO,CACxD,CACF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[60759,e=>{"use strict";var a=e.i(74533),t=e.i(12057),r=e.i(2157),i=e.i(50227);let n=(0,t.promisify)(a.execFile),s=/^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/;function o(e){let a=/^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.exec(e);if(!a)throw Error("Invalid version metadata. Check the release instructions.");return{numbers:a.slice(1,4).map(Number),prerelease:!!a[4]}}function l(e,a){let t=o(e),r=o(a);for(let e=0;e<3;e++)if(t.numbers[e]!==r.numbers[e])return t.numbers[e]>r.numbers[e];return r.prerelease}var u=e.i(9069);let c=function(e){let a,t,{cwd:o,version:u,repository:c}=e,h=e.remote??`https://github.com/${c}.git`,d=e.fetch??fetch,p=e.run??((e,a,t)=>n(e,a,t)),f=!1,m=!1,w=()=>r.default.existsSync(i.default.join(o,".git")),g=async(...e)=>(await p("git",e,{cwd:o,timeout:2e4,maxBuffer:4194304})).stdout.trim();async function b(e){let a=await d(`https://api.github.com/repos/${c}/releases/${e?`tags/${encodeURIComponent(e)}`:"latest"}`,{headers:{Accept:"application/vnd.github+json"},signal:AbortSignal.timeout(1e4),cache:"no-store"});if(404===a.status&&!e)return null;if(!a.ok)throw Error(`Release check unavailable (${a.status}). Try again later.`);let t=await a.json();if(t.draft||t.prerelease||"string"!=typeof t.tag_name||!s.test(t.tag_name)||e&&t.tag_name!==e)throw Error("Invalid stable release metadata.");return t.tag_name}async function v(){return a&&a.until>Date.now()?a.value:(t||(t=b().then(e=>(a={value:e,until:Date.now()+3e5},e)).finally(()=>{t=void 0})),t)}async function y(e,a){let t="stable"===e?`refs/tags/${a}`:"refs/heads/main",r=[...new Map((await g("ls-remote",h,t,`${t}^{}`)).split("\n").map(e=>e.split(/\s+/)))],i=r.find(([,e])=>e===`${t}^{}`)?.[0]??r.find(([,e])=>e===t)?.[0];if(!i||!/^[a-f0-9]{40}$/.test(i))throw Error("The update target is unavailable.");return i}async function E(){if(!w())return"This installation needs a manual update. Run `npm install -g beadscope` or `brew upgrade beadscope`, then `beadscope stop` and `beadscope start`; for a source download or Docker, follow the release notes.";let e=await g("branch","--show-current");return e&&"main"!==e?"Switch to the main branch before updating; your working branch will not be changed.":await g("status","--porcelain")?"Your checkout has uncommitted changes. Commit or stash them before updating.":void 0}return{check:async function(a="stable"){let t={channel:a,currentVersion:u,isGitRepo:w(),supervised:!!e.supervised,updateAvailable:!1,canUpdate:!1,behind:0,localSha:"",remoteSha:""};try{if("stable"===a){let e=await v();if(!e||(t.latestVersion=e.replace(/^v/,""),t.releaseUrl=`https://github.com/${c}/releases/tag/${encodeURIComponent(e)}`,t.updateAvailable=l(e,u),!t.updateAvailable)||(t.manualReason=await E(),!t.isGitRepo))return t;t.localSha=await g("rev-parse","HEAD"),t.remoteSha=await y(a,e),t.target={channel:a,tag:e,sha:t.remoteSha}}else{if(!t.isGitRepo)return{...t,manualReason:"Development updates require a Git checkout."};t.localSha=await g("rev-parse","HEAD"),t.remoteSha=await y(a),await g("fetch","--quiet","--no-tags","--no-write-fetch-head",h,t.remoteSha),t.behind=Number(await g("rev-list","--count",`HEAD..${t.remoteSha}`));let r=!!e.buildSha&&!t.localSha.startsWith(e.buildSha);t.updateAvailable=t.behind>0||r&&t.localSha===t.remoteSha,t.target={channel:a,sha:t.remoteSha},t.manualReason=await E()}return t.canUpdate=t.updateAvailable&&!t.manualReason,t}catch(e){return{...t,canUpdate:!1,error:e.message}}},update:async function(a){if(f)throw Error("An update is already running.");f=!0;try{if(!a||!["stable","development"].includes(a.channel)||!/^[a-f0-9]{40}$/.test(a.sha)||"stable"===a.channel&&(!a.tag||!s.test(a.tag)))throw Error("Invalid update target. Check for updates again.");if(!w())throw Error("A Git checkout is required for in-app updates. See the release instructions.");let t=await E();if(t)throw Error(t);if("stable"===a.channel&&(await b(a.tag),!l(a.tag,u)))throw Error("This release is not newer than the running version.");if(await y(a.channel,a.tag)!==a.sha)throw Error("The advertised update target changed. Check for updates again.");if(await g("fetch","--quiet","--no-tags","--no-write-fetch-head",h,a.sha),"stable"===a.channel){let e=JSON.parse(await g("show",`${a.sha}:package.json`));if("beadscope"!==e.name||e.version!==a.tag.replace(/^v/,""))throw Error("Release tag and package version do not match.")}let r=await g("rev-parse","HEAD");try{await g("merge-base","--is-ancestor",r,a.sha)}catch{throw Error("Your checkout has diverged from this update. A fast-forward is required; no local work was overwritten.")}let i=await E();if(i)throw Error(i);if(await g("rev-parse","HEAD")!==r)throw Error("The checkout changed while preparing the update. Try again.");let n=[],c=async(e,a,t)=>{try{let r=await p(a,t,{cwd:o,timeout:3e5,maxBuffer:0x4000000});n.push({name:e,ok:!0,output:`${r.stdout}${r.stderr}`.slice(-4e3)})}catch{throw Error(`${e} failed. Source files may already be updated; fix the problem and retry, or rebuild manually.`)}};await c("Install selected source version","git",["merge","--ff-only",a.sha]);let d=await g("rev-parse","HEAD");if(d!==a.sha)throw Error("The checkout does not match the selected update.");return await c("Install dependencies","npm",["ci","--include=dev","--no-audit","--no-fund"]),await c("Build app","npm",["run","build"]),m=!!e.supervised,{ok:!0,steps:n,restarting:m,fromSha:r,toSha:d}}finally{m||(f=!1)}}}}({cwd:process.cwd(),version:u.K,buildSha:u.p,repository:u.B,supervised:"1"===process.env.BEADSCOPE_SUPERVISED}),h=c.check,d=c.update;e.s(["D",0,75,"Y",0,h,"O",0,d],60759)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=lib_self-update_ts_1s_0im4leryko._.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/update-service.ts","../../../lib/self-update.ts"],"sourcesContent":["import { execFile } from \"node:child_process\";\nimport { promisify } from \"node:util\";\nimport fs from \"node:fs\";\nimport path from \"node:path\";\nimport type { UpdateChannel, UpdateStatus, UpdateTarget, UpdateResult, UpdateStep } from \"./update-types\";\n\nconst exec = promisify(execFile);\ntype Runner = (cmd: string, args: string[], options: { cwd: string; timeout: number; maxBuffer: number }) => Promise<{ stdout: string; stderr: string }>;\ntype Options = { cwd: string; version: string; buildSha?: string; repository: string; remote?: string; supervised?: boolean; fetch?: typeof fetch; run?: Runner };\nconst tagPattern = /^v?(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$/;\nfunction versionParts(value: string) {\n const match = /^v?(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$/.exec(value);\n if (!match) throw new Error(\"Invalid version metadata. Check the release instructions.\");\n return { numbers: match.slice(1, 4).map(Number), prerelease: !!match[4] };\n}\nfunction newer(stable: string, current: string): boolean {\n const a = versionParts(stable), b = versionParts(current);\n for (let i = 0; i < 3; i++) if (a.numbers[i] !== b.numbers[i]) return a.numbers[i] > b.numbers[i];\n return b.prerelease;\n}\n\n/** Release discovery and exact-target updates. The app wrapper supplies build-time version metadata. */\nexport function createUpdater(options: Options) {\n const { cwd, version, repository } = options;\n const remote = options.remote ?? `https://github.com/${repository}.git`;\n const send = options.fetch ?? fetch;\n const runner: Runner = options.run ?? ((cmd, args, opts) => exec(cmd, args, opts));\n let updating = false;\n let restartPending = false;\n let cached: { until: number; value: string | null } | undefined;\n let pending: Promise<string | null> | undefined;\n const isGit = () => fs.existsSync(path.join(cwd, \".git\"));\n const git = async (...args: string[]) => (await runner(\"git\", args, { cwd, timeout: 20_000, maxBuffer: 4 * 1024 * 1024 })).stdout.trim();\n async function releaseTag(tag?: string): Promise<string | null> {\n const response = await send(`https://api.github.com/repos/${repository}/releases/${tag ? `tags/${encodeURIComponent(tag)}` : \"latest\"}`, {\n headers: { Accept: \"application/vnd.github+json\" }, signal: AbortSignal.timeout(10_000), cache: \"no-store\",\n });\n if (response.status === 404 && !tag) return null;\n if (!response.ok) throw new Error(`Release check unavailable (${response.status}). Try again later.`);\n const value = await response.json();\n if (value.draft || value.prerelease || typeof value.tag_name !== \"string\" || !tagPattern.test(value.tag_name) || (tag && value.tag_name !== tag)) {\n throw new Error(\"Invalid stable release metadata.\");\n }\n return value.tag_name;\n }\n async function latest() {\n if (cached && cached.until > Date.now()) return cached.value;\n if (!pending) pending = releaseTag().then(value => { cached = { value, until: Date.now() + 300_000 }; return value; }).finally(() => { pending = undefined; });\n return pending;\n }\n async function resolve(channel: UpdateChannel, tag?: string) {\n const ref = channel === \"stable\" ? `refs/tags/${tag}` : \"refs/heads/main\";\n const lines = (await git(\"ls-remote\", remote, ref, `${ref}^{}`)).split(\"\\n\");\n const refs = new Map(lines.map(line => line.split(/\\s+/)) as [string, string][]);\n // ls-remote puts the SHA first; prefer the peeled commit for annotated tags.\n const entries = [...refs];\n const sha = entries.find(([, name]) => name === `${ref}^{}`)?.[0] ?? entries.find(([, name]) => name === ref)?.[0];\n if (!sha || !/^[a-f0-9]{40}$/.test(sha)) throw new Error(\"The update target is unavailable.\");\n return sha;\n }\n async function checkoutProblem(): Promise<string | undefined> {\n if (!isGit()) return \"This installation needs a manual update. Run `npm install -g beadscope` or `brew upgrade beadscope`, then `beadscope stop` and `beadscope start`; for a source download or Docker, follow the release notes.\";\n const branch = await git(\"branch\", \"--show-current\");\n if (branch && branch !== \"main\") return \"Switch to the main branch before updating; your working branch will not be changed.\";\n if (await git(\"status\", \"--porcelain\")) return \"Your checkout has uncommitted changes. Commit or stash them before updating.\";\n }\n async function check(channel: UpdateChannel = \"stable\"): Promise<UpdateStatus> {\n const base: UpdateStatus = { channel, currentVersion: version, isGitRepo: isGit(), supervised: !!options.supervised,\n updateAvailable: false, canUpdate: false, behind: 0, localSha: \"\", remoteSha: \"\" };\n try {\n if (channel === \"stable\") {\n const tag = await latest();\n if (!tag) return base;\n base.latestVersion = tag.replace(/^v/, \"\");\n base.releaseUrl = `https://github.com/${repository}/releases/tag/${encodeURIComponent(tag)}`;\n base.updateAvailable = newer(tag, version);\n if (!base.updateAvailable) return base;\n base.manualReason = await checkoutProblem();\n if (!base.isGitRepo) return base;\n base.localSha = await git(\"rev-parse\", \"HEAD\");\n base.remoteSha = await resolve(channel, tag);\n base.target = { channel, tag, sha: base.remoteSha };\n } else {\n if (!base.isGitRepo) return { ...base, manualReason: \"Development updates require a Git checkout.\" };\n base.localSha = await git(\"rev-parse\", \"HEAD\");\n base.remoteSha = await resolve(channel);\n await git(\"fetch\", \"--quiet\", \"--no-tags\", \"--no-write-fetch-head\", remote, base.remoteSha);\n base.behind = Number(await git(\"rev-list\", \"--count\", `HEAD..${base.remoteSha}`));\n // HEAD can advance before a build fails. Keep the advertised update available\n // until the running build catches up, including after a browser reload.\n const buildBehind = !!options.buildSha && !base.localSha.startsWith(options.buildSha);\n base.updateAvailable = base.behind > 0 || (buildBehind && base.localSha === base.remoteSha);\n base.target = { channel, sha: base.remoteSha };\n base.manualReason = await checkoutProblem();\n }\n base.canUpdate = base.updateAvailable && !base.manualReason;\n return base;\n } catch (e) { return { ...base, canUpdate: false, error: (e as Error).message }; }\n }\n async function update(target: UpdateTarget): Promise<UpdateResult> {\n if (updating) throw new Error(\"An update is already running.\");\n updating = true;\n try {\n if (!target || ![\"stable\", \"development\"].includes(target.channel) || !/^[a-f0-9]{40}$/.test(target.sha) ||\n (target.channel === \"stable\" && (!target.tag || !tagPattern.test(target.tag)))) throw new Error(\"Invalid update target. Check for updates again.\");\n if (!isGit()) throw new Error(\"A Git checkout is required for in-app updates. See the release instructions.\");\n const problem = await checkoutProblem(); if (problem) throw new Error(problem);\n if (target.channel === \"stable\") {\n await releaseTag(target.tag);\n if (!newer(target.tag!, version)) throw new Error(\"This release is not newer than the running version.\");\n }\n const resolved = await resolve(target.channel, target.tag);\n if (resolved !== target.sha) throw new Error(\"The advertised update target changed. Check for updates again.\");\n await git(\"fetch\", \"--quiet\", \"--no-tags\", \"--no-write-fetch-head\", remote, target.sha);\n if (target.channel === \"stable\") {\n const manifest = JSON.parse(await git(\"show\", `${target.sha}:package.json`));\n if (manifest.name !== \"beadscope\" || manifest.version !== target.tag!.replace(/^v/, \"\")) throw new Error(\"Release tag and package version do not match.\");\n }\n const fromSha = await git(\"rev-parse\", \"HEAD\");\n try { await git(\"merge-base\", \"--is-ancestor\", fromSha, target.sha); }\n catch { throw new Error(\"Your checkout has diverged from this update. A fast-forward is required; no local work was overwritten.\"); }\n // Recheck after network requests, before changing tracked files.\n const recheck = await checkoutProblem(); if (recheck) throw new Error(recheck);\n if (await git(\"rev-parse\", \"HEAD\") !== fromSha) throw new Error(\"The checkout changed while preparing the update. Try again.\");\n const steps: UpdateStep[] = [];\n const run = async (name: string, command: string, args: string[]) => {\n try { const output = await runner(command, args, { cwd, timeout: 300_000, maxBuffer: 64 * 1024 * 1024 });\n steps.push({ name, ok: true, output: `${output.stdout}${output.stderr}`.slice(-4000) });\n } catch { throw new Error(`${name} failed. Source files may already be updated; fix the problem and retry, or rebuild manually.`); }\n };\n await run(\"Install selected source version\", \"git\", [\"merge\", \"--ff-only\", target.sha]);\n const toSha = await git(\"rev-parse\", \"HEAD\");\n if (toSha !== target.sha) throw new Error(\"The checkout does not match the selected update.\");\n // Always install locked dependencies: this also repairs retries after a failed build/install.\n await run(\"Install dependencies\", \"npm\", [\"ci\", \"--include=dev\", \"--no-audit\", \"--no-fund\"]);\n await run(\"Build app\", \"npm\", [\"run\", \"build\"]);\n restartPending = !!options.supervised;\n return { ok: true, steps, restarting: restartPending, fromSha, toSha };\n } finally { if (!restartPending) updating = false; }\n }\n return { check, update };\n}\n","import \"server-only\";\nimport { createUpdater } from \"./update-service\";\nimport { APP_VERSION, BUILD_SHA, GITHUB_REPO } from \"./build-info\";\nexport type { UpdateStatus, UpdateStep, UpdateResult } from \"./update-types\";\nexport const RESTART_EXIT_CODE = 75;\nconst updater = createUpdater({ cwd: process.cwd(), version: APP_VERSION, buildSha: BUILD_SHA, repository: GITHUB_REPO, supervised: process.env.BEADSCOPE_SUPERVISED === \"1\" });\nexport const checkForUpdate = updater.check;\nexport const runUpdate = updater.update;\n"],"names":["exec","tagPattern","versionParts","value","match","Error","numbers","slice","map","Number","prerelease","newer","stable","current","a","b","i","createUpdater","options","cwd","version","repository","remote","send","fetch","runner","run","cmd","args","opts","updating","restartPending","cached","pending","isGit","existsSync","join","git","timeout","maxBuffer","stdout","trim","releaseTag","tag","response","encodeURIComponent","headers","Accept","signal","AbortSignal","cache","status","ok","json","draft","tag_name","test","latest","until","Date","now","then","finally","undefined","resolve","channel","ref","lines","split","refs","Map","line","entries","sha","find","name","checkoutProblem","branch","check","base","currentVersion","isGitRepo","supervised","updateAvailable","canUpdate","behind","localSha","remoteSha","latestVersion","replace","releaseUrl","manualReason","target","buildBehind","buildSha","startsWith","e","error","message","update","includes","problem","resolved","manifest","JSON","parse","fromSha","recheck","steps","command","output","push","stderr","toSha","restarting"],"mappings":"uCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA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,EAAY,EAAQ,MAAM,YAHN"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
module.exports=[83535,e=>{"use strict";var t=e.i(72507),d=e.i(41318),a=e.i(5622);function s(e,t,d,a,r,n,i,o,c={}){let l=[];return o&&l.push({issue_id:e,depends_on_id:o,type:"parent-child"}),(c.blocks??[]).forEach(t=>l.push({issue_id:e,depends_on_id:t,type:"blocks"})),(c.related??[]).forEach(t=>l.push({issue_id:e,depends_on_id:t,type:"related"})),{id:e,title:t,issue_type:d,status:a,priority:r,assignee:i||"",created_by:n,description:c.description??"",notes:c.notes??"",design:c.design??"",acceptance_criteria:c.acceptance_criteria??"",created_at:c.created_at??"2026-06-09T10:00:00Z",updated_at:c.updated_at??"2026-06-14T15:00:00Z",closed_at:"closed"===a?c.closed_at??"2026-06-15T11:00:00Z":null,close_reason:"closed"===a?c.close_reason??"Closed":null,labels:c.labels??[],dependencies:l,comments:c.comments??[],parent:o??null}}let r=(e,t,d)=>({author:e,text:t,created_at:d}),n=[s("bd-9f2a","Adapter & schema (M0)","epic","in_progress",1,"stevey","stevey",null,{description:"The bd bridge, Zod schemas, config, and a doctor preflight. Everything else builds on this.",created_at:"2026-06-02T09:00:00Z"}),s("bd-3c71","Board read (M1)","epic","open",1,"stevey","stevey",null,{description:"Read-only board: columns, filters, search, origin badges and a detail drawer. Powered by bd list/ready/blocked."}),s("bd-7e40","Write basics (M2)","epic","open",2,"stevey","dana",null,{description:"Create/edit/close/delete, comments, attribution stamping, optimistic updates + toasts."}),s("bd-b18d","Flow & epics (M3)","epic","deferred",2,"stevey","",null,{description:"Backlog↔Ready DnD, Kanban statuses, epics with progress, archive."}),s("bd-c552","Dependencies & graph (M4)","epic","deferred",3,"claude-agent","",null,{description:"Dep panel add/remove with cycle checks; React Flow graph with drag-to-link."}),s("bd-1a09","Polish & ship (M5)","epic","deferred",3,"stevey","",null,{description:"Keyboard nav, settings, theming, Playwright e2e, docs."}),s("bd-9f2a.1","bd adapter: execFile + JSON envelope","task","closed",0,"claude-agent","claude-agent","bd-9f2a",{description:"Spawn bd with BD_JSON_ENVELOPE=1, args as an array, parse {schema_version,data}.",comments:[r("stevey","Confirmed args-as-array kills the injection risk. Nice.","2026-06-05T12:00:00Z")]}),s("bd-9f2a.2","Zod schemas for Bead / Dependency / Comment","task","closed",1,"stevey","stevey","bd-9f2a",{description:"One schema set parses bd --json output and validates form input."}),s("bd-9f2a.3","Config module (repo path, actor, allowlist)","task","in_progress",2,"stevey","stevey","bd-9f2a",{description:"Small JSON config under the OS config dir. No new persisted bead schema.",comments:[r("dana","Can we derive the default actor from git config user.email?","2026-06-14T09:30:00Z"),r("stevey","Yep, falling back to whoami if git is unset.","2026-06-14T10:05:00Z")]}),s("bd-9f2a.4","bd doctor / version preflight","chore","open",2,"amp-bot","amp-bot","bd-9f2a",{description:"Run bd doctor + bd --version on boot; warn on schema_version drift."}),s("bd-9f2a.5","Serialize writes through a mutex queue","task","open",1,"stevey","stevey","bd-9f2a",{description:"Embedded Dolt is single-writer. Queue writes so concurrent UI actions can't collide.",blocks:["bd-9f2a.1"]}),s("bd-3c71.1","Board columns + card component","feature","in_progress",1,"cursor-agent","cursor-agent","bd-3c71",{description:"Five-column board; dense cards with id, type, priority, assignee, origin, counts.",comments:[r("stevey","Let's keep cards draggable but open detail on click.","2026-06-15T14:00:00Z")]}),s("bd-3c71.2","Top bar filters + text search","feature","open",2,"stevey","","bd-3c71",{description:"Status/type/priority/label/assignee filters + fuzzy text search.",blocks:["bd-3c71.1"]}),s("bd-3c71.3","Origin badge (human vs agent)","feature","open",2,"stevey","dana","bd-3c71",{description:"Derive origin from created_by vs the human allowlist; badge + tooltip."}),s("bd-3c71.4","Detail drawer (read-only)","feature","open",2,"claude-agent","claude-agent","bd-3c71",{description:"Full fields, deps panel, comments thread, activity. From bd show <id>.",blocks:["bd-3c71.1"]}),s("bd-3c71.5","Empty / loading / error states","chore","deferred",3,"stevey","","bd-3c71",{description:"Skeletons, empty columns, typed BdError surfaces."}),s("bd-7e40.1","Create modal + bd create wiring","feature","open",1,"stevey","stevey","bd-7e40",{description:"Type, title, description, priority, assignee, labels, parent epic. Zod-validated."}),s("bd-7e40.2","Inline edit (send only changed fields)","feature","deferred",2,"amp-bot","","bd-7e40",{description:"bd update <id> with only the changed flags."}),s("bd-7e40.3","Comments thread + composer","feature","open",2,"stevey","dana","bd-7e40",{description:"Author-stamped comments; newest-last with relative time."}),s("bd-7e40.4","Attribution stamping (BEADS_ACTOR)","task","open",1,"stevey","stevey","bd-7e40",{description:"Every UI write runs with BEADS_ACTOR=<humanActor>."}),s("bd-7e40.5","Optimistic updates + toasts","task","deferred",2,"claude-agent","","bd-7e40",{description:"TanStack Query optimistic mutations with rollback on adapter error."}),s("bd-b18d.1","Backlog ↔ Ready drag-and-drop","feature","deferred",2,"stevey","","bd-b18d",{description:"dnd-kit; de-defer on drop to Ready, land in Blocked if still dep-blocked."}),s("bd-b18d.2","Kanban status columns","feature","deferred",3,"stevey","","bd-b18d",{description:"open → in_progress → closed via columns."}),s("bd-b18d.3","Archive = close + label archived","chore","deferred",3,"amp-bot","","bd-b18d",{description:"No native bd archive; reversible close+label, hidden by a standing filter."}),s("bd-b18d.4","Epic progress bars","feature","deferred",3,"stevey","","bd-b18d",{description:"closed ÷ total children, computed client-side for live render."}),s("bd-c552.1","React Flow graph scaffold","spike","deferred",3,"claude-agent","","bd-c552",{description:"Nodes = beads, typed edges; pan/zoom; scope to an epic neighborhood."}),s("bd-c552.2","Drag-to-link with cycle check","feature","deferred",3,"stevey","","bd-c552",{description:"Drag node→node to create a dep; bd dep cycles refuses cycles.",blocks:["bd-c552.1"]}),s("bd-c552.3","bd dep cycles validation","task","deferred",3,"cursor-agent","","bd-c552",{description:"Server-side cycle guard before committing blocks/parent-child edges."}),s("bd-1a09.1","Keyboard nav (n, /, j, k, e)","chore","deferred",4,"stevey","","bd-1a09",{description:"Keyboard-first board: new, search, navigate, edit."}),s("bd-1a09.2","Playwright e2e flows","chore","deferred",4,"amp-bot","","bd-1a09",{description:"End-to-end the create→drag→comment→archive flows."}),s("bd-1a09.3","README + setup docs","story","closed",4,"stevey","stevey","bd-1a09",{description:"Setup, bd version range, troubleshooting.",closed_at:"2026-06-17T09:00:00Z"}),s("bd-44b1","Decision: Backlog = deferred status","decision","closed",1,"stevey","stevey",null,{description:"Map the Backlog column to beads' built-in deferred status rather than inventing new schema.",comments:[r("dana","Agreed — zero new persisted state, stays correct with bd.","2026-06-08T16:00:00Z")]}),s("bd-8d3e","Bug: ready queue shows deferred beads","bug","open",0,"claude-agent","stevey",null,{description:"bd ready should exclude deferred; some deferred beads leak into Ready in the UI cache.",related:["bd-3c71.1"],comments:[r("claude-agent","Repro: defer a bead, it stays in Ready until refetch.","2026-06-16T08:00:00Z")]}),s("bd-2f9c","Bug: drag-drop flickers on rollback","bug","blocked",1,"cursor-agent","cursor-agent",null,{description:"Optimistic move then adapter error causes a visible flicker on rollback.",related:["bd-b18d.1"]}),s("bd-5a77","Switch integration to a REST API","task","closed",3,"amp-bot","amp-bot",null,{description:"Superseded — beads has no HTTP API; we shell out to the CLI.",labels:["archived"],closed_at:"2026-06-07T10:00:00Z",close_reason:"Superseded by the CLI adapter approach."}),s("bd-hmn1","Need a human call: which OAuth provider for sign-in?","decision","open",1,"claude-agent","stevey",null,{description:"I can wire Clerk, Auth0, or Descope. Clerk is the native Marketplace option — but you own this call before I build the middleware.",labels:["human"],created_at:"2026-06-24T08:30:00Z",updated_at:"2026-06-24T08:30:00Z"}),s("bd-hmn2","Decision needed: drop the legacy CSV export?","decision","open",2,"cursor-agent","",null,{description:"Usage is near zero and it blocks the new report template. OK to remove it?",labels:["human"],created_at:"2026-06-24T09:10:00Z",updated_at:"2026-06-24T09:10:00Z"}),s("bd-ck1","Ship the onboarding flow","feature","in_progress",1,"stevey","stevey",null,{description:"Guided first-run experience.\n\n## Acceptance criteria\n- [x] Detect first launch\n- [x] Welcome step with the project picker\n- [ ] Sample project seeding\n- [ ] Dismiss + don't-show-again\n- [ ] Docs link\n\nSee the **[spec](https://github.com/sai-manoj-kumar/beadscope)** for the full flow.",created_at:"2026-06-20T10:00:00Z",updated_at:"2026-06-24T11:00:00Z",comments:[r("dana","Love it — keep the welcome step to one screen.","2026-06-24T11:30:00Z")]}),s("bd-win1","Fix flaky drag-drop rollback","bug","closed",1,"stevey","stevey",null,{description:"Coalesce optimistic moves so rollback no longer flickers.",created_at:"2026-06-19T09:00:00Z",closed_at:"2026-06-21T16:30:00Z"}),s("bd-win2","Speed up board first paint","task","closed",2,"stevey","stevey",null,{description:"Memoize the index and lazy-load the graph bundle.",created_at:"2026-06-20T09:00:00Z",closed_at:"2026-06-22T14:00:00Z"}),s("bd-win3","Land the search index everything waited on","task","closed",0,"stevey","stevey",null,{description:"Unblocks the filter rollout.",blocks:["bd-3c71.2"],created_at:"2026-06-21T09:00:00Z",closed_at:"2026-06-23T13:00:00Z"}),s("bd-win4","Polish the empty states","chore","closed",2,"stevey","stevey",null,{description:"Friendly skeletons and zero-states across views.",created_at:"2026-06-23T09:00:00Z",closed_at:"2026-06-24T10:00:00Z"}),s("bd-win5","Tidy the settings layout","chore","closed",2,"stevey","stevey",null,{description:"Group attribution, freshness, and theme into cards.",created_at:"2026-06-23T15:00:00Z",closed_at:"2026-06-24T12:00:00Z"}),s("bd-epic-x","Onboarding & polish (M6)","epic","closed",1,"stevey","stevey",null,{description:"First-run onboarding, empty states, and a performance pass.",created_at:"2026-06-15T09:00:00Z",closed_at:"2026-06-24T10:30:00Z"}),s("bd-ag1","Auto-label stale beads","task","closed",2,"claude-agent","claude-agent",null,{description:"Nightly sweep tags beads with no activity in 14 days.",created_at:"2026-06-18T09:00:00Z",closed_at:"2026-06-22T20:00:00Z"}),s("bd-ag2","Generate the weekly digest","task","closed",3,"cursor-agent","cursor-agent",null,{description:"Summarize closed work into a shareable digest.",created_at:"2026-06-19T09:00:00Z",closed_at:"2026-06-23T21:00:00Z"}),s("bd-ag3","Backfill missing assignees","chore","closed",3,"claude-agent","claude-agent",null,{description:"Infer assignee from the last status-change actor.",created_at:"2026-06-20T09:00:00Z",closed_at:"2026-06-24T07:00:00Z"})],i=()=>new Date().toISOString();function o(e){let t=n.find(t=>t.id===e);if(!t)throw Error(`bead not found: ${e}`);return t}let c={kind:"demo",list:async()=>n.map(e=>({...e})),get:async e=>n.find(t=>t.id===e)??null,async create(e,t){let d="bd-"+Math.random().toString(16).slice(2,6),s=[];e.parent&&s.push({issue_id:d,depends_on_id:e.parent,type:"parent-child"});let r=a.Y.parse({id:d,title:e.title.trim(),issue_type:e.issue_type,status:e.backlog?"deferred":"open",priority:e.priority,assignee:e.assignee||"",created_by:t,description:e.description??"",created_at:i(),updated_at:i(),closed_at:null,labels:e.labels??[],dependencies:s,comments:[],parent:e.parent||null});return n=[...n,r],r},async update(e,t){let d=o(e);return Object.assign(d,t,{updated_at:i()}),"closed"!==t.status||d.closed_at||(d.closed_at=i()),void 0!==t.parent&&(d.parent=t.parent||null,d.dependencies=(d.dependencies??[]).filter(e=>"parent-child"!==e.type),t.parent&&d.dependencies.push({issue_id:d.id,depends_on_id:t.parent,type:"parent-child"})),{...d}},async setStatus(e,t,d,a){let s=o(e);return s.status=t,s.updated_at=i(),"in_progress"!==t||s.started_at||(s.started_at=i()),"closed"===t?(s.closed_at=i(),s.close_reason||(s.close_reason=a?.trim()||"Closed")):(s.closed_at=null,s.close_reason=null),{...s}},async remove(e){n=n.filter(t=>t.id!==e)},async addComment(e,t,d){let a=o(e);return a.comments=[...a.comments??[],{author:d,text:t,created_at:i()}],a.updated_at=i(),{...a}},async addDep(e,t,d){let a=o(e);return a.dependencies=[...a.dependencies??[],{issue_id:e,depends_on_id:t,type:d}],a.updated_at=i(),{...a}},async removeDep(e,t){let d=o(e);return d.dependencies=(d.dependencies??[]).filter(e=>e.depends_on_id!==t),d.updated_at=i(),{...d}},async createGate(e,t,d){let s=o(e),r="gate-"+Math.random().toString(16).slice(2,6),c=a.Y.parse({id:r,title:"Gate: human",issue_type:"gate",await_type:"human",status:"open",priority:2,created_by:d,description:`Ad-hoc gate blocking ${e}${t?`
|
|
2
|
+
|
|
3
|
+
Reason: ${t}`:""}`,created_at:i(),updated_at:i(),closed_at:null,labels:[],dependencies:[],comments:[]});return n=[...n,c],s.dependencies=[...s.dependencies??[],{issue_id:e,depends_on_id:r,type:"blocks"}],s.updated_at=i(),{...c}},async removeLabel(e,t){let d=o(e);return d.labels=(d.labels??[]).filter(e=>e!==t),d.updated_at=i(),{...d}},async archive(e){let t=o(e);return t.status="closed",t.closed_at=i(),(t.labels??[]).includes("archived")||(t.labels=[...t.labels??[],"archived"]),t.updated_at=i(),{...t}},doctor:async()=>({kind:"demo",ok:!0,repoPath:"(in-memory demo)",message:"Demo mode — in-memory data seeded from the design export. Install bd and point Settings at a .beads repo to use real data."})},l=new Map;async function p(e){if(e===t.U.id)return c;let a=l.get(e);if(a)return a;let s=(0,t.e)(e);if(!s||null===s.path)throw new t.b(`Unknown project: ${e}`,"unknown_project");if(!await (0,d.t)(s.path))throw new t.b(`bd is not available for "${s.name}" (${s.path}). Check that bd is installed and the folder still contains a .beads directory.`,"bd_unavailable");let r=(0,d.s)(s.path);return l.set(e,r),(0,t.$)(e),r}e.s(["R",0,p,"f",0,function(e){e?l.delete(e):l.clear()}],83535)}];
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=lib_store_ts_06cg85jmkn83a._.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../lib/store.ts","../../../lib/demo-store.ts","../../../lib/demo-data.ts"],"sourcesContent":["import \"server-only\";\nimport type { Bead, CreateInput, UpdateInput, DepType } from \"./schema\";\nimport { getProject, touchProject, DEMO_PROJECT, ConfigError } from \"./config\";\nimport { createBdStore, isBdAvailable } from \"./bd\";\nimport { demoStore } from \"./demo-store\";\n\n/**\n * Storage abstraction. Two implementations:\n * - BdStore → shells out to the `bd` CLI (source of truth).\n * - DemoStore → in-memory, seeded from the design export, so the app runs and\n * is demoable even where bd isn't installed.\n */\nexport interface DoctorInfo {\n kind: \"bd\" | \"demo\";\n ok: boolean;\n version?: string;\n repoPath: string;\n message: string;\n}\n\nexport interface BeadsStore {\n kind: \"bd\" | \"demo\";\n list(): Promise<Bead[]>;\n get(id: string): Promise<Bead | null>;\n create(input: CreateInput, actor: string): Promise<Bead>;\n update(id: string, patch: UpdateInput, actor: string): Promise<Bead>;\n /**\n * `reason` is only meaningful when closing — bd records it via\n * `bd close --reason`, and there is no way to attach one after the fact.\n */\n setStatus(id: string, status: string, actor: string, reason?: string): Promise<Bead>;\n remove(id: string, actor: string): Promise<void>;\n addComment(id: string, text: string, actor: string): Promise<Bead>;\n addDep(id: string, dependsOnId: string, type: DepType, actor: string): Promise<Bead>;\n removeDep(id: string, dependsOnId: string, actor: string): Promise<Bead>;\n /** Create a human approval gate that blocks `blocks` (`bd gate create --type human`). */\n createGate(blocks: string, reason: string | undefined, actor: string): Promise<Bead>;\n removeLabel(id: string, label: string, actor: string): Promise<Bead>;\n archive(id: string, actor: string): Promise<Bead>;\n doctor(): Promise<DoctorInfo>;\n}\n\n// One store per project id. Demo always maps to the shared in-memory store.\nconst stores = new Map<string, BeadsStore>();\n\nexport async function getStore(projectId: string): Promise<BeadsStore> {\n if (projectId === DEMO_PROJECT.id) return demoStore;\n\n const cached = stores.get(projectId);\n if (cached) return cached;\n\n const project = getProject(projectId);\n if (!project || project.path === null) {\n throw new ConfigError(`Unknown project: ${projectId}`, \"unknown_project\");\n }\n if (!(await isBdAvailable(project.path))) {\n throw new ConfigError(\n `bd is not available for \"${project.name}\" (${project.path}). ` +\n `Check that bd is installed and the folder still contains a .beads directory.`,\n \"bd_unavailable\",\n );\n }\n const store = createBdStore(project.path);\n stores.set(projectId, store);\n // First resolution this session — record that the project was opened.\n touchProject(projectId);\n return store;\n}\n\n/** Reset cached store(s) — one project, or all when no id is given. */\nexport function resetStore(projectId?: string) {\n if (projectId) stores.delete(projectId);\n else stores.clear();\n}\n","import \"server-only\";\nimport { beadSchema, type Bead, type CreateInput, type UpdateInput, type DepType, type Dependency } from \"./schema\";\nimport type { BeadsStore, DoctorInfo } from \"./store\";\nimport { demoBeads } from \"./demo-data\";\n\n/**\n * In-memory store backed by the demo dataset in `lib/demo-data.ts`. Used when bd\n * isn't installed or when demo mode is forced (BEADS_DEMO env var / Settings\n * toggle). Mutations persist for the life of the dev-server process.\n */\n\nlet beads: Bead[] = demoBeads();\nconst nowIso = () => new Date().toISOString();\n\nfunction find(id: string): Bead {\n const b = beads.find((x) => x.id === id);\n if (!b) throw new Error(`bead not found: ${id}`);\n return b;\n}\n\nexport const demoStore: BeadsStore = {\n kind: \"demo\",\n async list() {\n return beads.map((b) => ({ ...b }));\n },\n async get(id) {\n return beads.find((b) => b.id === id) ?? null;\n },\n async create(input: CreateInput, actor: string) {\n const id = \"bd-\" + Math.random().toString(16).slice(2, 6);\n const dependencies: Dependency[] = [];\n if (input.parent) dependencies.push({ issue_id: id, depends_on_id: input.parent, type: \"parent-child\" });\n const bead = beadSchema.parse({\n id,\n title: input.title.trim(),\n issue_type: input.issue_type,\n status: input.backlog ? \"deferred\" : \"open\",\n priority: input.priority,\n assignee: input.assignee || \"\",\n created_by: actor,\n description: input.description ?? \"\",\n created_at: nowIso(),\n updated_at: nowIso(),\n closed_at: null,\n labels: input.labels ?? [],\n dependencies,\n comments: [],\n parent: input.parent || null,\n });\n beads = [...beads, bead];\n return bead;\n },\n async update(id, patch: UpdateInput) {\n const b = find(id);\n Object.assign(b, patch, { updated_at: nowIso() });\n if (patch.status === \"closed\" && !b.closed_at) b.closed_at = nowIso();\n // Reparenting: mirror bd's semantics (absent = leave alone, \"\" = detach)\n // and keep the parent-child EDGE in sync with the field. The rest of the UI\n // derives hierarchy from the edge — `bd export --json` never emits a\n // `parent` field — so updating only `b.parent` would look correct in the\n // drawer and silently do nothing on the board and list.\n if (patch.parent !== undefined) {\n b.parent = patch.parent || null;\n b.dependencies = (b.dependencies ?? []).filter((d) => d.type !== \"parent-child\");\n if (patch.parent) {\n b.dependencies.push({\n issue_id: b.id,\n depends_on_id: patch.parent,\n type: \"parent-child\",\n });\n }\n }\n return { ...b };\n },\n async setStatus(id, status, actor, reason) {\n const b = find(id);\n b.status = status;\n b.updated_at = nowIso();\n if (status === \"in_progress\" && !b.started_at) b.started_at = nowIso();\n if (status === \"closed\") {\n b.closed_at = nowIso();\n // Mirror bd: closing with no reason still records the literal \"Closed\".\n if (!b.close_reason) b.close_reason = reason?.trim() || \"Closed\";\n } else {\n // Mirror `bd reopen` / `bd update -s <open>`, which clear both fields.\n b.closed_at = null;\n b.close_reason = null;\n }\n return { ...b };\n },\n async remove(id) {\n beads = beads.filter((b) => b.id !== id);\n },\n async addComment(id, text, actor) {\n const b = find(id);\n b.comments = [...(b.comments ?? []), { author: actor, text, created_at: nowIso() }];\n b.updated_at = nowIso();\n return { ...b };\n },\n async addDep(id, dependsOnId, type: DepType) {\n const b = find(id);\n b.dependencies = [...(b.dependencies ?? []), { issue_id: id, depends_on_id: dependsOnId, type }];\n b.updated_at = nowIso();\n return { ...b };\n },\n async removeDep(id, dependsOnId) {\n const b = find(id);\n b.dependencies = (b.dependencies ?? []).filter((d) => d.depends_on_id !== dependsOnId);\n b.updated_at = nowIso();\n return { ...b };\n },\n async createGate(blocks, reason, actor) {\n const target = find(blocks);\n const id = \"gate-\" + Math.random().toString(16).slice(2, 6);\n const gate = beadSchema.parse({\n id,\n title: \"Gate: human\",\n issue_type: \"gate\",\n await_type: \"human\",\n status: \"open\",\n priority: 2,\n created_by: actor,\n description: `Ad-hoc gate blocking ${blocks}${reason ? `\\n\\nReason: ${reason}` : \"\"}`,\n created_at: nowIso(),\n updated_at: nowIso(),\n closed_at: null,\n labels: [],\n dependencies: [],\n comments: [],\n });\n beads = [...beads, gate];\n // The target now waits on the gate; isBlocked() derives blocked-ness from\n // this dep, and clears once the gate is closed (approved).\n target.dependencies = [...(target.dependencies ?? []), { issue_id: blocks, depends_on_id: id, type: \"blocks\" }];\n target.updated_at = nowIso();\n return { ...gate };\n },\n async removeLabel(id, label) {\n const b = find(id);\n b.labels = (b.labels ?? []).filter((l) => l !== label);\n b.updated_at = nowIso();\n return { ...b };\n },\n async archive(id) {\n const b = find(id);\n b.status = \"closed\";\n b.closed_at = nowIso();\n if (!(b.labels ?? []).includes(\"archived\")) b.labels = [...(b.labels ?? []), \"archived\"];\n b.updated_at = nowIso();\n return { ...b };\n },\n async doctor(): Promise<DoctorInfo> {\n return {\n kind: \"demo\",\n ok: true,\n repoPath: \"(in-memory demo)\",\n message: \"Demo mode — in-memory data seeded from the design export. Install bd and point Settings at a .beads repo to use real data.\",\n };\n },\n};\n","import type { Bead, Comment, Dependency } from \"./schema\";\n\n/**\n * Demo dataset for Beadscope.\n *\n * This is the data source for demo mode (when bd isn't installed, or when demo\n * mode is forced via the BEADS_DEMO env var / the Settings toggle). It's a\n * realistic, well-rounded set: epics with children, mixed statuses / priorities\n * / types, human and agent authors, blocking + related dependencies, comments,\n * and an archived item. Edit this file to change what demo mode shows.\n */\n\ninterface Extra {\n description?: string;\n notes?: string;\n design?: string;\n acceptance_criteria?: string;\n created_at?: string;\n updated_at?: string;\n closed_at?: string;\n close_reason?: string;\n labels?: string[];\n comments?: Comment[];\n blocks?: string[];\n related?: string[];\n}\n\nfunction D(\n id: string,\n title: string,\n issue_type: string,\n status: string,\n priority: number,\n created_by: string,\n assignee: string,\n parent: string | null,\n extra: Extra = {},\n): Bead {\n const dependencies: Dependency[] = [];\n if (parent) dependencies.push({ issue_id: id, depends_on_id: parent, type: \"parent-child\" });\n (extra.blocks ?? []).forEach((t) => dependencies.push({ issue_id: id, depends_on_id: t, type: \"blocks\" }));\n (extra.related ?? []).forEach((t) => dependencies.push({ issue_id: id, depends_on_id: t, type: \"related\" }));\n return {\n id,\n title,\n issue_type,\n status,\n priority,\n assignee: assignee || \"\",\n created_by,\n description: extra.description ?? \"\",\n notes: extra.notes ?? \"\",\n design: extra.design ?? \"\",\n acceptance_criteria: extra.acceptance_criteria ?? \"\",\n created_at: extra.created_at ?? \"2026-06-09T10:00:00Z\",\n updated_at: extra.updated_at ?? \"2026-06-14T15:00:00Z\",\n closed_at: status === \"closed\" ? extra.closed_at ?? \"2026-06-15T11:00:00Z\" : null,\n // Faithful to bd: closing without `--reason` still records the literal\n // \"Closed\", which `closeReasonOf` treats as no reason at all.\n close_reason: status === \"closed\" ? extra.close_reason ?? \"Closed\" : null,\n labels: extra.labels ?? [],\n dependencies,\n comments: extra.comments ?? [],\n parent: parent ?? null,\n };\n}\n\nconst cm = (author: string, text: string, created_at: string): Comment => ({ author, text, created_at });\n\n/** The seed beads. Returns fresh copies so the in-memory store can mutate safely. */\nexport function demoBeads(): Bead[] {\n return [\n // epics (milestones M0–M5)\n D(\"bd-9f2a\", \"Adapter & schema (M0)\", \"epic\", \"in_progress\", 1, \"stevey\", \"stevey\", null, { description: \"The bd bridge, Zod schemas, config, and a doctor preflight. Everything else builds on this.\", created_at: \"2026-06-02T09:00:00Z\" }),\n D(\"bd-3c71\", \"Board read (M1)\", \"epic\", \"open\", 1, \"stevey\", \"stevey\", null, { description: \"Read-only board: columns, filters, search, origin badges and a detail drawer. Powered by bd list/ready/blocked.\" }),\n D(\"bd-7e40\", \"Write basics (M2)\", \"epic\", \"open\", 2, \"stevey\", \"dana\", null, { description: \"Create/edit/close/delete, comments, attribution stamping, optimistic updates + toasts.\" }),\n D(\"bd-b18d\", \"Flow & epics (M3)\", \"epic\", \"deferred\", 2, \"stevey\", \"\", null, { description: \"Backlog↔Ready DnD, Kanban statuses, epics with progress, archive.\" }),\n D(\"bd-c552\", \"Dependencies & graph (M4)\", \"epic\", \"deferred\", 3, \"claude-agent\", \"\", null, { description: \"Dep panel add/remove with cycle checks; React Flow graph with drag-to-link.\" }),\n D(\"bd-1a09\", \"Polish & ship (M5)\", \"epic\", \"deferred\", 3, \"stevey\", \"\", null, { description: \"Keyboard nav, settings, theming, Playwright e2e, docs.\" }),\n // M0 children\n D(\"bd-9f2a.1\", \"bd adapter: execFile + JSON envelope\", \"task\", \"closed\", 0, \"claude-agent\", \"claude-agent\", \"bd-9f2a\", { description: \"Spawn bd with BD_JSON_ENVELOPE=1, args as an array, parse {schema_version,data}.\", comments: [cm(\"stevey\", \"Confirmed args-as-array kills the injection risk. Nice.\", \"2026-06-05T12:00:00Z\")] }),\n D(\"bd-9f2a.2\", \"Zod schemas for Bead / Dependency / Comment\", \"task\", \"closed\", 1, \"stevey\", \"stevey\", \"bd-9f2a\", { description: \"One schema set parses bd --json output and validates form input.\" }),\n D(\"bd-9f2a.3\", \"Config module (repo path, actor, allowlist)\", \"task\", \"in_progress\", 2, \"stevey\", \"stevey\", \"bd-9f2a\", { description: \"Small JSON config under the OS config dir. No new persisted bead schema.\", comments: [cm(\"dana\", \"Can we derive the default actor from git config user.email?\", \"2026-06-14T09:30:00Z\"), cm(\"stevey\", \"Yep, falling back to whoami if git is unset.\", \"2026-06-14T10:05:00Z\")] }),\n D(\"bd-9f2a.4\", \"bd doctor / version preflight\", \"chore\", \"open\", 2, \"amp-bot\", \"amp-bot\", \"bd-9f2a\", { description: \"Run bd doctor + bd --version on boot; warn on schema_version drift.\" }),\n D(\"bd-9f2a.5\", \"Serialize writes through a mutex queue\", \"task\", \"open\", 1, \"stevey\", \"stevey\", \"bd-9f2a\", { description: \"Embedded Dolt is single-writer. Queue writes so concurrent UI actions can't collide.\", blocks: [\"bd-9f2a.1\"] }),\n // M1 children\n D(\"bd-3c71.1\", \"Board columns + card component\", \"feature\", \"in_progress\", 1, \"cursor-agent\", \"cursor-agent\", \"bd-3c71\", { description: \"Five-column board; dense cards with id, type, priority, assignee, origin, counts.\", comments: [cm(\"stevey\", \"Let's keep cards draggable but open detail on click.\", \"2026-06-15T14:00:00Z\")] }),\n D(\"bd-3c71.2\", \"Top bar filters + text search\", \"feature\", \"open\", 2, \"stevey\", \"\", \"bd-3c71\", { description: \"Status/type/priority/label/assignee filters + fuzzy text search.\", blocks: [\"bd-3c71.1\"] }),\n D(\"bd-3c71.3\", \"Origin badge (human vs agent)\", \"feature\", \"open\", 2, \"stevey\", \"dana\", \"bd-3c71\", { description: \"Derive origin from created_by vs the human allowlist; badge + tooltip.\" }),\n D(\"bd-3c71.4\", \"Detail drawer (read-only)\", \"feature\", \"open\", 2, \"claude-agent\", \"claude-agent\", \"bd-3c71\", { description: \"Full fields, deps panel, comments thread, activity. From bd show <id>.\", blocks: [\"bd-3c71.1\"] }),\n D(\"bd-3c71.5\", \"Empty / loading / error states\", \"chore\", \"deferred\", 3, \"stevey\", \"\", \"bd-3c71\", { description: \"Skeletons, empty columns, typed BdError surfaces.\" }),\n // M2 children\n D(\"bd-7e40.1\", \"Create modal + bd create wiring\", \"feature\", \"open\", 1, \"stevey\", \"stevey\", \"bd-7e40\", { description: \"Type, title, description, priority, assignee, labels, parent epic. Zod-validated.\" }),\n D(\"bd-7e40.2\", \"Inline edit (send only changed fields)\", \"feature\", \"deferred\", 2, \"amp-bot\", \"\", \"bd-7e40\", { description: \"bd update <id> with only the changed flags.\" }),\n D(\"bd-7e40.3\", \"Comments thread + composer\", \"feature\", \"open\", 2, \"stevey\", \"dana\", \"bd-7e40\", { description: \"Author-stamped comments; newest-last with relative time.\" }),\n D(\"bd-7e40.4\", \"Attribution stamping (BEADS_ACTOR)\", \"task\", \"open\", 1, \"stevey\", \"stevey\", \"bd-7e40\", { description: \"Every UI write runs with BEADS_ACTOR=<humanActor>.\" }),\n D(\"bd-7e40.5\", \"Optimistic updates + toasts\", \"task\", \"deferred\", 2, \"claude-agent\", \"\", \"bd-7e40\", { description: \"TanStack Query optimistic mutations with rollback on adapter error.\" }),\n // M3 children\n D(\"bd-b18d.1\", \"Backlog ↔ Ready drag-and-drop\", \"feature\", \"deferred\", 2, \"stevey\", \"\", \"bd-b18d\", { description: \"dnd-kit; de-defer on drop to Ready, land in Blocked if still dep-blocked.\" }),\n D(\"bd-b18d.2\", \"Kanban status columns\", \"feature\", \"deferred\", 3, \"stevey\", \"\", \"bd-b18d\", { description: \"open → in_progress → closed via columns.\" }),\n D(\"bd-b18d.3\", \"Archive = close + label archived\", \"chore\", \"deferred\", 3, \"amp-bot\", \"\", \"bd-b18d\", { description: \"No native bd archive; reversible close+label, hidden by a standing filter.\" }),\n D(\"bd-b18d.4\", \"Epic progress bars\", \"feature\", \"deferred\", 3, \"stevey\", \"\", \"bd-b18d\", { description: \"closed ÷ total children, computed client-side for live render.\" }),\n // M4 children\n D(\"bd-c552.1\", \"React Flow graph scaffold\", \"spike\", \"deferred\", 3, \"claude-agent\", \"\", \"bd-c552\", { description: \"Nodes = beads, typed edges; pan/zoom; scope to an epic neighborhood.\" }),\n D(\"bd-c552.2\", \"Drag-to-link with cycle check\", \"feature\", \"deferred\", 3, \"stevey\", \"\", \"bd-c552\", { description: \"Drag node→node to create a dep; bd dep cycles refuses cycles.\", blocks: [\"bd-c552.1\"] }),\n D(\"bd-c552.3\", \"bd dep cycles validation\", \"task\", \"deferred\", 3, \"cursor-agent\", \"\", \"bd-c552\", { description: \"Server-side cycle guard before committing blocks/parent-child edges.\" }),\n // M5 children\n D(\"bd-1a09.1\", \"Keyboard nav (n, /, j, k, e)\", \"chore\", \"deferred\", 4, \"stevey\", \"\", \"bd-1a09\", { description: \"Keyboard-first board: new, search, navigate, edit.\" }),\n D(\"bd-1a09.2\", \"Playwright e2e flows\", \"chore\", \"deferred\", 4, \"amp-bot\", \"\", \"bd-1a09\", { description: \"End-to-end the create→drag→comment→archive flows.\" }),\n D(\"bd-1a09.3\", \"README + setup docs\", \"story\", \"closed\", 4, \"stevey\", \"stevey\", \"bd-1a09\", { description: \"Setup, bd version range, troubleshooting.\", closed_at: \"2026-06-17T09:00:00Z\" }),\n // loose beads\n D(\"bd-44b1\", \"Decision: Backlog = deferred status\", \"decision\", \"closed\", 1, \"stevey\", \"stevey\", null, { description: \"Map the Backlog column to beads' built-in deferred status rather than inventing new schema.\", comments: [cm(\"dana\", \"Agreed — zero new persisted state, stays correct with bd.\", \"2026-06-08T16:00:00Z\")] }),\n D(\"bd-8d3e\", \"Bug: ready queue shows deferred beads\", \"bug\", \"open\", 0, \"claude-agent\", \"stevey\", null, { description: \"bd ready should exclude deferred; some deferred beads leak into Ready in the UI cache.\", related: [\"bd-3c71.1\"], comments: [cm(\"claude-agent\", \"Repro: defer a bead, it stays in Ready until refetch.\", \"2026-06-16T08:00:00Z\")] }),\n D(\"bd-2f9c\", \"Bug: drag-drop flickers on rollback\", \"bug\", \"blocked\", 1, \"cursor-agent\", \"cursor-agent\", null, { description: \"Optimistic move then adapter error causes a visible flicker on rollback.\", related: [\"bd-b18d.1\"] }),\n D(\"bd-5a77\", \"Switch integration to a REST API\", \"task\", \"closed\", 3, \"amp-bot\", \"amp-bot\", null, { description: \"Superseded — beads has no HTTP API; we shell out to the CLI.\", labels: [\"archived\"], closed_at: \"2026-06-07T10:00:00Z\", close_reason: \"Superseded by the CLI adapter approach.\" }),\n\n // ── Showcase beads for the newer features (Needs-You, checklists, Insights, Achievements) ──\n // Needs-You inbox: agent-escalated decisions (the `human` label, still open).\n D(\"bd-hmn1\", \"Need a human call: which OAuth provider for sign-in?\", \"decision\", \"open\", 1, \"claude-agent\", \"stevey\", null, { description: \"I can wire Clerk, Auth0, or Descope. Clerk is the native Marketplace option — but you own this call before I build the middleware.\", labels: [\"human\"], created_at: \"2026-06-24T08:30:00Z\", updated_at: \"2026-06-24T08:30:00Z\" }),\n D(\"bd-hmn2\", \"Decision needed: drop the legacy CSV export?\", \"decision\", \"open\", 2, \"cursor-agent\", \"\", null, { description: \"Usage is near zero and it blocks the new report template. OK to remove it?\", labels: [\"human\"], created_at: \"2026-06-24T09:10:00Z\", updated_at: \"2026-06-24T09:10:00Z\" }),\n // Markdown + interactive checklist in the description.\n D(\"bd-ck1\", \"Ship the onboarding flow\", \"feature\", \"in_progress\", 1, \"stevey\", \"stevey\", null, { description: \"Guided first-run experience.\\n\\n## Acceptance criteria\\n- [x] Detect first launch\\n- [x] Welcome step with the project picker\\n- [ ] Sample project seeding\\n- [ ] Dismiss + don't-show-again\\n- [ ] Docs link\\n\\nSee the **[spec](https://github.com/sai-manoj-kumar/beadscope)** for the full flow.\", created_at: \"2026-06-20T10:00:00Z\", updated_at: \"2026-06-24T11:00:00Z\", comments: [cm(\"dana\", \"Love it — keep the welcome step to one screen.\", \"2026-06-24T11:30:00Z\")] }),\n // Recent consecutive closes by the human actor → streak, throughput, XP, badges.\n D(\"bd-win1\", \"Fix flaky drag-drop rollback\", \"bug\", \"closed\", 1, \"stevey\", \"stevey\", null, { description: \"Coalesce optimistic moves so rollback no longer flickers.\", created_at: \"2026-06-19T09:00:00Z\", closed_at: \"2026-06-21T16:30:00Z\" }),\n D(\"bd-win2\", \"Speed up board first paint\", \"task\", \"closed\", 2, \"stevey\", \"stevey\", null, { description: \"Memoize the index and lazy-load the graph bundle.\", created_at: \"2026-06-20T09:00:00Z\", closed_at: \"2026-06-22T14:00:00Z\" }),\n D(\"bd-win3\", \"Land the search index everything waited on\", \"task\", \"closed\", 0, \"stevey\", \"stevey\", null, { description: \"Unblocks the filter rollout.\", blocks: [\"bd-3c71.2\"], created_at: \"2026-06-21T09:00:00Z\", closed_at: \"2026-06-23T13:00:00Z\" }),\n D(\"bd-win4\", \"Polish the empty states\", \"chore\", \"closed\", 2, \"stevey\", \"stevey\", null, { description: \"Friendly skeletons and zero-states across views.\", created_at: \"2026-06-23T09:00:00Z\", closed_at: \"2026-06-24T10:00:00Z\" }),\n D(\"bd-win5\", \"Tidy the settings layout\", \"chore\", \"closed\", 2, \"stevey\", \"stevey\", null, { description: \"Group attribution, freshness, and theme into cards.\", created_at: \"2026-06-23T15:00:00Z\", closed_at: \"2026-06-24T12:00:00Z\" }),\n // A closed epic → Epic Slayer badge.\n D(\"bd-epic-x\", \"Onboarding & polish (M6)\", \"epic\", \"closed\", 1, \"stevey\", \"stevey\", null, { description: \"First-run onboarding, empty states, and a performance pass.\", created_at: \"2026-06-15T09:00:00Z\", closed_at: \"2026-06-24T10:30:00Z\" }),\n // Agent closes so the leaderboard has real competition.\n D(\"bd-ag1\", \"Auto-label stale beads\", \"task\", \"closed\", 2, \"claude-agent\", \"claude-agent\", null, { description: \"Nightly sweep tags beads with no activity in 14 days.\", created_at: \"2026-06-18T09:00:00Z\", closed_at: \"2026-06-22T20:00:00Z\" }),\n D(\"bd-ag2\", \"Generate the weekly digest\", \"task\", \"closed\", 3, \"cursor-agent\", \"cursor-agent\", null, { description: \"Summarize closed work into a shareable digest.\", created_at: \"2026-06-19T09:00:00Z\", closed_at: \"2026-06-23T21:00:00Z\" }),\n D(\"bd-ag3\", \"Backfill missing assignees\", \"chore\", \"closed\", 3, \"claude-agent\", \"claude-agent\", null, { description: \"Infer assignee from the last status-change actor.\", created_at: \"2026-06-20T09:00:00Z\", closed_at: \"2026-06-24T07:00:00Z\" }),\n ];\n}\n"],"names":["D","id","title","issue_type","status","priority","created_by","assignee","parent","extra","dependencies","push","issue_id","depends_on_id","type","blocks","forEach","t","related","description","notes","design","acceptance_criteria","created_at","updated_at","closed_at","close_reason","labels","comments","cm","author","text","demoBeads"],"mappings":"uCAEA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OCFA,EAAA,EAAA,CAAA,CAAA,MC0BA,SAASA,EACPC,CAAU,CACVC,CAAa,CACbC,CAAkB,CAClBC,CAAc,CACdC,CAAgB,CAChBC,CAAkB,CAClBC,CAAgB,CAChBC,CAAqB,CACrBC,EAAe,CAAC,CAAC,EAEjB,IAAMC,EAA6B,EAAE,CAIrC,OAHIF,GAAQE,EAAaC,IAAI,CAAC,CAAEC,SAAUX,EAAIY,cAAeL,EAAQM,KAAM,cAAe,GAC1F,AAACL,GAAMM,MAAM,EAAI,EAAA,AAAE,EAAEC,OAAO,CAAEC,AAAD,GAAOP,EAAaC,IAAI,CAAC,CAAEC,SAAUX,EAAIY,cAAeI,EAAGH,KAAM,QAAS,IACvG,CAACL,EAAMS,OAAO,EAAI,EAAA,AAAE,EAAEF,OAAO,CAAC,AAACC,GAAMP,EAAaC,IAAI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