trybeacon 0.1.14 → 0.1.16

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 (297) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +9 -8
  3. package/.next/build-manifest.json +2 -2
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/routes-manifest.json +14 -6
  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/bug-flags/[id]/route.js +1 -0
  29. package/.next/server/app/api/bug-flags/[id]/route.js.nft.json +1 -0
  30. package/.next/server/app/api/bug-flags/[id]/route_client-reference-manifest.js +1 -0
  31. package/.next/server/app/api/bug-flags/route.js +1 -0
  32. package/.next/server/app/api/{settings → bug-flags}/route.js.nft.json +1 -1
  33. package/.next/server/app/api/bug-flags/route_client-reference-manifest.js +1 -0
  34. package/.next/server/app/api/code-graph/position/route.js +1 -1
  35. package/.next/server/app/api/code-graph/route.js +1 -1
  36. package/.next/server/app/api/context/feature/route.js +1 -1
  37. package/.next/server/app/api/context/file/route.js +1 -1
  38. package/.next/server/app/api/context/route.js +1 -1
  39. package/.next/server/app/api/db/arrange/route.js +1 -1
  40. package/.next/server/app/api/db/backfill-access/route.js +1 -1
  41. package/.next/server/app/api/db/position/route.js +1 -1
  42. package/.next/server/app/api/db/reconcile-endpoints/route.js +1 -1
  43. package/.next/server/app/api/db/relations/[id]/route.js +1 -1
  44. package/.next/server/app/api/db/tables/[id]/route.js +1 -1
  45. package/.next/server/app/api/draft/approve/route.js +2 -2
  46. package/.next/server/app/api/draft/route.js +2 -2
  47. package/.next/server/app/api/draft/status/route.js +1 -1
  48. package/.next/server/app/api/edges/[id]/route.js +1 -1
  49. package/.next/server/app/api/edges/route.js +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/map/describe/route.js +2 -2
  58. package/.next/server/app/api/map/files/route.js +1 -1
  59. package/.next/server/app/api/map/finish/route.js +1 -1
  60. package/.next/server/app/api/map/route.js +1 -1
  61. package/.next/server/app/api/map/start/route.js +1 -1
  62. package/.next/server/app/api/map/touch-active/route.js +1 -1
  63. package/.next/server/app/api/nodes/[id]/position/route.js +1 -1
  64. package/.next/server/app/api/nodes/[id]/route.js +1 -1
  65. package/.next/server/app/api/nodes/positions/route.js +1 -1
  66. package/.next/server/app/api/nodes/route.js +1 -1
  67. package/.next/server/app/api/nodes/subtasks/route.js +1 -1
  68. package/.next/server/app/api/notes/[id]/route.js +1 -1
  69. package/.next/server/app/api/notes/route.js +1 -1
  70. package/.next/server/app/api/open/route.js +1 -1
  71. package/.next/server/app/api/plan/annotations/route.js +3 -3
  72. package/.next/server/app/api/plan/approve/route.js +2 -2
  73. package/.next/server/app/api/plan/history/route.js +1 -1
  74. package/.next/server/app/api/plan/markdown/route.js +1 -1
  75. package/.next/server/app/api/plan/presence/route.js +1 -1
  76. package/.next/server/app/api/plan/route.js +1 -1
  77. package/.next/server/app/api/plan/verdict/route.js +2 -2
  78. package/.next/server/app/api/preferences/route.js +1 -1
  79. package/.next/server/app/api/reset/route.js +1 -1
  80. package/.next/server/app/api/stream/route.js +2 -2
  81. package/.next/server/app/api/version/route.js +1 -1
  82. package/.next/server/app/api/workspace/activate/route.js +1 -1
  83. package/.next/server/app/api/workspace/route.js +1 -1
  84. package/.next/server/app/apple-icon.png/route.js +1 -1
  85. package/.next/server/app/docs/page.js +2 -2
  86. package/.next/server/app/docs/page_client-reference-manifest.js +1 -1
  87. package/.next/server/app/docs.html +1 -1
  88. package/.next/server/app/docs.rsc +2 -2
  89. package/.next/server/app/docs.segments/_full.segment.rsc +2 -2
  90. package/.next/server/app/docs.segments/_head.segment.rsc +1 -1
  91. package/.next/server/app/docs.segments/_index.segment.rsc +2 -2
  92. package/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
  93. package/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +1 -1
  94. package/.next/server/app/docs.segments/docs.segment.rsc +1 -1
  95. package/.next/server/app/feedback/page.js +2 -2
  96. package/.next/server/app/feedback/page_client-reference-manifest.js +1 -1
  97. package/.next/server/app/feedback.html +1 -1
  98. package/.next/server/app/feedback.rsc +2 -2
  99. package/.next/server/app/feedback.segments/_full.segment.rsc +2 -2
  100. package/.next/server/app/feedback.segments/_head.segment.rsc +1 -1
  101. package/.next/server/app/feedback.segments/_index.segment.rsc +2 -2
  102. package/.next/server/app/feedback.segments/_tree.segment.rsc +2 -2
  103. package/.next/server/app/feedback.segments/feedback/__PAGE__.segment.rsc +1 -1
  104. package/.next/server/app/feedback.segments/feedback.segment.rsc +1 -1
  105. package/.next/server/app/help/page.js +2 -2
  106. package/.next/server/app/help/page_client-reference-manifest.js +1 -1
  107. package/.next/server/app/help.html +1 -1
  108. package/.next/server/app/help.rsc +20 -19
  109. package/.next/server/app/help.segments/_full.segment.rsc +20 -19
  110. package/.next/server/app/help.segments/_head.segment.rsc +1 -1
  111. package/.next/server/app/help.segments/_index.segment.rsc +2 -2
  112. package/.next/server/app/help.segments/_tree.segment.rsc +2 -2
  113. package/.next/server/app/help.segments/help/__PAGE__.segment.rsc +1 -1
  114. package/.next/server/app/help.segments/help.segment.rsc +1 -1
  115. package/.next/server/app/icon.svg/route.js +1 -1
  116. package/.next/server/app/index.html +1 -1
  117. package/.next/server/app/index.rsc +3 -3
  118. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  119. package/.next/server/app/index.segments/_full.segment.rsc +3 -3
  120. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  121. package/.next/server/app/index.segments/_index.segment.rsc +2 -2
  122. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  123. package/.next/server/app/map/page.js +2 -2
  124. package/.next/server/app/map/page.js.nft.json +1 -1
  125. package/.next/server/app/map/page_client-reference-manifest.js +1 -1
  126. package/.next/server/app/page.js +2 -2
  127. package/.next/server/app/page_client-reference-manifest.js +1 -1
  128. package/.next/server/app/plan/page.js +2 -2
  129. package/.next/server/app/plan/page.js.nft.json +1 -1
  130. package/.next/server/app/plan/page_client-reference-manifest.js +1 -1
  131. package/.next/server/app/settings/page.js +2 -2
  132. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  133. package/.next/server/app-paths-manifest.json +9 -8
  134. package/.next/server/chunks/1130.js +1 -1
  135. package/.next/server/chunks/1263.js +1 -0
  136. package/.next/server/chunks/{3968.js → 2574.js} +2 -2
  137. package/.next/server/chunks/2933.js +1 -1
  138. package/.next/server/chunks/9683.js +1 -1
  139. package/.next/server/instrumentation.js +1 -1
  140. package/.next/server/middleware-build-manifest.js +1 -1
  141. package/.next/server/middleware.js +3 -3
  142. package/.next/server/pages/404.html +1 -1
  143. package/.next/server/pages/500.html +1 -1
  144. package/.next/server/server-reference-manifest.js +1 -1
  145. package/.next/server/server-reference-manifest.json +1 -1
  146. package/.next/static/chunks/1202-dfeac8ec49693586.js +1 -0
  147. package/.next/static/chunks/6666-31528aed4743588c.js +1 -0
  148. package/.next/static/chunks/app/_global-error/{page-3b9ad860c9e9f7cb.js → page-0fdd2f2bb2631a50.js} +1 -1
  149. package/.next/static/chunks/app/api/board-annotations/[id]/{route-3b9ad860c9e9f7cb.js → route-0fdd2f2bb2631a50.js} +1 -1
  150. package/.next/static/chunks/app/api/board-annotations/{route-3b9ad860c9e9f7cb.js → route-0fdd2f2bb2631a50.js} +1 -1
  151. package/.next/static/chunks/app/api/{code-graph/position/route-3b9ad860c9e9f7cb.js → bug-flags/[id]/route-0fdd2f2bb2631a50.js} +1 -1
  152. package/.next/static/chunks/app/api/bug-flags/route-0fdd2f2bb2631a50.js +1 -0
  153. package/.next/static/chunks/app/api/code-graph/position/route-0fdd2f2bb2631a50.js +1 -0
  154. package/.next/static/chunks/app/api/code-graph/route-0fdd2f2bb2631a50.js +1 -0
  155. package/.next/static/chunks/app/api/context/feature/route-0fdd2f2bb2631a50.js +1 -0
  156. package/.next/static/chunks/app/api/context/file/route-0fdd2f2bb2631a50.js +1 -0
  157. package/.next/static/chunks/app/api/context/route-0fdd2f2bb2631a50.js +1 -0
  158. package/.next/static/chunks/app/api/db/arrange/route-0fdd2f2bb2631a50.js +1 -0
  159. package/.next/static/chunks/app/api/db/backfill-access/route-0fdd2f2bb2631a50.js +1 -0
  160. package/.next/static/chunks/app/api/db/position/route-0fdd2f2bb2631a50.js +1 -0
  161. package/.next/static/chunks/app/api/db/reconcile-endpoints/route-0fdd2f2bb2631a50.js +1 -0
  162. package/.next/static/chunks/app/api/db/relations/[id]/route-0fdd2f2bb2631a50.js +1 -0
  163. package/.next/static/chunks/app/api/db/tables/[id]/route-0fdd2f2bb2631a50.js +1 -0
  164. package/.next/static/chunks/app/api/draft/approve/route-0fdd2f2bb2631a50.js +1 -0
  165. package/.next/static/chunks/app/api/draft/route-0fdd2f2bb2631a50.js +1 -0
  166. package/.next/static/chunks/app/api/draft/status/route-0fdd2f2bb2631a50.js +1 -0
  167. package/.next/static/chunks/app/api/edges/[id]/route-0fdd2f2bb2631a50.js +1 -0
  168. package/.next/static/chunks/app/api/edges/route-0fdd2f2bb2631a50.js +1 -0
  169. package/.next/static/chunks/app/api/endpoints/[id]/route-0fdd2f2bb2631a50.js +1 -0
  170. package/.next/static/chunks/app/api/entities/route-0fdd2f2bb2631a50.js +1 -0
  171. package/.next/static/chunks/app/api/feedback/[id]/route-0fdd2f2bb2631a50.js +1 -0
  172. package/.next/static/chunks/app/api/feedback/[id]/vote/route-0fdd2f2bb2631a50.js +1 -0
  173. package/.next/static/chunks/app/api/feedback/route-0fdd2f2bb2631a50.js +1 -0
  174. package/.next/static/chunks/app/api/ingest/route-0fdd2f2bb2631a50.js +1 -0
  175. package/.next/static/chunks/app/api/init/route-0fdd2f2bb2631a50.js +1 -0
  176. package/.next/static/chunks/app/api/map/describe/route-0fdd2f2bb2631a50.js +1 -0
  177. package/.next/static/chunks/app/api/map/files/route-0fdd2f2bb2631a50.js +1 -0
  178. package/.next/static/chunks/app/api/map/finish/route-0fdd2f2bb2631a50.js +1 -0
  179. package/.next/static/chunks/app/api/map/route-0fdd2f2bb2631a50.js +1 -0
  180. package/.next/static/chunks/app/api/map/start/route-0fdd2f2bb2631a50.js +1 -0
  181. package/.next/static/chunks/app/api/map/touch-active/route-0fdd2f2bb2631a50.js +1 -0
  182. package/.next/static/chunks/app/api/nodes/[id]/position/route-0fdd2f2bb2631a50.js +1 -0
  183. package/.next/static/chunks/app/api/nodes/[id]/route-0fdd2f2bb2631a50.js +1 -0
  184. package/.next/static/chunks/app/api/nodes/positions/route-0fdd2f2bb2631a50.js +1 -0
  185. package/.next/static/chunks/app/api/nodes/route-0fdd2f2bb2631a50.js +1 -0
  186. package/.next/static/chunks/app/api/nodes/subtasks/route-0fdd2f2bb2631a50.js +1 -0
  187. package/.next/static/chunks/app/api/notes/[id]/route-0fdd2f2bb2631a50.js +1 -0
  188. package/.next/static/chunks/app/api/notes/route-0fdd2f2bb2631a50.js +1 -0
  189. package/.next/static/chunks/app/api/open/route-0fdd2f2bb2631a50.js +1 -0
  190. package/.next/static/chunks/app/api/plan/annotations/route-0fdd2f2bb2631a50.js +1 -0
  191. package/.next/static/chunks/app/api/plan/approve/route-0fdd2f2bb2631a50.js +1 -0
  192. package/.next/static/chunks/app/api/plan/history/route-0fdd2f2bb2631a50.js +1 -0
  193. package/.next/static/chunks/app/api/plan/markdown/route-0fdd2f2bb2631a50.js +1 -0
  194. package/.next/static/chunks/app/api/plan/presence/route-0fdd2f2bb2631a50.js +1 -0
  195. package/.next/static/chunks/app/api/plan/route-0fdd2f2bb2631a50.js +1 -0
  196. package/.next/static/chunks/app/api/plan/verdict/route-0fdd2f2bb2631a50.js +1 -0
  197. package/.next/static/chunks/app/api/preferences/route-0fdd2f2bb2631a50.js +1 -0
  198. package/.next/static/chunks/app/api/reset/route-0fdd2f2bb2631a50.js +1 -0
  199. package/.next/static/chunks/app/api/stream/route-0fdd2f2bb2631a50.js +1 -0
  200. package/.next/static/chunks/app/api/version/route-0fdd2f2bb2631a50.js +1 -0
  201. package/.next/static/chunks/app/api/workspace/activate/route-0fdd2f2bb2631a50.js +1 -0
  202. package/.next/static/chunks/app/api/workspace/route-0fdd2f2bb2631a50.js +1 -0
  203. package/.next/static/chunks/app/map/{page-834f326619f2477b.js → page-5020db02dba43678.js} +1 -1
  204. package/.next/static/chunks/app/page-2c4582b256e877c0.js +1 -0
  205. package/.next/static/chunks/app/plan/{page-86a130ff444297a1.js → page-cd3785902dd95dce.js} +1 -1
  206. package/.next/static/chunks/next/dist/client/components/builtin/app-error-0fdd2f2bb2631a50.js +1 -0
  207. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-0fdd2f2bb2631a50.js +1 -0
  208. package/.next/static/chunks/next/dist/client/components/builtin/not-found-0fdd2f2bb2631a50.js +1 -0
  209. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-0fdd2f2bb2631a50.js +1 -0
  210. package/.next/static/css/f0c8ee0772c6d74d.css +1 -0
  211. package/.next/static/{dmwr94-U2a-24WsqmRue9 → fnj-duECSYw_AlTFP7r7a}/_buildManifest.js +1 -1
  212. package/.next/trace +37 -37
  213. package/.next/trace-build +1 -1
  214. package/.next/types/app/api/bug-flags/[id]/route.ts +351 -0
  215. package/.next/types/app/api/{settings → bug-flags}/route.ts +3 -3
  216. package/.next/types/routes.d.ts +3 -2
  217. package/.next/types/validator.ts +18 -9
  218. package/dist/bin/beacon.js +6 -6
  219. package/dist/bin/doctor.js +54 -36
  220. package/dist/bin/hook.js +53 -34
  221. package/dist/bin/mcp.js +63 -45
  222. package/dist/bin/plan.js +57 -35
  223. package/dist/bin/prompt.js +1 -1
  224. package/dist/bin/stop-hook.js +2 -2
  225. package/dist/bin/uninstall.js +54 -36
  226. package/dist/lib/assets.js +27 -22
  227. package/dist/lib/global-install.js +52 -34
  228. package/drizzle/0002_square_firestar.sql +2 -0
  229. package/drizzle/0003_glorious_stick.sql +12 -0
  230. package/drizzle/0004_fair_namora.sql +1 -0
  231. package/drizzle/meta/0002_snapshot.json +1655 -0
  232. package/drizzle/meta/0003_snapshot.json +1737 -0
  233. package/drizzle/meta/0004_snapshot.json +1730 -0
  234. package/drizzle/meta/_journal.json +21 -0
  235. package/package.json +1 -2
  236. package/.next/server/app/api/settings/route.js +0 -1
  237. package/.next/server/app/api/settings/route_client-reference-manifest.js +0 -1
  238. package/.next/server/chunks/8465.js +0 -1
  239. package/.next/static/chunks/3973-c52f930a38c6c787.js +0 -1
  240. package/.next/static/chunks/58-aec6c638db75ae0a.js +0 -1
  241. package/.next/static/chunks/app/api/code-graph/route-3b9ad860c9e9f7cb.js +0 -1
  242. package/.next/static/chunks/app/api/context/feature/route-3b9ad860c9e9f7cb.js +0 -1
  243. package/.next/static/chunks/app/api/context/file/route-3b9ad860c9e9f7cb.js +0 -1
  244. package/.next/static/chunks/app/api/context/route-3b9ad860c9e9f7cb.js +0 -1
  245. package/.next/static/chunks/app/api/db/arrange/route-3b9ad860c9e9f7cb.js +0 -1
  246. package/.next/static/chunks/app/api/db/backfill-access/route-3b9ad860c9e9f7cb.js +0 -1
  247. package/.next/static/chunks/app/api/db/position/route-3b9ad860c9e9f7cb.js +0 -1
  248. package/.next/static/chunks/app/api/db/reconcile-endpoints/route-3b9ad860c9e9f7cb.js +0 -1
  249. package/.next/static/chunks/app/api/db/relations/[id]/route-3b9ad860c9e9f7cb.js +0 -1
  250. package/.next/static/chunks/app/api/db/tables/[id]/route-3b9ad860c9e9f7cb.js +0 -1
  251. package/.next/static/chunks/app/api/draft/approve/route-3b9ad860c9e9f7cb.js +0 -1
  252. package/.next/static/chunks/app/api/draft/route-3b9ad860c9e9f7cb.js +0 -1
  253. package/.next/static/chunks/app/api/draft/status/route-3b9ad860c9e9f7cb.js +0 -1
  254. package/.next/static/chunks/app/api/edges/[id]/route-3b9ad860c9e9f7cb.js +0 -1
  255. package/.next/static/chunks/app/api/edges/route-3b9ad860c9e9f7cb.js +0 -1
  256. package/.next/static/chunks/app/api/endpoints/[id]/route-3b9ad860c9e9f7cb.js +0 -1
  257. package/.next/static/chunks/app/api/entities/route-3b9ad860c9e9f7cb.js +0 -1
  258. package/.next/static/chunks/app/api/feedback/[id]/route-3b9ad860c9e9f7cb.js +0 -1
  259. package/.next/static/chunks/app/api/feedback/[id]/vote/route-3b9ad860c9e9f7cb.js +0 -1
  260. package/.next/static/chunks/app/api/feedback/route-3b9ad860c9e9f7cb.js +0 -1
  261. package/.next/static/chunks/app/api/ingest/route-3b9ad860c9e9f7cb.js +0 -1
  262. package/.next/static/chunks/app/api/init/route-3b9ad860c9e9f7cb.js +0 -1
  263. package/.next/static/chunks/app/api/map/describe/route-3b9ad860c9e9f7cb.js +0 -1
  264. package/.next/static/chunks/app/api/map/files/route-3b9ad860c9e9f7cb.js +0 -1
  265. package/.next/static/chunks/app/api/map/finish/route-3b9ad860c9e9f7cb.js +0 -1
  266. package/.next/static/chunks/app/api/map/route-3b9ad860c9e9f7cb.js +0 -1
  267. package/.next/static/chunks/app/api/map/start/route-3b9ad860c9e9f7cb.js +0 -1
  268. package/.next/static/chunks/app/api/map/touch-active/route-3b9ad860c9e9f7cb.js +0 -1
  269. package/.next/static/chunks/app/api/nodes/[id]/position/route-3b9ad860c9e9f7cb.js +0 -1
  270. package/.next/static/chunks/app/api/nodes/[id]/route-3b9ad860c9e9f7cb.js +0 -1
  271. package/.next/static/chunks/app/api/nodes/positions/route-3b9ad860c9e9f7cb.js +0 -1
  272. package/.next/static/chunks/app/api/nodes/route-3b9ad860c9e9f7cb.js +0 -1
  273. package/.next/static/chunks/app/api/nodes/subtasks/route-3b9ad860c9e9f7cb.js +0 -1
  274. package/.next/static/chunks/app/api/notes/[id]/route-3b9ad860c9e9f7cb.js +0 -1
  275. package/.next/static/chunks/app/api/notes/route-3b9ad860c9e9f7cb.js +0 -1
  276. package/.next/static/chunks/app/api/open/route-3b9ad860c9e9f7cb.js +0 -1
  277. package/.next/static/chunks/app/api/plan/annotations/route-3b9ad860c9e9f7cb.js +0 -1
  278. package/.next/static/chunks/app/api/plan/approve/route-3b9ad860c9e9f7cb.js +0 -1
  279. package/.next/static/chunks/app/api/plan/history/route-3b9ad860c9e9f7cb.js +0 -1
  280. package/.next/static/chunks/app/api/plan/markdown/route-3b9ad860c9e9f7cb.js +0 -1
  281. package/.next/static/chunks/app/api/plan/presence/route-3b9ad860c9e9f7cb.js +0 -1
  282. package/.next/static/chunks/app/api/plan/route-3b9ad860c9e9f7cb.js +0 -1
  283. package/.next/static/chunks/app/api/plan/verdict/route-3b9ad860c9e9f7cb.js +0 -1
  284. package/.next/static/chunks/app/api/preferences/route-3b9ad860c9e9f7cb.js +0 -1
  285. package/.next/static/chunks/app/api/reset/route-3b9ad860c9e9f7cb.js +0 -1
  286. package/.next/static/chunks/app/api/settings/route-3b9ad860c9e9f7cb.js +0 -1
  287. package/.next/static/chunks/app/api/stream/route-3b9ad860c9e9f7cb.js +0 -1
  288. package/.next/static/chunks/app/api/version/route-3b9ad860c9e9f7cb.js +0 -1
  289. package/.next/static/chunks/app/api/workspace/activate/route-3b9ad860c9e9f7cb.js +0 -1
  290. package/.next/static/chunks/app/api/workspace/route-3b9ad860c9e9f7cb.js +0 -1
  291. package/.next/static/chunks/app/page-ccb55081f850db63.js +0 -1
  292. package/.next/static/chunks/next/dist/client/components/builtin/app-error-3b9ad860c9e9f7cb.js +0 -1
  293. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-3b9ad860c9e9f7cb.js +0 -1
  294. package/.next/static/chunks/next/dist/client/components/builtin/not-found-3b9ad860c9e9f7cb.js +0 -1
  295. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-3b9ad860c9e9f7cb.js +0 -1
  296. package/.next/static/css/0745ea0e6e3229f6.css +0 -1
  297. /package/.next/static/{dmwr94-U2a-24WsqmRue9 → fnj-duECSYw_AlTFP7r7a}/_ssgManifest.js +0 -0
@@ -1,20 +1,20 @@
1
1
  // @bun
2
- var w=Object.defineProperty;var M=(z)=>z;function b(z,J){this[z]=M.bind(null,J)}var u=(z,J)=>{for(var q in J)w(z,q,{get:J[q],enumerable:!0,configurable:!0,set:b.bind(J,q)})};var A=(z,J)=>()=>(z&&(J=z(z=0)),J);var h={};u(h,{removeRepoAssets:()=>_,installRefreshSkill:()=>j,installPlanSkill:()=>O,installInitSkill:()=>f,ensureWorkflowDoc:()=>W,ensureMcp:()=>K,auditRepo:()=>L,REFRESH_SKILL:()=>P,PLAN_SKILL:()=>T,INIT_SKILL:()=>I});import{existsSync as U,mkdirSync as N,readFileSync as Z,rmSync as B,writeFileSync as $}from"fs";import{join as Q}from"path";function f(z){let J=Q(z,".claude","skills","beacon-init");N(J,{recursive:!0});let q=Q(J,"SKILL.md");return $(q,I),q}function j(z){let J=Q(z,".claude","skills","beacon-refresh");N(J,{recursive:!0});let q=Q(J,"SKILL.md");return $(q,P),q}function O(z){let J=Q(z,".claude","skills","beacon-plan");N(J,{recursive:!0});let q=Q(J,"SKILL.md");return $(q,T),q}function W(z){let J=Q(z,"AGENTS.md"),q="";try{q=Z(J,"utf8")}catch{}let X=new RegExp(`${H}[\\s\\S]*?${v}`);q=X.test(q)?q.replace(X,E):`${q.trim()}
2
+ var w=Object.defineProperty;var u=(q)=>q;function E(q,J){this[q]=u.bind(null,J)}var A=(q,J)=>{for(var z in J)w(q,z,{get:J[z],enumerable:!0,configurable:!0,set:E.bind(J,z)})};var I=(q,J)=>()=>(q&&(J=q(q=0)),J);var F={};A(F,{removeRepoAssets:()=>h,installRefreshSkill:()=>W,installPlanSkill:()=>O,installInitSkill:()=>f,installCodexRepoSkills:()=>j,ensureWorkflowDoc:()=>_,ensureMcp:()=>g,auditRepo:()=>L,REFRESH_SKILL:()=>k,PLAN_SKILL:()=>b,INIT_SKILL:()=>v});import{existsSync as H,mkdirSync as D,readFileSync as X,rmSync as B,writeFileSync as G}from"fs";import{join as Q}from"path";function f(q){let J=Q(q,".claude","skills","beacon-init");D(J,{recursive:!0});let z=Q(J,"SKILL.md");return G(z,v),z}function W(q){let J=Q(q,".claude","skills","beacon-refresh");D(J,{recursive:!0});let z=Q(J,"SKILL.md");return G(z,k),z}function O(q){let J=Q(q,".claude","skills","beacon-plan");D(J,{recursive:!0});let z=Q(J,"SKILL.md");return G(z,b),z}function j(q){let J=[];for(let z of K){let Y=Q(q,".agents","skills",z.name);D(Y,{recursive:!0});let $=Q(Y,"SKILL.md");G($,z.body()),J.push($)}return J}function _(q){let J=Q(q,"AGENTS.md"),z="";try{z=X(J,"utf8")}catch{}let Y=new RegExp(`${U}[\\s\\S]*?${M}`);z=Y.test(z)?z.replace(Y,T):`${z.trim()}
3
3
 
4
- ${E}
5
- `.trimStart(),$(J,q.endsWith(`
6
- `)?q:`${q}
7
- `);let C=Q(z,"CLAUDE.md"),G="";try{G=Z(C,"utf8")}catch{}if(!/@AGENTS\.md/.test(G))$(C,`${G?`${G.trim()}
4
+ ${T}
5
+ `.trimStart(),G(J,z.endsWith(`
6
+ `)?z:`${z}
7
+ `);let $=Q(q,"CLAUDE.md"),C="";try{C=X($,"utf8")}catch{}if(!/@AGENTS\.md/.test(C))G($,`${C?`${C.trim()}
8
8
 
9
9
  `:""}@AGENTS.md
10
- `)}function K(z){let J=Q(z,".mcp.json"),q={};try{q=JSON.parse(Z(J,"utf8"))}catch{}if(q.mcpServers=q.mcpServers??{},q.mcpServers.beacon)return{path:J,added:!1};return q.mcpServers.beacon={command:"beacon",args:["mcp"]},$(J,JSON.stringify(q,null,2)+`
11
- `),{path:J,added:!0}}function L(z){let J=Q(z,".mcp.json"),q=!1;try{q=!!JSON.parse(Z(J,"utf8")).mcpServers?.beacon}catch{}let X=!1;try{X=Z(Q(z,"AGENTS.md"),"utf8").includes(H)}catch{}let C=!1;try{C=/@AGENTS\.md/.test(Z(Q(z,"CLAUDE.md"),"utf8"))}catch{}return{repo:z,mcpRegistered:q,agentsMdBlock:X,claudeMdImport:C,skills:{"beacon-init":U(Q(z,".claude","skills","beacon-init","SKILL.md")),"beacon-refresh":U(Q(z,".claude","skills","beacon-refresh","SKILL.md"))}}}function _(z){let J=[];for(let V of["beacon-init","beacon-refresh","beacon-db-design"]){let Y=Q(z,".claude","skills",V);if(U(Y))B(Y,{recursive:!0,force:!0}),J.push(V)}let q=!1,X=Q(z,".mcp.json");try{let V=JSON.parse(Z(X,"utf8"));if(V.mcpServers?.beacon){if(delete V.mcpServers.beacon,q=!0,V.mcpServers&&Object.keys(V.mcpServers).length===0)delete V.mcpServers;if(Object.keys(V).length===0)B(X,{force:!0});else $(X,JSON.stringify(V,null,2)+`
12
- `)}}catch{}let C=!1,G=Q(z,"AGENTS.md");try{let V=Z(G,"utf8"),Y=new RegExp(`\\n?${H}[\\s\\S]*?${v}\\n?`);if(Y.test(V)){let D=V.replace(Y,`
10
+ `)}function g(q){let J=Q(q,".mcp.json"),z={};try{z=JSON.parse(X(J,"utf8"))}catch{}if(z.mcpServers=z.mcpServers??{},z.mcpServers.beacon)return{path:J,added:!1};return z.mcpServers.beacon={command:"beacon",args:["mcp"]},G(J,JSON.stringify(z,null,2)+`
11
+ `),{path:J,added:!0}}function L(q){let J=Q(q,".mcp.json"),z=!1;try{z=!!JSON.parse(X(J,"utf8")).mcpServers?.beacon}catch{}let Y=!1;try{Y=X(Q(q,"AGENTS.md"),"utf8").includes(U)}catch{}let $=!1;try{$=/@AGENTS\.md/.test(X(Q(q,"CLAUDE.md"),"utf8"))}catch{}return{repo:q,mcpRegistered:z,agentsMdBlock:Y,claudeMdImport:$,skills:{"beacon-init":H(Q(q,".claude","skills","beacon-init","SKILL.md")),"beacon-refresh":H(Q(q,".claude","skills","beacon-refresh","SKILL.md"))},codexSkills:{"beacon-init":H(Q(q,".agents","skills","beacon-init","SKILL.md")),"beacon-refresh":H(Q(q,".agents","skills","beacon-refresh","SKILL.md"))}}}function h(q){let J=[];for(let V of["beacon-init","beacon-refresh","beacon-db-design"]){let Z=Q(q,".claude","skills",V);if(H(Z))B(Z,{recursive:!0,force:!0}),J.push(V)}for(let V of["beacon-init","beacon-refresh"]){let Z=Q(q,".agents","skills",V);if(H(Z))B(Z,{recursive:!0,force:!0}),J.push(`codex:${V}`)}let z=!1,Y=Q(q,".mcp.json");try{let V=JSON.parse(X(Y,"utf8"));if(V.mcpServers?.beacon){if(delete V.mcpServers.beacon,z=!0,V.mcpServers&&Object.keys(V.mcpServers).length===0)delete V.mcpServers;if(Object.keys(V).length===0)B(Y,{force:!0});else G(Y,JSON.stringify(V,null,2)+`
12
+ `)}}catch{}let $=!1,C=Q(q,"AGENTS.md");try{let V=X(C,"utf8"),Z=new RegExp(`\\n?${U}[\\s\\S]*?${M}\\n?`);if(Z.test(V)){let N=V.replace(Z,`
13
13
  `).replace(/\n{3,}/g,`
14
14
 
15
- `).trimStart();$(G,D.endsWith(`
16
- `)?D:`${D}
17
- `),C=!0}}catch{}let k=!1,x=Q(z,"CLAUDE.md");try{let V=Z(x,"utf8"),Y=V.replace(/^[ \t]*@AGENTS\.md[ \t]*\n?/m,"");if(Y!==V){if(!Y.trim())B(x,{force:!0});else $(x,Y);k=!0}}catch{}return{skillsRemoved:J,mcpUnregistered:q,agentsBlockRemoved:C,claudeImportRemoved:k}}var I=`---
15
+ `).trimStart();G(C,N.endsWith(`
16
+ `)?N:`${N}
17
+ `),$=!0}}catch{}let P=!1,x=Q(q,"CLAUDE.md");try{let V=X(x,"utf8"),Z=V.replace(/^[ \t]*@AGENTS\.md[ \t]*\n?/m,"");if(Z!==V){if(!Z.trim())B(x,{force:!0});else G(x,Z);P=!0}}catch{}return{skillsRemoved:J,mcpUnregistered:z,agentsBlockRemoved:$,claudeImportRemoved:P}}var v=`---
18
18
  name: beacon-init
19
19
  description: Read this repository and map its architecture, schema, and roadmap into Beacon (the local visual planning panel). Use when the user runs /beacon-init, asks to "set up Beacon for this repo", or asks to initialize/bootstrap Beacon's map of this codebase.
20
20
  ---
@@ -27,7 +27,7 @@ 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.
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
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\`.
32
32
  - **overview**: one paragraph describing what this project is and its stack. This lands in AGENTS.md as the project intro.
33
33
  - **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.
@@ -51,7 +51,7 @@ A single \`beacon_init_persist\` MCP tool call with:
51
51
  If \`beacon_init_persist\` isn't available, the Beacon panel isn't running in this repo. Tell the user to run \`beacon\` here first, then re-invoke /beacon-init.
52
52
 
53
53
  After the tool returns, tell the user the counts (components / roadmap / tables / endpoints) and point them at the running Beacon panel.
54
- `,P=`---
54
+ `,k=`---
55
55
  name: beacon-refresh
56
56
  description: Re-survey the repo and update Beacon's architecture / schema / endpoints map after /beacon-init was already run \u2014 picks up new components, removed ones, schema changes, and new routes. Use when the user runs /beacon-refresh or asks to "refresh", "update", "re-sync", or "bring Beacon up to date" with the current code.
57
57
  ---
@@ -86,7 +86,7 @@ The one caveat: if the user manually edited an INIT-source node on the canvas (e
86
86
  - **~ changed**: COMPONENT_X (role expanded to cover Y)
87
87
  - **schema**: + 2 new tables (TableA, TableB); + 3 new endpoints; \u2212 1 deprecated endpoint
88
88
  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\`.
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
90
 
91
91
  ## What you should NOT do
92
92
 
@@ -98,7 +98,7 @@ The one caveat: if the user manually edited an INIT-source node on the canvas (e
98
98
  If \`beacon_entities\` or \`beacon_init_persist\` isn't available, the Beacon panel isn't running in this repo. Tell the user to run \`beacon\` here first, then re-invoke /beacon-refresh.
99
99
 
100
100
  After the tool returns, report the final counts plus a one-line summary of the diff you surfaced.
101
- `,T=`---
101
+ `,b=`---
102
102
  name: beacon-plan
103
103
  description: Present your current plan or approach to the user on Beacon's /plan canvas for review \u2014 instead of asking for approval in prose. Use when the user says "present the plan", "show me the plan", "let me see it / the plan", or whenever you are about to end a turn asking whether to proceed with a plan, design, or approach.
104
104
  ---
@@ -137,9 +137,10 @@ If it returns feedback, revise and call it again.
137
137
  - **Anything else** (a code-change plan, a mixed plan, a "how should I approach X") \u2192 use
138
138
  \`beacon_present_plan\` with markdown so the full reasoning shows on /plan.
139
139
 
140
- If \`beacon_present_plan\` isn't available, the panel isn't wired here \u2014 fall back to presenting via
141
- ExitPlanMode with the same \`\`\`beacon block, or tell the user to run \`beacon\` in this repo once.
142
- `,H="<!-- beacon:workflow:start -->",v="<!-- beacon:workflow:end -->",E;var g=A(()=>{E=`${H}
140
+ If \`beacon_present_plan\` isn't available, the panel isn't wired here \u2014 fall back to ExitPlanMode
141
+ with the same \`\`\`beacon block (Claude Code only; Codex has no ExitPlanMode), or tell the user to
142
+ run \`beacon\` in this repo once.
143
+ `,K,U="<!-- beacon:workflow:start -->",M="<!-- beacon:workflow:end -->",T;var R=I(()=>{K=[{name:"beacon-init",body:()=>v},{name:"beacon-refresh",body:()=>k}];T=`${U}
143
144
  ## Beacon \u2014 feature workflow
144
145
 
145
146
  This project uses Beacon (a local planning/visualization panel; run \`beacon\` to open it). When you start work on a FEATURE \u2014 whether referenced via an \`@beacon:feature://\u2026\` mention, an \`@beacon:note://\u2026\` note the user wrote in the Notes panel (treat its checkbox \`- [ ]\` todos as subtasks and order features by their dependencies), or just described in chat \u2014 follow these steps in order:
@@ -170,6 +171,8 @@ When listing features, give each \`dependsOn: ["Other feature title", \u2026]\`
170
171
 
171
172
  ### 2b. Presenting a plan in plan mode (ExitPlanMode)
172
173
 
174
+ In Codex (which has no ExitPlanMode), always present plans via \`beacon_present_plan\` / \`beacon_propose_plan\` instead \u2014 this section applies to Claude Code's plan mode only.
175
+
173
176
  When you present a plan via ExitPlanMode (not \`beacon_propose_plan\`) and it proposes DB tables/relations/endpoints or roadmap features, embed ONE fenced \`\`\`beacon code block of JSON in the plan \u2014 the same shapes \`beacon_propose_plan\` accepts:
174
177
 
175
178
  \`\`\`beacon
@@ -180,13 +183,15 @@ Beacon extracts it deterministically and **strips the block from the prose** (it
180
183
 
181
184
  **The board is built ONLY from the block \u2014 prose is NOT parsed.** If your plan describes ANY database models/tables/columns in the prose (e.g. "Model \`legal_precedent.py\` \u2014 natural key (court, \u2026)"), you MUST also put them in the block's \`tables\` array (with \`columns\`), or the /db tab will be empty for that plan. Same for endpoints (\`endpoints\` with \`uses:[{table,access}]\`) and features (\`features\`). A plan that lists five tables in prose but ships a block with only \`features\` renders an empty database board \u2014 exactly the "I described models but the DB tab is empty" failure. Mirror every DB entity you mention into the block.
182
185
 
183
- ### 3. At the end, register the work
186
+ ### 3. At the end, register the work \u2014 in ONE call
187
+
188
+ Call \`beacon_describe_feature\` **ONCE** with a \`features\` array \u2014 one entry per feature the plan created \u2014 each with the files you touched and a short markdown description. This flips each one to **Done** \u2014 including its sub-tasks (the cascade completes every PENDING/IN_PROGRESS child; a sub-task you did NOT finish must be set BLOCKED or CANCELLED before registering, so it survives visibly) \u2014 and keeps \`beacon_context_for_feature\` accurate for the next session.
184
189
 
185
- Call \`beacon_describe_feature\` for **EVERY** feature the plan created \u2014 once per feature, **by its exact title** (the same titles you listed in \`features\`/the \`\`\`beacon block) \u2014 with the files you touched and a short markdown description. This flips each one to **Done** and keeps \`beacon_context_for_feature\` accurate for the next session.
190
+ Key each entry by its node \`id\`: the ids are handed back to you when the plan is approved (in the approval message / additionalContext), so you don't fuzzy-match titles or pay a disambiguation round-trip. If you don't have an id, \`title\` still works.
186
191
 
187
- Do this per feature. If a plan added five features, that's five \`beacon_describe_feature\` calls \u2014 registering only an umbrella ("Harden auth") leaves the individual features stuck on **Pending** on the map.
192
+ Register them all in that single batched call. If a plan added five features, that's ONE \`beacon_describe_feature\` call with five entries \u2014 NOT five calls, and NOT just an umbrella ("Harden auth"), which leaves the individual features stuck on **Pending**.
188
193
 
189
194
  If the feature added or materially changed a REAL architectural component (a subsystem \u2014 NOT a file), also pass \`architecture: [{ title, domain, role, \u2026 }]\` so the Architecture map stays accurate. It upserts curated components by title; never list files as components.
190
195
 
191
196
  Pull raw planning data anytime with \`beacon_entities\` (features / architecture / tables / endpoints).
192
- ${v}`});g();export{_ as removeRepoAssets,j as installRefreshSkill,O as installPlanSkill,f as installInitSkill,W as ensureWorkflowDoc,K as ensureMcp,L as auditRepo,P as REFRESH_SKILL,T as PLAN_SKILL,I as INIT_SKILL};
197
+ ${M}`});R();export{h as removeRepoAssets,W as installRefreshSkill,O as installPlanSkill,f as installInitSkill,j as installCodexRepoSkills,_ as ensureWorkflowDoc,g as ensureMcp,L as auditRepo,k as REFRESH_SKILL,b as PLAN_SKILL,v as INIT_SKILL};
@@ -1,20 +1,20 @@
1
1
  // @bun
2
- var p=Object.defineProperty;var t=(q)=>q;function a(q,J){this[q]=t.bind(null,J)}var l=(q,J)=>{for(var z in J)p(q,z,{get:J[z],enumerable:!0,configurable:!0,set:a.bind(J,z)})};var n=(q,J)=>()=>(q&&(J=q(q=0)),J);var R={};l(R,{removeRepoAssets:()=>e,installRefreshSkill:()=>i,installPlanSkill:()=>s,installInitSkill:()=>c,ensureWorkflowDoc:()=>d,ensureMcp:()=>r,auditRepo:()=>o,REFRESH_SKILL:()=>A,PLAN_SKILL:()=>h,INIT_SKILL:()=>D});import{existsSync as j,mkdirSync as u,readFileSync as H,rmSync as C,writeFileSync as P}from"fs";import{join as Z}from"path";function c(q){let J=Z(q,".claude","skills","beacon-init");u(J,{recursive:!0});let z=Z(J,"SKILL.md");return P(z,D),z}function i(q){let J=Z(q,".claude","skills","beacon-refresh");u(J,{recursive:!0});let z=Z(J,"SKILL.md");return P(z,A),z}function s(q){let J=Z(q,".claude","skills","beacon-plan");u(J,{recursive:!0});let z=Z(J,"SKILL.md");return P(z,h),z}function d(q){let J=Z(q,"AGENTS.md"),z="";try{z=H(J,"utf8")}catch{}let Q=new RegExp(`${B}[\\s\\S]*?${M}`);z=Q.test(z)?z.replace(Q,k):`${z.trim()}
2
+ var Tq=Object.defineProperty;var Rq=(q)=>q;function Iq(q,z){this[q]=Rq.bind(null,z)}var Pq=(q,z)=>{for(var J in z)Tq(q,J,{get:z[J],enumerable:!0,configurable:!0,set:Iq.bind(z,J)})};var g=(q,z)=>()=>(q&&(z=q(q=0)),z);var d={};Pq(d,{removeRepoAssets:()=>_q,installRefreshSkill:()=>Aq,installPlanSkill:()=>yq,installInitSkill:()=>Eq,installCodexRepoSkills:()=>Dq,ensureWorkflowDoc:()=>hq,ensureMcp:()=>kq,auditRepo:()=>Lq,REFRESH_SKILL:()=>t,PLAN_SKILL:()=>Uq,INIT_SKILL:()=>a});import{existsSync as H,mkdirSync as K,readFileSync as X,rmSync as b,writeFileSync as x}from"fs";import{join as $}from"path";function Eq(q){let z=$(q,".claude","skills","beacon-init");K(z,{recursive:!0});let J=$(z,"SKILL.md");return x(J,a),J}function Aq(q){let z=$(q,".claude","skills","beacon-refresh");K(z,{recursive:!0});let J=$(z,"SKILL.md");return x(J,t),J}function yq(q){let z=$(q,".claude","skills","beacon-plan");K(z,{recursive:!0});let J=$(z,"SKILL.md");return x(J,Uq),J}function Dq(q){let z=[];for(let J of Oq){let Q=$(q,".agents","skills",J.name);K(Q,{recursive:!0});let V=$(Q,"SKILL.md");x(V,J.body()),z.push(V)}return z}function hq(q){let z=$(q,"AGENTS.md"),J="";try{J=X(z,"utf8")}catch{}let Q=new RegExp(`${f}[\\s\\S]*?${c}`);J=Q.test(J)?J.replace(Q,Wq):`${J.trim()}
3
3
 
4
- ${k}
5
- `.trimStart(),P(J,z.endsWith(`
6
- `)?z:`${z}
7
- `);let V=Z(q,"CLAUDE.md"),X="";try{X=H(V,"utf8")}catch{}if(!/@AGENTS\.md/.test(X))P(V,`${X?`${X.trim()}
4
+ ${Wq}
5
+ `.trimStart(),x(z,J.endsWith(`
6
+ `)?J:`${J}
7
+ `);let V=$(q,"CLAUDE.md"),Y="";try{Y=X(V,"utf8")}catch{}if(!/@AGENTS\.md/.test(Y))x(V,`${Y?`${Y.trim()}
8
8
 
9
9
  `:""}@AGENTS.md
10
- `)}function r(q){let J=Z(q,".mcp.json"),z={};try{z=JSON.parse(H(J,"utf8"))}catch{}if(z.mcpServers=z.mcpServers??{},z.mcpServers.beacon)return{path:J,added:!1};return z.mcpServers.beacon={command:"beacon",args:["mcp"]},P(J,JSON.stringify(z,null,2)+`
11
- `),{path:J,added:!0}}function o(q){let J=Z(q,".mcp.json"),z=!1;try{z=!!JSON.parse(H(J,"utf8")).mcpServers?.beacon}catch{}let Q=!1;try{Q=H(Z(q,"AGENTS.md"),"utf8").includes(B)}catch{}let V=!1;try{V=/@AGENTS\.md/.test(H(Z(q,"CLAUDE.md"),"utf8"))}catch{}return{repo:q,mcpRegistered:z,agentsMdBlock:Q,claudeMdImport:V,skills:{"beacon-init":j(Z(q,".claude","skills","beacon-init","SKILL.md")),"beacon-refresh":j(Z(q,".claude","skills","beacon-refresh","SKILL.md"))}}}function e(q){let J=[];for(let Y of["beacon-init","beacon-refresh","beacon-db-design"]){let x=Z(q,".claude","skills",Y);if(j(x))C(x,{recursive:!0,force:!0}),J.push(Y)}let z=!1,Q=Z(q,".mcp.json");try{let Y=JSON.parse(H(Q,"utf8"));if(Y.mcpServers?.beacon){if(delete Y.mcpServers.beacon,z=!0,Y.mcpServers&&Object.keys(Y.mcpServers).length===0)delete Y.mcpServers;if(Object.keys(Y).length===0)C(Q,{force:!0});else P(Q,JSON.stringify(Y,null,2)+`
12
- `)}}catch{}let V=!1,X=Z(q,"AGENTS.md");try{let Y=H(X,"utf8"),x=new RegExp(`\\n?${B}[\\s\\S]*?${M}\\n?`);if(x.test(Y)){let U=Y.replace(x,`
10
+ `)}function kq(q){let z=$(q,".mcp.json"),J={};try{J=JSON.parse(X(z,"utf8"))}catch{}if(J.mcpServers=J.mcpServers??{},J.mcpServers.beacon)return{path:z,added:!1};return J.mcpServers.beacon={command:"beacon",args:["mcp"]},x(z,JSON.stringify(J,null,2)+`
11
+ `),{path:z,added:!0}}function Lq(q){let z=$(q,".mcp.json"),J=!1;try{J=!!JSON.parse(X(z,"utf8")).mcpServers?.beacon}catch{}let Q=!1;try{Q=X($(q,"AGENTS.md"),"utf8").includes(f)}catch{}let V=!1;try{V=/@AGENTS\.md/.test(X($(q,"CLAUDE.md"),"utf8"))}catch{}return{repo:q,mcpRegistered:J,agentsMdBlock:Q,claudeMdImport:V,skills:{"beacon-init":H($(q,".claude","skills","beacon-init","SKILL.md")),"beacon-refresh":H($(q,".claude","skills","beacon-refresh","SKILL.md"))},codexSkills:{"beacon-init":H($(q,".agents","skills","beacon-init","SKILL.md")),"beacon-refresh":H($(q,".agents","skills","beacon-refresh","SKILL.md"))}}}function _q(q){let z=[];for(let Z of["beacon-init","beacon-refresh","beacon-db-design"]){let U=$(q,".claude","skills",Z);if(H(U))b(U,{recursive:!0,force:!0}),z.push(Z)}for(let Z of["beacon-init","beacon-refresh"]){let U=$(q,".agents","skills",Z);if(H(U))b(U,{recursive:!0,force:!0}),z.push(`codex:${Z}`)}let J=!1,Q=$(q,".mcp.json");try{let Z=JSON.parse(X(Q,"utf8"));if(Z.mcpServers?.beacon){if(delete Z.mcpServers.beacon,J=!0,Z.mcpServers&&Object.keys(Z.mcpServers).length===0)delete Z.mcpServers;if(Object.keys(Z).length===0)b(Q,{force:!0});else x(Q,JSON.stringify(Z,null,2)+`
12
+ `)}}catch{}let V=!1,Y=$(q,"AGENTS.md");try{let Z=X(Y,"utf8"),U=new RegExp(`\\n?${f}[\\s\\S]*?${c}\\n?`);if(U.test(Z)){let S=Z.replace(U,`
13
13
  `).replace(/\n{3,}/g,`
14
14
 
15
- `).trimStart();P(X,U.endsWith(`
16
- `)?U:`${U}
17
- `),V=!0}}catch{}let v=!1,$=Z(q,"CLAUDE.md");try{let Y=H($,"utf8"),x=Y.replace(/^[ \t]*@AGENTS\.md[ \t]*\n?/m,"");if(x!==Y){if(!x.trim())C($,{force:!0});else P($,x);v=!0}}catch{}return{skillsRemoved:J,mcpUnregistered:z,agentsBlockRemoved:V,claudeImportRemoved:v}}var D=`---
15
+ `).trimStart();x(Y,S.endsWith(`
16
+ `)?S:`${S}
17
+ `),V=!0}}catch{}let P=!1,W=$(q,"CLAUDE.md");try{let Z=X(W,"utf8"),U=Z.replace(/^[ \t]*@AGENTS\.md[ \t]*\n?/m,"");if(U!==Z){if(!U.trim())b(W,{force:!0});else x(W,U);P=!0}}catch{}return{skillsRemoved:z,mcpUnregistered:J,agentsBlockRemoved:V,claudeImportRemoved:P}}var a=`---
18
18
  name: beacon-init
19
19
  description: Read this repository and map its architecture, schema, and roadmap into Beacon (the local visual planning panel). Use when the user runs /beacon-init, asks to "set up Beacon for this repo", or asks to initialize/bootstrap Beacon's map of this codebase.
20
20
  ---
@@ -27,7 +27,7 @@ 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.
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
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\`.
32
32
  - **overview**: one paragraph describing what this project is and its stack. This lands in AGENTS.md as the project intro.
33
33
  - **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.
@@ -51,7 +51,7 @@ A single \`beacon_init_persist\` MCP tool call with:
51
51
  If \`beacon_init_persist\` isn't available, the Beacon panel isn't running in this repo. Tell the user to run \`beacon\` here first, then re-invoke /beacon-init.
52
52
 
53
53
  After the tool returns, tell the user the counts (components / roadmap / tables / endpoints) and point them at the running Beacon panel.
54
- `,A=`---
54
+ `,t=`---
55
55
  name: beacon-refresh
56
56
  description: Re-survey the repo and update Beacon's architecture / schema / endpoints map after /beacon-init was already run \u2014 picks up new components, removed ones, schema changes, and new routes. Use when the user runs /beacon-refresh or asks to "refresh", "update", "re-sync", or "bring Beacon up to date" with the current code.
57
57
  ---
@@ -86,7 +86,7 @@ The one caveat: if the user manually edited an INIT-source node on the canvas (e
86
86
  - **~ changed**: COMPONENT_X (role expanded to cover Y)
87
87
  - **schema**: + 2 new tables (TableA, TableB); + 3 new endpoints; \u2212 1 deprecated endpoint
88
88
  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\`.
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
90
 
91
91
  ## What you should NOT do
92
92
 
@@ -98,7 +98,7 @@ The one caveat: if the user manually edited an INIT-source node on the canvas (e
98
98
  If \`beacon_entities\` or \`beacon_init_persist\` isn't available, the Beacon panel isn't running in this repo. Tell the user to run \`beacon\` here first, then re-invoke /beacon-refresh.
99
99
 
100
100
  After the tool returns, report the final counts plus a one-line summary of the diff you surfaced.
101
- `,h=`---
101
+ `,Uq=`---
102
102
  name: beacon-plan
103
103
  description: Present your current plan or approach to the user on Beacon's /plan canvas for review \u2014 instead of asking for approval in prose. Use when the user says "present the plan", "show me the plan", "let me see it / the plan", or whenever you are about to end a turn asking whether to proceed with a plan, design, or approach.
104
104
  ---
@@ -137,9 +137,10 @@ If it returns feedback, revise and call it again.
137
137
  - **Anything else** (a code-change plan, a mixed plan, a "how should I approach X") \u2192 use
138
138
  \`beacon_present_plan\` with markdown so the full reasoning shows on /plan.
139
139
 
140
- If \`beacon_present_plan\` isn't available, the panel isn't wired here \u2014 fall back to presenting via
141
- ExitPlanMode with the same \`\`\`beacon block, or tell the user to run \`beacon\` in this repo once.
142
- `,B="<!-- beacon:workflow:start -->",M="<!-- beacon:workflow:end -->",k;var y=n(()=>{k=`${B}
140
+ If \`beacon_present_plan\` isn't available, the panel isn't wired here \u2014 fall back to ExitPlanMode
141
+ with the same \`\`\`beacon block (Claude Code only; Codex has no ExitPlanMode), or tell the user to
142
+ run \`beacon\` in this repo once.
143
+ `,Oq,f="<!-- beacon:workflow:start -->",c="<!-- beacon:workflow:end -->",Wq;var n=g(()=>{Oq=[{name:"beacon-init",body:()=>a},{name:"beacon-refresh",body:()=>t}];Wq=`${f}
143
144
  ## Beacon \u2014 feature workflow
144
145
 
145
146
  This project uses Beacon (a local planning/visualization panel; run \`beacon\` to open it). When you start work on a FEATURE \u2014 whether referenced via an \`@beacon:feature://\u2026\` mention, an \`@beacon:note://\u2026\` note the user wrote in the Notes panel (treat its checkbox \`- [ ]\` todos as subtasks and order features by their dependencies), or just described in chat \u2014 follow these steps in order:
@@ -170,6 +171,8 @@ When listing features, give each \`dependsOn: ["Other feature title", \u2026]\`
170
171
 
171
172
  ### 2b. Presenting a plan in plan mode (ExitPlanMode)
172
173
 
174
+ In Codex (which has no ExitPlanMode), always present plans via \`beacon_present_plan\` / \`beacon_propose_plan\` instead \u2014 this section applies to Claude Code's plan mode only.
175
+
173
176
  When you present a plan via ExitPlanMode (not \`beacon_propose_plan\`) and it proposes DB tables/relations/endpoints or roadmap features, embed ONE fenced \`\`\`beacon code block of JSON in the plan \u2014 the same shapes \`beacon_propose_plan\` accepts:
174
177
 
175
178
  \`\`\`beacon
@@ -180,16 +183,42 @@ Beacon extracts it deterministically and **strips the block from the prose** (it
180
183
 
181
184
  **The board is built ONLY from the block \u2014 prose is NOT parsed.** If your plan describes ANY database models/tables/columns in the prose (e.g. "Model \`legal_precedent.py\` \u2014 natural key (court, \u2026)"), you MUST also put them in the block's \`tables\` array (with \`columns\`), or the /db tab will be empty for that plan. Same for endpoints (\`endpoints\` with \`uses:[{table,access}]\`) and features (\`features\`). A plan that lists five tables in prose but ships a block with only \`features\` renders an empty database board \u2014 exactly the "I described models but the DB tab is empty" failure. Mirror every DB entity you mention into the block.
182
185
 
183
- ### 3. At the end, register the work
186
+ ### 3. At the end, register the work \u2014 in ONE call
187
+
188
+ Call \`beacon_describe_feature\` **ONCE** with a \`features\` array \u2014 one entry per feature the plan created \u2014 each with the files you touched and a short markdown description. This flips each one to **Done** \u2014 including its sub-tasks (the cascade completes every PENDING/IN_PROGRESS child; a sub-task you did NOT finish must be set BLOCKED or CANCELLED before registering, so it survives visibly) \u2014 and keeps \`beacon_context_for_feature\` accurate for the next session.
184
189
 
185
- Call \`beacon_describe_feature\` for **EVERY** feature the plan created \u2014 once per feature, **by its exact title** (the same titles you listed in \`features\`/the \`\`\`beacon block) \u2014 with the files you touched and a short markdown description. This flips each one to **Done** and keeps \`beacon_context_for_feature\` accurate for the next session.
190
+ Key each entry by its node \`id\`: the ids are handed back to you when the plan is approved (in the approval message / additionalContext), so you don't fuzzy-match titles or pay a disambiguation round-trip. If you don't have an id, \`title\` still works.
186
191
 
187
- Do this per feature. If a plan added five features, that's five \`beacon_describe_feature\` calls \u2014 registering only an umbrella ("Harden auth") leaves the individual features stuck on **Pending** on the map.
192
+ Register them all in that single batched call. If a plan added five features, that's ONE \`beacon_describe_feature\` call with five entries \u2014 NOT five calls, and NOT just an umbrella ("Harden auth"), which leaves the individual features stuck on **Pending**.
188
193
 
189
194
  If the feature added or materially changed a REAL architectural component (a subsystem \u2014 NOT a file), also pass \`architecture: [{ title, domain, role, \u2026 }]\` so the Architecture map stays accurate. It upserts curated components by title; never list files as components.
190
195
 
191
196
  Pull raw planning data anytime with \`beacon_entities\` (features / architecture / tables / endpoints).
192
- ${M}`});import{existsSync as K,mkdirSync as O,readFileSync as G,rmSync as qq,writeFileSync as T}from"fs";import{homedir as zq}from"os";import{join as N}from"path";function Jq(){return process.env.HOME||process.env.USERPROFILE||zq()}var w=()=>N(Jq(),".claude"),I=()=>N(w(),"skills"),_=()=>N(w(),"settings.json"),W=()=>N(w(),"CLAUDE.md"),f="<!-- beacon:global:start -->",g="<!-- beacon:global:end -->",b=["beacon-init","beacon-refresh","beacon-plan"],E=[{event:"PostToolUse",matcher:"Edit|Write|MultiEdit",command:"beacon hook",description:"Report file edits to Beacon's active feature so the map stays fresh."},{event:"PermissionRequest",matcher:"ExitPlanMode",command:"beacon plan",description:"Pipe the agent's plan markdown into Beacon's /plan canvas for review."},{event:"UserPromptSubmit",matcher:"*",command:"beacon prompt",description:"On feature-y prompts in a Beacon-wired repo, remind the agent to run the context\u2192propose\u2192describe loop (no-op otherwise)."},{event:"Stop",matcher:"*",command:"beacon stop-hook",description:"When the agent ends a turn asking for plan approval in prose (instead of presenting it), nudge it to present the plan on Beacon's /plan canvas. Bounded by stop_hook_active \u2014 at most one nudge."}],Qq=`## Beacon (visual planning panel)
197
+ ${c}`});import{existsSync as xq,mkdirSync as r,readFileSync as M,rmSync as mq,writeFileSync as F}from"fs";import{dirname as Xq,join as C}from"path";function s(q){try{return JSON.parse(M(q,"utf8"))}catch{return{}}}function wq(q,z){r(Xq(q),{recursive:!0}),F(q,JSON.stringify(z,null,2)+`
198
+ `)}function T(q,z){let J=s(q);J.hooks=J.hooks??{},J.hooks[z.event]=J.hooks[z.event]??[];let Q=J.hooks[z.event];if(Q.some((Y)=>Y.matcher===z.matcher&&Y.hooks?.some((P)=>P.command===z.command)))return!1;return Q.push({matcher:z.matcher,hooks:[{type:"command",command:z.command}]}),wq(q,J),!0}function R(q,z){return(s(q).hooks?.[z.event]??[]).some((V)=>V.hooks?.some((Y)=>Y.command===z.command))}function I(q,z){let J=s(q),Q=J.hooks?.[z.event];if(!Q)return!1;let V=!1,Y=Q.map((P)=>{let W=P.hooks?.length??0,Z=(P.hooks??[]).filter((U)=>U.command!==z.command);if(Z.length!==W)V=!0;return{...P,hooks:Z}}).filter((P)=>(P.hooks??[]).length>0);if(!V)return!1;if(Y.length)J.hooks[z.event]=Y;else delete J.hooks[z.event];if(J.hooks&&Object.keys(J.hooks).length===0)delete J.hooks;return wq(q,J),!0}function E(q,z,J,Q){let V=`${z}
199
+ ${Q.trim()}
200
+ ${J}`,Y="";try{Y=M(q,"utf8")}catch{}let P=new RegExp(`${z}[\\s\\S]*?${J}`);Y=P.test(Y)?Y.replace(P,V):Y.trim()?`${Y.trim()}
201
+
202
+ ${V}
203
+ `:`${V}
204
+ `,r(Xq(q),{recursive:!0}),F(q,Y.endsWith(`
205
+ `)?Y:`${Y}
206
+ `)}function j(q,z){try{return M(q,"utf8").includes(z)}catch{return!1}}function A(q,z,J){let Q="";try{Q=M(q,"utf8")}catch{return!1}let V=new RegExp(`${z}[\\s\\S]*?${J}\\n?`);if(!V.test(Q))return!1;let Y=Q.replace(V,"").replace(/\n{3,}/g,`
207
+
208
+ `).trimStart();return F(q,Y),!0}function y(q,z,J){let Q=C(q,z);r(Q,{recursive:!0});let V=C(Q,"SKILL.md");return F(V,J),V}function B(q,z){return xq(C(q,z,"SKILL.md"))}function O(q,z){let J=C(q,z);if(!xq(J))return!1;return mq(J,{recursive:!0,force:!0}),!0}var l=()=>{};import{mkdirSync as pq,renameSync as Sq,rmSync as aq,writeFileSync as tq}from"fs";import{dirname as cq}from"path";function i(q,z){pq(cq(q),{recursive:!0});let J=`${q}.tmp`;try{tq(J,z),Sq(J,q)}catch(Q){throw aq(J,{force:!0}),Q}}var Hq=()=>{};var bq={};Pq(bq,{setupCodexAssets:()=>sq,removeCodexMcp:()=>Gq,removeCodexArtifacts:()=>iq,hasCodexMcp:()=>zq,ensureCodexMcp:()=>Nq,codexMcpProblem:()=>rq,codexDetected:()=>jq,auditCodex:()=>lq,CODEX_HOOKS:()=>_});import{readFileSync as L}from"fs";import{homedir as dq}from"os";import{join as G}from"path";function vq(){return process.env.HOME||process.env.USERPROFILE||dq()}function jq(){if(process.env.BEACON_CODEX==="1")return!0;if(process.env.BEACON_CODEX==="0")return!1;if(o===void 0)o=Bun.which("codex")!==null;return o}function N(q){try{return Bun.TOML.parse(q)}catch{return null}}function zq(){try{return Boolean(N(L(v(),"utf8"))?.mcp_servers?.beacon)}catch{return!1}}function rq(){let q="";try{q=L(v(),"utf8")}catch{return null}let z=N(q);if(!z)return`~/.codex/config.toml does not parse \u2014 ${u}`;if(z.mcp_servers?.beacon)return null;if(/^\s*mcp_servers\s*=/m.test(q))return`mcp_servers is an inline table \u2014 ${u}`;return null}function Nq(){let q="",z=!1;try{q=L(v(),"utf8"),z=!0}catch{}if(z){let Y=N(q);if(!Y)return{added:!1,error:`~/.codex/config.toml does not parse \u2014 ${u}`};if(Y.mcp_servers?.beacon)return{added:!1};if(/^\s*mcp_servers\s*=/m.test(q))return{added:!1,error:`mcp_servers is an inline table \u2014 ${u}`}}let J=!q?"":q.endsWith(`
209
+ `)?`
210
+ `:`
211
+
212
+ `,Q=q+J+nq;if(N(Q)?.mcp_servers?.beacon?.command!=="beacon")return{added:!1,error:`could not safely append [mcp_servers.beacon] \u2014 ${u}`};return i(v(),Q),{added:!0}}function Gq(){let q="";try{q=L(v(),"utf8")}catch{return{removed:!1}}let z=q.split(`
213
+ `),J=z.indexOf(Bq);if(J===-1)return{removed:!1,skipped:zq()};let Q=z.indexOf(uq,J);if(Q===-1)return{removed:!1,skipped:!0};z.splice(J,Q-J+1);let V=z.join(`
214
+ `).replace(/\n{3,}/g,`
215
+
216
+ `).replace(/^\n+/,"");if(N(V)===null)return{removed:!1,skipped:!0};return i(v(),V),{removed:!0}}async function sq(){let{INIT_SKILL:q,REFRESH_SKILL:z,PLAN_SKILL:J}=await Promise.resolve().then(() => (n(),d)),Q={"beacon-init":q,"beacon-refresh":z,"beacon-plan":J},V=[];for(let Z of w){if(!B(h(),Z))V.push(Z);y(h(),Z,Q[Z])}let Y=0;for(let Z of _)if(T(qq(),{event:Z.event,matcher:Z.matcher,command:Z.command}))Y++;let P=j(D(),k);E(D(),k,gq,Jq);let W=Nq();return{skillsAdded:V,hooksAdded:Y,agentsMdBlockTouched:!P,mcp:W}}function lq(){let q={};for(let J of w)q[J]=B(h(),J);let z={};for(let J of _)z[J.event]=R(qq(),{event:J.event,command:J.command});return{detected:jq(),skills:q,hooks:z,agentsMdBlock:j(D(),k),mcp:zq()}}function iq(){let q=[];for(let V of w)if(O(h(),V))q.push(V);let z=0;for(let V of _)if(I(qq(),{event:V.event,command:V.command}))z++;let J=A(D(),k,gq),Q=Gq();return{skillsRemoved:q,hooksRemoved:z,agentsMdBlockRemoved:J,mcpRemoved:Q.removed,mcpSkipped:Q.skipped}}var e=()=>G(vq(),".codex"),qq=()=>G(e(),"hooks.json"),v=()=>G(e(),"config.toml"),D=()=>G(e(),"AGENTS.md"),h=()=>G(vq(),".agents","skills"),k="<!-- beacon:global:start -->",gq="<!-- beacon:global:end -->",_,o,Bq="# beacon:start (managed by Beacon \u2014 `beacon uninstall` removes this block)",uq="# beacon:end",nq,u="add it manually: codex mcp add beacon -- beacon mcp";var Kq=g(()=>{l();Hq();fq();_=[{event:"PostToolUse",matcher:"apply_patch",command:"beacon hook",description:"Report file edits to Beacon's active feature so the map stays fresh."},{event:"UserPromptSubmit",matcher:"*",command:"beacon prompt",description:"On feature-y prompts in a Beacon-wired repo, remind the agent to run the context\u2192propose\u2192describe loop (no-op otherwise)."},{event:"Stop",matcher:"*",command:"beacon stop-hook",description:"When the agent ends a turn asking for plan approval in prose, nudge it to present the plan on Beacon's /plan canvas."}];nq=`${Bq}
217
+ [mcp_servers.beacon]
218
+ command = "beacon"
219
+ args = ["mcp"]
220
+ ${uq}
221
+ `});import{existsSync as oq}from"fs";import{homedir as eq}from"os";import{join as m}from"path";function qz(){return process.env.HOME||process.env.USERPROFILE||eq()}function zz(q,z){return y(Qq(),q,z)}function Mq(q){return B(Qq(),q)}function Jz(q){return O(Qq(),q)}function Qz(q){return T(Vq(),q)}function Vz(q){return R(Vq(),q)}function Yz(q){return I(Vq(),q)}function Zz(q){E(Yq(),Zq,Cq,q)}function Fq(){return j(Yq(),Zq)}function $z(){return A(Yq(),Zq,Cq)}function Tz(){let q={};for(let J of w)q[J]=Mq(J);let z={};for(let J of $q)z[J.event]=Vz({event:J.event,command:J.command});return{homeExists:oq(p()),skills:q,hooks:z,claudeMdBlock:Fq()}}async function Pz(){let{INIT_SKILL:q,REFRESH_SKILL:z,PLAN_SKILL:J}=await Promise.resolve().then(() => (n(),d)),Q={"beacon-init":q,"beacon-refresh":z,"beacon-plan":J},V=[];for(let W of w){if(!Mq(W))V.push(W);zz(W,Q[W])}let Y=0;for(let W of $q)if(Qz({event:W.event,matcher:W.matcher,command:W.command}))Y++;let P=Fq();return Zz(Jq),{skillsAdded:V,hooksAdded:Y,claudeMdBlockTouched:!P}}async function Rz(){let q;try{q={ok:!0,...await Pz()}}catch(z){q={ok:!1,error:z instanceof Error?z.message:String(z),skillsAdded:[],hooksAdded:0,claudeMdBlockTouched:!1}}try{let z=await Promise.resolve().then(() => (Kq(),bq));if(z.codexDetected())q.codex={ok:!0,...await z.setupCodexAssets()}}catch(z){q.codex={ok:!1,error:z instanceof Error?z.message:String(z),skillsAdded:[],hooksAdded:0,agentsMdBlockTouched:!1,mcp:{added:!1}}}return q}function Iz(){let q=[];for(let Q of w)if(Jz(Q))q.push(Q);let z=0;for(let Q of $q)if(Yz(Q))z++;let J=$z();return{skillsRemoved:q,hooksRemoved:z,claudeMdBlockRemoved:J}}var p=()=>m(qz(),".claude"),Qq=()=>m(p(),"skills"),Vq=()=>m(p(),"settings.json"),Yq=()=>m(p(),"CLAUDE.md"),Zq="<!-- beacon:global:start -->",Cq="<!-- beacon:global:end -->",w,$q,Jq=`## Beacon (visual planning panel)
193
222
 
194
223
  This machine has Beacon installed \u2014 a local visual planning surface for the terminal-side
195
224
  agent. Beacon proposes feature plans (roadmap features + DB schema + endpoints) via MCP,
@@ -210,15 +239,4 @@ the user reviews on a canvas at /plan, and feedback flows back as the next round
210
239
  Feedback bundles inline annotations on the markdown PLUS any edits the user made directly
211
240
  on the /map and /db boards (added features, attached subtasks, edited columns, new
212
241
  endpoints). Treat board edits as the user's revision intent \u2014 re-propose matching them
213
- verbatim. Do NOT implement until the tool returns approval.`;function Vq(q,J){let z=N(I(),q);O(z,{recursive:!0});let Q=N(z,"SKILL.md");return T(Q,J),Q}function L(q){return K(N(I(),q,"SKILL.md"))}function Xq(q){let J=N(I(),q);if(!K(J))return!1;return qq(J,{recursive:!0,force:!0}),!0}function F(){try{return JSON.parse(G(_(),"utf8"))}catch{return{}}}function m(q){O(w(),{recursive:!0}),T(_(),JSON.stringify(q,null,2)+`
214
- `)}function Yq(q){let J=F();J.hooks=J.hooks??{},J.hooks[q.event]=J.hooks[q.event]??[];let z=J.hooks[q.event];if(z.some((V)=>V.matcher===q.matcher&&V.hooks?.some((X)=>X.command===q.command)))return!1;return z.push({matcher:q.matcher,hooks:[{type:"command",command:q.command}]}),m(J),!0}function Zq(q){return(F().hooks?.[q.event]??[]).some((Q)=>Q.hooks?.some((V)=>V.command===q.command))}function $q(q){let J=F(),z=J.hooks?.[q.event];if(!z)return!1;let Q=!1,V=z.map((X)=>{let v=X.hooks?.length??0,$=(X.hooks??[]).filter((Y)=>Y.command!==q.command);if($.length!==v)Q=!0;return{...X,hooks:$}}).filter((X)=>(X.hooks??[]).length>0);if(!Q)return!1;if(V.length)J.hooks[q.event]=V;else delete J.hooks[q.event];if(J.hooks&&Object.keys(J.hooks).length===0)delete J.hooks;return m(J),!0}function xq(q){let J=`${f}
215
- ${q.trim()}
216
- ${g}`,z="";try{z=G(W(),"utf8")}catch{}let Q=new RegExp(`${f}[\\s\\S]*?${g}`);z=Q.test(z)?z.replace(Q,J):z.trim()?`${z.trim()}
217
-
218
- ${J}
219
- `:`${J}
220
- `,O(w(),{recursive:!0}),T(W(),z.endsWith(`
221
- `)?z:`${z}
222
- `)}function S(){try{return G(W(),"utf8").includes(f)}catch{return!1}}function Hq(){let q="";try{q=G(W(),"utf8")}catch{return!1}let J=new RegExp(`${f}[\\s\\S]*?${g}\\n?`);if(!J.test(q))return!1;let z=q.replace(J,"").replace(/\n{3,}/g,`
223
-
224
- `).trimStart();return T(W(),z),!0}function Gq(){let q={};for(let z of b)q[z]=L(z);let J={};for(let z of E)J[z.event]=Zq({event:z.event,command:z.command});return{homeExists:K(w()),skills:q,hooks:J,claudeMdBlock:S()}}async function Pq(){let{INIT_SKILL:q,REFRESH_SKILL:J,PLAN_SKILL:z}=await Promise.resolve().then(() => (y(),R)),Q={"beacon-init":q,"beacon-refresh":J,"beacon-plan":z},V=[];for(let $ of b){if(!L($))V.push($);Vq($,Q[$])}let X=0;for(let $ of E)if(Yq({event:$.event,matcher:$.matcher,command:$.command}))X++;let v=S();return xq(Qq),{skillsAdded:V,hooksAdded:X,claudeMdBlockTouched:!v}}async function Tq(){try{return{ok:!0,...await Pq()}}catch(q){return{ok:!1,error:q instanceof Error?q.message:String(q),skillsAdded:[],hooksAdded:0,claudeMdBlockTouched:!1}}}function Uq(){let q=[];for(let Q of b)if(Xq(Q))q.push(Q);let J=0;for(let Q of E)if($q(Q))J++;let z=Hq();return{skillsRemoved:q,hooksRemoved:J,claudeMdBlockRemoved:z}}export{Pq as setupGlobalAssets,Tq as selfHealGlobal,Xq as removeGlobalSkill,$q as removeGlobalHook,Hq as removeGlobalClaudeMdBlock,Uq as removeBeaconArtifacts,L as isGlobalSkillInstalled,Vq as installGlobalSkill,Zq as hasGlobalHook,S as hasGlobalClaudeMdBlock,Yq as ensureGlobalHook,xq as ensureGlobalClaudeMdBlock,Gq as auditGlobal,b as GLOBAL_SKILLS,E as GLOBAL_HOOKS,Qq as GLOBAL_CLAUDE_MD_BLOCK};
242
+ verbatim. Do NOT implement until the tool returns approval.`;var fq=g(()=>{l();w=["beacon-init","beacon-refresh","beacon-plan"],$q=[{event:"PostToolUse",matcher:"Edit|Write|MultiEdit",command:"beacon hook",description:"Report file edits to Beacon's active feature so the map stays fresh."},{event:"PermissionRequest",matcher:"ExitPlanMode",command:"beacon plan",description:"Pipe the agent's plan markdown into Beacon's /plan canvas for review."},{event:"UserPromptSubmit",matcher:"*",command:"beacon prompt",description:"On feature-y prompts in a Beacon-wired repo, remind the agent to run the context\u2192propose\u2192describe loop (no-op otherwise)."},{event:"Stop",matcher:"*",command:"beacon stop-hook",description:"When the agent ends a turn asking for plan approval in prose (instead of presenting it), nudge it to present the plan on Beacon's /plan canvas. Bounded by stop_hook_active \u2014 at most one nudge."}]});fq();export{Pz as setupGlobalAssets,Rz as selfHealGlobal,Jz as removeGlobalSkill,Yz as removeGlobalHook,$z as removeGlobalClaudeMdBlock,Iz as removeBeaconArtifacts,Mq as isGlobalSkillInstalled,zz as installGlobalSkill,Vz as hasGlobalHook,Fq as hasGlobalClaudeMdBlock,Qz as ensureGlobalHook,Zz as ensureGlobalClaudeMdBlock,Tz as auditGlobal,w as GLOBAL_SKILLS,$q as GLOBAL_HOOKS,Jq as GLOBAL_CLAUDE_MD_BLOCK};
@@ -0,0 +1,2 @@
1
+ ALTER TABLE `AppSetting` DROP COLUMN `intelModel`;--> statement-breakpoint
2
+ ALTER TABLE `AppSetting` DROP COLUMN `intelProvider`;
@@ -0,0 +1,12 @@
1
+ CREATE TABLE `BugFlag` (
2
+ `id` text PRIMARY KEY NOT NULL,
3
+ `nodeId` text NOT NULL,
4
+ `by` text NOT NULL,
5
+ `note` text NOT NULL,
6
+ `resolvedAt` integer,
7
+ `createdAt` integer NOT NULL,
8
+ FOREIGN KEY (`nodeId`) REFERENCES `Node`(`id`) ON UPDATE cascade ON DELETE cascade
9
+ );
10
+ --> statement-breakpoint
11
+ CREATE INDEX `BugFlag_nodeId_idx` ON `BugFlag` (`nodeId`);--> statement-breakpoint
12
+ ALTER TABLE `Node` ADD `kind` text DEFAULT 'FEATURE' NOT NULL;
@@ -0,0 +1 @@
1
+ ALTER TABLE `Node` DROP COLUMN `embedding`;