trybeacon 0.1.25 → 0.1.27

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 (501) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +7 -6
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/next-server.js.nft.json +1 -1
  5. package/.next/prerender-manifest.json +3 -3
  6. package/.next/required-server-files.js +4 -4
  7. package/.next/required-server-files.json +4 -4
  8. package/.next/routes-manifest.json +6 -0
  9. package/.next/server/app/_global-error/page.js +3 -3
  10. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  11. package/.next/server/app/_global-error.html +1 -1
  12. package/.next/server/app/_global-error.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  15. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  16. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  17. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  18. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  19. package/.next/server/app/_not-found/page.js +2 -2
  20. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  21. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  22. package/.next/server/app/_not-found.html +1 -1
  23. package/.next/server/app/_not-found.rsc +10 -10
  24. package/.next/server/app/_not-found.segments/_full.segment.rsc +10 -10
  25. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  26. package/.next/server/app/_not-found.segments/_index.segment.rsc +10 -10
  27. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  28. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  29. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  30. package/.next/server/app/api/board-annotations/[id]/route.js +1 -1
  31. package/.next/server/app/api/board-annotations/[id]/route.js.nft.json +1 -1
  32. package/.next/server/app/api/board-annotations/[id]/route_client-reference-manifest.js +1 -1
  33. package/.next/server/app/api/board-annotations/route.js +1 -1
  34. package/.next/server/app/api/board-annotations/route.js.nft.json +1 -1
  35. package/.next/server/app/api/board-annotations/route_client-reference-manifest.js +1 -1
  36. package/.next/server/app/api/board-layout/route.js +1 -1
  37. package/.next/server/app/api/board-layout/route.js.nft.json +1 -1
  38. package/.next/server/app/api/board-layout/route_client-reference-manifest.js +1 -1
  39. package/.next/server/app/api/bug-flags/[id]/route.js +1 -1
  40. package/.next/server/app/api/bug-flags/[id]/route.js.nft.json +1 -1
  41. package/.next/server/app/api/bug-flags/[id]/route_client-reference-manifest.js +1 -1
  42. package/.next/server/app/api/bug-flags/route.js +1 -1
  43. package/.next/server/app/api/bug-flags/route.js.nft.json +1 -1
  44. package/.next/server/app/api/bug-flags/route_client-reference-manifest.js +1 -1
  45. package/.next/server/app/api/code-graph/position/route.js +1 -1
  46. package/.next/server/app/api/code-graph/position/route.js.nft.json +1 -1
  47. package/.next/server/app/api/code-graph/position/route_client-reference-manifest.js +1 -1
  48. package/.next/server/app/api/code-graph/route.js +1 -1
  49. package/.next/server/app/api/code-graph/route.js.nft.json +1 -1
  50. package/.next/server/app/api/code-graph/route_client-reference-manifest.js +1 -1
  51. package/.next/server/app/api/context/feature/route.js +1 -1
  52. package/.next/server/app/api/context/feature/route.js.nft.json +1 -1
  53. package/.next/server/app/api/context/feature/route_client-reference-manifest.js +1 -1
  54. package/.next/server/app/api/context/file/route.js +1 -1
  55. package/.next/server/app/api/context/file/route.js.nft.json +1 -1
  56. package/.next/server/app/api/context/file/route_client-reference-manifest.js +1 -1
  57. package/.next/server/app/api/context/route.js +6 -6
  58. package/.next/server/app/api/context/route.js.nft.json +1 -1
  59. package/.next/server/app/api/context/route_client-reference-manifest.js +1 -1
  60. package/.next/server/app/api/db/arrange/route.js +1 -1
  61. package/.next/server/app/api/db/arrange/route.js.nft.json +1 -1
  62. package/.next/server/app/api/db/arrange/route_client-reference-manifest.js +1 -1
  63. package/.next/server/app/api/db/backfill-access/route.js +1 -1
  64. package/.next/server/app/api/db/backfill-access/route.js.nft.json +1 -1
  65. package/.next/server/app/api/db/backfill-access/route_client-reference-manifest.js +1 -1
  66. package/.next/server/app/api/db/position/route.js +1 -1
  67. package/.next/server/app/api/db/position/route.js.nft.json +1 -1
  68. package/.next/server/app/api/db/position/route_client-reference-manifest.js +1 -1
  69. package/.next/server/app/api/db/prune-planned/route.js +1 -0
  70. package/.next/server/app/api/db/prune-planned/route.js.nft.json +1 -0
  71. package/.next/server/app/api/db/prune-planned/route_client-reference-manifest.js +1 -0
  72. package/.next/server/app/api/db/reconcile-endpoints/route.js +1 -1
  73. package/.next/server/app/api/db/reconcile-endpoints/route.js.nft.json +1 -1
  74. package/.next/server/app/api/db/reconcile-endpoints/route_client-reference-manifest.js +1 -1
  75. package/.next/server/app/api/db/relations/[id]/route.js +1 -1
  76. package/.next/server/app/api/db/relations/[id]/route.js.nft.json +1 -1
  77. package/.next/server/app/api/db/relations/[id]/route_client-reference-manifest.js +1 -1
  78. package/.next/server/app/api/db/tables/[id]/route.js +1 -1
  79. package/.next/server/app/api/db/tables/[id]/route.js.nft.json +1 -1
  80. package/.next/server/app/api/db/tables/[id]/route_client-reference-manifest.js +1 -1
  81. package/.next/server/app/api/draft/approve/route.js +1 -1
  82. package/.next/server/app/api/draft/approve/route.js.nft.json +1 -1
  83. package/.next/server/app/api/draft/approve/route_client-reference-manifest.js +1 -1
  84. package/.next/server/app/api/draft/route.js +1 -1
  85. package/.next/server/app/api/draft/route.js.nft.json +1 -1
  86. package/.next/server/app/api/draft/route_client-reference-manifest.js +1 -1
  87. package/.next/server/app/api/draft/status/route.js +1 -1
  88. package/.next/server/app/api/draft/status/route.js.nft.json +1 -1
  89. package/.next/server/app/api/draft/status/route_client-reference-manifest.js +1 -1
  90. package/.next/server/app/api/edges/[id]/route.js +1 -1
  91. package/.next/server/app/api/edges/[id]/route.js.nft.json +1 -1
  92. package/.next/server/app/api/edges/[id]/route_client-reference-manifest.js +1 -1
  93. package/.next/server/app/api/edges/route.js +1 -1
  94. package/.next/server/app/api/edges/route.js.nft.json +1 -1
  95. package/.next/server/app/api/edges/route_client-reference-manifest.js +1 -1
  96. package/.next/server/app/api/endpoints/[id]/route.js +1 -1
  97. package/.next/server/app/api/endpoints/[id]/route.js.nft.json +1 -1
  98. package/.next/server/app/api/endpoints/[id]/route_client-reference-manifest.js +1 -1
  99. package/.next/server/app/api/entities/route.js +1 -1
  100. package/.next/server/app/api/entities/route.js.nft.json +1 -1
  101. package/.next/server/app/api/entities/route_client-reference-manifest.js +1 -1
  102. package/.next/server/app/api/feedback/[id]/route.js +1 -1
  103. package/.next/server/app/api/feedback/[id]/route_client-reference-manifest.js +1 -1
  104. package/.next/server/app/api/feedback/[id]/vote/route.js +1 -1
  105. package/.next/server/app/api/feedback/[id]/vote/route_client-reference-manifest.js +1 -1
  106. package/.next/server/app/api/feedback/route.js +1 -1
  107. package/.next/server/app/api/feedback/route_client-reference-manifest.js +1 -1
  108. package/.next/server/app/api/ingest/route.js +6 -6
  109. package/.next/server/app/api/ingest/route.js.nft.json +1 -1
  110. package/.next/server/app/api/ingest/route_client-reference-manifest.js +1 -1
  111. package/.next/server/app/api/init/route.js +6 -6
  112. package/.next/server/app/api/init/route.js.nft.json +1 -1
  113. package/.next/server/app/api/init/route_client-reference-manifest.js +1 -1
  114. package/.next/server/app/api/map/describe/route.js +6 -6
  115. package/.next/server/app/api/map/describe/route.js.nft.json +1 -1
  116. package/.next/server/app/api/map/describe/route_client-reference-manifest.js +1 -1
  117. package/.next/server/app/api/map/files/route.js +1 -1
  118. package/.next/server/app/api/map/files/route.js.nft.json +1 -1
  119. package/.next/server/app/api/map/files/route_client-reference-manifest.js +1 -1
  120. package/.next/server/app/api/map/finish/route.js +1 -1
  121. package/.next/server/app/api/map/finish/route.js.nft.json +1 -1
  122. package/.next/server/app/api/map/finish/route_client-reference-manifest.js +1 -1
  123. package/.next/server/app/api/map/route.js +1 -1
  124. package/.next/server/app/api/map/route.js.nft.json +1 -1
  125. package/.next/server/app/api/map/route_client-reference-manifest.js +1 -1
  126. package/.next/server/app/api/map/start/route.js +1 -1
  127. package/.next/server/app/api/map/start/route.js.nft.json +1 -1
  128. package/.next/server/app/api/map/start/route_client-reference-manifest.js +1 -1
  129. package/.next/server/app/api/map/touch-active/route.js +1 -1
  130. package/.next/server/app/api/map/touch-active/route.js.nft.json +1 -1
  131. package/.next/server/app/api/map/touch-active/route_client-reference-manifest.js +1 -1
  132. package/.next/server/app/api/nodes/[id]/position/route.js +1 -1
  133. package/.next/server/app/api/nodes/[id]/position/route.js.nft.json +1 -1
  134. package/.next/server/app/api/nodes/[id]/position/route_client-reference-manifest.js +1 -1
  135. package/.next/server/app/api/nodes/[id]/route.js +1 -1
  136. package/.next/server/app/api/nodes/[id]/route.js.nft.json +1 -1
  137. package/.next/server/app/api/nodes/[id]/route_client-reference-manifest.js +1 -1
  138. package/.next/server/app/api/nodes/positions/route.js +1 -1
  139. package/.next/server/app/api/nodes/positions/route.js.nft.json +1 -1
  140. package/.next/server/app/api/nodes/positions/route_client-reference-manifest.js +1 -1
  141. package/.next/server/app/api/nodes/route.js +1 -1
  142. package/.next/server/app/api/nodes/route.js.nft.json +1 -1
  143. package/.next/server/app/api/nodes/route_client-reference-manifest.js +1 -1
  144. package/.next/server/app/api/nodes/subtasks/route.js +1 -1
  145. package/.next/server/app/api/nodes/subtasks/route.js.nft.json +1 -1
  146. package/.next/server/app/api/nodes/subtasks/route_client-reference-manifest.js +1 -1
  147. package/.next/server/app/api/notes/[id]/route.js +1 -1
  148. package/.next/server/app/api/notes/[id]/route.js.nft.json +1 -1
  149. package/.next/server/app/api/notes/[id]/route_client-reference-manifest.js +1 -1
  150. package/.next/server/app/api/notes/route.js +1 -1
  151. package/.next/server/app/api/notes/route.js.nft.json +1 -1
  152. package/.next/server/app/api/notes/route_client-reference-manifest.js +1 -1
  153. package/.next/server/app/api/open/route.js +1 -1
  154. package/.next/server/app/api/open/route.js.nft.json +1 -1
  155. package/.next/server/app/api/open/route_client-reference-manifest.js +1 -1
  156. package/.next/server/app/api/plan/annotations/route.js +2 -2
  157. package/.next/server/app/api/plan/annotations/route.js.nft.json +1 -1
  158. package/.next/server/app/api/plan/annotations/route_client-reference-manifest.js +1 -1
  159. package/.next/server/app/api/plan/approve/route.js +6 -6
  160. package/.next/server/app/api/plan/approve/route.js.nft.json +1 -1
  161. package/.next/server/app/api/plan/approve/route_client-reference-manifest.js +1 -1
  162. package/.next/server/app/api/plan/history/route.js +1 -1
  163. package/.next/server/app/api/plan/history/route.js.nft.json +1 -1
  164. package/.next/server/app/api/plan/history/route_client-reference-manifest.js +1 -1
  165. package/.next/server/app/api/plan/markdown/route.js +1 -1
  166. package/.next/server/app/api/plan/markdown/route.js.nft.json +1 -1
  167. package/.next/server/app/api/plan/markdown/route_client-reference-manifest.js +1 -1
  168. package/.next/server/app/api/plan/presence/route.js +1 -1
  169. package/.next/server/app/api/plan/presence/route.js.nft.json +1 -1
  170. package/.next/server/app/api/plan/presence/route_client-reference-manifest.js +1 -1
  171. package/.next/server/app/api/plan/route.js +1 -1
  172. package/.next/server/app/api/plan/route.js.nft.json +1 -1
  173. package/.next/server/app/api/plan/route_client-reference-manifest.js +1 -1
  174. package/.next/server/app/api/plan/verdict/route.js +1 -1
  175. package/.next/server/app/api/plan/verdict/route.js.nft.json +1 -1
  176. package/.next/server/app/api/plan/verdict/route_client-reference-manifest.js +1 -1
  177. package/.next/server/app/api/preferences/route.js +1 -1
  178. package/.next/server/app/api/preferences/route.js.nft.json +1 -1
  179. package/.next/server/app/api/preferences/route_client-reference-manifest.js +1 -1
  180. package/.next/server/app/api/reset/route.js +1 -1
  181. package/.next/server/app/api/reset/route.js.nft.json +1 -1
  182. package/.next/server/app/api/reset/route_client-reference-manifest.js +1 -1
  183. package/.next/server/app/api/stream/route.js +2 -2
  184. package/.next/server/app/api/stream/route.js.nft.json +1 -1
  185. package/.next/server/app/api/stream/route_client-reference-manifest.js +1 -1
  186. package/.next/server/app/api/version/route.js +1 -1
  187. package/.next/server/app/api/version/route.js.nft.json +1 -1
  188. package/.next/server/app/api/version/route_client-reference-manifest.js +1 -1
  189. package/.next/server/app/api/workspace/activate/route.js +1 -1
  190. package/.next/server/app/api/workspace/activate/route.js.nft.json +1 -1
  191. package/.next/server/app/api/workspace/activate/route_client-reference-manifest.js +1 -1
  192. package/.next/server/app/api/workspace/route.js +1 -1
  193. package/.next/server/app/api/workspace/route.js.nft.json +1 -1
  194. package/.next/server/app/api/workspace/route_client-reference-manifest.js +1 -1
  195. package/.next/server/app/apple-icon.png/route.js +1 -1
  196. package/.next/server/app/docs/page.js +2 -2
  197. package/.next/server/app/docs/page.js.nft.json +1 -1
  198. package/.next/server/app/docs/page_client-reference-manifest.js +1 -1
  199. package/.next/server/app/docs.html +1 -1
  200. package/.next/server/app/docs.rsc +11 -11
  201. package/.next/server/app/docs.segments/_full.segment.rsc +11 -11
  202. package/.next/server/app/docs.segments/_head.segment.rsc +1 -1
  203. package/.next/server/app/docs.segments/_index.segment.rsc +10 -10
  204. package/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
  205. package/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +2 -2
  206. package/.next/server/app/docs.segments/docs.segment.rsc +1 -1
  207. package/.next/server/app/feedback/page.js +2 -2
  208. package/.next/server/app/feedback/page.js.nft.json +1 -1
  209. package/.next/server/app/feedback/page_client-reference-manifest.js +1 -1
  210. package/.next/server/app/feedback.html +1 -1
  211. package/.next/server/app/feedback.rsc +11 -11
  212. package/.next/server/app/feedback.segments/_full.segment.rsc +11 -11
  213. package/.next/server/app/feedback.segments/_head.segment.rsc +1 -1
  214. package/.next/server/app/feedback.segments/_index.segment.rsc +10 -10
  215. package/.next/server/app/feedback.segments/_tree.segment.rsc +2 -2
  216. package/.next/server/app/feedback.segments/feedback/__PAGE__.segment.rsc +2 -2
  217. package/.next/server/app/feedback.segments/feedback.segment.rsc +1 -1
  218. package/.next/server/app/help/page.js +2 -2
  219. package/.next/server/app/help/page.js.nft.json +1 -1
  220. package/.next/server/app/help/page_client-reference-manifest.js +1 -1
  221. package/.next/server/app/help.html +1 -1
  222. package/.next/server/app/help.rsc +30 -29
  223. package/.next/server/app/help.segments/_full.segment.rsc +30 -29
  224. package/.next/server/app/help.segments/_head.segment.rsc +1 -1
  225. package/.next/server/app/help.segments/_index.segment.rsc +10 -10
  226. package/.next/server/app/help.segments/_tree.segment.rsc +2 -2
  227. package/.next/server/app/help.segments/help/__PAGE__.segment.rsc +3 -3
  228. package/.next/server/app/help.segments/help.segment.rsc +1 -1
  229. package/.next/server/app/icon.svg/route.js +1 -1
  230. package/.next/server/app/index.html +1 -1
  231. package/.next/server/app/index.rsc +11 -11
  232. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  233. package/.next/server/app/index.segments/_full.segment.rsc +11 -11
  234. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  235. package/.next/server/app/index.segments/_index.segment.rsc +10 -10
  236. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  237. package/.next/server/app/map/page.js +2 -2
  238. package/.next/server/app/map/page.js.nft.json +1 -1
  239. package/.next/server/app/map/page_client-reference-manifest.js +1 -1
  240. package/.next/server/app/page.js +2 -2
  241. package/.next/server/app/page.js.nft.json +1 -1
  242. package/.next/server/app/page_client-reference-manifest.js +1 -1
  243. package/.next/server/app/plan/page.js +2 -2
  244. package/.next/server/app/plan/page.js.nft.json +1 -1
  245. package/.next/server/app/plan/page_client-reference-manifest.js +1 -1
  246. package/.next/server/app/settings/page.js +2 -2
  247. package/.next/server/app/settings/page.js.nft.json +1 -1
  248. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  249. package/.next/server/app-paths-manifest.json +7 -6
  250. package/.next/server/chunks/249.js +1 -1
  251. package/.next/server/chunks/2877.js +1 -1
  252. package/.next/server/chunks/2933.js +1 -1
  253. package/.next/server/chunks/2981.js +1 -1
  254. package/.next/server/chunks/319.js +3 -3
  255. package/.next/server/chunks/3221.js +1 -1
  256. package/.next/server/chunks/333.js +1 -0
  257. package/.next/server/chunks/4378.js +1 -1
  258. package/.next/server/chunks/5187.js +1 -0
  259. package/.next/server/chunks/5258.js +1 -1
  260. package/.next/server/chunks/7373.js +1 -1
  261. package/.next/server/chunks/9127.js +1 -1
  262. package/.next/server/chunks/9213.js +1 -1
  263. package/.next/server/chunks/9683.js +1 -1
  264. package/.next/server/chunks/9734.js +1 -1
  265. package/.next/server/instrumentation.js.nft.json +1 -1
  266. package/.next/server/middleware-build-manifest.js +1 -1
  267. package/.next/server/middleware.js +2 -2
  268. package/.next/server/next-font-manifest.js +1 -1
  269. package/.next/server/next-font-manifest.json +1 -1
  270. package/.next/server/pages/404.html +1 -1
  271. package/.next/server/pages/500.html +1 -1
  272. package/.next/server/server-reference-manifest.js +1 -1
  273. package/.next/server/server-reference-manifest.json +1 -1
  274. package/.next/static/EfEL3QWkyHxWh46VOF0kO/_buildManifest.js +1 -0
  275. package/.next/static/chunks/6944-324f052feaf8203f.js +1 -0
  276. package/.next/static/chunks/app/_global-error/page-4cdc03c65547f289.js +1 -0
  277. package/.next/static/chunks/app/_not-found/page-b2c1eefe2cdbb8c3.js +1 -0
  278. package/.next/static/chunks/app/api/board-annotations/[id]/route-4cdc03c65547f289.js +1 -0
  279. package/.next/static/chunks/app/api/board-annotations/route-4cdc03c65547f289.js +1 -0
  280. package/.next/static/chunks/app/api/board-layout/route-4cdc03c65547f289.js +1 -0
  281. package/.next/static/chunks/app/api/bug-flags/[id]/route-4cdc03c65547f289.js +1 -0
  282. package/.next/static/chunks/app/api/bug-flags/route-4cdc03c65547f289.js +1 -0
  283. package/.next/static/chunks/app/api/code-graph/position/route-4cdc03c65547f289.js +1 -0
  284. package/.next/static/chunks/app/api/code-graph/route-4cdc03c65547f289.js +1 -0
  285. package/.next/static/chunks/app/api/context/feature/route-4cdc03c65547f289.js +1 -0
  286. package/.next/static/chunks/app/api/context/file/route-4cdc03c65547f289.js +1 -0
  287. package/.next/static/chunks/app/api/context/route-4cdc03c65547f289.js +1 -0
  288. package/.next/static/chunks/app/api/db/arrange/route-4cdc03c65547f289.js +1 -0
  289. package/.next/static/chunks/app/api/db/backfill-access/route-4cdc03c65547f289.js +1 -0
  290. package/.next/static/chunks/app/api/db/position/route-4cdc03c65547f289.js +1 -0
  291. package/.next/static/chunks/app/api/db/prune-planned/route-4cdc03c65547f289.js +1 -0
  292. package/.next/static/chunks/app/api/db/reconcile-endpoints/route-4cdc03c65547f289.js +1 -0
  293. package/.next/static/chunks/app/api/db/relations/[id]/route-4cdc03c65547f289.js +1 -0
  294. package/.next/static/chunks/app/api/db/tables/[id]/route-4cdc03c65547f289.js +1 -0
  295. package/.next/static/chunks/app/api/draft/approve/route-4cdc03c65547f289.js +1 -0
  296. package/.next/static/chunks/app/api/draft/route-4cdc03c65547f289.js +1 -0
  297. package/.next/static/chunks/app/api/draft/status/route-4cdc03c65547f289.js +1 -0
  298. package/.next/static/chunks/app/api/edges/[id]/route-4cdc03c65547f289.js +1 -0
  299. package/.next/static/chunks/app/api/edges/route-4cdc03c65547f289.js +1 -0
  300. package/.next/static/chunks/app/api/endpoints/[id]/route-4cdc03c65547f289.js +1 -0
  301. package/.next/static/chunks/app/api/entities/route-4cdc03c65547f289.js +1 -0
  302. package/.next/static/chunks/app/api/feedback/[id]/route-4cdc03c65547f289.js +1 -0
  303. package/.next/static/chunks/app/api/feedback/[id]/vote/route-4cdc03c65547f289.js +1 -0
  304. package/.next/static/chunks/app/api/feedback/route-4cdc03c65547f289.js +1 -0
  305. package/.next/static/chunks/app/api/ingest/route-4cdc03c65547f289.js +1 -0
  306. package/.next/static/chunks/app/api/init/route-4cdc03c65547f289.js +1 -0
  307. package/.next/static/chunks/app/api/map/describe/route-4cdc03c65547f289.js +1 -0
  308. package/.next/static/chunks/app/api/map/files/route-4cdc03c65547f289.js +1 -0
  309. package/.next/static/chunks/app/api/map/finish/route-4cdc03c65547f289.js +1 -0
  310. package/.next/static/chunks/app/api/map/route-4cdc03c65547f289.js +1 -0
  311. package/.next/static/chunks/app/api/map/start/route-4cdc03c65547f289.js +1 -0
  312. package/.next/static/chunks/app/api/map/touch-active/route-4cdc03c65547f289.js +1 -0
  313. package/.next/static/chunks/app/api/nodes/[id]/position/route-4cdc03c65547f289.js +1 -0
  314. package/.next/static/chunks/app/api/nodes/[id]/route-4cdc03c65547f289.js +1 -0
  315. package/.next/static/chunks/app/api/nodes/positions/route-4cdc03c65547f289.js +1 -0
  316. package/.next/static/chunks/app/api/nodes/route-4cdc03c65547f289.js +1 -0
  317. package/.next/static/chunks/app/api/nodes/subtasks/route-4cdc03c65547f289.js +1 -0
  318. package/.next/static/chunks/app/api/notes/[id]/route-4cdc03c65547f289.js +1 -0
  319. package/.next/static/chunks/app/api/notes/route-4cdc03c65547f289.js +1 -0
  320. package/.next/static/chunks/app/api/open/route-4cdc03c65547f289.js +1 -0
  321. package/.next/static/chunks/app/api/plan/annotations/route-4cdc03c65547f289.js +1 -0
  322. package/.next/static/chunks/app/api/plan/approve/route-4cdc03c65547f289.js +1 -0
  323. package/.next/static/chunks/app/api/plan/history/route-4cdc03c65547f289.js +1 -0
  324. package/.next/static/chunks/app/api/plan/markdown/route-4cdc03c65547f289.js +1 -0
  325. package/.next/static/chunks/app/api/plan/presence/route-4cdc03c65547f289.js +1 -0
  326. package/.next/static/chunks/app/api/plan/route-4cdc03c65547f289.js +1 -0
  327. package/.next/static/chunks/app/api/plan/verdict/route-4cdc03c65547f289.js +1 -0
  328. package/.next/static/chunks/app/api/preferences/route-4cdc03c65547f289.js +1 -0
  329. package/.next/static/chunks/app/api/reset/route-4cdc03c65547f289.js +1 -0
  330. package/.next/static/chunks/app/api/stream/route-4cdc03c65547f289.js +1 -0
  331. package/.next/static/chunks/app/api/version/route-4cdc03c65547f289.js +1 -0
  332. package/.next/static/chunks/app/api/workspace/activate/route-4cdc03c65547f289.js +1 -0
  333. package/.next/static/chunks/app/api/workspace/route-4cdc03c65547f289.js +1 -0
  334. package/.next/static/chunks/app/docs/page-c28a9d071c9f4e9a.js +1 -0
  335. package/.next/static/chunks/app/feedback/{page-9c313281ba613e34.js → page-24a5b2f8d24d9024.js} +1 -1
  336. package/.next/static/chunks/app/help/page-7ece210a72cf4a67.js +1 -0
  337. package/.next/static/chunks/app/layout-d4b764b7fd4ec5c6.js +1 -0
  338. package/.next/static/chunks/app/map/{page-2cac4ffa4e4220c2.js → page-f441a6ee9a4c36a1.js} +1 -1
  339. package/.next/static/chunks/app/{page-bb6bef10a857544d.js → page-2c4582b256e877c0.js} +1 -1
  340. package/.next/static/chunks/app/plan/page-5778daf35fa755d2.js +1 -0
  341. package/.next/static/chunks/app/settings/page-8a6efc095447310f.js +1 -0
  342. package/.next/static/chunks/main-app-cb1a040ffaced80b.js +1 -0
  343. package/.next/static/chunks/next/dist/client/components/builtin/app-error-4cdc03c65547f289.js +1 -0
  344. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-4cdc03c65547f289.js +1 -0
  345. package/.next/static/chunks/next/dist/client/components/builtin/global-error-c82bd7a72a198de4.js +1 -0
  346. package/.next/static/chunks/next/dist/client/components/builtin/not-found-4cdc03c65547f289.js +1 -0
  347. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-4cdc03c65547f289.js +1 -0
  348. package/.next/static/css/adeb1fa01259c532.css +1 -0
  349. package/.next/trace +38 -37
  350. package/.next/trace-build +1 -1
  351. package/.next/types/app/api/board-annotations/[id]/route.ts +1 -1
  352. package/.next/types/app/api/board-annotations/route.ts +1 -1
  353. package/.next/types/app/api/board-layout/route.ts +1 -1
  354. package/.next/types/app/api/bug-flags/[id]/route.ts +1 -1
  355. package/.next/types/app/api/bug-flags/route.ts +1 -1
  356. package/.next/types/app/api/code-graph/position/route.ts +1 -1
  357. package/.next/types/app/api/code-graph/route.ts +1 -1
  358. package/.next/types/app/api/context/feature/route.ts +1 -1
  359. package/.next/types/app/api/context/file/route.ts +1 -1
  360. package/.next/types/app/api/context/route.ts +1 -1
  361. package/.next/types/app/api/db/arrange/route.ts +1 -1
  362. package/.next/types/app/api/db/backfill-access/route.ts +1 -1
  363. package/.next/types/app/api/db/position/route.ts +1 -1
  364. package/.next/types/app/api/db/prune-planned/route.ts +351 -0
  365. package/.next/types/app/api/db/reconcile-endpoints/route.ts +1 -1
  366. package/.next/types/app/api/db/relations/[id]/route.ts +1 -1
  367. package/.next/types/app/api/db/tables/[id]/route.ts +1 -1
  368. package/.next/types/app/api/draft/approve/route.ts +1 -1
  369. package/.next/types/app/api/draft/route.ts +1 -1
  370. package/.next/types/app/api/draft/status/route.ts +1 -1
  371. package/.next/types/app/api/edges/[id]/route.ts +1 -1
  372. package/.next/types/app/api/edges/route.ts +1 -1
  373. package/.next/types/app/api/endpoints/[id]/route.ts +1 -1
  374. package/.next/types/app/api/entities/route.ts +1 -1
  375. package/.next/types/app/api/feedback/[id]/route.ts +1 -1
  376. package/.next/types/app/api/feedback/[id]/vote/route.ts +1 -1
  377. package/.next/types/app/api/feedback/route.ts +1 -1
  378. package/.next/types/app/api/ingest/route.ts +1 -1
  379. package/.next/types/app/api/init/route.ts +1 -1
  380. package/.next/types/app/api/map/describe/route.ts +1 -1
  381. package/.next/types/app/api/map/files/route.ts +1 -1
  382. package/.next/types/app/api/map/finish/route.ts +1 -1
  383. package/.next/types/app/api/map/route.ts +1 -1
  384. package/.next/types/app/api/map/start/route.ts +1 -1
  385. package/.next/types/app/api/map/touch-active/route.ts +1 -1
  386. package/.next/types/app/api/nodes/[id]/position/route.ts +1 -1
  387. package/.next/types/app/api/nodes/[id]/route.ts +1 -1
  388. package/.next/types/app/api/nodes/positions/route.ts +1 -1
  389. package/.next/types/app/api/nodes/route.ts +1 -1
  390. package/.next/types/app/api/nodes/subtasks/route.ts +1 -1
  391. package/.next/types/app/api/notes/[id]/route.ts +1 -1
  392. package/.next/types/app/api/notes/route.ts +1 -1
  393. package/.next/types/app/api/open/route.ts +1 -1
  394. package/.next/types/app/api/plan/annotations/route.ts +1 -1
  395. package/.next/types/app/api/plan/approve/route.ts +1 -1
  396. package/.next/types/app/api/plan/history/route.ts +1 -1
  397. package/.next/types/app/api/plan/markdown/route.ts +1 -1
  398. package/.next/types/app/api/plan/presence/route.ts +1 -1
  399. package/.next/types/app/api/plan/route.ts +1 -1
  400. package/.next/types/app/api/plan/verdict/route.ts +1 -1
  401. package/.next/types/app/api/preferences/route.ts +1 -1
  402. package/.next/types/app/api/reset/route.ts +1 -1
  403. package/.next/types/app/api/stream/route.ts +1 -1
  404. package/.next/types/app/api/version/route.ts +1 -1
  405. package/.next/types/app/api/workspace/activate/route.ts +1 -1
  406. package/.next/types/app/api/workspace/route.ts +1 -1
  407. package/.next/types/app/docs/page.ts +1 -1
  408. package/.next/types/app/feedback/page.ts +1 -1
  409. package/.next/types/app/help/page.ts +1 -1
  410. package/.next/types/app/map/page.ts +1 -1
  411. package/.next/types/app/page.ts +1 -1
  412. package/.next/types/app/plan/page.ts +1 -1
  413. package/.next/types/app/settings/page.ts +1 -1
  414. package/.next/types/routes.d.ts +2 -1
  415. package/.next/types/validator.ts +9 -0
  416. package/dist/bin/beacon.js +6 -6
  417. package/dist/bin/doctor.js +1 -1
  418. package/dist/bin/hook.js +4 -4
  419. package/dist/bin/mcp.js +1 -1
  420. package/dist/bin/plan.js +1 -1
  421. package/dist/bin/remove.js +6 -6
  422. package/dist/bin/uninstall.js +1 -1
  423. package/dist/lib/workspaces.js +1 -1
  424. package/drizzle/0005_graceful_adam_warlock.sql +3 -0
  425. package/drizzle/meta/0005_snapshot.json +1751 -0
  426. package/drizzle/meta/_journal.json +7 -0
  427. package/package.json +1 -1
  428. package/.next/server/chunks/3015.js +0 -1
  429. package/.next/server/chunks/617.js +0 -1
  430. package/.next/static/MYvJ_ebinIGa9MP5kWFaY/_buildManifest.js +0 -1
  431. package/.next/static/chunks/6773-89cca3b011769270.js +0 -1
  432. package/.next/static/chunks/app/_global-error/page-8fa95c63b95bf9c3.js +0 -1
  433. package/.next/static/chunks/app/_not-found/page-57c7dfeb659fcab6.js +0 -1
  434. package/.next/static/chunks/app/api/board-annotations/[id]/route-8fa95c63b95bf9c3.js +0 -1
  435. package/.next/static/chunks/app/api/board-annotations/route-8fa95c63b95bf9c3.js +0 -1
  436. package/.next/static/chunks/app/api/board-layout/route-8fa95c63b95bf9c3.js +0 -1
  437. package/.next/static/chunks/app/api/bug-flags/[id]/route-8fa95c63b95bf9c3.js +0 -1
  438. package/.next/static/chunks/app/api/bug-flags/route-8fa95c63b95bf9c3.js +0 -1
  439. package/.next/static/chunks/app/api/code-graph/position/route-8fa95c63b95bf9c3.js +0 -1
  440. package/.next/static/chunks/app/api/code-graph/route-8fa95c63b95bf9c3.js +0 -1
  441. package/.next/static/chunks/app/api/context/feature/route-8fa95c63b95bf9c3.js +0 -1
  442. package/.next/static/chunks/app/api/context/file/route-8fa95c63b95bf9c3.js +0 -1
  443. package/.next/static/chunks/app/api/context/route-8fa95c63b95bf9c3.js +0 -1
  444. package/.next/static/chunks/app/api/db/arrange/route-8fa95c63b95bf9c3.js +0 -1
  445. package/.next/static/chunks/app/api/db/backfill-access/route-8fa95c63b95bf9c3.js +0 -1
  446. package/.next/static/chunks/app/api/db/position/route-8fa95c63b95bf9c3.js +0 -1
  447. package/.next/static/chunks/app/api/db/reconcile-endpoints/route-8fa95c63b95bf9c3.js +0 -1
  448. package/.next/static/chunks/app/api/db/relations/[id]/route-8fa95c63b95bf9c3.js +0 -1
  449. package/.next/static/chunks/app/api/db/tables/[id]/route-8fa95c63b95bf9c3.js +0 -1
  450. package/.next/static/chunks/app/api/draft/approve/route-8fa95c63b95bf9c3.js +0 -1
  451. package/.next/static/chunks/app/api/draft/route-8fa95c63b95bf9c3.js +0 -1
  452. package/.next/static/chunks/app/api/draft/status/route-8fa95c63b95bf9c3.js +0 -1
  453. package/.next/static/chunks/app/api/edges/[id]/route-8fa95c63b95bf9c3.js +0 -1
  454. package/.next/static/chunks/app/api/edges/route-8fa95c63b95bf9c3.js +0 -1
  455. package/.next/static/chunks/app/api/endpoints/[id]/route-8fa95c63b95bf9c3.js +0 -1
  456. package/.next/static/chunks/app/api/entities/route-8fa95c63b95bf9c3.js +0 -1
  457. package/.next/static/chunks/app/api/feedback/[id]/route-8fa95c63b95bf9c3.js +0 -1
  458. package/.next/static/chunks/app/api/feedback/[id]/vote/route-8fa95c63b95bf9c3.js +0 -1
  459. package/.next/static/chunks/app/api/feedback/route-8fa95c63b95bf9c3.js +0 -1
  460. package/.next/static/chunks/app/api/ingest/route-8fa95c63b95bf9c3.js +0 -1
  461. package/.next/static/chunks/app/api/init/route-8fa95c63b95bf9c3.js +0 -1
  462. package/.next/static/chunks/app/api/map/describe/route-8fa95c63b95bf9c3.js +0 -1
  463. package/.next/static/chunks/app/api/map/files/route-8fa95c63b95bf9c3.js +0 -1
  464. package/.next/static/chunks/app/api/map/finish/route-8fa95c63b95bf9c3.js +0 -1
  465. package/.next/static/chunks/app/api/map/route-8fa95c63b95bf9c3.js +0 -1
  466. package/.next/static/chunks/app/api/map/start/route-8fa95c63b95bf9c3.js +0 -1
  467. package/.next/static/chunks/app/api/map/touch-active/route-8fa95c63b95bf9c3.js +0 -1
  468. package/.next/static/chunks/app/api/nodes/[id]/position/route-8fa95c63b95bf9c3.js +0 -1
  469. package/.next/static/chunks/app/api/nodes/[id]/route-8fa95c63b95bf9c3.js +0 -1
  470. package/.next/static/chunks/app/api/nodes/positions/route-8fa95c63b95bf9c3.js +0 -1
  471. package/.next/static/chunks/app/api/nodes/route-8fa95c63b95bf9c3.js +0 -1
  472. package/.next/static/chunks/app/api/nodes/subtasks/route-8fa95c63b95bf9c3.js +0 -1
  473. package/.next/static/chunks/app/api/notes/[id]/route-8fa95c63b95bf9c3.js +0 -1
  474. package/.next/static/chunks/app/api/notes/route-8fa95c63b95bf9c3.js +0 -1
  475. package/.next/static/chunks/app/api/open/route-8fa95c63b95bf9c3.js +0 -1
  476. package/.next/static/chunks/app/api/plan/annotations/route-8fa95c63b95bf9c3.js +0 -1
  477. package/.next/static/chunks/app/api/plan/approve/route-8fa95c63b95bf9c3.js +0 -1
  478. package/.next/static/chunks/app/api/plan/history/route-8fa95c63b95bf9c3.js +0 -1
  479. package/.next/static/chunks/app/api/plan/markdown/route-8fa95c63b95bf9c3.js +0 -1
  480. package/.next/static/chunks/app/api/plan/presence/route-8fa95c63b95bf9c3.js +0 -1
  481. package/.next/static/chunks/app/api/plan/route-8fa95c63b95bf9c3.js +0 -1
  482. package/.next/static/chunks/app/api/plan/verdict/route-8fa95c63b95bf9c3.js +0 -1
  483. package/.next/static/chunks/app/api/preferences/route-8fa95c63b95bf9c3.js +0 -1
  484. package/.next/static/chunks/app/api/reset/route-8fa95c63b95bf9c3.js +0 -1
  485. package/.next/static/chunks/app/api/stream/route-8fa95c63b95bf9c3.js +0 -1
  486. package/.next/static/chunks/app/api/version/route-8fa95c63b95bf9c3.js +0 -1
  487. package/.next/static/chunks/app/api/workspace/activate/route-8fa95c63b95bf9c3.js +0 -1
  488. package/.next/static/chunks/app/api/workspace/route-8fa95c63b95bf9c3.js +0 -1
  489. package/.next/static/chunks/app/docs/page-5b14c5cfd82e6427.js +0 -1
  490. package/.next/static/chunks/app/help/page-d720609312abff8b.js +0 -1
  491. package/.next/static/chunks/app/layout-78fefdd943b8c8f9.js +0 -1
  492. package/.next/static/chunks/app/plan/page-8a9ed9019afac5ca.js +0 -1
  493. package/.next/static/chunks/app/settings/page-4d4879990a4f14fc.js +0 -1
  494. package/.next/static/chunks/main-app-1a32dc335629e4e4.js +0 -1
  495. package/.next/static/chunks/next/dist/client/components/builtin/app-error-8fa95c63b95bf9c3.js +0 -1
  496. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-8fa95c63b95bf9c3.js +0 -1
  497. package/.next/static/chunks/next/dist/client/components/builtin/global-error-df87398e192c5e45.js +0 -1
  498. package/.next/static/chunks/next/dist/client/components/builtin/not-found-8fa95c63b95bf9c3.js +0 -1
  499. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-8fa95c63b95bf9c3.js +0 -1
  500. package/.next/static/css/30e69a9d2de6ece7.css +0 -1
  501. /package/.next/static/{MYvJ_ebinIGa9MP5kWFaY → EfEL3QWkyHxWh46VOF0kO}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,204,439,730,1145,1235,1288,1361,1570,1617,1662,1918,1929,2442,2681,2752,2821,2922,3087,3185,3290,3519,3688,3979,4360,4505,4636,4816,4852,4896,5022,5043,5152,5190,5412,5807,5884,6600,6714,6760,6805,6819,6886,6950,6988,7137,7317,7423,7612,7691,7705,7743,7851,8167,8235,8617,8650,9140,9550,9560],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,204,439,730,1145,1235,1288,1361,1570,1617,1662,1918,1929,2442,2681,2752,2821,2922,3087,3185,3290,3519,3688,3979,4360,4505,4636,4816,4852,4896,5022,5043,5152,5190,5412,5807,5884,6600,6714,6760,6805,6819,6886,6950,6988,7137,7317,7423,7612,7691,7705,7743,7851,8167,8235,8617,8650,9140,9550,9560],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,204,439,730,1145,1235,1288,1361,1570,1617,1662,1918,1929,2442,2681,2752,2821,2922,3087,3185,3290,3519,3688,3979,4360,4505,4636,4816,4852,4896,5022,5043,5152,5190,5412,5807,5884,6600,6714,6760,6805,6819,6886,6950,6988,7137,7317,7423,7612,7691,7705,7743,7851,8167,8235,8617,8650,9140,9550,9560],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,204,439,730,1145,1235,1288,1361,1570,1617,1662,1918,1929,2442,2681,2752,2821,2922,3087,3185,3290,3519,3688,3979,4360,4505,4636,4816,4852,4896,5022,5043,5152,5190,5412,5807,5884,6600,6714,6760,6805,6819,6886,6950,6988,7137,7317,7423,7612,7691,7705,7743,7851,8167,8235,8617,8650,9140,9550,9560],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,204,439,730,1145,1235,1288,1361,1570,1617,1662,1918,1929,2442,2681,2752,2821,2922,3087,3185,3290,3519,3688,3979,4360,4505,4636,4816,4852,4896,5022,5043,5152,5190,5412,5807,5884,6600,6714,6760,6805,6819,6886,6950,6988,7137,7317,7423,7612,7691,7705,7743,7851,8167,8235,8617,8650,9140,9550,9560],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,204,439,730,1145,1235,1288,1361,1570,1617,1662,1918,1929,2442,2681,2752,2821,2922,3087,3185,3290,3519,3688,3979,4360,4505,4636,4816,4852,4896,5022,5043,5152,5190,5412,5807,5884,6600,6714,6760,6805,6819,6886,6950,6988,7137,7317,7423,7612,7691,7705,7743,7851,8167,8235,8617,8650,9140,9550,9560],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,204,439,730,1145,1235,1288,1361,1570,1617,1662,1918,1929,2442,2681,2752,2821,2922,3087,3185,3290,3519,3688,3979,4360,4505,4636,4816,4852,4896,5022,5043,5152,5190,5412,5807,5884,6600,6714,6760,6805,6819,6886,6950,6988,7137,7317,7423,7612,7691,7705,7743,7851,8167,8235,8617,8650,9140,9550,9560],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,204,439,730,1145,1235,1288,1361,1570,1617,1662,1918,1929,2442,2681,2752,2821,2922,3087,3185,3290,3519,3688,3979,4360,4505,4636,4816,4852,4896,5022,5043,5152,5190,5412,5807,5884,6600,6714,6760,6805,6819,6886,6950,6988,7137,7317,7423,7612,7691,7705,7743,7851,8167,8235,8617,8650,9140,9550,9560],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,204,439,730,1145,1235,1288,1361,1570,1617,1662,1918,1929,2442,2681,2752,2821,2922,3087,3185,3290,3519,3688,3979,4360,4505,4636,4816,4852,4896,5022,5043,5152,5190,5412,5807,5884,6600,6714,6760,6805,6819,6886,6950,6988,7137,7317,7423,7612,7691,7705,7743,7851,8167,8235,8617,8650,9140,9550,9560],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9040],{39593:(e,s,a)=>{"use strict";a.d(s,{EO:()=>o,S2:()=>n,W6:()=>r});var t=a(41463);let n="https://api.github.com/repos/wenzorithelly/beacon/releases/latest",r=(t.env.NEXT_PUBLIC_BEACON_SITE_URL??"https://www.trybeacon.sh").replace(/\/$/,""),o=`curl -fsSL ${r}/install.sh | sh`},52965:(e,s,a)=>{"use strict";a.d(s,{_:()=>n});var t=a(95155);function n({size:e=18,className:s}){return(0,t.jsxs)("svg",{width:e,height:e,viewBox:"11 1.5 74 74",fill:"none",className:s,"aria-hidden":"true",children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"beacon-mark-beam",x1:"0",y1:"1",x2:"0",y2:"0",children:[(0,t.jsx)("stop",{offset:"0",stopColor:"#ffb27a",stopOpacity:"0.9"}),(0,t.jsx)("stop",{offset:"0.55",stopColor:"#ff7a45",stopOpacity:"0.3"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#ff7a45",stopOpacity:"0"})]})}),(0,t.jsx)("path",{d:"M48 30 L40 4 L56 4 Z",fill:"url(#beacon-mark-beam)"}),(0,t.jsx)("path",{d:"M48 33 L72.5 73 L23.5 73 Z",fill:"currentColor",stroke:"currentColor",strokeWidth:2.4,strokeLinejoin:"round"}),(0,t.jsx)("circle",{cx:"48",cy:"31",r:"5.2",fill:"var(--accent-2, #ff7a45)",style:{filter:"drop-shadow(0 0 4px var(--accent-2, #ff7a45))"}}),(0,t.jsx)("circle",{cx:"48",cy:"31",r:"2",fill:"#ffd9c2"})]})}},73954:(e,s,a)=>{"use strict";a.d(s,{Docs:()=>w});var t=a(95155),n=a(12115),r=a(98500),o=a.n(r),i=a(52965),l=a(39593);a(93340);let d=[{id:"overview",title:"What is Beacon"},{id:"install",title:"Install"},{id:"quickstart",title:"Quickstart"},{id:"loop",title:"The planning loop"},{id:"canvases",title:"The canvases"},{id:"cli",title:"CLI reference"},{id:"integration",title:"Claude Code integration"},{id:"config",title:"Configuration"},{id:"troubleshooting",title:"Troubleshooting"}],c=[{cmd:"beacon",what:"Register the current repo, ensure the shared server is running, and open the panel on this repo. The everyday command."},{cmd:"beacon doctor",what:"Audit what's wired — the global Claude Code hooks + skills, this repo's .mcp.json, and the running daemon."},{cmd:"beacon stop",what:"Stop the shared background server. It restarts the next time you run beacon."},{cmd:"beacon setup",what:"(Re)install Beacon's per-repo helpers — the skills and .mcp.json — in the current repo without opening the panel."},{cmd:"beacon uninstall",what:"Reverse every Beacon artifact: the global ~/.claude wiring and the per-repo files."},{cmd:"beacon mcp",what:"The stdio MCP server Claude Code spawns automatically. You never run this by hand."}],h=[{name:"/beacon-init",when:"First time you point Beacon at a repo.",what:"The agent reads the codebase and fills Beacon's map — the main components, the rough roadmap themes, the database schema, and the endpoints. Run it once per repo to bootstrap the picture."},{name:"/beacon-refresh",when:"Every few weeks, or after a big set of changes.",what:"The agent re-surveys the repo and updates what /beacon-init produced — adds new components, drops removed ones, picks up new tables and routes. Anything you added by hand on the canvas survives."},{name:"/beacon-plan",when:"Whenever you want to review an approach on the canvas.",what:"Present the current plan or approach on Beacon's /plan page for annotation instead of asking for approval as a wall of text."}],m=[{name:"beacon_context_for_feature",what:"Before touching code, the agent pulls the files attached to a feature plus their imports, the endpoints in that domain, the tables those endpoints touch, and the surrounding components — one round-trip instead of a blind Glob/Grep scan."},{name:"beacon_blast_radius",what:"Mid-feature, the agent runs this on a file it's about to edit to see what imports it and what it imports — so it can judge whether a change is safe."},{name:"beacon_propose_plan",what:"When the agent has a feature plan (tables + relations + endpoints), this opens it on /plan and BLOCKS the session until you Approve, Discard, or Submit feedback."},{name:"beacon_describe_feature",what:"When a feature is done, the agent records a short markdown summary and the files it touched, keeping the next session's context accurate."},{name:"beacon_map",what:"A quick list of features already on the roadmap. The agent calls it near the start of work to avoid duplicating what's planned."},{name:"beacon_entities",what:"A raw readout of everything mapped — features, architecture, tables, endpoints — when the agent just needs the planning data."}],p=[{trigger:"Plan mode (ExitPlanMode)",what:"When the agent shows you a plan, Beacon intercepts it and renders the markdown on /plan with a native annotation panel. Select text and type → it becomes a comment. Approve / Discard / Submit feedback flows back to the session as the next instruction."},{trigger:"File edits (PostToolUse)",what:"Every Edit/Write the agent runs is reported to Beacon and the file is attached to whichever feature the session is working on. The /map view fills in with the real files behind each feature, without you tagging anything."},{trigger:"Code-graph watcher",what:"While the panel is open, a background watcher rebuilds the Files view as you save code — the maps stay current with the repo on their own."}],x=[{key:"BEACON_HOME",what:"Where per-workspace data lives — the SQLite databases and the server record. Defaults to ~/.beacon."},{key:"PORT",what:"Port for the shared local server. Defaults to 4319."},{key:"Settings → intel",what:"In the panel, the Settings page drives the code-intelligence model/provider and your editor, and triggers a code-map sync."}];function u({text:e,label:s="Copy"}){let[a,r]=(0,n.useState)(!1);return(0,t.jsx)("button",{onClick:()=>{navigator.clipboard?.writeText(e),r(!0),setTimeout(()=>r(!1),1500)},className:"glass-soft w-hover grid h-8 w-8 shrink-0 place-items-center rounded-md","aria-label":s,children:a?(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#ff7a45",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M20 6 9 17l-5-5"})}):(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),(0,t.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})}function g({children:e,copy:s}){return(0,t.jsxs)("div",{className:"glass-soft flex items-center gap-3 rounded-lg px-4 py-2.5",children:[(0,t.jsx)("span",{className:"w-signal select-none",children:"$"}),(0,t.jsx)("code",{className:"w-mono w-scrollbar-none flex-1 overflow-x-auto whitespace-nowrap text-[0.85rem] text-foreground",children:e}),s&&(0,t.jsx)(u,{text:e})]})}function f({id:e,eyebrow:s,children:a}){return(0,t.jsxs)("div",{className:"mb-5 scroll-mt-28",id:e,children:[(0,t.jsx)("p",{className:"w-mono w-eyebrow w-signal mb-2",children:s}),(0,t.jsx)("h2",{className:"text-[1.6rem] font-semibold tracking-tight",children:a})]})}function w(){let[e,s]=(0,n.useState)(d[0].id),a=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=new IntersectionObserver(e=>{let a=e.filter(e=>e.isIntersecting).sort((e,s)=>e.boundingClientRect.top-s.boundingClientRect.top);a[0]&&s(a[0].target.id)},{rootMargin:"-20% 0px -70% 0px",threshold:0});return d.forEach(s=>{let a=document.getElementById(s.id);a&&e.observe(a)}),()=>e.disconnect()},[]),(0,t.jsxs)("div",{className:"welcome",ref:a,children:[(0,t.jsx)("div",{className:"welcome-bg","aria-hidden":!0}),(0,t.jsx)("header",{className:"fixed inset-x-0 top-0 z-50",children:(0,t.jsx)("div",{className:"mx-auto max-w-6xl px-6",children:(0,t.jsxs)("div",{className:"w-load mt-4 glass flex items-center justify-between rounded-full py-2.5 pl-5 pr-3",style:{animationDelay:".05s"},children:[(0,t.jsxs)(o(),{href:"/",className:"flex items-center gap-2.5",children:[(0,t.jsx)(i._,{size:20,className:"text-foreground"}),(0,t.jsx)("span",{className:"font-semibold tracking-tight",children:"Beacon"}),(0,t.jsx)("span",{className:"w-mono w-eyebrow w-muted ml-1 hidden sm:inline",children:"docs"})]}),(0,t.jsxs)("nav",{className:"flex items-center gap-6 text-sm w-muted",children:[(0,t.jsx)(o(),{href:"/",className:"transition-colors hover:text-foreground",children:"Home"}),(0,t.jsx)("a",{href:"#install",className:"transition-colors hover:text-foreground",children:"Install"})]})]})})}),(0,t.jsx)("div",{className:"mx-auto max-w-6xl px-6 pb-24 pt-20",children:(0,t.jsxs)("div",{className:"lg:grid lg:grid-cols-[15rem_1fr] lg:gap-14",children:[(0,t.jsx)("aside",{className:"hidden lg:block",children:(0,t.jsxs)("nav",{className:"sticky top-28",children:[(0,t.jsx)("p",{className:"w-mono w-eyebrow w-muted mb-4",children:"On this page"}),(0,t.jsx)("ul",{className:"space-y-1.5 text-sm",children:d.map(s=>(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:`#${s.id}`,className:`block border-l-2 py-1 pl-3 transition-colors ${e===s.id?"w-signal border-[#ff7a45]":"w-muted border-transparent hover:text-foreground"}`,children:s.title})},s.id))})]})}),(0,t.jsxs)("main",{className:"min-w-0 max-w-2xl",children:[(0,t.jsxs)("section",{className:"w-load",children:[(0,t.jsx)(f,{id:"overview",eyebrow:"Overview",children:"What is Beacon"}),(0,t.jsxs)("p",{className:"w-muted leading-relaxed",children:["Beacon is the ",(0,t.jsx)("span",{className:"text-foreground",children:"visual planning surface for the coding agent in your terminal"}),". That session is the brain; Beacon is its eyes and hands. The agent proposes a feature plan — roadmap features, database schema, and endpoints — you review it on a canvas instead of a wall of text, give scoped feedback, and approve or discard with a click. The verdict flows straight back to your session."]}),(0,t.jsxs)("p",{className:"w-muted mt-4 leading-relaxed",children:["It runs entirely on your machine — ",(0,t.jsx)("span",{className:"text-foreground",children:"local, no account, no API key"}),". One shared server quietly serves every repo you open; each keeps its own data under ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"~/.beacon"}),"."]})]}),(0,t.jsxs)("section",{className:"mt-16",children:[(0,t.jsx)(f,{id:"install",eyebrow:"Get started",children:"Install"}),(0,t.jsxs)("p",{className:"w-muted mb-4 leading-relaxed",children:["One command. It installs ",(0,t.jsx)("span",{className:"text-foreground",children:"Bun"})," if you don't have it, then puts the"," ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"beacon"})," CLI on your PATH. Re-run it any time to update."]}),(0,t.jsx)(g,{copy:!0,children:l.EO}),(0,t.jsx)("p",{className:"w-muted mt-4 leading-relaxed",children:"Then, inside any repository:"}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(g,{copy:!0,children:"beacon"})})]}),(0,t.jsxs)("section",{className:"mt-16",children:[(0,t.jsx)(f,{id:"quickstart",eyebrow:"Get started",children:"Quickstart"}),(0,t.jsx)("ol",{className:"space-y-5",children:[(0,t.jsxs)(t.Fragment,{children:["Install with the command above, then run ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"beacon"})," inside a repo. It registers the repo, starts the shared server, and opens the panel in your browser."]}),(0,t.jsxs)(t.Fragment,{children:["In your Claude Code session, run ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"/beacon-init"}),". The agent reads the repo and draws its architecture, schema, and roadmap onto the canvas."]}),(0,t.jsxs)(t.Fragment,{children:["Ask the agent to plan a feature. It calls ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"beacon_propose_plan"})," and the plan renders live on ",(0,t.jsx)("span",{className:"text-foreground",children:"/plan"}),"."]}),(0,t.jsxs)(t.Fragment,{children:["Review it — annotate inline, edit the boards — then ",(0,t.jsx)("span",{className:"text-foreground",children:"Approve"}),", ",(0,t.jsx)("span",{className:"text-foreground",children:"Submit feedback"}),", or ",(0,t.jsx)("span",{className:"text-foreground",children:"Discard"}),". Your verdict returns to the session."]})].map((e,s)=>(0,t.jsxs)("li",{className:"relative pl-11",children:[(0,t.jsx)("span",{className:"w-mono glass absolute left-0 top-0 grid h-7 w-7 place-items-center rounded-md text-[0.72rem] font-semibold text-foreground",children:s+1}),(0,t.jsx)("p",{className:"w-muted leading-relaxed",children:e})]},s))})]}),(0,t.jsxs)("section",{className:"mt-16",children:[(0,t.jsx)(f,{id:"loop",eyebrow:"Concepts",children:"The planning loop"}),(0,t.jsx)("p",{className:"w-muted leading-relaxed",children:"The loop is the whole point. It closes in five steps:"}),(0,t.jsx)("ol",{className:"mt-4 space-y-3",children:[(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-foreground",children:"Propose."})," The agent calls ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"beacon_propose_plan"})," (or you present a plan in plan mode). The tool ",(0,t.jsx)("span",{className:"text-foreground",children:"blocks"})," — the session waits for your verdict."]}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-foreground",children:"Review."})," The plan renders on ",(0,t.jsx)("span",{className:"text-foreground",children:"/plan"}),": a native annotation panel on the left, the roadmap and database boards on the right. Select text to comment; edit the boards directly."]}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-foreground",children:"Decide."})," Approve, Discard, or Submit feedback. Feedback bundles your inline notes plus any board edits."]}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-foreground",children:"Return."})," The verdict flows back to the terminal. On feedback, the agent revises and re-proposes — the loop continues."]}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-foreground",children:"Record."})," On approval the schema and roadmap drafts persist, and when the work is done the agent calls ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"beacon_describe_feature"})," so the next session has accurate context."]})].map((e,s)=>(0,t.jsx)("li",{className:"glass w-hover rounded-lg p-4",children:(0,t.jsx)("p",{className:"w-muted text-[0.95rem] leading-relaxed",children:e})},s))})]}),(0,t.jsxs)("section",{className:"mt-16",children:[(0,t.jsx)(f,{id:"canvases",eyebrow:"Concepts",children:"The canvases"}),(0,t.jsx)("div",{className:"space-y-4",children:[{path:"/map",what:"The roadmap: feature cards, their sub-tasks, and dependency links — plus a separate architecture view of the real components. Files the agent edits attach themselves here."},{path:"/db",what:"The database design board: tables and columns, endpoints, and the endpoint→table links. Proposed schema lands as a distinct draft layer you can approve or discard."},{path:"/plan",what:"The split-screen review page: annotations on the left, the roadmap + database boards tabbed on the right, plus a history of every plan and its verdict."}].map(e=>(0,t.jsxs)("div",{className:"glass w-hover rounded-lg p-5",children:[(0,t.jsx)("p",{className:"w-mono text-foreground mb-1",children:e.path}),(0,t.jsx)("p",{className:"w-muted text-[0.95rem] leading-relaxed",children:e.what})]},e.path))})]}),(0,t.jsxs)("section",{className:"mt-16",children:[(0,t.jsx)(f,{id:"cli",eyebrow:"Reference",children:"CLI reference"}),(0,t.jsx)("div",{className:"space-y-3",children:c.map(e=>(0,t.jsxs)("div",{className:"glass rounded-lg p-4",children:[(0,t.jsxs)("code",{className:"w-mono text-foreground text-[0.9rem]",children:[(0,t.jsx)("span",{className:"w-signal select-none",children:"$ "}),e.cmd]}),(0,t.jsx)("p",{className:"w-muted mt-1.5 text-[0.92rem] leading-relaxed",children:e.what})]},e.cmd))})]}),(0,t.jsxs)("section",{className:"mt-16",children:[(0,t.jsx)(f,{id:"integration",eyebrow:"Reference",children:"Claude Code integration"}),(0,t.jsx)("h3",{className:"mb-1 mt-2 font-semibold text-foreground",children:"Skills — you type these"}),(0,t.jsx)("p",{className:"w-muted mb-4 text-[0.92rem]",children:"Slash commands that tell the agent to do something Beacon-shaped."}),(0,t.jsx)("div",{className:"space-y-3",children:h.map(e=>(0,t.jsxs)("div",{className:"glass rounded-lg p-4",children:[(0,t.jsx)("code",{className:"w-mono text-foreground text-[0.9rem]",children:e.name}),(0,t.jsxs)("p",{className:"w-muted mt-1.5 text-[0.92rem] leading-relaxed",children:[(0,t.jsx)("span",{className:"text-foreground",children:"When:"})," ",e.when," ",e.what]})]},e.name))}),(0,t.jsx)("h3",{className:"mb-1 mt-8 font-semibold text-foreground",children:"MCP tools — the agent calls these"}),(0,t.jsx)("p",{className:"w-muted mb-4 text-[0.92rem]",children:"You don't run these; the agent reaches for them when they fit. Knowing they exist makes its moves legible."}),(0,t.jsx)("div",{className:"space-y-3",children:m.map(e=>(0,t.jsxs)("div",{className:"glass rounded-lg p-4",children:[(0,t.jsx)("code",{className:"w-mono text-foreground text-[0.9rem]",children:e.name}),(0,t.jsx)("p",{className:"w-muted mt-1.5 text-[0.92rem] leading-relaxed",children:e.what})]},e.name))}),(0,t.jsx)("h3",{className:"mb-1 mt-8 font-semibold text-foreground",children:"Hooks — these run on their own"}),(0,t.jsx)("p",{className:"w-muted mb-4 text-[0.92rem]",children:"Wired into Claude Code globally; they react to what the session is already doing."}),(0,t.jsx)("div",{className:"space-y-3",children:p.map(e=>(0,t.jsxs)("div",{className:"glass rounded-lg p-4",children:[(0,t.jsx)("p",{className:"font-medium text-foreground text-[0.92rem]",children:e.trigger}),(0,t.jsx)("p",{className:"w-muted mt-1.5 text-[0.92rem] leading-relaxed",children:e.what})]},e.trigger))})]}),(0,t.jsxs)("section",{className:"mt-16",children:[(0,t.jsx)(f,{id:"config",eyebrow:"Reference",children:"Configuration"}),(0,t.jsx)("div",{className:"space-y-3",children:x.map(e=>(0,t.jsxs)("div",{className:"glass rounded-lg p-4",children:[(0,t.jsx)("code",{className:"w-mono text-foreground text-[0.9rem]",children:e.key}),(0,t.jsx)("p",{className:"w-muted mt-1.5 text-[0.92rem] leading-relaxed",children:e.what})]},e.key))})]}),(0,t.jsxs)("section",{className:"mt-16",children:[(0,t.jsx)(f,{id:"troubleshooting",eyebrow:"Help",children:"Troubleshooting"}),(0,t.jsx)("p",{className:"w-muted mb-4 leading-relaxed",children:"When something looks off, start here:"}),(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsx)(g,{copy:!0,children:"beacon doctor"})}),(0,t.jsx)("div",{className:"space-y-3",children:[{q:"The panel won't open",a:(0,t.jsxs)(t.Fragment,{children:["Make sure the server is up — run ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"beacon"})," again, or ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"beacon stop"})," then ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"beacon"})," to restart it."]})},{q:"The @beacon tools or skills are missing in Claude Code",a:(0,t.jsxs)(t.Fragment,{children:["Run ",(0,t.jsx)("span",{className:"w-mono text-foreground",children:"beacon setup"})," in the repo, then restart your Claude Code session so it re-reads the MCP registration."]})},{q:"How do I update?",a:(0,t.jsx)(t.Fragment,{children:"Re-run the install command — it fetches the latest and relinks. Nothing else to do."})}].map(e=>(0,t.jsxs)("div",{className:"glass rounded-lg p-4",children:[(0,t.jsx)("p",{className:"font-medium text-foreground text-[0.92rem]",children:e.q}),(0,t.jsx)("p",{className:"w-muted mt-1.5 text-[0.92rem] leading-relaxed",children:e.a})]},e.q))})]})]})]})}),(0,t.jsx)("footer",{className:"px-6 pb-12 pt-8",children:(0,t.jsxs)("div",{className:"mx-auto max-w-6xl",children:[(0,t.jsx)("div",{className:"w-accent-line mb-8 h-px w-full opacity-60"}),(0,t.jsxs)("div",{className:"flex flex-col items-center justify-between gap-5 md:flex-row",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(i._,{size:26,className:"text-foreground"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-semibold leading-tight",children:"Beacon"}),(0,t.jsx)("p",{className:"w-mono w-muted text-[0.72rem]",children:"the visual planning surface for your terminal"})]})]}),(0,t.jsxs)("nav",{className:"flex items-center gap-6 text-sm w-muted",children:[(0,t.jsx)(o(),{href:"/",className:"transition-colors hover:text-foreground",children:"Home"}),(0,t.jsx)("a",{href:"#overview",className:"transition-colors hover:text-foreground",children:"Docs"})]}),(0,t.jsxs)("p",{className:"w-mono w-muted text-[0.72rem]",children:["Created by"," ",(0,t.jsxs)("a",{href:"https://www.instagram.com/wenzorithelly/",target:"_blank",rel:"noreferrer",className:"w-signal inline-flex items-center gap-1 underline decoration-dotted underline-offset-2 transition-opacity hover:opacity-80",children:[(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("rect",{x:"2",y:"2",width:"20",height:"20",rx:"5",ry:"5"}),(0,t.jsx)("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),(0,t.jsx)("line",{x1:"17.5",y1:"6.5",x2:"17.51",y2:"6.5"})]}),"Wenzo"]}),(0,t.jsx)("span",{className:"mx-2 opacity-40",children:"\xb7"}),"\xa9 2026 Beacon"]})]})]})})]})}},82780:(e,s,a)=>{Promise.resolve().then(a.bind(a,73954))},93340:()=>{}},e=>{e.O(0,[1477,8500,8441,3794,7358],()=>e(e.s=82780)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[728],{29619:(e,t,r)=>{Promise.resolve().then(r.bind(r,71265)),Promise.resolve().then(r.t.bind(r,98500,23))},30907:(e,t,r)=>{"use strict";r.d(t,{z:()=>i});let i=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()},71265:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var i=r(12115),s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},o=r(30907);let n=(0,i.createContext)({}),l=(0,i.forwardRef)(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:l,className:a="",children:h,iconNode:d,...u},c)=>{let{size:k=24,strokeWidth:m=2,absoluteStrokeWidth:w=!1,color:f="currentColor",className:b=""}=(0,i.useContext)(n)??{},N=l??w?24*Number(r??m)/Number(t??k):r??m;return(0,i.createElement)("svg",{ref:c,...s,width:t??k??s.width,height:t??k??s.height,stroke:e??f,strokeWidth:N,className:(0,o.z)("lucide",b,a),...!h&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(u)&&{"aria-hidden":"true"},...u},[...d.map(([e,t])=>(0,i.createElement)(e,t)),...Array.isArray(h)?h:[h]])})}},e=>{e.O(0,[8500,8441,3794,7358],()=>e(e.s=29619)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{434:(e,t,s)=>{"use strict";s.d(t,{PlanBar:()=>u});var n=s(95155),r=s(98500),a=s.n(r),i=s(73321),l=s(86272),o=s(32133),c=s(65738),d=s(48484);function u(){let{status:e,discard:t}=(0,d.j)(),s=(0,i.usePathname)();return e.pending&&"/plan"!==s?(0,n.jsx)("div",{className:"pointer-events-none fixed inset-x-0 top-14 z-40 flex justify-center px-2",children:(0,n.jsxs)("div",{className:"pointer-events-auto flex max-w-3xl items-center gap-2 rounded-xl border border-emerald-500/30 bg-card/85 px-3 py-1.5 shadow-lg backdrop-blur supports-[backdrop-filter]:bg-card/70",children:[(0,n.jsx)(l.A,{className:"size-3.5 shrink-0 text-emerald-300"}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsxs)("div",{className:"truncate text-[12px] leading-tight text-foreground",children:[(0,n.jsx)("span",{className:"text-emerald-300/80",children:"Plan ready \xb7 "}),e.description||"(no description)"]}),(0,n.jsxs)("div",{className:"text-[10px] leading-tight text-muted-foreground",children:[e.features," feature(s) \xb7 ",e.tables," table(s) \xb7 ",e.endpoints," ","endpoint(s)"]})]}),(0,n.jsxs)(a(),{href:"/plan",className:"flex shrink-0 items-center gap-1 rounded-md border border-emerald-500/40 bg-emerald-500/15 px-2 py-1 text-[11px] font-semibold text-emerald-300 transition-colors hover:bg-emerald-500/25",title:"Open Plannotator + canvases side by side",children:[(0,n.jsx)(o.A,{className:"size-3"})," Open plan"]}),(0,n.jsxs)("button",{onClick:t,className:"flex shrink-0 items-center gap-1 rounded-md px-2 py-1 text-[11px] font-medium text-muted-foreground transition-colors hover:bg-red-500/15 hover:text-red-300",title:"Discard the plan",children:[(0,n.jsx)(c.A,{className:"size-3"})," Discard"]})]})}):null}},1494:(e,t,s)=>{"use strict";s.d(t,{NotesDrawer:()=>T});var n=s(95155),r=s(12115),a=s(82879),i=s(2125),l=s(9005),o=s(62700),c=s(27076),d=s(65738),u=s(82099),x=s(13439),h=s(95112),p=s(67357),f=s(50109),m=s(38332),g=s(8143),b=s(58309),v=s(5497),j=s(11436),N=s(82150),w=s(83694),y=s(35580);let k=w.z.extend({renderMarkdown:(e,t)=>`<u>${t.renderChildren(e)}</u>`}),C=[j.W.configure({underline:!1}),k,N._0,N.L2.configure({nested:!0})],z=new y.db({extensions:C});var A=s(91337);function P({value:e,onChange:t}){let s=(0,x.hG)({extensions:C,content:e?function e(t){if("text"===t.type&&(t.text??"").includes("<u>"))return{type:"__frag",content:function(e){let t,s=e.text??"",n=e.marks??[],r=/<u>([\s\S]*?)<\/u>/g,a=[],i=0;for(;null!==(t=r.exec(s));)t.index>i&&a.push({...e,text:s.slice(i,t.index)}),a.push({type:"text",text:t[1],marks:[...n,{type:"underline"}]}),i=r.lastIndex;return i<s.length&&a.push({...e,text:s.slice(i)}),a.filter(e=>(e.text??"").length>0)}(t)};if(Array.isArray(t.content)){let s=t.content.flatMap(t=>{let s=e(t);return"__frag"===s.type?s.content:[s]});return{...t,content:s}}return t}(z.parse(e)):void 0,immediatelyRender:!1,editorProps:{attributes:{class:"note-prose focus:outline-none"}},onUpdate:({editor:e})=>{var s;return t((s=e.getJSON(),z.serialize(s)))}});return s?(0,n.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,n.jsx)(_,{editor:s}),(0,n.jsx)(x.$Z,{editor:s,className:"min-h-0 flex-1 overflow-y-auto px-1 py-2 text-[14px] leading-relaxed"})]}):null}function _({editor:e}){let[,t]=(0,r.useReducer)(e=>e+1,0);(0,r.useEffect)(()=>{let s=()=>t();return e.on("transaction",s),()=>{e.off("transaction",s)}},[e]);let s=()=>e.chain().focus();return(0,n.jsxs)("div",{className:"flex items-center gap-0.5 border-b border-white/10 pb-2",children:[(0,n.jsx)(S,{label:"Bold",active:e.isActive("bold"),onClick:()=>s().toggleBold().run(),children:(0,n.jsx)(h.A,{className:"size-4"})}),(0,n.jsx)(S,{label:"Italic",active:e.isActive("italic"),onClick:()=>s().toggleItalic().run(),children:(0,n.jsx)(p.A,{className:"size-4"})}),(0,n.jsx)(S,{label:"Underline",active:e.isActive("underline"),onClick:()=>s().toggleUnderline().run(),children:(0,n.jsx)(f.A,{className:"size-4"})}),(0,n.jsx)(S,{label:"Strikethrough",active:e.isActive("strike"),onClick:()=>s().toggleStrike().run(),children:(0,n.jsx)(m.A,{className:"size-4"})}),(0,n.jsx)("span",{"aria-hidden":!0,className:"mx-1 h-5 w-px bg-white/10"}),(0,n.jsx)(S,{label:"Checklist",active:e.isActive("taskList"),onClick:()=>s().toggleTaskList().run(),children:(0,n.jsx)(g.A,{className:"size-4"})}),(0,n.jsx)(S,{label:"Bullet list",active:e.isActive("bulletList"),onClick:()=>s().toggleBulletList().run(),children:(0,n.jsx)(b.A,{className:"size-4"})}),(0,n.jsx)(S,{label:"Numbered list",active:e.isActive("orderedList"),onClick:()=>s().toggleOrderedList().run(),children:(0,n.jsx)(v.A,{className:"size-4"})})]})}function S({label:e,active:t,onClick:s,children:r}){return(0,n.jsx)("button",{type:"button","aria-label":e,"aria-pressed":t,title:e,onMouseDown:e=>e.preventDefault(),onClick:s,className:(0,A.cn)("rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground",t&&"bg-white/[0.12] text-foreground"),children:r})}var E=s(81984);function O(e){return[...e].sort((e,t)=>e.pinned!==t.pinned?Number(t.pinned)-Number(e.pinned):t.updatedAt.localeCompare(e.updatedAt))}function T(){let{open:e,close:t}=(0,E.b)(),[s,x]=(0,r.useState)([]),[h,p]=(0,r.useState)(null),f=(0,r.useRef)({}),m=(0,r.useRef)({}),g=(0,r.useCallback)(e=>{clearTimeout(f.current[e]);let t=m.current[e];t&&(delete m.current[e],fetch(`/api/notes/${e}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)}).catch(()=>{}))},[]),b=(0,r.useCallback)((e,t)=>{m.current[e]={...m.current[e],...t},clearTimeout(f.current[e]),f.current[e]=setTimeout(()=>g(e),500)},[g]),v=(0,r.useCallback)(async()=>{try{let e=await fetch("/api/notes",{cache:"no-store"});if(!e.ok)return;let t=await e.json();x(O(t)),p(e=>e??t[0]?.id??null)}catch{}},[]);(0,r.useEffect)(()=>{e?v():Object.keys(m.current).forEach(g)},[e,v,g]);let j=(0,r.useCallback)(async()=>{let e=await fetch("/api/notes",{method:"POST"}).catch(()=>null);if(!e?.ok)return;let t=await e.json();x(e=>O([t,...e])),p(t.id)},[]),N=(0,r.useCallback)(async e=>{clearTimeout(f.current[e]),delete m.current[e],x(t=>{let s=t.filter(t=>t.id!==e);return p(t=>t===e?s[0]?.id??null:t),s}),await fetch(`/api/notes/${e}`,{method:"DELETE"}).catch(()=>{})},[]),w=(0,r.useCallback)((e,t)=>{x(s=>O(s.map(s=>s.id===e?{...s,...t,updatedAt:new Date().toISOString()}:s))),b(e,t)},[b]),y=(0,r.useCallback)(e=>w(e.id,{pinned:!e.pinned}),[w]),k=s.find(e=>e.id===h)??null;return(0,n.jsx)("div",{"aria-hidden":!e,className:(0,A.cn)("fixed inset-y-0 right-0 z-40 flex transition-transform duration-300 ease-out",e?"translate-x-0":"pointer-events-none translate-x-full"),children:(0,n.jsxs)(u.b,{className:"flex h-full w-[420px] flex-col rounded-l-2xl border-l border-white/10",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 border-b border-white/10 px-3 py-2.5",children:[(0,n.jsx)(a.A,{className:"size-4 text-[var(--accent-2,#ff7a45)]"}),(0,n.jsx)("span",{className:"text-sm font-semibold tracking-tight",children:"Notes"}),(0,n.jsx)("span",{className:"ml-auto"}),(0,n.jsx)("button",{type:"button",onClick:j,"aria-label":"New note",title:"New note",className:"rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground",children:(0,n.jsx)(i.A,{className:"size-4"})}),(0,n.jsx)("button",{type:"button",onClick:t,"aria-label":"Close notes",title:"Close",className:"rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground",children:(0,n.jsx)(l.A,{className:"size-4"})})]}),(0,n.jsx)("div",{className:"max-h-44 shrink-0 overflow-y-auto border-b border-white/10 p-1.5",children:0===s.length?(0,n.jsxs)("p",{className:"px-2 py-3 text-[13px] text-muted-foreground",children:["No notes yet. Hit ",(0,n.jsx)("span",{className:"text-foreground",children:"+"})," to start one."]}):s.map(e=>(0,n.jsxs)("div",{className:(0,A.cn)("group flex items-center gap-1 rounded-md px-2 py-1.5 text-[13px]",e.id===h?"bg-white/[0.09] text-foreground":"text-muted-foreground hover:bg-white/[0.04]"),children:[(0,n.jsxs)("button",{type:"button",onClick:()=>p(e.id),className:"min-w-0 flex-1 truncate text-left",children:[e.pinned&&(0,n.jsx)(o.A,{className:"mr-1 inline size-3 -translate-y-px"}),e.title||"Untitled"]}),(0,n.jsx)("button",{type:"button",onClick:()=>y(e),"aria-label":e.pinned?"Unpin":"Pin",title:e.pinned?"Unpin":"Pin",className:"rounded p-1 opacity-0 transition hover:bg-white/[0.08] hover:text-foreground group-hover:opacity-100",children:e.pinned?(0,n.jsx)(c.A,{className:"size-3.5"}):(0,n.jsx)(o.A,{className:"size-3.5"})}),(0,n.jsx)("button",{type:"button",onClick:()=>N(e.id),"aria-label":"Delete note",title:"Delete",className:"rounded p-1 opacity-0 transition hover:bg-white/[0.08] hover:text-red-300 group-hover:opacity-100",children:(0,n.jsx)(d.A,{className:"size-3.5"})})]},e.id))}),k?(0,n.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-2 p-3",children:[(0,n.jsx)("input",{value:k.title,onChange:e=>w(k.id,{title:e.target.value}),placeholder:"Untitled",className:"w-full bg-transparent text-base font-semibold tracking-tight text-foreground placeholder:text-muted-foreground/60 focus:outline-none"}),(0,n.jsx)(P,{value:k.body,onChange:e=>w(k.id,{body:e})},k.id)]}):(0,n.jsxs)("div",{className:"flex flex-1 items-center justify-center p-6 text-center text-[13px] text-muted-foreground",children:["Select a note, or create one. Then ",(0,n.jsx)("span",{className:"px-1 text-foreground",children:"@"}),"-mention it in your terminal to turn it into features."]})]})})}},5893:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,66872,23)),Promise.resolve().then(s.bind(s,52174)),Promise.resolve().then(s.bind(s,30165)),Promise.resolve().then(s.bind(s,81984)),Promise.resolve().then(s.bind(s,1494)),Promise.resolve().then(s.bind(s,434)),Promise.resolve().then(s.bind(s,48484)),Promise.resolve().then(s.bind(s,96848)),Promise.resolve().then(s.bind(s,33082)),Promise.resolve().then(s.t.bind(s,35353,23)),Promise.resolve().then(s.t.bind(s,63494,23))},26518:(e,t,s)=>{"use strict";s.d(t,{bq:()=>y,eb:()=>C,gC:()=>k,l6:()=>N,yv:()=>w});var n=s(95155);s(12115);var r=s(40595),a=s(41294),i=s(75681),l=s(17314),o=s(37265),c=s(23107),d=s(70826),u=s(67564),x=s(1938),h=s(15433),p=s(5919),f=s(45450),m=s(88988),g=s(91337),b=s(12363),v=s(64577),j=s(94088);let N=r.H;function w({className:e,...t}){return(0,n.jsx)(a.y,{"data-slot":"select-value",className:(0,g.cn)("flex flex-1 text-left",e),...t})}function y({className:e,size:t="default",children:s,...r}){return(0,n.jsxs)(i.b,{"data-slot":"select-trigger","data-size":t,className:(0,g.cn)("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[s,(0,n.jsx)(l.w,{render:(0,n.jsx)(b.A,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function k({className:e,children:t,side:s="bottom",sideOffset:r=4,align:a="center",alignOffset:i=0,alignItemWithTrigger:l=!0,...x}){return(0,n.jsx)(o.V,{children:(0,n.jsx)(c.l,{side:s,sideOffset:r,align:a,alignOffset:i,alignItemWithTrigger:l,className:"isolate z-50",children:(0,n.jsxs)(d.t,{"data-slot":"select-content","data-align-trigger":l,className:(0,g.cn)("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...x,children:[(0,n.jsx)(z,{}),(0,n.jsx)(u.B,{children:t}),(0,n.jsx)(A,{})]})})})}function C({className:e,children:t,...s}){return(0,n.jsxs)(x.e,{"data-slot":"select-item",className:(0,g.cn)("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...s,children:[(0,n.jsx)(h.h,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:t}),(0,n.jsx)(p.h,{render:(0,n.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:(0,n.jsx)(v.A,{className:"pointer-events-none"})})]})}function z({className:e,...t}){return(0,n.jsx)(f.w,{"data-slot":"select-scroll-up-button",className:(0,g.cn)("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,n.jsx)(j.A,{})})}function A({className:e,...t}){return(0,n.jsx)(m.d,{"data-slot":"select-scroll-down-button",className:(0,g.cn)("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,n.jsx)(b.A,{})})}},30165:(e,t,s)=>{"use strict";s.d(t,{LiveRefresh:()=>a});var n=s(12115),r=s(73321);function a(){let e=(0,r.useRouter)();return(0,n.useEffect)(()=>{let t=!1,s=new EventSource("/api/stream");return s.onmessage=()=>{if(!t){t=!0;return}e.refresh()},()=>s.close()},[e]),null}},33082:(e,t,s)=>{"use strict";s.d(t,{UpdateBanner:()=>x});var n=s(95155),r=s(12115),a=s(56363),i=s(9005),l=s(64577),o=s(99314),c=s(39593);function d(e){if("string"!=typeof e)return null;let t=e.trim().replace(/^v/i,"").match(/^(\d+)(?:\.(\d+))?(?:\.(\d+))?/);return t?[Number(t[1]),Number(t[2]??0),Number(t[3]??0)]:null}let u="beacon:update-dismissed";function x({currentVersion:e}){let[t,s]=(0,r.useState)(null),[h,p]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{let t=!1;return(async()=>{try{let n=await fetch(c.S2,{headers:{Accept:"application/vnd.github+json"}});if(!n.ok)return;let r=await n.json(),a="string"==typeof r?.tag_name?r.tag_name:"";if(t||!function(e,t){let s=d(e),n=d(t);if(!s||!n)return!1;for(let e=0;e<3;e++){if(s[e]>n[e])return!0;if(s[e]<n[e])break}return!1}(a,e)||localStorage.getItem(u)===a)return;s(a)}catch{}})(),()=>{t=!0}},[e]),!t)return null;let f=async()=>{try{await navigator.clipboard?.writeText(c.EO),p(!0),setTimeout(()=>p(!1),1600)}catch{}};return(0,n.jsx)("div",{className:"pointer-events-none fixed bottom-4 right-4 z-50 flex justify-end",children:(0,n.jsx)("div",{className:"glass pointer-events-auto w-[320px] rounded-xl p-3.5 shadow-xl",children:(0,n.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,n.jsx)(a.A,{className:"mt-0.5 size-4 shrink-0 text-[#ff7a45]"}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-[13px] font-semibold tracking-tight text-foreground",children:"New version available"}),(0,n.jsx)("button",{type:"button",onClick:()=>{try{localStorage.setItem(u,t)}catch{}s(null)},"aria-label":"Dismiss",className:"shrink-0 rounded-md p-0.5 text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground",children:(0,n.jsx)(i.A,{className:"size-3.5"})})]}),(0,n.jsxs)("p",{className:"mt-0.5 text-[11px] text-muted-foreground",children:[e," →"," ",(0,n.jsx)("span",{className:"text-foreground",children:t.replace(/^v/i,"")})," \xb7 update Beacon"]}),(0,n.jsxs)("button",{type:"button",onClick:f,title:"Copy the update command",className:"mt-2.5 flex w-full items-center justify-between gap-2 rounded-lg border border-white/10 bg-black/30 px-2.5 py-1.5 text-left font-mono text-[11px] text-muted-foreground transition-colors hover:border-white/20 hover:text-foreground",children:[(0,n.jsx)("span",{className:"truncate",children:c.EO}),h?(0,n.jsx)(l.A,{className:"size-3.5 shrink-0 text-[#ff7a45]"}):(0,n.jsx)(o.A,{className:"size-3.5 shrink-0"})]})]})]})})})}},39593:(e,t,s)=>{"use strict";s.d(t,{EO:()=>i,S2:()=>r,W6:()=>a});var n=s(41463);let r="https://api.github.com/repos/wenzorithelly/beacon/releases/latest",a=(n.env.NEXT_PUBLIC_BEACON_SITE_URL??"https://www.trybeacon.sh").replace(/\/$/,""),i=`curl -fsSL ${a}/install.sh | sh`},48484:(e,t,s)=>{"use strict";s.d(t,{PlanProvider:()=>c,j:()=>d});var n=s(95155),r=s(12115),a=s(73321),i=s(99979);let l={pending:!1,proposedAt:0,tables:0,endpoints:0,features:0},o=(0,r.createContext)(null);function c({children:e}){let t=(0,a.useRouter)(),[s,d]=(0,r.useState)(l),u=(0,r.useCallback)(async()=>{try{let e=await fetch("/api/plan",{method:"GET",cache:"no-store",headers:(0,i.dh)((0,i.X0)())});if(!e.ok)return;let t=await e.json();d(t)}catch{}},[]);(0,r.useEffect)(()=>{u();let e=setInterval(()=>void u(),4e3);return()=>clearInterval(e)},[u]);let x=(0,r.useCallback)(async()=>{await fetch("/api/plan",{method:"DELETE",headers:(0,i.dh)((0,i.X0)())}).catch(()=>{}),d(l),t.refresh()},[t]),h=(0,r.useCallback)(async()=>{await fetch("/api/plan/approve",{method:"POST",headers:(0,i.dh)((0,i.X0)())}).catch(()=>{}),d(l),t.refresh()},[t]);return(0,n.jsx)(o.Provider,{value:{status:s,discard:x,approvePlan:h,refresh:u},children:e})}function d(){let e=(0,r.useContext)(o);if(!e)throw Error("usePlan must be used inside PlanProvider");return e}},52174:(e,t,s)=>{"use strict";s.d(t,{MainRegion:()=>r});var n=s(95155);function r({children:e}){return(0,n.jsx)("main",{className:"flex flex-1 flex-col",children:e})}},52965:(e,t,s)=>{"use strict";s.d(t,{_:()=>r});var n=s(95155);function r({size:e=18,className:t}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"11 1.5 74 74",fill:"none",className:t,"aria-hidden":"true",children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"beacon-mark-beam",x1:"0",y1:"1",x2:"0",y2:"0",children:[(0,n.jsx)("stop",{offset:"0",stopColor:"#ffb27a",stopOpacity:"0.9"}),(0,n.jsx)("stop",{offset:"0.55",stopColor:"#ff7a45",stopOpacity:"0.3"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#ff7a45",stopOpacity:"0"})]})}),(0,n.jsx)("path",{d:"M48 30 L40 4 L56 4 Z",fill:"url(#beacon-mark-beam)"}),(0,n.jsx)("path",{d:"M48 33 L72.5 73 L23.5 73 Z",fill:"currentColor",stroke:"currentColor",strokeWidth:2.4,strokeLinejoin:"round"}),(0,n.jsx)("circle",{cx:"48",cy:"31",r:"5.2",fill:"var(--accent-2, #ff7a45)",style:{filter:"drop-shadow(0 0 4px var(--accent-2, #ff7a45))"}}),(0,n.jsx)("circle",{cx:"48",cy:"31",r:"2",fill:"#ffd9c2"})]})}},66872:()=>{},81984:(e,t,s)=>{"use strict";s.d(t,{NotesProvider:()=>i,b:()=>l});var n=s(95155),r=s(12115);let a=(0,r.createContext)(null);function i({children:e}){let[t,s]=(0,r.useState)(!1),l=(0,r.useCallback)(()=>s(!0),[]),o=(0,r.useCallback)(()=>s(!1),[]),c=(0,r.useCallback)(()=>s(e=>!e),[]),d=(0,r.useMemo)(()=>({open:t,openDrawer:l,close:o,toggle:c}),[t,l,o,c]);return(0,n.jsx)(a.Provider,{value:d,children:e})}function l(){let e=(0,r.useContext)(a);if(!e)throw Error("useNotes must be used inside NotesProvider");return e}},82099:(e,t,s)=>{"use strict";s.d(t,{b:()=>a});var n=s(95155);s(12115);var r=s(91337);function a({className:e,children:t,...s}){return(0,n.jsxs)("div",{className:(0,r.cn)("glass relative isolate overflow-hidden",e),...s,children:[(0,n.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 rounded-[inherit]",style:{background:"radial-gradient(90% 60% at 0% 0%, oklch(1 0 0 / 0.04), transparent 42%)"}}),(0,n.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 rounded-[inherit] opacity-[0.035] mix-blend-overlay",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E\")",backgroundSize:"120px 120px"}}),t]})}},91337:(e,t,s)=>{"use strict";s.d(t,{cn:()=>a});var n=s(29722),r=s(622);function a(...e){return(0,r.QP)((0,n.$)(e))}},96848:(e,t,s)=>{"use strict";s.d(t,{TopNav:()=>m});var n=s(95155),r=s(98500),a=s.n(r),i=s(73321),l=s(82879),o=s(52965),c=s(12115),d=s(39143),u=s(26518),x=s(91337);function h({fallback:e}){let t=(0,i.useRouter)(),[s,r]=(0,c.useState)([]),[a,l]=(0,c.useState)(null);if((0,c.useEffect)(()=>{let e=!0,t=()=>fetch("/api/workspace").then(e=>e.ok?e.json():null).then(t=>{e&&t&&(r(t.workspaces??[]),l(t.active??null))}).catch(()=>{});t();let s=setInterval(t,5e3);return()=>{e=!1,clearInterval(s)}},[]),0===s.length)return e?(0,n.jsxs)("span",{className:"font-mono text-xs text-muted-foreground",children:["\xb7 ",e]}):null;async function o(e){l(e),document.cookie=`beacon_ws=${e}; Path=/; Max-Age=31536000; SameSite=Lax`,await Promise.race([fetch("/api/workspace",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:e}),signal:AbortSignal.timeout(8e3)}).catch(()=>{}),new Promise(e=>setTimeout(e,2500))]),t.refresh()}let p=s.find(e=>e.id===a);return(0,n.jsxs)(u.l6,{value:a??"",onValueChange:e=>e&&o(e),children:[(0,n.jsxs)(u.bq,{className:"h-7 gap-1.5 rounded-lg border-white/12 bg-white/[0.04] px-2 text-xs font-medium transition-colors hover:bg-white/[0.07]",children:[(0,n.jsx)(d.A,{className:"size-3.5 shrink-0 text-muted-foreground"}),(0,n.jsx)(u.yv,{children:()=>p?.name??"Project"})]}),(0,n.jsxs)(u.gC,{align:"start",alignItemWithTrigger:!1,sideOffset:6,className:"min-w-[250px] border border-white/10 bg-popover/95 p-1.5 backdrop-blur-xl",children:[(0,n.jsx)("p",{className:"px-2 pt-1 pb-1.5 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground/70",children:"Workspace"}),s.map(e=>{var t,s;let r,i=e.id===a;return(0,n.jsx)(u.eb,{value:e.id,className:(0,x.cn)("gap-2.5 rounded-lg py-1.5 pr-8 pl-1.5 transition-colors",i&&"bg-white/[0.05]"),children:(0,n.jsxs)("span",{className:"flex items-center gap-2.5",children:[(0,n.jsx)("span",{className:(0,x.cn)("flex size-7 shrink-0 items-center justify-center rounded-md border",i?"border-sky-400/30 bg-sky-400/10 text-sky-300":"border-white/10 bg-white/[0.03] text-muted-foreground"),children:(0,n.jsx)(d.A,{className:"size-3.5"})}),(0,n.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,n.jsx)("span",{className:"truncate text-[13px] font-medium leading-tight text-foreground",children:e.name}),(0,n.jsx)("span",{className:"truncate font-mono text-[10px] leading-tight text-muted-foreground",children:(t=e.path,s=e.name,(r=t.replace(/^\/(Users|home)\/[^/]+/,"~").split("/").filter(Boolean))[r.length-1]===s&&r.pop(),(r.length>3?[r[0],"…",r[r.length-1]]:r).join("/")||"~")})]})]})},e.id)})]})]})}var p=s(81984);let f=[{href:"/plan",label:"Plans"},{href:"/map",label:"Map"},{href:"/settings",label:"Settings"}];function m({repo:e}){let t=(0,i.usePathname)(),{toggle:s,open:r}=(0,p.b)();return(0,n.jsx)("header",{className:"pointer-events-none fixed left-3 top-3 z-30",children:(0,n.jsxs)("div",{className:"glass pointer-events-auto flex h-10 items-center gap-1 rounded-full pl-3 pr-1.5",children:[(0,n.jsxs)(a(),{href:"/",className:"mr-1 flex items-center gap-2 text-sm font-semibold tracking-tight",children:[(0,n.jsx)(o._,{size:18,className:"text-foreground"}),"Beacon"]}),(0,n.jsx)("span",{"aria-hidden":!0,className:"mx-1 h-5 w-px bg-white/10"}),(0,n.jsx)(h,{fallback:e}),(0,n.jsx)("span",{"aria-hidden":!0,className:"mx-1 h-5 w-px bg-white/10"}),(0,n.jsx)("nav",{className:"flex items-center gap-0.5 text-sm",children:f.map(e=>{let s=t===e.href||t.startsWith(e.href+"/");return(0,n.jsx)(a(),{href:e.href,className:(0,x.cn)("rounded-full px-3 py-1 text-[13px] tracking-tight transition-colors",s?"bg-white/[0.09] text-foreground shadow-[inset_0_1px_0_rgba(255,255,255,0.06)]":"text-muted-foreground hover:bg-white/[0.04] hover:text-foreground"),children:e.label},e.href)})}),(0,n.jsx)("span",{"aria-hidden":!0,className:"mx-1 h-5 w-px bg-white/10"}),(0,n.jsx)("button",{type:"button",onClick:s,"aria-pressed":r,"aria-label":"Notes",title:"Notes",className:(0,x.cn)("flex items-center justify-center rounded-full p-1.5 transition-colors",r?"bg-white/[0.09] text-foreground shadow-[inset_0_1px_0_rgba(255,255,255,0.06)]":"text-muted-foreground hover:bg-white/[0.04] hover:text-foreground"),children:(0,n.jsx)(l.A,{className:"size-4"})})]})})}},99979:(e,t,s)=>{"use strict";function n(){return new URLSearchParams(window.location.search).get("ws")}function r(e){return e?{"x-beacon-workspace":e}:{}}function a(e){let t=new URLSearchParams,s=n();for(let[n,r]of(s&&t.set("ws",s),Object.entries(e??{})))t.set(n,r);let r=t.toString();return r?`/plan?${r}`:"/plan"}s.d(t,{X0:()=>n,dh:()=>r,rc:()=>a})}},e=>{e.O(0,[7513,7352,5004,277,8500,4294,7886,8441,3794,7358],()=>e(e.s=5893)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6624],{8143:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(30772).A)("list-checks",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]])},9383:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(30772).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},10396:(e,t,n)=>{"use strict";n.d(t,{PlanWorkspace:()=>Y});var s=n(95155),r=n(12115),a=n(64577),o=n(25640),l=n(34306),i=n(92571),d=n(65408),c=n(30772);let u=(0,c.A)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);var m=n(8143);let x=(0,c.A)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);var p=n(82879),h=n(17356),f=n(9383),g=n(9005),b=n(65738),v=n(8962),j=n(73321),y=n(48484),w=n(99979),k=n(32133),N=n(38332),C=n(91337),A=n(60874);function S({markdown:e,round:t,onApi:n,hideSubmit:o=!1,getExtraSubmitPayload:l}){let[i,d]=(0,r.useState)([]),[c,u]=(0,r.useState)(""),[m,x]=(0,r.useState)(!1),[p,h]=(0,r.useState)(null),[b,v]=(0,r.useState)(null),[j,y]=(0,r.useState)(null),[A,E]=(0,r.useState)(!1),[P,M]=(0,r.useState)(!1),O=(0,r.useRef)(null),D=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=!0;return(async()=>{try{let t=await fetch("/api/plan/annotations",{cache:"no-store",headers:(0,w.dh)((0,w.X0)())});if(!t.ok)return;let n=await t.json();if(!e)return;d(n.annotations??[]),u(n.globalComment??""),M(!!n.submitted)}catch{}})(),()=>{e=!1}},[e,t]),(0,r.useEffect)(()=>{if(P)return;let e=setTimeout(()=>{fetch("/api/plan/annotations",{method:"PUT",headers:{"content-type":"application/json",...(0,w.dh)((0,w.X0)())},body:JSON.stringify({annotations:i,globalComment:c,round:t})}).catch(()=>{})},400);return()=>clearTimeout(e)},[i,c,P,t]);let T=(0,r.useCallback)(()=>{let e=window.getSelection();if(!e||e.isCollapsed)return void h(null);let t=e.toString().trim();if(!t)return void h(null);if(!O.current?.contains(e.anchorNode))return;let n=e.getRangeAt(0).getBoundingClientRect();h({x:n.right+window.scrollX,y:n.top+window.scrollY,excerpt:t})},[]);(0,r.useEffect)(()=>{let e=()=>setTimeout(T,0);return document.addEventListener("mouseup",e),document.addEventListener("selectionchange",e),()=>{document.removeEventListener("mouseup",e),document.removeEventListener("selectionchange",e)}},[T]);let L=(0,r.useCallback)((e,t="comment",n="")=>{let s=`a-${Date.now()}-${Math.floor(1e6*Math.random())}`;d(r=>[...r,{id:s,excerpt:e,comment:n,kind:t}]),"comment"===t&&y(s),h(null),window.getSelection()?.removeAllRanges()},[]);(0,r.useEffect)(()=>{let e=e=>{let t=window.getSelection();if(!t||t.isCollapsed)return;let n=t.toString().trim();if(!n||!O.current?.contains(t.anchorNode))return;let s=document.activeElement;if(s&&/^(TEXTAREA|INPUT)$/.test(s.tagName)||!(1===e.key.length&&!e.metaKey&&!e.ctrlKey&&!e.altKey))return;e.preventDefault();let r=t.getRangeAt(0).getBoundingClientRect();v({x:r.right+window.scrollX,y:r.top+window.scrollY,excerpt:n,seed:e.key}),h(null),window.getSelection()?.removeAllRanges()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]),(0,r.useEffect)(()=>{if(!m)return;let e=e=>{let t=e.target;!t||D.current?.contains(t)||t.closest("[data-overall-toggle]")||x(!1)},t=e=>{"Escape"===e.key&&x(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[m]);let I=(e,t)=>d(n=>n.map(n=>n.id===e?{...n,comment:t}:n)),$=e=>d(t=>t.filter(t=>t.id!==e)),F=()=>{d([]),u(""),x(!1),fetch("/api/plan/annotations",{method:"DELETE",headers:(0,w.dh)((0,w.X0)())}).catch(()=>{})},U=async()=>{if(!A){E(!0);try{let e=l?.()??{},n=await fetch("/api/plan/annotations",{method:"POST",headers:{"content-type":"application/json",...(0,w.dh)((0,w.X0)())},body:JSON.stringify({annotations:i,globalComment:c,round:t,...e})});n.ok?M(!0):409===n.status&&window.location.reload()}finally{E(!1)}}},X=(0,r.useMemo)(()=>i.filter(e=>"deletion"===e.kind||e.comment.trim()).length+ +!!c.trim(),[i,c]);return(0,r.useEffect)(()=>{n?.({liveCount:X,submitting:A,submitted:P,submit:()=>void U(),clearAll:F,annotationCount:i.length,hasGlobalComment:!!c.trim(),globalOpen:m,toggleOverall:()=>x(e=>!e),annotations:i,updateComment:I,removeAnnotation:$,focusOnAnnotation:e=>y(e),addComment:e=>L(e,"comment")})},[X,A,P,i,c,m]),(0,s.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,s.jsx)("div",{className:"relative shrink-0",children:(0,s.jsxs)("div",{className:"absolute right-3 top-2 z-30 flex items-center gap-1",children:[!o&&(0,s.jsxs)("button",{onClick:()=>void U(),disabled:A||0===X,className:(0,C.cn)("flex items-center gap-1 rounded-md border px-2 py-1 text-[11px] font-semibold transition-colors",P?"border-emerald-500/40 bg-emerald-500/15 text-emerald-300":0===X?"border-white/10 text-muted-foreground opacity-50":"border-sky-500/40 bg-sky-500/15 text-sky-300 hover:bg-sky-500/25"),title:P?"Submitted — your terminal session is reading the feedback":"Submit all feedback so the agent can revise the plan",children:[P?(0,s.jsx)(a.A,{className:"size-3"}):(0,s.jsx)(f.A,{className:"size-3"}),P?"Submitted":"Submit feedback"]}),m&&(0,s.jsxs)("div",{ref:D,className:"absolute right-0 top-[calc(100%+6px)] z-50 w-[320px] rounded-md border border-white/10 bg-card p-2 shadow-xl",children:[(0,s.jsxs)("div",{className:"mb-1 flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-wide text-muted-foreground",children:"Overall feedback"}),(0,s.jsx)("button",{onClick:()=>x(!1),title:"Close (Esc)",className:"rounded p-0.5 text-muted-foreground hover:text-foreground",children:(0,s.jsx)(g.A,{className:"size-3"})})]}),(0,s.jsx)("textarea",{autoFocus:!0,value:c,onChange:e=>u(e.target.value),onKeyDown:e=>{e.stopPropagation(),"Enter"===e.key&&e.shiftKey?(e.preventDefault(),!A&&X>0&&(U(),x(!1))):"Escape"===e.key&&(e.preventDefault(),x(!1))},placeholder:"Plan-level notes — e.g. 'split this into two phases' or 'wrong abstraction'…",rows:4,className:"w-full resize-y rounded border border-white/5 bg-background px-2 py-1.5 text-[12px] leading-snug outline-none focus:border-sky-400/40"}),(0,s.jsx)("div",{className:"mt-1 text-right text-[9px] text-muted-foreground/70",children:"Shift+Enter to submit \xb7 Esc to close"})]})]})}),(0,s.jsx)("div",{ref:O,className:"min-h-0 flex-1 overflow-y-auto px-5 pb-5 pt-16 text-[15px] leading-[1.6] selection:bg-[var(--accent-2,#ff7a45)]/30",children:(0,s.jsx)(R,{markdown:e,annotations:i,focusOnId:j,onClearFocus:()=>y(null),onUpdate:I,onRemove:$})}),p&&(0,s.jsxs)("div",{style:{position:"fixed",left:p.x+4,top:p.y-30,zIndex:60},className:"flex items-center gap-0.5 rounded-md border border-white/15 bg-card/95 p-0.5 shadow-lg backdrop-blur",children:[(0,s.jsx)("button",{onClick:()=>{v({...p,seed:""}),h(null),window.getSelection()?.removeAllRanges()},title:"Comment on this text",className:"rounded p-1 text-sky-300 hover:bg-sky-500/15",children:(0,s.jsx)(k.A,{className:"size-3.5"})}),(0,s.jsx)("button",{onClick:()=>L(p.excerpt,"deletion"),title:"Mark this for deletion",className:"rounded p-1 text-red-300 hover:bg-red-500/15",children:(0,s.jsx)(N.A,{className:"size-3.5"})})]}),b&&(0,s.jsx)(z,{excerpt:b.excerpt,x:b.x,y:b.y,seed:b.seed,onConfirm:e=>{L(b.excerpt,"comment",e),v(null)},onCancel:()=>v(null)})]})}function z({excerpt:e,x:t,y:n,seed:a,onConfirm:o,onCancel:l}){let[i,d]=(0,r.useState)(a);return(0,s.jsxs)("div",{style:{position:"fixed",left:t+4,top:n-6,zIndex:60},className:"w-64 rounded-md border border-white/15 bg-card/95 p-1.5 shadow-xl backdrop-blur",children:[(0,s.jsxs)("div",{className:"mb-1 line-clamp-1 text-[10px] text-muted-foreground",children:["“",e,"”"]}),(0,s.jsx)("textarea",{autoFocus:!0,value:i,onChange:e=>d(e.target.value),onFocus:e=>e.currentTarget.setSelectionRange(i.length,i.length),placeholder:"Comment… (Enter to save \xb7 Esc to cancel)",onKeyDown:e=>{e.stopPropagation(),"Enter"!==e.key||e.shiftKey?"Escape"===e.key&&(e.preventDefault(),l()):(e.preventDefault(),i.trim()?o(i.trim()):l())},onBlur:()=>i.trim()?o(i.trim()):l(),className:"h-16 w-full resize-none rounded bg-white/[0.05] px-1.5 py-1 text-xs outline-none placeholder:text-muted-foreground/50 focus:bg-white/[0.08]"})]})}function E({annotations:e,updateComment:t,removeAnnotation:n,focusOnAnnotation:r,onClose:a}){return 0===e.length?(0,s.jsx)("div",{className:"rounded-lg border border-dashed border-white/10 px-3 py-6 text-center text-[11px] text-muted-foreground",children:"Highlight any text in the plan to leave an inline comment."}):(0,s.jsx)("ul",{className:"space-y-1.5",children:e.map(e=>(0,s.jsx)("li",{className:(0,C.cn)("group rounded-md border bg-background/30 px-2 py-1.5 transition-colors hover:bg-background/50","deletion"===e.kind?"border-red-500/25":"border-sky-500/15"),children:(0,s.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>{r(e.id),a?.()},title:"Jump to this excerpt in the plan",className:(0,C.cn)("block w-full truncate text-left text-[10.5px] font-mono","deletion"===e.kind?"text-red-300/90 line-through":"text-foreground/80 hover:text-foreground"),children:["“",e.excerpt,"”"]}),"deletion"!==e.kind&&(0,s.jsx)("textarea",{value:e.comment,onChange:n=>t(e.id,n.target.value),placeholder:"Write your comment…",rows:1,className:"field-sizing-content mt-1 w-full resize-none bg-transparent text-[11px] leading-snug text-foreground/90 outline-none placeholder:text-muted-foreground/60 focus:text-foreground"})]}),(0,s.jsx)("button",{onClick:()=>n(e.id),title:"Remove this annotation",className:"shrink-0 rounded p-1 text-muted-foreground/70 opacity-0 transition-opacity hover:bg-red-500/15 hover:text-red-300 group-hover:opacity-100",children:(0,s.jsx)(b.A,{className:"size-3"})})]})},e.id))})}function R({markdown:e,annotations:t,focusOnId:n,onClearFocus:a,onUpdate:o,onRemove:l}){let i=(0,r.useMemo)(()=>(0,A.n$)(e),[e]);return(0,s.jsx)("div",{className:"mx-auto w-full max-w-[66ch] space-y-4",children:i.map((e,r)=>(0,s.jsx)(P,{block:e,index:r,annotations:t,focusOnId:n,onClearFocus:a,onUpdate:o,onRemove:l},r))})}function P({block:e,index:t,annotations:n,focusOnId:r,onClearFocus:a,onUpdate:o,onRemove:l}){if("code"===e.kind)return(0,s.jsx)(A.NG,{text:e.text});if("table"===e.kind)return(0,s.jsx)(A.QH,{block:e});let i=(0,s.jsx)(M,{text:e.text,annotations:n,focusOnId:r,onClearFocus:a,onUpdate:o,onRemove:l}),d=(0,A.Vq)(e.kind)?(0,A.vB)(t):void 0;return(0,s.jsx)(s.Fragment,{children:(0,A.aM)(e,i,"reading",d)})}function M({text:e,annotations:t,focusOnId:n,onClearFocus:r,onUpdate:a,onRemove:o}){let l=t.map(t=>({a:t,idx:e.indexOf(t.excerpt)})).filter(e=>e.idx>=0).sort((e,t)=>e.idx-t.idx);if(!l.length)return(0,s.jsx)(D,{text:e});let i=[],d=0;for(let{a:t,idx:c}of l)c<d||(c>d&&i.push((0,s.jsx)(D,{text:e.slice(d,c)},`p-${d}`)),i.push((0,s.jsx)(O,{annotation:t,autoFocus:n===t.id,onClearFocus:r,onUpdate:a,onRemove:o},t.id)),d=c+t.excerpt.length);return d<e.length&&i.push((0,s.jsx)(D,{text:e.slice(d)},"p-tail")),(0,s.jsx)(s.Fragment,{children:i})}function O({annotation:e,autoFocus:t,onClearFocus:n,onUpdate:a,onRemove:o}){let l=(0,r.useRef)(null);return((0,r.useEffect)(()=>{if(t&&l.current){l.current.focus();let e=l.current.value;l.current.setSelectionRange(e.length,e.length),n()}},[t,n]),"deletion"===(e.kind??"comment"))?(0,s.jsxs)("span",{className:"relative inline",children:[(0,s.jsx)("span",{className:"rounded bg-red-500/15 px-0.5 text-red-200/90 line-through decoration-red-300/70 decoration-2",children:(0,s.jsx)(D,{text:e.excerpt})}),(0,s.jsx)("button",{type:"button",onClick:()=>o(e.id),title:"Unmark",className:"ml-0.5 inline-flex translate-y-[-1px] items-center text-red-300/70 hover:text-red-300",children:(0,s.jsx)(b.A,{className:"size-3"})})]}):(0,s.jsx)("span",{className:"rounded bg-[var(--accent-2,#ff7a45)]/15 px-0.5","data-annotation-id":e.id,children:(0,s.jsx)(D,{text:e.excerpt})})}function D({text:e}){return(0,s.jsx)(A.cV,{text:e})}let T=(0,c.A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);function L({pendingPlan:e=!1}={}){let t=(0,j.useRouter)(),[n,i]=(0,r.useState)([]),[d,c]=(0,r.useState)(null),[m,x]=(0,r.useState)(null),[p,h]=(0,r.useState)("markdown");(0,r.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/plan/history");if(!e.ok)return;let t=await e.json();i(t.items),t.items.length&&!d&&c(t.items[0].id)}catch{}})()},[]),(0,r.useEffect)(()=>{d&&(async()=>{let e=await fetch(`/api/plan/history?id=${encodeURIComponent(d)}`);e.ok&&x(await e.json())})()},[d]);let f=(0,r.useMemo)(()=>(function(e){let t=new Map;for(let n of e){let e=new Date(n.archivedAt).toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric"});t.has(e)||t.set(e,[]),t.get(e).push(n)}return Array.from(t.entries())})(n),[n]),b=e?(0,s.jsxs)("button",{onClick:()=>t.push((0,w.rc)()),className:"glass pointer-events-auto fixed left-3 top-3 z-30 flex h-10 items-center gap-1.5 rounded-full px-3 text-[11px] font-semibold text-sky-300 transition-colors hover:bg-sky-500/15",title:"Return to the plan that's still pending review",children:[(0,s.jsx)(T,{className:"size-3.5"})," Back to current plan"]}):null;return 0===n.length?(0,s.jsxs)(s.Fragment,{children:[b,(0,s.jsx)("div",{className:"flex h-screen items-center justify-center px-6 pt-14 text-center",children:(0,s.jsxs)("div",{className:"max-w-md text-sm text-muted-foreground",children:[(0,s.jsx)(u,{className:"mx-auto mb-3 size-7 text-muted-foreground/40"}),(0,s.jsx)("div",{className:"mb-2 text-base font-semibold text-foreground",children:"No plans yet."}),"Ask the agent to propose a feature in your terminal session — it lands here via MCP and you can review + annotate on both sides. Past plans get archived to this page for browsing."]})})]}):(0,s.jsxs)("div",{className:"flex h-screen min-h-0 pt-14",children:[b,m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"glass pointer-events-auto fixed left-1/2 top-3 z-30 flex -translate-x-1/2 items-center gap-0.5 rounded-full p-1",children:[(0,s.jsx)(I,{active:"markdown"===p,onClick:()=>h("markdown"),children:"Plan"}),(0,s.jsx)(I,{active:"map"===p,onClick:()=>h("map"),icon:(0,s.jsx)(o.A,{className:"size-3"}),children:"Features"}),(0,s.jsx)(I,{active:"db"===p,onClick:()=>h("db"),icon:(0,s.jsx)(l.A,{className:"size-3"}),children:"Schema"})]}),(0,s.jsxs)("div",{className:"glass pointer-events-auto fixed right-3 top-3 z-30 flex h-9 items-center gap-2 rounded-full px-3",children:[(0,s.jsx)("span",{className:(0,C.cn)("rounded px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wide","approved"===m.verdict?"bg-emerald-500/15 text-emerald-300":"bg-red-500/15 text-red-300"),children:m.verdict}),(0,s.jsx)("span",{className:"text-[10px] text-muted-foreground",children:new Date(m.archivedAt).toLocaleString()})]})]}),(0,s.jsxs)("aside",{className:"flex w-64 min-w-0 shrink-0 flex-col border-r border-white/5 bg-card/30",children:[(0,s.jsxs)("div",{className:"border-b border-white/5 px-3 py-2 text-[10.5px] font-semibold uppercase tracking-wide text-muted-foreground",children:["Plan history \xb7 ",n.length]}),(0,s.jsx)("ul",{className:"min-h-0 flex-1 overflow-y-auto",children:f.map(([e,t])=>(0,s.jsxs)("li",{children:[(0,s.jsx)("div",{className:"px-3 pb-1 pt-3 text-[9px] font-semibold uppercase tracking-widest text-muted-foreground/60",children:e}),(0,s.jsx)("ul",{children:t.map(e=>(0,s.jsx)("li",{children:(0,s.jsxs)("button",{onClick:()=>c(e.id),className:(0,C.cn)("flex w-full items-start gap-1.5 px-3 py-1.5 text-left text-[12px] transition-colors",d===e.id?"bg-white/[0.06] text-foreground":"text-muted-foreground hover:bg-white/[0.03] hover:text-foreground"),children:[(0,s.jsx)("span",{className:(0,C.cn)("mt-0.5 inline-flex size-3.5 shrink-0 items-center justify-center rounded-full","approved"===e.verdict?"bg-emerald-500/15 text-emerald-300":"bg-red-500/15 text-red-300"),title:e.verdict,children:"approved"===e.verdict?(0,s.jsx)(a.A,{className:"size-2.5"}):(0,s.jsx)(g.A,{className:"size-2.5"})}),(0,s.jsx)("span",{className:"line-clamp-2",children:e.description})]})},e.id))})]},e))})]}),m?(0,s.jsx)("section",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:(0,s.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:["markdown"===p&&(0,s.jsxs)("div",{className:"px-5 py-4",children:[(0,s.jsx)(A.pO,{markdown:m.markdown}),""===m.markdown.replace(/^#[^\n]*\n?/,"").trim()&&(0,s.jsx)("p",{className:"mt-2 text-[13px] text-muted-foreground",children:(m.featureGraph?.features?.length??0)===0&&(m.draftDoc?.tables?.length??0)===0&&(m.draftDoc?.endpoints?.length??0)===0?"This plan was approved without a detailed write-up — no features or schema were attached either.":"This plan has no written body. See the Features and Schema tabs for what it proposed."}),m.globalComment&&(0,s.jsxs)("div",{className:"mt-4 rounded-lg border border-white/5 bg-card/40 p-3",children:[(0,s.jsx)("div",{className:"mb-1 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground",children:"Overall feedback"}),(0,s.jsx)("div",{className:"text-[12px] whitespace-pre-wrap",children:m.globalComment})]})]}),"map"===p&&(0,s.jsx)($,{featureGraph:m.featureGraph}),"db"===p&&(0,s.jsx)(F,{draftDoc:m.draftDoc})]})}):(0,s.jsx)("section",{className:"flex min-h-0 min-w-0 flex-1 items-center justify-center text-sm text-muted-foreground",children:"Select a plan on the left to view it."})]})}function I({active:e,onClick:t,icon:n,children:r}){return(0,s.jsxs)("button",{onClick:t,className:(0,C.cn)("flex items-center gap-1 rounded-md px-2 py-1 text-[11px] font-medium transition-colors",e?"bg-white/10 text-foreground":"text-muted-foreground hover:text-foreground"),children:[n,r]})}function $({featureGraph:e}){let t=e?.features??[];return 0===t.length?(0,s.jsx)("div",{className:"flex h-full items-center justify-center px-6 text-center text-sm text-muted-foreground",children:"No features were proposed in this plan."}):(0,s.jsx)("div",{className:"grid gap-3 px-5 py-4 sm:grid-cols-2 lg:grid-cols-3",children:t.map((e,t)=>(0,s.jsxs)("div",{className:"rounded-lg border border-sky-500/20 bg-card/50 p-3",children:[(0,s.jsxs)("div",{className:"mb-1.5 flex items-center gap-1.5",children:[(0,s.jsx)("span",{className:"rounded bg-sky-500/15 px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-sky-300",children:"feature"}),e.cluster&&(0,s.jsx)("span",{className:"text-[10px] text-muted-foreground",children:e.cluster})]}),(0,s.jsx)("div",{className:"text-sm font-semibold leading-tight",children:e.title}),e.role&&(0,s.jsx)("div",{className:"mt-1 text-[11px] text-muted-foreground",children:e.role}),e.plain&&(0,s.jsx)("div",{className:"mt-2 text-[12px] text-foreground/80",children:e.plain})]},t))})}function F({draftDoc:e}){let t=e?.tables??[],n=e?.endpoints??[];return 0===t.length&&0===n.length?(0,s.jsx)("div",{className:"flex h-full items-center justify-center px-6 text-center text-sm text-muted-foreground",children:"No schema was proposed in this plan."}):(0,s.jsxs)("div",{className:"space-y-5 px-5 py-4",children:[t.length>0&&(0,s.jsxs)("section",{children:[(0,s.jsxs)("div",{className:"mb-2 text-[10.5px] font-semibold uppercase tracking-wide text-muted-foreground",children:["Tables \xb7 ",t.length]}),(0,s.jsx)("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:t.map(e=>(0,s.jsxs)("div",{className:"rounded-lg border border-white/5 bg-card/40 p-3",children:[(0,s.jsxs)("div",{className:"mb-1 flex items-center gap-1.5",children:[(0,s.jsx)("span",{className:"font-mono text-[13px] font-semibold",children:e.name}),e.domain&&(0,s.jsx)("span",{className:"text-[10px] text-muted-foreground",children:e.domain})]}),e.description&&(0,s.jsx)("div",{className:"mb-1.5 text-[11px] text-muted-foreground",children:e.description}),(0,s.jsx)("ul",{className:"space-y-0.5 text-[11px]",children:e.columns.map((e,t)=>(0,s.jsxs)("li",{className:"flex items-baseline gap-1.5",children:[(0,s.jsx)("code",{className:"rounded bg-white/5 px-1 font-mono text-[11px]",children:e.name}),(0,s.jsx)("span",{className:"text-muted-foreground",children:e.type}),e.isPk&&(0,s.jsx)("span",{className:"text-amber-300/80 text-[9px]",children:"PK"}),e.isFk&&(0,s.jsx)("span",{className:"text-sky-300/80 text-[9px]",children:"FK"}),!e.nullable&&(0,s.jsx)("span",{className:"text-muted-foreground/60 text-[9px]",children:"NOT NULL"})]},t))})]},e.id))})]}),n.length>0&&(0,s.jsxs)("section",{children:[(0,s.jsxs)("div",{className:"mb-2 text-[10.5px] font-semibold uppercase tracking-wide text-muted-foreground",children:["Endpoints \xb7 ",n.length]}),(0,s.jsx)("ul",{className:"space-y-1.5",children:n.map(e=>{let t;return(0,s.jsxs)("li",{className:"flex items-center gap-2 rounded-md border border-white/5 bg-card/40 px-2.5 py-1.5 text-[12px]",children:[(0,s.jsx)("span",{className:"rounded px-1.5 py-0.5 text-[10px] font-bold",style:(t=U[e.method.toUpperCase()]??"#8a8a8a",{background:`${t}22`,color:t}),children:e.method}),(0,s.jsx)("span",{className:"font-mono",children:e.path}),e.description&&(0,s.jsx)("span",{className:"ml-2 text-[11px] text-muted-foreground",children:e.description})]},e.id)})})]})]})}let U={GET:"#7bd389",POST:"#4ea1ff",PUT:"#ffb86b",PATCH:"#ffb86b",DELETE:"#ff3860"};function X({markdown:e}){let t=(0,r.useMemo)(()=>(0,A.n$)(e).map((e,t)=>({b:e,i:t})).filter(({b:e})=>(0,A.Vq)(e.kind)).map(({b:e,i:t})=>({id:(0,A.vB)(t),level:(0,A.F8)(e.kind),label:(0,A.kz)(e.text)})).filter(e=>e.label.length>0),[e]),[n,a]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if("u"<typeof IntersectionObserver||0===t.length)return;let e=t.map(e=>document.getElementById(e.id)).filter(e=>null!==e);if(0===e.length)return;let n=new IntersectionObserver(e=>{let t=e.filter(e=>e.isIntersecting).sort((e,t)=>e.boundingClientRect.top-t.boundingClientRect.top);t[0]&&a(t[0].target.id)},{rootMargin:"-12% 0px -70% 0px",threshold:0});return e.forEach(e=>n.observe(e)),()=>n.disconnect()},[t]),(0,s.jsxs)("aside",{className:"flex w-60 shrink-0 flex-col overflow-y-auto border-r border-white/5 bg-background pt-16",children:[(0,s.jsx)("div",{className:"px-4 pb-2 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground",children:"Sections"}),0===t.length?(0,s.jsx)("p",{className:"px-4 text-[12px] text-muted-foreground/70",children:"No headings in this plan."}):(0,s.jsx)("nav",{className:"space-y-0.5 px-2 pb-6",children:t.map(e=>(0,s.jsx)("button",{onClick:()=>{var t;let n;return t=e.id,void((n=document.getElementById(t))&&(n.scrollIntoView({behavior:"smooth",block:"start"}),a(t)))},title:e.label,style:{paddingLeft:`${.5+.75*e.level}rem`},className:(0,C.cn)("block w-full truncate rounded py-1 pr-2 text-left text-[12px] leading-snug transition-colors",n===e.id?"bg-white/10 font-medium text-foreground":"text-muted-foreground hover:bg-white/[0.05] hover:text-foreground"),children:e.label},e.id))})]})}var B=n(50981),K=n(74350),q=n(4474),G=n(97358);function H({open:e,onOpenChange:t,onConfirmed:n}){let[o,l]=(0,r.useState)("bypassPermissions"),[i,d]=(0,r.useState)(!1);async function c(){d(!0);try{await fetch("/api/preferences",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({planApprovalMode:o})}).catch(()=>{}),t(!1),n()}finally{d(!1)}}return(0,s.jsx)(K.lG,{open:e,onOpenChange:t,children:(0,s.jsxs)(K.Cf,{className:"max-w-lg",children:[(0,s.jsxs)(K.c7,{children:[(0,s.jsxs)(K.L3,{className:"flex items-center gap-2",children:[(0,s.jsx)(B.A,{className:"size-4 text-emerald-400"}),"After approving, the agent should…"]}),(0,s.jsx)(K.rr,{children:"Pick the permission mode your terminal session enters when you approve a plan. We ask once and remember it for every project — change it anytime in Settings."})]}),(0,s.jsx)("div",{className:"space-y-2 py-1",children:G.pC.map(e=>(0,s.jsxs)("button",{type:"button",onClick:()=>l(e.value),className:(0,C.cn)("flex w-full items-start gap-3 rounded-lg border p-3 text-left transition-colors",o===e.value?"border-emerald-500/50 bg-emerald-500/10":"border-white/10 bg-white/[0.03] hover:bg-white/[0.06]"),children:[(0,s.jsx)("span",{className:(0,C.cn)("mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full border",o===e.value?"border-emerald-400 bg-emerald-400/20":"border-white/30"),children:o===e.value&&(0,s.jsx)(a.A,{className:"size-3 text-emerald-300"})}),(0,s.jsxs)("span",{className:"min-w-0",children:[(0,s.jsx)("span",{className:"block text-sm font-medium text-foreground",children:e.label}),(0,s.jsx)("span",{className:"block text-xs text-muted-foreground",children:e.description})]})]},e.value))}),(0,s.jsxs)(K.Es,{className:"items-center justify-between gap-2 sm:justify-between",children:[(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:"You can change this later in Settings."}),(0,s.jsx)(q.$,{onClick:c,disabled:i,size:"sm",children:i?"Saving…":"Save & approve"})]})]})})}var V=n(65436),_=n(91588);function Y({dbProps:e,mapProps:t,planMarkdown:n,forceHistory:c=!1}){let k=(0,j.useRouter)(),{status:N,discard:A}=(0,y.j)(),z=t.nodes.length>0,R=e.tables.length>0||e.endpoints.length>0||(e.draft?.tables.length??0)>0||(e.draft?.endpoints.length??0)>0,[P,M]=(0,r.useState)(z?"map":"db"),O="map"!==P||z?"db"!==P||R?P:"map":"db",[D,T]=(0,r.useState)(!1),[I,$]=(0,r.useState)(!1),[F,U]=(0,r.useState)(null),B=(0,r.useCallback)(async()=>{await fetch("/api/plan/approve",{method:"POST",headers:(0,w.dh)((0,w.X0)())}).catch(()=>{}),U({features:N.features,tables:N.tables,endpoints:N.endpoints})},[N.features,N.tables,N.endpoints]),K=(0,r.useCallback)(async()=>{try{let e=await fetch("/api/preferences",{cache:"no-store"});if((await e.json()).planApprovalModeConfigured)return void B()}catch{B();return}$(!0)},[B]),[q,G]=(0,r.useState)(null),Q=(0,r.useCallback)(e=>G(e),[]),Z=(0,r.useRef)(null),ee=(0,r.useRef)(null),et=(0,r.useRef)(e.draft),[en,es]=(0,r.useState)(!1),er=(0,r.useCallback)(()=>es(!0),[]),[ea,eo]=(0,r.useState)([]),[el,ei]=(0,r.useState)(!1),[ed,ec]=(0,r.useState)(""),eu=(0,r.useCallback)(e=>{ec(e),ei(!0)},[]),em=(0,r.useRef)(ea);(0,r.useEffect)(()=>{em.current=ea},[ea]),(0,r.useEffect)(()=>{eo([]),ei(!1),es(!1)},[N.proposedAt]),(0,r.useEffect)(()=>{let e=()=>void fetch("/api/plan/presence",{method:"POST",cache:"no-store",headers:(0,w.dh)((0,w.X0)())}).catch(()=>{});e();let t=setInterval(e,5e3);return()=>clearInterval(t)},[]);let ex=(0,r.useCallback)(()=>({draft:et.current,questions:em.current}),[]),ep=(0,r.useMemo)(()=>{let n=[];for(let e of t.nodes)n.push(`feature: ${e.title}`);for(let t of e.draft?.tables??[])n.push(`table: ${t.name}`);for(let t of e.tables)n.push(`table: ${t.name}`);for(let t of e.draft?.endpoints??[])n.push(`endpoint: ${t.method} ${t.path}`);for(let t of e.endpoints)n.push(`endpoint: ${t.method} ${t.path}`);return Array.from(new Set(n))},[t.nodes,e]),eh=q?(0,s.jsx)(E,{annotations:q.annotations,updateComment:q.updateComment,removeAnnotation:q.removeAnnotation,focusOnAnnotation:q.focusOnAnnotation,onClose:()=>Z.current?.close()}):null,ef=(0,r.useCallback)(()=>{Z.current?.open()},[]),eg=(0,r.useCallback)(()=>{"db"===O?ee.current?.openComments():Z.current?.openComments()},[O]),eb=(0,r.useCallback)(e=>{q?.addComment(e)},[q]),ev=(0,r.useCallback)(e=>{q?.focusOnAnnotation(e),"db"===O?ee.current?.openComments():Z.current?.openComments()},[q,O]),[ej,ey]=(0,r.useState)(()=>{try{let e=window.localStorage.getItem("beacon:plan-left-pct");return e?Math.max(20,Math.min(80,Number(e))):50}catch{return 50}}),ew=(0,r.useRef)(null),ek=(0,r.useRef)(!1),eN=(0,r.useCallback)(e=>{e.preventDefault(),ek.current=!0,document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[]);(0,r.useEffect)(()=>{let e=e=>{if(!ek.current||!ew.current)return;let t=ew.current.getBoundingClientRect();ey(Math.max(20,Math.min(80,(e.clientX-t.left)/t.width*100)))},t=()=>{if(ek.current){ek.current=!1,document.body.style.cursor="",document.body.style.userSelect="";try{localStorage.setItem("beacon:plan-left-pct",String(ej))}catch{}}};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",t),()=>{window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",t)}},[ej]);let eC=async()=>{await fetch("/api/plan/annotations",{method:"DELETE",headers:(0,w.dh)((0,w.X0)())}).catch(()=>{}),await A(),k.refresh()};if((!N.pending||c)&&!F)return(0,s.jsx)(L,{pendingPlan:N.pending});let eA=z||R,eS=eA&&!D,ez=!eA||D,eE=((q?.liveCount??0)>0||en||ea.length>0)&&!q?.submitted;return(0,s.jsxs)("div",{className:"relative flex h-screen flex-col",children:[F&&(0,s.jsxs)("div",{className:"absolute inset-0 z-50 flex flex-col items-center justify-center gap-5 bg-background/97 px-6 text-center backdrop-blur-sm",children:[(0,s.jsx)("div",{className:"flex size-12 items-center justify-center rounded-full bg-emerald-500/15",children:(0,s.jsx)(a.A,{className:"size-6 text-emerald-300"})}),(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold text-foreground",children:"Plan approved"}),(0,s.jsx)("p",{className:"max-w-sm text-sm text-muted-foreground",children:F.features>0||F.tables>0||F.endpoints>0?"It's committed. Here's where to find it:":"It's archived to your plan history."})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[F.features>0&&(0,s.jsxs)("button",{onClick:()=>k.push("/map?view=ROADMAP"),className:"flex items-center gap-2 rounded-lg border border-white/12 px-3 py-2 text-sm text-foreground transition-colors hover:bg-white/[0.06]",children:[(0,s.jsx)(o.A,{className:"size-4 text-sky-300"})," ",F.features," feature",1===F.features?"":"s"," → Map"]}),(F.tables>0||F.endpoints>0)&&(0,s.jsxs)("button",{onClick:()=>k.push("/map?view=DATABASE"),className:"flex items-center gap-2 rounded-lg border border-white/12 px-3 py-2 text-sm text-foreground transition-colors hover:bg-white/[0.06]",children:[(0,s.jsx)(l.A,{className:"size-4 text-violet-300"})," ",F.tables," table",1===F.tables?"":"s"," \xb7 ",F.endpoints," endpoint",1===F.endpoints?"":"s"," → Database"]})]}),(0,s.jsx)("button",{onClick:()=>{U(null),k.push((0,w.rc)({view:"history"}))},className:"rounded-full border border-white/12 px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground",children:"Done — browse plan history"})]}),q?.submitted&&(0,s.jsxs)("div",{className:"absolute inset-0 z-40 flex flex-col items-center justify-center gap-4 bg-background/95 px-6 text-center backdrop-blur-sm",children:[(0,s.jsx)("div",{className:"flex size-12 items-center justify-center rounded-full bg-sky-500/15",children:(0,s.jsx)(i.A,{className:"size-6 animate-spin text-sky-300"})}),(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold text-foreground",children:"Feedback sent"}),(0,s.jsx)("p",{className:"max-w-sm text-sm text-muted-foreground",children:"Your terminal session is revising the plan based on your comments. The updated plan will appear here automatically — no need to refresh."})]}),(0,s.jsx)("button",{onClick:()=>k.push((0,w.rc)({view:"history"})),className:"rounded-full border border-white/12 px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground",children:"Browse past plans"})]}),(0,s.jsxs)("div",{className:"pointer-events-none fixed right-3 top-3 z-30 flex items-center gap-2",children:[eA&&D&&(0,s.jsx)("button",{onClick:()=>T(!1),title:"Collapse — show the board again",className:"glass pointer-events-auto flex size-8 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground",children:(0,s.jsx)(d.A,{className:"size-3.5"})}),(0,s.jsxs)("div",{className:"glass pointer-events-auto flex h-10 items-center gap-0.5 rounded-full px-1",children:[(0,s.jsx)("button",{onClick:()=>k.push((0,w.rc)({view:"history"})),title:"Browse past plans (you can come back to this one)",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground",children:(0,s.jsx)(u,{className:"size-3.5"})}),(0,s.jsx)("span",{"aria-hidden":!0,className:"mx-1 h-5 w-px bg-white/10"}),(0,s.jsx)("button",{onClick:ef,disabled:!q,title:"Open the side panel (details)",className:"relative flex size-8 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground",children:(0,s.jsx)(m.A,{className:"size-3.5"})}),(0,s.jsxs)("button",{onClick:eg,disabled:!q,title:q?.annotationCount?`Open comments \xb7 ${q.annotationCount} comment${1===q.annotationCount?"":"s"} so far`:"Open comments — select a card/table and 'Comment on this', or highlight text",className:"relative flex size-8 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground",children:[(0,s.jsx)(x,{className:"size-3.5"}),q&&(q.annotationCount??0)>0&&(0,s.jsx)("span",{className:"absolute -right-0.5 -top-0.5 flex h-3.5 min-w-3.5 items-center justify-center rounded-full bg-sky-500 px-1 text-[9px] font-semibold text-white",children:q.annotationCount})]}),(0,s.jsxs)("button",{"data-overall-toggle":!0,onClick:()=>q?.toggleOverall?.(),disabled:!q?.toggleOverall,title:q?.hasGlobalComment?"Edit your overall feedback":"Add overall plan-level feedback",className:(0,C.cn)("relative flex size-8 shrink-0 items-center justify-center rounded-full transition-colors",q?.globalOpen?"bg-white/10 text-foreground":q?.hasGlobalComment?"text-sky-300 hover:bg-sky-500/15":"text-muted-foreground hover:bg-white/[0.06] hover:text-foreground"),children:[(0,s.jsx)(p.A,{className:"size-3.5"}),q?.hasGlobalComment&&(0,s.jsx)("span",{className:"absolute -right-0.5 -top-0.5 size-2 rounded-full bg-sky-400"})]}),(0,s.jsxs)("button",{onClick:()=>ei(e=>!e),title:"Ask the agent a question about a node (answered in its next round)",className:(0,C.cn)("relative flex size-8 shrink-0 items-center justify-center rounded-full transition-colors",el?"bg-white/10 text-foreground":ea.length?"text-sky-300 hover:bg-sky-500/15":"text-muted-foreground hover:bg-white/[0.06] hover:text-foreground"),children:[(0,s.jsx)(h.A,{className:"size-3.5"}),ea.length>0&&(0,s.jsx)("span",{className:"absolute -right-0.5 -top-0.5 flex h-3.5 min-w-3.5 items-center justify-center rounded-full bg-sky-500 px-1 text-[9px] font-semibold text-white",children:ea.length})]}),(0,s.jsx)("span",{"aria-hidden":!0,className:"mx-1 h-5 w-px bg-white/10"}),(0,s.jsxs)("button",{onClick:()=>q?.submit(),disabled:!q||q.submitting||0===q.liveCount&&!en&&0===ea.length,title:q&&(0!==q.liveCount||en||0!==ea.length)?q.submitted?"Submitted — your terminal session is reading the feedback":"Submit feedback (comments + canvas edits) so the agent can revise the plan":"Highlight text or edit the canvas, then submit",className:(0,C.cn)("flex shrink-0 items-center gap-1 rounded-full px-2.5 py-1 text-[11px] font-semibold transition-colors",q?.submitted?"text-sky-300":q&&(0!==q.liveCount||en||0!==ea.length)?"text-sky-300 hover:bg-sky-500/15":"text-muted-foreground opacity-50"),children:[q?.submitted?(0,s.jsx)(a.A,{className:"size-3"}):(0,s.jsx)(f.A,{className:"size-3"}),q?.submitted?"Submitted":"Feedback"]}),eE&&(0,s.jsxs)("button",{onClick:()=>{q?.clearAll?.(),es(!1),eo([])},title:"Discard your unsubmitted comments / canvas edits so you can approve the plan as-is",className:"flex shrink-0 items-center gap-1 rounded-full px-2 py-1 text-[11px] font-medium text-amber-300/90 transition-colors hover:bg-amber-500/15",children:[(0,s.jsx)(g.A,{className:"size-3"})," Clear to approve"]}),(0,s.jsxs)("button",{onClick:()=>void K(),disabled:eE,title:eE?"You have unsubmitted feedback — submit it, or click ‘Clear to approve’ to drop it":"Approve the plan",className:(0,C.cn)("flex shrink-0 items-center gap-1 rounded-full border border-emerald-500/40 bg-emerald-500/15 px-2.5 py-1 text-[11px] font-semibold text-emerald-300 transition-colors hover:bg-emerald-500/25",eE&&"opacity-40 hover:bg-emerald-500/15"),children:[(0,s.jsx)(a.A,{className:"size-3"})," Approve"]}),(0,s.jsxs)("button",{onClick:eC,className:"flex shrink-0 items-center gap-1 rounded-full px-2.5 py-1 text-[11px] font-medium text-muted-foreground transition-colors hover:bg-red-500/15 hover:text-red-300",title:"Discard the plan",children:[(0,s.jsx)(b.A,{className:"size-3"})," Discard"]}),(0,s.jsx)(H,{open:I,onOpenChange:$,onConfirmed:()=>void B()})]})]}),el&&(0,s.jsxs)("div",{className:"fixed right-3 top-16 z-30 w-80 rounded-xl border border-white/10 bg-card p-3 shadow-xl",children:[(0,s.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground",children:"Ask the agent"}),(0,s.jsx)("button",{onClick:()=>ei(!1),title:"Close",className:"rounded p-0.5 text-muted-foreground hover:text-foreground",children:(0,s.jsx)(g.A,{className:"size-3.5"})})]}),(0,s.jsx)(J,{targets:ep,initialTarget:ed,onAdd:e=>eo(t=>[...t,e])}),ea.length>0&&(0,s.jsx)("ul",{className:"mt-2 space-y-1",children:ea.map((e,t)=>(0,s.jsxs)("li",{className:"group flex items-start justify-between gap-2 rounded-md border border-white/5 bg-background/40 px-2 py-1",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("div",{className:"truncate font-mono text-[10px] text-sky-300/90",children:e.target}),(0,s.jsx)("div",{className:"text-[11px] text-foreground/90",children:e.question})]}),(0,s.jsx)("button",{onClick:()=>eo(e=>e.filter((e,n)=>n!==t)),title:"Remove",className:"shrink-0 rounded p-0.5 text-muted-foreground/70 opacity-0 transition-opacity hover:text-red-300 group-hover:opacity-100",children:(0,s.jsx)(g.A,{className:"size-3"})})]},t))}),(0,s.jsx)("p",{className:"mt-2 text-[10px] text-muted-foreground",children:"Questions are sent with your feedback on Submit — the agent answers them in its next round."})]}),(0,s.jsxs)("div",{ref:ew,className:"flex min-h-0 flex-1",children:[ez&&(0,s.jsx)(X,{markdown:n}),(0,s.jsxs)("div",{className:(0,C.cn)("relative flex min-w-0 flex-col",!eS&&"flex-1"),style:eS?{width:`${ej}%`}:void 0,children:[eS&&(0,s.jsx)("div",{className:"pointer-events-none absolute right-3 top-3 z-20",children:(0,s.jsx)("button",{onClick:()=>T(!0),title:"Expand the plan to full width",className:"glass pointer-events-auto flex size-8 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-white/[0.06] hover:text-foreground",children:(0,s.jsx)(v.A,{className:"size-3.5"})})}),(0,s.jsx)("div",{className:"min-h-0 flex-1 overflow-hidden bg-background",children:(0,s.jsx)(S,{markdown:n,round:N.proposedAt,onApi:Q,hideSubmit:!0,getExtraSubmitPayload:ex})})]}),eS&&(0,s.jsx)("div",{onPointerDown:eN,className:"group relative w-px shrink-0 cursor-col-resize bg-white/5 hover:bg-white/15",title:"Drag to resize",children:(0,s.jsx)("div",{className:"absolute inset-y-0 -left-1.5 right-[-6px] z-10"})}),eS&&(0,s.jsxs)("div",{className:"relative flex min-w-0 flex-col",style:{width:`${100-ej}%`},children:[z&&R&&(0,s.jsx)("div",{className:"pointer-events-none absolute left-3 top-3 z-20",children:(0,s.jsxs)("div",{className:"glass pointer-events-auto flex items-center gap-1 rounded-full p-0.5",children:[(0,s.jsx)(W,{active:"map"===O,onClick:()=>M("map"),icon:(0,s.jsx)(o.A,{className:"size-3"}),children:"Map"}),(0,s.jsx)(W,{active:"db"===O,onClick:()=>M("db"),icon:(0,s.jsx)(l.A,{className:"size-3"}),children:"Database"})]})}),(0,s.jsx)("div",{className:"min-h-0 flex-1 overflow-hidden bg-background",children:"map"===O?(0,s.jsx)(V.MapClient,{view:t.view,nodes:t.nodes,edges:t.edges,embedded:!0,commentsContent:eh,commentsCount:q?.annotationCount??0,controlRef:Z,onAskAgent:eu,onAddComment:eb,annotations:q?.annotations,onPinClick:ev,onUpdateComment:q?.updateComment,onRemoveComment:q?.removeAnnotation}):(0,s.jsx)(_.DbMapClient,{tables:e.tables,relations:e.relations,endpoints:e.endpoints,draft:e.draft,workspaceId:e.workspaceId,embedded:!0,draftRef:et,onEdit:er,controlRef:ee,commentsContent:eh,commentsCount:q?.annotationCount??0,onAddComment:eb,annotations:q?.annotations,onPinClick:ev,onUpdateComment:q?.updateComment,onRemoveComment:q?.removeAnnotation})})]})]})]})}function J({targets:e,onAdd:t,initialTarget:n}){let[a,o]=(0,r.useState)(n||e[0]||""),[l,i]=(0,r.useState)("");(0,r.useEffect)(()=>{n&&o(n)},[n]),(0,r.useEffect)(()=>{!a&&e[0]&&o(e[0])},[e,a]);let d=()=>{let e=l.trim();e&&(t({target:a||"(plan)",question:e}),i(""))};return(0,s.jsxs)("div",{className:"space-y-1.5",children:[e.length>0&&(0,s.jsx)("select",{value:a,onChange:e=>o(e.target.value),className:"w-full rounded border border-white/10 bg-background px-2 py-1 text-[11px] outline-none focus:border-sky-400/40",children:e.map(e=>(0,s.jsx)("option",{value:e,className:"bg-card",children:e},e))}),(0,s.jsx)("textarea",{value:l,onChange:e=>i(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),d())},rows:2,placeholder:"e.g. why a new table instead of reusing users? (⌘/Ctrl+Enter to add)",className:"w-full resize-y rounded border border-white/10 bg-background px-2 py-1.5 text-[12px] leading-snug outline-none focus:border-sky-400/40"}),(0,s.jsx)("button",{onClick:d,disabled:!l.trim(),className:(0,C.cn)("w-full rounded-md px-2 py-1 text-[11px] font-semibold transition-colors",l.trim()?"bg-sky-500/15 text-sky-300 hover:bg-sky-500/25":"text-muted-foreground opacity-50"),children:"Add question"})]})}function W({active:e,onClick:t,icon:n,children:r}){return(0,s.jsxs)("button",{onClick:t,className:(0,C.cn)("flex items-center gap-1 rounded-md px-2.5 py-1 text-[11px] font-medium transition-colors",e?"bg-white/10 text-foreground":"text-muted-foreground hover:text-foreground"),children:[n,r]})}},22137:(e,t,n)=>{Promise.resolve().then(n.bind(n,10396))},38332:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(30772).A)("strikethrough",[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]])},48484:(e,t,n)=>{"use strict";n.d(t,{PlanProvider:()=>d,j:()=>c});var s=n(95155),r=n(12115),a=n(73321),o=n(99979);let l={pending:!1,proposedAt:0,tables:0,endpoints:0,features:0},i=(0,r.createContext)(null);function d({children:e}){let t=(0,a.useRouter)(),[n,c]=(0,r.useState)(l),u=(0,r.useCallback)(async()=>{try{let e=await fetch("/api/plan",{method:"GET",cache:"no-store",headers:(0,o.dh)((0,o.X0)())});if(!e.ok)return;let t=await e.json();c(t)}catch{}},[]);(0,r.useEffect)(()=>{u();let e=setInterval(()=>void u(),4e3);return()=>clearInterval(e)},[u]);let m=(0,r.useCallback)(async()=>{await fetch("/api/plan",{method:"DELETE",headers:(0,o.dh)((0,o.X0)())}).catch(()=>{}),c(l),t.refresh()},[t]),x=(0,r.useCallback)(async()=>{await fetch("/api/plan/approve",{method:"POST",headers:(0,o.dh)((0,o.X0)())}).catch(()=>{}),c(l),t.refresh()},[t]);return(0,s.jsx)(i.Provider,{value:{status:n,discard:m,approvePlan:x,refresh:u},children:e})}function c(){let e=(0,r.useContext)(i);if(!e)throw Error("usePlan must be used inside PlanProvider");return e}},50981:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(30772).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},82879:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(30772).A)("sticky-note",[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]])},92571:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=(0,n(30772).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},97358:(e,t,n)=>{"use strict";n.d(t,{pC:()=>s});let s=[{value:"default",label:"Manual approval",description:"Approve each tool call yourself — Claude Code's default."},{value:"acceptEdits",label:"Auto-accept edits",description:"Auto-approve file edits; still ask before running other tools."},{value:"bypassPermissions",label:"Bypass permissions",description:"Auto-approve every tool call (like --dangerously-skip-permissions)."},{value:"auto",label:"Auto",description:"Autonomous, gated by a safety classifier (needs a recent Claude Code + Sonnet 4.6+)."}]},99979:(e,t,n)=>{"use strict";function s(){return new URLSearchParams(window.location.search).get("ws")}function r(e){return e?{"x-beacon-workspace":e}:{}}function a(e){let t=new URLSearchParams,n=s();for(let[s,r]of(n&&t.set("ws",n),Object.entries(e??{})))t.set(s,r);let r=t.toString();return r?`/plan?${r}`:"/plan"}n.d(t,{X0:()=>s,dh:()=>r,rc:()=>a})}},e=>{e.O(0,[2574,3862,8500,4294,766,1202,6773,8441,3794,7358],()=>e(e.s=22137)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4662],{4474:(e,t,a)=>{"use strict";a.d(t,{$:()=>o});var s=a(95155),r=a(6539),n=a(18460),i=a(91337);let d=(0,n.F)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function o({className:e,variant:t="default",size:a="default",...n}){return(0,s.jsx)(r.Button,{"data-slot":"button",className:(0,i.cn)(d({variant:t,size:a,className:e})),...n})}},26518:(e,t,a)=>{"use strict";a.d(t,{bq:()=>N,eb:()=>k,gC:()=>z,l6:()=>y,yv:()=>w});var s=a(95155);a(12115);var r=a(40595),n=a(41294),i=a(75681),d=a(17314),o=a(37265),l=a(23107),c=a(70826),u=a(67564),p=a(1938),g=a(15433),m=a(5919),x=a(45450),h=a(88988),f=a(91337),v=a(12363),b=a(64577),j=a(94088);let y=r.H;function w({className:e,...t}){return(0,s.jsx)(n.y,{"data-slot":"select-value",className:(0,f.cn)("flex flex-1 text-left",e),...t})}function N({className:e,size:t="default",children:a,...r}){return(0,s.jsxs)(i.b,{"data-slot":"select-trigger","data-size":t,className:(0,f.cn)("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[a,(0,s.jsx)(d.w,{render:(0,s.jsx)(v.A,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function z({className:e,children:t,side:a="bottom",sideOffset:r=4,align:n="center",alignOffset:i=0,alignItemWithTrigger:d=!0,...p}){return(0,s.jsx)(o.V,{children:(0,s.jsx)(l.l,{side:a,sideOffset:r,align:n,alignOffset:i,alignItemWithTrigger:d,className:"isolate z-50",children:(0,s.jsxs)(c.t,{"data-slot":"select-content","data-align-trigger":d,className:(0,f.cn)("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...p,children:[(0,s.jsx)(C,{}),(0,s.jsx)(u.B,{children:t}),(0,s.jsx)(_,{})]})})})}function k({className:e,children:t,...a}){return(0,s.jsxs)(p.e,{"data-slot":"select-item",className:(0,f.cn)("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[(0,s.jsx)(g.h,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:t}),(0,s.jsx)(m.h,{render:(0,s.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:(0,s.jsx)(b.A,{className:"pointer-events-none"})})]})}function C({className:e,...t}){return(0,s.jsx)(x.w,{"data-slot":"select-scroll-up-button",className:(0,f.cn)("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,s.jsx)(j.A,{})})}function _({className:e,...t}){return(0,s.jsx)(h.d,{"data-slot":"select-scroll-down-button",className:(0,f.cn)("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,s.jsx)(v.A,{})})}},50981:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(30772).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},67787:(e,t,a)=>{"use strict";a.d(t,{PermissionModeCard:()=>l});var s=a(95155),r=a(12115),n=a(50981),i=a(79984),d=a(26518),o=a(97358);function l(){let[e,t]=(0,r.useState)("default"),[a,l]=(0,r.useState)(!1);async function c(e){t(e),l(!1),await fetch("/api/preferences",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({planApprovalMode:e})}).catch(()=>{}),l(!0)}(0,r.useEffect)(()=>{let e=!0;return fetch("/api/preferences",{cache:"no-store"}).then(e=>e.ok?e.json():null).then(a=>{e&&a&&t(a.planApprovalMode??"default")}).catch(()=>{}),()=>{e=!1}},[]);let u=o.pC.find(t=>t.value===e);return(0,s.jsxs)(i.Zp,{children:[(0,s.jsxs)(i.aR,{children:[(0,s.jsxs)(i.ZB,{className:"flex items-center gap-2 text-base",children:[(0,s.jsx)(n.A,{className:"size-4 text-emerald-400"}),"Permission mode after approval"]}),(0,s.jsx)(i.BT,{children:"When you approve a plan, your terminal session switches to this permission mode. Applies to all projects. (Requires Claude Code 2.1.7+.)"})]}),(0,s.jsxs)(i.Wu,{className:"flex items-center gap-3",children:[(0,s.jsxs)(d.l6,{value:e,onValueChange:e=>e&&void c(e),children:[(0,s.jsx)(d.bq,{className:"h-9 w-64",children:(0,s.jsx)(d.yv,{})}),(0,s.jsx)(d.gC,{children:o.pC.map(e=>(0,s.jsx)(d.eb,{value:e.value,children:e.label},e.value))})]}),u&&(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:u.description}),a&&(0,s.jsx)("span",{className:"text-xs text-emerald-300",children:"✓ saved"})]})]})}},70521:(e,t,a)=>{"use strict";a.d(t,{$v:()=>w,EO:()=>v,Lt:()=>m,Rx:()=>N,Zr:()=>z,ck:()=>j,r7:()=>y,tv:()=>x,wd:()=>b});var s=a(95155);a(12115);var r=a(25381),n=a(7121),i=a(51880),d=a(35176),o=a(11248),l=a(82022),c=a(98758),u=a(45362),p=a(91337),g=a(4474);function m({...e}){return(0,s.jsx)(r.V,{"data-slot":"alert-dialog",...e})}function x({...e}){return(0,s.jsx)(n.t,{"data-slot":"alert-dialog-trigger",...e})}function h({...e}){return(0,s.jsx)(i.Z,{"data-slot":"alert-dialog-portal",...e})}function f({className:e,...t}){return(0,s.jsx)(d.X,{"data-slot":"alert-dialog-overlay",className:(0,p.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function v({className:e,size:t="default",...a}){return(0,s.jsxs)(h,{children:[(0,s.jsx)(f,{}),(0,s.jsx)(o.h,{"data-slot":"alert-dialog-content","data-size":t,className:(0,p.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...a})]})}function b({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,p.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...t})}function j({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,p.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...t})}function y({className:e,...t}){return(0,s.jsx)(l.L,{"data-slot":"alert-dialog-title",className:(0,p.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...t})}function w({className:e,...t}){return(0,s.jsx)(c.r,{"data-slot":"alert-dialog-description",className:(0,p.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}function N({className:e,variant:t,size:a,...r}){return(0,s.jsx)(u.H,{"data-slot":"alert-dialog-action",className:(0,p.cn)(e),render:(0,s.jsx)(g.$,{variant:t,size:a}),...r})}function z({className:e,variant:t="outline",size:a="default",...r}){return(0,s.jsx)(u.H,{"data-slot":"alert-dialog-cancel",className:(0,p.cn)(e),render:(0,s.jsx)(g.$,{variant:t,size:a}),...r})}},71423:(e,t,a)=>{"use strict";a.d(t,{DangerCard:()=>l});var s=a(95155),r=a(12115),n=a(73321),i=a(65738),d=a(79984),o=a(70521);function l(){let e=(0,n.useRouter)(),[t,a]=(0,r.useState)(!1),[l,c]=(0,r.useState)(!1);async function u(){a(!0);try{(await fetch("/api/reset",{method:"POST"})).ok&&(c(!0),e.refresh())}finally{a(!1)}}return(0,s.jsxs)(d.Zp,{className:"border-red-500/30",children:[(0,s.jsxs)(d.aR,{children:[(0,s.jsx)(d.ZB,{className:"text-base text-red-400",children:"Danger zone"}),(0,s.jsx)(d.BT,{children:"Erases all project data — the map, the database, drafts, the code graph and the generated summary — leaving the panel empty. Your preferences (provider and editor) are kept. This cannot be undone."})]}),(0,s.jsxs)(d.Wu,{className:"flex items-center gap-3",children:[(0,s.jsxs)(o.Lt,{children:[(0,s.jsxs)(o.tv,{className:"inline-flex h-9 items-center gap-2 rounded-lg bg-red-600 px-3 text-sm font-medium text-white transition-colors hover:bg-red-500 disabled:opacity-50",disabled:t,children:[(0,s.jsx)(i.A,{className:"size-4"}),t?"Erasing…":"Erase all data"]}),(0,s.jsxs)(o.EO,{children:[(0,s.jsxs)(o.wd,{children:[(0,s.jsx)(o.r7,{children:"Erase all data?"}),(0,s.jsx)(o.$v,{children:"This permanently removes the map, the database, drafts, the code graph and the project summary. This action cannot be undone."})]}),(0,s.jsxs)(o.ck,{children:[(0,s.jsx)(o.Zr,{children:"Cancel"}),(0,s.jsx)(o.Rx,{onClick:u,className:"bg-red-600 text-white hover:bg-red-500",children:"Yes, erase everything"})]})]})]}),l&&(0,s.jsx)("span",{className:"text-xs text-red-300",children:"✓ data erased"})]})]})}},79984:(e,t,a)=>{"use strict";a.d(t,{BT:()=>l,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>d});var s=a(95155);a(12115);var r=a(91337),n=a(82099);function i({className:e,...t}){return(0,s.jsx)(n.b,{"data-slot":"card",className:(0,r.cn)("text-card-foreground flex flex-col gap-6 rounded-2xl py-6",e),...t})}function d({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function o({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("leading-none font-semibold",e),...t})}function l({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-muted-foreground text-sm",e),...t})}function c({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-6",e),...t})}},81453:(e,t,a)=>{"use strict";a.d(t,{ContextCard:()=>d});var s=a(95155),r=a(12115),n=a(79984),i=a(4474);function d(){let[e,t]=(0,r.useState)(null),[a,d]=(0,r.useState)(!1);async function o(){d(!0),t(null);try{let e=await fetch("/api/context",{method:"POST"});if(!e.ok)return void t(await e.text());let a=await e.json();t(a.files?.length?`Updated: ${a.files.map(e=>e.split("/").pop()).join(" + ")}`:"Nothing to update")}catch{t("Failed")}finally{d(!1)}}return(0,s.jsxs)(n.Zp,{children:[(0,s.jsxs)(n.aR,{children:[(0,s.jsx)(n.ZB,{className:"text-base",children:"Context for the AI"}),(0,s.jsxs)(n.BT,{children:["Generates ",(0,s.jsx)("span",{className:"font-mono",children:"AGENTS.md"})," (read by Cursor/Codex/Aider) and makes sure ",(0,s.jsx)("span",{className:"font-mono",children:"CLAUDE.md"})," imports it (Claude Code reads CLAUDE.md), from the current map."]})]}),(0,s.jsxs)(n.Wu,{className:"flex flex-wrap items-center gap-3",children:[(0,s.jsx)(i.$,{size:"sm",disabled:a,onClick:o,children:a?"Generating…":"Update AGENTS.md + CLAUDE.md"}),e&&(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:e})]})]})}},82099:(e,t,a)=>{"use strict";a.d(t,{b:()=>n});var s=a(95155);a(12115);var r=a(91337);function n({className:e,children:t,...a}){return(0,s.jsxs)("div",{className:(0,r.cn)("glass relative isolate overflow-hidden",e),...a,children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 rounded-[inherit]",style:{background:"radial-gradient(90% 60% at 0% 0%, oklch(1 0 0 / 0.04), transparent 42%)"}}),(0,s.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10 rounded-[inherit] opacity-[0.035] mix-blend-overlay",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E\")",backgroundSize:"120px 120px"}}),t]})}},91337:(e,t,a)=>{"use strict";a.d(t,{cn:()=>n});var s=a(29722),r=a(622);function n(...e){return(0,r.QP)((0,s.$)(e))}},95917:(e,t,a)=>{Promise.resolve().then(a.bind(a,81453)),Promise.resolve().then(a.bind(a,71423)),Promise.resolve().then(a.bind(a,96759)),Promise.resolve().then(a.bind(a,67787)),Promise.resolve().then(a.bind(a,6539)),Promise.resolve().then(a.bind(a,71265)),Promise.resolve().then(a.t.bind(a,98500,23))},96759:(e,t,a)=>{"use strict";a.d(t,{DeleteWorkspaceCard:()=>l});var s=a(95155),r=a(12115),n=a(73321),i=a(65738),d=a(79984),o=a(70521);function l({id:e,name:t}){let a=(0,n.useRouter)(),[c,u]=(0,r.useState)(!1);async function p(){u(!0);try{let t=await fetch("/api/workspace",{method:"DELETE",headers:{"content-type":"application/json"},body:JSON.stringify({id:e})});if(t.ok){let{fallbackId:e}=await t.json();document.cookie=e?`beacon_ws=${e}; Path=/; Max-Age=31536000; SameSite=Lax`:"beacon_ws=; Path=/; Max-Age=0; SameSite=Lax",a.refresh()}}finally{u(!1)}}return(0,s.jsxs)(d.Zp,{className:"border-red-500/30",children:[(0,s.jsxs)(d.aR,{children:[(0,s.jsx)(d.ZB,{className:"text-base text-red-400",children:"Delete this workspace"}),(0,s.jsxs)(d.BT,{children:["Removes ",(0,s.jsx)("span",{className:"font-medium text-foreground",children:t})," ","from Beacon and erases all of its Beacon data — the map, the database, drafts and the code graph. The repository's files on disk are untouched. This cannot be undone."]})]}),(0,s.jsx)(d.Wu,{className:"flex items-center gap-3",children:(0,s.jsxs)(o.Lt,{children:[(0,s.jsxs)(o.tv,{className:"inline-flex h-9 items-center gap-2 rounded-lg bg-red-600 px-3 text-sm font-medium text-white transition-colors hover:bg-red-500 disabled:opacity-50",disabled:c,children:[(0,s.jsx)(i.A,{className:"size-4"}),c?"Deleting…":"Delete workspace"]}),(0,s.jsxs)(o.EO,{children:[(0,s.jsxs)(o.wd,{children:[(0,s.jsxs)(o.r7,{children:["Delete workspace “",t,"”?"]}),(0,s.jsx)(o.$v,{children:"This permanently removes the workspace from Beacon and erases its data — the map, the database, drafts and the code graph. Your code is not affected; only Beacon's data for this repository is erased. This action cannot be undone."})]}),(0,s.jsxs)(o.ck,{children:[(0,s.jsx)(o.Zr,{children:"Cancel"}),(0,s.jsx)(o.Rx,{onClick:p,className:"bg-red-600 text-white hover:bg-red-500",children:"Yes, delete workspace"})]})]})]})})]})}},97358:(e,t,a)=>{"use strict";a.d(t,{pC:()=>s});let s=[{value:"default",label:"Manual approval",description:"Approve each tool call yourself — Claude Code's default."},{value:"acceptEdits",label:"Auto-accept edits",description:"Auto-approve file edits; still ask before running other tools."},{value:"bypassPermissions",label:"Bypass permissions",description:"Auto-approve every tool call (like --dangerously-skip-permissions)."},{value:"auto",label:"Auto",description:"Autonomous, gated by a safety classifier (needs a recent Claude Code + Sonnet 4.6+)."}]}},e=>{e.O(0,[8500,4294,766,8441,3794,7358],()=>e(e.s=95917)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7358],{16868:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,27123,23)),Promise.resolve().then(n.t.bind(n,61304,23)),Promise.resolve().then(n.t.bind(n,78616,23)),Promise.resolve().then(n.t.bind(n,64777,23)),Promise.resolve().then(n.t.bind(n,57121,23)),Promise.resolve().then(n.t.bind(n,74581,23)),Promise.resolve().then(n.t.bind(n,90484,23)),Promise.resolve().then(n.bind(n,86869))},19393:()=>{}},e=>{var s=s=>e(e.s=s);e.O(0,[8441,3794],()=>(s(83861),s(16868))),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,204,439,730,1145,1235,1288,1361,1570,1617,1662,1918,1929,2442,2681,2752,2821,2922,3087,3185,3290,3519,3688,3979,4360,4505,4636,4816,4852,4896,5022,5043,5152,5190,5412,5807,5884,6600,6714,6760,6805,6819,6886,6950,6988,7137,7317,7423,7612,7691,7705,7743,7851,8167,8235,8617,8650,9140,9550,9560],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,204,439,730,1145,1235,1288,1361,1570,1617,1662,1918,1929,2442,2681,2752,2821,2922,3087,3185,3290,3519,3688,3979,4360,4505,4636,4816,4852,4896,5022,5043,5152,5190,5412,5807,5884,6600,6714,6760,6805,6819,6886,6950,6988,7137,7317,7423,7612,7691,7705,7743,7851,8167,8235,8617,8650,9140,9550,9560],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9337],{15962:(e,s,_)=>{Promise.resolve().then(_.t.bind(_,27123,23))}},e=>{e.O(0,[8441,3794,7358],()=>e(e.s=15962)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,204,439,730,1145,1235,1288,1361,1570,1617,1662,1918,1929,2442,2681,2752,2821,2922,3087,3185,3290,3519,3688,3979,4360,4505,4636,4816,4852,4896,5022,5043,5152,5190,5412,5807,5884,6600,6714,6760,6805,6819,6886,6950,6988,7137,7317,7423,7612,7691,7705,7743,7851,8167,8235,8617,8650,9140,9550,9560],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44,204,439,730,1145,1235,1288,1361,1570,1617,1662,1918,1929,2442,2681,2752,2821,2922,3087,3185,3290,3519,3688,3979,4360,4505,4636,4816,4852,4896,5022,5043,5152,5190,5412,5807,5884,6600,6714,6760,6805,6819,6886,6950,6988,7137,7317,7423,7612,7691,7705,7743,7851,8167,8235,8617,8650,9140,9550,9560],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);