trybeacon 0.1.33 → 0.1.35

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.
Files changed (330) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +14 -13
  3. package/.next/build-manifest.json +2 -2
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/routes-manifest.json +6 -0
  6. package/.next/server/app/_global-error/page.js +3 -3
  7. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  8. package/.next/server/app/_global-error.html +1 -1
  9. package/.next/server/app/_global-error.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  15. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  16. package/.next/server/app/_not-found/page.js +2 -2
  17. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  18. package/.next/server/app/_not-found.html +1 -1
  19. package/.next/server/app/_not-found.rsc +2 -2
  20. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  21. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  22. package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  23. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  24. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  25. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  26. package/.next/server/app/api/board-annotations/[id]/route.js +1 -1
  27. package/.next/server/app/api/board-annotations/route.js +1 -1
  28. package/.next/server/app/api/board-layout/route.js +1 -1
  29. package/.next/server/app/api/bug-flags/[id]/route.js +1 -1
  30. package/.next/server/app/api/bug-flags/route.js +1 -1
  31. package/.next/server/app/api/code-graph/position/route.js +1 -1
  32. package/.next/server/app/api/code-graph/route.js +1 -1
  33. package/.next/server/app/api/context/feature/route.js +1 -1
  34. package/.next/server/app/api/context/file/route.js +1 -1
  35. package/.next/server/app/api/context/route.js +2 -2
  36. package/.next/server/app/api/db/arrange/route.js +1 -1
  37. package/.next/server/app/api/db/backfill-access/route.js +1 -1
  38. package/.next/server/app/api/db/position/route.js +1 -1
  39. package/.next/server/app/api/db/position/route.js.nft.json +1 -1
  40. package/.next/server/app/api/db/prune-planned/route.js +1 -1
  41. package/.next/server/app/api/db/reconcile-endpoints/route.js +1 -1
  42. package/.next/server/app/api/db/relations/[id]/route.js +1 -1
  43. package/.next/server/app/api/db/tables/[id]/route.js +1 -1
  44. package/.next/server/app/api/draft/approve/route.js +1 -1
  45. package/.next/server/app/api/draft/route.js +1 -1
  46. package/.next/server/app/api/draft/status/route.js +1 -1
  47. package/.next/server/app/api/edges/[id]/route.js +1 -1
  48. package/.next/server/app/api/edges/route.js +1 -1
  49. package/.next/server/app/api/edges/route.js.nft.json +1 -1
  50. package/.next/server/app/api/endpoints/[id]/route.js +1 -1
  51. package/.next/server/app/api/entities/route.js +1 -1
  52. package/.next/server/app/api/feedback/[id]/route.js +1 -1
  53. package/.next/server/app/api/feedback/[id]/vote/route.js +1 -1
  54. package/.next/server/app/api/feedback/route.js +1 -1
  55. package/.next/server/app/api/ingest/route.js +2 -2
  56. package/.next/server/app/api/init/route.js +2 -2
  57. package/.next/server/app/api/init/route.js.nft.json +1 -1
  58. package/.next/server/app/api/map/describe/route.js +2 -2
  59. package/.next/server/app/api/map/describe/route.js.nft.json +1 -1
  60. package/.next/server/app/api/map/files/route.js +1 -1
  61. package/.next/server/app/api/map/files/route.js.nft.json +1 -1
  62. package/.next/server/app/api/map/finish/route.js +1 -1
  63. package/.next/server/app/api/map/finish/route.js.nft.json +1 -1
  64. package/.next/server/app/api/map/route.js +1 -1
  65. package/.next/server/app/api/map/route.js.nft.json +1 -1
  66. package/.next/server/app/api/map/start/route.js +1 -1
  67. package/.next/server/app/api/map/start/route.js.nft.json +1 -1
  68. package/.next/server/app/api/map/touch-active/route.js +1 -1
  69. package/.next/server/app/api/map/touch-active/route.js.nft.json +1 -1
  70. package/.next/server/app/api/nodes/[id]/position/route.js +1 -1
  71. package/.next/server/app/api/nodes/[id]/position/route.js.nft.json +1 -1
  72. package/.next/server/app/api/nodes/[id]/route.js +1 -1
  73. package/.next/server/app/api/nodes/[id]/route.js.nft.json +1 -1
  74. package/.next/server/app/api/nodes/positions/route.js +1 -1
  75. package/.next/server/app/api/nodes/positions/route.js.nft.json +1 -1
  76. package/.next/server/app/api/nodes/route.js +1 -1
  77. package/.next/server/app/api/nodes/route.js.nft.json +1 -1
  78. package/.next/server/app/api/nodes/subtasks/route.js +1 -1
  79. package/.next/server/app/api/nodes/subtasks/route.js.nft.json +1 -1
  80. package/.next/server/app/api/notes/[id]/route.js +1 -1
  81. package/.next/server/app/api/notes/route.js +1 -1
  82. package/.next/server/app/api/open/route.js +1 -1
  83. package/.next/server/app/api/plan/annotations/route.js +3 -3
  84. package/.next/server/app/api/plan/approve/route.js +2 -2
  85. package/.next/server/app/api/plan/history/route.js +1 -1
  86. package/.next/server/app/api/plan/markdown/route.js +1 -1
  87. package/.next/server/app/api/plan/markdown/route.js.nft.json +1 -1
  88. package/.next/server/app/api/plan/presence/route.js +1 -1
  89. package/.next/server/app/api/plan/route.js +1 -1
  90. package/.next/server/app/api/plan/route.js.nft.json +1 -1
  91. package/.next/server/app/api/plan/verdict/route.js +1 -1
  92. package/.next/server/app/api/preferences/route.js +1 -1
  93. package/.next/server/app/api/project-meta/route.js +1 -0
  94. package/.next/server/app/api/project-meta/route.js.nft.json +1 -0
  95. package/.next/server/app/api/project-meta/route_client-reference-manifest.js +1 -0
  96. package/.next/server/app/api/reset/route.js +1 -1
  97. package/.next/server/app/api/stream/route.js +2 -2
  98. package/.next/server/app/api/version/route.js +1 -1
  99. package/.next/server/app/api/workspace/activate/route.js +1 -1
  100. package/.next/server/app/api/workspace/route.js +1 -1
  101. package/.next/server/app/apple-icon.png/route.js +1 -1
  102. package/.next/server/app/docs/page.js +2 -2
  103. package/.next/server/app/docs/page_client-reference-manifest.js +1 -1
  104. package/.next/server/app/docs.html +1 -1
  105. package/.next/server/app/docs.rsc +2 -2
  106. package/.next/server/app/docs.segments/_full.segment.rsc +2 -2
  107. package/.next/server/app/docs.segments/_head.segment.rsc +1 -1
  108. package/.next/server/app/docs.segments/_index.segment.rsc +2 -2
  109. package/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
  110. package/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +1 -1
  111. package/.next/server/app/docs.segments/docs.segment.rsc +1 -1
  112. package/.next/server/app/feedback/page.js +2 -2
  113. package/.next/server/app/feedback/page_client-reference-manifest.js +1 -1
  114. package/.next/server/app/feedback.html +1 -1
  115. package/.next/server/app/feedback.rsc +2 -2
  116. package/.next/server/app/feedback.segments/_full.segment.rsc +2 -2
  117. package/.next/server/app/feedback.segments/_head.segment.rsc +1 -1
  118. package/.next/server/app/feedback.segments/_index.segment.rsc +2 -2
  119. package/.next/server/app/feedback.segments/_tree.segment.rsc +2 -2
  120. package/.next/server/app/feedback.segments/feedback/__PAGE__.segment.rsc +1 -1
  121. package/.next/server/app/feedback.segments/feedback.segment.rsc +1 -1
  122. package/.next/server/app/help/page.js +2 -2
  123. package/.next/server/app/help/page.js.nft.json +1 -1
  124. package/.next/server/app/help/page_client-reference-manifest.js +1 -1
  125. package/.next/server/app/help.html +1 -1
  126. package/.next/server/app/help.rsc +2 -2
  127. package/.next/server/app/help.segments/_full.segment.rsc +2 -2
  128. package/.next/server/app/help.segments/_head.segment.rsc +1 -1
  129. package/.next/server/app/help.segments/_index.segment.rsc +2 -2
  130. package/.next/server/app/help.segments/_tree.segment.rsc +2 -2
  131. package/.next/server/app/help.segments/help/__PAGE__.segment.rsc +1 -1
  132. package/.next/server/app/help.segments/help.segment.rsc +1 -1
  133. package/.next/server/app/icon.svg/route.js +1 -1
  134. package/.next/server/app/index.html +1 -1
  135. package/.next/server/app/index.rsc +2 -2
  136. package/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  137. package/.next/server/app/index.segments/_full.segment.rsc +2 -2
  138. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  139. package/.next/server/app/index.segments/_index.segment.rsc +2 -2
  140. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  141. package/.next/server/app/map/page.js +2 -2
  142. package/.next/server/app/map/page.js.nft.json +1 -1
  143. package/.next/server/app/map/page_client-reference-manifest.js +1 -1
  144. package/.next/server/app/page.js +2 -2
  145. package/.next/server/app/page_client-reference-manifest.js +1 -1
  146. package/.next/server/app/plan/page.js +2 -2
  147. package/.next/server/app/plan/page.js.nft.json +1 -1
  148. package/.next/server/app/plan/page_client-reference-manifest.js +1 -1
  149. package/.next/server/app/settings/page.js +2 -2
  150. package/.next/server/app/settings/page.js.nft.json +1 -1
  151. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  152. package/.next/server/app-paths-manifest.json +14 -13
  153. package/.next/server/chunks/1130.js +1 -0
  154. package/.next/server/chunks/1341.js +1 -0
  155. package/.next/server/chunks/249.js +1 -1
  156. package/.next/server/chunks/2933.js +1 -1
  157. package/.next/server/chunks/{4274.js → 3269.js} +2 -2
  158. package/.next/server/chunks/3622.js +1 -0
  159. package/.next/server/chunks/4378.js +1 -1
  160. package/.next/server/chunks/4940.js +1 -0
  161. package/.next/server/chunks/7154.js +1 -0
  162. package/.next/server/chunks/9213.js +1 -1
  163. package/.next/server/chunks/9313.js +3 -3
  164. package/.next/server/chunks/9683.js +1 -1
  165. package/.next/server/chunks/9734.js +1 -1
  166. package/.next/server/middleware-build-manifest.js +1 -1
  167. package/.next/server/middleware.js +3 -3
  168. package/.next/server/pages/404.html +1 -1
  169. package/.next/server/pages/500.html +1 -1
  170. package/.next/server/server-reference-manifest.js +1 -1
  171. package/.next/server/server-reference-manifest.json +1 -1
  172. package/.next/static/chunks/1551-c19a41da7732c31e.js +1 -0
  173. package/.next/static/chunks/{1202-dfeac8ec49693586.js → 6955-c21412b6dcd86d80.js} +1 -1
  174. package/.next/static/chunks/app/_global-error/page-68515a67eece5248.js +1 -0
  175. package/.next/static/chunks/app/api/board-annotations/[id]/route-68515a67eece5248.js +1 -0
  176. package/.next/static/chunks/app/api/board-annotations/route-68515a67eece5248.js +1 -0
  177. package/.next/static/chunks/app/api/board-layout/route-68515a67eece5248.js +1 -0
  178. package/.next/static/chunks/app/api/bug-flags/[id]/route-68515a67eece5248.js +1 -0
  179. package/.next/static/chunks/app/api/bug-flags/route-68515a67eece5248.js +1 -0
  180. package/.next/static/chunks/app/api/code-graph/position/route-68515a67eece5248.js +1 -0
  181. package/.next/static/chunks/app/api/code-graph/route-68515a67eece5248.js +1 -0
  182. package/.next/static/chunks/app/api/context/feature/route-68515a67eece5248.js +1 -0
  183. package/.next/static/chunks/app/api/context/file/route-68515a67eece5248.js +1 -0
  184. package/.next/static/chunks/app/api/context/route-68515a67eece5248.js +1 -0
  185. package/.next/static/chunks/app/api/db/arrange/route-68515a67eece5248.js +1 -0
  186. package/.next/static/chunks/app/api/db/backfill-access/route-68515a67eece5248.js +1 -0
  187. package/.next/static/chunks/app/api/db/position/route-68515a67eece5248.js +1 -0
  188. package/.next/static/chunks/app/api/db/prune-planned/route-68515a67eece5248.js +1 -0
  189. package/.next/static/chunks/app/api/db/reconcile-endpoints/route-68515a67eece5248.js +1 -0
  190. package/.next/static/chunks/app/api/db/relations/[id]/route-68515a67eece5248.js +1 -0
  191. package/.next/static/chunks/app/api/db/tables/[id]/route-68515a67eece5248.js +1 -0
  192. package/.next/static/chunks/app/api/draft/approve/route-68515a67eece5248.js +1 -0
  193. package/.next/static/chunks/app/api/draft/route-68515a67eece5248.js +1 -0
  194. package/.next/static/chunks/app/api/draft/status/route-68515a67eece5248.js +1 -0
  195. package/.next/static/chunks/app/api/edges/[id]/route-68515a67eece5248.js +1 -0
  196. package/.next/static/chunks/app/api/edges/route-68515a67eece5248.js +1 -0
  197. package/.next/static/chunks/app/api/endpoints/[id]/route-68515a67eece5248.js +1 -0
  198. package/.next/static/chunks/app/api/entities/route-68515a67eece5248.js +1 -0
  199. package/.next/static/chunks/app/api/feedback/[id]/route-68515a67eece5248.js +1 -0
  200. package/.next/static/chunks/app/api/feedback/[id]/vote/route-68515a67eece5248.js +1 -0
  201. package/.next/static/chunks/app/api/feedback/route-68515a67eece5248.js +1 -0
  202. package/.next/static/chunks/app/api/ingest/route-68515a67eece5248.js +1 -0
  203. package/.next/static/chunks/app/api/init/route-68515a67eece5248.js +1 -0
  204. package/.next/static/chunks/app/api/map/describe/route-68515a67eece5248.js +1 -0
  205. package/.next/static/chunks/app/api/map/files/route-68515a67eece5248.js +1 -0
  206. package/.next/static/chunks/app/api/map/finish/route-68515a67eece5248.js +1 -0
  207. package/.next/static/chunks/app/api/map/route-68515a67eece5248.js +1 -0
  208. package/.next/static/chunks/app/api/map/start/route-68515a67eece5248.js +1 -0
  209. package/.next/static/chunks/app/api/map/touch-active/route-68515a67eece5248.js +1 -0
  210. package/.next/static/chunks/app/api/nodes/[id]/position/route-68515a67eece5248.js +1 -0
  211. package/.next/static/chunks/app/api/nodes/[id]/route-68515a67eece5248.js +1 -0
  212. package/.next/static/chunks/app/api/nodes/positions/route-68515a67eece5248.js +1 -0
  213. package/.next/static/chunks/app/api/nodes/route-68515a67eece5248.js +1 -0
  214. package/.next/static/chunks/app/api/nodes/subtasks/route-68515a67eece5248.js +1 -0
  215. package/.next/static/chunks/app/api/notes/[id]/route-68515a67eece5248.js +1 -0
  216. package/.next/static/chunks/app/api/notes/route-68515a67eece5248.js +1 -0
  217. package/.next/static/chunks/app/api/open/route-68515a67eece5248.js +1 -0
  218. package/.next/static/chunks/app/api/plan/annotations/route-68515a67eece5248.js +1 -0
  219. package/.next/static/chunks/app/api/plan/approve/route-68515a67eece5248.js +1 -0
  220. package/.next/static/chunks/app/api/plan/history/route-68515a67eece5248.js +1 -0
  221. package/.next/static/chunks/app/api/plan/markdown/route-68515a67eece5248.js +1 -0
  222. package/.next/static/chunks/app/api/plan/presence/route-68515a67eece5248.js +1 -0
  223. package/.next/static/chunks/app/api/plan/route-68515a67eece5248.js +1 -0
  224. package/.next/static/chunks/app/api/plan/verdict/route-68515a67eece5248.js +1 -0
  225. package/.next/static/chunks/app/api/preferences/route-68515a67eece5248.js +1 -0
  226. package/.next/static/chunks/app/api/project-meta/route-68515a67eece5248.js +1 -0
  227. package/.next/static/chunks/app/api/reset/route-68515a67eece5248.js +1 -0
  228. package/.next/static/chunks/app/api/stream/route-68515a67eece5248.js +1 -0
  229. package/.next/static/chunks/app/api/version/route-68515a67eece5248.js +1 -0
  230. package/.next/static/chunks/app/api/workspace/activate/route-68515a67eece5248.js +1 -0
  231. package/.next/static/chunks/app/api/workspace/route-68515a67eece5248.js +1 -0
  232. package/.next/static/chunks/app/map/page-8417d6e5dc33e7fb.js +1 -0
  233. package/.next/static/chunks/app/plan/page-af54cdc9fb6058a3.js +1 -0
  234. package/.next/static/chunks/next/dist/client/components/builtin/app-error-68515a67eece5248.js +1 -0
  235. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-68515a67eece5248.js +1 -0
  236. package/.next/static/chunks/next/dist/client/components/builtin/not-found-68515a67eece5248.js +1 -0
  237. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-68515a67eece5248.js +1 -0
  238. package/.next/static/css/496162fa86c30a1d.css +1 -0
  239. package/.next/static/p7RuAgL_wa-K9PsrN1Js0/_buildManifest.js +1 -0
  240. package/.next/trace +38 -38
  241. package/.next/trace-build +1 -1
  242. package/.next/types/app/api/{plan → project-meta}/route.ts +3 -3
  243. package/.next/types/routes.d.ts +2 -1
  244. package/.next/types/validator.ts +9 -0
  245. package/dist/bin/beacon.js +9 -6
  246. package/dist/bin/doctor.js +31 -28
  247. package/dist/bin/hook.js +28 -25
  248. package/dist/bin/mcp.js +40 -37
  249. package/dist/bin/plan.js +31 -28
  250. package/dist/bin/remove.js +6 -6
  251. package/dist/bin/uninstall.js +30 -27
  252. package/dist/lib/assets.js +6 -3
  253. package/dist/lib/codex-install.js +6 -3
  254. package/dist/lib/global-install.js +6 -3
  255. package/dist/lib/release.js +2 -0
  256. package/dist/lib/semver.js +2 -0
  257. package/dist/lib/workspaces.js +1 -1
  258. package/drizzle/0006_optimal_chronomancer.sql +2 -0
  259. package/drizzle/meta/0006_snapshot.json +1765 -0
  260. package/drizzle/meta/_journal.json +7 -0
  261. package/package.json +1 -1
  262. package/.next/server/chunks/7138.js +0 -1
  263. package/.next/server/chunks/7373.js +0 -1
  264. package/.next/static/chunks/8252-326851ad274762f5.js +0 -1
  265. package/.next/static/chunks/app/_global-error/page-4cdc03c65547f289.js +0 -1
  266. package/.next/static/chunks/app/api/board-annotations/[id]/route-4cdc03c65547f289.js +0 -1
  267. package/.next/static/chunks/app/api/board-annotations/route-4cdc03c65547f289.js +0 -1
  268. package/.next/static/chunks/app/api/board-layout/route-4cdc03c65547f289.js +0 -1
  269. package/.next/static/chunks/app/api/bug-flags/[id]/route-4cdc03c65547f289.js +0 -1
  270. package/.next/static/chunks/app/api/bug-flags/route-4cdc03c65547f289.js +0 -1
  271. package/.next/static/chunks/app/api/code-graph/position/route-4cdc03c65547f289.js +0 -1
  272. package/.next/static/chunks/app/api/code-graph/route-4cdc03c65547f289.js +0 -1
  273. package/.next/static/chunks/app/api/context/feature/route-4cdc03c65547f289.js +0 -1
  274. package/.next/static/chunks/app/api/context/file/route-4cdc03c65547f289.js +0 -1
  275. package/.next/static/chunks/app/api/context/route-4cdc03c65547f289.js +0 -1
  276. package/.next/static/chunks/app/api/db/arrange/route-4cdc03c65547f289.js +0 -1
  277. package/.next/static/chunks/app/api/db/backfill-access/route-4cdc03c65547f289.js +0 -1
  278. package/.next/static/chunks/app/api/db/position/route-4cdc03c65547f289.js +0 -1
  279. package/.next/static/chunks/app/api/db/prune-planned/route-4cdc03c65547f289.js +0 -1
  280. package/.next/static/chunks/app/api/db/reconcile-endpoints/route-4cdc03c65547f289.js +0 -1
  281. package/.next/static/chunks/app/api/db/relations/[id]/route-4cdc03c65547f289.js +0 -1
  282. package/.next/static/chunks/app/api/db/tables/[id]/route-4cdc03c65547f289.js +0 -1
  283. package/.next/static/chunks/app/api/draft/approve/route-4cdc03c65547f289.js +0 -1
  284. package/.next/static/chunks/app/api/draft/route-4cdc03c65547f289.js +0 -1
  285. package/.next/static/chunks/app/api/draft/status/route-4cdc03c65547f289.js +0 -1
  286. package/.next/static/chunks/app/api/edges/[id]/route-4cdc03c65547f289.js +0 -1
  287. package/.next/static/chunks/app/api/edges/route-4cdc03c65547f289.js +0 -1
  288. package/.next/static/chunks/app/api/endpoints/[id]/route-4cdc03c65547f289.js +0 -1
  289. package/.next/static/chunks/app/api/entities/route-4cdc03c65547f289.js +0 -1
  290. package/.next/static/chunks/app/api/feedback/[id]/route-4cdc03c65547f289.js +0 -1
  291. package/.next/static/chunks/app/api/feedback/[id]/vote/route-4cdc03c65547f289.js +0 -1
  292. package/.next/static/chunks/app/api/feedback/route-4cdc03c65547f289.js +0 -1
  293. package/.next/static/chunks/app/api/ingest/route-4cdc03c65547f289.js +0 -1
  294. package/.next/static/chunks/app/api/init/route-4cdc03c65547f289.js +0 -1
  295. package/.next/static/chunks/app/api/map/describe/route-4cdc03c65547f289.js +0 -1
  296. package/.next/static/chunks/app/api/map/files/route-4cdc03c65547f289.js +0 -1
  297. package/.next/static/chunks/app/api/map/finish/route-4cdc03c65547f289.js +0 -1
  298. package/.next/static/chunks/app/api/map/route-4cdc03c65547f289.js +0 -1
  299. package/.next/static/chunks/app/api/map/start/route-4cdc03c65547f289.js +0 -1
  300. package/.next/static/chunks/app/api/map/touch-active/route-4cdc03c65547f289.js +0 -1
  301. package/.next/static/chunks/app/api/nodes/[id]/position/route-4cdc03c65547f289.js +0 -1
  302. package/.next/static/chunks/app/api/nodes/[id]/route-4cdc03c65547f289.js +0 -1
  303. package/.next/static/chunks/app/api/nodes/positions/route-4cdc03c65547f289.js +0 -1
  304. package/.next/static/chunks/app/api/nodes/route-4cdc03c65547f289.js +0 -1
  305. package/.next/static/chunks/app/api/nodes/subtasks/route-4cdc03c65547f289.js +0 -1
  306. package/.next/static/chunks/app/api/notes/[id]/route-4cdc03c65547f289.js +0 -1
  307. package/.next/static/chunks/app/api/notes/route-4cdc03c65547f289.js +0 -1
  308. package/.next/static/chunks/app/api/open/route-4cdc03c65547f289.js +0 -1
  309. package/.next/static/chunks/app/api/plan/annotations/route-4cdc03c65547f289.js +0 -1
  310. package/.next/static/chunks/app/api/plan/approve/route-4cdc03c65547f289.js +0 -1
  311. package/.next/static/chunks/app/api/plan/history/route-4cdc03c65547f289.js +0 -1
  312. package/.next/static/chunks/app/api/plan/markdown/route-4cdc03c65547f289.js +0 -1
  313. package/.next/static/chunks/app/api/plan/presence/route-4cdc03c65547f289.js +0 -1
  314. package/.next/static/chunks/app/api/plan/route-4cdc03c65547f289.js +0 -1
  315. package/.next/static/chunks/app/api/plan/verdict/route-4cdc03c65547f289.js +0 -1
  316. package/.next/static/chunks/app/api/preferences/route-4cdc03c65547f289.js +0 -1
  317. package/.next/static/chunks/app/api/reset/route-4cdc03c65547f289.js +0 -1
  318. package/.next/static/chunks/app/api/stream/route-4cdc03c65547f289.js +0 -1
  319. package/.next/static/chunks/app/api/version/route-4cdc03c65547f289.js +0 -1
  320. package/.next/static/chunks/app/api/workspace/activate/route-4cdc03c65547f289.js +0 -1
  321. package/.next/static/chunks/app/api/workspace/route-4cdc03c65547f289.js +0 -1
  322. package/.next/static/chunks/app/map/page-ac03f88297a40d47.js +0 -1
  323. package/.next/static/chunks/app/plan/page-47e880f3e83a2753.js +0 -1
  324. package/.next/static/chunks/next/dist/client/components/builtin/app-error-4cdc03c65547f289.js +0 -1
  325. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-4cdc03c65547f289.js +0 -1
  326. package/.next/static/chunks/next/dist/client/components/builtin/not-found-4cdc03c65547f289.js +0 -1
  327. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-4cdc03c65547f289.js +0 -1
  328. package/.next/static/css/cb2ba3334a6b2336.css +0 -1
  329. package/.next/static/kJSpkyKRHr2jFBQoOGP8P/_buildManifest.js +0 -1
  330. /package/.next/static/{kJSpkyKRHr2jFBQoOGP8P → p7RuAgL_wa-K9PsrN1Js0}/_ssgManifest.js +0 -0
@@ -27,8 +27,9 @@ The user already has Beacon running. You're going to map this repository's archi
27
27
 
28
28
  A single \`beacon_init_persist\` MCP tool call with:
29
29
 
30
- - **components**: 8\u201325 main building blocks of this codebase. NOT every file. Group them by \`domain\` (short UPPERCASE: AUTH, API, DATA, UI, JOBS, INFRA, BILLING, SEARCH, \u2026). For each: a one-line technical \`role\`, a one-sentence plain-language \`plain\`, the few \`files\` that implement it (repo-relative), and \`depends\` listing other component titles it relies on. Use the dependency graph you can see in the source \u2014 files that import each other heavily usually belong together. If you spot a bug or something worth investigating while reading a component's code, add \`bugs: [{ note }]\` to that component \u2014 it renders as a bug flag on the node (attributed to the agent). Only flag what you actually saw in the code; don't speculate.
31
- - **roadmap**: 3\u20136 BROAD strategic directions. Big-picture themes only \u2014 "Harden auth & security", "Add observability", "Scale the data layer", "Pay down test-coverage debt". NOT detailed tasks. NOT file-level. Each gets a short title and one-line \`why\`. If one of them is a concrete BUG to fix (something broken you saw in the code), add \`kind: "BUG"\` so it renders as a typed bug card.
30
+ - **hasFrontend**: \`true\` or \`false\` \u2014 does this repo have a frontend surface (UI code)? You just read the repo, so you know. Set it explicitly; it gates the frontend/backend \`layer\` distinction on the boards (a pure-backend repo never shows it).
31
+ - **components**: 8\u201325 main building blocks of this codebase. NOT every file. Group them by \`domain\` (short UPPERCASE: AUTH, API, DATA, UI, JOBS, INFRA, BILLING, SEARCH, \u2026). For each: a one-line technical \`role\`, a one-sentence plain-language \`plain\`, the few \`files\` that implement it (repo-relative), \`depends\` listing other component titles it relies on \u2014 and, when \`hasFrontend\` is true, \`layer\` (\`"frontend" | "backend" | "fullstack"\`). Use the dependency graph you can see in the source \u2014 files that import each other heavily usually belong together. If you spot a bug or something worth investigating while reading a component's code, add \`bugs: [{ note }]\` to that component \u2014 it renders as a bug flag on the node (attributed to the agent). Only flag what you actually saw in the code; don't speculate.
32
+ - **roadmap**: 3\u20136 BROAD strategic directions. Big-picture themes only \u2014 "Harden auth & security", "Add observability", "Scale the data layer", "Pay down test-coverage debt". NOT detailed tasks. NOT file-level. Each gets a short title and one-line \`why\`. If one of them is a concrete BUG to fix (something broken you saw in the code), add \`kind: "BUG"\` so it renders as a typed bug card. When \`hasFrontend\` is true, give each a \`layer\` too (\`"frontend" | "backend" | "fullstack"\`).
32
33
  - **overview**: one paragraph describing what this project is and its stack. This lands in AGENTS.md as the project intro.
33
34
  - **conventions**: 3\u20138 concrete rules a contributor MUST follow \u2014 build/test commands, where code goes, patterns, things easy to get wrong. Infer from actual files, not assumptions.
34
35
  - **snapshot** (optional but encouraged): \`{ tables, relations, endpoints }\` for the existing database. If the project uses Prisma, read \`prisma/schema.prisma\`. If SQLAlchemy, read the model files. If Django, read \`models.py\`. If you find no obvious schema source, skip the snapshot \u2014 don't fabricate.
@@ -86,7 +87,7 @@ The one caveat: if the user manually edited an INIT-source node on the canvas (e
86
87
  - **~ changed**: COMPONENT_X (role expanded to cover Y)
87
88
  - **schema**: + 2 new tables (TableA, TableB); + 3 new endpoints; \u2212 1 deprecated endpoint
88
89
  No need to wait for confirmation \u2014 just show the diff so the user sees what's about to land.
89
- 5. **Call \`beacon_init_persist\`** ONCE with the refreshed full analysis (same shape as init: \`components\`, \`roadmap\`, \`overview\`, \`conventions\`, \`snapshot\`). It replaces all init-source nodes and regenerates \`AGENTS.md\`. Bug flags already on a component survive the refresh (they're carried over by title); add \`bugs: [{ note }]\` for anything NEW you found worth investigating \u2014 identical open flags are not duplicated.
90
+ 5. **Call \`beacon_init_persist\`** ONCE with the refreshed full analysis (same shape as init: \`components\`, \`roadmap\`, \`overview\`, \`conventions\`, \`snapshot\`, \`hasFrontend\` \u2014 re-assert it, the stack may have changed). It replaces all init-source nodes and regenerates \`AGENTS.md\`. Bug flags already on a component survive the refresh (they're carried over by title); add \`bugs: [{ note }]\` for anything NEW you found worth investigating \u2014 identical open flags are not duplicated.
90
91
 
91
92
  ## What you should NOT do
92
93
 
@@ -165,6 +166,8 @@ When listing endpoints, give each \`uses: [{ table, access }]\` so the endpoint\
165
166
 
166
167
  EVERY feature MUST carry \`category\` (e.g. AUTH | SEARCH | DATA | INTEL | BILLING | \u2026; \`cluster\` is accepted as an alias) and \`priority\` (0 = P0 critical, 1 = P1 high, 2 = P2 medium, 3 = P3 low). Beacon REJECTS a plan whose features omit either \u2014 \`beacon_propose_plan\` returns the list of what's missing, and an ExitPlanMode \`\`\`beacon block is denied \u2014 so set both on every feature instead of relying on defaults.
167
168
 
169
+ When the workspace HAS A FRONTEND (Beacon knows \u2014 the agent set \`hasFrontend\` at init, or frontend files were detected), every feature must ALSO carry \`layer\`: \`"frontend" | "backend" | "fullstack"\` \u2014 which side of the stack the work lands on. Plans omitting it are REJECTED the same way category/priority are. It works on every surface that creates roadmap cards (\`beacon_propose_plan\`, the \`\`\`beacon block, \`beacon_start_feature\`, \`beacon_add_subtasks\` \u2014 sub-tasks default to the parent's layer) and on architecture components (\`beacon_describe_feature\` / \`beacon_init_persist\`). In a pure-backend repo, never set it \u2014 the boards don't show it there.
170
+
168
171
  REUSE before you create. Call \`beacon_map\` to see the features + categories that already exist. Beacon HARD-BLOCKS a feature that duplicates an existing one (it returns the existing feature to use instead) and one created without a category \u2014 so don't re-create work that's already on the board, and reuse an existing category rather than a near-synonym. \`category\` is the ONLY domain field. \`front\` (in \`beacon_start_feature\`) nests a feature UNDER an existing parent feature \u2014 it is NOT a domain tag; a \`front\` that matches no real feature is rejected.
169
172
 
170
173
  When listing features, give each \`dependsOn: ["Other feature title", \u2026]\` for any feature that must ship after another in the same plan. Beacon draws these as "depends on" links so the roadmap shows the dependency chain instead of loose, disconnected cards.
@@ -27,8 +27,9 @@ The user already has Beacon running. You're going to map this repository's archi
27
27
 
28
28
  A single \`beacon_init_persist\` MCP tool call with:
29
29
 
30
- - **components**: 8\u201325 main building blocks of this codebase. NOT every file. Group them by \`domain\` (short UPPERCASE: AUTH, API, DATA, UI, JOBS, INFRA, BILLING, SEARCH, \u2026). For each: a one-line technical \`role\`, a one-sentence plain-language \`plain\`, the few \`files\` that implement it (repo-relative), and \`depends\` listing other component titles it relies on. Use the dependency graph you can see in the source \u2014 files that import each other heavily usually belong together. If you spot a bug or something worth investigating while reading a component's code, add \`bugs: [{ note }]\` to that component \u2014 it renders as a bug flag on the node (attributed to the agent). Only flag what you actually saw in the code; don't speculate.
31
- - **roadmap**: 3\u20136 BROAD strategic directions. Big-picture themes only \u2014 "Harden auth & security", "Add observability", "Scale the data layer", "Pay down test-coverage debt". NOT detailed tasks. NOT file-level. Each gets a short title and one-line \`why\`. If one of them is a concrete BUG to fix (something broken you saw in the code), add \`kind: "BUG"\` so it renders as a typed bug card.
30
+ - **hasFrontend**: \`true\` or \`false\` \u2014 does this repo have a frontend surface (UI code)? You just read the repo, so you know. Set it explicitly; it gates the frontend/backend \`layer\` distinction on the boards (a pure-backend repo never shows it).
31
+ - **components**: 8\u201325 main building blocks of this codebase. NOT every file. Group them by \`domain\` (short UPPERCASE: AUTH, API, DATA, UI, JOBS, INFRA, BILLING, SEARCH, \u2026). For each: a one-line technical \`role\`, a one-sentence plain-language \`plain\`, the few \`files\` that implement it (repo-relative), \`depends\` listing other component titles it relies on \u2014 and, when \`hasFrontend\` is true, \`layer\` (\`"frontend" | "backend" | "fullstack"\`). Use the dependency graph you can see in the source \u2014 files that import each other heavily usually belong together. If you spot a bug or something worth investigating while reading a component's code, add \`bugs: [{ note }]\` to that component \u2014 it renders as a bug flag on the node (attributed to the agent). Only flag what you actually saw in the code; don't speculate.
32
+ - **roadmap**: 3\u20136 BROAD strategic directions. Big-picture themes only \u2014 "Harden auth & security", "Add observability", "Scale the data layer", "Pay down test-coverage debt". NOT detailed tasks. NOT file-level. Each gets a short title and one-line \`why\`. If one of them is a concrete BUG to fix (something broken you saw in the code), add \`kind: "BUG"\` so it renders as a typed bug card. When \`hasFrontend\` is true, give each a \`layer\` too (\`"frontend" | "backend" | "fullstack"\`).
32
33
  - **overview**: one paragraph describing what this project is and its stack. This lands in AGENTS.md as the project intro.
33
34
  - **conventions**: 3\u20138 concrete rules a contributor MUST follow \u2014 build/test commands, where code goes, patterns, things easy to get wrong. Infer from actual files, not assumptions.
34
35
  - **snapshot** (optional but encouraged): \`{ tables, relations, endpoints }\` for the existing database. If the project uses Prisma, read \`prisma/schema.prisma\`. If SQLAlchemy, read the model files. If Django, read \`models.py\`. If you find no obvious schema source, skip the snapshot \u2014 don't fabricate.
@@ -86,7 +87,7 @@ The one caveat: if the user manually edited an INIT-source node on the canvas (e
86
87
  - **~ changed**: COMPONENT_X (role expanded to cover Y)
87
88
  - **schema**: + 2 new tables (TableA, TableB); + 3 new endpoints; \u2212 1 deprecated endpoint
88
89
  No need to wait for confirmation \u2014 just show the diff so the user sees what's about to land.
89
- 5. **Call \`beacon_init_persist\`** ONCE with the refreshed full analysis (same shape as init: \`components\`, \`roadmap\`, \`overview\`, \`conventions\`, \`snapshot\`). It replaces all init-source nodes and regenerates \`AGENTS.md\`. Bug flags already on a component survive the refresh (they're carried over by title); add \`bugs: [{ note }]\` for anything NEW you found worth investigating \u2014 identical open flags are not duplicated.
90
+ 5. **Call \`beacon_init_persist\`** ONCE with the refreshed full analysis (same shape as init: \`components\`, \`roadmap\`, \`overview\`, \`conventions\`, \`snapshot\`, \`hasFrontend\` \u2014 re-assert it, the stack may have changed). It replaces all init-source nodes and regenerates \`AGENTS.md\`. Bug flags already on a component survive the refresh (they're carried over by title); add \`bugs: [{ note }]\` for anything NEW you found worth investigating \u2014 identical open flags are not duplicated.
90
91
 
91
92
  ## What you should NOT do
92
93
 
@@ -165,6 +166,8 @@ When listing endpoints, give each \`uses: [{ table, access }]\` so the endpoint\
165
166
 
166
167
  EVERY feature MUST carry \`category\` (e.g. AUTH | SEARCH | DATA | INTEL | BILLING | \u2026; \`cluster\` is accepted as an alias) and \`priority\` (0 = P0 critical, 1 = P1 high, 2 = P2 medium, 3 = P3 low). Beacon REJECTS a plan whose features omit either \u2014 \`beacon_propose_plan\` returns the list of what's missing, and an ExitPlanMode \`\`\`beacon block is denied \u2014 so set both on every feature instead of relying on defaults.
167
168
 
169
+ When the workspace HAS A FRONTEND (Beacon knows \u2014 the agent set \`hasFrontend\` at init, or frontend files were detected), every feature must ALSO carry \`layer\`: \`"frontend" | "backend" | "fullstack"\` \u2014 which side of the stack the work lands on. Plans omitting it are REJECTED the same way category/priority are. It works on every surface that creates roadmap cards (\`beacon_propose_plan\`, the \`\`\`beacon block, \`beacon_start_feature\`, \`beacon_add_subtasks\` \u2014 sub-tasks default to the parent's layer) and on architecture components (\`beacon_describe_feature\` / \`beacon_init_persist\`). In a pure-backend repo, never set it \u2014 the boards don't show it there.
170
+
168
171
  REUSE before you create. Call \`beacon_map\` to see the features + categories that already exist. Beacon HARD-BLOCKS a feature that duplicates an existing one (it returns the existing feature to use instead) and one created without a category \u2014 so don't re-create work that's already on the board, and reuse an existing category rather than a near-synonym. \`category\` is the ONLY domain field. \`front\` (in \`beacon_start_feature\`) nests a feature UNDER an existing parent feature \u2014 it is NOT a domain tag; a \`front\` that matches no real feature is rejected.
169
172
 
170
173
  When listing features, give each \`dependsOn: ["Other feature title", \u2026]\` for any feature that must ship after another in the same plan. Beacon draws these as "depends on" links so the roadmap shows the dependency chain instead of loose, disconnected cards.
@@ -27,8 +27,9 @@ The user already has Beacon running. You're going to map this repository's archi
27
27
 
28
28
  A single \`beacon_init_persist\` MCP tool call with:
29
29
 
30
- - **components**: 8\u201325 main building blocks of this codebase. NOT every file. Group them by \`domain\` (short UPPERCASE: AUTH, API, DATA, UI, JOBS, INFRA, BILLING, SEARCH, \u2026). For each: a one-line technical \`role\`, a one-sentence plain-language \`plain\`, the few \`files\` that implement it (repo-relative), and \`depends\` listing other component titles it relies on. Use the dependency graph you can see in the source \u2014 files that import each other heavily usually belong together. If you spot a bug or something worth investigating while reading a component's code, add \`bugs: [{ note }]\` to that component \u2014 it renders as a bug flag on the node (attributed to the agent). Only flag what you actually saw in the code; don't speculate.
31
- - **roadmap**: 3\u20136 BROAD strategic directions. Big-picture themes only \u2014 "Harden auth & security", "Add observability", "Scale the data layer", "Pay down test-coverage debt". NOT detailed tasks. NOT file-level. Each gets a short title and one-line \`why\`. If one of them is a concrete BUG to fix (something broken you saw in the code), add \`kind: "BUG"\` so it renders as a typed bug card.
30
+ - **hasFrontend**: \`true\` or \`false\` \u2014 does this repo have a frontend surface (UI code)? You just read the repo, so you know. Set it explicitly; it gates the frontend/backend \`layer\` distinction on the boards (a pure-backend repo never shows it).
31
+ - **components**: 8\u201325 main building blocks of this codebase. NOT every file. Group them by \`domain\` (short UPPERCASE: AUTH, API, DATA, UI, JOBS, INFRA, BILLING, SEARCH, \u2026). For each: a one-line technical \`role\`, a one-sentence plain-language \`plain\`, the few \`files\` that implement it (repo-relative), \`depends\` listing other component titles it relies on \u2014 and, when \`hasFrontend\` is true, \`layer\` (\`"frontend" | "backend" | "fullstack"\`). Use the dependency graph you can see in the source \u2014 files that import each other heavily usually belong together. If you spot a bug or something worth investigating while reading a component's code, add \`bugs: [{ note }]\` to that component \u2014 it renders as a bug flag on the node (attributed to the agent). Only flag what you actually saw in the code; don't speculate.
32
+ - **roadmap**: 3\u20136 BROAD strategic directions. Big-picture themes only \u2014 "Harden auth & security", "Add observability", "Scale the data layer", "Pay down test-coverage debt". NOT detailed tasks. NOT file-level. Each gets a short title and one-line \`why\`. If one of them is a concrete BUG to fix (something broken you saw in the code), add \`kind: "BUG"\` so it renders as a typed bug card. When \`hasFrontend\` is true, give each a \`layer\` too (\`"frontend" | "backend" | "fullstack"\`).
32
33
  - **overview**: one paragraph describing what this project is and its stack. This lands in AGENTS.md as the project intro.
33
34
  - **conventions**: 3\u20138 concrete rules a contributor MUST follow \u2014 build/test commands, where code goes, patterns, things easy to get wrong. Infer from actual files, not assumptions.
34
35
  - **snapshot** (optional but encouraged): \`{ tables, relations, endpoints }\` for the existing database. If the project uses Prisma, read \`prisma/schema.prisma\`. If SQLAlchemy, read the model files. If Django, read \`models.py\`. If you find no obvious schema source, skip the snapshot \u2014 don't fabricate.
@@ -86,7 +87,7 @@ The one caveat: if the user manually edited an INIT-source node on the canvas (e
86
87
  - **~ changed**: COMPONENT_X (role expanded to cover Y)
87
88
  - **schema**: + 2 new tables (TableA, TableB); + 3 new endpoints; \u2212 1 deprecated endpoint
88
89
  No need to wait for confirmation \u2014 just show the diff so the user sees what's about to land.
89
- 5. **Call \`beacon_init_persist\`** ONCE with the refreshed full analysis (same shape as init: \`components\`, \`roadmap\`, \`overview\`, \`conventions\`, \`snapshot\`). It replaces all init-source nodes and regenerates \`AGENTS.md\`. Bug flags already on a component survive the refresh (they're carried over by title); add \`bugs: [{ note }]\` for anything NEW you found worth investigating \u2014 identical open flags are not duplicated.
90
+ 5. **Call \`beacon_init_persist\`** ONCE with the refreshed full analysis (same shape as init: \`components\`, \`roadmap\`, \`overview\`, \`conventions\`, \`snapshot\`, \`hasFrontend\` \u2014 re-assert it, the stack may have changed). It replaces all init-source nodes and regenerates \`AGENTS.md\`. Bug flags already on a component survive the refresh (they're carried over by title); add \`bugs: [{ note }]\` for anything NEW you found worth investigating \u2014 identical open flags are not duplicated.
90
91
 
91
92
  ## What you should NOT do
92
93
 
@@ -165,6 +166,8 @@ When listing endpoints, give each \`uses: [{ table, access }]\` so the endpoint\
165
166
 
166
167
  EVERY feature MUST carry \`category\` (e.g. AUTH | SEARCH | DATA | INTEL | BILLING | \u2026; \`cluster\` is accepted as an alias) and \`priority\` (0 = P0 critical, 1 = P1 high, 2 = P2 medium, 3 = P3 low). Beacon REJECTS a plan whose features omit either \u2014 \`beacon_propose_plan\` returns the list of what's missing, and an ExitPlanMode \`\`\`beacon block is denied \u2014 so set both on every feature instead of relying on defaults.
167
168
 
169
+ When the workspace HAS A FRONTEND (Beacon knows \u2014 the agent set \`hasFrontend\` at init, or frontend files were detected), every feature must ALSO carry \`layer\`: \`"frontend" | "backend" | "fullstack"\` \u2014 which side of the stack the work lands on. Plans omitting it are REJECTED the same way category/priority are. It works on every surface that creates roadmap cards (\`beacon_propose_plan\`, the \`\`\`beacon block, \`beacon_start_feature\`, \`beacon_add_subtasks\` \u2014 sub-tasks default to the parent's layer) and on architecture components (\`beacon_describe_feature\` / \`beacon_init_persist\`). In a pure-backend repo, never set it \u2014 the boards don't show it there.
170
+
168
171
  REUSE before you create. Call \`beacon_map\` to see the features + categories that already exist. Beacon HARD-BLOCKS a feature that duplicates an existing one (it returns the existing feature to use instead) and one created without a category \u2014 so don't re-create work that's already on the board, and reuse an existing category rather than a near-synonym. \`category\` is the ONLY domain field. \`front\` (in \`beacon_start_feature\`) nests a feature UNDER an existing parent feature \u2014 it is NOT a domain tag; a \`front\` that matches no real feature is rejected.
169
172
 
170
173
  When listing features, give each \`dependsOn: ["Other feature title", \u2026]\` for any feature that must ship after another in the same plan. Beacon draws these as "depends on" links so the roadmap shows the dependency chain instead of loose, disconnected cards.
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ var m=Object.defineProperty;var q=(b)=>b;function v(b,j){this[b]=q.bind(null,j)}var x=(b,j)=>{for(var k in j)m(b,k,{get:j[k],enumerable:!0,configurable:!0,set:v.bind(j,k)})};var y=(b,j)=>()=>(b&&(j=b(b=0)),j);var A="wenzorithelly/beacon",B="trybeacon",C="https://registry.npmjs.org/trybeacon/latest",w=(process.env.NEXT_PUBLIC_BEACON_SITE_URL??"https://www.trybeacon.sh").replace(/\/$/,""),D=`curl -fsSL ${w}/install.sh | sh`;export{w as SITE_URL,A as REPO_SLUG,B as NPM_PACKAGE,C as NPM_LATEST_URL,D as INSTALL_COMMAND};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ var i=Object.defineProperty;var o=(r)=>r;function u(r,e){this[r]=o.bind(null,e)}var l=(r,e)=>{for(var n in e)i(r,n,{get:e[n],enumerable:!0,configurable:!0,set:u.bind(e,n)})};var f=(r,e)=>()=>(r&&(e=r(r=0)),e);function s(r){if(typeof r!=="string")return null;let e=r.trim().replace(/^v/i,"").match(/^(\d+)(?:\.(\d+))?(?:\.(\d+))?/);if(!e)return null;return[Number(e[1]),Number(e[2]??0),Number(e[3]??0)]}function m(r,e){let n=s(r),a=s(e);if(!n||!a)return!1;for(let t=0;t<3;t++){if(n[t]>a[t])return!0;if(n[t]<a[t])return!1}return!1}export{s as parseVersion,m as isNewerVersion};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- var q=Object.defineProperty;var P=(Q)=>Q;function S(Q,X){this[Q]=P.bind(null,X)}var y=(Q,X)=>{for(var Z in X)q(Q,Z,{get:X[Z],enumerable:!0,configurable:!0,set:S.bind(X,Z)})};var k=(Q,X)=>()=>(Q&&(X=Q(Q=0)),X);var v={};y(v,{provisionDb:()=>o});import{createClient as w}from"@libsql/client";import{drizzle as b}from"drizzle-orm/libsql";import{migrate as m}from"drizzle-orm/libsql/migrator";import{readMigrationFiles as g}from"drizzle-orm/migrator";import{dirname as u,join as p}from"path";import{fileURLToPath as h}from"url";async function N(Q,X){return(await Q.execute({sql:"SELECT 1 FROM sqlite_master WHERE type='table' AND name = ?",args:[X]})).rows.length>0}async function n(Q,X){let Z=await Q.execute(`PRAGMA table_info("${X}")`);return new Set(Z.rows.map(($)=>String($.name)))}async function f(Q){if(!await N(Q,"__drizzle_migrations"))return 0;let X=await Q.execute('SELECT count(*) AS n FROM "__drizzle_migrations"');return Number(X.rows[0]?.n??0)}async function d(Q){for(let[X,Z]of Object.entries(s)){if(!await N(Q,X))continue;let $=await n(Q,X);for(let J of Z){if(!$.has(J))continue;await Q.execute(`UPDATE "${X}" SET "${J}" = CAST((julianday("${J}") - 2440587.5) * 86400000 AS INTEGER) WHERE typeof("${J}") = 'text'`)}}}async function o(Q,X=c){let Z=w({url:Q});try{await Z.execute("PRAGMA journal_mode = WAL;"),await Z.execute("PRAGMA foreign_keys = ON;"),await Z.execute("PRAGMA busy_timeout = 5000;");let $=await N(Z,"__drizzle_migrations"),J=await N(Z,"Node"),Y=!1;if(J&&!$){let B=g({migrationsFolder:X})[0];if(B)await Z.execute('CREATE TABLE IF NOT EXISTS "__drizzle_migrations" (id SERIAL PRIMARY KEY, hash text NOT NULL, created_at numeric)'),await Z.execute({sql:'INSERT INTO "__drizzle_migrations" ("hash", "created_at") VALUES (?, ?)',args:[B.hash,B.folderMillis]}),Y=!0}let L=await f(Z);if(await m(b(Z),{migrationsFolder:X}),await f(Z)>L)Y=!0;return await d(Z),{migrated:Y}}finally{Z.close()}}var l,c,s;var _=k(async()=>{l=u(u(u(h(import.meta.url)))),c=process.env.BEACON_MIGRATIONS_DIR||p(l,"drizzle"),s={Node:["createdAt","updatedAt"],Note:["createdAt","updatedAt"],DbTable:["createdAt","updatedAt"],Endpoint:["createdAt","updatedAt"],DraftTable:["createdAt"],SyncState:["codeGraphSyncedAt","updatedAt"],AppSetting:["updatedAt"],ProjectMeta:["updatedAt"],CodeFile:["updatedAt"]}});import{AsyncLocalStorage as a}from"async_hooks";import{spawnSync as t}from"child_process";import{createHash as r}from"crypto";import{existsSync as D,mkdirSync as U,readFileSync as x,writeFileSync as E}from"fs";import{homedir as i}from"os";import{basename as e,join as V}from"path";function K(){return process.env.BEACON_HOME||V(i(),".beacon")}function C(){return V(K(),"workspaces.json")}function R(Q){return r("sha256").update(Q).digest("hex").slice(0,12)}function TQ(Q=process.cwd()){let X=t("git",["rev-parse","--show-toplevel"],{cwd:Q,stdio:["ignore","pipe","ignore"]});if(X.status===0){let Z=X.stdout?.toString().trim();if(Z)return Z}return Q}function j(Q){return V(K(),Q)}function QQ(Q){return`file:${V(j(Q),"db.sqlite")}`}function M(){try{let Q=JSON.parse(x(C(),"utf8"));return Array.isArray(Q)?Q:[]}catch{return[]}}function O(Q){U(K(),{recursive:!0}),E(C(),JSON.stringify(Q,null,2))}function XQ(){return M().sort((Q,X)=>X.lastOpenedAt.localeCompare(Q.lastOpenedAt))}function G(Q){return M().find((X)=>X.id===Q)??null}function ZQ(Q,X,Z=new Date().toISOString()){let $=R(Q),J=M(),Y=J.find((H)=>H.id===$),L={id:$,path:Q,name:X||Y?.name||e(Q),lastOpenedAt:Z},B=[L,...J.filter((H)=>H.id!==$)];return U(j($),{recursive:!0}),O(B),L}function fQ(Q,X=new Date().toISOString()){let Z=M(),$=Z.find((J)=>J.id===Q);if(!$)return;$.lastOpenedAt=X,O(Z)}function vQ(Q){if(O(M().filter((X)=>X.id!==Q)),T()===Q)$Q(XQ()[0]?.id??null)}function W(){return V(K(),"active")}function T(){try{return x(W(),"utf8").trim()||null}catch{return null}}function $Q(Q){U(K(),{recursive:!0}),E(W(),Q??"")}function _Q(){let Q=T();return Q?G(Q):null}function DQ(){let Q=YQ()??T();return Q?G(Q):null}function xQ(Q){return G(Q)?.path??null}function EQ(){return D(C())}var A="beacon_ws";function F(Q,X){let Z=Q.headers.get("cookie");if(!Z)return null;for(let $ of Z.split(";")){let J=$.indexOf("=");if(J===-1)continue;if($.slice(0,J).trim()===X)return decodeURIComponent($.slice(J+1).trim())}return null}function RQ(Q){let X=Q.headers.get("x-beacon-workspace");if(X&&G(X))return X;let Z=F(Q,A);if(Z&&G(Z))return Z;return null}var JQ="x-beacon-workspace-path";async function WQ(Q){let X=Q.headers.get("x-beacon-workspace");if(X&&G(X))return X;let Z=Q.headers.get(JQ);if(Z&&(!X||R(Z)===X)){let J=ZQ(Z);return await GQ(J.id),J.id}let $=F(Q,A);if($&&G($))return $;return null}var I=new a;function AQ(Q,X){return Q?I.run(Q,X):X()}function YQ(){return I.getStore()??null}var z=new Set;function FQ(Q){z.delete(V(j(Q),"db.sqlite"))}async function GQ(Q){let X=j(Q),Z=V(X,"db.sqlite"),$=D(Z);if($&&z.has(Z))return{ok:!0,created:!1,migrated:!1};try{U(X,{recursive:!0});let{provisionDb:J}=await _().then(() => v),Y=await J(QQ(Q));return z.add(Z),{ok:!0,created:!$,migrated:$&&Y.migrated}}catch(J){return{ok:!1,created:!1,migrated:!1,error:J instanceof Error?J.message:String(J)}}}export{RQ as workspaceIdFromRequest,fQ as touchWorkspace,$Q as setActiveId,AQ as runWithWorkspace,WQ as resolveRequestWorkspaceId,TQ as repoRootFrom,vQ as removeWorkspace,EQ as registryExists,xQ as pathForWorkspace,XQ as listWorkspaces,R as idForPath,G as getWorkspace,YQ as getPinnedWorkspaceId,T as getActiveId,FQ as forgetWorkspaceDb,GQ as ensureWorkspaceDb,QQ as dbUrlFor,j as dataDirFor,DQ as currentWorkspace,K as beaconHome,ZQ as addWorkspace,_Q as activeWorkspace,JQ as BEACON_WS_PATH_HEADER,A as BEACON_WS_COOKIE};
2
+ var m=Object.defineProperty;var p=(Q)=>Q;function h(Q,X){this[Q]=p.bind(null,X)}var l=(Q,X)=>{for(var Z in X)m(Q,Z,{get:X[Z],enumerable:!0,configurable:!0,set:h.bind(X,Z)})};var c=(Q,X)=>()=>(Q&&(X=Q(Q=0)),X);var A={};l(A,{provisionDb:()=>ZQ});import{createClient as n}from"@libsql/client";import{drizzle as s}from"drizzle-orm/libsql";import{migrate as o}from"drizzle-orm/libsql/migrator";import{readMigrationFiles as d}from"drizzle-orm/migrator";import{dirname as C,join as a}from"path";import{fileURLToPath as t}from"url";async function U(Q,X){return(await Q.execute({sql:"SELECT 1 FROM sqlite_master WHERE type='table' AND name = ?",args:[X]})).rows.length>0}async function QQ(Q,X){let Z=await Q.execute(`PRAGMA table_info("${X}")`);return new Set(Z.rows.map(($)=>String($.name)))}async function x(Q){if(!await U(Q,"__drizzle_migrations"))return 0;let X=await Q.execute('SELECT count(*) AS n FROM "__drizzle_migrations"');return Number(X.rows[0]?.n??0)}async function XQ(Q){for(let[X,Z]of Object.entries(e)){if(!await U(Q,X))continue;let $=await QQ(Q,X);for(let J of Z){if(!$.has(J))continue;await Q.execute(`UPDATE "${X}" SET "${J}" = CAST((julianday("${J}") - 2440587.5) * 86400000 AS INTEGER) WHERE typeof("${J}") = 'text'`)}}}async function ZQ(Q,X=i){let Z=n({url:Q});try{await Z.execute("PRAGMA journal_mode = WAL;"),await Z.execute("PRAGMA foreign_keys = ON;"),await Z.execute("PRAGMA busy_timeout = 5000;");let $=await U(Z,"__drizzle_migrations"),J=await U(Z,"Node"),G=!1;if(J&&!$){let K=d({migrationsFolder:X})[0];if(K)await Z.execute('CREATE TABLE IF NOT EXISTS "__drizzle_migrations" (id SERIAL PRIMARY KEY, hash text NOT NULL, created_at numeric)'),await Z.execute({sql:'INSERT INTO "__drizzle_migrations" ("hash", "created_at") VALUES (?, ?)',args:[K.hash,K.folderMillis]}),G=!0}let N=await x(Z);if(await o(s(Z),{migrationsFolder:X}),await x(Z)>N)G=!0;return await XQ(Z),{migrated:G}}finally{Z.close()}}var r,i,e;var I=c(async()=>{r=C(C(C(t(import.meta.url)))),i=process.env.BEACON_MIGRATIONS_DIR||a(r,"drizzle"),e={Node:["createdAt","updatedAt"],Note:["createdAt","updatedAt"],DbTable:["createdAt","updatedAt"],Endpoint:["createdAt","updatedAt"],DraftTable:["createdAt"],SyncState:["codeGraphSyncedAt","updatedAt"],AppSetting:["updatedAt"],ProjectMeta:["updatedAt"],CodeFile:["updatedAt"]}});import{AsyncLocalStorage as $Q}from"async_hooks";import{spawnSync as JQ}from"child_process";import{createHash as YQ}from"crypto";import{existsSync as q,mkdirSync as M,readFileSync as O,writeFileSync as f}from"fs";import{homedir as D}from"os";import{basename as GQ,join as Y,parse as VQ,resolve as R}from"path";function B(){return process.env.BEACON_HOME||Y(D(),".beacon")}function T(){return Y(B(),"workspaces.json")}function j(Q){return YQ("sha256").update(Q).digest("hex").slice(0,12)}function RQ(Q=process.cwd()){let X=JQ("git",["rev-parse","--show-toplevel"],{cwd:Q,stdio:["ignore","pipe","ignore"]});if(X.status===0){let Z=X.stdout?.toString().trim();if(Z)return Z}return Q}function F(Q){let X=R(Q);return X!==R(D())&&X!==VQ(X).root}function W(){return Y(B(),"deleted.json")}function _(){try{let Q=JSON.parse(O(W(),"utf8"));return Array.isArray(Q)?Q:[]}catch{return[]}}function S(Q){M(B(),{recursive:!0}),f(W(),JSON.stringify(Q,null,2))}function P(Q){return _().includes(Q)}function qQ(Q){let X=_();if(!X.includes(Q))S([...X,Q])}function BQ(Q){let X=_();if(X.includes(Q))S(X.filter((Z)=>Z!==Q))}function u(Q){return Y(B(),Q)}function KQ(Q){return`file:${Y(u(Q),"db.sqlite")}`}function L(){try{let Q=JSON.parse(O(T(),"utf8"));return Array.isArray(Q)?Q:[]}catch{return[]}}function v(Q){M(B(),{recursive:!0}),f(T(),JSON.stringify(Q,null,2))}function MQ(){return L().sort((Q,X)=>X.lastOpenedAt.localeCompare(Q.lastOpenedAt))}function V(Q){return L().find((X)=>X.id===Q)??null}function y(Q,X,Z=new Date().toISOString()){if(!F(Q))throw Error(`beacon: refusing to register a non-repo path as a workspace: ${Q}`);let $=j(Q);if(P($))throw Error(`beacon: workspace ${$} (${Q}) was deleted \u2014 run \`beacon\` or /beacon-init to re-add it`);let J=L(),G=J.find((z)=>z.id===$),N={id:$,path:Q,name:X||G?.name||GQ(Q),lastOpenedAt:Z},K=[N,...J.filter((z)=>z.id!==$)];return M(u($),{recursive:!0}),v(K),N}function DQ(Q,X){return BQ(j(Q)),y(Q,X)}function FQ(Q,X=new Date().toISOString()){let Z=L(),$=Z.find((J)=>J.id===Q);if(!$)return;$.lastOpenedAt=X,v(Z)}function WQ(Q){if(v(L().filter((X)=>X.id!==Q)),E()===Q)LQ(MQ()[0]?.id??null)}function k(){return Y(B(),"active")}function E(){try{return O(k(),"utf8").trim()||null}catch{return null}}function LQ(Q){M(B(),{recursive:!0}),f(k(),Q??"")}function SQ(){let Q=E();return Q?V(Q):null}function PQ(){let Q=UQ()??E();return Q?V(Q):null}function yQ(Q){return V(Q)?.path??null}function kQ(){return q(T())}var w="beacon_ws";function b(Q,X){let Z=Q.headers.get("cookie");if(!Z)return null;for(let $ of Z.split(";")){let J=$.indexOf("=");if(J===-1)continue;if($.slice(0,J).trim()===X)return decodeURIComponent($.slice(J+1).trim())}return null}function wQ(Q){let X=Q.headers.get("x-beacon-workspace");if(X&&V(X))return X;let Z=b(Q,w);if(Z&&V(Z))return Z;return null}var NQ="x-beacon-workspace-path";async function bQ(Q){let X=Q.headers.get("x-beacon-workspace");if(X&&V(X))return X;let Z=Q.headers.get(NQ);if(Z&&F(Z)&&!P(j(Z))&&(!X||j(Z)===X)){let J=y(Z);return await jQ(J.id),J.id}let $=b(Q,w);if($&&V($))return $;return null}var g=new $Q;function gQ(Q,X){return Q?g.run(Q,X):X()}function UQ(){return g.getStore()??null}var H=new Set;function mQ(Q){H.delete(Y(u(Q),"db.sqlite"))}async function jQ(Q){let X=u(Q),Z=Y(X,"db.sqlite"),$=q(Z);if($&&H.has(Z))return{ok:!0,created:!1,migrated:!1};try{M(X,{recursive:!0});let{provisionDb:J}=await I().then(() => A),G=await J(KQ(Q));return H.add(Z),{ok:!0,created:!$,migrated:$&&G.migrated}}catch(J){return{ok:!1,created:!1,migrated:!1,error:J instanceof Error?J.message:String(J)}}}export{wQ as workspaceIdFromRequest,FQ as touchWorkspace,qQ as tombstoneWorkspace,LQ as setActiveId,gQ as runWithWorkspace,bQ as resolveRequestWorkspaceId,RQ as repoRootFrom,WQ as removeWorkspace,kQ as registryExists,DQ as registerWorkspaceExplicit,yQ as pathForWorkspace,MQ as listWorkspaces,P as isWorkspaceDeleted,F as isRegistrableWorkspacePath,j as idForPath,V as getWorkspace,UQ as getPinnedWorkspaceId,E as getActiveId,mQ as forgetWorkspaceDb,jQ as ensureWorkspaceDb,KQ as dbUrlFor,u as dataDirFor,PQ as currentWorkspace,BQ as clearWorkspaceTombstone,B as beaconHome,y as addWorkspace,SQ as activeWorkspace,NQ as BEACON_WS_PATH_HEADER,w as BEACON_WS_COOKIE};
@@ -0,0 +1,2 @@
1
+ ALTER TABLE `Node` ADD `layer` text;--> statement-breakpoint
2
+ ALTER TABLE `ProjectMeta` ADD `hasFrontend` integer;