@jiggai/kitchen 0.1.8 → 0.1.10-canary.0

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 (399) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +5 -0
  3. package/.next/build-manifest.json +6 -6
  4. package/.next/prerender-manifest.json +3 -27
  5. package/.next/required-server-files.js +4 -4
  6. package/.next/required-server-files.json +4 -4
  7. package/.next/routes-manifest.json +30 -0
  8. package/.next/server/app/_global-error/page/build-manifest.json +4 -4
  9. package/.next/server/app/_global-error/page.js +2 -2
  10. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  11. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  12. package/.next/server/app/_global-error.html +2 -2
  13. package/.next/server/app/_global-error.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  15. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  16. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  17. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  18. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  19. package/.next/server/app/_not-found/page/build-manifest.json +4 -4
  20. package/.next/server/app/_not-found/page.js +10 -9
  21. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  22. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  23. package/.next/server/app/_not-found.html +1 -1
  24. package/.next/server/app/_not-found.rsc +4 -4
  25. package/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
  26. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  27. package/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
  28. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  29. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  30. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  31. package/.next/server/app/agents/[agentId]/page/build-manifest.json +4 -4
  32. package/.next/server/app/agents/[agentId]/page.js +7 -7
  33. package/.next/server/app/agents/[agentId]/page.js.nft.json +1 -1
  34. package/.next/server/app/agents/[agentId]/page_client-reference-manifest.js +1 -1
  35. package/.next/server/app/api/agents/add/route.js +1 -1
  36. package/.next/server/app/api/agents/add/route.js.nft.json +1 -1
  37. package/.next/server/app/api/agents/files/route.js.nft.json +1 -1
  38. package/.next/server/app/api/agents/identity/route.js +1 -1
  39. package/.next/server/app/api/agents/identity/route.js.nft.json +1 -1
  40. package/.next/server/app/api/agents/route.js +1 -1
  41. package/.next/server/app/api/agents/route.js.nft.json +1 -1
  42. package/.next/server/app/api/gateway/restart/route.js +1 -1
  43. package/.next/server/app/api/gateway/restart/route.js.nft.json +1 -1
  44. package/.next/server/app/api/goals/[id]/promote/route.js.nft.json +1 -1
  45. package/.next/server/app/api/goals/[id]/route.js.nft.json +1 -1
  46. package/.next/server/app/api/goals/route.js.nft.json +1 -1
  47. package/.next/server/app/api/recipes/[id]/route.js.nft.json +1 -1
  48. package/.next/server/app/api/recipes/clone/route.js.nft.json +1 -1
  49. package/.next/server/app/api/recipes/delete/route.js.nft.json +1 -1
  50. package/.next/server/app/api/recipes/route.js +1 -1
  51. package/.next/server/app/api/recipes/route.js.nft.json +1 -1
  52. package/.next/server/app/api/recipes/team-agents/route.js.nft.json +1 -1
  53. package/.next/server/app/api/scaffold/route.js.nft.json +1 -1
  54. package/.next/server/app/api/swarms/start/route/app-paths-manifest.json +3 -0
  55. package/.next/server/app/api/swarms/start/route/build-manifest.json +11 -0
  56. package/.next/server/app/api/swarms/start/route/server-reference-manifest.json +4 -0
  57. package/.next/server/app/api/swarms/start/route.js +6 -0
  58. package/.next/server/app/api/swarms/start/route.js.map +5 -0
  59. package/.next/server/app/api/swarms/start/route.js.nft.json +1 -0
  60. package/.next/server/app/api/swarms/start/route_client-reference-manifest.js +2 -0
  61. package/.next/server/app/api/swarms/status/route/app-paths-manifest.json +3 -0
  62. package/.next/server/app/api/swarms/status/route/build-manifest.json +11 -0
  63. package/.next/server/app/api/swarms/status/route/server-reference-manifest.json +4 -0
  64. package/.next/server/app/api/swarms/status/route.js +6 -0
  65. package/.next/server/app/api/swarms/status/route.js.map +5 -0
  66. package/.next/server/app/api/swarms/status/route.js.nft.json +1 -0
  67. package/.next/server/app/api/swarms/status/route_client-reference-manifest.js +2 -0
  68. package/.next/server/app/api/teams/orchestrator/route/app-paths-manifest.json +3 -0
  69. package/.next/server/app/api/teams/orchestrator/route/build-manifest.json +11 -0
  70. package/.next/server/app/api/teams/orchestrator/route/server-reference-manifest.json +4 -0
  71. package/.next/server/app/api/teams/orchestrator/route.js +6 -0
  72. package/.next/server/app/api/teams/orchestrator/route.js.map +5 -0
  73. package/.next/server/app/api/teams/orchestrator/route.js.nft.json +1 -0
  74. package/.next/server/app/api/teams/orchestrator/route_client-reference-manifest.js +2 -0
  75. package/.next/server/app/api/teams/remove-team/route.js +1 -1
  76. package/.next/server/app/api/teams/remove-team/route.js.nft.json +1 -1
  77. package/.next/server/app/api/teams/skills/install/route.js +1 -1
  78. package/.next/server/app/api/teams/skills/install/route.js.nft.json +1 -1
  79. package/.next/server/app/api/teams/workflow-runs/route/app-paths-manifest.json +3 -0
  80. package/.next/server/app/api/teams/workflow-runs/route/build-manifest.json +11 -0
  81. package/.next/server/app/api/teams/workflow-runs/route/server-reference-manifest.json +4 -0
  82. package/.next/server/app/api/teams/workflow-runs/route.js +7 -0
  83. package/.next/server/app/api/teams/workflow-runs/route.js.map +5 -0
  84. package/.next/server/app/api/teams/workflow-runs/route.js.nft.json +1 -0
  85. package/.next/server/app/api/teams/workflow-runs/route_client-reference-manifest.js +2 -0
  86. package/.next/server/app/api/teams/workflows/route/app-paths-manifest.json +3 -0
  87. package/.next/server/app/api/teams/workflows/route/build-manifest.json +11 -0
  88. package/.next/server/app/api/teams/workflows/route/server-reference-manifest.json +4 -0
  89. package/.next/server/app/api/teams/workflows/route.js +6 -0
  90. package/.next/server/app/api/teams/workflows/route.js.map +5 -0
  91. package/.next/server/app/api/teams/workflows/route.js.nft.json +1 -0
  92. package/.next/server/app/api/teams/workflows/route_client-reference-manifest.js +2 -0
  93. package/.next/server/app/api/tickets/move/route.js +1 -1
  94. package/.next/server/app/api/tickets/move/route.js.nft.json +1 -1
  95. package/.next/server/app/channels/page/build-manifest.json +4 -4
  96. package/.next/server/app/channels/page.js +7 -7
  97. package/.next/server/app/channels/page.js.nft.json +1 -1
  98. package/.next/server/app/channels/page_client-reference-manifest.js +1 -1
  99. package/.next/server/app/channels.html +2 -2
  100. package/.next/server/app/channels.rsc +5 -5
  101. package/.next/server/app/channels.segments/_full.segment.rsc +5 -5
  102. package/.next/server/app/channels.segments/_head.segment.rsc +1 -1
  103. package/.next/server/app/channels.segments/_index.segment.rsc +3 -3
  104. package/.next/server/app/channels.segments/_tree.segment.rsc +2 -2
  105. package/.next/server/app/channels.segments/channels/__PAGE__.segment.rsc +2 -2
  106. package/.next/server/app/channels.segments/channels.segment.rsc +1 -1
  107. package/.next/server/app/cron-jobs/page/build-manifest.json +4 -4
  108. package/.next/server/app/cron-jobs/page.js +7 -7
  109. package/.next/server/app/cron-jobs/page.js.nft.json +1 -1
  110. package/.next/server/app/cron-jobs/page_client-reference-manifest.js +1 -1
  111. package/.next/server/app/cron-jobs.html +1 -1
  112. package/.next/server/app/cron-jobs.rsc +6 -6
  113. package/.next/server/app/cron-jobs.segments/_full.segment.rsc +6 -6
  114. package/.next/server/app/cron-jobs.segments/_head.segment.rsc +1 -1
  115. package/.next/server/app/cron-jobs.segments/_index.segment.rsc +3 -3
  116. package/.next/server/app/cron-jobs.segments/_tree.segment.rsc +2 -2
  117. package/.next/server/app/cron-jobs.segments/cron-jobs/__PAGE__.segment.rsc +3 -3
  118. package/.next/server/app/cron-jobs.segments/cron-jobs.segment.rsc +1 -1
  119. package/.next/server/app/goals/[id]/page/build-manifest.json +4 -4
  120. package/.next/server/app/goals/[id]/page.js +7 -7
  121. package/.next/server/app/goals/[id]/page.js.nft.json +1 -1
  122. package/.next/server/app/goals/[id]/page_client-reference-manifest.js +1 -1
  123. package/.next/server/app/goals/new/page/build-manifest.json +4 -4
  124. package/.next/server/app/goals/new/page.js +7 -7
  125. package/.next/server/app/goals/new/page.js.nft.json +1 -1
  126. package/.next/server/app/goals/new/page_client-reference-manifest.js +1 -1
  127. package/.next/server/app/goals/new.html +2 -2
  128. package/.next/server/app/goals/new.rsc +5 -5
  129. package/.next/server/app/goals/new.segments/_full.segment.rsc +5 -5
  130. package/.next/server/app/goals/new.segments/_head.segment.rsc +1 -1
  131. package/.next/server/app/goals/new.segments/_index.segment.rsc +3 -3
  132. package/.next/server/app/goals/new.segments/_tree.segment.rsc +2 -2
  133. package/.next/server/app/goals/new.segments/goals/new/__PAGE__.segment.rsc +2 -2
  134. package/.next/server/app/goals/new.segments/goals/new.segment.rsc +1 -1
  135. package/.next/server/app/goals/new.segments/goals.segment.rsc +1 -1
  136. package/.next/server/app/goals/page/build-manifest.json +4 -4
  137. package/.next/server/app/goals/page.js +7 -7
  138. package/.next/server/app/goals/page.js.nft.json +1 -1
  139. package/.next/server/app/goals/page_client-reference-manifest.js +1 -1
  140. package/.next/server/app/goals.html +1 -1
  141. package/.next/server/app/goals.rsc +5 -5
  142. package/.next/server/app/goals.segments/_full.segment.rsc +5 -5
  143. package/.next/server/app/goals.segments/_head.segment.rsc +1 -1
  144. package/.next/server/app/goals.segments/_index.segment.rsc +3 -3
  145. package/.next/server/app/goals.segments/_tree.segment.rsc +2 -2
  146. package/.next/server/app/goals.segments/goals/__PAGE__.segment.rsc +2 -2
  147. package/.next/server/app/goals.segments/goals.segment.rsc +1 -1
  148. package/.next/server/app/page/build-manifest.json +4 -4
  149. package/.next/server/app/page.js +7 -7
  150. package/.next/server/app/page.js.nft.json +1 -1
  151. package/.next/server/app/page_client-reference-manifest.js +1 -1
  152. package/.next/server/app/recipes/[id]/page/build-manifest.json +4 -4
  153. package/.next/server/app/recipes/[id]/page.js +8 -8
  154. package/.next/server/app/recipes/[id]/page.js.nft.json +1 -1
  155. package/.next/server/app/recipes/[id]/page_client-reference-manifest.js +1 -1
  156. package/.next/server/app/recipes/page/build-manifest.json +4 -4
  157. package/.next/server/app/recipes/page.js +8 -8
  158. package/.next/server/app/recipes/page.js.nft.json +1 -1
  159. package/.next/server/app/recipes/page_client-reference-manifest.js +1 -1
  160. package/.next/server/app/settings/page/build-manifest.json +4 -4
  161. package/.next/server/app/settings/page.js +7 -7
  162. package/.next/server/app/settings/page.js.nft.json +1 -1
  163. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  164. package/.next/server/app/settings.html +1 -1
  165. package/.next/server/app/settings.rsc +5 -5
  166. package/.next/server/app/settings.segments/_full.segment.rsc +5 -5
  167. package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  168. package/.next/server/app/settings.segments/_index.segment.rsc +3 -3
  169. package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  170. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  171. package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  172. package/.next/server/app/teams/[teamId]/page/build-manifest.json +4 -4
  173. package/.next/server/app/teams/[teamId]/page.js +8 -8
  174. package/.next/server/app/teams/[teamId]/page.js.nft.json +1 -1
  175. package/.next/server/app/teams/[teamId]/page_client-reference-manifest.js +1 -1
  176. package/.next/server/app/tickets/[ticket]/page/build-manifest.json +4 -4
  177. package/.next/server/app/tickets/[ticket]/page.js +7 -7
  178. package/.next/server/app/tickets/[ticket]/page.js.nft.json +1 -1
  179. package/.next/server/app/tickets/[ticket]/page_client-reference-manifest.js +1 -1
  180. package/.next/server/app/tickets/page/build-manifest.json +4 -4
  181. package/.next/server/app/tickets/page.js +7 -7
  182. package/.next/server/app/tickets/page.js.nft.json +1 -1
  183. package/.next/server/app/tickets/page_client-reference-manifest.js +1 -1
  184. package/.next/server/app-paths-manifest.json +5 -0
  185. package/.next/server/chunks/[root-of-the-server]__065a27a4._.js +3 -0
  186. package/.next/server/chunks/[root-of-the-server]__065a27a4._.js.map +1 -0
  187. package/.next/server/chunks/{[root-of-the-server]__94d68aa3._.js → [root-of-the-server]__1989d64f._.js} +2 -2
  188. package/.next/server/chunks/{[root-of-the-server]__94d68aa3._.js.map → [root-of-the-server]__1989d64f._.js.map} +1 -1
  189. package/.next/server/chunks/{[root-of-the-server]__c4ffbb03._.js → [root-of-the-server]__21b72903._.js} +2 -2
  190. package/.next/server/chunks/{[root-of-the-server]__c4ffbb03._.js.map → [root-of-the-server]__21b72903._.js.map} +1 -1
  191. package/.next/server/chunks/{[root-of-the-server]__0c01c5c7._.js → [root-of-the-server]__262d8a6e._.js} +2 -2
  192. package/.next/server/chunks/{[root-of-the-server]__0c01c5c7._.js.map → [root-of-the-server]__262d8a6e._.js.map} +1 -1
  193. package/.next/server/chunks/{[root-of-the-server]__b11231a9._.js → [root-of-the-server]__2f2c799d._.js} +2 -2
  194. package/.next/server/chunks/{[root-of-the-server]__b11231a9._.js.map → [root-of-the-server]__2f2c799d._.js.map} +1 -1
  195. package/.next/server/chunks/[root-of-the-server]__6f85770b._.js +3 -0
  196. package/.next/server/chunks/[root-of-the-server]__6f85770b._.js.map +1 -0
  197. package/.next/server/chunks/[root-of-the-server]__7cf49621._.js +3 -0
  198. package/.next/server/chunks/[root-of-the-server]__7cf49621._.js.map +1 -0
  199. package/.next/server/chunks/[root-of-the-server]__a27f8405._.js +1 -1
  200. package/.next/server/chunks/[root-of-the-server]__a27f8405._.js.map +1 -1
  201. package/.next/server/chunks/[root-of-the-server]__a5226713._.js +3 -0
  202. package/.next/server/chunks/[root-of-the-server]__a5226713._.js.map +1 -0
  203. package/.next/server/chunks/[root-of-the-server]__c7f92fce._.js +3 -0
  204. package/.next/server/chunks/[root-of-the-server]__c7f92fce._.js.map +1 -0
  205. package/.next/server/chunks/{[root-of-the-server]__d737ca42._.js → [root-of-the-server]__e8bfeaba._.js} +2 -2
  206. package/.next/server/chunks/{[root-of-the-server]__d737ca42._.js.map → [root-of-the-server]__e8bfeaba._.js.map} +1 -1
  207. package/.next/server/chunks/{[root-of-the-server]__4eda99a9._.js → [root-of-the-server]__ebaa0038._.js} +2 -2
  208. package/.next/server/chunks/{[root-of-the-server]__4eda99a9._.js.map → [root-of-the-server]__ebaa0038._.js.map} +1 -1
  209. package/.next/server/chunks/{[root-of-the-server]__b59b3cdd._.js → [root-of-the-server]__f5546a39._.js} +2 -2
  210. package/.next/server/chunks/{[root-of-the-server]__b59b3cdd._.js.map → [root-of-the-server]__f5546a39._.js.map} +1 -1
  211. package/.next/server/chunks/{[root-of-the-server]__e6184ba3._.js → [root-of-the-server]__fdda9176._.js} +2 -2
  212. package/.next/server/chunks/{[root-of-the-server]__e6184ba3._.js.map → [root-of-the-server]__fdda9176._.js.map} +1 -1
  213. package/.next/server/chunks/_next-internal_server_app_api_swarms_start_route_actions_b79e9029.js +3 -0
  214. package/.next/server/chunks/_next-internal_server_app_api_swarms_start_route_actions_b79e9029.js.map +1 -0
  215. package/.next/server/chunks/_next-internal_server_app_api_swarms_status_route_actions_54826df0.js +3 -0
  216. package/.next/server/chunks/_next-internal_server_app_api_swarms_status_route_actions_54826df0.js.map +1 -0
  217. package/.next/server/chunks/_next-internal_server_app_api_teams_orchestrator_route_actions_1949c463.js +3 -0
  218. package/.next/server/chunks/_next-internal_server_app_api_teams_orchestrator_route_actions_1949c463.js.map +1 -0
  219. package/.next/server/chunks/_next-internal_server_app_api_teams_workflow-runs_route_actions_8327ac7d.js +3 -0
  220. package/.next/server/chunks/_next-internal_server_app_api_teams_workflow-runs_route_actions_8327ac7d.js.map +1 -0
  221. package/.next/server/chunks/_next-internal_server_app_api_teams_workflows_route_actions_43dd6e07.js +3 -0
  222. package/.next/server/chunks/_next-internal_server_app_api_teams_workflows_route_actions_43dd6e07.js.map +1 -0
  223. package/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_1fe98a49.js +14 -0
  224. package/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_1fe98a49.js.map +1 -0
  225. package/.next/server/chunks/ssr/[root-of-the-server]__0d4cb2ba._.js +3 -0
  226. package/.next/server/chunks/ssr/[root-of-the-server]__0fd02d84._.js +3 -0
  227. package/.next/server/chunks/ssr/{[root-of-the-server]__4393e897._.js.map → [root-of-the-server]__0fd02d84._.js.map} +1 -1
  228. package/.next/server/chunks/ssr/[root-of-the-server]__285ae6b7._.js +3 -0
  229. package/.next/server/chunks/ssr/{[root-of-the-server]__46e08d44._.js.map → [root-of-the-server]__285ae6b7._.js.map} +1 -1
  230. package/.next/server/chunks/ssr/[root-of-the-server]__2bef6884._.js +3 -0
  231. package/.next/server/chunks/ssr/{[root-of-the-server]__15600e29._.js.map → [root-of-the-server]__2bef6884._.js.map} +1 -1
  232. package/.next/server/chunks/ssr/[root-of-the-server]__3efd25c4._.js +3 -0
  233. package/.next/server/chunks/ssr/{[root-of-the-server]__2a6f1e3e._.js.map → [root-of-the-server]__3efd25c4._.js.map} +1 -1
  234. package/.next/server/chunks/ssr/[root-of-the-server]__491e06fa._.js +1 -1
  235. package/.next/server/chunks/ssr/[root-of-the-server]__491e06fa._.js.map +1 -1
  236. package/.next/server/chunks/ssr/[root-of-the-server]__550d78f8._.js +3 -0
  237. package/.next/server/chunks/ssr/{[root-of-the-server]__bc3b27b0._.js.map → [root-of-the-server]__550d78f8._.js.map} +1 -1
  238. package/.next/server/chunks/ssr/{[root-of-the-server]__e2e52c6e._.js → [root-of-the-server]__78cdd31e._.js} +2 -2
  239. package/.next/server/chunks/ssr/[root-of-the-server]__8ecc89e4._.js +3 -0
  240. package/.next/server/chunks/ssr/{[root-of-the-server]__507d2fc9._.js.map → [root-of-the-server]__8ecc89e4._.js.map} +1 -1
  241. package/.next/server/chunks/ssr/[root-of-the-server]__92524828._.js +3 -0
  242. package/.next/server/chunks/ssr/{[root-of-the-server]__247198dc._.js.map → [root-of-the-server]__92524828._.js.map} +1 -1
  243. package/.next/server/chunks/ssr/[root-of-the-server]__9e1ab064._.js +3 -0
  244. package/.next/server/chunks/ssr/[root-of-the-server]__9e1ab064._.js.map +1 -0
  245. package/.next/server/chunks/ssr/[root-of-the-server]__a36a058d._.js +3 -0
  246. package/.next/server/chunks/ssr/{[root-of-the-server]__8d24c9c3._.js.map → [root-of-the-server]__a36a058d._.js.map} +1 -1
  247. package/.next/server/chunks/ssr/[root-of-the-server]__a8eca9e1._.js +3 -0
  248. package/.next/server/chunks/ssr/{[root-of-the-server]__82ce3aee._.js.map → [root-of-the-server]__a8eca9e1._.js.map} +1 -1
  249. package/.next/server/chunks/ssr/[root-of-the-server]__aa8e2649._.js +3 -0
  250. package/.next/server/chunks/ssr/{[root-of-the-server]__f75a61bf._.js.map → [root-of-the-server]__aa8e2649._.js.map} +1 -1
  251. package/.next/server/chunks/ssr/[root-of-the-server]__b2617fbf._.js +3 -0
  252. package/.next/server/chunks/ssr/{[root-of-the-server]__fd669584._.js.map → [root-of-the-server]__b2617fbf._.js.map} +1 -1
  253. package/.next/server/chunks/ssr/[root-of-the-server]__b5f65083._.js +3 -0
  254. package/.next/server/chunks/ssr/[root-of-the-server]__b5f65083._.js.map +1 -0
  255. package/.next/server/chunks/ssr/[root-of-the-server]__e5d416d5._.js +3 -0
  256. package/.next/server/chunks/ssr/{[root-of-the-server]__3ad3e5b1._.js.map → [root-of-the-server]__e5d416d5._.js.map} +1 -1
  257. package/.next/server/chunks/ssr/{[root-of-the-server]__b9356576._.js → [root-of-the-server]__f62d412e._.js} +2 -2
  258. package/.next/server/chunks/ssr/{[root-of-the-server]__b9356576._.js.map → [root-of-the-server]__f62d412e._.js.map} +1 -1
  259. package/.next/server/chunks/ssr/[root-of-the-server]__fbe5ff69._.js +3 -0
  260. package/.next/server/chunks/ssr/{[root-of-the-server]__3575e6da._.js.map → [root-of-the-server]__fbe5ff69._.js.map} +1 -1
  261. package/.next/server/chunks/ssr/{_8c45edba._.js → _0bdae23a._.js} +3 -3
  262. package/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_68c68167.js.map → _0bdae23a._.js.map} +1 -1
  263. package/.next/server/chunks/ssr/{_0808c2b9._.js → _347e2d56._.js} +3 -3
  264. package/.next/server/chunks/ssr/_347e2d56._.js.map +1 -0
  265. package/.next/server/chunks/ssr/{_68793c1f._.js → _49fb12c2._.js} +3 -3
  266. package/.next/server/chunks/ssr/_49fb12c2._.js.map +1 -0
  267. package/.next/server/chunks/ssr/{_3c8b2df6._.js → _536983a4._.js} +3 -3
  268. package/.next/server/chunks/ssr/_536983a4._.js.map +1 -0
  269. package/.next/server/chunks/ssr/{_cd23c5af._.js → _5b282394._.js} +3 -3
  270. package/.next/server/chunks/ssr/_5b282394._.js.map +1 -0
  271. package/.next/server/chunks/ssr/{_6e70b5a4._.js → _5cc24343._.js} +3 -3
  272. package/.next/server/chunks/ssr/_5cc24343._.js.map +1 -0
  273. package/.next/server/chunks/ssr/{_92140ca3._.js → _7eac37fb._.js} +3 -3
  274. package/.next/server/chunks/ssr/_7eac37fb._.js.map +1 -0
  275. package/.next/server/chunks/ssr/{_8c8207c1._.js → _8062e992._.js} +3 -3
  276. package/.next/server/chunks/ssr/_8062e992._.js.map +1 -0
  277. package/.next/server/chunks/ssr/{_25e6aab8._.js → _99994c05._.js} +3 -3
  278. package/.next/server/chunks/ssr/_99994c05._.js.map +1 -0
  279. package/.next/server/chunks/ssr/{_b5e9afcc._.js → _aafc99aa._.js} +3 -3
  280. package/.next/server/chunks/ssr/_aafc99aa._.js.map +1 -0
  281. package/.next/server/chunks/ssr/{_39e6e769._.js → _b7f3caf7._.js} +3 -3
  282. package/.next/server/chunks/ssr/_b7f3caf7._.js.map +1 -0
  283. package/.next/server/chunks/ssr/_c2041f88._.js +4 -0
  284. package/.next/server/chunks/ssr/_c2041f88._.js.map +1 -0
  285. package/.next/server/chunks/ssr/{_3158c108._.js → _f4d8af3b._.js} +3 -3
  286. package/.next/server/chunks/ssr/_f4d8af3b._.js.map +1 -0
  287. package/.next/server/chunks/ssr/{node_modules_next_dist_12287b3d._.js → node_modules_next_dist_8a37abed._.js} +2 -2
  288. package/.next/server/chunks/ssr/{node_modules_next_dist_12287b3d._.js.map → node_modules_next_dist_8a37abed._.js.map} +1 -1
  289. package/.next/server/chunks/ssr/{node_modules_next_dist_client_components_9774470f._.js → node_modules_next_dist_client_components_2fffaa3a._.js} +2 -2
  290. package/.next/server/chunks/ssr/{node_modules_next_dist_client_components_9774470f._.js.map → node_modules_next_dist_client_components_2fffaa3a._.js.map} +1 -1
  291. package/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_68c68167.js → node_modules_next_dist_esm_build_templates_app-page_b5ef32b4.js} +3 -3
  292. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_b5ef32b4.js.map +1 -0
  293. package/.next/server/chunks/ssr/src_app_HomeClient_tsx_f9f7568d._.js +1 -1
  294. package/.next/server/chunks/ssr/src_app_HomeClient_tsx_f9f7568d._.js.map +1 -1
  295. package/.next/server/chunks/ssr/src_app_global-error_tsx_aa661ba4._.js +3 -0
  296. package/.next/server/chunks/ssr/src_app_global-error_tsx_aa661ba4._.js.map +1 -0
  297. package/.next/server/chunks/ssr/src_app_not-found_tsx_3f23d179._.js +3 -0
  298. package/.next/server/chunks/ssr/src_app_not-found_tsx_3f23d179._.js.map +1 -0
  299. package/.next/server/chunks/ssr/src_app_teams_[teamId]_team-editor_tsx_2900b91d._.js +2 -2
  300. package/.next/server/chunks/ssr/src_app_teams_[teamId]_team-editor_tsx_2900b91d._.js.map +1 -1
  301. package/.next/server/middleware-build-manifest.js +4 -4
  302. package/.next/server/pages/404.html +1 -1
  303. package/.next/server/pages/500.html +2 -2
  304. package/.next/server/server-reference-manifest.js +1 -1
  305. package/.next/server/server-reference-manifest.json +1 -1
  306. package/.next/static/chunks/{40f7fde35327d214.js → 423ca3a7f09c1470.js} +1 -1
  307. package/.next/static/chunks/{82abf2d65f5428ae.js → 68a088aa49e6124a.js} +3 -3
  308. package/.next/static/chunks/96b0d0ef92ef0eca.css +3 -0
  309. package/.next/static/chunks/a92e9d0c91b71b55.js +1 -0
  310. package/.next/static/chunks/bd3fcd39d918f9b4.js +10 -0
  311. package/.next/static/chunks/c84580993f22c17a.js +1 -0
  312. package/.next/static/chunks/f3e3461eda4a8d62.js +1 -0
  313. package/.next/static/chunks/{turbopack-ae1340e658f67df8.js → turbopack-6c658f991a22d28a.js} +1 -1
  314. package/package.json +2 -2
  315. package/public/android-chrome-192x192.png +0 -0
  316. package/public/android-chrome-512x512.png +0 -0
  317. package/public/apple-touch-icon.png +0 -0
  318. package/public/chef.jpg +0 -0
  319. package/public/favicon-16x16.png +0 -0
  320. package/public/favicon-32x32.png +0 -0
  321. package/public/favicon.ico +0 -0
  322. package/src/app/HomeClient.tsx +1 -1
  323. package/src/app/api/cron/jobs/route.ts +12 -4
  324. package/src/app/api/swarms/start/route.ts +118 -0
  325. package/src/app/api/swarms/status/route.ts +50 -0
  326. package/src/app/api/teams/orchestrator/route.ts +218 -0
  327. package/src/app/api/teams/workflow-runs/route.ts +431 -0
  328. package/src/app/api/teams/workflows/route.ts +88 -0
  329. package/src/app/cron-jobs/page.tsx +1 -1
  330. package/src/app/global-error.tsx +50 -0
  331. package/src/app/not-found.tsx +8 -0
  332. package/src/app/recipes/page.tsx +1 -1
  333. package/src/app/settings/page.tsx +1 -1
  334. package/src/app/teams/[teamId]/OrchestratorPanel.tsx +228 -0
  335. package/src/app/teams/[teamId]/page.tsx +25 -29
  336. package/src/app/teams/[teamId]/team-editor.tsx +1656 -8
  337. package/src/app/tickets/[ticket]/page.tsx +3 -0
  338. package/src/app/tickets/page.tsx +3 -0
  339. package/src/components/AppShell.tsx +245 -31
  340. package/src/lib/workflows/README.md +11 -0
  341. package/src/lib/workflows/runs-storage.ts +71 -0
  342. package/src/lib/workflows/runs-types.ts +32 -0
  343. package/src/lib/workflows/storage.ts +82 -0
  344. package/src/lib/workflows/types.ts +50 -0
  345. package/src/lib/workflows/validate.ts +70 -0
  346. package/.next/server/app/tickets.html +0 -1
  347. package/.next/server/app/tickets.meta +0 -15
  348. package/.next/server/app/tickets.rsc +0 -19
  349. package/.next/server/app/tickets.segments/_full.segment.rsc +0 -19
  350. package/.next/server/app/tickets.segments/_head.segment.rsc +0 -6
  351. package/.next/server/app/tickets.segments/_index.segment.rsc +0 -6
  352. package/.next/server/app/tickets.segments/_tree.segment.rsc +0 -4
  353. package/.next/server/app/tickets.segments/tickets/__PAGE__.segment.rsc +0 -8
  354. package/.next/server/app/tickets.segments/tickets.segment.rsc +0 -4
  355. package/.next/server/chunks/ssr/[root-of-the-server]__15600e29._.js +0 -3
  356. package/.next/server/chunks/ssr/[root-of-the-server]__247198dc._.js +0 -3
  357. package/.next/server/chunks/ssr/[root-of-the-server]__2a6f1e3e._.js +0 -3
  358. package/.next/server/chunks/ssr/[root-of-the-server]__346f79e5._.js +0 -3
  359. package/.next/server/chunks/ssr/[root-of-the-server]__346f79e5._.js.map +0 -1
  360. package/.next/server/chunks/ssr/[root-of-the-server]__3575e6da._.js +0 -3
  361. package/.next/server/chunks/ssr/[root-of-the-server]__3ad3e5b1._.js +0 -3
  362. package/.next/server/chunks/ssr/[root-of-the-server]__3bc7ad0a._.js +0 -3
  363. package/.next/server/chunks/ssr/[root-of-the-server]__4393e897._.js +0 -3
  364. package/.next/server/chunks/ssr/[root-of-the-server]__46e08d44._.js +0 -3
  365. package/.next/server/chunks/ssr/[root-of-the-server]__507d2fc9._.js +0 -3
  366. package/.next/server/chunks/ssr/[root-of-the-server]__82ce3aee._.js +0 -3
  367. package/.next/server/chunks/ssr/[root-of-the-server]__8d24c9c3._.js +0 -3
  368. package/.next/server/chunks/ssr/[root-of-the-server]__a457c799._.js +0 -3
  369. package/.next/server/chunks/ssr/[root-of-the-server]__a457c799._.js.map +0 -1
  370. package/.next/server/chunks/ssr/[root-of-the-server]__bc3b27b0._.js +0 -3
  371. package/.next/server/chunks/ssr/[root-of-the-server]__f75a61bf._.js +0 -3
  372. package/.next/server/chunks/ssr/[root-of-the-server]__fd669584._.js +0 -3
  373. package/.next/server/chunks/ssr/_0808c2b9._.js.map +0 -1
  374. package/.next/server/chunks/ssr/_25e6aab8._.js.map +0 -1
  375. package/.next/server/chunks/ssr/_3158c108._.js.map +0 -1
  376. package/.next/server/chunks/ssr/_39e6e769._.js.map +0 -1
  377. package/.next/server/chunks/ssr/_3c8b2df6._.js.map +0 -1
  378. package/.next/server/chunks/ssr/_68793c1f._.js.map +0 -1
  379. package/.next/server/chunks/ssr/_6e70b5a4._.js.map +0 -1
  380. package/.next/server/chunks/ssr/_8c45edba._.js.map +0 -1
  381. package/.next/server/chunks/ssr/_8c8207c1._.js.map +0 -1
  382. package/.next/server/chunks/ssr/_92140ca3._.js.map +0 -1
  383. package/.next/server/chunks/ssr/_b5e9afcc._.js.map +0 -1
  384. package/.next/server/chunks/ssr/_cd23c5af._.js.map +0 -1
  385. package/.next/server/chunks/ssr/_d27483a1._.js +0 -4
  386. package/.next/server/chunks/ssr/_d27483a1._.js.map +0 -1
  387. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_45780354.js +0 -3
  388. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_45780354.js.map +0 -1
  389. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_ece394eb.js +0 -3
  390. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_ece394eb.js.map +0 -1
  391. package/.next/static/chunks/8484c54dc9a377e8.js +0 -10
  392. package/.next/static/chunks/8662fcc3cdff66f3.js +0 -1
  393. package/.next/static/chunks/a4e69b85b74277a7.css +0 -3
  394. package/.next/static/chunks/a9ed074e89b16a5e.js +0 -1
  395. /package/.next/server/chunks/ssr/{[root-of-the-server]__3bc7ad0a._.js.map → [root-of-the-server]__0d4cb2ba._.js.map} +0 -0
  396. /package/.next/server/chunks/ssr/{[root-of-the-server]__e2e52c6e._.js.map → [root-of-the-server]__78cdd31e._.js.map} +0 -0
  397. /package/.next/static/{2hgbnJUmLMe9COlc5rJd3 → LkBl31uBDAuYl-0TzH69D}/_buildManifest.js +0 -0
  398. /package/.next/static/{2hgbnJUmLMe9COlc5rJd3 → LkBl31uBDAuYl-0TzH69D}/_clientMiddlewareManifest.json +0 -0
  399. /package/.next/static/{2hgbnJUmLMe9COlc5rJd3 → LkBl31uBDAuYl-0TzH69D}/_ssgManifest.js +0 -0
@@ -0,0 +1,3 @@
1
+ module.exports=[93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},69264,a=>{a.n(a.i(54832))},50645,a=>{a.n(a.i(27572))},17537,a=>{a.n(a.i(3363))},13718,a=>{a.n(a.i(85523))},18198,a=>{a.n(a.i(45518))},790,(a,b,c)=>{let{createClientModuleProxy:d}=a.r(11857);a.n(d("[project]/node_modules/next/dist/client/app-dir/link.js <module evaluation>"))},84707,(a,b,c)=>{let{createClientModuleProxy:d}=a.r(11857);a.n(d("[project]/node_modules/next/dist/client/app-dir/link.js"))},97647,a=>{"use strict";a.i(790);var b=a.i(84707);a.n(b)},95936,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={default:function(){return i},useLinkStatus:function(){return h.useLinkStatus}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(64240),g=a.r(7997),h=f._(a.r(97647));function i(a){let b=a.legacyBehavior,c="string"==typeof a.children||"number"==typeof a.children||"string"==typeof a.children?.type,d=a.children?.type?.$$typeof===Symbol.for("react.client.reference");return!b||c||d||(a.children?.type?.$$typeof===Symbol.for("react.lazy")?console.error("Using a Lazy Component as a direct child of `<Link legacyBehavior>` from a Server Component is not supported. If you need legacyBehavior, wrap your Lazy Component in a Client Component that renders the Link's `<a>` tag."):console.error("Using a Server Component as a direct child of `<Link legacyBehavior>` is not supported. If you need legacyBehavior, wrap your Server Component in a Client Component that renders the Link's `<a>` tag.")),(0,g.jsx)(h.default,{...a})}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},61222,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/src/app/recipes/recipes-client.tsx <module evaluation> from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/recipes/recipes-client.tsx <module evaluation>","default")},56745,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/src/app/recipes/recipes-client.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/recipes/recipes-client.tsx","default")},32342,a=>{"use strict";a.i(61222);var b=a.i(56745);a.n(b)},27449,a=>{"use strict";var b=a.i(7997),c=a.i(95936),d=a.i(18558),e=a.i(83643),f=a.i(32342);async function g(){let a=await (0,e.runOpenClaw)(["recipes","list"]);if(!a.ok)return{recipes:[],error:a.stderr.trim()||`openclaw recipes list failed (exit=${a.exitCode})`};try{return{recipes:JSON.parse(a.stdout),error:null}}catch{return{recipes:[],error:"Failed to parse openclaw recipes list output"}}}async function h(){let a=await (0,e.runOpenClaw)(["agents","list","--json"]);if(!a.ok)return{agentIds:[],error:a.stderr.trim()||`openclaw agents list failed (exit=${a.exitCode})`};try{let b=JSON.parse(a.stdout);return{agentIds:Array.isArray(b)?b.map(a=>String(a.id??"")).filter(Boolean):[],error:null}}catch{return{agentIds:[],error:"Failed to parse openclaw agents list output"}}}async function i(){(0,d.unstable_noStore)();let[{recipes:a,error:e},{agentIds:i}]=await Promise.all([g(),h()]),j=a.filter(a=>"builtin"===a.source),k=a.filter(a=>"workspace"===a.source),l=k.filter(a=>"team"===a.kind),m=k.filter(a=>"agent"===a.kind);return(0,b.jsxs)("div",{className:"ck-glass w-full p-6 sm:p-8",children:[(0,b.jsxs)("div",{className:"flex items-baseline justify-between gap-4",children:[(0,b.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:"Recipes"}),(0,b.jsx)(c.default,{href:"/",className:"text-sm font-medium text-[color:var(--ck-text-secondary)] transition-colors hover:text-[color:var(--ck-text-primary)]",children:"Home"})]}),e?(0,b.jsxs)("div",{className:"mt-6 rounded-[var(--ck-radius-sm)] border border-[color:var(--ck-border-subtle)] bg-[color:var(--ck-bg-glass)] p-4 text-sm text-[color:var(--ck-text-secondary)]",children:[(0,b.jsx)("div",{className:"font-medium text-[color:var(--ck-text-primary)]",children:"Recipes unavailable"}),(0,b.jsx)("div",{className:"mt-1 whitespace-pre-wrap",children:e}),(0,b.jsxs)("div",{className:"mt-3 text-xs text-[color:var(--ck-text-tertiary)]",children:["If this says \"unknown command 'recipes'\", the Recipes plugin is likely disabled/not allowlisted. Try: ",(0,b.jsx)("code",{className:"ml-1",children:"openclaw plugins enable recipes"})," then restart the gateway."]})]}):null,(0,b.jsx)(f.default,{builtin:j,customTeamRecipes:l,customAgentRecipes:m,installedAgentIds:i}),(0,b.jsx)("p",{className:"mt-10 text-xs text-[color:var(--ck-text-tertiary)]",children:"Note: editing builtin recipes will modify the recipes plugin install path on this machine."})]})}a.s(["default",()=>i,"dynamic",0,"force-dynamic","revalidate",0,0])}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__0fd02d84._.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../node_modules/next/dist/client/app-dir/link.js/__nextjs-internal-proxy.cjs","../../../../node_modules/next/src/client/app-dir/link.tsx","../../../../node_modules/next/src/client/app-dir/link.react-server.tsx","../../../../src/app/recipes/recipes-client.tsx/__nextjs-internal-proxy.mjs","../../../../src/app/recipes/page.tsx"],"sourcesContent":["// This file is generated by next-core EcmascriptClientReferenceModule.\nconst { createClientModuleProxy } = require(\"react-server-dom-turbopack/server\");\n\n__turbopack_context__.n(createClientModuleProxy(\"[project]/node_modules/next/dist/client/app-dir/link.js\"));\n","'use client'\n\nimport React, { createContext, useContext, useOptimistic, useRef } from 'react'\nimport type { UrlObject } from 'url'\nimport { formatUrl } from '../../shared/lib/router/utils/format-url'\nimport { AppRouterContext } from '../../shared/lib/app-router-context.shared-runtime'\nimport { useMergedRef } from '../use-merged-ref'\nimport { isAbsoluteUrl } from '../../shared/lib/utils'\nimport { addBasePath } from '../add-base-path'\nimport { warnOnce } from '../../shared/lib/utils/warn-once'\nimport type { PENDING_LINK_STATUS } from '../components/links'\nimport {\n IDLE_LINK_STATUS,\n mountLinkInstance,\n onNavigationIntent,\n unmountLinkForCurrentNavigation,\n unmountPrefetchableInstance,\n type LinkInstance,\n} from '../components/links'\nimport { isLocalURL } from '../../shared/lib/router/utils/is-local-url'\nimport {\n FetchStrategy,\n type PrefetchTaskFetchStrategy,\n} from '../components/segment-cache/types'\nimport { errorOnce } from '../../shared/lib/utils/error-once'\n\ntype Url = string | UrlObject\ntype RequiredKeys<T> = {\n [K in keyof T]-?: {} extends Pick<T, K> ? never : K\n}[keyof T]\ntype OptionalKeys<T> = {\n [K in keyof T]-?: {} extends Pick<T, K> ? K : never\n}[keyof T]\n\ntype OnNavigateEventHandler = (event: { preventDefault: () => void }) => void\n\ntype InternalLinkProps = {\n /**\n * **Required**. The path or URL to navigate to. It can also be an object (similar to `URL`).\n *\n * @example\n * ```tsx\n * // Navigate to /dashboard:\n * <Link href=\"/dashboard\">Dashboard</Link>\n *\n * // Navigate to /about?name=test:\n * <Link href={{ pathname: '/about', query: { name: 'test' } }}>\n * About\n * </Link>\n * ```\n *\n * @remarks\n * - For external URLs, use a fully qualified URL such as `https://...`.\n * - In the App Router, dynamic routes must not include bracketed segments in `href`.\n */\n href: Url\n\n /**\n * @deprecated v10.0.0: `href` props pointing to a dynamic route are\n * automatically resolved and no longer require the `as` prop.\n */\n as?: Url\n\n /**\n * Replace the current `history` state instead of adding a new URL into the stack.\n *\n * @defaultValue `false`\n *\n * @example\n * ```tsx\n * <Link href=\"/about\" replace>\n * About (replaces the history state)\n * </Link>\n * ```\n */\n replace?: boolean\n\n /**\n * Whether to override the default scroll behavior. If `true`, Next.js attempts to maintain\n * the scroll position if the newly navigated page is still visible. If not, it scrolls to the top.\n *\n * If `false`, Next.js will not modify the scroll behavior at all.\n *\n * @defaultValue `true`\n *\n * @example\n * ```tsx\n * <Link href=\"/dashboard\" scroll={false}>\n * No auto scroll\n * </Link>\n * ```\n */\n scroll?: boolean\n\n /**\n * Update the path of the current page without rerunning data fetching methods\n * like `getStaticProps`, `getServerSideProps`, or `getInitialProps`.\n *\n * @remarks\n * `shallow` only applies to the Pages Router. For the App Router, see the\n * [following documentation](https://nextjs.org/docs/app/building-your-application/routing/linking-and-navigating#using-the-native-history-api).\n *\n * @defaultValue `false`\n *\n * @example\n * ```tsx\n * <Link href=\"/blog\" shallow>\n * Shallow navigation\n * </Link>\n * ```\n */\n shallow?: boolean\n\n /**\n * Forces `Link` to pass its `href` to the child component. Useful if the child is a custom\n * component that wraps an `<a>` tag, or if you're using certain styling libraries.\n *\n * @defaultValue `false`\n *\n * @example\n * ```tsx\n * <Link href=\"/dashboard\" passHref legacyBehavior>\n * <MyStyledAnchor>Dashboard</MyStyledAnchor>\n * </Link>\n * ```\n */\n passHref?: boolean\n\n /**\n * Prefetch the page in the background.\n * Any `<Link />` that is in the viewport (initially or through scroll) will be prefetched.\n * Prefetch can be disabled by passing `prefetch={false}`.\n *\n * @remarks\n * Prefetching is only enabled in production.\n *\n * - In the **App Router**:\n * - `\"auto\"`, `null`, `undefined` (default): Prefetch behavior depends on static vs dynamic routes:\n * - Static routes: fully prefetched\n * - Dynamic routes: partial prefetch to the nearest segment with a `loading.js`\n * - `true`: Always prefetch the full route and data.\n * - `false`: Disable prefetching on both viewport and hover.\n * - In the **Pages Router**:\n * - `true` (default): Prefetches the route and data in the background on viewport or hover.\n * - `false`: Prefetch only on hover, not on viewport.\n *\n * @defaultValue `true` (Pages Router) or `null` (App Router)\n *\n * @example\n * ```tsx\n * <Link href=\"/dashboard\" prefetch={false}>\n * Dashboard\n * </Link>\n * ```\n */\n prefetch?: boolean | 'auto' | null\n\n /**\n * (unstable) Switch to a full prefetch on hover. Effectively the same as\n * updating the prefetch prop to `true` in a mouse event.\n */\n unstable_dynamicOnHover?: boolean\n\n /**\n * The active locale is automatically prepended in the Pages Router. `locale` allows for providing\n * a different locale, or can be set to `false` to opt out of automatic locale behavior.\n *\n * @remarks\n * Note: locale only applies in the Pages Router and is ignored in the App Router.\n *\n * @example\n * ```tsx\n * // Use the 'fr' locale:\n * <Link href=\"/about\" locale=\"fr\">\n * About (French)\n * </Link>\n *\n * // Disable locale prefix:\n * <Link href=\"/about\" locale={false}>\n * About (no locale prefix)\n * </Link>\n * ```\n */\n locale?: string | false\n\n /**\n * Enable legacy link behavior.\n *\n * @deprecated This will be removed in a future version\n * @defaultValue `false`\n * @see https://github.com/vercel/next.js/commit/489e65ed98544e69b0afd7e0cfc3f9f6c2b803b7\n */\n legacyBehavior?: boolean\n\n /**\n * Optional event handler for when the mouse pointer is moved onto the `<Link>`.\n */\n onMouseEnter?: React.MouseEventHandler<HTMLAnchorElement>\n\n /**\n * Optional event handler for when the `<Link>` is touched.\n */\n onTouchStart?: React.TouchEventHandler<HTMLAnchorElement>\n\n /**\n * Optional event handler for when the `<Link>` is clicked.\n */\n onClick?: React.MouseEventHandler<HTMLAnchorElement>\n\n /**\n * Optional event handler for when the `<Link>` is navigated.\n */\n onNavigate?: OnNavigateEventHandler\n}\n\n// TODO-APP: Include the full set of Anchor props\n// adding this to the publicly exported type currently breaks existing apps\n\n// `RouteInferType` is a stub here to avoid breaking `typedRoutes` when the type\n// isn't generated yet. It will be replaced when type generation runs.\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type LinkProps<RouteInferType = any> = InternalLinkProps\ntype LinkPropsRequired = RequiredKeys<LinkProps>\ntype LinkPropsOptional = OptionalKeys<Omit<InternalLinkProps, 'locale'>>\n\nfunction isModifiedEvent(event: React.MouseEvent): boolean {\n const eventTarget = event.currentTarget as HTMLAnchorElement | SVGAElement\n const target = eventTarget.getAttribute('target')\n return (\n (target && target !== '_self') ||\n event.metaKey ||\n event.ctrlKey ||\n event.shiftKey ||\n event.altKey || // triggers resource download\n (event.nativeEvent && event.nativeEvent.which === 2)\n )\n}\n\nfunction linkClicked(\n e: React.MouseEvent,\n href: string,\n as: string,\n linkInstanceRef: React.RefObject<LinkInstance | null>,\n replace?: boolean,\n scroll?: boolean,\n onNavigate?: OnNavigateEventHandler\n): void {\n if (typeof window !== 'undefined') {\n const { nodeName } = e.currentTarget\n\n // anchors inside an svg have a lowercase nodeName\n const isAnchorNodeName = nodeName.toUpperCase() === 'A'\n if (\n (isAnchorNodeName && isModifiedEvent(e)) ||\n e.currentTarget.hasAttribute('download')\n ) {\n // ignore click for browser’s default behavior\n return\n }\n\n if (!isLocalURL(href)) {\n if (replace) {\n // browser default behavior does not replace the history state\n // so we need to do it manually\n e.preventDefault()\n location.replace(href)\n }\n\n // ignore click for browser’s default behavior\n return\n }\n\n e.preventDefault()\n\n if (onNavigate) {\n let isDefaultPrevented = false\n\n onNavigate({\n preventDefault: () => {\n isDefaultPrevented = true\n },\n })\n\n if (isDefaultPrevented) {\n return\n }\n }\n\n const { dispatchNavigateAction } =\n require('../components/app-router-instance') as typeof import('../components/app-router-instance')\n\n React.startTransition(() => {\n dispatchNavigateAction(\n as || href,\n replace ? 'replace' : 'push',\n scroll ?? true,\n linkInstanceRef.current\n )\n })\n }\n}\n\nfunction formatStringOrUrl(urlObjOrString: UrlObject | string): string {\n if (typeof urlObjOrString === 'string') {\n return urlObjOrString\n }\n\n return formatUrl(urlObjOrString)\n}\n\n/**\n * A React component that extends the HTML `<a>` element to provide\n * [prefetching](https://nextjs.org/docs/app/building-your-application/routing/linking-and-navigating#2-prefetching)\n * and client-side navigation. This is the primary way to navigate between routes in Next.js.\n *\n * @remarks\n * - Prefetching is only enabled in production.\n *\n * @see https://nextjs.org/docs/app/api-reference/components/link\n */\nexport default function LinkComponent(\n props: LinkProps & {\n children: React.ReactNode\n ref: React.Ref<HTMLAnchorElement>\n }\n) {\n const [linkStatus, setOptimisticLinkStatus] = useOptimistic(IDLE_LINK_STATUS)\n\n let children: React.ReactNode\n\n const linkInstanceRef = useRef<LinkInstance | null>(null)\n\n const {\n href: hrefProp,\n as: asProp,\n children: childrenProp,\n prefetch: prefetchProp = null,\n passHref,\n replace,\n shallow,\n scroll,\n onClick,\n onMouseEnter: onMouseEnterProp,\n onTouchStart: onTouchStartProp,\n legacyBehavior = false,\n onNavigate,\n ref: forwardedRef,\n unstable_dynamicOnHover,\n ...restProps\n } = props\n\n children = childrenProp\n\n if (\n legacyBehavior &&\n (typeof children === 'string' || typeof children === 'number')\n ) {\n children = <a>{children}</a>\n }\n\n const router = React.useContext(AppRouterContext)\n\n const prefetchEnabled = prefetchProp !== false\n\n const fetchStrategy =\n prefetchProp !== false\n ? getFetchStrategyFromPrefetchProp(prefetchProp)\n : // TODO: it makes no sense to assign a fetchStrategy when prefetching is disabled.\n FetchStrategy.PPR\n\n if (process.env.NODE_ENV !== 'production') {\n function createPropError(args: {\n key: string\n expected: string\n actual: string\n }) {\n return new Error(\n `Failed prop type: The prop \\`${args.key}\\` expects a ${args.expected} in \\`<Link>\\`, but got \\`${args.actual}\\` instead.` +\n (typeof window !== 'undefined'\n ? \"\\nOpen your browser's console to view the Component stack trace.\"\n : '')\n )\n }\n\n // TypeScript trick for type-guarding:\n const requiredPropsGuard: Record<LinkPropsRequired, true> = {\n href: true,\n } as const\n const requiredProps: LinkPropsRequired[] = Object.keys(\n requiredPropsGuard\n ) as LinkPropsRequired[]\n requiredProps.forEach((key: LinkPropsRequired) => {\n if (key === 'href') {\n if (\n props[key] == null ||\n (typeof props[key] !== 'string' && typeof props[key] !== 'object')\n ) {\n throw createPropError({\n key,\n expected: '`string` or `object`',\n actual: props[key] === null ? 'null' : typeof props[key],\n })\n }\n } else {\n // TypeScript trick for type-guarding:\n const _: never = key\n }\n })\n\n // TypeScript trick for type-guarding:\n const optionalPropsGuard: Record<LinkPropsOptional, true> = {\n as: true,\n replace: true,\n scroll: true,\n shallow: true,\n passHref: true,\n prefetch: true,\n unstable_dynamicOnHover: true,\n onClick: true,\n onMouseEnter: true,\n onTouchStart: true,\n legacyBehavior: true,\n onNavigate: true,\n } as const\n const optionalProps: LinkPropsOptional[] = Object.keys(\n optionalPropsGuard\n ) as LinkPropsOptional[]\n optionalProps.forEach((key: LinkPropsOptional) => {\n const valType = typeof props[key]\n\n if (key === 'as') {\n if (props[key] && valType !== 'string' && valType !== 'object') {\n throw createPropError({\n key,\n expected: '`string` or `object`',\n actual: valType,\n })\n }\n } else if (\n key === 'onClick' ||\n key === 'onMouseEnter' ||\n key === 'onTouchStart' ||\n key === 'onNavigate'\n ) {\n if (props[key] && valType !== 'function') {\n throw createPropError({\n key,\n expected: '`function`',\n actual: valType,\n })\n }\n } else if (\n key === 'replace' ||\n key === 'scroll' ||\n key === 'shallow' ||\n key === 'passHref' ||\n key === 'legacyBehavior' ||\n key === 'unstable_dynamicOnHover'\n ) {\n if (props[key] != null && valType !== 'boolean') {\n throw createPropError({\n key,\n expected: '`boolean`',\n actual: valType,\n })\n }\n } else if (key === 'prefetch') {\n if (\n props[key] != null &&\n valType !== 'boolean' &&\n props[key] !== 'auto'\n ) {\n throw createPropError({\n key,\n expected: '`boolean | \"auto\"`',\n actual: valType,\n })\n }\n } else {\n // TypeScript trick for type-guarding:\n const _: never = key\n }\n })\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (props.locale) {\n warnOnce(\n 'The `locale` prop is not supported in `next/link` while using the `app` router. Read more about app router internalization: https://nextjs.org/docs/app/building-your-application/routing/internationalization'\n )\n }\n if (!asProp) {\n let href: string | undefined\n if (typeof hrefProp === 'string') {\n href = hrefProp\n } else if (\n typeof hrefProp === 'object' &&\n typeof hrefProp.pathname === 'string'\n ) {\n href = hrefProp.pathname\n }\n\n if (href) {\n const hasDynamicSegment = href\n .split('/')\n .some((segment) => segment.startsWith('[') && segment.endsWith(']'))\n\n if (hasDynamicSegment) {\n throw new Error(\n `Dynamic href \\`${href}\\` found in <Link> while using the \\`/app\\` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href`\n )\n }\n }\n }\n }\n\n const { href, as } = React.useMemo(() => {\n const resolvedHref = formatStringOrUrl(hrefProp)\n return {\n href: resolvedHref,\n as: asProp ? formatStringOrUrl(asProp) : resolvedHref,\n }\n }, [hrefProp, asProp])\n\n // This will return the first child, if multiple are provided it will throw an error\n let child: any\n if (legacyBehavior) {\n if ((children as any)?.$$typeof === Symbol.for('react.lazy')) {\n throw new Error(\n `\\`<Link legacyBehavior>\\` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's \\`<a>\\` tag.`\n )\n }\n\n if (process.env.NODE_ENV === 'development') {\n if (onClick) {\n console.warn(\n `\"onClick\" was passed to <Link> with \\`href\\` of \\`${hrefProp}\\` but \"legacyBehavior\" was set. The legacy behavior requires onClick be set on the child of next/link`\n )\n }\n if (onMouseEnterProp) {\n console.warn(\n `\"onMouseEnter\" was passed to <Link> with \\`href\\` of \\`${hrefProp}\\` but \"legacyBehavior\" was set. The legacy behavior requires onMouseEnter be set on the child of next/link`\n )\n }\n try {\n child = React.Children.only(children)\n } catch (err) {\n if (!children) {\n throw new Error(\n `No children were passed to <Link> with \\`href\\` of \\`${hrefProp}\\` but one child is required https://nextjs.org/docs/messages/link-no-children`\n )\n }\n throw new Error(\n `Multiple children were passed to <Link> with \\`href\\` of \\`${hrefProp}\\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children` +\n (typeof window !== 'undefined'\n ? \" \\nOpen your browser's console to view the Component stack trace.\"\n : '')\n )\n }\n } else {\n child = React.Children.only(children)\n }\n } else {\n if (process.env.NODE_ENV === 'development') {\n if ((children as any)?.type === 'a') {\n throw new Error(\n 'Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.\\nLearn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor'\n )\n }\n }\n }\n\n const childRef: any = legacyBehavior\n ? child && typeof child === 'object' && child.ref\n : forwardedRef\n\n // Use a callback ref to attach an IntersectionObserver to the anchor tag on\n // mount. In the future we will also use this to keep track of all the\n // currently mounted <Link> instances, e.g. so we can re-prefetch them after\n // a revalidation or refresh.\n const observeLinkVisibilityOnMount = React.useCallback(\n (element: HTMLAnchorElement | SVGAElement) => {\n if (router !== null) {\n linkInstanceRef.current = mountLinkInstance(\n element,\n href,\n router,\n fetchStrategy,\n prefetchEnabled,\n setOptimisticLinkStatus\n )\n }\n\n return () => {\n if (linkInstanceRef.current) {\n unmountLinkForCurrentNavigation(linkInstanceRef.current)\n linkInstanceRef.current = null\n }\n unmountPrefetchableInstance(element)\n }\n },\n [prefetchEnabled, href, router, fetchStrategy, setOptimisticLinkStatus]\n )\n\n const mergedRef = useMergedRef(observeLinkVisibilityOnMount, childRef)\n\n const childProps: {\n onTouchStart?: React.TouchEventHandler<HTMLAnchorElement>\n onMouseEnter: React.MouseEventHandler<HTMLAnchorElement>\n onClick: React.MouseEventHandler<HTMLAnchorElement>\n href?: string\n ref?: any\n } = {\n ref: mergedRef,\n onClick(e) {\n if (process.env.NODE_ENV !== 'production') {\n if (!e) {\n throw new Error(\n `Component rendered inside next/link has to pass click event to \"onClick\" prop.`\n )\n }\n }\n\n if (!legacyBehavior && typeof onClick === 'function') {\n onClick(e)\n }\n\n if (\n legacyBehavior &&\n child.props &&\n typeof child.props.onClick === 'function'\n ) {\n child.props.onClick(e)\n }\n\n if (!router) {\n return\n }\n if (e.defaultPrevented) {\n return\n }\n linkClicked(e, href, as, linkInstanceRef, replace, scroll, onNavigate)\n },\n onMouseEnter(e) {\n if (!legacyBehavior && typeof onMouseEnterProp === 'function') {\n onMouseEnterProp(e)\n }\n\n if (\n legacyBehavior &&\n child.props &&\n typeof child.props.onMouseEnter === 'function'\n ) {\n child.props.onMouseEnter(e)\n }\n\n if (!router) {\n return\n }\n if (!prefetchEnabled || process.env.NODE_ENV === 'development') {\n return\n }\n\n const upgradeToDynamicPrefetch = unstable_dynamicOnHover === true\n onNavigationIntent(\n e.currentTarget as HTMLAnchorElement | SVGAElement,\n upgradeToDynamicPrefetch\n )\n },\n onTouchStart: process.env.__NEXT_LINK_NO_TOUCH_START\n ? undefined\n : function onTouchStart(e) {\n if (!legacyBehavior && typeof onTouchStartProp === 'function') {\n onTouchStartProp(e)\n }\n\n if (\n legacyBehavior &&\n child.props &&\n typeof child.props.onTouchStart === 'function'\n ) {\n child.props.onTouchStart(e)\n }\n\n if (!router) {\n return\n }\n if (!prefetchEnabled) {\n return\n }\n\n const upgradeToDynamicPrefetch = unstable_dynamicOnHover === true\n onNavigationIntent(\n e.currentTarget as HTMLAnchorElement | SVGAElement,\n upgradeToDynamicPrefetch\n )\n },\n }\n\n // If the url is absolute, we can bypass the logic to prepend the basePath.\n if (isAbsoluteUrl(as)) {\n childProps.href = as\n } else if (\n !legacyBehavior ||\n passHref ||\n (child.type === 'a' && !('href' in child.props))\n ) {\n childProps.href = addBasePath(as)\n }\n\n let link: React.ReactNode\n\n if (legacyBehavior) {\n if (process.env.NODE_ENV === 'development') {\n errorOnce(\n '`legacyBehavior` is deprecated and will be removed in a future ' +\n 'release. A codemod is available to upgrade your components:\\n\\n' +\n 'npx @next/codemod@latest new-link .\\n\\n' +\n 'Learn more: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#remove-a-tags-from-link-components'\n )\n }\n link = React.cloneElement(child, childProps)\n } else {\n link = (\n <a {...restProps} {...childProps}>\n {children}\n </a>\n )\n }\n\n return (\n <LinkStatusContext.Provider value={linkStatus}>\n {link}\n </LinkStatusContext.Provider>\n )\n}\n\nconst LinkStatusContext = createContext<\n typeof PENDING_LINK_STATUS | typeof IDLE_LINK_STATUS\n>(IDLE_LINK_STATUS)\n\nexport const useLinkStatus = () => {\n return useContext(LinkStatusContext)\n}\n\nfunction getFetchStrategyFromPrefetchProp(\n prefetchProp: Exclude<LinkProps['prefetch'], undefined | false>\n): PrefetchTaskFetchStrategy {\n if (process.env.__NEXT_CACHE_COMPONENTS) {\n if (prefetchProp === true) {\n return FetchStrategy.Full\n }\n\n // `null` or `\"auto\"`: this is the default \"auto\" mode, where we will prefetch partially if the link is in the viewport.\n // This will also include invalid prop values that don't match the types specified here.\n // (although those should've been filtered out by prop validation in dev)\n prefetchProp satisfies null | 'auto'\n return FetchStrategy.PPR\n } else {\n return prefetchProp === null || prefetchProp === 'auto'\n ? // We default to PPR, and we'll discover whether or not the route supports it with the initial prefetch.\n FetchStrategy.PPR\n : // In the old implementation without runtime prefetches, `prefetch={true}` forces all dynamic data to be prefetched.\n // To preserve backwards-compatibility, anything other than `false`, `null`, or `\"auto\"` results in a full prefetch.\n // (although invalid values should've been filtered out by prop validation in dev)\n FetchStrategy.Full\n }\n}\n","import type { ComponentProps } from 'react'\nimport ClientLinkComponent, { type LinkProps, useLinkStatus } from './link'\n\nexport default function LinkComponent(\n props: ComponentProps<typeof ClientLinkComponent>\n) {\n const isLegacyBehavior = props.legacyBehavior\n const childIsHostComponent =\n typeof props.children === 'string' ||\n typeof props.children === 'number' ||\n typeof (props.children as any)?.type === 'string'\n const childIsClientComponent =\n (props.children as any)?.type?.$$typeof ===\n Symbol.for('react.client.reference')\n\n if (isLegacyBehavior && !childIsHostComponent && !childIsClientComponent) {\n if ((props.children as any)?.type?.$$typeof === Symbol.for('react.lazy')) {\n console.error(\n `Using a Lazy Component as a direct child of \\`<Link legacyBehavior>\\` from a Server Component is not supported. If you need legacyBehavior, wrap your Lazy Component in a Client Component that renders the Link's \\`<a>\\` tag.`\n )\n } else {\n console.error(\n `Using a Server Component as a direct child of \\`<Link legacyBehavior>\\` is not supported. If you need legacyBehavior, wrap your Server Component in a Client Component that renders the Link's \\`<a>\\` tag.`\n )\n }\n }\n\n return <ClientLinkComponent {...props} />\n}\n\nexport { type LinkProps, useLinkStatus }\n","// This file is generated by next-core EcmascriptClientReferenceModule.\nimport { registerClientReference } from \"react-server-dom-turbopack/server\";\nexport default registerClientReference(\n function() { throw new Error(\"Attempted to call the default export of [project]/src/app/recipes/recipes-client.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"); },\n \"[project]/src/app/recipes/recipes-client.tsx\",\n \"default\",\n);\n","import Link from \"next/link\";\nimport { unstable_noStore as noStore } from \"next/cache\";\n\nimport { runOpenClaw } from \"@/lib/openclaw\";\nimport RecipesClient from \"./recipes-client\";\n\nexport const dynamic = \"force-dynamic\";\nexport const revalidate = 0;\n\ntype Recipe = {\n id: string;\n name: string;\n kind: \"agent\" | \"team\";\n source: \"builtin\" | \"workspace\";\n};\n\nasync function getRecipes(): Promise<{ recipes: Recipe[]; error: string | null }> {\n const res = await runOpenClaw([\"recipes\", \"list\"]);\n if (!res.ok) {\n const err = res.stderr.trim() || `openclaw recipes list failed (exit=${res.exitCode})`;\n return { recipes: [], error: err };\n }\n\n try {\n return { recipes: JSON.parse(res.stdout) as Recipe[], error: null };\n } catch {\n return { recipes: [], error: \"Failed to parse openclaw recipes list output\" };\n }\n}\n\nasync function getAgents(): Promise<{ agentIds: string[]; error: string | null }> {\n const res = await runOpenClaw([\"agents\", \"list\", \"--json\"]);\n if (!res.ok) {\n const err = res.stderr.trim() || `openclaw agents list failed (exit=${res.exitCode})`;\n return { agentIds: [], error: err };\n }\n try {\n const items = JSON.parse(res.stdout) as Array<{ id?: unknown }>;\n const agentIds = Array.isArray(items) ? items.map((a) => String(a.id ?? \"\")).filter(Boolean) : [];\n return { agentIds, error: null };\n } catch {\n return { agentIds: [], error: \"Failed to parse openclaw agents list output\" };\n }\n}\n\nexport default async function RecipesPage() {\n noStore();\n\n const [{ recipes, error }, { agentIds }] = await Promise.all([getRecipes(), getAgents()]);\n\n const builtin = recipes.filter((r) => r.source === \"builtin\");\n const workspace = recipes.filter((r) => r.source === \"workspace\");\n\n // Workspace recipes are user-editable markdown files under ~/.openclaw/workspace/recipes.\n // Treat them as \"Custom recipes\" in the UI.\n const customTeamRecipes = workspace.filter((r) => r.kind === \"team\");\n const customAgentRecipes = workspace.filter((r) => r.kind === \"agent\");\n\n return (\n <div className=\"ck-glass mx-auto max-w-4xl p-6 sm:p-8\">\n <div className=\"flex items-baseline justify-between gap-4\">\n <h1 className=\"text-2xl font-semibold tracking-tight\">Recipes</h1>\n <Link\n href=\"/\"\n className=\"text-sm font-medium text-[color:var(--ck-text-secondary)] transition-colors hover:text-[color:var(--ck-text-primary)]\"\n >\n Home\n </Link>\n </div>\n\n {error ? (\n <div className=\"mt-6 rounded-[var(--ck-radius-sm)] border border-[color:var(--ck-border-subtle)] bg-[color:var(--ck-bg-glass)] p-4 text-sm text-[color:var(--ck-text-secondary)]\">\n <div className=\"font-medium text-[color:var(--ck-text-primary)]\">Recipes unavailable</div>\n <div className=\"mt-1 whitespace-pre-wrap\">{error}</div>\n <div className=\"mt-3 text-xs text-[color:var(--ck-text-tertiary)]\">\n If this says &quot;unknown command &apos;recipes&apos;&quot;, the Recipes plugin is likely disabled/not allowlisted.\n Try: <code className=\"ml-1\">openclaw plugins enable recipes</code> then restart the gateway.\n </div>\n </div>\n ) : null}\n\n <RecipesClient\n builtin={builtin}\n customTeamRecipes={customTeamRecipes}\n customAgentRecipes={customAgentRecipes}\n installedAgentIds={agentIds}\n />\n\n <p className=\"mt-10 text-xs text-[color:var(--ck-text-tertiary)]\">\n Note: editing builtin recipes will modify the recipes plugin install path on this machine.\n </p>\n </div>\n );\n}\n"],"names":["LinkComponent","useLinkStatus","isModifiedEvent","event","eventTarget","currentTarget","target","getAttribute","metaKey","ctrlKey","shiftKey","altKey","nativeEvent","which","linkClicked","e","href","as","linkInstanceRef","replace","scroll","onNavigate","window","nodeName","isAnchorNodeName","toUpperCase","hasAttribute","isLocalURL","preventDefault","location","isDefaultPrevented","dispatchNavigateAction","require","React","startTransition","current","formatStringOrUrl","urlObjOrString","formatUrl","props","linkStatus","setOptimisticLinkStatus","useOptimistic","IDLE_LINK_STATUS","children","useRef","hrefProp","asProp","childrenProp","prefetch","prefetchProp","passHref","shallow","onClick","onMouseEnter","onMouseEnterProp","onTouchStart","onTouchStartProp","legacyBehavior","ref","forwardedRef","unstable_dynamicOnHover","restProps","a","router","useContext","AppRouterContext","prefetchEnabled","fetchStrategy","getFetchStrategyFromPrefetchProp","FetchStrategy","PPR","process","env","NODE_ENV","createPropError","args","Error","key","expected","actual","requiredPropsGuard","requiredProps","Object","keys","forEach","_","optionalPropsGuard","optionalProps","valType","locale","warnOnce","pathname","hasDynamicSegment","split","some","segment","startsWith","endsWith","useMemo","resolvedHref","child","$$typeof","Symbol","for","console","warn","Children","only","err","type","childRef","observeLinkVisibilityOnMount","useCallback","element","mountLinkInstance","unmountLinkForCurrentNavigation","unmountPrefetchableInstance","mergedRef","useMergedRef","childProps","defaultPrevented","upgradeToDynamicPrefetch","onNavigationIntent","__NEXT_LINK_NO_TOUCH_START","undefined","isAbsoluteUrl","addBasePath","link","errorOnce","cloneElement","LinkStatusContext","Provider","value","createContext","__NEXT_CACHE_COMPONENTS","Full","isLegacyBehavior","childIsHostComponent","childIsClientComponent","error","ClientLinkComponent"],"mappings":"4TACA,GAAM,yBAAE,CAAuB,CAAE,CAAA,EAAA,CAAA,CAAA,OAEjC,EAAsB,CAAC,CAAC,EAAwB,iGAFhD,GAAM,yBAAE,CAAuB,CAAE,CAAA,EAAA,CAAA,CAAA,OAEjC,EAAsB,CAAC,CAAC,EAAwB,2MEAhD,OAyBC,CAAA,kBAzBuBA,GA2BCC,aAAa,CAAA,kBAAbA,EAAAA,aAAa,2GA7B6B,CAAA,CAAA,IAAA,IAEpD,SAASD,EACtBuC,CAAiD,EAEjD,IAAMkG,EAAmBlG,EAAMmB,cAAc,CACvCgF,EACsB,UAA1B,OAAOnG,EAAMK,QAAQ,EACK,UAA1B,OAAOL,EAAMK,QAAQ,EACoB,UAAzC,OAAQL,EAAMK,QAAQ,EA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AAU,6KACb,CAAA,EAAA,EAAA,GAAA,EAAC,MAAA,CAAI,UAAU,2DAAkD,wBACjE,CAAA,EAAA,EAAA,GAAA,EAAC,MAAA,CAAI,UAAU,oCAA4B,IAC3C,CAAA,EAAA,EAAA,IAAA,EAAC,MAAA,CAAI,UAAU,8DAAoD,2GAE5D,CAAA,EAAA,EAAA,GAAA,EAAC,OAAA,CAAK,UAAU,gBAAO,oCAAsC,mCAGpE,KAEJ,CAAA,EAAA,EAAA,GAAA,EAAC,EAAA,OAAa,CAAA,CACZ,QAAS,EACT,kBAAmB,EACnB,mBAAoB,EACpB,kBAAmB,IAGrB,CAAA,EAAA,EAAA,GAAA,EAAC,IAAA,CAAE,UAAU,8DAAqD,iGAKxE,kCAvFuB,+BACG","ignoreList":[0,2,3]}
1
+ {"version":3,"sources":["../../../../node_modules/next/dist/client/app-dir/link.js/__nextjs-internal-proxy.cjs","../../../../node_modules/next/src/client/app-dir/link.tsx","../../../../node_modules/next/src/client/app-dir/link.react-server.tsx","../../../../src/app/recipes/recipes-client.tsx/__nextjs-internal-proxy.mjs","../../../../src/app/recipes/page.tsx"],"sourcesContent":["// This file is generated by next-core EcmascriptClientReferenceModule.\nconst { createClientModuleProxy } = require(\"react-server-dom-turbopack/server\");\n\n__turbopack_context__.n(createClientModuleProxy(\"[project]/node_modules/next/dist/client/app-dir/link.js\"));\n","'use client'\n\nimport React, { createContext, useContext, useOptimistic, useRef } from 'react'\nimport type { UrlObject } from 'url'\nimport { formatUrl } from '../../shared/lib/router/utils/format-url'\nimport { AppRouterContext } from '../../shared/lib/app-router-context.shared-runtime'\nimport { useMergedRef } from '../use-merged-ref'\nimport { isAbsoluteUrl } from '../../shared/lib/utils'\nimport { addBasePath } from '../add-base-path'\nimport { warnOnce } from '../../shared/lib/utils/warn-once'\nimport type { PENDING_LINK_STATUS } from '../components/links'\nimport {\n IDLE_LINK_STATUS,\n mountLinkInstance,\n onNavigationIntent,\n unmountLinkForCurrentNavigation,\n unmountPrefetchableInstance,\n type LinkInstance,\n} from '../components/links'\nimport { isLocalURL } from '../../shared/lib/router/utils/is-local-url'\nimport {\n FetchStrategy,\n type PrefetchTaskFetchStrategy,\n} from '../components/segment-cache/types'\nimport { errorOnce } from '../../shared/lib/utils/error-once'\n\ntype Url = string | UrlObject\ntype RequiredKeys<T> = {\n [K in keyof T]-?: {} extends Pick<T, K> ? never : K\n}[keyof T]\ntype OptionalKeys<T> = {\n [K in keyof T]-?: {} extends Pick<T, K> ? K : never\n}[keyof T]\n\ntype OnNavigateEventHandler = (event: { preventDefault: () => void }) => void\n\ntype InternalLinkProps = {\n /**\n * **Required**. The path or URL to navigate to. It can also be an object (similar to `URL`).\n *\n * @example\n * ```tsx\n * // Navigate to /dashboard:\n * <Link href=\"/dashboard\">Dashboard</Link>\n *\n * // Navigate to /about?name=test:\n * <Link href={{ pathname: '/about', query: { name: 'test' } }}>\n * About\n * </Link>\n * ```\n *\n * @remarks\n * - For external URLs, use a fully qualified URL such as `https://...`.\n * - In the App Router, dynamic routes must not include bracketed segments in `href`.\n */\n href: Url\n\n /**\n * @deprecated v10.0.0: `href` props pointing to a dynamic route are\n * automatically resolved and no longer require the `as` prop.\n */\n as?: Url\n\n /**\n * Replace the current `history` state instead of adding a new URL into the stack.\n *\n * @defaultValue `false`\n *\n * @example\n * ```tsx\n * <Link href=\"/about\" replace>\n * About (replaces the history state)\n * </Link>\n * ```\n */\n replace?: boolean\n\n /**\n * Whether to override the default scroll behavior. If `true`, Next.js attempts to maintain\n * the scroll position if the newly navigated page is still visible. If not, it scrolls to the top.\n *\n * If `false`, Next.js will not modify the scroll behavior at all.\n *\n * @defaultValue `true`\n *\n * @example\n * ```tsx\n * <Link href=\"/dashboard\" scroll={false}>\n * No auto scroll\n * </Link>\n * ```\n */\n scroll?: boolean\n\n /**\n * Update the path of the current page without rerunning data fetching methods\n * like `getStaticProps`, `getServerSideProps`, or `getInitialProps`.\n *\n * @remarks\n * `shallow` only applies to the Pages Router. For the App Router, see the\n * [following documentation](https://nextjs.org/docs/app/building-your-application/routing/linking-and-navigating#using-the-native-history-api).\n *\n * @defaultValue `false`\n *\n * @example\n * ```tsx\n * <Link href=\"/blog\" shallow>\n * Shallow navigation\n * </Link>\n * ```\n */\n shallow?: boolean\n\n /**\n * Forces `Link` to pass its `href` to the child component. Useful if the child is a custom\n * component that wraps an `<a>` tag, or if you're using certain styling libraries.\n *\n * @defaultValue `false`\n *\n * @example\n * ```tsx\n * <Link href=\"/dashboard\" passHref legacyBehavior>\n * <MyStyledAnchor>Dashboard</MyStyledAnchor>\n * </Link>\n * ```\n */\n passHref?: boolean\n\n /**\n * Prefetch the page in the background.\n * Any `<Link />` that is in the viewport (initially or through scroll) will be prefetched.\n * Prefetch can be disabled by passing `prefetch={false}`.\n *\n * @remarks\n * Prefetching is only enabled in production.\n *\n * - In the **App Router**:\n * - `\"auto\"`, `null`, `undefined` (default): Prefetch behavior depends on static vs dynamic routes:\n * - Static routes: fully prefetched\n * - Dynamic routes: partial prefetch to the nearest segment with a `loading.js`\n * - `true`: Always prefetch the full route and data.\n * - `false`: Disable prefetching on both viewport and hover.\n * - In the **Pages Router**:\n * - `true` (default): Prefetches the route and data in the background on viewport or hover.\n * - `false`: Prefetch only on hover, not on viewport.\n *\n * @defaultValue `true` (Pages Router) or `null` (App Router)\n *\n * @example\n * ```tsx\n * <Link href=\"/dashboard\" prefetch={false}>\n * Dashboard\n * </Link>\n * ```\n */\n prefetch?: boolean | 'auto' | null\n\n /**\n * (unstable) Switch to a full prefetch on hover. Effectively the same as\n * updating the prefetch prop to `true` in a mouse event.\n */\n unstable_dynamicOnHover?: boolean\n\n /**\n * The active locale is automatically prepended in the Pages Router. `locale` allows for providing\n * a different locale, or can be set to `false` to opt out of automatic locale behavior.\n *\n * @remarks\n * Note: locale only applies in the Pages Router and is ignored in the App Router.\n *\n * @example\n * ```tsx\n * // Use the 'fr' locale:\n * <Link href=\"/about\" locale=\"fr\">\n * About (French)\n * </Link>\n *\n * // Disable locale prefix:\n * <Link href=\"/about\" locale={false}>\n * About (no locale prefix)\n * </Link>\n * ```\n */\n locale?: string | false\n\n /**\n * Enable legacy link behavior.\n *\n * @deprecated This will be removed in a future version\n * @defaultValue `false`\n * @see https://github.com/vercel/next.js/commit/489e65ed98544e69b0afd7e0cfc3f9f6c2b803b7\n */\n legacyBehavior?: boolean\n\n /**\n * Optional event handler for when the mouse pointer is moved onto the `<Link>`.\n */\n onMouseEnter?: React.MouseEventHandler<HTMLAnchorElement>\n\n /**\n * Optional event handler for when the `<Link>` is touched.\n */\n onTouchStart?: React.TouchEventHandler<HTMLAnchorElement>\n\n /**\n * Optional event handler for when the `<Link>` is clicked.\n */\n onClick?: React.MouseEventHandler<HTMLAnchorElement>\n\n /**\n * Optional event handler for when the `<Link>` is navigated.\n */\n onNavigate?: OnNavigateEventHandler\n}\n\n// TODO-APP: Include the full set of Anchor props\n// adding this to the publicly exported type currently breaks existing apps\n\n// `RouteInferType` is a stub here to avoid breaking `typedRoutes` when the type\n// isn't generated yet. It will be replaced when type generation runs.\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type LinkProps<RouteInferType = any> = InternalLinkProps\ntype LinkPropsRequired = RequiredKeys<LinkProps>\ntype LinkPropsOptional = OptionalKeys<Omit<InternalLinkProps, 'locale'>>\n\nfunction isModifiedEvent(event: React.MouseEvent): boolean {\n const eventTarget = event.currentTarget as HTMLAnchorElement | SVGAElement\n const target = eventTarget.getAttribute('target')\n return (\n (target && target !== '_self') ||\n event.metaKey ||\n event.ctrlKey ||\n event.shiftKey ||\n event.altKey || // triggers resource download\n (event.nativeEvent && event.nativeEvent.which === 2)\n )\n}\n\nfunction linkClicked(\n e: React.MouseEvent,\n href: string,\n as: string,\n linkInstanceRef: React.RefObject<LinkInstance | null>,\n replace?: boolean,\n scroll?: boolean,\n onNavigate?: OnNavigateEventHandler\n): void {\n if (typeof window !== 'undefined') {\n const { nodeName } = e.currentTarget\n\n // anchors inside an svg have a lowercase nodeName\n const isAnchorNodeName = nodeName.toUpperCase() === 'A'\n if (\n (isAnchorNodeName && isModifiedEvent(e)) ||\n e.currentTarget.hasAttribute('download')\n ) {\n // ignore click for browser’s default behavior\n return\n }\n\n if (!isLocalURL(href)) {\n if (replace) {\n // browser default behavior does not replace the history state\n // so we need to do it manually\n e.preventDefault()\n location.replace(href)\n }\n\n // ignore click for browser’s default behavior\n return\n }\n\n e.preventDefault()\n\n if (onNavigate) {\n let isDefaultPrevented = false\n\n onNavigate({\n preventDefault: () => {\n isDefaultPrevented = true\n },\n })\n\n if (isDefaultPrevented) {\n return\n }\n }\n\n const { dispatchNavigateAction } =\n require('../components/app-router-instance') as typeof import('../components/app-router-instance')\n\n React.startTransition(() => {\n dispatchNavigateAction(\n as || href,\n replace ? 'replace' : 'push',\n scroll ?? true,\n linkInstanceRef.current\n )\n })\n }\n}\n\nfunction formatStringOrUrl(urlObjOrString: UrlObject | string): string {\n if (typeof urlObjOrString === 'string') {\n return urlObjOrString\n }\n\n return formatUrl(urlObjOrString)\n}\n\n/**\n * A React component that extends the HTML `<a>` element to provide\n * [prefetching](https://nextjs.org/docs/app/building-your-application/routing/linking-and-navigating#2-prefetching)\n * and client-side navigation. This is the primary way to navigate between routes in Next.js.\n *\n * @remarks\n * - Prefetching is only enabled in production.\n *\n * @see https://nextjs.org/docs/app/api-reference/components/link\n */\nexport default function LinkComponent(\n props: LinkProps & {\n children: React.ReactNode\n ref: React.Ref<HTMLAnchorElement>\n }\n) {\n const [linkStatus, setOptimisticLinkStatus] = useOptimistic(IDLE_LINK_STATUS)\n\n let children: React.ReactNode\n\n const linkInstanceRef = useRef<LinkInstance | null>(null)\n\n const {\n href: hrefProp,\n as: asProp,\n children: childrenProp,\n prefetch: prefetchProp = null,\n passHref,\n replace,\n shallow,\n scroll,\n onClick,\n onMouseEnter: onMouseEnterProp,\n onTouchStart: onTouchStartProp,\n legacyBehavior = false,\n onNavigate,\n ref: forwardedRef,\n unstable_dynamicOnHover,\n ...restProps\n } = props\n\n children = childrenProp\n\n if (\n legacyBehavior &&\n (typeof children === 'string' || typeof children === 'number')\n ) {\n children = <a>{children}</a>\n }\n\n const router = React.useContext(AppRouterContext)\n\n const prefetchEnabled = prefetchProp !== false\n\n const fetchStrategy =\n prefetchProp !== false\n ? getFetchStrategyFromPrefetchProp(prefetchProp)\n : // TODO: it makes no sense to assign a fetchStrategy when prefetching is disabled.\n FetchStrategy.PPR\n\n if (process.env.NODE_ENV !== 'production') {\n function createPropError(args: {\n key: string\n expected: string\n actual: string\n }) {\n return new Error(\n `Failed prop type: The prop \\`${args.key}\\` expects a ${args.expected} in \\`<Link>\\`, but got \\`${args.actual}\\` instead.` +\n (typeof window !== 'undefined'\n ? \"\\nOpen your browser's console to view the Component stack trace.\"\n : '')\n )\n }\n\n // TypeScript trick for type-guarding:\n const requiredPropsGuard: Record<LinkPropsRequired, true> = {\n href: true,\n } as const\n const requiredProps: LinkPropsRequired[] = Object.keys(\n requiredPropsGuard\n ) as LinkPropsRequired[]\n requiredProps.forEach((key: LinkPropsRequired) => {\n if (key === 'href') {\n if (\n props[key] == null ||\n (typeof props[key] !== 'string' && typeof props[key] !== 'object')\n ) {\n throw createPropError({\n key,\n expected: '`string` or `object`',\n actual: props[key] === null ? 'null' : typeof props[key],\n })\n }\n } else {\n // TypeScript trick for type-guarding:\n const _: never = key\n }\n })\n\n // TypeScript trick for type-guarding:\n const optionalPropsGuard: Record<LinkPropsOptional, true> = {\n as: true,\n replace: true,\n scroll: true,\n shallow: true,\n passHref: true,\n prefetch: true,\n unstable_dynamicOnHover: true,\n onClick: true,\n onMouseEnter: true,\n onTouchStart: true,\n legacyBehavior: true,\n onNavigate: true,\n } as const\n const optionalProps: LinkPropsOptional[] = Object.keys(\n optionalPropsGuard\n ) as LinkPropsOptional[]\n optionalProps.forEach((key: LinkPropsOptional) => {\n const valType = typeof props[key]\n\n if (key === 'as') {\n if (props[key] && valType !== 'string' && valType !== 'object') {\n throw createPropError({\n key,\n expected: '`string` or `object`',\n actual: valType,\n })\n }\n } else if (\n key === 'onClick' ||\n key === 'onMouseEnter' ||\n key === 'onTouchStart' ||\n key === 'onNavigate'\n ) {\n if (props[key] && valType !== 'function') {\n throw createPropError({\n key,\n expected: '`function`',\n actual: valType,\n })\n }\n } else if (\n key === 'replace' ||\n key === 'scroll' ||\n key === 'shallow' ||\n key === 'passHref' ||\n key === 'legacyBehavior' ||\n key === 'unstable_dynamicOnHover'\n ) {\n if (props[key] != null && valType !== 'boolean') {\n throw createPropError({\n key,\n expected: '`boolean`',\n actual: valType,\n })\n }\n } else if (key === 'prefetch') {\n if (\n props[key] != null &&\n valType !== 'boolean' &&\n props[key] !== 'auto'\n ) {\n throw createPropError({\n key,\n expected: '`boolean | \"auto\"`',\n actual: valType,\n })\n }\n } else {\n // TypeScript trick for type-guarding:\n const _: never = key\n }\n })\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (props.locale) {\n warnOnce(\n 'The `locale` prop is not supported in `next/link` while using the `app` router. Read more about app router internalization: https://nextjs.org/docs/app/building-your-application/routing/internationalization'\n )\n }\n if (!asProp) {\n let href: string | undefined\n if (typeof hrefProp === 'string') {\n href = hrefProp\n } else if (\n typeof hrefProp === 'object' &&\n typeof hrefProp.pathname === 'string'\n ) {\n href = hrefProp.pathname\n }\n\n if (href) {\n const hasDynamicSegment = href\n .split('/')\n .some((segment) => segment.startsWith('[') && segment.endsWith(']'))\n\n if (hasDynamicSegment) {\n throw new Error(\n `Dynamic href \\`${href}\\` found in <Link> while using the \\`/app\\` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href`\n )\n }\n }\n }\n }\n\n const { href, as } = React.useMemo(() => {\n const resolvedHref = formatStringOrUrl(hrefProp)\n return {\n href: resolvedHref,\n as: asProp ? formatStringOrUrl(asProp) : resolvedHref,\n }\n }, [hrefProp, asProp])\n\n // This will return the first child, if multiple are provided it will throw an error\n let child: any\n if (legacyBehavior) {\n if ((children as any)?.$$typeof === Symbol.for('react.lazy')) {\n throw new Error(\n `\\`<Link legacyBehavior>\\` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's \\`<a>\\` tag.`\n )\n }\n\n if (process.env.NODE_ENV === 'development') {\n if (onClick) {\n console.warn(\n `\"onClick\" was passed to <Link> with \\`href\\` of \\`${hrefProp}\\` but \"legacyBehavior\" was set. The legacy behavior requires onClick be set on the child of next/link`\n )\n }\n if (onMouseEnterProp) {\n console.warn(\n `\"onMouseEnter\" was passed to <Link> with \\`href\\` of \\`${hrefProp}\\` but \"legacyBehavior\" was set. The legacy behavior requires onMouseEnter be set on the child of next/link`\n )\n }\n try {\n child = React.Children.only(children)\n } catch (err) {\n if (!children) {\n throw new Error(\n `No children were passed to <Link> with \\`href\\` of \\`${hrefProp}\\` but one child is required https://nextjs.org/docs/messages/link-no-children`\n )\n }\n throw new Error(\n `Multiple children were passed to <Link> with \\`href\\` of \\`${hrefProp}\\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children` +\n (typeof window !== 'undefined'\n ? \" \\nOpen your browser's console to view the Component stack trace.\"\n : '')\n )\n }\n } else {\n child = React.Children.only(children)\n }\n } else {\n if (process.env.NODE_ENV === 'development') {\n if ((children as any)?.type === 'a') {\n throw new Error(\n 'Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.\\nLearn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor'\n )\n }\n }\n }\n\n const childRef: any = legacyBehavior\n ? child && typeof child === 'object' && child.ref\n : forwardedRef\n\n // Use a callback ref to attach an IntersectionObserver to the anchor tag on\n // mount. In the future we will also use this to keep track of all the\n // currently mounted <Link> instances, e.g. so we can re-prefetch them after\n // a revalidation or refresh.\n const observeLinkVisibilityOnMount = React.useCallback(\n (element: HTMLAnchorElement | SVGAElement) => {\n if (router !== null) {\n linkInstanceRef.current = mountLinkInstance(\n element,\n href,\n router,\n fetchStrategy,\n prefetchEnabled,\n setOptimisticLinkStatus\n )\n }\n\n return () => {\n if (linkInstanceRef.current) {\n unmountLinkForCurrentNavigation(linkInstanceRef.current)\n linkInstanceRef.current = null\n }\n unmountPrefetchableInstance(element)\n }\n },\n [prefetchEnabled, href, router, fetchStrategy, setOptimisticLinkStatus]\n )\n\n const mergedRef = useMergedRef(observeLinkVisibilityOnMount, childRef)\n\n const childProps: {\n onTouchStart?: React.TouchEventHandler<HTMLAnchorElement>\n onMouseEnter: React.MouseEventHandler<HTMLAnchorElement>\n onClick: React.MouseEventHandler<HTMLAnchorElement>\n href?: string\n ref?: any\n } = {\n ref: mergedRef,\n onClick(e) {\n if (process.env.NODE_ENV !== 'production') {\n if (!e) {\n throw new Error(\n `Component rendered inside next/link has to pass click event to \"onClick\" prop.`\n )\n }\n }\n\n if (!legacyBehavior && typeof onClick === 'function') {\n onClick(e)\n }\n\n if (\n legacyBehavior &&\n child.props &&\n typeof child.props.onClick === 'function'\n ) {\n child.props.onClick(e)\n }\n\n if (!router) {\n return\n }\n if (e.defaultPrevented) {\n return\n }\n linkClicked(e, href, as, linkInstanceRef, replace, scroll, onNavigate)\n },\n onMouseEnter(e) {\n if (!legacyBehavior && typeof onMouseEnterProp === 'function') {\n onMouseEnterProp(e)\n }\n\n if (\n legacyBehavior &&\n child.props &&\n typeof child.props.onMouseEnter === 'function'\n ) {\n child.props.onMouseEnter(e)\n }\n\n if (!router) {\n return\n }\n if (!prefetchEnabled || process.env.NODE_ENV === 'development') {\n return\n }\n\n const upgradeToDynamicPrefetch = unstable_dynamicOnHover === true\n onNavigationIntent(\n e.currentTarget as HTMLAnchorElement | SVGAElement,\n upgradeToDynamicPrefetch\n )\n },\n onTouchStart: process.env.__NEXT_LINK_NO_TOUCH_START\n ? undefined\n : function onTouchStart(e) {\n if (!legacyBehavior && typeof onTouchStartProp === 'function') {\n onTouchStartProp(e)\n }\n\n if (\n legacyBehavior &&\n child.props &&\n typeof child.props.onTouchStart === 'function'\n ) {\n child.props.onTouchStart(e)\n }\n\n if (!router) {\n return\n }\n if (!prefetchEnabled) {\n return\n }\n\n const upgradeToDynamicPrefetch = unstable_dynamicOnHover === true\n onNavigationIntent(\n e.currentTarget as HTMLAnchorElement | SVGAElement,\n upgradeToDynamicPrefetch\n )\n },\n }\n\n // If the url is absolute, we can bypass the logic to prepend the basePath.\n if (isAbsoluteUrl(as)) {\n childProps.href = as\n } else if (\n !legacyBehavior ||\n passHref ||\n (child.type === 'a' && !('href' in child.props))\n ) {\n childProps.href = addBasePath(as)\n }\n\n let link: React.ReactNode\n\n if (legacyBehavior) {\n if (process.env.NODE_ENV === 'development') {\n errorOnce(\n '`legacyBehavior` is deprecated and will be removed in a future ' +\n 'release. A codemod is available to upgrade your components:\\n\\n' +\n 'npx @next/codemod@latest new-link .\\n\\n' +\n 'Learn more: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#remove-a-tags-from-link-components'\n )\n }\n link = React.cloneElement(child, childProps)\n } else {\n link = (\n <a {...restProps} {...childProps}>\n {children}\n </a>\n )\n }\n\n return (\n <LinkStatusContext.Provider value={linkStatus}>\n {link}\n </LinkStatusContext.Provider>\n )\n}\n\nconst LinkStatusContext = createContext<\n typeof PENDING_LINK_STATUS | typeof IDLE_LINK_STATUS\n>(IDLE_LINK_STATUS)\n\nexport const useLinkStatus = () => {\n return useContext(LinkStatusContext)\n}\n\nfunction getFetchStrategyFromPrefetchProp(\n prefetchProp: Exclude<LinkProps['prefetch'], undefined | false>\n): PrefetchTaskFetchStrategy {\n if (process.env.__NEXT_CACHE_COMPONENTS) {\n if (prefetchProp === true) {\n return FetchStrategy.Full\n }\n\n // `null` or `\"auto\"`: this is the default \"auto\" mode, where we will prefetch partially if the link is in the viewport.\n // This will also include invalid prop values that don't match the types specified here.\n // (although those should've been filtered out by prop validation in dev)\n prefetchProp satisfies null | 'auto'\n return FetchStrategy.PPR\n } else {\n return prefetchProp === null || prefetchProp === 'auto'\n ? // We default to PPR, and we'll discover whether or not the route supports it with the initial prefetch.\n FetchStrategy.PPR\n : // In the old implementation without runtime prefetches, `prefetch={true}` forces all dynamic data to be prefetched.\n // To preserve backwards-compatibility, anything other than `false`, `null`, or `\"auto\"` results in a full prefetch.\n // (although invalid values should've been filtered out by prop validation in dev)\n FetchStrategy.Full\n }\n}\n","import type { ComponentProps } from 'react'\nimport ClientLinkComponent, { type LinkProps, useLinkStatus } from './link'\n\nexport default function LinkComponent(\n props: ComponentProps<typeof ClientLinkComponent>\n) {\n const isLegacyBehavior = props.legacyBehavior\n const childIsHostComponent =\n typeof props.children === 'string' ||\n typeof props.children === 'number' ||\n typeof (props.children as any)?.type === 'string'\n const childIsClientComponent =\n (props.children as any)?.type?.$$typeof ===\n Symbol.for('react.client.reference')\n\n if (isLegacyBehavior && !childIsHostComponent && !childIsClientComponent) {\n if ((props.children as any)?.type?.$$typeof === Symbol.for('react.lazy')) {\n console.error(\n `Using a Lazy Component as a direct child of \\`<Link legacyBehavior>\\` from a Server Component is not supported. If you need legacyBehavior, wrap your Lazy Component in a Client Component that renders the Link's \\`<a>\\` tag.`\n )\n } else {\n console.error(\n `Using a Server Component as a direct child of \\`<Link legacyBehavior>\\` is not supported. If you need legacyBehavior, wrap your Server Component in a Client Component that renders the Link's \\`<a>\\` tag.`\n )\n }\n }\n\n return <ClientLinkComponent {...props} />\n}\n\nexport { type LinkProps, useLinkStatus }\n","// This file is generated by next-core EcmascriptClientReferenceModule.\nimport { registerClientReference } from \"react-server-dom-turbopack/server\";\nexport default registerClientReference(\n function() { throw new Error(\"Attempted to call the default export of [project]/src/app/recipes/recipes-client.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"); },\n \"[project]/src/app/recipes/recipes-client.tsx\",\n \"default\",\n);\n","import Link from \"next/link\";\nimport { unstable_noStore as noStore } from \"next/cache\";\n\nimport { runOpenClaw } from \"@/lib/openclaw\";\nimport RecipesClient from \"./recipes-client\";\n\nexport const dynamic = \"force-dynamic\";\nexport const revalidate = 0;\n\ntype Recipe = {\n id: string;\n name: string;\n kind: \"agent\" | \"team\";\n source: \"builtin\" | \"workspace\";\n};\n\nasync function getRecipes(): Promise<{ recipes: Recipe[]; error: string | null }> {\n const res = await runOpenClaw([\"recipes\", \"list\"]);\n if (!res.ok) {\n const err = res.stderr.trim() || `openclaw recipes list failed (exit=${res.exitCode})`;\n return { recipes: [], error: err };\n }\n\n try {\n return { recipes: JSON.parse(res.stdout) as Recipe[], error: null };\n } catch {\n return { recipes: [], error: \"Failed to parse openclaw recipes list output\" };\n }\n}\n\nasync function getAgents(): Promise<{ agentIds: string[]; error: string | null }> {\n const res = await runOpenClaw([\"agents\", \"list\", \"--json\"]);\n if (!res.ok) {\n const err = res.stderr.trim() || `openclaw agents list failed (exit=${res.exitCode})`;\n return { agentIds: [], error: err };\n }\n try {\n const items = JSON.parse(res.stdout) as Array<{ id?: unknown }>;\n const agentIds = Array.isArray(items) ? items.map((a) => String(a.id ?? \"\")).filter(Boolean) : [];\n return { agentIds, error: null };\n } catch {\n return { agentIds: [], error: \"Failed to parse openclaw agents list output\" };\n }\n}\n\nexport default async function RecipesPage() {\n noStore();\n\n const [{ recipes, error }, { agentIds }] = await Promise.all([getRecipes(), getAgents()]);\n\n const builtin = recipes.filter((r) => r.source === \"builtin\");\n const workspace = recipes.filter((r) => r.source === \"workspace\");\n\n // Workspace recipes are user-editable markdown files under ~/.openclaw/workspace/recipes.\n // Treat them as \"Custom recipes\" in the UI.\n const customTeamRecipes = workspace.filter((r) => r.kind === \"team\");\n const customAgentRecipes = workspace.filter((r) => r.kind === \"agent\");\n\n return (\n <div className=\"ck-glass w-full p-6 sm:p-8\">\n <div className=\"flex items-baseline justify-between gap-4\">\n <h1 className=\"text-2xl font-semibold tracking-tight\">Recipes</h1>\n <Link\n href=\"/\"\n className=\"text-sm font-medium text-[color:var(--ck-text-secondary)] transition-colors hover:text-[color:var(--ck-text-primary)]\"\n >\n Home\n </Link>\n </div>\n\n {error ? (\n <div className=\"mt-6 rounded-[var(--ck-radius-sm)] border border-[color:var(--ck-border-subtle)] bg-[color:var(--ck-bg-glass)] p-4 text-sm text-[color:var(--ck-text-secondary)]\">\n <div className=\"font-medium text-[color:var(--ck-text-primary)]\">Recipes unavailable</div>\n <div className=\"mt-1 whitespace-pre-wrap\">{error}</div>\n <div className=\"mt-3 text-xs text-[color:var(--ck-text-tertiary)]\">\n If this says &quot;unknown command &apos;recipes&apos;&quot;, the Recipes plugin is likely disabled/not allowlisted.\n Try: <code className=\"ml-1\">openclaw plugins enable recipes</code> then restart the gateway.\n </div>\n </div>\n ) : null}\n\n <RecipesClient\n builtin={builtin}\n customTeamRecipes={customTeamRecipes}\n customAgentRecipes={customAgentRecipes}\n installedAgentIds={agentIds}\n />\n\n <p className=\"mt-10 text-xs text-[color:var(--ck-text-tertiary)]\">\n Note: editing builtin recipes will modify the recipes plugin install path on this machine.\n </p>\n </div>\n );\n}\n"],"names":["LinkComponent","useLinkStatus","isModifiedEvent","event","eventTarget","currentTarget","target","getAttribute","metaKey","ctrlKey","shiftKey","altKey","nativeEvent","which","linkClicked","e","href","as","linkInstanceRef","replace","scroll","onNavigate","window","nodeName","isAnchorNodeName","toUpperCase","hasAttribute","isLocalURL","preventDefault","location","isDefaultPrevented","dispatchNavigateAction","require","React","startTransition","current","formatStringOrUrl","urlObjOrString","formatUrl","props","linkStatus","setOptimisticLinkStatus","useOptimistic","IDLE_LINK_STATUS","children","useRef","hrefProp","asProp","childrenProp","prefetch","prefetchProp","passHref","shallow","onClick","onMouseEnter","onMouseEnterProp","onTouchStart","onTouchStartProp","legacyBehavior","ref","forwardedRef","unstable_dynamicOnHover","restProps","a","router","useContext","AppRouterContext","prefetchEnabled","fetchStrategy","getFetchStrategyFromPrefetchProp","FetchStrategy","PPR","process","env","NODE_ENV","createPropError","args","Error","key","expected","actual","requiredPropsGuard","requiredProps","Object","keys","forEach","_","optionalPropsGuard","optionalProps","valType","locale","warnOnce","pathname","hasDynamicSegment","split","some","segment","startsWith","endsWith","useMemo","resolvedHref","child","$$typeof","Symbol","for","console","warn","Children","only","err","type","childRef","observeLinkVisibilityOnMount","useCallback","element","mountLinkInstance","unmountLinkForCurrentNavigation","unmountPrefetchableInstance","mergedRef","useMergedRef","childProps","defaultPrevented","upgradeToDynamicPrefetch","onNavigationIntent","__NEXT_LINK_NO_TOUCH_START","undefined","isAbsoluteUrl","addBasePath","link","errorOnce","cloneElement","LinkStatusContext","Provider","value","createContext","__NEXT_CACHE_COMPONENTS","Full","isLegacyBehavior","childIsHostComponent","childIsClientComponent","error","ClientLinkComponent"],"mappings":"2TACA,GAAM,yBAAE,CAAuB,CAAE,CAAA,EAAA,CAAA,CAAA,OAEjC,EAAsB,CAAC,CAAC,EAAwB,iGAFhD,GAAM,yBAAE,CAAuB,CAAE,CAAA,EAAA,CAAA,CAAA,OAEjC,EAAsB,CAAC,CAAC,EAAwB,2MEAhD,OAyBC,CAAA,kBAzBuBA,GA2BCC,aAAa,CAAA,kBAAbA,EAAAA,aAAa,2GA7B6B,CAAA,CAAA,IAAA,IAEpD,SAASD,EACtBuC,CAAiD,EAEjD,IAAMkG,EAAmBlG,EAAMmB,cAAc,CACvCgF,EACsB,UAA1B,OAAOnG,EAAMK,QAAQ,EACK,UAA1B,OAAOL,EAAMK,QAAQ,EACoB,UAAzC,OAAQL,EAAMK,QAAQ,EAAUkE,KAC5B6B,EACHpG,EAAMK,QAAQ,EAAUkE,MAAMR,WAC/BC,OAAOC,GAAG,CAAC,0BAcb,OAAA,AAZIiC,GAAqBC,GAAyBC,IAC3CpG,CAWP,CAXaK,QAAQ,AADG,EACOkE,KADkB,CACZR,EADqC,SACxBC,OAAOC,GAAG,CAAC,cACzDC,CADwE,OAChEmC,KAAK,CACX,CAAC,8NAGHnC,CAHkO,CAAC,MAG3NmC,KAAK,CACX,CAAC,2MAA2M,AAK3M,CAL4M,AAK5M,EAAA,EAAA,GAAA,EAACC,EAAAA,OAAmB,CAAA,CAAE,GAAGtG,CAAK,EACvC,6QC1Be,CAAA,EADf,AACe,EADf,CAA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,CAAE,UAAU,8DAAqD,iGAKxE,kCAvFuB,+BACG","ignoreList":[0,2,3]}
@@ -0,0 +1,3 @@
1
+ module.exports=[93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},69264,a=>{a.n(a.i(54832))},50645,a=>{a.n(a.i(27572))},17537,a=>{a.n(a.i(3363))},13718,a=>{a.n(a.i(85523))},18198,a=>{a.n(a.i(45518))},7188,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/src/app/goals/new/page.tsx <module evaluation> from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/goals/new/page.tsx <module evaluation>","default")},29460,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/src/app/goals/new/page.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/goals/new/page.tsx","default")},84268,a=>{"use strict";a.i(7188);var b=a.i(29460);a.n(b)}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__285ae6b7._.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/app/goals/new/page.tsx/__nextjs-internal-proxy.mjs"],"sourcesContent":["// This file is generated by next-core EcmascriptClientReferenceModule.\nimport { registerClientReference } from \"react-server-dom-turbopack/server\";\nexport default registerClientReference(\n function() { throw new Error(\"Attempted to call the default export of [project]/src/app/goals/new/page.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"); },\n \"[project]/src/app/goals/new/page.tsx\",\n \"default\",\n);\n"],"names":[],"mappings":"iWAEe,CAAA,EAAA,AADf,EAAA,CAAA,CAAA,OACe,uBAAA,AAAuB,EAClC,WAAa,MAAM,AAAI,MAAM,4RAA8R,EAC3T,2DACA,gEAHW,CAAA,EADf,AACe,EADf,CAAA,CAAA,OACe,uBAAA,AAAuB,EAClC,WAAa,MAAM,AAAI,MAAM,wQAA0Q,EACvS,uCACA","ignoreList":[0]}
1
+ {"version":3,"sources":["../../../../src/app/goals/new/page.tsx/__nextjs-internal-proxy.mjs"],"sourcesContent":["// This file is generated by next-core EcmascriptClientReferenceModule.\nimport { registerClientReference } from \"react-server-dom-turbopack/server\";\nexport default registerClientReference(\n function() { throw new Error(\"Attempted to call the default export of [project]/src/app/goals/new/page.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"); },\n \"[project]/src/app/goals/new/page.tsx\",\n \"default\",\n);\n"],"names":[],"mappings":"gWAEe,CAAA,EAAA,AADf,EAAA,CAAA,CAAA,OACe,uBAAA,AAAuB,EAClC,WAAa,MAAM,AAAI,MAAM,4RAA8R,EAC3T,2DACA,gEAHW,CAAA,EADf,AACe,EADf,CAAA,CAAA,OACe,uBAAA,AAAuB,EAClC,WAAa,MAAM,AAAI,MAAM,wQAA0Q,EACvS,uCACA","ignoreList":[0]}
@@ -0,0 +1,3 @@
1
+ module.exports=[93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},69264,a=>{a.n(a.i(54832))},50645,a=>{a.n(a.i(27572))},17537,a=>{a.n(a.i(3363))},13718,a=>{a.n(a.i(85523))},18198,a=>{a.n(a.i(45518))},45518,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"default",{enumerable:!0,get:function(){return f}});let d=a.r(7997),e=a.r(72421);function f(){return(0,d.jsx)(e.HTTPAccessErrorFallback,{status:401,message:"You're not authorized to access this page."})}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__2bef6884._.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../node_modules/next/src/client/components/builtin/unauthorized.tsx"],"sourcesContent":["import { HTTPAccessErrorFallback } from '../http-access-fallback/error-fallback'\n\nexport default function Unauthorized() {\n return (\n <HTTPAccessErrorFallback\n status={401}\n message=\"You're not authorized to access this page.\"\n />\n )\n}\n"],"names":["Unauthorized","HTTPAccessErrorFallback","status","message"],"mappings":"oZAEA,UAAA,qCAAwBA,yBAFgB,CAAA,CAAA,IAAA,GAEzB,SAASA,IACtB,MACE,CADF,AACE,EAAA,EAAA,GAAA,EAACC,EADH,AACGA,uBAAuB,CAAA,CACtBC,OAAQ,IACRC,QAAQ,8CAGd","ignoreList":[0]}
1
+ {"version":3,"sources":["../../../../node_modules/next/src/client/components/builtin/unauthorized.tsx"],"sourcesContent":["import { HTTPAccessErrorFallback } from '../http-access-fallback/error-fallback'\n\nexport default function Unauthorized() {\n return (\n <HTTPAccessErrorFallback\n status={401}\n message=\"You're not authorized to access this page.\"\n />\n )\n}\n"],"names":["Unauthorized","HTTPAccessErrorFallback","status","message"],"mappings":"mZAEA,UAAA,qCAAwBA,yBAFgB,CAAA,CAAA,IAAA,GAEzB,SAASA,IACtB,MACE,CADF,AACE,EAAA,EAAA,GAAA,EAACC,EADH,AACGA,uBAAuB,CAAA,CACtBC,OAAQ,IACRC,QAAQ,8CAGd","ignoreList":[0]}
@@ -0,0 +1,3 @@
1
+ module.exports=[93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},69264,a=>{a.n(a.i(54832))},50645,a=>{a.n(a.i(27572))},17537,a=>{a.n(a.i(3363))},13718,a=>{a.n(a.i(85523))},18198,a=>{a.n(a.i(45518))},76431,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/src/app/goals/[id]/goal-editor.tsx <module evaluation> from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/goals/[id]/goal-editor.tsx <module evaluation>","default")},4044,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/src/app/goals/[id]/goal-editor.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/goals/[id]/goal-editor.tsx","default")},60834,a=>{"use strict";a.i(76431);var b=a.i(4044);a.n(b)},61945,a=>{"use strict";var b=a.i(7997),c=a.i(60834);async function d({params:a}){let{id:d}=await a;return(0,b.jsx)(c.default,{goalId:d})}a.s(["default",()=>d])}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__3efd25c4._.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/app/goals/%5Bid%5D/goal-editor.tsx/__nextjs-internal-proxy.mjs","../../../../src/app/goals/%5Bid%5D/page.tsx"],"sourcesContent":["// This file is generated by next-core EcmascriptClientReferenceModule.\nimport { registerClientReference } from \"react-server-dom-turbopack/server\";\nexport default registerClientReference(\n function() { throw new Error(\"Attempted to call the default export of [project]/src/app/goals/[id]/goal-editor.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"); },\n \"[project]/src/app/goals/[id]/goal-editor.tsx\",\n \"default\",\n);\n","import GoalEditor from \"./goal-editor\";\n\nexport default async function GoalDetailPage({ params }: { params: Promise<{ id: string }> }) {\n const { id } = await params;\n return <GoalEditor goalId={id} />;\n}\n"],"names":[],"mappings":"kWAEe,CAAA,EAAA,AADf,EAAA,CAAA,CAAA,OACe,uBAAA,AAAuB,EAClC,WAAa,MAAM,AAAI,MAAM,oSAAsS,EACnU,mEACA,+DAHW,CAAA,EADf,AACe,EADf,CAAA,CAAA,OACe,uBAAA,AAAuB,EAClC,WAAa,MAAM,AAAI,MAAM,gRAAkR,EAC/S,+CACA,6GCLJ,EAAA,EAAA,CAAA,CAAA,OAEe,eAAe,EAAe,QAAE,CAAM,CAAuC,EAC1F,GAAM,IAAE,CAAE,CAAE,CAAG,MAAM,EACrB,MAAO,CAAA,EAAA,EAAA,GAAA,EAAC,EAAA,OAAU,CAAA,CAAC,OAAQ,GAC7B","ignoreList":[0]}
1
+ {"version":3,"sources":["../../../../src/app/goals/%5Bid%5D/goal-editor.tsx/__nextjs-internal-proxy.mjs","../../../../src/app/goals/%5Bid%5D/page.tsx"],"sourcesContent":["// This file is generated by next-core EcmascriptClientReferenceModule.\nimport { registerClientReference } from \"react-server-dom-turbopack/server\";\nexport default registerClientReference(\n function() { throw new Error(\"Attempted to call the default export of [project]/src/app/goals/[id]/goal-editor.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"); },\n \"[project]/src/app/goals/[id]/goal-editor.tsx\",\n \"default\",\n);\n","import GoalEditor from \"./goal-editor\";\n\nexport default async function GoalDetailPage({ params }: { params: Promise<{ id: string }> }) {\n const { id } = await params;\n return <GoalEditor goalId={id} />;\n}\n"],"names":[],"mappings":"iWAEe,CAAA,EAAA,AADf,EAAA,CAAA,CAAA,OACe,uBAAA,AAAuB,EAClC,WAAa,MAAM,AAAI,MAAM,oSAAsS,EACnU,mEACA,+DAHW,CAAA,EADf,AACe,EADf,CAAA,CAAA,OACe,uBAAA,AAAuB,EAClC,WAAa,MAAM,AAAI,MAAM,gRAAkR,EAC/S,+CACA,6GCLJ,EAAA,EAAA,CAAA,CAAA,OAEe,eAAe,EAAe,QAAE,CAAM,CAAuC,EAC1F,GAAM,IAAE,CAAE,CAAE,CAAG,MAAM,EACrB,MAAO,CAAA,EAAA,EAAA,GAAA,EAAC,EAAA,OAAU,CAAA,CAAC,OAAQ,GAC7B","ignoreList":[0]}
@@ -1,3 +1,3 @@
1
- module.exports=[42602,(a,b,c)=>{"use strict";b.exports=a.r(18622)},87924,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactJsxRuntime},72131,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].React},9270,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.AppRouterContext},38783,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactServerDOMTurbopackClient},18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},36313,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.HooksClientContext},18341,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.ServerInsertedHtml},46058,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},39118,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={DEFAULT_SEGMENT_KEY:function(){return l},NOT_FOUND_SEGMENT_KEY:function(){return m},PAGE_SEGMENT_KEY:function(){return k},addSearchParamsIfPageSegment:function(){return i},computeSelectedLayoutSegment:function(){return j},getSegmentValue:function(){return f},getSelectedLayoutSegmentPath:function(){return function a(b,c,d=!0,e=[]){let g;if(d)g=b[1][c];else{let a=b[1];g=a.children??Object.values(a)[0]}if(!g)return e;let h=f(g[0]);return!h||h.startsWith(k)?e:(e.push(h),a(g,c,!1,e))}},isGroupSegment:function(){return g},isParallelRouteSegment:function(){return h}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});function f(a){return Array.isArray(a)?a[1]:a}function g(a){return"("===a[0]&&a.endsWith(")")}function h(a){return a.startsWith("@")&&"@children"!==a}function i(a,b){if(a.includes(k)){let a=JSON.stringify(b);return"{}"!==a?k+"?"+a:k}return a}function j(a,b){if(!a||0===a.length)return null;let c="children"===b?a[0]:a[a.length-1];return c===l?null:c}let k="__PAGE__",l="__DEFAULT__",m="/_not-found"},61889,a=>{"use strict";var b=a.i(87924),c=a.i(72131);let d=(0,c.createContext)(null);function e({kind:a}){return"success"===a?(0,b.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"h-5 w-5 text-emerald-400",children:(0,b.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.707a1 1 0 00-1.414-1.414L9 10.172 7.707 8.879a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}):"error"===a?(0,b.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"h-5 w-5 text-red-400",children:(0,b.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm-1-5a1 1 0 112 0 1 1 0 01-2 0zm0-8a1 1 0 012 0v6a1 1 0 11-2 0V5z",clipRule:"evenodd"})}):(0,b.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"h-5 w-5 text-slate-300",children:(0,b.jsx)("path",{fillRule:"evenodd",d:"M18 10A8 8 0 11 2 10a8 8 0 0116 0zM9 9a1 1 0 112 0v5a1 1 0 11-2 0V9zm0-3a1 1 0 112 0 1 1 0 01-2 0z",clipRule:"evenodd"})})}function f({children:a}){let[f,g]=(0,c.useState)([]),h=(0,c.useCallback)(a=>{g(b=>b.filter(b=>b.id!==a))},[]),i=(0,c.useCallback)(a=>{g(b=>b.map(b=>b.id===a?{...b,state:"leave"}:b)),window.setTimeout(()=>h(a),250)},[h]),j=(0,c.useCallback)(a=>{let b=`${Date.now()}-${Math.random().toString(16).slice(2)}`,c={id:b,timeoutMs:5e3,state:"enter",...a};g(a=>[c,...a].slice(0,4)),window.setTimeout(()=>{g(a=>a.map(a=>a.id===b?{...a,state:"show"}:a))},10);let d=c.timeoutMs;d&&d>0&&window.setTimeout(()=>i(b),d)},[i]),k=(0,c.useMemo)(()=>({push:j}),[j]);return(0,b.jsxs)(d.Provider,{value:k,children:[a,(0,b.jsx)("div",{"aria-live":"assertive",className:"pointer-events-none fixed inset-0 z-[100] flex items-end px-4 py-6 sm:p-6",children:(0,b.jsx)("div",{className:"flex w-full flex-col items-start space-y-4",children:f.map(a=>{let c="enter"===a.state||"leave"===a.state?"translate-x-[-16px] opacity-0":"translate-x-0 opacity-100";return(0,b.jsx)("div",{className:"pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg border bg-[color:var(--ck-toast-bg)] shadow-[var(--ck-shadow-2)] transition-all duration-200 ease-out border-[color:var(--ck-toast-border)] "+c,children:(0,b.jsx)("div",{className:"p-4",children:(0,b.jsxs)("div",{className:"flex items-start",children:[(0,b.jsx)("div",{className:"shrink-0",children:(0,b.jsx)(e,{kind:a.kind})}),(0,b.jsxs)("div",{className:"ml-3 w-0 flex-1",children:[a.title?(0,b.jsx)("p",{className:"text-sm font-medium text-[color:var(--ck-text-primary)]",children:a.title}):null,(0,b.jsx)("p",{className:"whitespace-pre-wrap text-sm text-[color:var(--ck-text-primary)]",children:a.message})]}),(0,b.jsx)("div",{className:"ml-4 flex shrink-0",children:(0,b.jsxs)("button",{type:"button",onClick:()=>i(a.id),className:"inline-flex rounded-md bg-transparent text-[color:var(--ck-text-tertiary)] hover:text-[color:var(--ck-text-primary)]","aria-label":"Dismiss",title:"Dismiss",children:[(0,b.jsx)("span",{className:"sr-only",children:"Close"}),(0,b.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"h-5 w-5",children:(0,b.jsx)("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 10-1.06-1.06L10 8.94 6.28 5.22z"})})]})})]})})},a.id)})})})]})}function g(){let a=(0,c.useContext)(d);if(!a)throw Error("useToast must be used within ToastProvider");return a}a.s(["ToastProvider",()=>f,"useToast",()=>g])},15149,a=>{"use strict";var b=a.i(87924),c=a.i(38246),d=a.i(50944),e=a.i(72131);function f({className:a}){return(0,b.jsxs)("svg",{className:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,b.jsx)("path",{d:"M12 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z",stroke:"currentColor",strokeWidth:"1.8"}),(0,b.jsx)("path",{d:"M12 2v2.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,b.jsx)("path",{d:"M12 19.5V22",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,b.jsx)("path",{d:"M2 12h2.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,b.jsx)("path",{d:"M19.5 12H22",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,b.jsx)("path",{d:"M4.2 4.2 6 6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,b.jsx)("path",{d:"M18 18l1.8 1.8",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,b.jsx)("path",{d:"M18 6l1.8-1.8",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,b.jsx)("path",{d:"M4.2 19.8 6 18",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]})}function g({className:a}){return(0,b.jsx)("svg",{className:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,b.jsx)("path",{d:"M21 14.2A7.8 7.8 0 0 1 9.8 3a7 7 0 1 0 11.2 11.2Z",stroke:"currentColor",strokeWidth:"1.8",strokeLinejoin:"round"})})}function h(){return"dark"}function i(){let[a,c]=(0,e.useState)(h);(0,e.useEffect)(()=>{document.documentElement.dataset.theme=a,window.localStorage.setItem("ck-theme",a)},[a]);let d="dark"===a?"Switch to light mode":"Switch to dark mode";return(0,b.jsxs)("button",{type:"button",onClick:function(){c(a=>"dark"===a?"light":"dark")},className:"grid h-9 w-9 place-items-center rounded-full border border-[color:var(--ck-border-subtle)] bg-[color:var(--ck-bg-glass)] text-[color:var(--ck-text-primary)] shadow-[var(--ck-shadow-1)] transition-colors hover:bg-[color:var(--ck-bg-glass-strong)]","aria-label":d,title:d,children:[(0,b.jsx)("span",{className:"sr-only",suppressHydrationWarning:!0,children:d}),"dark"===a?(0,b.jsx)(g,{className:"h-4.5 w-4.5"}):(0,b.jsx)(f,{className:"h-4.5 w-4.5"})]})}var j=a.i(61889);function k({href:a,label:e}){let f=(0,d.usePathname)(),g=f===a||"/"!==a&&f.startsWith(a);return(0,b.jsx)(c.default,{href:a,className:"rounded-[var(--ck-radius-sm)] px-3 py-1.5 text-sm font-medium transition-colors "+(g?"bg-[var(--ck-accent-red)] text-white":"text-[color:var(--ck-text-secondary)] hover:bg-[color:var(--ck-bg-glass)] hover:text-[color:var(--ck-text-primary)]"),children:e})}function l({children:a}){return(0,b.jsx)(j.ToastProvider,{children:(0,b.jsxs)("div",{className:"min-h-screen",children:[(0,b.jsx)("header",{className:"sticky top-0 z-50 border-b border-[color:var(--ck-border-subtle)] bg-[color:var(--ck-bg-glass)] backdrop-blur-[var(--ck-glass-blur)]",children:(0,b.jsxs)("div",{className:"mx-auto flex max-w-6xl items-center justify-between gap-4 px-4 py-3",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)(c.default,{href:"/",className:"text-sm font-semibold tracking-tight",children:"Claw Kitchen"}),(0,b.jsxs)("nav",{className:"hidden items-center gap-1 sm:flex",children:[(0,b.jsx)(k,{href:"/recipes",label:"Recipes"}),(0,b.jsx)(k,{href:"/tickets",label:"Tickets"}),(0,b.jsx)(k,{href:"/goals",label:"Goals"}),(0,b.jsx)(k,{href:"/cron-jobs",label:"Cron jobs"}),(0,b.jsx)(k,{href:"/settings",label:"Settings"})]})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("a",{href:"https://github.com/JIGGAI/ClawRecipes/tree/main/docs",target:"_blank",rel:"noreferrer",className:"rounded-[var(--ck-radius-sm)] px-3 py-1.5 text-sm font-medium text-[color:var(--ck-text-secondary)] transition-colors hover:bg-[color:var(--ck-bg-glass)] hover:text-[color:var(--ck-text-primary)]",children:"Docs"}),(0,b.jsx)(i,{})]})]})}),(0,b.jsx)("main",{className:"mx-auto max-w-6xl px-4 py-8",children:a})]})})}a.s(["AppShell",()=>l],15149)}];
1
+ module.exports=[42602,(a,b,c)=>{"use strict";b.exports=a.r(18622)},87924,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactJsxRuntime},72131,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].React},9270,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.AppRouterContext},38783,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactServerDOMTurbopackClient},18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},36313,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.HooksClientContext},18341,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.ServerInsertedHtml},46058,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},39118,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={DEFAULT_SEGMENT_KEY:function(){return l},NOT_FOUND_SEGMENT_KEY:function(){return m},PAGE_SEGMENT_KEY:function(){return k},addSearchParamsIfPageSegment:function(){return i},computeSelectedLayoutSegment:function(){return j},getSegmentValue:function(){return f},getSelectedLayoutSegmentPath:function(){return function a(b,c,d=!0,e=[]){let g;if(d)g=b[1][c];else{let a=b[1];g=a.children??Object.values(a)[0]}if(!g)return e;let h=f(g[0]);return!h||h.startsWith(k)?e:(e.push(h),a(g,c,!1,e))}},isGroupSegment:function(){return g},isParallelRouteSegment:function(){return h}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});function f(a){return Array.isArray(a)?a[1]:a}function g(a){return"("===a[0]&&a.endsWith(")")}function h(a){return a.startsWith("@")&&"@children"!==a}function i(a,b){if(a.includes(k)){let a=JSON.stringify(b);return"{}"!==a?k+"?"+a:k}return a}function j(a,b){if(!a||0===a.length)return null;let c="children"===b?a[0]:a[a.length-1];return c===l?null:c}let k="__PAGE__",l="__DEFAULT__",m="/_not-found"},61889,a=>{"use strict";var b=a.i(87924),c=a.i(72131);let d=(0,c.createContext)(null);function e({kind:a}){return"success"===a?(0,b.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"h-5 w-5 text-emerald-400",children:(0,b.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.707a1 1 0 00-1.414-1.414L9 10.172 7.707 8.879a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}):"error"===a?(0,b.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"h-5 w-5 text-red-400",children:(0,b.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm-1-5a1 1 0 112 0 1 1 0 01-2 0zm0-8a1 1 0 012 0v6a1 1 0 11-2 0V5z",clipRule:"evenodd"})}):(0,b.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"h-5 w-5 text-slate-300",children:(0,b.jsx)("path",{fillRule:"evenodd",d:"M18 10A8 8 0 11 2 10a8 8 0 0116 0zM9 9a1 1 0 112 0v5a1 1 0 11-2 0V9zm0-3a1 1 0 112 0 1 1 0 01-2 0z",clipRule:"evenodd"})})}function f({children:a}){let[f,g]=(0,c.useState)([]),h=(0,c.useCallback)(a=>{g(b=>b.filter(b=>b.id!==a))},[]),i=(0,c.useCallback)(a=>{g(b=>b.map(b=>b.id===a?{...b,state:"leave"}:b)),window.setTimeout(()=>h(a),250)},[h]),j=(0,c.useCallback)(a=>{let b=`${Date.now()}-${Math.random().toString(16).slice(2)}`,c={id:b,timeoutMs:5e3,state:"enter",...a};g(a=>[c,...a].slice(0,4)),window.setTimeout(()=>{g(a=>a.map(a=>a.id===b?{...a,state:"show"}:a))},10);let d=c.timeoutMs;d&&d>0&&window.setTimeout(()=>i(b),d)},[i]),k=(0,c.useMemo)(()=>({push:j}),[j]);return(0,b.jsxs)(d.Provider,{value:k,children:[a,(0,b.jsx)("div",{"aria-live":"assertive",className:"pointer-events-none fixed inset-0 z-[100] flex items-end px-4 py-6 sm:p-6",children:(0,b.jsx)("div",{className:"flex w-full flex-col items-start space-y-4",children:f.map(a=>{let c="enter"===a.state||"leave"===a.state?"translate-x-[-16px] opacity-0":"translate-x-0 opacity-100";return(0,b.jsx)("div",{className:"pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg border bg-[color:var(--ck-toast-bg)] shadow-[var(--ck-shadow-2)] transition-all duration-200 ease-out border-[color:var(--ck-toast-border)] "+c,children:(0,b.jsx)("div",{className:"p-4",children:(0,b.jsxs)("div",{className:"flex items-start",children:[(0,b.jsx)("div",{className:"shrink-0",children:(0,b.jsx)(e,{kind:a.kind})}),(0,b.jsxs)("div",{className:"ml-3 w-0 flex-1",children:[a.title?(0,b.jsx)("p",{className:"text-sm font-medium text-[color:var(--ck-text-primary)]",children:a.title}):null,(0,b.jsx)("p",{className:"whitespace-pre-wrap text-sm text-[color:var(--ck-text-primary)]",children:a.message})]}),(0,b.jsx)("div",{className:"ml-4 flex shrink-0",children:(0,b.jsxs)("button",{type:"button",onClick:()=>i(a.id),className:"inline-flex rounded-md bg-transparent text-[color:var(--ck-text-tertiary)] hover:text-[color:var(--ck-text-primary)]","aria-label":"Dismiss",title:"Dismiss",children:[(0,b.jsx)("span",{className:"sr-only",children:"Close"}),(0,b.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"h-5 w-5",children:(0,b.jsx)("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 10-1.06-1.06L10 8.94 6.28 5.22z"})})]})})]})})},a.id)})})})]})}function g(){let a=(0,c.useContext)(d);if(!a)throw Error("useToast must be used within ToastProvider");return a}a.s(["ToastProvider",()=>f,"useToast",()=>g])},15149,a=>{"use strict";var b=a.i(87924),c=a.i(38246),d=a.i(50944),e=a.i(72131);function f({className:a}){return(0,b.jsxs)("svg",{className:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,b.jsx)("path",{d:"M12 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z",stroke:"currentColor",strokeWidth:"1.8"}),(0,b.jsx)("path",{d:"M12 2v2.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,b.jsx)("path",{d:"M12 19.5V22",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,b.jsx)("path",{d:"M2 12h2.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,b.jsx)("path",{d:"M19.5 12H22",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,b.jsx)("path",{d:"M4.2 4.2 6 6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,b.jsx)("path",{d:"M18 18l1.8 1.8",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,b.jsx)("path",{d:"M18 6l1.8-1.8",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),(0,b.jsx)("path",{d:"M4.2 19.8 6 18",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]})}function g({className:a}){return(0,b.jsx)("svg",{className:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,b.jsx)("path",{d:"M21 14.2A7.8 7.8 0 0 1 9.8 3a7 7 0 1 0 11.2 11.2Z",stroke:"currentColor",strokeWidth:"1.8",strokeLinejoin:"round"})})}function h(){return"dark"}function i(){let[a,c]=(0,e.useState)(h);(0,e.useEffect)(()=>{document.documentElement.dataset.theme=a,window.localStorage.setItem("ck-theme",a)},[a]);let d="dark"===a?"Switch to light mode":"Switch to dark mode";return(0,b.jsxs)("button",{type:"button",onClick:function(){c(a=>"dark"===a?"light":"dark")},className:"grid h-9 w-9 place-items-center rounded-full border border-[color:var(--ck-border-subtle)] bg-[color:var(--ck-bg-glass)] text-[color:var(--ck-text-primary)] shadow-[var(--ck-shadow-1)] transition-colors hover:bg-[color:var(--ck-bg-glass-strong)]","aria-label":d,title:d,children:[(0,b.jsx)("span",{className:"sr-only",suppressHydrationWarning:!0,children:d}),"dark"===a?(0,b.jsx)(g,{className:"h-4.5 w-4.5"}):(0,b.jsx)(f,{className:"h-4.5 w-4.5"})]})}var j=a.i(61889);function k({children:a}){return(0,b.jsx)("span",{className:"grid size-7 place-items-center text-[color:var(--ck-text-secondary)]","aria-hidden":!0,children:a})}function l({href:a,label:d,icon:e,active:f,collapsed:g}){return(0,b.jsxs)(c.default,{href:a,title:d,className:(f?"flex items-center rounded-[var(--ck-radius-sm)] bg-white/10 text-sm font-medium text-[color:var(--ck-text-primary)]":"flex items-center rounded-[var(--ck-radius-sm)] text-sm font-medium text-[color:var(--ck-text-secondary)] transition-colors hover:bg-white/5 hover:text-[color:var(--ck-text-primary)]")+(g?" justify-center px-0 py-3":" gap-4 px-4 py-3"),children:[e,g?null:(0,b.jsx)("span",{children:d})]})}function m({children:a}){let f=(0,d.usePathname)()||"/",g=(0,d.useRouter)(),h=(0,e.useMemo)(()=>{let a=f.match(/^\/teams\/([^/]+)(?:\/|$)/);return a?decodeURIComponent(a[1]):null},[f]),[m,n]=(0,e.useState)(()=>{try{let a=localStorage.getItem("ck-leftnav-collapsed");return"1"===a}catch{return!1}}),[o,p]=(0,e.useState)([]);(0,e.useEffect)(()=>{(async()=>{try{let a=await fetch("/api/agents",{cache:"no-store"}),b=await a.json(),c=Array.isArray(b.agents)?b.agents:[],d=new Set;for(let a of c){let b=String(a.workspace??"").split("/").filter(Boolean).find(a=>a.startsWith("workspace-"))??"";if(!b)continue;let c=b.slice(10);c&&"workspace"!==c&&d.add(c)}p(Array.from(d).sort())}catch{p([])}})()},[]);let q=[{href:"/",label:"Home",icon:(0,b.jsx)(k,{children:(0,b.jsxs)("svg",{viewBox:"0 0 24 24",className:"h-6 w-6",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,b.jsx)("path",{d:"M3 11l9-8 9 8"}),(0,b.jsx)("path",{d:"M5 10v10h14V10"})]})})},{href:"/recipes",label:"Recipes",icon:(0,b.jsx)(k,{children:(0,b.jsxs)("svg",{viewBox:"0 0 24 24",className:"h-6 w-6",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,b.jsx)("path",{d:"M6 4h12v16H6z"}),(0,b.jsx)("path",{d:"M9 8h6"}),(0,b.jsx)("path",{d:"M9 12h6"})]})})},{href:"/tickets",label:"Tickets",icon:(0,b.jsx)(k,{children:(0,b.jsx)("svg",{viewBox:"0 0 24 24",className:"h-6 w-6",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,b.jsx)("path",{d:"M4 7h16v4a2 2 0 0 1 0 4v4H4v-4a2 2 0 0 0 0-4z"})})})},{href:"/goals",label:"Goals",icon:(0,b.jsx)(k,{children:(0,b.jsxs)("svg",{viewBox:"0 0 24 24",className:"h-6 w-6",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,b.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,b.jsx)("path",{d:"M12 7v5l3 3"})]})})},{href:"/cron-jobs",label:"Cron jobs",icon:(0,b.jsx)(k,{children:(0,b.jsxs)("svg",{viewBox:"0 0 24 24",className:"h-6 w-6",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,b.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,b.jsx)("path",{d:"M12 7v5"})]})})},{href:"/settings",label:"Settings",icon:(0,b.jsx)(k,{children:(0,b.jsxs)("svg",{viewBox:"0 0 24 24",className:"h-6 w-6",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,b.jsx)("path",{d:"M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z"}),(0,b.jsx)("path",{d:"M19.4 15a7.9 7.9 0 0 0 .1-1l2-1.5-2-3.5-2.4.5a7.8 7.8 0 0 0-1.7-1L13.5 3h-4L8.6 6.5a7.8 7.8 0 0 0-1.7 1L4.5 7l-2 3.5 2 1.5a7.9 7.9 0 0 0 .1 1l-2 1.5 2 3.5 2.4-.5a7.8 7.8 0 0 0 1.7 1L10.5 21h4l.9-3.5a7.8 7.8 0 0 0 1.7-1l2.4.5 2-3.5-2-1.5Z"})]})})}],r=m?"w-16":"w-72";return(0,b.jsx)(j.ToastProvider,{children:(0,b.jsxs)("div",{className:"flex h-dvh w-dvw overflow-hidden",children:[(0,b.jsxs)("aside",{className:`flex shrink-0 flex-col border-r border-[color:var(--ck-border-subtle)] bg-[color:var(--ck-bg-glass)] backdrop-blur-[var(--ck-glass-blur)] ${r}`,children:[(0,b.jsxs)("div",{className:"flex h-14 items-center justify-between gap-2 border-b border-[color:var(--ck-border-subtle)] px-3",children:[(0,b.jsx)(c.default,{href:"/",className:"text-sm font-semibold tracking-tight",title:"Home",children:m?"CK":"Claw Kitchen"}),(0,b.jsx)("button",{onClick:function(){n(a=>{let b=!a;try{localStorage.setItem("ck-leftnav-collapsed",b?"1":"0")}catch{}return b})},className:"rounded-[var(--ck-radius-sm)] px-2 py-1 text-sm text-[color:var(--ck-text-secondary)] hover:bg-white/5 hover:text-[color:var(--ck-text-primary)]",title:m?"Expand":"Collapse",children:m?"»":"«"})]}),(0,b.jsx)("div",{className:"border-b border-[color:var(--ck-border-subtle)] p-2",children:m?(0,b.jsx)("button",{className:"w-full rounded-[var(--ck-radius-sm)] bg-white/5 px-2 py-2 text-xs font-medium text-[color:var(--ck-text-secondary)] hover:bg-white/10",title:h?`Team: ${h}`:"Select team",onClick:()=>{o[0]&&g.push(`/teams/${encodeURIComponent(o[0])}`)},children:"👥"}):(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)("div",{className:"px-2 pt-1 text-xs font-semibold uppercase tracking-wide text-[color:var(--ck-text-tertiary)]",children:"Team"}),(0,b.jsxs)("select",{value:h??"",onChange:a=>{let b=a.target.value;b&&g.push(`/teams/${encodeURIComponent(b)}`)},className:"w-full rounded-[var(--ck-radius-sm)] border border-white/10 bg-black/25 px-2 py-2 text-sm text-[color:var(--ck-text-primary)]",children:[(0,b.jsx)("option",{value:"",children:"(select)"}),o.map(a=>(0,b.jsx)("option",{value:a,children:a},a))]})]})}),(0,b.jsxs)("nav",{className:"min-h-0 flex-1 overflow-auto p-2",children:[(0,b.jsx)("div",{className:"mt-2 px-2 pb-2 pt-2"}),q.map(a=>(0,b.jsx)(l,{href:a.href,label:a.label,icon:(0,b.jsx)("span",{"aria-hidden":!0,children:a.icon}),collapsed:m,active:f===a.href||f.startsWith(a.href+"/")},a.href))]}),(0,b.jsxs)("div",{className:"flex items-center justify-between gap-2 border-t border-[color:var(--ck-border-subtle)] p-2",children:[(0,b.jsx)("a",{href:"https://github.com/JIGGAI/ClawRecipes/tree/main/docs",target:"_blank",rel:"noreferrer",className:m?"mx-auto rounded-[var(--ck-radius-sm)] px-2 py-2 text-sm text-[color:var(--ck-text-secondary)] hover:bg-white/5 hover:text-[color:var(--ck-text-primary)]":"rounded-[var(--ck-radius-sm)] px-3 py-2 text-sm font-medium text-[color:var(--ck-text-secondary)] hover:bg-white/5 hover:text-[color:var(--ck-text-primary)]",title:"Docs",children:m?"📖":"Docs"}),m?null:(0,b.jsx)(i,{})]})]}),(0,b.jsx)("div",{className:"min-w-0 flex-1",children:(0,b.jsx)("main",{className:"h-full overflow-auto p-4 md:p-6",children:a})})]})})}a.s(["AppShell",()=>m],15149)}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__491e06fa._.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../node_modules/next/src/server/route-modules/app-page/module.compiled.js","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/contexts/app-router-context.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react-server-dom-turbopack-client.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/contexts/hooks-client-context.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/contexts/server-inserted-html.ts","../../../../node_modules/%40swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/next/src/shared/lib/segment.ts","../../../../src/components/ToastProvider.tsx","../../../../src/components/AppShell.tsx","../../../../src/components/ThemeToggle.tsx","../../../../src/components/icons.tsx"],"sourcesContent":["if (process.env.NEXT_RUNTIME === 'edge') {\n module.exports = require('next/dist/server/route-modules/app-page/module.js')\n} else {\n if (process.env.__NEXT_EXPERIMENTAL_REACT) {\n if (process.env.NODE_ENV === 'development') {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo-experimental.runtime.dev.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page-experimental.runtime.dev.js')\n }\n } else {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page-experimental.runtime.prod.js')\n }\n }\n } else {\n if (process.env.NODE_ENV === 'development') {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo.runtime.dev.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page.runtime.dev.js')\n }\n } else {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo.runtime.prod.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page.runtime.prod.js')\n }\n }\n }\n}\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.ReactJsxRuntime\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.React\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['contexts'].AppRouterContext\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.ReactServerDOMTurbopackClient\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['contexts'].HooksClientContext\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['contexts'].ServerInsertedHtml\n","\"use strict\";\n\nfunction _getRequireWildcardCache(nodeInterop) {\n if (typeof WeakMap !== \"function\") return null;\n\n var cacheBabelInterop = new WeakMap();\n var cacheNodeInterop = new WeakMap();\n\n return (_getRequireWildcardCache = function(nodeInterop) {\n return nodeInterop ? cacheNodeInterop : cacheBabelInterop;\n })(nodeInterop);\n}\nfunction _interop_require_wildcard(obj, nodeInterop) {\n if (!nodeInterop && obj && obj.__esModule) return obj;\n if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") return { default: obj };\n\n var cache = _getRequireWildcardCache(nodeInterop);\n\n if (cache && cache.has(obj)) return cache.get(obj);\n\n var newObj = { __proto__: null };\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n\n for (var key in obj) {\n if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);\n else newObj[key] = obj[key];\n }\n }\n\n newObj.default = obj;\n\n if (cache) cache.set(obj, newObj);\n\n return newObj;\n}\nexports._ = _interop_require_wildcard;\n","import type { FlightRouterState, Segment } from './app-router-types'\n\nexport function getSegmentValue(segment: Segment) {\n return Array.isArray(segment) ? segment[1] : segment\n}\n\nexport function isGroupSegment(segment: string) {\n // Use array[0] for performant purpose\n return segment[0] === '(' && segment.endsWith(')')\n}\n\nexport function isParallelRouteSegment(segment: string) {\n return segment.startsWith('@') && segment !== '@children'\n}\n\nexport function addSearchParamsIfPageSegment(\n segment: Segment,\n searchParams: Record<string, string | string[] | undefined>\n) {\n const isPageSegment = segment.includes(PAGE_SEGMENT_KEY)\n\n if (isPageSegment) {\n const stringifiedQuery = JSON.stringify(searchParams)\n return stringifiedQuery !== '{}'\n ? PAGE_SEGMENT_KEY + '?' + stringifiedQuery\n : PAGE_SEGMENT_KEY\n }\n\n return segment\n}\n\nexport function computeSelectedLayoutSegment(\n segments: string[] | null,\n parallelRouteKey: string\n): string | null {\n if (!segments || segments.length === 0) {\n return null\n }\n\n // For 'children', use first segment; for other parallel routes, use last segment\n const rawSegment =\n parallelRouteKey === 'children'\n ? segments[0]\n : segments[segments.length - 1]\n\n // If the default slot is showing, return null since it's not technically \"selected\" (it's a fallback)\n // Returning an internal value like `__DEFAULT__` would be confusing\n return rawSegment === DEFAULT_SEGMENT_KEY ? null : rawSegment\n}\n\n/** Get the canonical parameters from the current level to the leaf node. */\nexport function getSelectedLayoutSegmentPath(\n tree: FlightRouterState,\n parallelRouteKey: string,\n first = true,\n segmentPath: string[] = []\n): string[] {\n let node: FlightRouterState\n if (first) {\n // Use the provided parallel route key on the first parallel route\n node = tree[1][parallelRouteKey]\n } else {\n // After first parallel route prefer children, if there's no children pick the first parallel route.\n const parallelRoutes = tree[1]\n node = parallelRoutes.children ?? Object.values(parallelRoutes)[0]\n }\n\n if (!node) return segmentPath\n const segment = node[0]\n\n let segmentValue = getSegmentValue(segment)\n\n if (!segmentValue || segmentValue.startsWith(PAGE_SEGMENT_KEY)) {\n return segmentPath\n }\n\n segmentPath.push(segmentValue)\n\n return getSelectedLayoutSegmentPath(\n node,\n parallelRouteKey,\n false,\n segmentPath\n )\n}\n\nexport const PAGE_SEGMENT_KEY = '__PAGE__'\nexport const DEFAULT_SEGMENT_KEY = '__DEFAULT__'\nexport const NOT_FOUND_SEGMENT_KEY = '/_not-found'\n","\"use client\";\n\nimport { createContext, useCallback, useContext, useMemo, useState } from \"react\";\n\nexport type ToastKind = \"success\" | \"error\" | \"info\";\n\ntype ToastInternal = Toast & { state: \"enter\" | \"show\" | \"leave\" };\nexport type Toast = {\n id: string;\n kind: ToastKind;\n title?: string;\n message: string;\n timeoutMs?: number;\n};\n\ntype ToastContextValue = {\n push: (t: Omit<Toast, \"id\">) => void;\n};\n\nconst ToastContext = createContext<ToastContextValue | null>(null);\n\nfunction ToastIcon({ kind }: { kind: ToastKind }) {\n if (kind === \"success\") {\n return (\n <svg viewBox=\"0 0 20 20\" fill=\"currentColor\" className=\"h-5 w-5 text-emerald-400\">\n <path\n fillRule=\"evenodd\"\n d=\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.707a1 1 0 00-1.414-1.414L9 10.172 7.707 8.879a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n }\n if (kind === \"error\") {\n return (\n <svg viewBox=\"0 0 20 20\" fill=\"currentColor\" className=\"h-5 w-5 text-red-400\">\n <path\n fillRule=\"evenodd\"\n d=\"M10 18a8 8 0 100-16 8 8 0 000 16zm-1-5a1 1 0 112 0 1 1 0 01-2 0zm0-8a1 1 0 012 0v6a1 1 0 11-2 0V5z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n }\n return (\n <svg viewBox=\"0 0 20 20\" fill=\"currentColor\" className=\"h-5 w-5 text-slate-300\">\n <path\n fillRule=\"evenodd\"\n d=\"M18 10A8 8 0 11 2 10a8 8 0 0116 0zM9 9a1 1 0 112 0v5a1 1 0 11-2 0V9zm0-3a1 1 0 112 0 1 1 0 01-2 0z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n}\n\nexport function ToastProvider({ children }: { children: React.ReactNode }) {\n const [toasts, setToasts] = useState<ToastInternal[]>([]);\n\n const removeNow = useCallback((id: string) => {\n setToasts((prev) => prev.filter((t) => t.id !== id));\n }, []);\n\n const dismiss = useCallback(\n (id: string) => {\n // Start leave animation, then remove.\n setToasts((prev) => prev.map((t) => (t.id === id ? { ...t, state: \"leave\" } : t)));\n window.setTimeout(() => removeNow(id), 250);\n },\n [removeNow],\n );\n\n const push = useCallback(\n (t: Omit<Toast, \"id\">) => {\n const id = `${Date.now()}-${Math.random().toString(16).slice(2)}`;\n const toast: ToastInternal = { id, timeoutMs: 5000, state: \"enter\", ...t };\n setToasts((prev) => [toast, ...prev].slice(0, 4));\n\n // Promote enter -> show on next tick so transitions apply.\n window.setTimeout(() => {\n setToasts((prev) => prev.map((x) => (x.id === id ? { ...x, state: \"show\" } : x)));\n }, 10);\n\n const ms = toast.timeoutMs;\n if (ms && ms > 0) {\n window.setTimeout(() => dismiss(id), ms);\n }\n },\n [dismiss],\n );\n\n const value = useMemo(() => ({ push }), [push]);\n\n return (\n <ToastContext.Provider value={value}>\n {children}\n\n {/* Tailwind UI-inspired notifications */}\n <div\n aria-live=\"assertive\"\n className=\"pointer-events-none fixed inset-0 z-[100] flex items-end px-4 py-6 sm:p-6\"\n >\n <div className=\"flex w-full flex-col items-start space-y-4\">\n {toasts.map((t) => {\n const motion =\n t.state === \"enter\"\n ? \"translate-x-[-16px] opacity-0\"\n : t.state === \"leave\"\n ? \"translate-x-[-16px] opacity-0\"\n : \"translate-x-0 opacity-100\";\n\n return (\n <div\n key={t.id}\n className={\n \"pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg border bg-[color:var(--ck-toast-bg)] shadow-[var(--ck-shadow-2)] transition-all duration-200 ease-out border-[color:var(--ck-toast-border)] \" +\n motion\n }\n >\n <div className=\"p-4\">\n <div className=\"flex items-start\">\n <div className=\"shrink-0\">\n <ToastIcon kind={t.kind} />\n </div>\n <div className=\"ml-3 w-0 flex-1\">\n {t.title ? (\n <p className=\"text-sm font-medium text-[color:var(--ck-text-primary)]\">{t.title}</p>\n ) : null}\n <p className=\"whitespace-pre-wrap text-sm text-[color:var(--ck-text-primary)]\">{t.message}</p>\n </div>\n <div className=\"ml-4 flex shrink-0\">\n <button\n type=\"button\"\n onClick={() => dismiss(t.id)}\n className=\"inline-flex rounded-md bg-transparent text-[color:var(--ck-text-tertiary)] hover:text-[color:var(--ck-text-primary)]\"\n aria-label=\"Dismiss\"\n title=\"Dismiss\"\n >\n <span className=\"sr-only\">Close</span>\n <svg viewBox=\"0 0 20 20\" fill=\"currentColor\" className=\"h-5 w-5\">\n <path d=\"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 10-1.06-1.06L10 8.94 6.28 5.22z\" />\n </svg>\n </button>\n </div>\n </div>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n </ToastContext.Provider>\n );\n}\n\nexport function useToast() {\n const ctx = useContext(ToastContext);\n if (!ctx) throw new Error(\"useToast must be used within ToastProvider\");\n return ctx;\n}\n","\"use client\";\n\nimport Link from \"next/link\";\nimport { usePathname } from \"next/navigation\";\nimport { ThemeToggle } from \"@/components/ThemeToggle\";\nimport { ToastProvider } from \"@/components/ToastProvider\";\n\nfunction NavLink({ href, label }: { href: string; label: string }) {\n const pathname = usePathname();\n const active = pathname === href || (href !== \"/\" && pathname.startsWith(href));\n\n return (\n <Link\n href={href}\n className={\n \"rounded-[var(--ck-radius-sm)] px-3 py-1.5 text-sm font-medium transition-colors \" +\n (active\n ? \"bg-[var(--ck-accent-red)] text-white\"\n : \"text-[color:var(--ck-text-secondary)] hover:bg-[color:var(--ck-bg-glass)] hover:text-[color:var(--ck-text-primary)]\")\n }\n >\n {label}\n </Link>\n );\n}\n\nexport function AppShell({ children }: { children: React.ReactNode }) {\n return (\n <ToastProvider>\n <div className=\"min-h-screen\">\n <header className=\"sticky top-0 z-50 border-b border-[color:var(--ck-border-subtle)] bg-[color:var(--ck-bg-glass)] backdrop-blur-[var(--ck-glass-blur)]\">\n <div className=\"mx-auto flex max-w-6xl items-center justify-between gap-4 px-4 py-3\">\n <div className=\"flex items-center gap-3\">\n <Link href=\"/\" className=\"text-sm font-semibold tracking-tight\">\n Claw Kitchen\n </Link>\n <nav className=\"hidden items-center gap-1 sm:flex\">\n <NavLink href=\"/recipes\" label=\"Recipes\" />\n <NavLink href=\"/tickets\" label=\"Tickets\" />\n <NavLink href=\"/goals\" label=\"Goals\" />\n {/* Channels hidden for release */}\n <NavLink href=\"/cron-jobs\" label=\"Cron jobs\" />\n <NavLink href=\"/settings\" label=\"Settings\" />\n </nav>\n </div>\n\n <div className=\"flex items-center gap-2\">\n <a\n href=\"https://github.com/JIGGAI/ClawRecipes/tree/main/docs\"\n target=\"_blank\"\n rel=\"noreferrer\"\n className=\"rounded-[var(--ck-radius-sm)] px-3 py-1.5 text-sm font-medium text-[color:var(--ck-text-secondary)] transition-colors hover:bg-[color:var(--ck-bg-glass)] hover:text-[color:var(--ck-text-primary)]\"\n >\n Docs\n </a>\n <ThemeToggle />\n </div>\n </div>\n </header>\n\n <main className=\"mx-auto max-w-6xl px-4 py-8\">{children}</main>\n </div>\n </ToastProvider>\n );\n}\n","\"use client\";\n\nimport { useEffect, useState } from \"react\";\nimport { MoonIcon, SunIcon } from \"@/components/icons\";\n\nexport type Theme = \"light\" | \"dark\";\n\nconst STORAGE_KEY = \"ck-theme\";\n\nfunction readInitialTheme(): Theme {\n // Default: dark mode.\n if (typeof window === \"undefined\") return \"dark\";\n const saved = window.localStorage.getItem(STORAGE_KEY);\n return saved === \"light\" ? \"light\" : \"dark\";\n}\n\nfunction applyTheme(theme: Theme) {\n document.documentElement.dataset.theme = theme;\n}\n\nexport function ThemeToggle() {\n const [theme, setTheme] = useState<Theme>(readInitialTheme);\n\n useEffect(() => {\n applyTheme(theme);\n window.localStorage.setItem(STORAGE_KEY, theme);\n }, [theme]);\n\n function toggle() {\n setTheme((t) => (t === \"dark\" ? \"light\" : \"dark\"));\n }\n\n const label = theme === \"dark\" ? \"Switch to light mode\" : \"Switch to dark mode\";\n\n return (\n <button\n type=\"button\"\n onClick={toggle}\n className=\"grid h-9 w-9 place-items-center rounded-full border border-[color:var(--ck-border-subtle)] bg-[color:var(--ck-bg-glass)] text-[color:var(--ck-text-primary)] shadow-[var(--ck-shadow-1)] transition-colors hover:bg-[color:var(--ck-bg-glass-strong)]\"\n aria-label={label}\n title={label}\n >\n <span className=\"sr-only\" suppressHydrationWarning>\n {label}\n </span>\n {theme === \"dark\" ? (\n <MoonIcon className=\"h-4.5 w-4.5\" />\n ) : (\n <SunIcon className=\"h-4.5 w-4.5\" />\n )}\n </button>\n );\n}\n","\"use client\";\n\nexport function SunIcon({ className }: { className?: string }) {\n return (\n <svg\n className={className}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M12 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z\"\n stroke=\"currentColor\"\n strokeWidth=\"1.8\"\n />\n <path d=\"M12 2v2.5\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" />\n <path d=\"M12 19.5V22\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" />\n <path d=\"M2 12h2.5\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" />\n <path d=\"M19.5 12H22\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" />\n <path d=\"M4.2 4.2 6 6\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" />\n <path d=\"M18 18l1.8 1.8\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" />\n <path d=\"M18 6l1.8-1.8\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" />\n <path d=\"M4.2 19.8 6 18\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" />\n </svg>\n );\n}\n\nexport function MoonIcon({ className }: { className?: string }) {\n return (\n <svg\n className={className}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M21 14.2A7.8 7.8 0 0 1 9.8 3a7 7 0 1 0 11.2 11.2Z\"\n stroke=\"currentColor\"\n strokeWidth=\"1.8\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n"],"names":["process","env","NEXT_RUNTIME","module","exports","require","__NEXT_EXPERIMENTAL_REACT","NODE_ENV","TURBOPACK","vendored","ReactJsxRuntime","React","AppRouterContext","ReactServerDOMTurbopackClient","HooksClientContext","ServerInsertedHtml","DEFAULT_SEGMENT_KEY","NOT_FOUND_SEGMENT_KEY","PAGE_SEGMENT_KEY","addSearchParamsIfPageSegment","computeSelectedLayoutSegment","getSegmentValue","getSelectedLayoutSegmentPath","isGroupSegment","isParallelRouteSegment","segment","Array","isArray","endsWith","startsWith","searchParams","isPageSegment","includes","stringifiedQuery","JSON","stringify","segments","parallelRouteKey","length","rawSegment","tree","first","segmentPath","node","parallelRoutes","children","Object","values","segmentValue","push"],"mappings":"6CA0BQG,EAAOC,OAAO,CAAGC,EAAQ,CAAA,CAAA,IAAA,iCC1BjCF,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRI,QAAQ,CAAC,YAAY,CAAEC,eAAe,+BCFxCP,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRI,QAAQ,CAAC,YAAY,CAAEE,KAAK,8BCF9BR,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRI,QAAQ,CAAC,QAAW,CAACG,gBAAgB,+BCFvCT,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRI,QAAQ,CAAC,YAAY,CAAEI,6BAA6B,+sBCFtDV,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRI,QAAQ,CAAC,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E,CAAA,EAAA,EAAA,IAAA,EAAC,MAAA,CAAI,UAAU,8CACb,CAAA,EAAA,EAAA,GAAA,EAAC,EAAA,CAAQ,KAAK,WAAW,MAAM,YAC/B,CAAA,EAAA,EAAA,GAAA,EAAC,EAAA,CAAQ,KAAK,WAAW,MAAM,YAC/B,CAAA,EAAA,EAAA,GAAA,EAAC,EAAA,CAAQ,KAAK,SAAS,MAAM,UAE7B,CAAA,EAAA,EAAA,GAAA,EAAC,EAAA,CAAQ,KAAK,aAAa,MAAM,cACjC,CAAA,EAAA,EAAA,GAAA,EAAC,EAAA,CAAQ,KAAK,YAAY,MAAM,mBAIpC,CAAA,EAAA,EAAA,IAAA,EAAC,MAAA,CAAI,UAAU,oCACb,CAAA,EAAA,EAAA,GAAA,EAAC,IAAA,CACC,KAAK,uDACL,OAAO,SACP,IAAI,aACJ,UAAU,+MACX,SAGD,CAAA,EAAA,EAAA,GAAA,EAAC,EAAA,CAAA,WAKP,CAAA,EAAA,EAAA,GAAA,EAAC,OAAA,CAAK,UAAU,uCAA+B,QAIrD","ignoreList":[0,1,2,3,4,5,6,7,8]}
1
+ {"version":3,"sources":["../../../../node_modules/next/src/server/route-modules/app-page/module.compiled.js","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/contexts/app-router-context.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react-server-dom-turbopack-client.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/contexts/hooks-client-context.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/contexts/server-inserted-html.ts","../../../../node_modules/%40swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/next/src/shared/lib/segment.ts","../../../../src/components/ToastProvider.tsx","../../../../src/components/AppShell.tsx","../../../../src/components/icons.tsx","../../../../src/components/ThemeToggle.tsx"],"sourcesContent":["if (process.env.NEXT_RUNTIME === 'edge') {\n module.exports = require('next/dist/server/route-modules/app-page/module.js')\n} else {\n if (process.env.__NEXT_EXPERIMENTAL_REACT) {\n if (process.env.NODE_ENV === 'development') {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo-experimental.runtime.dev.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page-experimental.runtime.dev.js')\n }\n } else {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page-experimental.runtime.prod.js')\n }\n }\n } else {\n if (process.env.NODE_ENV === 'development') {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo.runtime.dev.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page.runtime.dev.js')\n }\n } else {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo.runtime.prod.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page.runtime.prod.js')\n }\n }\n }\n}\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.ReactJsxRuntime\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.React\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['contexts'].AppRouterContext\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.ReactServerDOMTurbopackClient\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['contexts'].HooksClientContext\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['contexts'].ServerInsertedHtml\n","\"use strict\";\n\nfunction _getRequireWildcardCache(nodeInterop) {\n if (typeof WeakMap !== \"function\") return null;\n\n var cacheBabelInterop = new WeakMap();\n var cacheNodeInterop = new WeakMap();\n\n return (_getRequireWildcardCache = function(nodeInterop) {\n return nodeInterop ? cacheNodeInterop : cacheBabelInterop;\n })(nodeInterop);\n}\nfunction _interop_require_wildcard(obj, nodeInterop) {\n if (!nodeInterop && obj && obj.__esModule) return obj;\n if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") return { default: obj };\n\n var cache = _getRequireWildcardCache(nodeInterop);\n\n if (cache && cache.has(obj)) return cache.get(obj);\n\n var newObj = { __proto__: null };\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n\n for (var key in obj) {\n if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);\n else newObj[key] = obj[key];\n }\n }\n\n newObj.default = obj;\n\n if (cache) cache.set(obj, newObj);\n\n return newObj;\n}\nexports._ = _interop_require_wildcard;\n","import type { FlightRouterState, Segment } from './app-router-types'\n\nexport function getSegmentValue(segment: Segment) {\n return Array.isArray(segment) ? segment[1] : segment\n}\n\nexport function isGroupSegment(segment: string) {\n // Use array[0] for performant purpose\n return segment[0] === '(' && segment.endsWith(')')\n}\n\nexport function isParallelRouteSegment(segment: string) {\n return segment.startsWith('@') && segment !== '@children'\n}\n\nexport function addSearchParamsIfPageSegment(\n segment: Segment,\n searchParams: Record<string, string | string[] | undefined>\n) {\n const isPageSegment = segment.includes(PAGE_SEGMENT_KEY)\n\n if (isPageSegment) {\n const stringifiedQuery = JSON.stringify(searchParams)\n return stringifiedQuery !== '{}'\n ? PAGE_SEGMENT_KEY + '?' + stringifiedQuery\n : PAGE_SEGMENT_KEY\n }\n\n return segment\n}\n\nexport function computeSelectedLayoutSegment(\n segments: string[] | null,\n parallelRouteKey: string\n): string | null {\n if (!segments || segments.length === 0) {\n return null\n }\n\n // For 'children', use first segment; for other parallel routes, use last segment\n const rawSegment =\n parallelRouteKey === 'children'\n ? segments[0]\n : segments[segments.length - 1]\n\n // If the default slot is showing, return null since it's not technically \"selected\" (it's a fallback)\n // Returning an internal value like `__DEFAULT__` would be confusing\n return rawSegment === DEFAULT_SEGMENT_KEY ? null : rawSegment\n}\n\n/** Get the canonical parameters from the current level to the leaf node. */\nexport function getSelectedLayoutSegmentPath(\n tree: FlightRouterState,\n parallelRouteKey: string,\n first = true,\n segmentPath: string[] = []\n): string[] {\n let node: FlightRouterState\n if (first) {\n // Use the provided parallel route key on the first parallel route\n node = tree[1][parallelRouteKey]\n } else {\n // After first parallel route prefer children, if there's no children pick the first parallel route.\n const parallelRoutes = tree[1]\n node = parallelRoutes.children ?? Object.values(parallelRoutes)[0]\n }\n\n if (!node) return segmentPath\n const segment = node[0]\n\n let segmentValue = getSegmentValue(segment)\n\n if (!segmentValue || segmentValue.startsWith(PAGE_SEGMENT_KEY)) {\n return segmentPath\n }\n\n segmentPath.push(segmentValue)\n\n return getSelectedLayoutSegmentPath(\n node,\n parallelRouteKey,\n false,\n segmentPath\n )\n}\n\nexport const PAGE_SEGMENT_KEY = '__PAGE__'\nexport const DEFAULT_SEGMENT_KEY = '__DEFAULT__'\nexport const NOT_FOUND_SEGMENT_KEY = '/_not-found'\n","\"use client\";\n\nimport { createContext, useCallback, useContext, useMemo, useState } from \"react\";\n\nexport type ToastKind = \"success\" | \"error\" | \"info\";\n\ntype ToastInternal = Toast & { state: \"enter\" | \"show\" | \"leave\" };\nexport type Toast = {\n id: string;\n kind: ToastKind;\n title?: string;\n message: string;\n timeoutMs?: number;\n};\n\ntype ToastContextValue = {\n push: (t: Omit<Toast, \"id\">) => void;\n};\n\nconst ToastContext = createContext<ToastContextValue | null>(null);\n\nfunction ToastIcon({ kind }: { kind: ToastKind }) {\n if (kind === \"success\") {\n return (\n <svg viewBox=\"0 0 20 20\" fill=\"currentColor\" className=\"h-5 w-5 text-emerald-400\">\n <path\n fillRule=\"evenodd\"\n d=\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.707a1 1 0 00-1.414-1.414L9 10.172 7.707 8.879a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n }\n if (kind === \"error\") {\n return (\n <svg viewBox=\"0 0 20 20\" fill=\"currentColor\" className=\"h-5 w-5 text-red-400\">\n <path\n fillRule=\"evenodd\"\n d=\"M10 18a8 8 0 100-16 8 8 0 000 16zm-1-5a1 1 0 112 0 1 1 0 01-2 0zm0-8a1 1 0 012 0v6a1 1 0 11-2 0V5z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n }\n return (\n <svg viewBox=\"0 0 20 20\" fill=\"currentColor\" className=\"h-5 w-5 text-slate-300\">\n <path\n fillRule=\"evenodd\"\n d=\"M18 10A8 8 0 11 2 10a8 8 0 0116 0zM9 9a1 1 0 112 0v5a1 1 0 11-2 0V9zm0-3a1 1 0 112 0 1 1 0 01-2 0z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n}\n\nexport function ToastProvider({ children }: { children: React.ReactNode }) {\n const [toasts, setToasts] = useState<ToastInternal[]>([]);\n\n const removeNow = useCallback((id: string) => {\n setToasts((prev) => prev.filter((t) => t.id !== id));\n }, []);\n\n const dismiss = useCallback(\n (id: string) => {\n // Start leave animation, then remove.\n setToasts((prev) => prev.map((t) => (t.id === id ? { ...t, state: \"leave\" } : t)));\n window.setTimeout(() => removeNow(id), 250);\n },\n [removeNow],\n );\n\n const push = useCallback(\n (t: Omit<Toast, \"id\">) => {\n const id = `${Date.now()}-${Math.random().toString(16).slice(2)}`;\n const toast: ToastInternal = { id, timeoutMs: 5000, state: \"enter\", ...t };\n setToasts((prev) => [toast, ...prev].slice(0, 4));\n\n // Promote enter -> show on next tick so transitions apply.\n window.setTimeout(() => {\n setToasts((prev) => prev.map((x) => (x.id === id ? { ...x, state: \"show\" } : x)));\n }, 10);\n\n const ms = toast.timeoutMs;\n if (ms && ms > 0) {\n window.setTimeout(() => dismiss(id), ms);\n }\n },\n [dismiss],\n );\n\n const value = useMemo(() => ({ push }), [push]);\n\n return (\n <ToastContext.Provider value={value}>\n {children}\n\n {/* Tailwind UI-inspired notifications */}\n <div\n aria-live=\"assertive\"\n className=\"pointer-events-none fixed inset-0 z-[100] flex items-end px-4 py-6 sm:p-6\"\n >\n <div className=\"flex w-full flex-col items-start space-y-4\">\n {toasts.map((t) => {\n const motion =\n t.state === \"enter\"\n ? \"translate-x-[-16px] opacity-0\"\n : t.state === \"leave\"\n ? \"translate-x-[-16px] opacity-0\"\n : \"translate-x-0 opacity-100\";\n\n return (\n <div\n key={t.id}\n className={\n \"pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg border bg-[color:var(--ck-toast-bg)] shadow-[var(--ck-shadow-2)] transition-all duration-200 ease-out border-[color:var(--ck-toast-border)] \" +\n motion\n }\n >\n <div className=\"p-4\">\n <div className=\"flex items-start\">\n <div className=\"shrink-0\">\n <ToastIcon kind={t.kind} />\n </div>\n <div className=\"ml-3 w-0 flex-1\">\n {t.title ? (\n <p className=\"text-sm font-medium text-[color:var(--ck-text-primary)]\">{t.title}</p>\n ) : null}\n <p className=\"whitespace-pre-wrap text-sm text-[color:var(--ck-text-primary)]\">{t.message}</p>\n </div>\n <div className=\"ml-4 flex shrink-0\">\n <button\n type=\"button\"\n onClick={() => dismiss(t.id)}\n className=\"inline-flex rounded-md bg-transparent text-[color:var(--ck-text-tertiary)] hover:text-[color:var(--ck-text-primary)]\"\n aria-label=\"Dismiss\"\n title=\"Dismiss\"\n >\n <span className=\"sr-only\">Close</span>\n <svg viewBox=\"0 0 20 20\" fill=\"currentColor\" className=\"h-5 w-5\">\n <path d=\"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 10-1.06-1.06L10 8.94 6.28 5.22z\" />\n </svg>\n </button>\n </div>\n </div>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n </ToastContext.Provider>\n );\n}\n\nexport function useToast() {\n const ctx = useContext(ToastContext);\n if (!ctx) throw new Error(\"useToast must be used within ToastProvider\");\n return ctx;\n}\n","\"use client\";\n\nimport Link from \"next/link\";\nimport { usePathname, useRouter } from \"next/navigation\";\nimport { useEffect, useMemo, useState } from \"react\";\nimport { ThemeToggle } from \"@/components/ThemeToggle\";\nimport { ToastProvider } from \"@/components/ToastProvider\";\n\nfunction Icon({ children }: { children: React.ReactNode }) {\n return (\n <span\n className=\"grid size-7 place-items-center text-[color:var(--ck-text-secondary)]\"\n aria-hidden\n >\n {children}\n </span>\n );\n}\n\nfunction SideNavLink({\n href,\n label,\n icon,\n active,\n collapsed,\n}: {\n href: string;\n label: string;\n icon: React.ReactNode;\n active: boolean;\n collapsed: boolean;\n}) {\n return (\n <Link\n href={href}\n title={label}\n className={\n (\n active\n ? \"flex items-center rounded-[var(--ck-radius-sm)] bg-white/10 text-sm font-medium text-[color:var(--ck-text-primary)]\"\n : \"flex items-center rounded-[var(--ck-radius-sm)] text-sm font-medium text-[color:var(--ck-text-secondary)] transition-colors hover:bg-white/5 hover:text-[color:var(--ck-text-primary)]\"\n ) +\n (collapsed ? \" justify-center px-0 py-3\" : \" gap-4 px-4 py-3\")\n }\n >\n {icon}\n {collapsed ? null : <span>{label}</span>}\n </Link>\n );\n}\n\nexport function AppShell({ children }: { children: React.ReactNode }) {\n const pathname = usePathname() || \"/\";\n const router = useRouter();\n\n const currentTeamId = useMemo(() => {\n const m = pathname.match(/^\\/teams\\/([^/]+)(?:\\/|$)/);\n return m ? decodeURIComponent(m[1]) : null;\n }, [pathname]);\n\n const [collapsed, setCollapsed] = useState(() => {\n try {\n const v = localStorage.getItem(\"ck-leftnav-collapsed\");\n return v === \"1\";\n } catch {\n return false;\n }\n });\n\n function toggleCollapsed() {\n setCollapsed((v) => {\n const next = !v;\n try {\n localStorage.setItem(\"ck-leftnav-collapsed\", next ? \"1\" : \"0\");\n } catch {\n // ignore\n }\n return next;\n });\n }\n\n // Minimal team list (for switcher). We rely on existing /api/recipes.\n const [teamIds, setTeamIds] = useState<string[]>([]);\n useEffect(() => {\n (async () => {\n try {\n const res = await fetch(\"/api/agents\", { cache: \"no-store\" });\n const json = await res.json();\n const agents = Array.isArray(json.agents)\n ? (json.agents as Array<{ workspace?: string }> )\n : [];\n\n const s = new Set<string>();\n for (const a of agents) {\n const ws = String(a.workspace ?? \"\");\n const parts = ws.split(\"/\").filter(Boolean);\n const wsPart = parts.find((p) => p.startsWith(\"workspace-\")) ?? \"\";\n if (!wsPart) continue;\n const teamId = wsPart.slice(\"workspace-\".length);\n if (teamId && teamId !== \"workspace\") s.add(teamId);\n }\n\n setTeamIds(Array.from(s).sort());\n } catch {\n setTeamIds([]);\n }\n })();\n }, []);\n\n const globalNav = [\n {\n href: `/`,\n label: \"Home\",\n icon: (\n <Icon>\n <svg viewBox=\"0 0 24 24\" className=\"h-6 w-6\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\">\n <path d=\"M3 11l9-8 9 8\" />\n <path d=\"M5 10v10h14V10\" />\n </svg>\n </Icon>\n ),\n },\n {\n href: `/recipes`,\n label: \"Recipes\",\n icon: (\n <Icon>\n <svg viewBox=\"0 0 24 24\" className=\"h-6 w-6\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\">\n <path d=\"M6 4h12v16H6z\" />\n <path d=\"M9 8h6\" />\n <path d=\"M9 12h6\" />\n </svg>\n </Icon>\n ),\n },\n {\n href: `/tickets`,\n label: \"Tickets\",\n icon: (\n <Icon>\n <svg viewBox=\"0 0 24 24\" className=\"h-6 w-6\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\">\n <path d=\"M4 7h16v4a2 2 0 0 1 0 4v4H4v-4a2 2 0 0 0 0-4z\" />\n </svg>\n </Icon>\n ),\n },\n {\n href: `/goals`,\n label: \"Goals\",\n icon: (\n <Icon>\n <svg viewBox=\"0 0 24 24\" className=\"h-6 w-6\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\">\n <circle cx=\"12\" cy=\"12\" r=\"9\" />\n <path d=\"M12 7v5l3 3\" />\n </svg>\n </Icon>\n ),\n },\n {\n href: `/cron-jobs`,\n label: \"Cron jobs\",\n icon: (\n <Icon>\n <svg viewBox=\"0 0 24 24\" className=\"h-6 w-6\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\">\n <circle cx=\"12\" cy=\"12\" r=\"9\" />\n <path d=\"M12 7v5\" />\n </svg>\n </Icon>\n ),\n },\n {\n href: `/settings`,\n label: \"Settings\",\n icon: (\n <Icon>\n <svg viewBox=\"0 0 24 24\" className=\"h-6 w-6\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\">\n <path d=\"M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z\" />\n <path d=\"M19.4 15a7.9 7.9 0 0 0 .1-1l2-1.5-2-3.5-2.4.5a7.8 7.8 0 0 0-1.7-1L13.5 3h-4L8.6 6.5a7.8 7.8 0 0 0-1.7 1L4.5 7l-2 3.5 2 1.5a7.9 7.9 0 0 0 .1 1l-2 1.5 2 3.5 2.4-.5a7.8 7.8 0 0 0 1.7 1L10.5 21h4l.9-3.5a7.8 7.8 0 0 0 1.7-1l2.4.5 2-3.5-2-1.5Z\" />\n </svg>\n </Icon>\n ),\n },\n ];\n\n const sideWidth = collapsed ? \"w-16\" : \"w-72\";\n\n return (\n <ToastProvider>\n <div className=\"flex h-dvh w-dvw overflow-hidden\">\n <aside className={`flex shrink-0 flex-col border-r border-[color:var(--ck-border-subtle)] bg-[color:var(--ck-bg-glass)] backdrop-blur-[var(--ck-glass-blur)] ${sideWidth}`}>\n <div className=\"flex h-14 items-center justify-between gap-2 border-b border-[color:var(--ck-border-subtle)] px-3\">\n <Link href=\"/\" className=\"text-sm font-semibold tracking-tight\" title=\"Home\">\n {collapsed ? \"CK\" : \"Claw Kitchen\"}\n </Link>\n <button\n onClick={toggleCollapsed}\n className=\"rounded-[var(--ck-radius-sm)] px-2 py-1 text-sm text-[color:var(--ck-text-secondary)] hover:bg-white/5 hover:text-[color:var(--ck-text-primary)]\"\n title={collapsed ? \"Expand\" : \"Collapse\"}\n >\n {collapsed ? \"»\" : \"«\"}\n </button>\n </div>\n\n <div className=\"border-b border-[color:var(--ck-border-subtle)] p-2\">\n {collapsed ? (\n <button\n className=\"w-full rounded-[var(--ck-radius-sm)] bg-white/5 px-2 py-2 text-xs font-medium text-[color:var(--ck-text-secondary)] hover:bg-white/10\"\n title={currentTeamId ? `Team: ${currentTeamId}` : \"Select team\"}\n onClick={() => {\n if (teamIds[0]) router.push(`/teams/${encodeURIComponent(teamIds[0])}`);\n }}\n >\n 👥\n </button>\n ) : (\n <div className=\"flex flex-col gap-1\">\n <div className=\"px-2 pt-1 text-xs font-semibold uppercase tracking-wide text-[color:var(--ck-text-tertiary)]\">\n Team\n </div>\n <select\n value={currentTeamId ?? \"\"}\n onChange={(e) => {\n const id = e.target.value;\n if (id) router.push(`/teams/${encodeURIComponent(id)}`);\n }}\n className=\"w-full rounded-[var(--ck-radius-sm)] border border-white/10 bg-black/25 px-2 py-2 text-sm text-[color:var(--ck-text-primary)]\"\n >\n <option value=\"\">(select)</option>\n {teamIds.map((id) => (\n <option key={id} value={id}>\n {id}\n </option>\n ))}\n </select>\n </div>\n )}\n </div>\n\n <nav className=\"min-h-0 flex-1 overflow-auto p-2\">\n <div className={collapsed ? \"mt-2 px-2 pb-2 pt-2\" : \"mt-2 px-2 pb-2 pt-2\"}>\n {/* section label intentionally omitted */}\n </div>\n {globalNav.map((it) => (\n <SideNavLink\n key={it.href}\n href={it.href}\n label={it.label}\n icon={<span aria-hidden>{it.icon}</span>}\n collapsed={collapsed}\n active={pathname === it.href || pathname.startsWith(it.href + \"/\")}\n />\n ))}\n </nav>\n\n <div className=\"flex items-center justify-between gap-2 border-t border-[color:var(--ck-border-subtle)] p-2\">\n <a\n href=\"https://github.com/JIGGAI/ClawRecipes/tree/main/docs\"\n target=\"_blank\"\n rel=\"noreferrer\"\n className={\n collapsed\n ? \"mx-auto rounded-[var(--ck-radius-sm)] px-2 py-2 text-sm text-[color:var(--ck-text-secondary)] hover:bg-white/5 hover:text-[color:var(--ck-text-primary)]\"\n : \"rounded-[var(--ck-radius-sm)] px-3 py-2 text-sm font-medium text-[color:var(--ck-text-secondary)] hover:bg-white/5 hover:text-[color:var(--ck-text-primary)]\"\n }\n title=\"Docs\"\n >\n {collapsed ? \"📖\" : \"Docs\"}\n </a>\n {collapsed ? null : <ThemeToggle />}\n </div>\n </aside>\n\n <div className=\"min-w-0 flex-1\">\n <main className=\"h-full overflow-auto p-4 md:p-6\">{children}</main>\n </div>\n </div>\n </ToastProvider>\n );\n}\n","\"use client\";\n\nexport function SunIcon({ className }: { className?: string }) {\n return (\n <svg\n className={className}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M12 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z\"\n stroke=\"currentColor\"\n strokeWidth=\"1.8\"\n />\n <path d=\"M12 2v2.5\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" />\n <path d=\"M12 19.5V22\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" />\n <path d=\"M2 12h2.5\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" />\n <path d=\"M19.5 12H22\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" />\n <path d=\"M4.2 4.2 6 6\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" />\n <path d=\"M18 18l1.8 1.8\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" />\n <path d=\"M18 6l1.8-1.8\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" />\n <path d=\"M4.2 19.8 6 18\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" />\n </svg>\n );\n}\n\nexport function MoonIcon({ className }: { className?: string }) {\n return (\n <svg\n className={className}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M21 14.2A7.8 7.8 0 0 1 9.8 3a7 7 0 1 0 11.2 11.2Z\"\n stroke=\"currentColor\"\n strokeWidth=\"1.8\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n","\"use client\";\n\nimport { useEffect, useState } from \"react\";\nimport { MoonIcon, SunIcon } from \"@/components/icons\";\n\nexport type Theme = \"light\" | \"dark\";\n\nconst STORAGE_KEY = \"ck-theme\";\n\nfunction readInitialTheme(): Theme {\n // Default: dark mode.\n if (typeof window === \"undefined\") return \"dark\";\n const saved = window.localStorage.getItem(STORAGE_KEY);\n return saved === \"light\" ? \"light\" : \"dark\";\n}\n\nfunction applyTheme(theme: Theme) {\n document.documentElement.dataset.theme = theme;\n}\n\nexport function ThemeToggle() {\n const [theme, setTheme] = useState<Theme>(readInitialTheme);\n\n useEffect(() => {\n applyTheme(theme);\n window.localStorage.setItem(STORAGE_KEY, theme);\n }, [theme]);\n\n function toggle() {\n setTheme((t) => (t === \"dark\" ? \"light\" : \"dark\"));\n }\n\n const label = theme === \"dark\" ? \"Switch to light mode\" : \"Switch to dark mode\";\n\n return (\n <button\n type=\"button\"\n onClick={toggle}\n className=\"grid h-9 w-9 place-items-center rounded-full border border-[color:var(--ck-border-subtle)] bg-[color:var(--ck-bg-glass)] text-[color:var(--ck-text-primary)] shadow-[var(--ck-shadow-1)] transition-colors hover:bg-[color:var(--ck-bg-glass-strong)]\"\n aria-label={label}\n title={label}\n >\n <span className=\"sr-only\" suppressHydrationWarning>\n {label}\n </span>\n {theme === \"dark\" ? (\n <MoonIcon className=\"h-4.5 w-4.5\" />\n ) : (\n <SunIcon className=\"h-4.5 w-4.5\" />\n )}\n </button>\n );\n}\n"],"names":["process","env","NEXT_RUNTIME","module","exports","require","__NEXT_EXPERIMENTAL_REACT","NODE_ENV","TURBOPACK","vendored","ReactJsxRuntime","React","AppRouterContext","ReactServerDOMTurbopackClient","HooksClientContext","ServerInsertedHtml","DEFAULT_SEGMENT_KEY","NOT_FOUND_SEGMENT_KEY","PAGE_SEGMENT_KEY","addSearchParamsIfPageSegment","computeSelectedLayoutSegment","getSegmentValue","getSelectedLayoutSegmentPath","isGroupSegment","isParallelRouteSegment","segment","Array","isArray","endsWith","startsWith","searchParams","isPageSegment","includes","stringifiedQuery","JSON","stringify","segments","parallelRouteKey","length","rawSegment","tree","first","segmentPath","node","parallelRoutes","children","Object","values","segmentValue","push"],"mappings":"6CA0BQG,EAAOC,OAAO,CAAGC,EAAQ,CAAA,CAAA,IAAA,iCC1BjCF,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRI,QAAQ,CAAC,YAAY,CAAEC,eAAe,+BCFxCP,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRI,QAAQ,CAAC,YAAY,CAAEE,KAAK,8BCF9BR,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRI,QAAQ,CAAC,QAAW,CAACG,gBAAgB,+BCFvCT,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRI,QAAQ,CAAC,YAAY,CAAEI,6BAA6B,+sBCFtDV,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRI,QAAQ,CAAC,QAAW,CAACK,kBAAkB,+BCFzCX,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRI,QAAQ,CAAC,QAAW,CAACM,kBAAkB,+BCAzC,SAAS,EAAyB,CAAW,EACzC,GAAuB,YAAnB,OAAO,QAAwB,OAAO,KAE1C,IAAI,EAAoB,IAAI,QACxB,EAAmB,IAAI,QAE3B,MAAO,CAAC,EAA2B,SAAS,CAAW,EACnD,OAAO,EAAc,EAAmB,EAC5C,CAAC,CAAE,EACP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=>require("next/dist/shared/lib/no-fallback-error.external.js"))},69264,a=>{a.n(a.i(54832))},50645,a=>{a.n(a.i(27572))},17537,a=>{a.n(a.i(3363))},13718,a=>{a.n(a.i(85523))},18198,a=>{a.n(a.i(45518))},62188,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/src/app/HomeClient.tsx <module evaluation> from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/HomeClient.tsx <module evaluation>","default")},49735,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/src/app/HomeClient.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/HomeClient.tsx","default")},73189,a=>{"use strict";a.i(62188);var b=a.i(49735);a.n(b)},60168,a=>{"use strict";var b=a.i(7997),c=a.i(83643),d=a.i(18558),e=a.i(73189);async function f(){let a=await (0,c.runOpenClaw)(["agents","list","--json"]);return a.ok?JSON.parse(a.stdout):[]}async function g(){let a=await (0,c.runOpenClaw)(["recipes","list"]);if(!a.ok)return{teamNames:{}};let b=[];try{b=JSON.parse(a.stdout)}catch{return{teamNames:{}}}let d={};for(let a of b){if("team"!==a.kind)continue;let b=String(a.name??"").trim();b&&(d[a.id]=b)}return{teamNames:d}}async function h(){(0,d.unstable_noStore)();let[a,{teamNames:c}]=await Promise.all([f(),g()]);return(0,b.jsx)(e.default,{agents:a,teamNames:c})}a.s(["default",()=>h,"dynamic",0,"force-dynamic","revalidate",0,0])}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__550d78f8._.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/app/HomeClient.tsx/__nextjs-internal-proxy.mjs","../../../../src/app/page.tsx"],"sourcesContent":["// This file is generated by next-core EcmascriptClientReferenceModule.\nimport { registerClientReference } from \"react-server-dom-turbopack/server\";\nexport default registerClientReference(\n function() { throw new Error(\"Attempted to call the default export of [project]/src/app/HomeClient.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"); },\n \"[project]/src/app/HomeClient.tsx\",\n \"default\",\n);\n","import { runOpenClaw } from \"@/lib/openclaw\";\nimport { unstable_noStore as noStore } from \"next/cache\";\nimport HomeClient from \"./HomeClient\";\n\nexport const dynamic = \"force-dynamic\";\nexport const revalidate = 0;\n\ntype AgentListItem = {\n id: string;\n identityName?: string;\n workspace?: string;\n model?: string;\n isDefault?: boolean;\n};\n\ntype RecipeListItem = {\n id: string;\n name: string;\n kind: \"agent\" | \"team\";\n source: \"builtin\" | \"workspace\";\n};\n\nasync function getAgents(): Promise<AgentListItem[]> {\n const res = await runOpenClaw([\"agents\", \"list\", \"--json\"]);\n if (!res.ok) return [];\n return JSON.parse(res.stdout) as AgentListItem[];\n}\n\nasync function getTeamsFromRecipes(): Promise<{ teamNames: Record<string, string> }> {\n const res = await runOpenClaw([\"recipes\", \"list\"]);\n if (!res.ok) return { teamNames: {} };\n\n let items: RecipeListItem[] = [];\n try {\n items = JSON.parse(res.stdout) as RecipeListItem[];\n } catch {\n return { teamNames: {} };\n }\n\n const teamNames: Record<string, string> = {};\n\n for (const r of items) {\n if (r.kind !== \"team\") continue;\n const name = String(r.name ?? \"\").trim();\n if (!name) continue;\n\n teamNames[r.id] = name;\n\n }\n\n return { teamNames };\n}\n\nexport default async function Home() {\n // Home should always reflect the current OpenClaw state (teams/agents can change outside Next).\n noStore();\n\n const [agents, { teamNames }] = await Promise.all([getAgents(), getTeamsFromRecipes()]);\n return <HomeClient agents={agents} teamNames={teamNames} />;\n}\n"],"names":[],"mappings":"kWAEe,CAAA,EAAA,AADf,EAAA,CAAA,CAAA,OACe,uBAAA,AAAuB,EAClC,WAAa,MAAM,AAAI,MAAM,wRAA0R,EACvT,uDACA,gEAHW,CAAA,EADf,AACe,EADf,CAA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src/app/page.tsx"],"sourcesContent":["// This file is generated by next-core EcmascriptClientReferenceModule.\nimport { registerClientReference } from \"react-server-dom-turbopack/server\";\nexport default registerClientReference(\n function() { throw new Error(\"Attempted to call the default export of [project]/src/app/HomeClient.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"); },\n \"[project]/src/app/HomeClient.tsx\",\n \"default\",\n);\n","import { runOpenClaw } from \"@/lib/openclaw\";\nimport { unstable_noStore as noStore } from \"next/cache\";\nimport HomeClient from \"./HomeClient\";\n\nexport const dynamic = \"force-dynamic\";\nexport const revalidate = 0;\n\ntype AgentListItem = {\n id: string;\n identityName?: string;\n workspace?: string;\n model?: string;\n isDefault?: boolean;\n};\n\ntype RecipeListItem = {\n id: string;\n name: string;\n kind: \"agent\" | \"team\";\n source: \"builtin\" | \"workspace\";\n};\n\nasync function getAgents(): Promise<AgentListItem[]> {\n const res = await runOpenClaw([\"agents\", \"list\", \"--json\"]);\n if (!res.ok) return [];\n return JSON.parse(res.stdout) as AgentListItem[];\n}\n\nasync function getTeamsFromRecipes(): Promise<{ teamNames: Record<string, string> }> {\n const res = await runOpenClaw([\"recipes\", \"list\"]);\n if (!res.ok) return { teamNames: {} };\n\n let items: RecipeListItem[] = [];\n try {\n items = JSON.parse(res.stdout) as RecipeListItem[];\n } catch {\n return { teamNames: {} };\n }\n\n const teamNames: Record<string, string> = {};\n\n for (const r of items) {\n if (r.kind !== \"team\") continue;\n const name = String(r.name ?? \"\").trim();\n if (!name) continue;\n\n teamNames[r.id] = name;\n\n }\n\n return { teamNames };\n}\n\nexport default async function Home() {\n // Home should always reflect the current OpenClaw state (teams/agents can change outside Next).\n noStore();\n\n const [agents, { teamNames }] = await Promise.all([getAgents(), getTeamsFromRecipes()]);\n return <HomeClient agents={agents} teamNames={teamNames} />;\n}\n"],"names":[],"mappings":"iWAEe,CAAA,EAAA,AADf,EAAA,CAAA,CAAA,OACe,uBAAA,AAAuB,EAClC,WAAa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[0]}
@@ -1,3 +1,3 @@
1
- module.exports=[43285,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/dynamic-access-async-storage.external.js",()=>require("next/dist/server/app-render/dynamic-access-async-storage.external.js"))},18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},42602,(a,b,c)=>{"use strict";b.exports=a.r(18622)},87924,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactJsxRuntime},72131,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].React},9270,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.AppRouterContext},38783,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactServerDOMTurbopackClient},36313,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.HooksClientContext},18341,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.ServerInsertedHtml},35112,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactDOM},51234,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"HandleISRError",{enumerable:!0,get:function(){return e}});let d=a.r(56704).workAsyncStorage;function e({error:a}){if(d){let b=d.getStore();if(b?.isStaticGeneration)throw a&&console.error(a),a}return null}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},40622,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"default",{enumerable:!0,get:function(){return h}});let d=a.r(87924),e=a.r(51234),f={fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},g={fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"},h=function({error:a}){let b=a?.digest;return(0,d.jsxs)("html",{id:"__next_error__",children:[(0,d.jsx)("head",{}),(0,d.jsxs)("body",{children:[(0,d.jsx)(e.HandleISRError,{error:a}),(0,d.jsx)("div",{style:f,children:(0,d.jsxs)("div",{children:[(0,d.jsxs)("h2",{style:g,children:["Application error: a ",b?"server":"client","-side exception has occurred while loading ",window.location.hostname," (see the"," ",b?"server logs":"browser console"," for more information)."]}),b?(0,d.jsx)("p",{style:g,children:`Digest: ${b}`}):null]})})]})]})};("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)}];
1
+ module.exports=[18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},43285,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/dynamic-access-async-storage.external.js",()=>require("next/dist/server/app-render/dynamic-access-async-storage.external.js"))},42602,(a,b,c)=>{"use strict";b.exports=a.r(18622)},87924,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactJsxRuntime},72131,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].React},9270,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.AppRouterContext},38783,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactServerDOMTurbopackClient},36313,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.HooksClientContext},18341,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.ServerInsertedHtml},35112,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactDOM},51234,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"HandleISRError",{enumerable:!0,get:function(){return e}});let d=a.r(56704).workAsyncStorage;function e({error:a}){if(d){let b=d.getStore();if(b?.isStaticGeneration)throw a&&console.error(a),a}return null}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},40622,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"default",{enumerable:!0,get:function(){return h}});let d=a.r(87924),e=a.r(51234),f={fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},g={fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"},h=function({error:a}){let b=a?.digest;return(0,d.jsxs)("html",{id:"__next_error__",children:[(0,d.jsx)("head",{}),(0,d.jsxs)("body",{children:[(0,d.jsx)(e.HandleISRError,{error:a}),(0,d.jsx)("div",{style:f,children:(0,d.jsxs)("div",{children:[(0,d.jsxs)("h2",{style:g,children:["Application error: a ",b?"server":"client","-side exception has occurred while loading ",window.location.hostname," (see the"," ",b?"server logs":"browser console"," for more information)."]}),b?(0,d.jsx)("p",{style:g,children:`Digest: ${b}`}):null]})})]})]})};("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)}];
2
2
 
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__e2e52c6e._.js.map
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__78cdd31e._.js.map