trybeacon 0.1.72 → 0.1.73

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 (388) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.next/BUILD_ID +1 -1
  3. package/.next/app-path-routes-manifest.json +22 -18
  4. package/.next/build-manifest.json +3 -3
  5. package/.next/prerender-manifest.json +3 -3
  6. package/.next/routes-manifest.json +30 -6
  7. package/.next/server/app/_global-error/page.js +3 -3
  8. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  9. package/.next/server/app/_global-error.html +1 -1
  10. package/.next/server/app/_global-error.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  15. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  16. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  17. package/.next/server/app/_not-found/page.js +2 -2
  18. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  19. package/.next/server/app/_not-found.html +1 -1
  20. package/.next/server/app/_not-found.rsc +11 -11
  21. package/.next/server/app/_not-found.segments/_full.segment.rsc +11 -11
  22. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  23. package/.next/server/app/_not-found.segments/_index.segment.rsc +11 -11
  24. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  25. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  26. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  27. package/.next/server/app/api/board-annotations/[id]/route.js +1 -1
  28. package/.next/server/app/api/board-annotations/route.js +1 -1
  29. package/.next/server/app/api/board-layout/route.js +1 -1
  30. package/.next/server/app/api/bug-flags/[id]/route.js +1 -1
  31. package/.next/server/app/api/bug-flags/route.js +1 -1
  32. package/.next/server/app/api/changes/comment/claim/route.js +1 -0
  33. package/.next/server/app/api/changes/comment/claim/route.js.nft.json +1 -0
  34. package/.next/server/app/api/changes/comment/claim/route_client-reference-manifest.js +1 -0
  35. package/.next/server/app/api/changes/comment/route.js +1 -0
  36. package/.next/server/app/api/changes/comment/route.js.nft.json +1 -0
  37. package/.next/server/app/api/changes/comment/route_client-reference-manifest.js +1 -0
  38. package/.next/server/app/api/changes/quality/route.js +1 -0
  39. package/.next/server/app/api/changes/quality/route.js.nft.json +1 -0
  40. package/.next/server/app/api/changes/quality/route_client-reference-manifest.js +1 -0
  41. package/.next/server/app/api/changes/route.js +1 -0
  42. package/.next/server/app/api/{flags → changes}/route.js.nft.json +1 -1
  43. package/.next/server/app/api/changes/route_client-reference-manifest.js +1 -0
  44. package/.next/server/app/api/changes/viewed/route.js +1 -0
  45. package/.next/server/app/api/changes/viewed/route.js.nft.json +1 -0
  46. package/.next/server/app/api/changes/viewed/route_client-reference-manifest.js +1 -0
  47. package/.next/server/app/api/code-graph/position/route.js +1 -1
  48. package/.next/server/app/api/code-graph/route.js +1 -1
  49. package/.next/server/app/api/context/feature/route.js +1 -1
  50. package/.next/server/app/api/context/file/route.js +1 -1
  51. package/.next/server/app/api/context/route.js +1 -9
  52. package/.next/server/app/api/context/route.js.nft.json +1 -1
  53. package/.next/server/app/api/db/arrange/route.js +1 -1
  54. package/.next/server/app/api/db/backfill-access/route.js +1 -1
  55. package/.next/server/app/api/db/position/route.js +1 -1
  56. package/.next/server/app/api/db/position/route.js.nft.json +1 -1
  57. package/.next/server/app/api/db/prune-planned/route.js +1 -1
  58. package/.next/server/app/api/db/reconcile-endpoints/route.js +1 -1
  59. package/.next/server/app/api/db/relations/[id]/route.js +1 -1
  60. package/.next/server/app/api/db/tables/[id]/route.js +1 -1
  61. package/.next/server/app/api/draft/approve/route.js +1 -1
  62. package/.next/server/app/api/draft/approve/route.js.nft.json +1 -1
  63. package/.next/server/app/api/draft/route.js +1 -1
  64. package/.next/server/app/api/draft/route.js.nft.json +1 -1
  65. package/.next/server/app/api/draft/status/route.js +1 -1
  66. package/.next/server/app/api/edges/[id]/route.js +1 -1
  67. package/.next/server/app/api/edges/route.js +1 -1
  68. package/.next/server/app/api/edges/route.js.nft.json +1 -1
  69. package/.next/server/app/api/endpoints/[id]/route.js +1 -1
  70. package/.next/server/app/api/entities/route.js +1 -1
  71. package/.next/server/app/api/ingest/route.js +1 -9
  72. package/.next/server/app/api/ingest/route.js.nft.json +1 -1
  73. package/.next/server/app/api/init/route.js +1 -9
  74. package/.next/server/app/api/init/route.js.nft.json +1 -1
  75. package/.next/server/app/api/lesson/close/route.js +1 -1
  76. package/.next/server/app/api/lesson/presence/route.js +1 -1
  77. package/.next/server/app/api/lesson/questions/route.js +1 -1
  78. package/.next/server/app/api/lesson/route.js +1 -1
  79. package/.next/server/app/api/lesson/save/route.js +1 -1
  80. package/.next/server/app/api/lesson/verdict/route.js +1 -1
  81. package/.next/server/app/api/map/describe/route.js +1 -9
  82. package/.next/server/app/api/map/describe/route.js.nft.json +1 -1
  83. package/.next/server/app/api/map/files/route.js +1 -1
  84. package/.next/server/app/api/map/files/route.js.nft.json +1 -1
  85. package/.next/server/app/api/map/finish/route.js +1 -1
  86. package/.next/server/app/api/map/finish/route.js.nft.json +1 -1
  87. package/.next/server/app/api/map/route.js +1 -1
  88. package/.next/server/app/api/map/route.js.nft.json +1 -1
  89. package/.next/server/app/api/map/start/route.js +1 -1
  90. package/.next/server/app/api/map/start/route.js.nft.json +1 -1
  91. package/.next/server/app/api/map/touch-active/route.js +1 -1
  92. package/.next/server/app/api/map/touch-active/route.js.nft.json +1 -1
  93. package/.next/server/app/api/mention-search/route.js +1 -1
  94. package/.next/server/app/api/nodes/[id]/position/route.js +1 -1
  95. package/.next/server/app/api/nodes/[id]/position/route.js.nft.json +1 -1
  96. package/.next/server/app/api/nodes/[id]/route.js +1 -1
  97. package/.next/server/app/api/nodes/[id]/route.js.nft.json +1 -1
  98. package/.next/server/app/api/nodes/positions/route.js +1 -1
  99. package/.next/server/app/api/nodes/positions/route.js.nft.json +1 -1
  100. package/.next/server/app/api/nodes/route.js +1 -1
  101. package/.next/server/app/api/nodes/route.js.nft.json +1 -1
  102. package/.next/server/app/api/nodes/subtasks/route.js +1 -1
  103. package/.next/server/app/api/nodes/subtasks/route.js.nft.json +1 -1
  104. package/.next/server/app/api/notes/[id]/route.js +1 -1
  105. package/.next/server/app/api/notes/route.js +1 -1
  106. package/.next/server/app/api/open/route.js +1 -1
  107. package/.next/server/app/api/plan/annotations/route.js +3 -3
  108. package/.next/server/app/api/plan/approve/route.js +1 -9
  109. package/.next/server/app/api/plan/approve/route.js.nft.json +1 -1
  110. package/.next/server/app/api/plan/history/route.js +1 -1
  111. package/.next/server/app/api/plan/markdown/route.js +1 -1
  112. package/.next/server/app/api/plan/markdown/route.js.nft.json +1 -1
  113. package/.next/server/app/api/plan/presence/route.js +1 -1
  114. package/.next/server/app/api/plan/route.js +1 -1
  115. package/.next/server/app/api/plan/route.js.nft.json +1 -1
  116. package/.next/server/app/api/plan/verdict/route.js +1 -1
  117. package/.next/server/app/api/plan/verdict/route.js.nft.json +1 -1
  118. package/.next/server/app/api/preferences/route.js +1 -1
  119. package/.next/server/app/api/project-meta/route.js +1 -1
  120. package/.next/server/app/api/reset/route.js +1 -1
  121. package/.next/server/app/api/scope-guard/check/route.js +1 -1
  122. package/.next/server/app/api/scope-guard/check/route.js.nft.json +1 -1
  123. package/.next/server/app/api/share/create/route.js +1 -1
  124. package/.next/server/app/api/share/create/route.js.nft.json +1 -1
  125. package/.next/server/app/api/share/route.js +1 -1
  126. package/.next/server/app/api/stream/route.js +2 -2
  127. package/.next/server/app/api/tab/nav/route.js +1 -1
  128. package/.next/server/app/api/tab/presence/route.js +1 -1
  129. package/.next/server/app/api/telemetry/route.js +1 -1
  130. package/.next/server/app/api/telemetry/stats/route.js +1 -1
  131. package/.next/server/app/api/version/route.js +1 -1
  132. package/.next/server/app/api/workspace/activate/route.js +1 -1
  133. package/.next/server/app/api/workspace/route.js +1 -1
  134. package/.next/server/app/apple-icon.png/route.js +1 -1
  135. package/.next/server/app/docs/page.js +2 -2
  136. package/.next/server/app/docs/page_client-reference-manifest.js +1 -1
  137. package/.next/server/app/docs.html +1 -1
  138. package/.next/server/app/docs.rsc +11 -11
  139. package/.next/server/app/docs.segments/_full.segment.rsc +11 -11
  140. package/.next/server/app/docs.segments/_head.segment.rsc +1 -1
  141. package/.next/server/app/docs.segments/_index.segment.rsc +11 -11
  142. package/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
  143. package/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +1 -1
  144. package/.next/server/app/docs.segments/docs.segment.rsc +1 -1
  145. package/.next/server/app/help/page.js +2 -2
  146. package/.next/server/app/help/page_client-reference-manifest.js +1 -1
  147. package/.next/server/app/help.html +1 -1
  148. package/.next/server/app/help.rsc +11 -11
  149. package/.next/server/app/help.segments/_full.segment.rsc +11 -11
  150. package/.next/server/app/help.segments/_head.segment.rsc +1 -1
  151. package/.next/server/app/help.segments/_index.segment.rsc +11 -11
  152. package/.next/server/app/help.segments/_tree.segment.rsc +2 -2
  153. package/.next/server/app/help.segments/help/__PAGE__.segment.rsc +1 -1
  154. package/.next/server/app/help.segments/help.segment.rsc +1 -1
  155. package/.next/server/app/icon.svg/route.js +1 -1
  156. package/.next/server/app/index.html +1 -1
  157. package/.next/server/app/index.rsc +11 -11
  158. package/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  159. package/.next/server/app/index.segments/_full.segment.rsc +11 -11
  160. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  161. package/.next/server/app/index.segments/_index.segment.rsc +11 -11
  162. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  163. package/.next/server/app/learn/page.js +4 -4
  164. package/.next/server/app/learn/page.js.nft.json +1 -1
  165. package/.next/server/app/learn/page_client-reference-manifest.js +1 -1
  166. package/.next/server/app/map/page.js +2 -2
  167. package/.next/server/app/map/page.js.nft.json +1 -1
  168. package/.next/server/app/map/page_client-reference-manifest.js +1 -1
  169. package/.next/server/app/page.js +2 -2
  170. package/.next/server/app/page_client-reference-manifest.js +1 -1
  171. package/.next/server/app/plan/page.js +12 -2
  172. package/.next/server/app/plan/page.js.nft.json +1 -1
  173. package/.next/server/app/plan/page_client-reference-manifest.js +1 -1
  174. package/.next/server/app/s/[token]/page.js +2 -2
  175. package/.next/server/app/s/[token]/page.js.nft.json +1 -1
  176. package/.next/server/app/s/[token]/page_client-reference-manifest.js +1 -1
  177. package/.next/server/app/settings/page.js +2 -2
  178. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  179. package/.next/server/app-paths-manifest.json +22 -18
  180. package/.next/server/chunks/1130.js +1 -1
  181. package/.next/server/chunks/230.js +1 -0
  182. package/.next/server/chunks/2693.js +5 -0
  183. package/.next/server/chunks/4307.js +1 -1
  184. package/.next/server/chunks/6469.js +10 -0
  185. package/.next/server/chunks/8190.js +1 -0
  186. package/.next/server/chunks/8227.js +1 -0
  187. package/.next/server/chunks/8674.js +7 -0
  188. package/.next/server/middleware-build-manifest.js +1 -1
  189. package/.next/server/pages/404.html +1 -1
  190. package/.next/server/pages/500.html +1 -1
  191. package/.next/server/server-reference-manifest.js +1 -1
  192. package/.next/server/server-reference-manifest.json +1 -1
  193. package/.next/static/chunks/5909-387573cddda35a48.js +1 -0
  194. package/.next/static/chunks/654-8e68a43e4c589e9c.js +1 -0
  195. package/.next/static/chunks/app/_global-error/page-5f4c3e6e9cc8e6c9.js +1 -0
  196. package/.next/static/chunks/app/api/board-annotations/[id]/route-5f4c3e6e9cc8e6c9.js +1 -0
  197. package/.next/static/chunks/app/api/board-annotations/route-5f4c3e6e9cc8e6c9.js +1 -0
  198. package/.next/static/chunks/app/api/board-layout/route-5f4c3e6e9cc8e6c9.js +1 -0
  199. package/.next/static/chunks/app/api/bug-flags/[id]/route-5f4c3e6e9cc8e6c9.js +1 -0
  200. package/.next/static/chunks/app/api/bug-flags/route-5f4c3e6e9cc8e6c9.js +1 -0
  201. package/.next/static/chunks/app/api/changes/comment/claim/route-5f4c3e6e9cc8e6c9.js +1 -0
  202. package/.next/static/chunks/app/api/changes/comment/route-5f4c3e6e9cc8e6c9.js +1 -0
  203. package/.next/static/chunks/app/api/changes/quality/route-5f4c3e6e9cc8e6c9.js +1 -0
  204. package/.next/static/chunks/app/api/changes/route-5f4c3e6e9cc8e6c9.js +1 -0
  205. package/.next/static/chunks/app/api/changes/viewed/route-5f4c3e6e9cc8e6c9.js +1 -0
  206. package/.next/static/chunks/app/api/code-graph/position/route-5f4c3e6e9cc8e6c9.js +1 -0
  207. package/.next/static/chunks/app/api/code-graph/route-5f4c3e6e9cc8e6c9.js +1 -0
  208. package/.next/static/chunks/app/api/context/feature/route-5f4c3e6e9cc8e6c9.js +1 -0
  209. package/.next/static/chunks/app/api/context/file/route-5f4c3e6e9cc8e6c9.js +1 -0
  210. package/.next/static/chunks/app/api/context/route-5f4c3e6e9cc8e6c9.js +1 -0
  211. package/.next/static/chunks/app/api/db/arrange/route-5f4c3e6e9cc8e6c9.js +1 -0
  212. package/.next/static/chunks/app/api/db/backfill-access/route-5f4c3e6e9cc8e6c9.js +1 -0
  213. package/.next/static/chunks/app/api/db/position/route-5f4c3e6e9cc8e6c9.js +1 -0
  214. package/.next/static/chunks/app/api/db/prune-planned/route-5f4c3e6e9cc8e6c9.js +1 -0
  215. package/.next/static/chunks/app/api/db/reconcile-endpoints/route-5f4c3e6e9cc8e6c9.js +1 -0
  216. package/.next/static/chunks/app/api/db/relations/[id]/route-5f4c3e6e9cc8e6c9.js +1 -0
  217. package/.next/static/chunks/app/api/db/tables/[id]/route-5f4c3e6e9cc8e6c9.js +1 -0
  218. package/.next/static/chunks/app/api/draft/approve/route-5f4c3e6e9cc8e6c9.js +1 -0
  219. package/.next/static/chunks/app/api/draft/route-5f4c3e6e9cc8e6c9.js +1 -0
  220. package/.next/static/chunks/app/api/draft/status/route-5f4c3e6e9cc8e6c9.js +1 -0
  221. package/.next/static/chunks/app/api/edges/[id]/route-5f4c3e6e9cc8e6c9.js +1 -0
  222. package/.next/static/chunks/app/api/edges/route-5f4c3e6e9cc8e6c9.js +1 -0
  223. package/.next/static/chunks/app/api/endpoints/[id]/route-5f4c3e6e9cc8e6c9.js +1 -0
  224. package/.next/static/chunks/app/api/entities/route-5f4c3e6e9cc8e6c9.js +1 -0
  225. package/.next/static/chunks/app/api/ingest/route-5f4c3e6e9cc8e6c9.js +1 -0
  226. package/.next/static/chunks/app/api/init/route-5f4c3e6e9cc8e6c9.js +1 -0
  227. package/.next/static/chunks/app/api/lesson/close/route-5f4c3e6e9cc8e6c9.js +1 -0
  228. package/.next/static/chunks/app/api/lesson/presence/route-5f4c3e6e9cc8e6c9.js +1 -0
  229. package/.next/static/chunks/app/api/lesson/questions/route-5f4c3e6e9cc8e6c9.js +1 -0
  230. package/.next/static/chunks/app/api/lesson/route-5f4c3e6e9cc8e6c9.js +1 -0
  231. package/.next/static/chunks/app/api/lesson/save/route-5f4c3e6e9cc8e6c9.js +1 -0
  232. package/.next/static/chunks/app/api/lesson/verdict/route-5f4c3e6e9cc8e6c9.js +1 -0
  233. package/.next/static/chunks/app/api/map/describe/route-5f4c3e6e9cc8e6c9.js +1 -0
  234. package/.next/static/chunks/app/api/map/files/route-5f4c3e6e9cc8e6c9.js +1 -0
  235. package/.next/static/chunks/app/api/map/finish/route-5f4c3e6e9cc8e6c9.js +1 -0
  236. package/.next/static/chunks/app/api/map/route-5f4c3e6e9cc8e6c9.js +1 -0
  237. package/.next/static/chunks/app/api/map/start/route-5f4c3e6e9cc8e6c9.js +1 -0
  238. package/.next/static/chunks/app/api/map/touch-active/route-5f4c3e6e9cc8e6c9.js +1 -0
  239. package/.next/static/chunks/app/api/mention-search/route-5f4c3e6e9cc8e6c9.js +1 -0
  240. package/.next/static/chunks/app/api/nodes/[id]/position/route-5f4c3e6e9cc8e6c9.js +1 -0
  241. package/.next/static/chunks/app/api/nodes/[id]/route-5f4c3e6e9cc8e6c9.js +1 -0
  242. package/.next/static/chunks/app/api/nodes/positions/route-5f4c3e6e9cc8e6c9.js +1 -0
  243. package/.next/static/chunks/app/api/nodes/route-5f4c3e6e9cc8e6c9.js +1 -0
  244. package/.next/static/chunks/app/api/nodes/subtasks/route-5f4c3e6e9cc8e6c9.js +1 -0
  245. package/.next/static/chunks/app/api/notes/[id]/route-5f4c3e6e9cc8e6c9.js +1 -0
  246. package/.next/static/chunks/app/api/notes/route-5f4c3e6e9cc8e6c9.js +1 -0
  247. package/.next/static/chunks/app/api/open/route-5f4c3e6e9cc8e6c9.js +1 -0
  248. package/.next/static/chunks/app/api/plan/annotations/route-5f4c3e6e9cc8e6c9.js +1 -0
  249. package/.next/static/chunks/app/api/plan/approve/route-5f4c3e6e9cc8e6c9.js +1 -0
  250. package/.next/static/chunks/app/api/plan/history/route-5f4c3e6e9cc8e6c9.js +1 -0
  251. package/.next/static/chunks/app/api/plan/markdown/route-5f4c3e6e9cc8e6c9.js +1 -0
  252. package/.next/static/chunks/app/api/plan/presence/route-5f4c3e6e9cc8e6c9.js +1 -0
  253. package/.next/static/chunks/app/api/plan/route-5f4c3e6e9cc8e6c9.js +1 -0
  254. package/.next/static/chunks/app/api/plan/verdict/route-5f4c3e6e9cc8e6c9.js +1 -0
  255. package/.next/static/chunks/app/api/preferences/route-5f4c3e6e9cc8e6c9.js +1 -0
  256. package/.next/static/chunks/app/api/project-meta/route-5f4c3e6e9cc8e6c9.js +1 -0
  257. package/.next/static/chunks/app/api/reset/route-5f4c3e6e9cc8e6c9.js +1 -0
  258. package/.next/static/chunks/app/api/scope-guard/check/route-5f4c3e6e9cc8e6c9.js +1 -0
  259. package/.next/static/chunks/app/api/share/create/route-5f4c3e6e9cc8e6c9.js +1 -0
  260. package/.next/static/chunks/app/api/share/route-5f4c3e6e9cc8e6c9.js +1 -0
  261. package/.next/static/chunks/app/api/stream/route-5f4c3e6e9cc8e6c9.js +1 -0
  262. package/.next/static/chunks/app/api/tab/nav/route-5f4c3e6e9cc8e6c9.js +1 -0
  263. package/.next/static/chunks/app/api/tab/presence/route-5f4c3e6e9cc8e6c9.js +1 -0
  264. package/.next/static/chunks/app/api/telemetry/route-5f4c3e6e9cc8e6c9.js +1 -0
  265. package/.next/static/chunks/app/api/telemetry/stats/route-5f4c3e6e9cc8e6c9.js +1 -0
  266. package/.next/static/chunks/app/api/version/route-5f4c3e6e9cc8e6c9.js +1 -0
  267. package/.next/static/chunks/app/api/workspace/activate/route-5f4c3e6e9cc8e6c9.js +1 -0
  268. package/.next/static/chunks/app/api/workspace/route-5f4c3e6e9cc8e6c9.js +1 -0
  269. package/.next/static/chunks/app/{layout-d3b7276f116dce46.js → layout-6e934a2850efd223.js} +1 -1
  270. package/.next/static/chunks/app/learn/{page-e5bd3257170098e7.js → page-a14eaf5143e2df55.js} +1 -1
  271. package/.next/static/chunks/app/map/{page-5ab46e5ea28ecd79.js → page-06282017c592fb3c.js} +1 -1
  272. package/.next/static/chunks/app/plan/page-41a3990cb858c5f2.js +11 -0
  273. package/.next/static/chunks/app/s/[token]/{page-8e4ffccdf7cd0309.js → page-a4deb16beff21840.js} +1 -1
  274. package/.next/static/chunks/app/settings/page-67cab634be8bfef2.js +1 -0
  275. package/.next/static/chunks/next/dist/client/components/builtin/app-error-5f4c3e6e9cc8e6c9.js +1 -0
  276. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-5f4c3e6e9cc8e6c9.js +1 -0
  277. package/.next/static/chunks/next/dist/client/components/builtin/not-found-5f4c3e6e9cc8e6c9.js +1 -0
  278. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-5f4c3e6e9cc8e6c9.js +1 -0
  279. package/.next/static/chunks/{webpack-de4a0d9611ec2cad.js → webpack-6c27b0ed1ac1459c.js} +1 -1
  280. package/.next/static/css/95dc31edc34789a7.css +1 -0
  281. package/.next/static/css/a5d17568738ef1e9.css +1 -0
  282. package/.next/static/mB9lqGEsIvB7tTvv9GU48/_buildManifest.js +1 -0
  283. package/.next/trace +45 -43
  284. package/.next/trace-build +1 -1
  285. package/.next/types/app/api/changes/comment/claim/route.ts +351 -0
  286. package/.next/types/app/api/changes/comment/route.ts +351 -0
  287. package/.next/types/app/api/changes/quality/route.ts +351 -0
  288. package/.next/types/app/api/{flags → changes}/route.ts +3 -3
  289. package/.next/types/app/api/changes/viewed/route.ts +351 -0
  290. package/.next/types/routes.d.ts +6 -2
  291. package/.next/types/validator.ts +45 -9
  292. package/bun.lock +54 -0
  293. package/dist/bin/doctor.js +33 -32
  294. package/dist/bin/guard.js +1 -1
  295. package/dist/bin/hook.js +33 -32
  296. package/dist/bin/mcp.js +43 -42
  297. package/dist/bin/plan.js +35 -34
  298. package/dist/bin/uninstall.js +34 -33
  299. package/dist/lib/assets.js +25 -24
  300. package/dist/lib/codex-install.js +32 -31
  301. package/dist/lib/global-install.js +33 -32
  302. package/package.json +3 -1
  303. package/plugin/skills/beacon-plan/SKILL.md +5 -4
  304. package/.next/server/app/api/flags/route.js +0 -1
  305. package/.next/server/app/api/flags/route_client-reference-manifest.js +0 -1
  306. package/.next/server/chunks/3098.js +0 -1
  307. package/.next/server/chunks/3221.js +0 -5
  308. package/.next/server/chunks/7604.js +0 -1
  309. package/.next/static/chunks/2416-dbbbff4e4c9abad1.js +0 -1
  310. package/.next/static/chunks/app/_global-error/page-93569b5eb93a61e9.js +0 -1
  311. package/.next/static/chunks/app/api/board-annotations/[id]/route-93569b5eb93a61e9.js +0 -1
  312. package/.next/static/chunks/app/api/board-annotations/route-93569b5eb93a61e9.js +0 -1
  313. package/.next/static/chunks/app/api/board-layout/route-93569b5eb93a61e9.js +0 -1
  314. package/.next/static/chunks/app/api/bug-flags/[id]/route-93569b5eb93a61e9.js +0 -1
  315. package/.next/static/chunks/app/api/bug-flags/route-93569b5eb93a61e9.js +0 -1
  316. package/.next/static/chunks/app/api/code-graph/position/route-93569b5eb93a61e9.js +0 -1
  317. package/.next/static/chunks/app/api/code-graph/route-93569b5eb93a61e9.js +0 -1
  318. package/.next/static/chunks/app/api/context/feature/route-93569b5eb93a61e9.js +0 -1
  319. package/.next/static/chunks/app/api/context/file/route-93569b5eb93a61e9.js +0 -1
  320. package/.next/static/chunks/app/api/context/route-93569b5eb93a61e9.js +0 -1
  321. package/.next/static/chunks/app/api/db/arrange/route-93569b5eb93a61e9.js +0 -1
  322. package/.next/static/chunks/app/api/db/backfill-access/route-93569b5eb93a61e9.js +0 -1
  323. package/.next/static/chunks/app/api/db/position/route-93569b5eb93a61e9.js +0 -1
  324. package/.next/static/chunks/app/api/db/prune-planned/route-93569b5eb93a61e9.js +0 -1
  325. package/.next/static/chunks/app/api/db/reconcile-endpoints/route-93569b5eb93a61e9.js +0 -1
  326. package/.next/static/chunks/app/api/db/relations/[id]/route-93569b5eb93a61e9.js +0 -1
  327. package/.next/static/chunks/app/api/db/tables/[id]/route-93569b5eb93a61e9.js +0 -1
  328. package/.next/static/chunks/app/api/draft/approve/route-93569b5eb93a61e9.js +0 -1
  329. package/.next/static/chunks/app/api/draft/route-93569b5eb93a61e9.js +0 -1
  330. package/.next/static/chunks/app/api/draft/status/route-93569b5eb93a61e9.js +0 -1
  331. package/.next/static/chunks/app/api/edges/[id]/route-93569b5eb93a61e9.js +0 -1
  332. package/.next/static/chunks/app/api/edges/route-93569b5eb93a61e9.js +0 -1
  333. package/.next/static/chunks/app/api/endpoints/[id]/route-93569b5eb93a61e9.js +0 -1
  334. package/.next/static/chunks/app/api/entities/route-93569b5eb93a61e9.js +0 -1
  335. package/.next/static/chunks/app/api/flags/route-93569b5eb93a61e9.js +0 -1
  336. package/.next/static/chunks/app/api/ingest/route-93569b5eb93a61e9.js +0 -1
  337. package/.next/static/chunks/app/api/init/route-93569b5eb93a61e9.js +0 -1
  338. package/.next/static/chunks/app/api/lesson/close/route-93569b5eb93a61e9.js +0 -1
  339. package/.next/static/chunks/app/api/lesson/presence/route-93569b5eb93a61e9.js +0 -1
  340. package/.next/static/chunks/app/api/lesson/questions/route-93569b5eb93a61e9.js +0 -1
  341. package/.next/static/chunks/app/api/lesson/route-93569b5eb93a61e9.js +0 -1
  342. package/.next/static/chunks/app/api/lesson/save/route-93569b5eb93a61e9.js +0 -1
  343. package/.next/static/chunks/app/api/lesson/verdict/route-93569b5eb93a61e9.js +0 -1
  344. package/.next/static/chunks/app/api/map/describe/route-93569b5eb93a61e9.js +0 -1
  345. package/.next/static/chunks/app/api/map/files/route-93569b5eb93a61e9.js +0 -1
  346. package/.next/static/chunks/app/api/map/finish/route-93569b5eb93a61e9.js +0 -1
  347. package/.next/static/chunks/app/api/map/route-93569b5eb93a61e9.js +0 -1
  348. package/.next/static/chunks/app/api/map/start/route-93569b5eb93a61e9.js +0 -1
  349. package/.next/static/chunks/app/api/map/touch-active/route-93569b5eb93a61e9.js +0 -1
  350. package/.next/static/chunks/app/api/mention-search/route-93569b5eb93a61e9.js +0 -1
  351. package/.next/static/chunks/app/api/nodes/[id]/position/route-93569b5eb93a61e9.js +0 -1
  352. package/.next/static/chunks/app/api/nodes/[id]/route-93569b5eb93a61e9.js +0 -1
  353. package/.next/static/chunks/app/api/nodes/positions/route-93569b5eb93a61e9.js +0 -1
  354. package/.next/static/chunks/app/api/nodes/route-93569b5eb93a61e9.js +0 -1
  355. package/.next/static/chunks/app/api/nodes/subtasks/route-93569b5eb93a61e9.js +0 -1
  356. package/.next/static/chunks/app/api/notes/[id]/route-93569b5eb93a61e9.js +0 -1
  357. package/.next/static/chunks/app/api/notes/route-93569b5eb93a61e9.js +0 -1
  358. package/.next/static/chunks/app/api/open/route-93569b5eb93a61e9.js +0 -1
  359. package/.next/static/chunks/app/api/plan/annotations/route-93569b5eb93a61e9.js +0 -1
  360. package/.next/static/chunks/app/api/plan/approve/route-93569b5eb93a61e9.js +0 -1
  361. package/.next/static/chunks/app/api/plan/history/route-93569b5eb93a61e9.js +0 -1
  362. package/.next/static/chunks/app/api/plan/markdown/route-93569b5eb93a61e9.js +0 -1
  363. package/.next/static/chunks/app/api/plan/presence/route-93569b5eb93a61e9.js +0 -1
  364. package/.next/static/chunks/app/api/plan/route-93569b5eb93a61e9.js +0 -1
  365. package/.next/static/chunks/app/api/plan/verdict/route-93569b5eb93a61e9.js +0 -1
  366. package/.next/static/chunks/app/api/preferences/route-93569b5eb93a61e9.js +0 -1
  367. package/.next/static/chunks/app/api/project-meta/route-93569b5eb93a61e9.js +0 -1
  368. package/.next/static/chunks/app/api/reset/route-93569b5eb93a61e9.js +0 -1
  369. package/.next/static/chunks/app/api/scope-guard/check/route-93569b5eb93a61e9.js +0 -1
  370. package/.next/static/chunks/app/api/share/create/route-93569b5eb93a61e9.js +0 -1
  371. package/.next/static/chunks/app/api/share/route-93569b5eb93a61e9.js +0 -1
  372. package/.next/static/chunks/app/api/stream/route-93569b5eb93a61e9.js +0 -1
  373. package/.next/static/chunks/app/api/tab/nav/route-93569b5eb93a61e9.js +0 -1
  374. package/.next/static/chunks/app/api/tab/presence/route-93569b5eb93a61e9.js +0 -1
  375. package/.next/static/chunks/app/api/telemetry/route-93569b5eb93a61e9.js +0 -1
  376. package/.next/static/chunks/app/api/telemetry/stats/route-93569b5eb93a61e9.js +0 -1
  377. package/.next/static/chunks/app/api/version/route-93569b5eb93a61e9.js +0 -1
  378. package/.next/static/chunks/app/api/workspace/activate/route-93569b5eb93a61e9.js +0 -1
  379. package/.next/static/chunks/app/api/workspace/route-93569b5eb93a61e9.js +0 -1
  380. package/.next/static/chunks/app/plan/page-948f3eca400e746a.js +0 -1
  381. package/.next/static/chunks/app/settings/page-7e176d120b1effa9.js +0 -1
  382. package/.next/static/chunks/next/dist/client/components/builtin/app-error-93569b5eb93a61e9.js +0 -1
  383. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-93569b5eb93a61e9.js +0 -1
  384. package/.next/static/chunks/next/dist/client/components/builtin/not-found-93569b5eb93a61e9.js +0 -1
  385. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-93569b5eb93a61e9.js +0 -1
  386. package/.next/static/css/446974879473fd01.css +0 -1
  387. package/.next/static/lnOOQsWRymiliRmMEQ95F/_buildManifest.js +0 -1
  388. /package/.next/static/{lnOOQsWRymiliRmMEQ95F → mB9lqGEsIvB7tTvv9GU48}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=5412,a.ids=[5412],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16698:a=>{a.exports=require("node:async_hooks")},19225:(a,b,c)=>{a.exports=c(44870)},28855:a=>{a.exports=import("@libsql/client")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31059:(a,b,c)=>{c.d(b,{ie:()=>f});var d=c(37096),e=c(71484);function f(...a){return a[0].columns?new g(a[0].columns,a[0].name):new g(a)}class g{static [d.i]="SQLitePrimaryKeyBuilder";columns;name;constructor(a,b){this.columns=a,this.name=b}build(a){return new h(a,this.columns,this.name)}}class h{constructor(a,b,c){this.table=a,this.columns=b,this.name=c}static [d.i]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[e.jo.Symbol.Name]}_${this.columns.map(a=>a.name).join("_")}_pk`}}},31421:a=>{a.exports=require("node:child_process")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48086:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(51191),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/nodes/subtasks/route",pathname:"/api/nodes/subtasks",filename:"route",bundlePath:"app/api/nodes/subtasks/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/beacon/beacon/app/api/nodes/subtasks/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/nodes/subtasks/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},48161:a=>{a.exports=require("node:os")},51191:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>j});var e=c(44046),f=c(70299),g=c(56727),h=c(6716),i=a([f,g]);[f,g]=i.then?(await i)():i;let k=e.Ik({parentId:e.Yj().trim().min(1).nullish(),parentTitle:e.Yj().trim().min(1).nullish(),items:e.YO(e.Ik({title:e.Yj().trim().min(1).max(200),plain:e.Yj().trim().max(2e3).nullish(),kind:e.Yj().trim().max(16).nullish(),layer:e.Yj().trim().max(16).nullish()})).min(1)});async function j(a){let b;try{b=k.parse(await a.json())}catch(a){return new Response(`Invalid body: ${a instanceof Error?a.message:"error"}`,{status:400})}return b.parentId||b.parentTitle?(0,g.X_)((0,h.Ck)(a),async()=>{let a=await (0,f.Ol)({parentId:b.parentId??void 0,parentTitle:b.parentTitle??void 0,items:b.items});return a.ok?Response.json({ok:!0,parent:a.parent,created:a.created}):"parent_not_found"===a.reason?Response.json({ok:!1,reason:"parent_not_found",error:"No parent feature matched. Call beacon_map to get the parent's id and pass it as parentId."},{status:404}):"ambiguous"===a.reason?Response.json({ok:!1,reason:"ambiguous",candidates:a.candidates},{status:409}):"duplicate"===a.reason?Response.json({ok:!1,reason:"duplicate",error:a.message},{status:409}):Response.json({ok:!1,reason:a.reason},{status:400})}):new Response("parentId or parentTitle is required",{status:400})}d()}catch(a){d(a)}})},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},76760:a=>{a.exports=require("node:path")},76968:(a,b,c)=>{c.d(b,{GL:()=>i,Pe:()=>h});var d=c(37096);class e{constructor(a,b){this.name=a,this.unique=b}static [d.i]="SQLiteIndexBuilderOn";on(...a){return new f(this.name,a,this.unique)}}class f{static [d.i]="SQLiteIndexBuilder";config;constructor(a,b,c){this.config={name:a,columns:b,unique:c,where:void 0}}where(a){return this.config.where=a,this}build(a){return new g(this.config,a)}}class g{static [d.i]="SQLiteIndex";config;constructor(a,b){this.config={...a,table:b}}}function h(a){return new e(a,!1)}function i(a){return new e(a,!0)}},77598:a=>{a.exports=require("node:crypto")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1669,3254,9884,5871,4046,9683,9734,3098,1130],()=>b(b.s=48086));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=5412,a.ids=[5412],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16698:a=>{a.exports=require("node:async_hooks")},19225:(a,b,c)=>{a.exports=c(44870)},28855:a=>{a.exports=import("@libsql/client")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31059:(a,b,c)=>{c.d(b,{ie:()=>f});var d=c(37096),e=c(71484);function f(...a){return a[0].columns?new g(a[0].columns,a[0].name):new g(a)}class g{static [d.i]="SQLitePrimaryKeyBuilder";columns;name;constructor(a,b){this.columns=a,this.name=b}build(a){return new h(a,this.columns,this.name)}}class h{constructor(a,b,c){this.table=a,this.columns=b,this.name=c}static [d.i]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[e.jo.Symbol.Name]}_${this.columns.map(a=>a.name).join("_")}_pk`}}},31421:a=>{a.exports=require("node:child_process")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51191:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>j});var e=c(44046),f=c(70299),g=c(56727),h=c(6716),i=a([f,g]);[f,g]=i.then?(await i)():i;let k=e.Ik({parentId:e.Yj().trim().min(1).nullish(),parentTitle:e.Yj().trim().min(1).nullish(),items:e.YO(e.Ik({title:e.Yj().trim().min(1).max(200),plain:e.Yj().trim().max(2e3).nullish(),kind:e.Yj().trim().max(16).nullish(),layer:e.Yj().trim().max(16).nullish()})).min(1)});async function j(a){let b;try{b=k.parse(await a.json())}catch(a){return new Response(`Invalid body: ${a instanceof Error?a.message:"error"}`,{status:400})}return b.parentId||b.parentTitle?(0,g.X_)((0,h.Ck)(a),async()=>{let a=await (0,f.Ol)({parentId:b.parentId??void 0,parentTitle:b.parentTitle??void 0,items:b.items});return a.ok?Response.json({ok:!0,parent:a.parent,created:a.created}):"parent_not_found"===a.reason?Response.json({ok:!1,reason:"parent_not_found",error:"No parent feature matched. Call beacon_map to get the parent's id and pass it as parentId."},{status:404}):"ambiguous"===a.reason?Response.json({ok:!1,reason:"ambiguous",candidates:a.candidates},{status:409}):"duplicate"===a.reason?Response.json({ok:!1,reason:"duplicate",error:a.message},{status:409}):Response.json({ok:!1,reason:a.reason},{status:400})}):new Response("parentId or parentTitle is required",{status:400})}d()}catch(a){d(a)}})},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},73092:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(51191),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/nodes/subtasks/route",pathname:"/api/nodes/subtasks",filename:"route",bundlePath:"app/api/nodes/subtasks/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/beacon/beacon/app/api/nodes/subtasks/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/nodes/subtasks/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},73136:a=>{a.exports=require("node:url")},76760:a=>{a.exports=require("node:path")},76968:(a,b,c)=>{c.d(b,{GL:()=>i,Pe:()=>h});var d=c(37096);class e{constructor(a,b){this.name=a,this.unique=b}static [d.i]="SQLiteIndexBuilderOn";on(...a){return new f(this.name,a,this.unique)}}class f{static [d.i]="SQLiteIndexBuilder";config;constructor(a,b,c){this.config={name:a,columns:b,unique:c,where:void 0}}where(a){return this.config.where=a,this}build(a){return new g(this.config,a)}}class g{static [d.i]="SQLiteIndex";config;constructor(a,b){this.config={...a,table:b}}}function h(a){return new e(a,!1)}function i(a){return new e(a,!0)}},77598:a=>{a.exports=require("node:crypto")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1669,3254,9884,5871,4046,9683,9734,8227,1130],()=>b(b.s=73092));module.exports=c})();
@@ -1 +1 @@
1
- {"version":1,"files":["../../../../../../lib/drizzle/provision.ts","../../../../../../node_modules/@libsql/client/lib-cjs/hrana.js","../../../../../../node_modules/@libsql/client/lib-cjs/http.js","../../../../../../node_modules/@libsql/client/lib-cjs/node.js","../../../../../../node_modules/@libsql/client/lib-cjs/package.json","../../../../../../node_modules/@libsql/client/lib-cjs/sql_cache.js","../../../../../../node_modules/@libsql/client/lib-cjs/sqlite3.js","../../../../../../node_modules/@libsql/client/lib-cjs/ws.js","../../../../../../node_modules/@libsql/client/lib-esm/hrana.js","../../../../../../node_modules/@libsql/client/lib-esm/http.js","../../../../../../node_modules/@libsql/client/lib-esm/node.js","../../../../../../node_modules/@libsql/client/lib-esm/sql_cache.js","../../../../../../node_modules/@libsql/client/lib-esm/sqlite3.js","../../../../../../node_modules/@libsql/client/lib-esm/ws.js","../../../../../../node_modules/@libsql/client/package.json","../../../../../../node_modules/@libsql/core/lib-cjs/api.js","../../../../../../node_modules/@libsql/core/lib-cjs/config.js","../../../../../../node_modules/@libsql/core/lib-cjs/package.json","../../../../../../node_modules/@libsql/core/lib-cjs/uri.js","../../../../../../node_modules/@libsql/core/lib-cjs/util.js","../../../../../../node_modules/@libsql/core/lib-esm/api.js","../../../../../../node_modules/@libsql/core/lib-esm/config.js","../../../../../../node_modules/@libsql/core/lib-esm/uri.js","../../../../../../node_modules/@libsql/core/lib-esm/util.js","../../../../../../node_modules/@libsql/core/package.json","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/batch.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/byte_queue.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/client.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/cursor.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/describe.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/encoding/index.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/encoding/json/decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/encoding/json/encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/encoding/protobuf/decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/encoding/protobuf/encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/encoding/protobuf/util.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/errors.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/http/client.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/http/cursor.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/http/json_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/http/json_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/http/protobuf_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/http/protobuf_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/http/stream.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/id_alloc.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/index.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/libsql_url.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/package.json","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/queue.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/queue_microtask.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/result.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/shared/json_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/shared/json_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/shared/protobuf_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/shared/protobuf_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/sql.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/stmt.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/stream.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/util.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/value.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/ws/client.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/ws/cursor.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/ws/json_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/ws/json_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/ws/protobuf_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/ws/protobuf_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/ws/stream.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/batch.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/byte_queue.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/client.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/cursor.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/describe.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/encoding/index.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/encoding/json/decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/encoding/json/encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/util.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/errors.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/http/client.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/http/cursor.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/http/json_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/http/json_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/http/protobuf_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/http/protobuf_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/http/stream.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/id_alloc.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/index.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/libsql_url.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/queue.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/queue_microtask.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/result.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/shared/json_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/shared/json_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/sql.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/stmt.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/stream.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/util.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/value.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/ws/client.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/ws/cursor.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/ws/json_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/ws/json_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/ws/protobuf_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/ws/protobuf_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/ws/stream.js","../../../../../../node_modules/@libsql/hrana-client/package.json","../../../../../../node_modules/@libsql/isomorphic-ws/node.cjs","../../../../../../node_modules/@libsql/isomorphic-ws/node.mjs","../../../../../../node_modules/@libsql/isomorphic-ws/package.json","../../../../../../node_modules/@libsql/linux-x64-gnu/index.node","../../../../../../node_modules/@libsql/linux-x64-gnu/package.json","../../../../../../node_modules/@neon-rs/load/dist/index.js","../../../../../../node_modules/@neon-rs/load/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/detect-libc/lib/detect-libc.js","../../../../../../node_modules/detect-libc/lib/filesystem.js","../../../../../../node_modules/detect-libc/lib/process.js","../../../../../../node_modules/detect-libc/package.json","../../../../../../node_modules/js-base64/base64.js","../../../../../../node_modules/js-base64/base64.mjs","../../../../../../node_modules/js-base64/package.json","../../../../../../node_modules/libsql/auth.js","../../../../../../node_modules/libsql/index.js","../../../../../../node_modules/libsql/package.json","../../../../../../node_modules/libsql/sqlite-error.js","../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/promise-limit/index.js","../../../../../../node_modules/promise-limit/package.json","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/ws/index.js","../../../../../../node_modules/ws/lib/buffer-util.js","../../../../../../node_modules/ws/lib/constants.js","../../../../../../node_modules/ws/lib/event-target.js","../../../../../../node_modules/ws/lib/extension.js","../../../../../../node_modules/ws/lib/limiter.js","../../../../../../node_modules/ws/lib/permessage-deflate.js","../../../../../../node_modules/ws/lib/receiver.js","../../../../../../node_modules/ws/lib/sender.js","../../../../../../node_modules/ws/lib/stream.js","../../../../../../node_modules/ws/lib/subprotocol.js","../../../../../../node_modules/ws/lib/validation.js","../../../../../../node_modules/ws/lib/websocket-server.js","../../../../../../node_modules/ws/lib/websocket.js","../../../../../../node_modules/ws/package.json","../../../../../../node_modules/ws/wrapper.mjs","../../../../../../package.json","../../../../../package.json","../../../../chunks/1130.js","../../../../chunks/1669.js","../../../../chunks/2877.js","../../../../chunks/3098.js","../../../../chunks/3254.js","../../../../chunks/4046.js","../../../../chunks/4741.js","../../../../chunks/5258.js","../../../../chunks/5871.js","../../../../chunks/9683.js","../../../../chunks/9734.js","../../../../chunks/9884.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
1
+ {"version":1,"files":["../../../../../../lib/drizzle/provision.ts","../../../../../../node_modules/@libsql/client/lib-cjs/hrana.js","../../../../../../node_modules/@libsql/client/lib-cjs/http.js","../../../../../../node_modules/@libsql/client/lib-cjs/node.js","../../../../../../node_modules/@libsql/client/lib-cjs/package.json","../../../../../../node_modules/@libsql/client/lib-cjs/sql_cache.js","../../../../../../node_modules/@libsql/client/lib-cjs/sqlite3.js","../../../../../../node_modules/@libsql/client/lib-cjs/ws.js","../../../../../../node_modules/@libsql/client/lib-esm/hrana.js","../../../../../../node_modules/@libsql/client/lib-esm/http.js","../../../../../../node_modules/@libsql/client/lib-esm/node.js","../../../../../../node_modules/@libsql/client/lib-esm/sql_cache.js","../../../../../../node_modules/@libsql/client/lib-esm/sqlite3.js","../../../../../../node_modules/@libsql/client/lib-esm/ws.js","../../../../../../node_modules/@libsql/client/package.json","../../../../../../node_modules/@libsql/core/lib-cjs/api.js","../../../../../../node_modules/@libsql/core/lib-cjs/config.js","../../../../../../node_modules/@libsql/core/lib-cjs/package.json","../../../../../../node_modules/@libsql/core/lib-cjs/uri.js","../../../../../../node_modules/@libsql/core/lib-cjs/util.js","../../../../../../node_modules/@libsql/core/lib-esm/api.js","../../../../../../node_modules/@libsql/core/lib-esm/config.js","../../../../../../node_modules/@libsql/core/lib-esm/uri.js","../../../../../../node_modules/@libsql/core/lib-esm/util.js","../../../../../../node_modules/@libsql/core/package.json","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/batch.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/byte_queue.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/client.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/cursor.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/describe.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/encoding/index.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/encoding/json/decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/encoding/json/encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/encoding/protobuf/decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/encoding/protobuf/encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/encoding/protobuf/util.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/errors.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/http/client.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/http/cursor.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/http/json_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/http/json_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/http/protobuf_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/http/protobuf_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/http/stream.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/id_alloc.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/index.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/libsql_url.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/package.json","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/queue.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/queue_microtask.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/result.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/shared/json_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/shared/json_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/shared/protobuf_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/shared/protobuf_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/sql.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/stmt.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/stream.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/util.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/value.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/ws/client.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/ws/cursor.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/ws/json_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/ws/json_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/ws/protobuf_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/ws/protobuf_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-cjs/ws/stream.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/batch.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/byte_queue.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/client.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/cursor.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/describe.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/encoding/index.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/encoding/json/decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/encoding/json/encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/encoding/protobuf/util.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/errors.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/http/client.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/http/cursor.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/http/json_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/http/json_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/http/protobuf_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/http/protobuf_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/http/stream.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/id_alloc.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/index.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/libsql_url.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/queue.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/queue_microtask.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/result.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/shared/json_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/shared/json_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/shared/protobuf_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/sql.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/stmt.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/stream.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/util.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/value.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/ws/client.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/ws/cursor.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/ws/json_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/ws/json_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/ws/protobuf_decode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/ws/protobuf_encode.js","../../../../../../node_modules/@libsql/hrana-client/lib-esm/ws/stream.js","../../../../../../node_modules/@libsql/hrana-client/package.json","../../../../../../node_modules/@libsql/isomorphic-ws/node.cjs","../../../../../../node_modules/@libsql/isomorphic-ws/node.mjs","../../../../../../node_modules/@libsql/isomorphic-ws/package.json","../../../../../../node_modules/@libsql/linux-x64-gnu/index.node","../../../../../../node_modules/@libsql/linux-x64-gnu/package.json","../../../../../../node_modules/@neon-rs/load/dist/index.js","../../../../../../node_modules/@neon-rs/load/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/detect-libc/lib/detect-libc.js","../../../../../../node_modules/detect-libc/lib/filesystem.js","../../../../../../node_modules/detect-libc/lib/process.js","../../../../../../node_modules/detect-libc/package.json","../../../../../../node_modules/js-base64/base64.js","../../../../../../node_modules/js-base64/base64.mjs","../../../../../../node_modules/js-base64/package.json","../../../../../../node_modules/libsql/auth.js","../../../../../../node_modules/libsql/index.js","../../../../../../node_modules/libsql/package.json","../../../../../../node_modules/libsql/sqlite-error.js","../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/promise-limit/index.js","../../../../../../node_modules/promise-limit/package.json","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/ws/index.js","../../../../../../node_modules/ws/lib/buffer-util.js","../../../../../../node_modules/ws/lib/constants.js","../../../../../../node_modules/ws/lib/event-target.js","../../../../../../node_modules/ws/lib/extension.js","../../../../../../node_modules/ws/lib/limiter.js","../../../../../../node_modules/ws/lib/permessage-deflate.js","../../../../../../node_modules/ws/lib/receiver.js","../../../../../../node_modules/ws/lib/sender.js","../../../../../../node_modules/ws/lib/stream.js","../../../../../../node_modules/ws/lib/subprotocol.js","../../../../../../node_modules/ws/lib/validation.js","../../../../../../node_modules/ws/lib/websocket-server.js","../../../../../../node_modules/ws/lib/websocket.js","../../../../../../node_modules/ws/package.json","../../../../../../node_modules/ws/wrapper.mjs","../../../../../../package.json","../../../../../package.json","../../../../chunks/1130.js","../../../../chunks/1669.js","../../../../chunks/2877.js","../../../../chunks/3254.js","../../../../chunks/4046.js","../../../../chunks/4741.js","../../../../chunks/5258.js","../../../../chunks/5871.js","../../../../chunks/8227.js","../../../../chunks/9683.js","../../../../chunks/9734.js","../../../../chunks/9884.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=3185,a.ids=[3185],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16698:a=>{a.exports=require("node:async_hooks")},19225:(a,b,c)=>{a.exports=c(44870)},21816:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>i,PATCH:()=>h});var e=c(92781),f=c(68204),g=a([e,f]);[e,f]=g.then?(await g)():g;let h=(0,f.d)(async(a,{params:b})=>{let{id:c}=await b;try{return Response.json(await (0,e.w3)(c,await a.json()))}catch(a){return new Response(`Invalid edit: ${a instanceof Error?a.message:"error"}`,{status:400})}}),i=(0,f.d)(async(a,{params:b})=>{let{id:c}=await b;try{return await (0,e.Iy)(c),new Response(null,{status:204})}catch{return new Response("delete failed",{status:400})}});d()}catch(a){d(a)}})},28855:a=>{a.exports=import("@libsql/client")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31059:(a,b,c)=>{c.d(b,{ie:()=>f});var d=c(37096),e=c(71484);function f(...a){return a[0].columns?new g(a[0].columns,a[0].name):new g(a)}class g{static [d.i]="SQLitePrimaryKeyBuilder";columns;name;constructor(a,b){this.columns=a,this.name=b}build(a){return new h(a,this.columns,this.name)}}class h{constructor(a,b,c){this.table=a,this.columns=b,this.name=c}static [d.i]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[e.jo.Symbol.Name]}_${this.columns.map(a=>a.name).join("_")}_pk`}}},31421:a=>{a.exports=require("node:child_process")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},63496:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(21816),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/notes/[id]/route",pathname:"/api/notes/[id]",filename:"route",bundlePath:"app/api/notes/[id]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/beacon/beacon/app/api/notes/[id]/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/notes/[id]/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},68204:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{d:()=>i});var e=c(6716),f=c(56727),g=a([f]);async function h(a){if(a)return void await (0,e.kO)(a);let b=(0,e.UP)();b?await (0,e.kO)(b):await (0,f.e$)()}function i(a){return async(b,...c)=>{let d=await (0,e.AV)(b);return await h(d),(0,e.X_)(d,async()=>a(b,...c))}}f=(g.then?(await g)():g)[0],d()}catch(a){d(a)}})},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},76760:a=>{a.exports=require("node:path")},76968:(a,b,c)=>{c.d(b,{GL:()=>i,Pe:()=>h});var d=c(37096);class e{constructor(a,b){this.name=a,this.unique=b}static [d.i]="SQLiteIndexBuilderOn";on(...a){return new f(this.name,a,this.unique)}}class f{static [d.i]="SQLiteIndexBuilder";config;constructor(a,b,c){this.config={name:a,columns:b,unique:c,where:void 0}}where(a){return this.config.where=a,this}build(a){return new g(this.config,a)}}class g{static [d.i]="SQLiteIndex";config;constructor(a,b){this.config={...a,table:b}}}function h(a){return new e(a,!1)}function i(a){return new e(a,!0)}},77598:a=>{a.exports=require("node:crypto")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},92781:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{Iy:()=>o,mn:()=>m,p4:()=>l,w3:()=>n});var e=c(44046),f=c(91430),g=c(34216),h=c(56727),i=c(30046),j=c(19734),k=a([h,j]);[h,j]=k.then?(await k)():k;let p=e.Ik({title:e.Yj().max(200),body:e.Yj(),pinned:e.zM(),ord:e.ai()}).partial();async function l(){let[{max:a}]=await h.db.select({max:(0,f.ll)`max(${i.note.ord})`}).from(i.note),[b]=await h.db.insert(i.note).values({ord:(a??0)+1}).returning();return await (0,j.Bx)(),b}async function m(){return h.db.query.note.findMany({orderBy:(a,{desc:b})=>[b(a.pinned),b(a.updatedAt)]})}async function n(a,b){let c=p.parse(b),[d]=await h.db.update(i.note).set(c).where((0,g.eq)(i.note.id,a)).returning();return void 0!==c.title&&await (0,j.Bx)(),d}async function o(a){let[b]=await h.db.delete(i.note).where((0,g.eq)(i.note.id,a)).returning();return await (0,j.Bx)(),b}d()}catch(a){d(a)}})}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1669,3254,9884,5871,4046,9683,9734],()=>b(b.s=63496));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=3185,a.ids=[3185],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3058:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(21816),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/notes/[id]/route",pathname:"/api/notes/[id]",filename:"route",bundlePath:"app/api/notes/[id]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/beacon/beacon/app/api/notes/[id]/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/notes/[id]/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16698:a=>{a.exports=require("node:async_hooks")},19225:(a,b,c)=>{a.exports=c(44870)},21816:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>i,PATCH:()=>h});var e=c(92781),f=c(68204),g=a([e,f]);[e,f]=g.then?(await g)():g;let h=(0,f.d)(async(a,{params:b})=>{let{id:c}=await b;try{return Response.json(await (0,e.w3)(c,await a.json()))}catch(a){return new Response(`Invalid edit: ${a instanceof Error?a.message:"error"}`,{status:400})}}),i=(0,f.d)(async(a,{params:b})=>{let{id:c}=await b;try{return await (0,e.Iy)(c),new Response(null,{status:204})}catch{return new Response("delete failed",{status:400})}});d()}catch(a){d(a)}})},28855:a=>{a.exports=import("@libsql/client")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31059:(a,b,c)=>{c.d(b,{ie:()=>f});var d=c(37096),e=c(71484);function f(...a){return a[0].columns?new g(a[0].columns,a[0].name):new g(a)}class g{static [d.i]="SQLitePrimaryKeyBuilder";columns;name;constructor(a,b){this.columns=a,this.name=b}build(a){return new h(a,this.columns,this.name)}}class h{constructor(a,b,c){this.table=a,this.columns=b,this.name=c}static [d.i]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[e.jo.Symbol.Name]}_${this.columns.map(a=>a.name).join("_")}_pk`}}},31421:a=>{a.exports=require("node:child_process")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},68204:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{d:()=>i});var e=c(6716),f=c(56727),g=a([f]);async function h(a){if(a)return void await (0,e.kO)(a);let b=(0,e.UP)();b?await (0,e.kO)(b):await (0,f.e$)()}function i(a){return async(b,...c)=>{let d=await (0,e.AV)(b);return await h(d),(0,e.X_)(d,async()=>a(b,...c))}}f=(g.then?(await g)():g)[0],d()}catch(a){d(a)}})},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},76760:a=>{a.exports=require("node:path")},76968:(a,b,c)=>{c.d(b,{GL:()=>i,Pe:()=>h});var d=c(37096);class e{constructor(a,b){this.name=a,this.unique=b}static [d.i]="SQLiteIndexBuilderOn";on(...a){return new f(this.name,a,this.unique)}}class f{static [d.i]="SQLiteIndexBuilder";config;constructor(a,b,c){this.config={name:a,columns:b,unique:c,where:void 0}}where(a){return this.config.where=a,this}build(a){return new g(this.config,a)}}class g{static [d.i]="SQLiteIndex";config;constructor(a,b){this.config={...a,table:b}}}function h(a){return new e(a,!1)}function i(a){return new e(a,!0)}},77598:a=>{a.exports=require("node:crypto")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},92781:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{Iy:()=>o,mn:()=>m,p4:()=>l,w3:()=>n});var e=c(44046),f=c(91430),g=c(34216),h=c(56727),i=c(30046),j=c(19734),k=a([h,j]);[h,j]=k.then?(await k)():k;let p=e.Ik({title:e.Yj().max(200),body:e.Yj(),pinned:e.zM(),ord:e.ai()}).partial();async function l(){let[{max:a}]=await h.db.select({max:(0,f.ll)`max(${i.note.ord})`}).from(i.note),[b]=await h.db.insert(i.note).values({ord:(a??0)+1}).returning();return await (0,j.Bx)(),b}async function m(){return h.db.query.note.findMany({orderBy:(a,{desc:b})=>[b(a.pinned),b(a.updatedAt)]})}async function n(a,b){let c=p.parse(b),[d]=await h.db.update(i.note).set(c).where((0,g.eq)(i.note.id,a)).returning();return void 0!==c.title&&await (0,j.Bx)(),d}async function o(a){let[b]=await h.db.delete(i.note).where((0,g.eq)(i.note.id,a)).returning();return await (0,j.Bx)(),b}d()}catch(a){d(a)}})}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1669,3254,9884,5871,4046,9683,9734],()=>b(b.s=3058));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=2681,a.ids=[2681],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16698:a=>{a.exports=require("node:async_hooks")},19225:(a,b,c)=>{a.exports=c(44870)},28756:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(46108),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/notes/route",pathname:"/api/notes",filename:"route",bundlePath:"app/api/notes/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/beacon/beacon/app/api/notes/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/notes/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},28855:a=>{a.exports=import("@libsql/client")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31059:(a,b,c)=>{c.d(b,{ie:()=>f});var d=c(37096),e=c(71484);function f(...a){return a[0].columns?new g(a[0].columns,a[0].name):new g(a)}class g{static [d.i]="SQLitePrimaryKeyBuilder";columns;name;constructor(a,b){this.columns=a,this.name=b}build(a){return new h(a,this.columns,this.name)}}class h{constructor(a,b,c){this.table=a,this.columns=b,this.name=c}static [d.i]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[e.jo.Symbol.Name]}_${this.columns.map(a=>a.name).join("_")}_pk`}}},31421:a=>{a.exports=require("node:child_process")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46108:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>i,POST:()=>j,dynamic:()=>h});var e=c(92781),f=c(68204),g=a([e,f]);[e,f]=g.then?(await g)():g;let h="force-dynamic",i=(0,f.d)(async()=>Response.json(await (0,e.mn)())),j=(0,f.d)(async()=>Response.json(await (0,e.p4)()));d()}catch(a){d(a)}})},48161:a=>{a.exports=require("node:os")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},68204:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{d:()=>i});var e=c(6716),f=c(56727),g=a([f]);async function h(a){if(a)return void await (0,e.kO)(a);let b=(0,e.UP)();b?await (0,e.kO)(b):await (0,f.e$)()}function i(a){return async(b,...c)=>{let d=await (0,e.AV)(b);return await h(d),(0,e.X_)(d,async()=>a(b,...c))}}f=(g.then?(await g)():g)[0],d()}catch(a){d(a)}})},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},76760:a=>{a.exports=require("node:path")},76968:(a,b,c)=>{c.d(b,{GL:()=>i,Pe:()=>h});var d=c(37096);class e{constructor(a,b){this.name=a,this.unique=b}static [d.i]="SQLiteIndexBuilderOn";on(...a){return new f(this.name,a,this.unique)}}class f{static [d.i]="SQLiteIndexBuilder";config;constructor(a,b,c){this.config={name:a,columns:b,unique:c,where:void 0}}where(a){return this.config.where=a,this}build(a){return new g(this.config,a)}}class g{static [d.i]="SQLiteIndex";config;constructor(a,b){this.config={...a,table:b}}}function h(a){return new e(a,!1)}function i(a){return new e(a,!0)}},77598:a=>{a.exports=require("node:crypto")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},92781:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{Iy:()=>o,mn:()=>m,p4:()=>l,w3:()=>n});var e=c(44046),f=c(91430),g=c(34216),h=c(56727),i=c(30046),j=c(19734),k=a([h,j]);[h,j]=k.then?(await k)():k;let p=e.Ik({title:e.Yj().max(200),body:e.Yj(),pinned:e.zM(),ord:e.ai()}).partial();async function l(){let[{max:a}]=await h.db.select({max:(0,f.ll)`max(${i.note.ord})`}).from(i.note),[b]=await h.db.insert(i.note).values({ord:(a??0)+1}).returning();return await (0,j.Bx)(),b}async function m(){return h.db.query.note.findMany({orderBy:(a,{desc:b})=>[b(a.pinned),b(a.updatedAt)]})}async function n(a,b){let c=p.parse(b),[d]=await h.db.update(i.note).set(c).where((0,g.eq)(i.note.id,a)).returning();return void 0!==c.title&&await (0,j.Bx)(),d}async function o(a){let[b]=await h.db.delete(i.note).where((0,g.eq)(i.note.id,a)).returning();return await (0,j.Bx)(),b}d()}catch(a){d(a)}})}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1669,3254,9884,5871,4046,9683,9734],()=>b(b.s=28756));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=2681,a.ids=[2681],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16698:a=>{a.exports=require("node:async_hooks")},19225:(a,b,c)=>{a.exports=c(44870)},28855:a=>{a.exports=import("@libsql/client")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31059:(a,b,c)=>{c.d(b,{ie:()=>f});var d=c(37096),e=c(71484);function f(...a){return a[0].columns?new g(a[0].columns,a[0].name):new g(a)}class g{static [d.i]="SQLitePrimaryKeyBuilder";columns;name;constructor(a,b){this.columns=a,this.name=b}build(a){return new h(a,this.columns,this.name)}}class h{constructor(a,b,c){this.table=a,this.columns=b,this.name=c}static [d.i]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[e.jo.Symbol.Name]}_${this.columns.map(a=>a.name).join("_")}_pk`}}},31421:a=>{a.exports=require("node:child_process")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46108:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>i,POST:()=>j,dynamic:()=>h});var e=c(92781),f=c(68204),g=a([e,f]);[e,f]=g.then?(await g)():g;let h="force-dynamic",i=(0,f.d)(async()=>Response.json(await (0,e.mn)())),j=(0,f.d)(async()=>Response.json(await (0,e.p4)()));d()}catch(a){d(a)}})},48161:a=>{a.exports=require("node:os")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},68204:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{d:()=>i});var e=c(6716),f=c(56727),g=a([f]);async function h(a){if(a)return void await (0,e.kO)(a);let b=(0,e.UP)();b?await (0,e.kO)(b):await (0,f.e$)()}function i(a){return async(b,...c)=>{let d=await (0,e.AV)(b);return await h(d),(0,e.X_)(d,async()=>a(b,...c))}}f=(g.then?(await g)():g)[0],d()}catch(a){d(a)}})},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},76760:a=>{a.exports=require("node:path")},76968:(a,b,c)=>{c.d(b,{GL:()=>i,Pe:()=>h});var d=c(37096);class e{constructor(a,b){this.name=a,this.unique=b}static [d.i]="SQLiteIndexBuilderOn";on(...a){return new f(this.name,a,this.unique)}}class f{static [d.i]="SQLiteIndexBuilder";config;constructor(a,b,c){this.config={name:a,columns:b,unique:c,where:void 0}}where(a){return this.config.where=a,this}build(a){return new g(this.config,a)}}class g{static [d.i]="SQLiteIndex";config;constructor(a,b){this.config={...a,table:b}}}function h(a){return new e(a,!1)}function i(a){return new e(a,!0)}},77598:a=>{a.exports=require("node:crypto")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},86502:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(46108),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/notes/route",pathname:"/api/notes",filename:"route",bundlePath:"app/api/notes/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/beacon/beacon/app/api/notes/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/notes/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},92781:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{Iy:()=>o,mn:()=>m,p4:()=>l,w3:()=>n});var e=c(44046),f=c(91430),g=c(34216),h=c(56727),i=c(30046),j=c(19734),k=a([h,j]);[h,j]=k.then?(await k)():k;let p=e.Ik({title:e.Yj().max(200),body:e.Yj(),pinned:e.zM(),ord:e.ai()}).partial();async function l(){let[{max:a}]=await h.db.select({max:(0,f.ll)`max(${i.note.ord})`}).from(i.note),[b]=await h.db.insert(i.note).values({ord:(a??0)+1}).returning();return await (0,j.Bx)(),b}async function m(){return h.db.query.note.findMany({orderBy:(a,{desc:b})=>[b(a.pinned),b(a.updatedAt)]})}async function n(a,b){let c=p.parse(b),[d]=await h.db.update(i.note).set(c).where((0,g.eq)(i.note.id,a)).returning();return void 0!==c.title&&await (0,j.Bx)(),d}async function o(a){let[b]=await h.db.delete(i.note).where((0,g.eq)(i.note.id,a)).returning();return await (0,j.Bx)(),b}d()}catch(a){d(a)}})}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1669,3254,9884,5871,4046,9683,9734],()=>b(b.s=86502));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=6950,a.ids=[6950],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16698:a=>{a.exports=require("node:async_hooks")},19225:(a,b,c)=>{a.exports=c(44870)},28855:a=>{a.exports=import("@libsql/client")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31059:(a,b,c)=>{c.d(b,{ie:()=>f});var d=c(37096),e=c(71484);function f(...a){return a[0].columns?new g(a[0].columns,a[0].name):new g(a)}class g{static [d.i]="SQLitePrimaryKeyBuilder";columns;name;constructor(a,b){this.columns=a,this.name=b}build(a){return new h(a,this.columns,this.name)}}class h{constructor(a,b,c){this.table=a,this.columns=b,this.name=c}static [d.i]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[e.jo.Symbol.Name]}_${this.columns.map(a=>a.name).join("_")}_pk`}}},31421:a=>{a.exports=require("node:child_process")},33741:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>k,dynamic:()=>l});var e=c(73024),f=c(76760),g=c(76223),h=c(45301),i=c(85343),j=a([g]);g=(j.then?(await j)():j)[0];let l="force-dynamic";async function k(a){let b=new URL(a.url).searchParams.get("path");if(!b)return new Response("path required",{status:400});let c=(0,h.jv)(),d=(0,f.isAbsolute)(b)?(0,f.normalize)(b):(0,f.normalize)((0,f.join)(c,b));if(!d.startsWith(c))return new Response("outside repo",{status:400});if(!(0,e.existsSync)(d))return new Response("not found",{status:404});let j=await (0,g.t)(),k=(0,i.Sr)(j.editor);return(0,i.Tg)(d,k)?Response.json({ok:!0,editor:k}):new Response("no editor found",{status:503})}d()}catch(a){d(a)}})},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},45301:(a,b,c)=>{c.d(b,{KS:()=>l,Qq:()=>k,jv:()=>j});var d=c(31421),e=c(77598),f=c(48161),g=c(76760),h=c(6716);let i=null;function j(){if(process.env.BEACON_REPO)return process.env.BEACON_REPO;let a=(0,h.p1)();if(a){let b=(0,h.K4)(a);if(b)return b.path}let b=(0,h.WQ)();if(b)return b.path;if(i)return i;try{let a=(0,d.execSync)("git rev-parse --show-toplevel",{cwd:process.cwd(),stdio:["ignore","pipe","ignore"]}).toString().trim();if(a)return i=a}catch{}return i=(0,g.resolve)(process.cwd(),"../..")}function k(){return(0,g.basename)(j())}function l(){if(process.env.BEACON_DATA_DIR)return process.env.BEACON_DATA_DIR;let a=(0,h.p1)();if(a&&(0,h.K4)(a))return(0,h.T_)(a);let b=(0,h.WQ)();return b?(0,h.T_)(b.id):(0,g.join)((0,f.homedir)(),".beacon",(0,e.createHash)("sha256").update(j()).digest("hex").slice(0,12))}},48161:a=>{a.exports=require("node:os")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},76223:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{Z:()=>i,t:()=>h});var e=c(56727),f=c(30046),g=a([e]);async function h(a=e.db){let[b]=await a.insert(f.appSetting).values({id:"singleton"}).onConflictDoUpdate({target:f.appSetting.id,set:{id:"singleton"}}).returning();return b}async function i(a,b=e.db){let[c]=await b.insert(f.appSetting).values({id:"singleton",...a}).onConflictDoUpdate({target:f.appSetting.id,set:a}).returning();return c}e=(g.then?(await g)():g)[0],d()}catch(a){d(a)}})},76760:a=>{a.exports=require("node:path")},76968:(a,b,c)=>{c.d(b,{GL:()=>i,Pe:()=>h});var d=c(37096);class e{constructor(a,b){this.name=a,this.unique=b}static [d.i]="SQLiteIndexBuilderOn";on(...a){return new f(this.name,a,this.unique)}}class f{static [d.i]="SQLiteIndexBuilder";config;constructor(a,b,c){this.config={name:a,columns:b,unique:c,where:void 0}}where(a){return this.config.where=a,this}build(a){return new g(this.config,a)}}class g{static [d.i]="SQLiteIndex";config;constructor(a,b){this.config={...a,table:b}}}function h(a){return new e(a,!1)}function i(a){return new e(a,!0)}},77598:a=>{a.exports=require("node:crypto")},80446:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(33741),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/open/route",pathname:"/api/open",filename:"route",bundlePath:"app/api/open/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/beacon/beacon/app/api/open/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/open/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},85343:(a,b,c)=>{c.d(b,{Sr:()=>n,Tg:()=>o});var d=c(31421),e=c(73024),f=c(48161),g=c(76760);let h="win32"===(0,f.platform)(),i="darwin"===(0,f.platform)(),j={cursor:{label:"Cursor",cli:"cursor",goto:a=>[a],app:"Cursor",winExe:["Programs/cursor/Cursor.exe"]},vscode:{label:"VS Code",cli:"code",goto:a=>["-g",a],app:"Visual Studio Code",winExe:["Programs/Microsoft VS Code/Code.exe","Microsoft VS Code/Code.exe"]},windsurf:{label:"Windsurf",cli:"windsurf",goto:a=>[a],app:"Windsurf",winExe:["Programs/Windsurf/Windsurf.exe"]},zed:{label:"Zed",cli:"zed",goto:a=>[a],app:"Zed",winExe:["Zed/Zed.exe"]}};function k(a){try{return 0===(0,d.spawnSync)(h?"where":"which",[a],{stdio:"ignore",shell:h}).status}catch{return!1}}function l(a){let b=[process.env.LOCALAPPDATA,process.env.ProgramFiles,process.env["ProgramFiles(x86)"]].filter(a=>!!a);for(let c of j[a].winExe)for(let a of b){let b=(0,g.join)(a,c);if((0,e.existsSync)(b))return b}return null}function m(a){if(i){let b=j[a].app;return(0,e.existsSync)((0,g.join)("/Applications",`${b}.app`))||(0,e.existsSync)((0,g.join)((0,f.homedir)(),"Applications",`${b}.app`))}return!!h&&null!==l(a)}function n(a){if(a&&"auto"!==a&&a in j)return a;let b=[process.env.GIT_EDITOR,process.env.VISUAL,process.env.EDITOR,process.env.TERM_PROGRAM,process.env.__CFBundleIdentifier].join(" ").toLowerCase();if(/cursor/.test(b))return"cursor";if(/windsurf/.test(b))return"windsurf";if(/\bzed\b/.test(b))return"zed";if(/vscode|visual studio code/.test(b))return"vscode";let c=["cursor","vscode","windsurf","zed"];for(let a of c)if(k(j[a].cli))return a;for(let a of c)if(m(a))return a;return"vscode"}function o(a,b){let c=j[b];if(k(c.cli))return(0,d.spawn)(c.cli,c.goto(a),{detached:!0,stdio:"ignore",shell:h,windowsHide:!0}).unref(),!0;if(i){let e=m(b)?["-a",c.app,a]:[a];return(0,d.spawn)("open",e,{detached:!0,stdio:"ignore"}).unref(),!0}if(h){let e=l(b);return e?(0,d.spawn)(e,c.goto(a),{detached:!0,stdio:"ignore",windowsHide:!0}).unref():(0,d.spawn)("cmd",["/c","start","",a],{detached:!0,stdio:"ignore",windowsHide:!0}).unref(),!0}return(0,d.spawn)("xdg-open",[a],{detached:!0,stdio:"ignore"}).unref(),!0}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1669,3254,9884,5871,9683],()=>b(b.s=80446));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=6950,a.ids=[6950],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16698:a=>{a.exports=require("node:async_hooks")},19225:(a,b,c)=>{a.exports=c(44870)},28855:a=>{a.exports=import("@libsql/client")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31059:(a,b,c)=>{c.d(b,{ie:()=>f});var d=c(37096),e=c(71484);function f(...a){return a[0].columns?new g(a[0].columns,a[0].name):new g(a)}class g{static [d.i]="SQLitePrimaryKeyBuilder";columns;name;constructor(a,b){this.columns=a,this.name=b}build(a){return new h(a,this.columns,this.name)}}class h{constructor(a,b,c){this.table=a,this.columns=b,this.name=c}static [d.i]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[e.jo.Symbol.Name]}_${this.columns.map(a=>a.name).join("_")}_pk`}}},31421:a=>{a.exports=require("node:child_process")},33741:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>k,dynamic:()=>l});var e=c(73024),f=c(76760),g=c(76223),h=c(45301),i=c(85343),j=a([g]);g=(j.then?(await j)():j)[0];let l="force-dynamic";async function k(a){let b=new URL(a.url).searchParams.get("path");if(!b)return new Response("path required",{status:400});let c=(0,h.jv)(),d=(0,f.isAbsolute)(b)?(0,f.normalize)(b):(0,f.normalize)((0,f.join)(c,b));if(!d.startsWith(c))return new Response("outside repo",{status:400});if(!(0,e.existsSync)(d))return new Response("not found",{status:404});let j=await (0,g.t)(),k=(0,i.Sr)(j.editor);return(0,i.Tg)(d,k)?Response.json({ok:!0,editor:k}):new Response("no editor found",{status:503})}d()}catch(a){d(a)}})},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},45301:(a,b,c)=>{c.d(b,{KS:()=>l,Qq:()=>k,jv:()=>j});var d=c(31421),e=c(77598),f=c(48161),g=c(76760),h=c(6716);let i=null;function j(){if(process.env.BEACON_REPO)return process.env.BEACON_REPO;let a=(0,h.p1)();if(a){let b=(0,h.K4)(a);if(b)return b.path}let b=(0,h.WQ)();if(b)return b.path;if(i)return i;try{let a=(0,d.execSync)("git rev-parse --show-toplevel",{cwd:process.cwd(),stdio:["ignore","pipe","ignore"]}).toString().trim();if(a)return i=a}catch{}return i=(0,g.resolve)(process.cwd(),"../..")}function k(){return(0,g.basename)(j())}function l(){if(process.env.BEACON_DATA_DIR)return process.env.BEACON_DATA_DIR;let a=(0,h.p1)();if(a&&(0,h.K4)(a))return(0,h.T_)(a);let b=(0,h.WQ)();return b?(0,h.T_)(b.id):(0,g.join)((0,f.homedir)(),".beacon",(0,e.createHash)("sha256").update(j()).digest("hex").slice(0,12))}},48161:a=>{a.exports=require("node:os")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},76223:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{Z:()=>i,t:()=>h});var e=c(56727),f=c(30046),g=a([e]);async function h(a=e.db){let[b]=await a.insert(f.appSetting).values({id:"singleton"}).onConflictDoUpdate({target:f.appSetting.id,set:{id:"singleton"}}).returning();return b}async function i(a,b=e.db){let[c]=await b.insert(f.appSetting).values({id:"singleton",...a}).onConflictDoUpdate({target:f.appSetting.id,set:a}).returning();return c}e=(g.then?(await g)():g)[0],d()}catch(a){d(a)}})},76760:a=>{a.exports=require("node:path")},76968:(a,b,c)=>{c.d(b,{GL:()=>i,Pe:()=>h});var d=c(37096);class e{constructor(a,b){this.name=a,this.unique=b}static [d.i]="SQLiteIndexBuilderOn";on(...a){return new f(this.name,a,this.unique)}}class f{static [d.i]="SQLiteIndexBuilder";config;constructor(a,b,c){this.config={name:a,columns:b,unique:c,where:void 0}}where(a){return this.config.where=a,this}build(a){return new g(this.config,a)}}class g{static [d.i]="SQLiteIndex";config;constructor(a,b){this.config={...a,table:b}}}function h(a){return new e(a,!1)}function i(a){return new e(a,!0)}},77598:a=>{a.exports=require("node:crypto")},82108:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(33741),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/open/route",pathname:"/api/open",filename:"route",bundlePath:"app/api/open/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/beacon/beacon/app/api/open/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/open/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},85343:(a,b,c)=>{c.d(b,{Sr:()=>n,Tg:()=>o});var d=c(31421),e=c(73024),f=c(48161),g=c(76760);let h="win32"===(0,f.platform)(),i="darwin"===(0,f.platform)(),j={cursor:{label:"Cursor",cli:"cursor",goto:a=>[a],app:"Cursor",winExe:["Programs/cursor/Cursor.exe"]},vscode:{label:"VS Code",cli:"code",goto:a=>["-g",a],app:"Visual Studio Code",winExe:["Programs/Microsoft VS Code/Code.exe","Microsoft VS Code/Code.exe"]},windsurf:{label:"Windsurf",cli:"windsurf",goto:a=>[a],app:"Windsurf",winExe:["Programs/Windsurf/Windsurf.exe"]},zed:{label:"Zed",cli:"zed",goto:a=>[a],app:"Zed",winExe:["Zed/Zed.exe"]}};function k(a){try{return 0===(0,d.spawnSync)(h?"where":"which",[a],{stdio:"ignore",shell:h}).status}catch{return!1}}function l(a){let b=[process.env.LOCALAPPDATA,process.env.ProgramFiles,process.env["ProgramFiles(x86)"]].filter(a=>!!a);for(let c of j[a].winExe)for(let a of b){let b=(0,g.join)(a,c);if((0,e.existsSync)(b))return b}return null}function m(a){if(i){let b=j[a].app;return(0,e.existsSync)((0,g.join)("/Applications",`${b}.app`))||(0,e.existsSync)((0,g.join)((0,f.homedir)(),"Applications",`${b}.app`))}return!!h&&null!==l(a)}function n(a){if(a&&"auto"!==a&&a in j)return a;let b=[process.env.GIT_EDITOR,process.env.VISUAL,process.env.EDITOR,process.env.TERM_PROGRAM,process.env.__CFBundleIdentifier].join(" ").toLowerCase();if(/cursor/.test(b))return"cursor";if(/windsurf/.test(b))return"windsurf";if(/\bzed\b/.test(b))return"zed";if(/vscode|visual studio code/.test(b))return"vscode";let c=["cursor","vscode","windsurf","zed"];for(let a of c)if(k(j[a].cli))return a;for(let a of c)if(m(a))return a;return"vscode"}function o(a,b){let c=j[b];if(k(c.cli))return(0,d.spawn)(c.cli,c.goto(a),{detached:!0,stdio:"ignore",shell:h,windowsHide:!0}).unref(),!0;if(i){let e=m(b)?["-a",c.app,a]:[a];return(0,d.spawn)("open",e,{detached:!0,stdio:"ignore"}).unref(),!0}if(h){let e=l(b);return e?(0,d.spawn)(e,c.goto(a),{detached:!0,stdio:"ignore",windowsHide:!0}).unref():(0,d.spawn)("cmd",["/c","start","",a],{detached:!0,stdio:"ignore",windowsHide:!0}).unref(),!0}return(0,d.spawn)("xdg-open",[a],{detached:!0,stdio:"ignore"}).unref(),!0}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1669,3254,9884,5871,9683],()=>b(b.s=82108));module.exports=c})();
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var a={};a.id=5884,a.ids=[5884],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16698:a=>{a.exports=require("node:async_hooks")},19225:(a,b,c)=>{a.exports=c(44870)},28855:a=>{a.exports=import("@libsql/client")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31059:(a,b,c)=>{c.d(b,{ie:()=>f});var d=c(37096),e=c(71484);function f(...a){return a[0].columns?new g(a[0].columns,a[0].name):new g(a)}class g{static [d.i]="SQLitePrimaryKeyBuilder";columns;name;constructor(a,b){this.columns=a,this.name=b}build(a){return new h(a,this.columns,this.name)}}class h{constructor(a,b,c){this.table=a,this.columns=b,this.name=c}static [d.i]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[e.jo.Symbol.Name]}_${this.columns.map(a=>a.name).join("_")}_pk`}}},31421:a=>{a.exports=require("node:child_process")},32461:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{o:()=>g});var e=c(72179),f=a([e]);function g(a){let b=[],c=new Set(a.originalFeatures),d=new Set(a.currentFeatures);for(let d of a.currentFeatures)c.has(d)||b.push(`- added feature **${d}**`);for(let c of a.originalFeatures)d.has(c)||b.push(`- removed feature **${c}**`);let f=new Map;for(let b of a.addedSubtasks){let a=f.get(b.parentTitle)??[];a.push(b.title),f.set(b.parentTitle,a)}let g=[];for(let[a,b]of f)for(let c of(g.push(`- under **${a}**:`),b))g.push(` - **${c}**`);let h=[];if(a.currentDoc){let b=a.originalDoc??{proposedAt:0,status:"pending",tables:[],relations:[],endpoints:[]};for(let c of(0,e.NK)(b,a.currentDoc))h.push(`- ${c}`)}let i=[];return(b.length&&i.push(`### Features
1
+ "use strict";(()=>{var a={};a.id=5884,a.ids=[5884],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},6172:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(33235),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/plan/annotations/route",pathname:"/api/plan/annotations",filename:"route",bundlePath:"app/api/plan/annotations/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/beacon/beacon/app/api/plan/annotations/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/plan/annotations/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16698:a=>{a.exports=require("node:async_hooks")},19225:(a,b,c)=>{a.exports=c(44870)},28855:a=>{a.exports=import("@libsql/client")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31059:(a,b,c)=>{c.d(b,{ie:()=>f});var d=c(37096),e=c(71484);function f(...a){return a[0].columns?new g(a[0].columns,a[0].name):new g(a)}class g{static [d.i]="SQLitePrimaryKeyBuilder";columns;name;constructor(a,b){this.columns=a,this.name=b}build(a){return new h(a,this.columns,this.name)}}class h{constructor(a,b,c){this.table=a,this.columns=b,this.name=c}static [d.i]="SQLitePrimaryKey";columns;name;getName(){return this.name??`${this.table[e.jo.Symbol.Name]}_${this.columns.map(a=>a.name).join("_")}_pk`}}},31421:a=>{a.exports=require("node:child_process")},32461:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{o:()=>g});var e=c(72179),f=a([e]);function g(a){let b=[],c=new Set(a.originalFeatures),d=new Set(a.currentFeatures);for(let d of a.currentFeatures)c.has(d)||b.push(`- added feature **${d}**`);for(let c of a.originalFeatures)d.has(c)||b.push(`- removed feature **${c}**`);let f=new Map;for(let b of a.addedSubtasks){let a=f.get(b.parentTitle)??[];a.push(b.title),f.set(b.parentTitle,a)}let g=[];for(let[a,b]of f)for(let c of(g.push(`- under **${a}**:`),b))g.push(` - **${c}**`);let h=[];if(a.currentDoc){let b=a.originalDoc??{proposedAt:0,status:"pending",tables:[],relations:[],endpoints:[]};for(let c of(0,e.NK)(b,a.currentDoc))h.push(`- ${c}`)}let i=[];return(b.length&&i.push(`### Features
2
2
 
3
3
  ${b.join("\n")}`),g.length&&i.push(`### Subtasks
4
4
 
@@ -6,8 +6,8 @@ ${g.join("\n")}`),h.length&&i.push(`### Database
6
6
 
7
7
  ${h.join("\n")}`),i.length)?`## Board edits
8
8
 
9
- ${i.join("\n\n")}`:""}e=(f.then?(await f)():f)[0],d()}catch(a){d(a)}})},33235:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>r,GET:()=>n,POST:()=>q,PUT:()=>p,dynamic:()=>s});var e=c(44046),f=c(32461),g=c(72179),h=c(54655),i=c(70809),j=c(56727),k=c(6716),l=a([f,g,j]);[f,g,j]=l.then?(await l)():l;let s="force-dynamic",t=e.Ik({id:e.Yj(),excerpt:e.Yj(),comment:e.Yj(),kind:e.k5(["comment","deletion"]).optional()}),u=e.Ik({proposedAt:e.ai(),status:e.Yj(),tables:e.YO(e.Ik({id:e.Yj(),name:e.Yj(),domain:e.Yj().nullable(),description:e.Yj().nullable(),x:e.ai(),y:e.ai(),columns:e.YO(e.Ik({name:e.Yj(),type:e.Yj(),isPk:e.zM(),isFk:e.zM(),nullable:e.zM(),note:e.Yj().nullable()}))})),relations:e.YO(e.Ik({id:e.Yj(),fromTableId:e.Yj(),toTableId:e.Yj(),fromColumn:e.Yj(),toColumn:e.Yj(),label:e.Yj().nullable()})),endpoints:e.YO(e.Ik({id:e.Yj(),method:e.Yj(),path:e.Yj(),domain:e.Yj().nullable(),description:e.Yj().nullable(),x:e.ai(),y:e.ai(),links:e.YO(e.Ik({tableId:e.Yj(),access:e.Yj()}))}))}).nullish(),v=e.Ik({annotations:e.YO(t),globalComment:e.Yj().optional(),draft:u,questions:e.YO(e.Ik({target:e.Yj(),question:e.Yj()})).optional(),round:e.ai().optional()});async function m(a){let b=(0,h.Fn)(),c=b?.originalFeatures??[],d=await j.db.query.node.findMany({where:(a,{and:b,eq:c})=>b(c(a.source,"DRAFT"),c(a.view,"ROADMAP")),columns:{id:!0,title:!0}}),e=d.map(a=>a.title),i=[];if(d.length){let a=d.map(a=>a.id),b=new Map(d.map(a=>[a.id,a.title]));i=(await j.db.query.node.findMany({where:(b,{inArray:c})=>c(b.parentId,a),columns:{title:!0,parentId:!0}})).map(a=>({parentTitle:b.get(a.parentId??"")??"(unknown)",title:a.title}))}let k=(0,g.iL)();return(0,f.o)({originalFeatures:c,currentFeatures:e,addedSubtasks:i,originalDoc:k,currentDoc:a})}async function n(a){return(0,j.X_)((0,k.Ck)(a),async()=>{let a=(0,i.YV)(),b=a.submitted?(0,i.Tm)(a):"",c=a.submitted&&!!b.trim();return Response.json({annotations:a.annotations,globalComment:a.globalComment,submitted:c,submittedAt:c?a.submittedAt:void 0,feedback:c?b:""})})}function o(a){if(!a||a<=0)return!1;let b=(0,h.Fn)()?.proposedAt??0;return b>0&&a!==b}async function p(a){let b=v.parse(await a.json());return(0,j.X_)((0,k.Ck)(a),async()=>{if(o(b.round))return new Response(null,{status:204});let a=(0,i.YV)();return(0,i.D_)({...a,annotations:b.annotations,globalComment:b.globalComment??"",submitted:!1,questions:b.questions??a.questions??[]}),new Response(null,{status:204})})}async function q(a){let b=v.parse(await a.json());return(0,j.X_)((0,k.Ck)(a),async()=>{if(o(b.round))return Response.json({error:"stale round — the plan was re-proposed since this page loaded"},{status:409});let a=b.draft??null,c=await m(a),d={annotations:b.annotations,globalComment:b.globalComment??"",submitted:!0,submittedAt:Date.now(),boardEdits:c,questions:b.questions??[]};return(0,i.Tm)(d).trim()?((0,i.D_)(d),Response.json({ok:!0,boardEdits:c})):Response.json({error:"nothing to submit — add a comment, note, question, or board edit first"},{status:400})})}async function r(a){return(0,j.X_)((0,k.Ck)(a),async()=>((0,i.nb)(),new Response(null,{status:204})))}d()}catch(a){d(a)}})},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},54655:(a,b,c)=>{c.d(b,{E9:()=>k,Fn:()=>i,UC:()=>j});var d=c(73024),e=c(76760),f=c(45301),g=c(32213);function h(){return(0,e.join)((0,f.KS)(),"plan-meta.json")}function i(){try{return JSON.parse((0,d.readFileSync)(h(),"utf8"))}catch{return null}}function j(a){(0,g.q)(h(),a)}function k(){(0,d.rmSync)(h(),{force:!0})}},55262:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(33235),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/plan/annotations/route",pathname:"/api/plan/annotations",filename:"route",bundlePath:"app/api/plan/annotations/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/beacon/beacon/app/api/plan/annotations/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/plan/annotations/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},70809:(a,b,c)=>{c.d(b,{nb:()=>k,Z3:()=>m,YV:()=>i,Tm:()=>l,D_:()=>j});var d=c(73024),e=c(76760),f=c(45301),g=c(32213);function h(){return(0,e.join)((0,f.KS)(),"plan-annotations-current.json")}function i(){try{let a=JSON.parse((0,d.readFileSync)(h(),"utf8"));return{annotations:a.annotations??[],globalComment:a.globalComment??"",submitted:!!a.submitted,submittedAt:a.submittedAt,boardEdits:a.boardEdits??"",questions:a.questions??[]}}catch{return{annotations:[],globalComment:"",submitted:!1,questions:[]}}}function j(a){(0,g.q)(h(),a)}function k(){(0,d.rmSync)(h(),{force:!0})}function l(a){let b;return[function(a,b=""){let c=a.filter(a=>(a.kind??"comment")==="comment"&&a.comment.trim()),d=a.filter(a=>"deletion"===a.kind),e=b.trim();if(!c.length&&!d.length&&!e)return"";let f=[];if(e&&f.push(`## Overall feedback
9
+ ${i.join("\n\n")}`:""}e=(f.then?(await f)():f)[0],d()}catch(a){d(a)}})},33235:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>r,GET:()=>n,POST:()=>q,PUT:()=>p,dynamic:()=>s});var e=c(44046),f=c(32461),g=c(72179),h=c(54655),i=c(70809),j=c(56727),k=c(6716),l=a([f,g,j]);[f,g,j]=l.then?(await l)():l;let s="force-dynamic",t=e.Ik({id:e.Yj(),excerpt:e.Yj(),comment:e.Yj(),kind:e.k5(["comment","deletion"]).optional()}),u=e.Ik({proposedAt:e.ai(),status:e.Yj(),tables:e.YO(e.Ik({id:e.Yj(),name:e.Yj(),domain:e.Yj().nullable(),description:e.Yj().nullable(),x:e.ai(),y:e.ai(),columns:e.YO(e.Ik({name:e.Yj(),type:e.Yj(),isPk:e.zM(),isFk:e.zM(),nullable:e.zM(),note:e.Yj().nullable()}))})),relations:e.YO(e.Ik({id:e.Yj(),fromTableId:e.Yj(),toTableId:e.Yj(),fromColumn:e.Yj(),toColumn:e.Yj(),label:e.Yj().nullable()})),endpoints:e.YO(e.Ik({id:e.Yj(),method:e.Yj(),path:e.Yj(),domain:e.Yj().nullable(),description:e.Yj().nullable(),x:e.ai(),y:e.ai(),links:e.YO(e.Ik({tableId:e.Yj(),access:e.Yj()}))}))}).nullish(),v=e.Ik({annotations:e.YO(t),globalComment:e.Yj().optional(),draft:u,questions:e.YO(e.Ik({target:e.Yj(),question:e.Yj()})).optional(),round:e.ai().optional()});async function m(a){let b=(0,h.Fn)(),c=b?.originalFeatures??[],d=await j.db.query.node.findMany({where:(a,{and:b,eq:c})=>b(c(a.source,"DRAFT"),c(a.view,"ROADMAP")),columns:{id:!0,title:!0}}),e=d.map(a=>a.title),i=[];if(d.length){let a=d.map(a=>a.id),b=new Map(d.map(a=>[a.id,a.title]));i=(await j.db.query.node.findMany({where:(b,{inArray:c})=>c(b.parentId,a),columns:{title:!0,parentId:!0}})).map(a=>({parentTitle:b.get(a.parentId??"")??"(unknown)",title:a.title}))}let k=(0,g.iL)();return(0,f.o)({originalFeatures:c,currentFeatures:e,addedSubtasks:i,originalDoc:k,currentDoc:a})}async function n(a){return(0,j.X_)((0,k.Ck)(a),async()=>{let a=(0,i.YV)(),b=a.submitted?(0,i.Tm)(a):"",c=a.submitted&&!!b.trim();return Response.json({annotations:a.annotations,globalComment:a.globalComment,submitted:c,submittedAt:c?a.submittedAt:void 0,feedback:c?b:""})})}function o(a){if(!a||a<=0)return!1;let b=(0,h.Fn)()?.proposedAt??0;return b>0&&a!==b}async function p(a){let b=v.parse(await a.json());return(0,j.X_)((0,k.Ck)(a),async()=>{if(o(b.round))return new Response(null,{status:204});let a=(0,i.YV)();return(0,i.D_)({...a,annotations:b.annotations,globalComment:b.globalComment??"",submitted:!1,questions:b.questions??a.questions??[]}),new Response(null,{status:204})})}async function q(a){let b=v.parse(await a.json());return(0,j.X_)((0,k.Ck)(a),async()=>{if(o(b.round))return Response.json({error:"stale round — the plan was re-proposed since this page loaded"},{status:409});let a=b.draft??null,c=await m(a),d={annotations:b.annotations,globalComment:b.globalComment??"",submitted:!0,submittedAt:Date.now(),boardEdits:c,questions:b.questions??[]};return(0,i.Tm)(d).trim()?((0,i.D_)(d),Response.json({ok:!0,boardEdits:c})):Response.json({error:"nothing to submit — add a comment, note, question, or board edit first"},{status:400})})}async function r(a){return(0,j.X_)((0,k.Ck)(a),async()=>((0,i.nb)(),new Response(null,{status:204})))}d()}catch(a){d(a)}})},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},54655:(a,b,c)=>{c.d(b,{E9:()=>k,Fn:()=>i,UC:()=>j});var d=c(73024),e=c(76760),f=c(45301),g=c(32213);function h(){return(0,e.join)((0,f.KS)(),"plan-meta.json")}function i(){try{return JSON.parse((0,d.readFileSync)(h(),"utf8"))}catch{return null}}function j(a){(0,g.q)(h(),a)}function k(){(0,d.rmSync)(h(),{force:!0})}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},70809:(a,b,c)=>{c.d(b,{nb:()=>k,Z3:()=>m,YV:()=>i,Tm:()=>l,D_:()=>j});var d=c(73024),e=c(76760),f=c(45301),g=c(32213);function h(){return(0,e.join)((0,f.KS)(),"plan-annotations-current.json")}function i(){try{let a=JSON.parse((0,d.readFileSync)(h(),"utf8"));return{annotations:a.annotations??[],globalComment:a.globalComment??"",submitted:!!a.submitted,submittedAt:a.submittedAt,boardEdits:a.boardEdits??"",questions:a.questions??[]}}catch{return{annotations:[],globalComment:"",submitted:!1,questions:[]}}}function j(a){(0,g.q)(h(),a)}function k(){(0,d.rmSync)(h(),{force:!0})}function l(a){let b;return[function(a,b=""){let c=a.filter(a=>(a.kind??"comment")==="comment"&&a.comment.trim()),d=a.filter(a=>"deletion"===a.kind),e=b.trim();if(!c.length&&!d.length&&!e)return"";let f=[];if(e&&f.push(`## Overall feedback
10
10
 
11
11
  ${e}`),c.length){let a=["## Inline comments",""];for(let b of c){let c=b.excerpt.split("\n").map(a=>`> ${a}`).join("\n");a.push(`${c}
12
12
 
13
- ${b.comment.trim()}`)}f.push(a.join("\n"))}if(d.length){let a=["## Marked for deletion","","The user marked these passages for removal — drop them from the next plan:",""];for(let b of d){let c=b.excerpt.split("\n").map(a=>`> ${a}`).join("\n");a.push(c),a.push("")}f.push(a.join("\n").trim())}return f.join("\n\n").trim()}(a.annotations,a.globalComment),a.boardEdits??"",!(b=(a.questions??[]).filter(a=>a.question.trim())).length?"":["## Questions to answer before approving",...b.map(a=>`- **${a.target}** — ${a.question.trim()}`)].join("\n")].filter(Boolean).join("\n\n")}function m(){let a=i();return{submitted:a.submitted,feedback:a.submitted?l(a):""}}},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},76760:a=>{a.exports=require("node:path")},76968:(a,b,c)=>{c.d(b,{GL:()=>i,Pe:()=>h});var d=c(37096);class e{constructor(a,b){this.name=a,this.unique=b}static [d.i]="SQLiteIndexBuilderOn";on(...a){return new f(this.name,a,this.unique)}}class f{static [d.i]="SQLiteIndexBuilder";config;constructor(a,b,c){this.config={name:a,columns:b,unique:c,where:void 0}}where(a){return this.config.where=a,this}build(a){return new g(this.config,a)}}class g{static [d.i]="SQLiteIndex";config;constructor(a,b){this.config={...a,table:b}}}function h(a){return new e(a,!1)}function i(a){return new e(a,!0)}},77598:a=>{a.exports=require("node:crypto")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1669,3254,9884,5871,4046,9683,9734,2179],()=>b(b.s=55262));module.exports=c})();
13
+ ${b.comment.trim()}`)}f.push(a.join("\n"))}if(d.length){let a=["## Marked for deletion","","The user marked these passages for removal — drop them from the next plan:",""];for(let b of d){let c=b.excerpt.split("\n").map(a=>`> ${a}`).join("\n");a.push(c),a.push("")}f.push(a.join("\n").trim())}return f.join("\n\n").trim()}(a.annotations,a.globalComment),a.boardEdits??"",!(b=(a.questions??[]).filter(a=>a.question.trim())).length?"":["## Questions to answer before approving",...b.map(a=>`- **${a.target}** — ${a.question.trim()}`)].join("\n")].filter(Boolean).join("\n\n")}function m(){let a=i();return{submitted:a.submitted,feedback:a.submitted?l(a):""}}},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},76760:a=>{a.exports=require("node:path")},76968:(a,b,c)=>{c.d(b,{GL:()=>i,Pe:()=>h});var d=c(37096);class e{constructor(a,b){this.name=a,this.unique=b}static [d.i]="SQLiteIndexBuilderOn";on(...a){return new f(this.name,a,this.unique)}}class f{static [d.i]="SQLiteIndexBuilder";config;constructor(a,b,c){this.config={name:a,columns:b,unique:c,where:void 0}}where(a){return this.config.where=a,this}build(a){return new g(this.config,a)}}class g{static [d.i]="SQLiteIndex";config;constructor(a,b){this.config={...a,table:b}}}function h(a){return new e(a,!1)}function i(a){return new e(a,!0)}},77598:a=>{a.exports=require("node:crypto")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1669,3254,9884,5871,4046,9683,9734,2179],()=>b(b.s=6172));module.exports=c})();
@@ -1,9 +1 @@
1
- "use strict";(()=>{var a={};a.id=7705,a.ids=[7705],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16698:a=>{a.exports=require("node:async_hooks")},28855:a=>{a.exports=import("@libsql/client")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},32640:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(4e4),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/plan/approve/route",pathname:"/api/plan/approve",filename:"route",bundlePath:"app/api/plan/approve/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/beacon/beacon/app/api/plan/approve/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/plan/approve/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},4e4:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>j,dynamic:()=>k});var e=c(56727),f=c(18072),g=c(66469),h=c(6716),i=a([e,f,g]);[e,f,g]=i.then?(await i)():i;let k="force-dynamic";async function j(a){let b=(0,h.Ck)(a);return(0,e.X_)(b,async()=>{let a=await (0,f.Ph)();return b&&await (0,g.GJ)({onlyIfManaged:!0}).catch(()=>{}),Response.json({ok:!0,db:a.db,features:a.features})})}d()}catch(a){d(a)}})},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66469:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{GJ:()=>m});var e=c(73024),f=c(76760),g=c(56727),h=c(45301),i=c(72595),j=a([g,i]);[g,i]=j.then?(await j)():j;let n="\x3c!-- beacon:start --\x3e",o="\x3c!-- beacon:end --\x3e";async function k(){let a=await (0,i.hA)(),b=[];try{b=JSON.parse(a.conventions)}catch{b=[]}let c=await g.db.query.node.findMany({where:(a,{eq:b})=>b(a.view,"ARCHITECTURE"),with:{files:{columns:{path:!0}}},orderBy:(a,{asc:b})=>b(a.cluster)}),d=await g.db.query.dbTable.findMany({with:{columns:{orderBy:(a,{asc:b})=>b(a.ord)}},orderBy:(a,{asc:b})=>b(a.name)}),j=await g.db.query.endpoint.findMany({orderBy:(a,{asc:b})=>[b(a.domain),b(a.path)]}),k=function(a){let b={};try{let c=JSON.parse((0,e.readFileSync)((0,f.join)(a,"package.json"),"utf8"));for(let a of["dev","build","test","lint","start"])c.scripts?.[a]&&(b[a]=`npm run ${a}`)}catch{}try{let c=(0,e.readFileSync)((0,f.join)(a,"Makefile"),"utf8");for(let a of["dev","up","build","test","lint"])RegExp(`^${a}:`,"m").test(c)&&(b[a]=`make ${a}`)}catch{}return!b.test&&((0,e.existsSync)((0,f.join)(a,"pyproject.toml"))||(0,e.existsSync)((0,f.join)(a,"requirements.txt")))&&(b.test="pytest"),b}((0,h.jv)()),l=[`## Project: ${(0,h.Qq)()}`];if(a.overview&&l.push("",a.overview),Object.keys(k).length)for(let[a,b]of(l.push("","### Commands"),Object.entries(k)))l.push(`- ${a}: \`${b}\``);if(c.length){l.push("","### Architecture");let a=new Map;for(let b of c){let c=b.cluster??"MISC";a.has(c)||a.set(c,[]),a.get(c).push(b)}for(let[b,c]of a)for(let a of(l.push(`- **${b}**`),c)){let b=a.files.map(a=>a.path).slice(0,6).join(", ");l.push(` - ${a.title}${a.role?` — ${a.role}`:""}${b?` (${b})`:""}`)}}if(d.length)for(let a of(l.push("","### Database"),d))l.push(`- \`${a.name}\`: ${a.columns.map(a=>a.name).slice(0,12).join(", ")}`);if(j.length)for(let a of(l.push("","### Endpoints"),j.slice(0,40)))l.push(`- ${a.method} ${a.path}`);if(b.length)for(let a of(l.push("","### Conventions & gotchas"),b))l.push(`- ${a}`);return l.push("","_Maintained by Beacon — edit outside the markers; this block is regenerated._"),l.join("\n")}function l(a,b,c){let d=b.replaceAll(n,"`beacon:start`").replaceAll(o,"`beacon:end`"),f=`${n}
2
- ${d}
3
- ${o}`,g=(0,e.existsSync)(a)?(0,e.readFileSync)(a,"utf8"):"";g=g.includes(n)&&g.includes(o)?g.replace(RegExp(`${n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}[\\s\\S]*${o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`),()=>f):g.trim()?`${g.trim()}
4
-
5
- ${f}
6
- `:`${c}
7
-
8
- ${f}
9
- `,(0,e.writeFileSync)(a,g)}async function m(a={}){let b=(0,h.jv)(),c=(0,f.join)(b,"AGENTS.md"),d=(0,f.join)(b,"CLAUDE.md");if(a.onlyIfManaged&&!((0,e.existsSync)(c)&&(0,e.readFileSync)(c,"utf8").includes(n)))return[];let g=[];l(c,await k(),"# AGENTS.md"),g.push(c);let i=(0,e.existsSync)(d)?(0,e.readFileSync)(d,"utf8"):"";return/@?AGENTS\.md/.test(i)||(l(d,"@AGENTS.md","# CLAUDE.md"),g.push(d)),g}d()}catch(a){d(a)}})},72595:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{Wg:()=>k,hA:()=>i,jZ:()=>l,zr:()=>j});var e=c(56727),f=c(30046),g=c(32753),h=a([e]);async function i(a=e.db){let[b]=await a.insert(f.projectMeta).values({id:"singleton"}).onConflictDoUpdate({target:f.projectMeta.id,set:{id:"singleton"}}).returning();return b}async function j(a,b=e.db){let c={};null!=a.overview&&(c.overview=a.overview),a.conventions&&(c.conventions=JSON.stringify(a.conventions)),void 0!==a.hasFrontend&&(c.hasFrontend=a.hasFrontend),a.classificationRoots&&(c.classificationRoots=JSON.stringify(a.classificationRoots)),0===Object.keys(c).length&&(c.id="singleton");let[d]=await b.insert(f.projectMeta).values({id:"singleton",overview:a.overview??null,conventions:JSON.stringify(a.conventions??[]),hasFrontend:a.hasFrontend??null,classificationRoots:JSON.stringify(a.classificationRoots??[])}).onConflictDoUpdate({target:f.projectMeta.id,set:c}).returning();return d}async function k(a=e.db){let b=await i(a);try{let a=JSON.parse(b.classificationRoots??"[]");return Array.isArray(a)?a.filter(a=>"string"==typeof a):[]}catch{return[]}}async function l(a=e.db){let b=await i(a);if(null!=b.hasFrontend)return b.hasFrontend;let c=await a.select({path:f.codeFile.path}).from(f.codeFile);return(0,g.EC)(c.map(a=>a.path))}e=(h.then?(await h)():h)[0],d()}catch(a){d(a)}})},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1669,3254,9884,5871,4046,4198,9683,9734,2179,3221],()=>b(b.s=32640));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=7705,a.ids=[7705],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},6681:(a,b,c)=>{c.d(b,{TT:()=>d});let d=["IN_PROGRESS","PENDING","BLOCKED","DONE","DEPRIORITIZED","CANCELLED"]},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16698:a=>{a.exports=require("node:async_hooks")},28855:a=>{a.exports=import("@libsql/client")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},4e4:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>j,dynamic:()=>k});var e=c(56727),f=c(18072),g=c(66469),h=c(6716),i=a([e,f,g]);[e,f,g]=i.then?(await i)():i;let k="force-dynamic";async function j(a){let b=(0,h.Ck)(a);return(0,e.X_)(b,async()=>{let a=await (0,f.Ph)();return b&&await (0,g.GJ)({onlyIfManaged:!0}).catch(()=>{}),Response.json({ok:!0,db:a.db,features:a.features})})}d()}catch(a){d(a)}})},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},68186:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(4e4),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/plan/approve/route",pathname:"/api/plan/approve",filename:"route",bundlePath:"app/api/plan/approve/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/beacon/beacon/app/api/plan/approve/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/plan/approve/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},72595:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{Wg:()=>k,hA:()=>i,jZ:()=>l,zr:()=>j});var e=c(56727),f=c(30046),g=c(32753),h=a([e]);async function i(a=e.db){let[b]=await a.insert(f.projectMeta).values({id:"singleton"}).onConflictDoUpdate({target:f.projectMeta.id,set:{id:"singleton"}}).returning();return b}async function j(a,b=e.db){let c={};null!=a.overview&&(c.overview=a.overview),a.conventions&&(c.conventions=JSON.stringify(a.conventions)),void 0!==a.hasFrontend&&(c.hasFrontend=a.hasFrontend),a.classificationRoots&&(c.classificationRoots=JSON.stringify(a.classificationRoots)),0===Object.keys(c).length&&(c.id="singleton");let[d]=await b.insert(f.projectMeta).values({id:"singleton",overview:a.overview??null,conventions:JSON.stringify(a.conventions??[]),hasFrontend:a.hasFrontend??null,classificationRoots:JSON.stringify(a.classificationRoots??[])}).onConflictDoUpdate({target:f.projectMeta.id,set:c}).returning();return d}async function k(a=e.db){let b=await i(a);try{let a=JSON.parse(b.classificationRoots??"[]");return Array.isArray(a)?a.filter(a=>"string"==typeof a):[]}catch{return[]}}async function l(a=e.db){let b=await i(a);if(null!=b.hasFrontend)return b.hasFrontend;let c=await a.select({path:f.codeFile.path}).from(f.codeFile);return(0,g.EC)(c.map(a=>a.path))}e=(h.then?(await h)():h)[0],d()}catch(a){d(a)}})},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1669,3254,9884,5871,4046,4198,9683,9734,2179,230,2693,6469],()=>b(b.s=68186));module.exports=c})();