thursday-agent 0.12.0 → 0.13.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 (470) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/prerender-manifest.json +4 -4
  4. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  5. package/.next/server/app/_global-error.html +1 -1
  6. package/.next/server/app/_global-error.rsc +1 -1
  7. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  10. package/.next/server/app/_not-found/page.js +1 -1
  11. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  12. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  13. package/.next/server/app/_not-found.html +1 -1
  14. package/.next/server/app/_not-found.rsc +18 -19
  15. package/.next/server/app/_not-found.segments/_full.segment.rsc +18 -19
  16. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +14 -15
  17. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  18. package/.next/server/app/api/artifact/route.js +8 -8
  19. package/.next/server/app/api/artifact/route.js.nft.json +1 -1
  20. package/.next/server/app/api/bot/keep-working/route.js +7 -7
  21. package/.next/server/app/api/bot/keep-working/route.js.nft.json +1 -1
  22. package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -1
  23. package/.next/server/app/api/bot/memory/route.js +7 -7
  24. package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
  25. package/.next/server/app/api/bot/route.js +7 -7
  26. package/.next/server/app/api/bot/route.js.nft.json +1 -1
  27. package/.next/server/app/api/bot/thread/[id]/route.js +5 -5
  28. package/.next/server/app/api/bot/thread/[id]/route.js.nft.json +1 -1
  29. package/.next/server/app/api/bot/thread/route.js +3 -3
  30. package/.next/server/app/api/bot/thread/route.js.nft.json +1 -1
  31. package/.next/server/app/api/config/route.js +3 -3
  32. package/.next/server/app/api/config/route.js.nft.json +1 -1
  33. package/.next/server/app/api/events/route.js.nft.json +1 -1
  34. package/.next/server/app/api/favicon/[host]/route.js.nft.json +1 -1
  35. package/.next/server/app/api/file/[...path]/route.js +2 -2
  36. package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
  37. package/.next/server/app/api/llm-model/catalog/route.js +4 -4
  38. package/.next/server/app/api/llm-model/catalog/route.js.nft.json +1 -1
  39. package/.next/server/app/api/llm-model/credits/route.js +4 -4
  40. package/.next/server/app/api/llm-model/credits/route.js.nft.json +1 -1
  41. package/.next/server/app/api/llm-model/route.js +6 -6
  42. package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
  43. package/.next/server/app/api/llm-model/subscription/route.js +6 -6
  44. package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
  45. package/.next/server/app/api/mcp/[name]/route.js +5 -5
  46. package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
  47. package/.next/server/app/api/mcp/oauth/callback/route.js +5 -5
  48. package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
  49. package/.next/server/app/api/mcp/route.js +5 -5
  50. package/.next/server/app/api/mcp/route.js.nft.json +1 -1
  51. package/.next/server/app/api/mcp/tools/route.js +5 -5
  52. package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
  53. package/.next/server/app/api/memory/edit/route.js +15 -14
  54. package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
  55. package/.next/server/app/api/memory/route.js +4 -4
  56. package/.next/server/app/api/memory/route.js.nft.json +1 -1
  57. package/.next/server/app/api/reach/route.js +13 -12
  58. package/.next/server/app/api/reach/route.js.nft.json +1 -1
  59. package/.next/server/app/api/routine/route.js +8 -9
  60. package/.next/server/app/api/routine/route.js.nft.json +1 -1
  61. package/.next/server/app/api/signins/route.js.nft.json +1 -1
  62. package/.next/server/app/api/skills/[source]/[name]/route.js +2 -2
  63. package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
  64. package/.next/server/app/api/skills/route.js +2 -2
  65. package/.next/server/app/api/skills/route.js.nft.json +1 -1
  66. package/.next/server/app/api/thursday/call/route.js +6 -6
  67. package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
  68. package/.next/server/app/api/thursday/skills/route.js +6 -6
  69. package/.next/server/app/api/thursday/skills/route.js.nft.json +1 -1
  70. package/.next/server/app/api/thursday/text/route.js +14 -13
  71. package/.next/server/app/api/thursday/text/route.js.nft.json +1 -1
  72. package/.next/server/app/api/thursday/tool-call/route.js +15 -14
  73. package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
  74. package/.next/server/app/api/workspace/files/route.js +10 -6
  75. package/.next/server/app/api/workspace/files/route.js.nft.json +1 -1
  76. package/.next/server/app/api/workspace/route.js +9 -4
  77. package/.next/server/app/api/workspace/route.js.nft.json +1 -1
  78. package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +2 -2
  79. package/.next/server/app/artifact/[...path]/page.js +5 -4
  80. package/.next/server/app/artifact/[...path]/page.js.nft.json +1 -1
  81. package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
  82. package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  83. package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  84. package/.next/server/app/page/server-reference-manifest.json +67 -56
  85. package/.next/server/app/page.js +10 -11
  86. package/.next/server/app/page.js.nft.json +1 -1
  87. package/.next/server/app/page_client-reference-manifest.js +1 -1
  88. package/.next/server/chunks/{[root-of-the-server]__0o49ztf._.js → [root-of-the-server]__0-k4_ie._.js} +2 -2
  89. package/.next/server/chunks/[root-of-the-server]__0209ah4._.js +6 -6
  90. package/.next/server/chunks/[root-of-the-server]__04wldw9._.js +1 -1
  91. package/.next/server/chunks/[root-of-the-server]__0h_x6q6._.js +2 -2
  92. package/.next/server/chunks/{[root-of-the-server]__0cfszwn._.js → [root-of-the-server]__0i23tc1._.js} +2 -2
  93. package/.next/server/chunks/[root-of-the-server]__0mrk2it._.js +1 -1
  94. package/.next/server/chunks/[root-of-the-server]__0nr-v8s._.js +1 -1
  95. package/.next/server/chunks/{[root-of-the-server]__1tg5got._.js → [root-of-the-server]__0paqm5y._.js} +2 -2
  96. package/.next/server/chunks/[root-of-the-server]__0qog7sm._.js +8 -0
  97. package/.next/server/chunks/[root-of-the-server]__0sm5xvm._.js +1 -1
  98. package/.next/server/chunks/[root-of-the-server]__0yisc5v._.js +5 -0
  99. package/.next/server/chunks/[root-of-the-server]__1-swlkw._.js +3 -3
  100. package/.next/server/chunks/[root-of-the-server]__12iddfq._.js +2 -2
  101. package/.next/server/chunks/{[root-of-the-server]__0npn_pn._.js → [root-of-the-server]__15p29m3._.js} +2 -2
  102. package/.next/server/chunks/[root-of-the-server]__17ses32._.js +3 -0
  103. package/.next/server/chunks/[root-of-the-server]__18-2tsq._.js +2 -2
  104. package/.next/server/chunks/[root-of-the-server]__1cjxw0-._.js +1 -1
  105. package/.next/server/chunks/[root-of-the-server]__1gi2nns._.js +5 -0
  106. package/.next/server/chunks/{[root-of-the-server]__0rqgb17._.js → [root-of-the-server]__1iauz8a._.js} +2 -2
  107. package/.next/server/chunks/[root-of-the-server]__1k3j52n._.js +1 -1
  108. package/.next/server/chunks/{[root-of-the-server]__209k6pk._.js → [root-of-the-server]__1lb_pxg._.js} +2 -2
  109. package/.next/server/chunks/[root-of-the-server]__1ndi14y._.js +1 -1
  110. package/.next/server/chunks/[root-of-the-server]__1orn-5b._.js +1 -1
  111. package/.next/server/chunks/[root-of-the-server]__1xqsrqq._.js +5 -0
  112. package/.next/server/chunks/[root-of-the-server]__1ygplx1._.js +1 -1
  113. package/.next/server/chunks/[root-of-the-server]__2163i40._.js +5 -0
  114. package/.next/server/chunks/_0ci0abh._.js +3 -0
  115. package/.next/server/chunks/_0eauz4t._.js +1 -1
  116. package/.next/server/chunks/_0f6ts7z._.js +1 -1
  117. package/.next/server/chunks/_0fg-1oj._.js +5 -0
  118. package/.next/server/chunks/_0khihjk._.js +2 -2
  119. package/.next/server/chunks/_0n74zsf._.js +1 -1
  120. package/.next/server/chunks/_0na2fj1._.js +2 -2
  121. package/.next/server/chunks/_0oh_99-._.js +3 -0
  122. package/.next/server/chunks/_0x-ej3f._.js +24 -24
  123. package/.next/server/chunks/_0z3nz21._.js +3 -0
  124. package/.next/server/chunks/_10tkr26._.js +1 -1
  125. package/.next/server/chunks/_12-amdu._.js +2 -2
  126. package/.next/server/chunks/_136j09a._.js +1 -1
  127. package/.next/server/chunks/_15740dw._.js +1 -1
  128. package/.next/server/chunks/_18izeh1._.js +5 -0
  129. package/.next/server/chunks/_1_5mnq4._.js +1 -1
  130. package/.next/server/chunks/_1ajbhv6._.js +2 -2
  131. package/.next/server/chunks/_1dc_d1q._.js +2 -2
  132. package/.next/server/chunks/_1drgfx4._.js +1 -1
  133. package/.next/server/chunks/_1e48czp._.js +2 -2
  134. package/.next/server/chunks/_1f06zo4._.js +3 -0
  135. package/.next/server/chunks/_1ic3bew._.js +2 -2
  136. package/.next/server/chunks/_1jn-aep._.js +2 -2
  137. package/.next/server/chunks/_1jn5btd._.js +6 -0
  138. package/.next/server/chunks/_1kg70wc._.js +2 -2
  139. package/.next/server/chunks/_1m2i5pt._.js +5 -0
  140. package/.next/server/chunks/_1ogqovh._.js +4 -4
  141. package/.next/server/chunks/_1qxheoa._.js +1 -1
  142. package/.next/server/chunks/_1ry6afh._.js +18 -0
  143. package/.next/server/chunks/_1taa4bs._.js +1 -1
  144. package/.next/server/chunks/_1tpr507._.js +1 -1
  145. package/.next/server/chunks/_1y8w80a._.js +1 -1
  146. package/.next/server/chunks/_1zxp-p6._.js +1 -1
  147. package/.next/server/chunks/_204744f._.js +5 -0
  148. package/.next/server/chunks/_20fsr_z._.js +1 -1
  149. package/.next/server/chunks/config_ts_1g4sz5o._.js +1 -1
  150. package/.next/server/chunks/features_0-cnt0l._.js +1 -1
  151. package/.next/server/chunks/features_0hdaci0._.js +1 -1
  152. package/.next/server/chunks/features_0p85gv6._.js +3 -0
  153. package/.next/server/chunks/{node_modules_zod_v4_0_v5xf5._.js → node_modules_zod_v4_01bha1c._.js} +2 -2
  154. package/.next/server/chunks/{node_modules_zod_v4_0q9hvql._.js → node_modules_zod_v4_0b99z6a._.js} +2 -2
  155. package/.next/server/chunks/{node_modules_zod_v4_1jg8iwg._.js → node_modules_zod_v4_1zz6lo1._.js} +2 -2
  156. package/.next/server/chunks/ssr/[root-of-the-server]__04upd5v._.js +3 -0
  157. package/.next/server/chunks/ssr/[root-of-the-server]__0dxszdt._.js +3 -0
  158. package/.next/server/chunks/ssr/[root-of-the-server]__0eezycw._.js +3 -0
  159. package/.next/server/chunks/ssr/[root-of-the-server]__0hpp3nw._.js +1 -1
  160. package/.next/server/chunks/ssr/[root-of-the-server]__0yngu44._.js +3 -0
  161. package/.next/server/chunks/ssr/[root-of-the-server]__16z72ny._.js +6 -0
  162. package/.next/server/chunks/ssr/[root-of-the-server]__1u_ry86._.js +3 -0
  163. package/.next/server/chunks/ssr/{[root-of-the-server]__1iwyp1e._.js → [root-of-the-server]__1unh_ew._.js} +1 -1
  164. package/.next/server/chunks/ssr/[root-of-the-server]__20re7ya._.js +3 -0
  165. package/.next/server/chunks/ssr/_00pgq9d._.js +5 -0
  166. package/.next/server/chunks/ssr/_07ke63g._.js +3 -0
  167. package/.next/server/chunks/ssr/_0agcbk7._.js +3 -0
  168. package/.next/server/chunks/ssr/_0e-gw2_._.js +3 -0
  169. package/.next/server/chunks/ssr/{_0fbi6om._.js → _0f_om6y._.js} +3 -3
  170. package/.next/server/chunks/ssr/_0fqhhwi._.js +1 -1
  171. package/.next/server/chunks/ssr/{_026qnc9._.js → _0gpn71k._.js} +3 -3
  172. package/.next/server/chunks/ssr/_0iizjr9._.js +3 -0
  173. package/.next/server/chunks/ssr/_0ixvzo6._.js +75 -0
  174. package/.next/server/chunks/ssr/_0kkdx7t._.js +3 -0
  175. package/.next/server/chunks/ssr/_0lufvw7._.js +118 -0
  176. package/.next/server/chunks/ssr/_0vi6ky6._.js +115 -0
  177. package/.next/server/chunks/ssr/{_10f-jib._.js → _0yhji3e._.js} +2 -2
  178. package/.next/server/chunks/ssr/_0z38nha._.js +3 -0
  179. package/.next/server/chunks/ssr/{_10mo72m._.js → _11nx2d4._.js} +2 -2
  180. package/.next/server/chunks/ssr/_12mijol._.js +2 -2
  181. package/.next/server/chunks/ssr/_150463c._.js +164 -0
  182. package/.next/server/chunks/ssr/{_0rmaf32._.js → _17d2ikl._.js} +2 -2
  183. package/.next/server/chunks/ssr/_19jez1a._.js +3 -0
  184. package/.next/server/chunks/ssr/_1blui1m._.js +3 -0
  185. package/.next/server/chunks/ssr/_1d423aj._.js +4 -4
  186. package/.next/server/chunks/ssr/_1kbk28w._.js +3 -0
  187. package/.next/server/chunks/ssr/_1kj_r9v._.js +3 -0
  188. package/.next/server/chunks/ssr/_1mqn9mc._.js +1 -1
  189. package/.next/server/chunks/ssr/{_0u5xv6g._.js → _1myh7ss._.js} +2 -2
  190. package/.next/server/chunks/ssr/_1neoj22._.js +1 -1
  191. package/.next/server/chunks/ssr/_1ou5sj0._.js +3 -0
  192. package/.next/server/chunks/ssr/_1p8xorg._.js +3 -0
  193. package/.next/server/chunks/ssr/_1tzacpl._.js +3 -0
  194. package/.next/server/chunks/ssr/_1xoch6f._.js +1 -1
  195. package/.next/server/chunks/ssr/_1yh5bj5._.js +1 -1
  196. package/.next/server/chunks/ssr/{_02c7o30._.js → _2021n9-._.js} +2 -2
  197. package/.next/server/chunks/ssr/_20argo3._.js +3 -0
  198. package/.next/server/chunks/ssr/features_bot_1ll3wp7._.js +3 -0
  199. package/.next/server/chunks/ssr/features_bot_1s_-2vj._.js +1 -1
  200. package/.next/server/chunks/ssr/features_bot_thread_query_ts_023eklt._.js +1 -1
  201. package/.next/server/chunks/ssr/features_config_1qxe5ur._.js +20 -0
  202. package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +3 -3
  203. package/.next/server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js +1 -1
  204. package/.next/server/chunks/ssr/features_routine_components_routine-setting_tsx_055fknz._.js +1 -1
  205. package/.next/server/chunks/ssr/features_workspace_00jz2hu._.js +1 -1
  206. package/.next/server/chunks/ssr/{node_modules_0ky76fz._.js → node_modules_06e0wlv._.js} +1 -1
  207. package/.next/server/chunks/ssr/{node_modules_0-x0zxm._.js → node_modules_0cj26-9._.js} +1 -1
  208. package/.next/server/chunks/ssr/{node_modules_0operbz._.js → node_modules_0d1rf5e._.js} +1 -1
  209. package/.next/server/chunks/ssr/{node_modules_0b0iy01._.js → node_modules_0e86703._.js} +1 -1
  210. package/.next/server/chunks/ssr/{node_modules_05b6e99._.js → node_modules_0es09am._.js} +1 -1
  211. package/.next/server/chunks/ssr/{node_modules_1iau_ea._.js → node_modules_0gr_dzf._.js} +1 -1
  212. package/.next/server/chunks/ssr/{node_modules_1hv-j1l._.js → node_modules_0gtcwz9._.js} +1 -1
  213. package/.next/server/chunks/ssr/{node_modules_1c2ikr9._.js → node_modules_0hi9h8f._.js} +1 -1
  214. package/.next/server/chunks/ssr/{node_modules_01u4ea3._.js → node_modules_0lkop0t._.js} +1 -1
  215. package/.next/server/chunks/ssr/{node_modules_1wvf3oo._.js → node_modules_0nghisk._.js} +1 -1
  216. package/.next/server/chunks/ssr/{node_modules_0yzmxfq._.js → node_modules_0stovz0._.js} +1 -1
  217. package/.next/server/chunks/ssr/{node_modules_00nrzz_._.js → node_modules_0we85kr._.js} +1 -1
  218. package/.next/server/chunks/ssr/{node_modules_01ed0yi._.js → node_modules_0ya7y1s._.js} +1 -1
  219. package/.next/server/chunks/ssr/{node_modules_0m3_5ge._.js → node_modules_0yrbwkj._.js} +1 -1
  220. package/.next/server/chunks/ssr/{node_modules_0v_-uht._.js → node_modules_1-x70ie._.js} +1 -1
  221. package/.next/server/chunks/ssr/{node_modules_07jp6tj._.js → node_modules_12fd9g0._.js} +1 -1
  222. package/.next/server/chunks/ssr/{node_modules_1wgnj8q._.js → node_modules_12wxrgr._.js} +1 -1
  223. package/.next/server/chunks/ssr/{node_modules_0azd56x._.js → node_modules_139uu4q._.js} +1 -1
  224. package/.next/server/chunks/ssr/{node_modules_1omg9xr._.js → node_modules_14gpoe1._.js} +1 -1
  225. package/.next/server/chunks/ssr/{node_modules_1ma_y68._.js → node_modules_18fmji6._.js} +1 -1
  226. package/.next/server/chunks/ssr/{node_modules_0ucridu._.js → node_modules_19kkel8._.js} +1 -1
  227. package/.next/server/chunks/ssr/{node_modules_0fpnetd._.js → node_modules_1gcine1._.js} +1 -1
  228. package/.next/server/chunks/ssr/{node_modules_1z3sh11._.js → node_modules_1h4trkm._.js} +1 -1
  229. package/.next/server/chunks/ssr/{node_modules_0lautv3._.js → node_modules_1mub_qu._.js} +1 -1
  230. package/.next/server/chunks/ssr/{node_modules_0ou0all._.js → node_modules_1p78svs._.js} +1 -1
  231. package/.next/server/chunks/ssr/{node_modules_19b0bir._.js → node_modules_1xp-7ep._.js} +1 -1
  232. package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0tmjn9w._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0ay7_oi._.js} +1 -1
  233. package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1_e8c3o._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_182ydq_._.js} +1 -1
  234. package/.next/server/middleware-build-manifest.js +3 -3
  235. package/.next/server/pages/404.html +1 -1
  236. package/.next/server/pages/500.html +1 -1
  237. package/.next/server/server-reference-manifest.js +1 -1
  238. package/.next/server/server-reference-manifest.json +69 -58
  239. package/.next/static/chunks/03df16hs01-xi.js +1 -0
  240. package/.next/static/chunks/0crocb7272z8k.js +1 -0
  241. package/.next/static/chunks/{0p9jcyqkpq71f.js → 0dqsenl3uk_8z.js} +1 -1
  242. package/.next/static/chunks/0hhn8mf953761.js +1 -0
  243. package/.next/static/chunks/0n1o3k0z4m7c_.js +1 -0
  244. package/.next/static/chunks/0oe2zavre2a7d.css +1 -0
  245. package/.next/static/chunks/0srg9tv4105-i.js +1 -0
  246. package/.next/static/chunks/0t599wrclly7i.js +18 -0
  247. package/.next/static/chunks/0x34bhth_sn35.js +1 -0
  248. package/.next/static/chunks/{0mscosx0eh3ee.js → 0x_6z8vt8hyf4.js} +3 -3
  249. package/.next/static/chunks/{0p50d-au6-3hx.js → 1_wstwzu1md-6.js} +2 -2
  250. package/.next/static/chunks/{40ij3wsn3vt7h.js → 1aughn81slf90.js} +1 -1
  251. package/.next/static/chunks/1g1j03h_l-e67.js +1 -0
  252. package/.next/static/chunks/1lp02y2nmddxg.js +1 -0
  253. package/.next/static/chunks/211s4xjtecj2l.js +1 -0
  254. package/.next/static/chunks/2244-cat2jlvd.js +1 -0
  255. package/.next/static/chunks/{2r6xnyg7ezyxr.js → 2eev_i93slion.js} +2 -2
  256. package/.next/static/chunks/2sjq4gsimlfqr.js +113 -0
  257. package/.next/static/chunks/{0qgn3u86jkbm7.js → 2uleilh8ph06-.js} +1 -1
  258. package/.next/static/chunks/{1czfknd4luo6t.js → 2zchsg03a1pdp.js} +1 -1
  259. package/.next/static/chunks/32tmfirfjpulv.js +1 -0
  260. package/.next/static/chunks/{2_c7mu6x1lu49.js → 376-s_i83irs-.js} +1 -1
  261. package/.next/static/chunks/3blk-kpn39xr-.js +1 -0
  262. package/.next/static/chunks/3eieehp7wquyu.js +1 -0
  263. package/.next/static/chunks/3kc-e7pcj50ae.js +1 -0
  264. package/.next/static/chunks/3rwpyuo9nrrop.js +17 -0
  265. package/.next/static/chunks/3sf4l25l353ja.js +1 -0
  266. package/.next/static/chunks/3vz7m1w688juj.js +3 -0
  267. package/.next/static/chunks/43skgt0h9woyu.js +1 -0
  268. package/app/api/events/app-event.client.ts +8 -2
  269. package/app/api/events/app-event.server.ts +7 -5
  270. package/app/api/events/app-event.ts +19 -8
  271. package/app/api/query-key.ts +13 -5
  272. package/bin/database.mjs +21 -11
  273. package/bin/thursday.mjs +5 -2
  274. package/components/ui/shiny-text.tsx +2 -2
  275. package/database/migrations/20260920024909_messy_baron_strucker/migration.sql +1 -0
  276. package/database/migrations/20260920024909_messy_baron_strucker/snapshot.json +1937 -0
  277. package/features/artifact/components/artifact-setting.tsx +18 -24
  278. package/features/bot/bot.action.ts +3 -0
  279. package/features/bot/bot.runner.ts +25 -3
  280. package/features/bot/bot.seed.ts +98 -22
  281. package/features/bot/components/bot-badge.tsx +2 -2
  282. package/features/bot/components/bot-mark.tsx +12 -3
  283. package/features/bot/components/bot-room.tsx +33 -10
  284. package/features/bot/components/bot-setting.tsx +88 -34
  285. package/features/bot/components/crew-motion.ts +161 -0
  286. package/features/bot/components/mark-palette.tsx +3 -3
  287. package/features/bot/components/room-conversation.tsx +13 -8
  288. package/features/bot/components/room-list.tsx +9 -5
  289. package/features/bot/components/room-pill.tsx +131 -41
  290. package/features/bot/components/thread-badge.tsx +4 -4
  291. package/features/bot/components/thread-setting.tsx +58 -19
  292. package/features/bot/mark.const.ts +24 -0
  293. package/features/bot/thread.query.ts +32 -14
  294. package/features/bot/thread.store.ts +19 -16
  295. package/features/config/components/config-badge.tsx +2 -2
  296. package/features/config/components/config-setting.tsx +63 -213
  297. package/features/config/config.const.ts +2 -1
  298. package/features/connectors/components/mcp-setting.tsx +60 -29
  299. package/features/intro/components/intro.tsx +2 -2
  300. package/features/memory/components/memory-setting.tsx +11 -7
  301. package/features/reach/channel.ts +9 -1
  302. package/features/reach/components/reach-guide.tsx +606 -105
  303. package/features/reach/discord.ts +18 -3
  304. package/features/reach/reach.schema.ts +6 -0
  305. package/features/reach/reach.ts +55 -2
  306. package/features/reach/slack.ts +2 -1
  307. package/features/reach/telegram.ts +5 -1
  308. package/features/routine/components/routine-setting.tsx +46 -18
  309. package/features/settings/components/setting-ui.tsx +17 -68
  310. package/features/settings/components/settings.tsx +4 -3
  311. package/features/settings/settings.alert.ts +8 -8
  312. package/features/skills/components/skills-setting.tsx +78 -12
  313. package/features/skills/skills.action.ts +12 -0
  314. package/features/skills/skills.query.ts +24 -0
  315. package/features/thursday/components/call-log.tsx +19 -14
  316. package/features/thursday/components/side-captions.tsx +3 -2
  317. package/features/thursday/components/thursday-setting.tsx +5 -6
  318. package/features/thursday/components/thursday.tsx +8 -9
  319. package/features/thursday/components/write-line.tsx +10 -5
  320. package/features/thursday/thursday.action.ts +4 -0
  321. package/features/thursday/thursday.query.ts +3 -2
  322. package/features/thursday/thursday.schema.ts +5 -0
  323. package/features/thursday/use-call-ring.ts +6 -1
  324. package/features/thursday/use-text-call.ts +25 -10
  325. package/features/thursday/use-thursday.ts +10 -1
  326. package/features/workspace/components/artifact-view.tsx +42 -33
  327. package/features/workspace/components/file-thumb.tsx +8 -4
  328. package/features/workspace/components/file-view.tsx +25 -2
  329. package/features/workspace/components/workspace-setting.tsx +27 -23
  330. package/features/workspace/workspace.query.ts +20 -1
  331. package/features/workspace/workspace.ts +14 -0
  332. package/guide/bots.md +27 -4
  333. package/guide/calls.md +5 -3
  334. package/guide/phone.md +23 -12
  335. package/guide/setup.md +20 -5
  336. package/guide/trouble.md +1 -1
  337. package/hooks/use-theme.ts +14 -0
  338. package/lib/protocol/events.client.ts +56 -14
  339. package/lib/protocol/events.server.ts +41 -12
  340. package/lib/utils.ts +1 -1
  341. package/package.json +1 -1
  342. package/scripts/reach-channels.test.mts +15 -2
  343. package/seed-skills/brief/daily-brief/SKILL.md +39 -0
  344. package/seed-skills/brief/daily-brief/page/brief.css +406 -0
  345. package/seed-skills/brief/daily-brief/references/brief.md +106 -0
  346. package/seed-skills/brief/daily-brief/references/preferences.md +67 -0
  347. package/seed-skills/brief/daily-brief/scripts/glance.mjs +128 -0
  348. package/seed-skills/brief/daily-brief/scripts/lib.mjs +182 -0
  349. package/seed-skills/brief/daily-brief/scripts/news.mjs +320 -0
  350. package/seed-skills/brief/daily-brief/scripts/page.mjs +322 -0
  351. package/seed-skills/brief/daily-brief/scripts/story.mjs +265 -0
  352. package/seed-skills/digest/README.md +20 -0
  353. package/seed-skills/digest/media-digest/SKILL.md +32 -0
  354. package/seed-skills/digest/media-digest/references/no-captions.md +20 -0
  355. package/seed-skills/digest/media-digest/references/page.md +56 -0
  356. package/seed-skills/digest/media-digest/references/reading.md +56 -0
  357. package/seed-skills/digest/media-digest/scripts/audio.mjs +232 -0
  358. package/seed-skills/digest/media-digest/scripts/digest.mjs +379 -0
  359. package/seed-skills/digest/media-digest/scripts/lib.mjs +284 -0
  360. package/seed-skills/digest/media-digest/scripts/part.mjs +16 -0
  361. package/seed-skills/digest/media-digest/scripts/text.mjs +287 -0
  362. package/seed-skills/digest/media-digest/scripts/yt.mjs +487 -0
  363. package/seed-skills/docs/README.md +32 -0
  364. package/seed-skills/docs/documents/SKILL.md +34 -0
  365. package/seed-skills/docs/documents/kit/package-lock.json +1596 -0
  366. package/seed-skills/docs/documents/kit/package.json +17 -0
  367. package/seed-skills/docs/documents/references/deck.md +63 -0
  368. package/seed-skills/docs/documents/references/invoice.md +64 -0
  369. package/seed-skills/docs/documents/references/pdf.md +59 -0
  370. package/seed-skills/docs/documents/references/print.md +43 -0
  371. package/seed-skills/docs/documents/references/sheets.md +49 -0
  372. package/seed-skills/docs/documents/references/translate.md +37 -0
  373. package/seed-skills/docs/documents/references/word.md +45 -0
  374. package/seed-skills/docs/documents/scripts/doc.mjs +123 -0
  375. package/seed-skills/docs/documents/scripts/lib/browser.mjs +259 -0
  376. package/seed-skills/docs/documents/scripts/lib/deck-chart.mjs +150 -0
  377. package/seed-skills/docs/documents/scripts/lib/deck.mjs +1132 -0
  378. package/seed-skills/docs/documents/scripts/lib/invoice.mjs +505 -0
  379. package/seed-skills/docs/documents/scripts/lib/kit.mjs +244 -0
  380. package/seed-skills/docs/documents/scripts/lib/pdf.mjs +645 -0
  381. package/seed-skills/docs/documents/scripts/lib/report.mjs +38 -0
  382. package/seed-skills/docs/documents/scripts/lib/sheet.mjs +523 -0
  383. package/seed-skills/docs/documents/scripts/lib/templates.mjs +34 -0
  384. package/seed-skills/docs/documents/scripts/lib/translate.mjs +691 -0
  385. package/seed-skills/docs/documents/scripts/lib/word.mjs +678 -0
  386. package/seed-skills/docs/documents/templates/letter.html +56 -0
  387. package/seed-skills/docs/documents/templates/print.css +219 -0
  388. package/seed-skills/docs/documents/templates/report.html +47 -0
  389. package/seed-skills/docs/documents/templates/resume.html +61 -0
  390. package/seed-skills/insta/instagram/references/post.md +31 -7
  391. package/seed-skills/trip/README.md +11 -0
  392. package/seed-skills/trip/travel/SKILL.md +40 -0
  393. package/seed-skills/trip/travel/page/itinerary.css +488 -0
  394. package/seed-skills/trip/travel/references/itinerary.md +70 -0
  395. package/seed-skills/trip/travel/references/plan.md +75 -0
  396. package/seed-skills/trip/travel/references/watch-and-book.md +39 -0
  397. package/seed-skills/trip/travel/scripts/flights.mjs +374 -0
  398. package/seed-skills/trip/travel/scripts/fx.mjs +57 -0
  399. package/seed-skills/trip/travel/scripts/hotels.mjs +356 -0
  400. package/seed-skills/trip/travel/scripts/itinerary.mjs +482 -0
  401. package/seed-skills/trip/travel/scripts/lib.mjs +120 -0
  402. package/seed-skills/trip/travel/scripts/selectors.mjs +78 -0
  403. package/seed-skills/trip/travel/scripts/watch.mjs +147 -0
  404. package/seed-skills/trip/travel/scripts/weather.mjs +150 -0
  405. package/seed-skills/tutor/picture-book/SKILL.md +6 -0
  406. package/seed-skills/tutor/picture-book/references/picture-book.md +22 -2
  407. package/.next/server/chunks/[root-of-the-server]__014ydvq._.js +0 -8
  408. package/.next/server/chunks/[root-of-the-server]__01d285y._.js +0 -5
  409. package/.next/server/chunks/[root-of-the-server]__04r4h-2._.js +0 -7
  410. package/.next/server/chunks/[root-of-the-server]__0ayldfn._.js +0 -5
  411. package/.next/server/chunks/[root-of-the-server]__17weeeg._.js +0 -5
  412. package/.next/server/chunks/[root-of-the-server]__1ai5lme._.js +0 -8
  413. package/.next/server/chunks/_05v8k21._.js +0 -7
  414. package/.next/server/chunks/_0k6qjcf._.js +0 -5
  415. package/.next/server/chunks/_1d_enhu._.js +0 -3
  416. package/.next/server/chunks/_1jc5g4p._.js +0 -6
  417. package/.next/server/chunks/_1nfr-75._.js +0 -3
  418. package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0md6j0x._.js +0 -3
  419. package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_14ih1vy._.js +0 -3
  420. package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1d6ez5-._.js +0 -3
  421. package/.next/server/chunks/ssr/[root-of-the-server]__0a967km._.js +0 -3
  422. package/.next/server/chunks/ssr/[root-of-the-server]__0tzekbl._.js +0 -68
  423. package/.next/server/chunks/ssr/[root-of-the-server]__1756892._.js +0 -3
  424. package/.next/server/chunks/ssr/[root-of-the-server]__1mzi-ju._.js +0 -3
  425. package/.next/server/chunks/ssr/[root-of-the-server]__1nqw56a._.js +0 -3
  426. package/.next/server/chunks/ssr/[root-of-the-server]__1r77-88._.js +0 -3
  427. package/.next/server/chunks/ssr/[root-of-the-server]__1w9hqq8._.js +0 -8
  428. package/.next/server/chunks/ssr/_05pl_u8._.js +0 -3
  429. package/.next/server/chunks/ssr/_097-ljd._.js +0 -4
  430. package/.next/server/chunks/ssr/_0euzzf8._.js +0 -3
  431. package/.next/server/chunks/ssr/_0evkpto._.js +0 -3
  432. package/.next/server/chunks/ssr/_0igfcax._.js +0 -20
  433. package/.next/server/chunks/ssr/_0lu1n_x._.js +0 -3
  434. package/.next/server/chunks/ssr/_0nvh1h9._.js +0 -3
  435. package/.next/server/chunks/ssr/_0qmpw35._.js +0 -3
  436. package/.next/server/chunks/ssr/_0uv-qs4._.js +0 -3
  437. package/.next/server/chunks/ssr/_132qkfz._.js +0 -5
  438. package/.next/server/chunks/ssr/_15zqt-t._.js +0 -3
  439. package/.next/server/chunks/ssr/_16gfxpn._.js +0 -3
  440. package/.next/server/chunks/ssr/_184327j._.js +0 -3
  441. package/.next/server/chunks/ssr/_18ujhhq._.js +0 -3
  442. package/.next/server/chunks/ssr/_1lx6w_o._.js +0 -67
  443. package/.next/server/chunks/ssr/_1ntpny5._.js +0 -3
  444. package/.next/server/chunks/ssr/_1o1g4uk._.js +0 -5
  445. package/.next/server/chunks/ssr/_1xx4zlb._.js +0 -3
  446. package/.next/server/chunks/ssr/_2008vmi._.js +0 -164
  447. package/.next/server/chunks/ssr/features_bot_1n1s7bh._.js +0 -3
  448. package/.next/static/chunks/09pkygbht7ki8.js +0 -18
  449. package/.next/static/chunks/0bm-nhblcmmj4.js +0 -17
  450. package/.next/static/chunks/0c_g4-11sha-1.js +0 -1
  451. package/.next/static/chunks/0hhza87hkbqaz.js +0 -1
  452. package/.next/static/chunks/0samf80yu2b17.js +0 -1
  453. package/.next/static/chunks/0vlgzqo9ka90v.js +0 -1
  454. package/.next/static/chunks/1g9yyvculuxj2.js +0 -1
  455. package/.next/static/chunks/1jz8n0mhtdzr8.js +0 -1
  456. package/.next/static/chunks/206laxm6maiz2.js +0 -1
  457. package/.next/static/chunks/23nfu5g4vl_m7.js +0 -1
  458. package/.next/static/chunks/2h-tlhb2ffhkk.js +0 -1
  459. package/.next/static/chunks/2i5_w8olnrvo0.js +0 -3
  460. package/.next/static/chunks/2m6jd3586ijb-.js +0 -1
  461. package/.next/static/chunks/2m8iqwc6sykln.js +0 -1
  462. package/.next/static/chunks/33fyp-byw48ju.js +0 -65
  463. package/.next/static/chunks/35yd_27d9ylra.js +0 -1
  464. package/.next/static/chunks/3ag1i3__yl94f.js +0 -1
  465. package/.next/static/chunks/3m_ejzg-xn21r.css +0 -1
  466. package/.next/static/chunks/3s-jpd3ky49-n.js +0 -1
  467. package/features/reach/components/reach-state.tsx +0 -71
  468. /package/.next/static/{QSe0rTdXU5kh5BBzr2XBB → fiNGsQfna8qldl8wU8wqr}/_buildManifest.js +0 -0
  469. /package/.next/static/{QSe0rTdXU5kh5BBzr2XBB → fiNGsQfna8qldl8wU8wqr}/_clientMiddlewareManifest.js +0 -0
  470. /package/.next/static/{QSe0rTdXU5kh5BBzr2XBB → fiNGsQfna8qldl8wU8wqr}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "node": {
3
- "7ff3382960a628d7858b7d48138cadbf317ad69668": {
3
+ "7f1015a311483dd554e5bff774c235eb7d5695b283": {
4
4
  "workers": {
5
5
  "app/page": {
6
6
  "moduleId": 363531,
@@ -11,7 +11,7 @@
11
11
  "filename": "features/config/config.action.ts",
12
12
  "exportedName": "setConfigAction"
13
13
  },
14
- "7f989fbff5405e96f09ca7e41370a544a4aefb1c4f": {
14
+ "7fb82f52bdf4f3abc6dbc28fcc9e3b07dfe1410615": {
15
15
  "workers": {
16
16
  "app/page": {
17
17
  "moduleId": 363531,
@@ -22,7 +22,7 @@
22
22
  "filename": "features/config/config.action.ts",
23
23
  "exportedName": "startChatGptSignInAction"
24
24
  },
25
- "7fe1ddd9593ef1af9741fdc148628d6d4ea18adf40": {
25
+ "7fbe746aac65dd26bad032b2cacebadc32e835c4b5": {
26
26
  "workers": {
27
27
  "app/page": {
28
28
  "moduleId": 363531,
@@ -33,7 +33,7 @@
33
33
  "filename": "features/bot/bot.action.ts",
34
34
  "exportedName": "createSeedBotsAction"
35
35
  },
36
- "7fec2c88360810a033d6327327219c64f093b5967d": {
36
+ "7f091d2a34368daec969e4d15414e1f06c28d35388": {
37
37
  "workers": {
38
38
  "app/page": {
39
39
  "moduleId": 363531,
@@ -44,7 +44,7 @@
44
44
  "filename": "features/config/config.action.ts",
45
45
  "exportedName": "removeConfigAction"
46
46
  },
47
- "7f50e54553a800b7a80933a5c68979cab22a946fc4": {
47
+ "7fed7242c8d057df8fc5914b34a095ee3ea542e6aa": {
48
48
  "workers": {
49
49
  "app/page": {
50
50
  "moduleId": 363531,
@@ -55,7 +55,7 @@
55
55
  "filename": "features/reach/reach.action.ts",
56
56
  "exportedName": "forgetReachAction"
57
57
  },
58
- "7fa903404f6203f59566ec69113a2bd5ec7de459a2": {
58
+ "7fe01c51e420743ec977c07ee33fbf2f47c098b7ff": {
59
59
  "workers": {
60
60
  "app/page": {
61
61
  "moduleId": 363531,
@@ -66,7 +66,7 @@
66
66
  "filename": "features/bot/bot.action.ts",
67
67
  "exportedName": "answerThreadAction"
68
68
  },
69
- "7fbd83ed7976d5911cf4c4c9402f67b2de4601a34b": {
69
+ "7ff8ecdf75fec64d619334f1c3d01aa1d17bebc3ce": {
70
70
  "workers": {
71
71
  "app/page": {
72
72
  "moduleId": 363531,
@@ -77,7 +77,7 @@
77
77
  "filename": "features/bot/bot.action.ts",
78
78
  "exportedName": "cancelThreadAction"
79
79
  },
80
- "7f247e5a629e7a1560dadef89c2c44310462a2be80": {
80
+ "7f706806bd649d3de97533c4a55d9c237b036fff90": {
81
81
  "workers": {
82
82
  "app/page": {
83
83
  "moduleId": 363531,
@@ -88,7 +88,7 @@
88
88
  "filename": "features/bot/bot.action.ts",
89
89
  "exportedName": "withdrawStepInAction"
90
90
  },
91
- "7f97f1dd862dcfb0c626dc15b752e78bb5bf9093a0": {
91
+ "7fce2be423102ae7fdcf5af38dac386c0745db85a7": {
92
92
  "workers": {
93
93
  "app/page": {
94
94
  "moduleId": 363531,
@@ -99,7 +99,7 @@
99
99
  "filename": "features/bot/bot.action.ts",
100
100
  "exportedName": "markSeenAction"
101
101
  },
102
- "7f1f25bd84bfa9df4c5bd901ee0c1e7d11924c7940": {
102
+ "7f8ce4fd293f529f885fde2cf72003e16365e33e70": {
103
103
  "workers": {
104
104
  "app/page": {
105
105
  "moduleId": 363531,
@@ -110,7 +110,7 @@
110
110
  "filename": "features/signins/signins.action.ts",
111
111
  "exportedName": "setSignInBotAction"
112
112
  },
113
- "7f63936457a5f34275fc2c3ae6ee5ff47817e28c32": {
113
+ "7f599034dad6e65760f05111eaf83d2c2c62dc6f96": {
114
114
  "workers": {
115
115
  "app/page": {
116
116
  "moduleId": 363531,
@@ -121,7 +121,7 @@
121
121
  "filename": "features/workspace/workspace.action.ts",
122
122
  "exportedName": "giveFilesAction"
123
123
  },
124
- "7fe8d6537be4e8290d1b81e8b1b55de06421001601": {
124
+ "7fcc31ac0b675f941aed483a62a6889e4a15d2550b": {
125
125
  "workers": {
126
126
  "app/page": {
127
127
  "moduleId": 363531,
@@ -132,11 +132,11 @@
132
132
  "filename": "features/bot/bot.action.ts",
133
133
  "exportedName": "compactThreadAction"
134
134
  },
135
- "7f279aeb9bc413bab137b80d700253ecd015dbc07d": {
135
+ "7fd5c07484b3d148c141bc5aec2bb9ec06da1f10d5": {
136
136
  "workers": {
137
137
  "app/artifact/[...path]/page": {
138
138
  "moduleId": 701876,
139
- "async": false,
139
+ "async": true,
140
140
  "codeHash": null
141
141
  },
142
142
  "app/page": {
@@ -148,7 +148,7 @@
148
148
  "filename": "features/workspace/workspace.action.ts",
149
149
  "exportedName": "openFileAction"
150
150
  },
151
- "7f3d3958951c383dd4ebb10af86cfbcad19895bf89": {
151
+ "7f1cd872cc880eeb62bf24c8c528ed75234a1a85e4": {
152
152
  "workers": {
153
153
  "app/page": {
154
154
  "moduleId": 363531,
@@ -159,7 +159,7 @@
159
159
  "filename": "features/memory/memory.action.ts",
160
160
  "exportedName": "addFactsAction"
161
161
  },
162
- "7fa3b9c4f93dcdd094a2195a28d0991caba0ae50b6": {
162
+ "7f50757e9d7e6f383fd66fa3270a67482eb3aad7fe": {
163
163
  "workers": {
164
164
  "app/page": {
165
165
  "moduleId": 363531,
@@ -170,7 +170,7 @@
170
170
  "filename": "features/memory/memory.action.ts",
171
171
  "exportedName": "createNoteAction"
172
172
  },
173
- "7fe828f1b32683a2b99c0ce44ddc59f9d9c58ea70b": {
173
+ "7f7ad4e27616e08091a2a0c51337523e528fc54250": {
174
174
  "workers": {
175
175
  "app/page": {
176
176
  "moduleId": 363531,
@@ -181,7 +181,7 @@
181
181
  "filename": "features/memory/memory.action.ts",
182
182
  "exportedName": "deleteNoteAction"
183
183
  },
184
- "7f8080b114b946c314387e423e89536de9d7b90f4c": {
184
+ "7fb17ddf07f086a5de564324609d776bb33dcfedce": {
185
185
  "workers": {
186
186
  "app/page": {
187
187
  "moduleId": 363531,
@@ -192,7 +192,7 @@
192
192
  "filename": "features/memory/memory.action.ts",
193
193
  "exportedName": "forgetFactAction"
194
194
  },
195
- "7ff1c0e8ec9950d14c31a0342a6a22dfb76f91325a": {
195
+ "7fbd1c4426cf280c7564105f30872c2bcf6448df1b": {
196
196
  "workers": {
197
197
  "app/page": {
198
198
  "moduleId": 363531,
@@ -203,7 +203,7 @@
203
203
  "filename": "features/memory/memory.action.ts",
204
204
  "exportedName": "reviseFactAction"
205
205
  },
206
- "7f7aef7266b7786b29a663ff595c3d7c74343c24d2": {
206
+ "7f4a26fc7fcc90d13ee24aa9b41175a4a6b74dcf8b": {
207
207
  "workers": {
208
208
  "app/page": {
209
209
  "moduleId": 363531,
@@ -214,7 +214,7 @@
214
214
  "filename": "features/memory/memory.action.ts",
215
215
  "exportedName": "setFactAlwaysLoadAction"
216
216
  },
217
- "7fb07800634295b9b67d266d6060a4facfb2973e91": {
217
+ "7f30c55353cbf246851082ad5f24a36f145e13d314": {
218
218
  "workers": {
219
219
  "app/page": {
220
220
  "moduleId": 363531,
@@ -225,7 +225,7 @@
225
225
  "filename": "features/memory/memory.action.ts",
226
226
  "exportedName": "updateNoteAction"
227
227
  },
228
- "7f58479aabf4f3553b3ac83369d160917e4c2b1d99": {
228
+ "7febfcb3c8d39837a9595f565a8883fd86e8539b2d": {
229
229
  "workers": {
230
230
  "app/page": {
231
231
  "moduleId": 363531,
@@ -236,7 +236,7 @@
236
236
  "filename": "features/bot/bot.action.ts",
237
237
  "exportedName": "createBotAction"
238
238
  },
239
- "7f3b2af8fad34ea6d36738c9671f85ce8d9d9a95bb": {
239
+ "7f4a9f4e5863d6a13516a9e5035d74766da5e25afb": {
240
240
  "workers": {
241
241
  "app/page": {
242
242
  "moduleId": 363531,
@@ -247,7 +247,7 @@
247
247
  "filename": "features/bot/bot.action.ts",
248
248
  "exportedName": "deleteBotAction"
249
249
  },
250
- "7fde00425c4667d79300d0bc374b382e19ca41d832": {
250
+ "7fffed296a1f2c7bae9eddb18e10e5fc1641cd9562": {
251
251
  "workers": {
252
252
  "app/page": {
253
253
  "moduleId": 363531,
@@ -258,7 +258,7 @@
258
258
  "filename": "features/bot/bot.action.ts",
259
259
  "exportedName": "setBotMemoryOnAction"
260
260
  },
261
- "7fee933ef4c100169ea1333ab1433d058d04f715a1": {
261
+ "7fb048e5653548c09e2dcf44c15b62601887477621": {
262
262
  "workers": {
263
263
  "app/page": {
264
264
  "moduleId": 363531,
@@ -269,7 +269,7 @@
269
269
  "filename": "features/bot/bot.action.ts",
270
270
  "exportedName": "updateBotAction"
271
271
  },
272
- "7f3dc1c7787c59bd2c3c24559f88e7e41638c1b78d": {
272
+ "7fa00e3079a1fdce34072f8f4950ff89062514435f": {
273
273
  "workers": {
274
274
  "app/page": {
275
275
  "moduleId": 363531,
@@ -280,7 +280,7 @@
280
280
  "filename": "features/bot/bot.action.ts",
281
281
  "exportedName": "setKeepWorkingOnAction"
282
282
  },
283
- "7fecf7a8f59fb3b540c294fcbc5574664cfd32cc22": {
283
+ "7fd3a8b14d131f17a3ee8e56630e3f2ec5fed81cbb": {
284
284
  "workers": {
285
285
  "app/page": {
286
286
  "moduleId": 363531,
@@ -291,7 +291,7 @@
291
291
  "filename": "features/workspace/workspace.action.ts",
292
292
  "exportedName": "deleteWorkspaceFileAction"
293
293
  },
294
- "7f0bc715041b3e1b8e0da3a67c31c9d3ff2d973834": {
294
+ "7f6252f4319938ca5504ffef5a0b0f22bdad3cb256": {
295
295
  "workers": {
296
296
  "app/page": {
297
297
  "moduleId": 363531,
@@ -302,7 +302,7 @@
302
302
  "filename": "features/bot/bot.action.ts",
303
303
  "exportedName": "clearFinishedThreadsAction"
304
304
  },
305
- "7fa917f3a1efb2be573c7cb75e7111c1535078fdac": {
305
+ "7f1de3b7f3504f29d402b64ab8909236d1455024be": {
306
306
  "workers": {
307
307
  "app/page": {
308
308
  "moduleId": 363531,
@@ -313,7 +313,7 @@
313
313
  "filename": "features/bot/bot.action.ts",
314
314
  "exportedName": "deleteThreadAction"
315
315
  },
316
- "7fac817ed1eba7a48ad4eecfc0084ed682f61483cc": {
316
+ "7fb523fe983f832c81051137aae2655e448b96a244": {
317
317
  "workers": {
318
318
  "app/page": {
319
319
  "moduleId": 363531,
@@ -324,7 +324,7 @@
324
324
  "filename": "features/routine/routine.action.ts",
325
325
  "exportedName": "createRoutineAction"
326
326
  },
327
- "7f1bb0587d0cb866036edaa1a9d3ddbb1ace60f525": {
327
+ "7f4a2d943906ef393fd3761bea7fa86b742785db01": {
328
328
  "workers": {
329
329
  "app/page": {
330
330
  "moduleId": 363531,
@@ -335,7 +335,7 @@
335
335
  "filename": "features/routine/routine.action.ts",
336
336
  "exportedName": "deleteRoutineAction"
337
337
  },
338
- "7f3cdf6be1eacd8a5feb8c1d1434cd715aba6dffc3": {
338
+ "7ffbb46355685d1d40fd6c8276d9dee306b287f267": {
339
339
  "workers": {
340
340
  "app/page": {
341
341
  "moduleId": 363531,
@@ -346,7 +346,7 @@
346
346
  "filename": "features/routine/routine.action.ts",
347
347
  "exportedName": "runRoutineNowAction"
348
348
  },
349
- "7f10820c7adb61eb66a42c611e5a2ffd7605f3956c": {
349
+ "7fb08fa1086632c5a517c205667506eaceaeba9f8e": {
350
350
  "workers": {
351
351
  "app/page": {
352
352
  "moduleId": 363531,
@@ -357,7 +357,7 @@
357
357
  "filename": "features/routine/routine.action.ts",
358
358
  "exportedName": "updateRoutineAction"
359
359
  },
360
- "7f24112c5e9deb58d9ac1d7ece99b295911e4e61a9": {
360
+ "7fa9f4af48041561f40a4cbe346df210af567230a2": {
361
361
  "workers": {
362
362
  "app/page": {
363
363
  "moduleId": 363531,
@@ -368,7 +368,7 @@
368
368
  "filename": "features/thursday/thursday.action.ts",
369
369
  "exportedName": "deleteCallAction"
370
370
  },
371
- "7f8f3ac66fefef9b9c397a55bb3ac21edd75dd09b1": {
371
+ "7ff592c24b1c4575c154d75c60cdc370812845a869": {
372
372
  "workers": {
373
373
  "app/page": {
374
374
  "moduleId": 363531,
@@ -379,7 +379,7 @@
379
379
  "filename": "features/thursday/thursday.action.ts",
380
380
  "exportedName": "deleteEndedCallsAction"
381
381
  },
382
- "7fda4903923a2e620e348a963b8ce3b65ff3c8d1fc": {
382
+ "7fbb7407a5896155c60da2f001740f5e57559bd37a": {
383
383
  "workers": {
384
384
  "app/page": {
385
385
  "moduleId": 363531,
@@ -390,7 +390,7 @@
390
390
  "filename": "features/thursday/thursday.action.ts",
391
391
  "exportedName": "resetHistoryAction"
392
392
  },
393
- "7f500c68f3f02db13fbf0991d161466db90a8a3ecb": {
393
+ "7f53a8229afffdcee6fce6a724a5de6e17a677c5c2": {
394
394
  "workers": {
395
395
  "app/page": {
396
396
  "moduleId": 363531,
@@ -401,7 +401,7 @@
401
401
  "filename": "features/thursday/thursday.action.ts",
402
402
  "exportedName": "setCallSkillsAction"
403
403
  },
404
- "7fec42b8f9ef311839e826b755fe0222b01951c53e": {
404
+ "7ff8a0d99daac794826c95945bc2f352035eebdeba": {
405
405
  "workers": {
406
406
  "app/page": {
407
407
  "moduleId": 363531,
@@ -412,7 +412,7 @@
412
412
  "filename": "features/artifact/artifact.action.ts",
413
413
  "exportedName": "deleteArtifactAction"
414
414
  },
415
- "7fcc6c25dee43a4a31db8c59fc21b90843ba850601": {
415
+ "7fe109e3e5ec8257c6a858e06a4bd2a04a9e4dd0d3": {
416
416
  "workers": {
417
417
  "app/page": {
418
418
  "moduleId": 363531,
@@ -423,7 +423,7 @@
423
423
  "filename": "features/workspace/workspace.action.ts",
424
424
  "exportedName": "emptyScratchAction"
425
425
  },
426
- "7fbab3f1f7f4fe6a438f65cebd42ac2fbb65aaa7b4": {
426
+ "7f9409becae9bbaba952ec755d4cfb93b5122c71fc": {
427
427
  "workers": {
428
428
  "app/page": {
429
429
  "moduleId": 363531,
@@ -434,7 +434,7 @@
434
434
  "filename": "features/skills/skills.action.ts",
435
435
  "exportedName": "createSkillAction"
436
436
  },
437
- "7fb4691f1a7e9bde954a60a0cb60262a80bbb5f125": {
437
+ "7f982d50a9ce32102320c3c886493aaa264886fa42": {
438
438
  "workers": {
439
439
  "app/page": {
440
440
  "moduleId": 363531,
@@ -445,7 +445,7 @@
445
445
  "filename": "features/skills/skills.action.ts",
446
446
  "exportedName": "deleteSkillAction"
447
447
  },
448
- "7fa6c1c825a7d6ea3d310d2ac568756df877f98a17": {
448
+ "7f287d92dd4d485832df0afb705b2ac1dd77df09a0": {
449
449
  "workers": {
450
450
  "app/page": {
451
451
  "moduleId": 363531,
@@ -456,7 +456,7 @@
456
456
  "filename": "features/skills/skills.action.ts",
457
457
  "exportedName": "setSkillDisabledAction"
458
458
  },
459
- "7f9f08083efc486ceca04b561fc9804a559251e938": {
459
+ "7f303053984ddb5028954367b89d32b959b0f79541": {
460
460
  "workers": {
461
461
  "app/page": {
462
462
  "moduleId": 363531,
@@ -467,7 +467,18 @@
467
467
  "filename": "features/skills/skills.action.ts",
468
468
  "exportedName": "uploadSkillAction"
469
469
  },
470
- "7f59e554bf61a252814429c5c20d4990c9c511e34c": {
470
+ "7fc4c9432de942a5145699a465e18aa8b396161e5d": {
471
+ "workers": {
472
+ "app/page": {
473
+ "moduleId": 363531,
474
+ "async": true,
475
+ "codeHash": null
476
+ }
477
+ },
478
+ "filename": "features/skills/skills.action.ts",
479
+ "exportedName": "writeSkillFileAction"
480
+ },
481
+ "7f0b922637590726045ca47318cb6e60183b7a5019": {
471
482
  "workers": {
472
483
  "app/page": {
473
484
  "moduleId": 363531,
@@ -478,7 +489,7 @@
478
489
  "filename": "features/connectors/mcp.action.ts",
479
490
  "exportedName": "callToolAction"
480
491
  },
481
- "7f595858ee3c9f58da5a2d30fb299bea22d8b2a4e2": {
492
+ "7fc49faef09006d9cb0bf43007b1499cab738531c5": {
482
493
  "workers": {
483
494
  "app/page": {
484
495
  "moduleId": 363531,
@@ -489,7 +500,7 @@
489
500
  "filename": "features/connectors/mcp.action.ts",
490
501
  "exportedName": "deleteServerAction"
491
502
  },
492
- "7f2567b779055e4492dd88b3a33d42b38baaac7f24": {
503
+ "7f868ad6bbcd2eb1dda03b79dd75bfa74d592dba97": {
493
504
  "workers": {
494
505
  "app/page": {
495
506
  "moduleId": 363531,
@@ -500,7 +511,7 @@
500
511
  "filename": "features/connectors/mcp.action.ts",
501
512
  "exportedName": "refreshServerAction"
502
513
  },
503
- "7f14156357071ab1027d6ee1a94e32f6b1c882cfe6": {
514
+ "7f58282e9535aa746a4e1210617d21d0f05a287287": {
504
515
  "workers": {
505
516
  "app/page": {
506
517
  "moduleId": 363531,
@@ -511,7 +522,7 @@
511
522
  "filename": "features/connectors/mcp.action.ts",
512
523
  "exportedName": "registerServerAction"
513
524
  },
514
- "7ffedcec5e01e0c773430442caf33e1c0507185e8c": {
525
+ "7f34484c3c93b93610241d1e337883d91b6c93c73b": {
515
526
  "workers": {
516
527
  "app/page": {
517
528
  "moduleId": 363531,
@@ -522,7 +533,7 @@
522
533
  "filename": "features/signins/signins.action.ts",
523
534
  "exportedName": "removeSignInAction"
524
535
  },
525
- "7f4757231c23f4688dd89431d98f3f99a31578d580": {
536
+ "7fc8cb635e5455a95ec313bda5d8d003e4a0bfa563": {
526
537
  "workers": {
527
538
  "app/page": {
528
539
  "moduleId": 363531,
@@ -533,7 +544,7 @@
533
544
  "filename": "features/bot/bot.action.ts",
534
545
  "exportedName": "acceptThreadRelaysAction"
535
546
  },
536
- "7fa34e106a7dd94c3d0094dd4fd6d81455adf72402": {
547
+ "7fc3127ce9977a6a49719852d10247912ea151ac73": {
537
548
  "workers": {
538
549
  "app/page": {
539
550
  "moduleId": 363531,
@@ -544,7 +555,7 @@
544
555
  "filename": "features/thursday/thursday.action.ts",
545
556
  "exportedName": "endCallAction"
546
557
  },
547
- "7f2d4f6df5d034760fe258a98bb27aebaba2c53c18": {
558
+ "7f9fbd0cab1947809a91073c3782e47f598b87afa9": {
548
559
  "workers": {
549
560
  "app/page": {
550
561
  "moduleId": 363531,
@@ -555,7 +566,7 @@
555
566
  "filename": "features/thursday/thursday.action.ts",
556
567
  "exportedName": "openTextCallAction"
557
568
  },
558
- "7f22850f30798a2f3997523883e7f2eae719e79fd2": {
569
+ "7f66196f3b73670d961cdf1f293cbbf7251d406a84": {
559
570
  "workers": {
560
571
  "app/page": {
561
572
  "moduleId": 363531,
@@ -566,7 +577,7 @@
566
577
  "filename": "features/thursday/thursday.action.ts",
567
578
  "exportedName": "openCallAction"
568
579
  },
569
- "7fc3bd4347c619a4d08f9fcc75a7993b85d1460ed2": {
580
+ "7fc8594805ba6e9454e54aec11566ab42f39837d08": {
570
581
  "workers": {
571
582
  "app/page": {
572
583
  "moduleId": 363531,
@@ -577,7 +588,7 @@
577
588
  "filename": "features/thursday/thursday.action.ts",
578
589
  "exportedName": "saveThoughtAction"
579
590
  },
580
- "7fcf157d446b126d7e64d98cacc07fdfd480bf9375": {
591
+ "7f5a06cd07e57580ab2dcc83226a53ea5d02297e01": {
581
592
  "workers": {
582
593
  "app/page": {
583
594
  "moduleId": 363531,
@@ -588,7 +599,7 @@
588
599
  "filename": "features/thursday/thursday.action.ts",
589
600
  "exportedName": "saveTurnsAction"
590
601
  },
591
- "7f5bf14e770ea3a12f9d0fb0ace4bef64f3f89ab13": {
602
+ "7f59aab9747f21e1221fe9a286f74742e1d77b2e8e": {
592
603
  "workers": {
593
604
  "app/page": {
594
605
  "moduleId": 363531,
@@ -599,7 +610,7 @@
599
610
  "filename": "features/bot/bot.action.ts",
600
611
  "exportedName": "startThreadAction"
601
612
  },
602
- "7f3250354c6e5059e2bc62ba95c04fb29bcbbc6b22": {
613
+ "7fadd72695790fa94ef009bfd49bd40e2c45287b78": {
603
614
  "workers": {
604
615
  "app/page": {
605
616
  "moduleId": 363531,
@@ -610,7 +621,7 @@
610
621
  "filename": "features/reach/reach.action.ts",
611
622
  "exportedName": "allowReachAction"
612
623
  },
613
- "7f10db6f53a268108d301b644da64f501481c30726": {
624
+ "7f6036534aee3d27bb05acf1426174208039896a19": {
614
625
  "workers": {
615
626
  "app/page": {
616
627
  "moduleId": 363531,
@@ -623,5 +634,5 @@
623
634
  }
624
635
  },
625
636
  "edge": {},
626
- "encryptionKey": "tLxOoxQQGGTF0NI1HCiqcfos5pUy7AJ1+X96hb8rtHw="
637
+ "encryptionKey": "WMBbz+IEzd/QXoBHypFlyNE7KyGteyks6FpNdirIieQ="
627
638
  }
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,986530,e=>{"use strict";var t=e.i(843476),s=e.i(225913);e.i(271645);var l=e.i(647163);function a({className:e,...s}){return(0,t.jsx)("label",{"data-slot":"label",className:(0,l.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...s})}e.i(652225);let n=(0,s.cva)("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:"flex-col *:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});e.s(["Field",0,function({className:e,orientation:s="vertical",...a}){return(0,t.jsx)("div",{role:"group","data-slot":"field","data-orientation":s,className:(0,l.cn)(n({orientation:s}),e),...a})},"FieldContent",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"field-content",className:(0,l.cn)("group/field-content flex flex-1 flex-col gap-0.5 leading-snug",e),...s})},"FieldLabel",0,function({className:e,...s}){return(0,t.jsx)(a,{"data-slot":"field-label",className:(0,l.cn)("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",e),...s})}],986530)},833959,e=>{"use strict";var t=e.i(843476),s=e.i(437750),l=e.i(856539),a=e.i(24071),n=e.i(867927),i=e.i(829600),r=e.i(226091),o=e.i(726067),d=e.i(91511),c=e.i(456420);let u={name:"mouse-pointer-2",size:24,node:[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]};u.node;let m=(0,c.default)(u);var x=e.i(77071),h=e.i(566595);let f={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};f.node;let p=(0,c.default)(f);var g=e.i(759659);let v={name:"upload",size:24,node:[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]};v.node;let b=(0,c.default)(v);var j=e.i(271645),k=e.i(798120),y=e.i(167881),N=e.i(986530),w=e.i(23750),S=e.i(683408),C=e.i(917162),z=e.i(671428),F=e.i(319036),M=e.i(127341),R=e.i(184762),L=e.i(41533),T=e.i(895836),A=e.i(95187);let D=(0,A.createServerReference)("7f9409becae9bbaba952ec755d4cfb93b5122c71fc",A.callServer,void 0,A.findSourceMapURL,"createSkillAction"),$=(0,A.createServerReference)("7f982d50a9ce32102320c3c886493aaa264886fa42",A.callServer,void 0,A.findSourceMapURL,"deleteSkillAction"),K=(0,A.createServerReference)("7f287d92dd4d485832df0afb705b2ac1dd77df09a0",A.callServer,void 0,A.findSourceMapURL,"setSkillDisabledAction"),B=(0,A.createServerReference)("7f303053984ddb5028954367b89d32b959b0f79541",A.callServer,void 0,A.findSourceMapURL,"uploadSkillAction"),q=(0,A.createServerReference)("7fc4c9432de942a5145699a465e18aa8b396161e5d",A.callServer,void 0,A.findSourceMapURL,"writeSkillFileAction");var O=e.i(609856),P=e.i(283653),U=e.i(647163);let I={browser:d.Globe,computer:s.AppWindow,"find-skills":h.Search,"interactive-page":m,"skill-creator":p};function W({skill:e}){let[s,a]=(0,O.useServerAction)($,{onOk:()=>(0,P.revalidate)(k.queryKey.skills)}),[i]=(0,O.useServerAction)(K,{onOk:()=>(0,P.revalidate)(k.queryKey.skills)}),r=async()=>{await C.notify.confirm({title:`Delete ${e.name}?`,description:"Every file in this skill is deleted for good.",okText:"Delete",destructive:!0})&&s(e.dir)},o="default"===e.source&&I[e.dir]||l.BookMarked;return(0,t.jsxs)("div",{className:"group flex items-center transition-colors hover:bg-muted/50",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{var s;return s=e,C.notify.component({className:"sm:max-w-4xl",renderer:()=>(0,t.jsx)(E,{skill:s})})},className:"flex min-w-0 flex-1 items-center gap-3 py-4 pl-4 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)("span",{className:(0,U.cn)("grid size-10 shrink-0 place-items-center rounded-lg bg-muted text-muted-foreground",e.disabled&&"opacity-45"),children:(0,t.jsx)(o,{className:"size-4"})}),(0,t.jsxs)("span",{className:(0,U.cn)("min-w-0 flex-1 space-y-0.5",e.disabled&&"opacity-45"),children:[(0,t.jsx)("span",{className:"block truncate text-sm font-medium",children:e.name}),(0,t.jsx)("span",{className:"line-clamp-2 text-xs leading-relaxed text-muted-foreground",children:e.description})]}),(0,t.jsx)(n.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground/60 group-hover:text-foreground"})]}),(0,t.jsxs)("div",{className:"mr-4 ml-5 flex w-18 shrink-0 items-center justify-end gap-3",children:[(0,t.jsx)(F.Switch,{checked:!e.disabled,onCheckedChange:t=>i(e.source,e.dir,!t),"aria-label":`${e.name} on or off`,className:"shrink-0"}),"custom"===e.source?(0,t.jsx)(y.Button,{size:"icon-sm",variant:"ghost",loading:a,onClick:r,className:"shrink-0 text-muted-foreground",children:(0,t.jsx)(g.Trash2,{})}):(0,t.jsx)("span",{className:"size-7 shrink-0"})]})]})}function E({skill:e}){let[s,l]=(0,j.useState)(""),[n,i]=(0,j.useState)("SKILL.md");return(0,t.jsx)(T.SettingDialogContent,{title:e.name,description:(0,t.jsx)(H,{skill:e,path:n??s}),children:(0,t.jsxs)("div",{className:"flex h-[36rem] divide-x divide-border/60 overflow-hidden rounded-xl border border-border/60 bg-background",children:[(0,t.jsxs)("div",{className:"flex w-44 shrink-0 flex-col overflow-y-auto bg-muted/20 py-1",children:[s&&(0,t.jsxs)("button",{type:"button",onClick:()=>l(s.split("/").slice(0,-1).join("/")),className:"mx-1 mb-1 flex items-center gap-1 rounded-md px-2 py-1 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/50 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)(a.ChevronLeft,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:s.split("/").pop()})]}),(0,t.jsx)(G,{source:e.source,dir:e.dir,path:s,current:n,onPick:e=>{let t=s?`${s}/${e.name}`:e.name;"dir"===e.kind?l(t):i(t)}})]}),(0,t.jsx)("div",{className:"min-w-0 flex-1 overflow-y-auto",children:n?(0,t.jsx)(Y,{source:e.source,dir:e.dir,path:n,editable:"custom"===e.source}):(0,t.jsx)("p",{className:"p-6 text-sm text-muted-foreground/60",children:"Pick a file"})})]})})}function H({skill:e,path:s}){if(!e)return(0,t.jsx)("span",{className:"truncate font-mono text-[11px] text-muted-foreground/60",children:"Pick a skill"});let l=[e.name,...s.split("/").filter(Boolean)];return(0,t.jsx)("span",{className:"flex min-w-0 items-center gap-1 font-mono text-[11px] text-muted-foreground",children:l.map((e,s)=>(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1",children:[s>0&&(0,t.jsx)(n.ChevronRight,{className:"size-3 shrink-0 opacity-50"}),(0,t.jsx)("span",{className:(0,U.cn)("truncate",s===l.length-1&&"text-foreground"),children:e})]},`${s}-${e}`))})}function V({icon:e,label:s,active:l,hasChildren:a,onClick:i}){return(0,t.jsxs)("button",{type:"button",onClick:i,className:(0,U.cn)("mx-1 flex items-center gap-1.5 rounded-md px-2 py-1 text-left text-xs outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",l?T.PICKED_ROW:"text-muted-foreground hover:bg-muted/50 hover:text-foreground"),children:[(0,t.jsx)("span",{className:"shrink-0 text-muted-foreground/70 [&>svg]:size-3",children:e}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:s}),a&&(0,t.jsx)(n.ChevronRight,{className:"size-3 shrink-0 text-muted-foreground/50"})]})}function G({source:e,dir:s,path:l,current:a,onPick:n}){let{data:d,isLoading:c,error:u}=(0,P.useServerRoute)(k.queryKey.skillNode(e,s,l));return u?(0,t.jsx)("p",{className:"p-3 font-mono text-xs text-destructive",children:u.message}):c||!d?(0,t.jsxs)("div",{className:"space-y-2 p-2",children:[(0,t.jsx)(z.Skeleton,{className:"h-5 w-full"}),(0,t.jsx)(z.Skeleton,{className:"h-5 w-4/5"})]}):"dir"!==d.kind?null:(0,t.jsxs)(t.Fragment,{children:[d.entries.map(e=>(0,t.jsx)(V,{icon:"dir"===e.kind?(0,t.jsx)(o.Folder,{}):e.name.endsWith(".md")?(0,t.jsx)(r.FileText,{}):(0,t.jsx)(i.File,{}),label:e.name,hasChildren:"dir"===e.kind,active:(l?`${l}/${e.name}`:e.name)===a,onClick:()=>n(e)},e.name)),0===d.entries.length&&(0,t.jsx)("p",{className:"p-3 text-xs text-muted-foreground/60",children:"Empty folder"})]})}function _({content:e}){let s=/^---\r?\n([\s\S]*?)\r?\n---[ \t]*\r?\n?/.exec(e),l=s?.[1].trim(),a=l&&/^description:[ \t]*(.+)$/m.exec(l)?.[1].trim(),n=s?e.slice(s[0].length):e;return(0,t.jsxs)("div",{className:"min-w-0",children:[a&&(0,t.jsx)("p",{className:"border-b border-border/60 px-5 py-3 text-[13px] leading-relaxed text-muted-foreground",children:a}),(0,t.jsx)("div",{className:"px-5 py-4 text-sm leading-relaxed",children:(0,t.jsx)(S.Markdown,{children:n})})]})}function Y({source:e,dir:s,path:l,editable:a}){let[n,i]=(0,j.useState)(null),{data:r,isLoading:o,error:d}=(0,P.useServerRoute)(k.queryKey.skillNode(e,s,l)),[c,u]=(0,O.useServerAction)(q,{okMessage:"Saved",onOk:()=>{i(null),(0,P.revalidate)(k.queryKey.skills)}});if(d)return(0,t.jsx)("p",{className:"p-4 font-mono text-xs text-destructive",children:d.message});if(o||!r)return(0,t.jsxs)("div",{className:"space-y-3 p-5",children:[(0,t.jsx)(z.Skeleton,{className:"h-5 w-2/3"}),(0,t.jsx)(z.Skeleton,{className:"h-4 w-full"}),(0,t.jsx)(z.Skeleton,{className:"h-4 w-5/6"})]});if("file"!==r.kind)return null;let m=l.split("/").pop()??"";return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"sticky top-0 z-20 flex items-center justify-between gap-2 border-b border-border/60 bg-background/90 px-5 py-2 font-mono text-[11px] text-muted-foreground backdrop-blur",children:[(0,t.jsx)("span",{className:"truncate",children:m}),(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-2",children:[(0,t.jsx)("span",{children:(0,U.formatBytes)(r.size)}),a&&null!==r.content&&null===n&&(0,t.jsxs)(y.Button,{size:"xs",variant:"ghost",className:"font-mono",onClick:()=>i(r.content??""),children:[(0,t.jsx)(p,{}),"Edit"]}),null!==n&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y.Button,{size:"xs",variant:"ghost",className:"font-mono",onClick:()=>i(null),children:"Cancel"}),(0,t.jsx)(y.Button,{size:"xs",className:"font-mono",loading:u,disabled:n===r.content,onClick:()=>c(s,l,n),children:"Save"})]})]})]}),null!==n?(0,t.jsx)(R.Textarea,{value:n,onChange:e=>i(e.target.value),spellCheck:!1,"aria-label":`${m} contents`,className:"min-h-120 resize-none rounded-none border-0 font-mono text-[13px] leading-relaxed shadow-none focus-visible:ring-0"}):null===r.content?(0,t.jsx)("p",{className:"px-5 py-4 text-sm text-muted-foreground/60",children:"Not a text file — a bot can still read it from disk."}):m.toLowerCase().endsWith(".md")?(0,t.jsx)(_,{content:r.content}):(0,t.jsx)("pre",{className:"overflow-x-auto px-5 py-4 font-mono text-[13px] leading-relaxed whitespace-pre text-foreground/90",children:r.content})]})}function Z(){return C.notify.component({className:"sm:max-w-lg",renderer:({close:e})=>(0,t.jsx)(J,{onDone:e})})}function J({onDone:e}){let[s,l]=(0,j.useState)("write"),[a,n]=(0,j.useState)(""),[i,r]=(0,j.useState)(""),[o,d]=(0,j.useState)(""),[c,u]=(0,j.useState)(null),[m,h]=(0,j.useState)(!1),f=(0,j.useRef)(null),p={errorMessage:!1,onOk:()=>{(0,P.revalidate)(k.queryKey.skills),e()}},[g,v,,S]=(0,O.useServerAction)(D,p),[C,z,,F]=(0,O.useServerAction)(B,p),A=v||z,$="write"===s?S:F,K=!A&&("write"===s?a.trim()&&i.trim()&&o.trim():null!==c),q=async()=>{var e;!K||("write"===s?g({name:a.trim(),description:i.trim(),content:o}):c&&C({fileName:c.name,base64:await (e=c,new Promise((t,s)=>{let l=new FileReader;l.onload=()=>{let e=l.result;t(e.slice(e.indexOf(",")+1))},l.onerror=()=>s(l.error),l.readAsDataURL(e)}))}))},I=e=>{let t=e?.[0]??null;t&&u(t)};return(0,t.jsxs)(T.SettingDialogContent,{title:"New skill",description:"Instructions a bot reads when a job calls for them.",footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y.Button,{variant:"ghost",onClick:e,children:"Cancel"}),(0,t.jsxs)(y.Button,{disabled:!K,loading:A,onClick:q,children:[!A&&("write"===s?(0,t.jsx)(x.Plus,{}):(0,t.jsx)(b,{})),"write"===s?"Create":"Upload"]})]}),children:[(0,t.jsxs)(M.Tabs,{value:s,onValueChange:e=>l(e),children:[(0,t.jsxs)(M.TabsList,{className:"w-full",children:[(0,t.jsx)(M.TabsTrigger,{value:"write",children:"Write"}),(0,t.jsx)(M.TabsTrigger,{value:"upload",children:"Upload"})]}),(0,t.jsxs)(M.TabsContent,{value:"write",className:"space-y-5 pt-4",children:[(0,t.jsxs)(N.Field,{children:[(0,t.jsx)(N.FieldLabel,{htmlFor:"skill-name",children:"Name"}),(0,t.jsxs)(N.FieldContent,{children:[(0,t.jsx)(w.Input,{id:"skill-name",value:a,onChange:e=>n(e.target.value),placeholder:"deploy-checklist",spellCheck:!1,autoFocus:!0}),(0,t.jsxs)("p",{className:"font-mono text-[11px] text-muted-foreground",children:[L.PATHS.skills.custom,"/",a.trim()||"…","/SKILL.md"]})]})]}),(0,t.jsxs)(N.Field,{children:[(0,t.jsx)(N.FieldLabel,{htmlFor:"skill-description",children:"Description"}),(0,t.jsx)(N.FieldContent,{children:(0,t.jsx)(w.Input,{id:"skill-description",value:i,onChange:e=>r(e.target.value),placeholder:"When to use it — this is how a bot decides to read it"})})]}),(0,t.jsxs)(N.Field,{children:[(0,t.jsx)(N.FieldLabel,{htmlFor:"skill-content",children:"Content"}),(0,t.jsx)(R.Textarea,{id:"skill-content",value:o,onChange:e=>d(e.target.value),placeholder:"Markdown. The steps, the rules, the examples.",className:"min-h-40 resize-none font-mono text-xs"})]})]}),(0,t.jsxs)(M.TabsContent,{value:"upload",className:"space-y-4 pt-4",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>f.current?.click(),onDragOver:e=>{e.preventDefault(),h(!0)},onDragLeave:()=>h(!1),onDrop:e=>{e.preventDefault(),h(!1),I(e.dataTransfer.files)},className:(0,U.cn)("flex w-full flex-col items-center gap-2 rounded-xl border border-dashed px-6 py-10 text-center outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",m?"border-foreground/60 bg-muted/60":"border-border hover:bg-muted/40"),children:[(0,t.jsx)(b,{className:"size-5 text-muted-foreground"}),c?(0,t.jsxs)("span",{className:"text-sm",children:[c.name,(0,t.jsx)("span",{className:"ml-2 font-mono text-[11px] text-muted-foreground",children:(0,U.formatBytes)(c.size)})]}):(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"Drop a file here, or click to choose"})]}),(0,t.jsx)("input",{ref:f,type:"file",accept:".md,.zip,.skill",className:"hidden",onChange:e=>I(e.target.files)}),(0,t.jsxs)("div",{className:"space-y-1 text-xs text-muted-foreground",children:[(0,t.jsx)("p",{className:"font-medium text-foreground/80",children:"File requirements"}),(0,t.jsxs)("p",{children:["A ",(0,t.jsx)("span",{className:"font-mono",children:".md"})," file needs a YAML block with the skill's name and description."]}),(0,t.jsxs)("p",{children:["A ",(0,t.jsx)("span",{className:"font-mono",children:".zip"})," or"," ",(0,t.jsx)("span",{className:"font-mono",children:".skill"})," archive needs a SKILL.md inside — the rest of its folder comes along."]})]})]})]}),$&&(0,t.jsx)("p",{className:"font-mono text-xs text-destructive",children:$})]})}e.s(["SkillsSetting",0,function(){let[e,s]=(0,j.useState)(""),{data:l,isLoading:a,error:n}=(0,P.useServerRoute)(k.queryKey.skills),i=l??[];if(a)return(0,t.jsx)(T.SettingSkeleton,{rows:4});if(n)return(0,t.jsx)(T.SettingError,{message:n.message});let r=e.trim().toLowerCase(),o=i.filter(e=>!r||`${e.name} ${e.description}`.toLowerCase().includes(r)),d=i.filter(e=>!e.disabled).length;return(0,t.jsxs)(T.SettingScreen,{footer:(0,t.jsxs)(T.SettingRailNote,{children:[i.filter(e=>"default"===e.source).length," shipped · ",i.filter(e=>"custom"===e.source).length," ","installed"]}),children:[(0,t.jsx)(T.SettingToolbar,{count:`${d} on \xb7 ${i.length-d} off`,children:(0,t.jsx)(T.SettingFilter,{value:e,onChange:s,placeholder:"Filter skills"})}),(0,t.jsx)(T.SettingGroup,{label:"Custom",hint:"yours — added here · wins a name clash",children:(0,t.jsx)(T.SettingItems,{addRow:{label:"Add skill",onClick:Z},children:o.filter(e=>"custom"===e.source).map(e=>(0,t.jsx)(W,{skill:e},`custom/${e.dir}`))})}),(0,t.jsx)(T.SettingGroup,{label:"Default",hint:"ships with the app · switch off, can't edit or delete",children:(0,t.jsx)(T.SettingItems,{children:o.filter(e=>"default"===e.source).map(e=>(0,t.jsx)(W,{skill:e},`default/${e.dir}`))})}),d>L.PROMPT_CROWDED.skills&&(0,t.jsxs)(T.SettingNote,{children:[d," skills are on. Each is a line in every prompt a bot reads, and one more to look past when it picks."]})]})}],833959)},437750,e=>{"use strict";var t=e.i(456420);let s={name:"app-window",size:24,node:[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]};s.node;let l=(0,t.default)(s);e.s(["AppWindow",0,l],437750)},726067,e=>{"use strict";var t=e.i(456420);let s={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};s.node;let l=(0,t.default)(s);e.s(["Folder",0,l],726067)},759659,e=>{"use strict";var t=e.i(456420);let s={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};s.node;let l=(0,t.default)(s);e.s(["Trash2",0,l],759659)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,107941,e=>{"use strict";var t=e.i(843476),n=e.i(24071),i=e.i(867927),s=e.i(482022),r=e.i(829600),a=e.i(456420);let o={name:"file-code-corner",size:24,node:[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],aliases:["file-code-2"]};o.node;let l=(0,a.default)(o);var d=e.i(905015),c=e.i(226091),m=e.i(726067),u=e.i(569644),x=e.i(815170),h=e.i(51921);let f={name:"sheet",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]]};f.node;let p=(0,a.default)(f);var g=e.i(759659);let v={name:"video",size:24,node:[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]};v.node;let y=(0,a.default)(v);var k=e.i(271645),j=e.i(798120),b=e.i(167881),w=e.i(917162),N=e.i(41533),S=e.i(895836),F=e.i(621285),A=e.i(802828),C=e.i(95187);let z=(0,C.createServerReference)("7fe109e3e5ec8257c6a858e06a4bd2a04a9e4dd0d3",C.callServer,void 0,C.findSourceMapURL,"emptyScratchAction");var R=e.i(172711),E=e.i(245629),$=e.i(609856),P=e.i(283653),M=e.i(647163);let W={markdown:c.FileText,csv:p,json:d.FileJson,text:c.FileText,frame:l,image:x.Image,audio:h.Music,video:y,none:r.File};function O({label:e,rows:n,children:i}){return 0===n.length?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"px-3 pt-3 pb-1 font-mono text-[10px] text-muted-foreground/60",children:e}),i]})}function K({entry:e,active:n,onPick:s}){let r="dir"===e.kind?m.Folder:W[e.view];return(0,t.jsxs)("button",{type:"button",onClick:s,title:"file"===e.kind?`${e.name} \xb7 ${(0,E.shortAgo)(e.at)}`:e.name,className:(0,M.cn)("mx-2 flex items-center gap-2 rounded-md px-2 py-1.5 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",n?(0,M.cn)(S.PICKED_ROW,"font-medium"):"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[(0,t.jsx)(r,{className:"size-3.5 shrink-0 opacity-70"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.name}),"file"===e.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/75",children:(0,M.formatBytes)(e.bytes)}),(0,t.jsx)("span",{className:"w-3.5 shrink-0"})]}):(0,t.jsx)(i.ChevronRight,{className:"size-3.5 shrink-0 text-muted-foreground/50"})]})}function T({empty:e}){return(0,t.jsx)("div",{className:"space-y-4 p-8",children:e?(0,t.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:["Nothing here yet. What a bot writes during a call lands in"," ",(0,t.jsx)("span",{className:"font-mono text-[13px] text-foreground",children:"artifacts/"})," ","— a page, a table, a picture — and shows up here to open."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground",children:"Pick a file on the left."}),(0,t.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:"Only what the app can open is listed — a page, a table, a picture, a note. Installed packages and tool leftovers are left out, and no folder is measured, so a folder opens as fast as it lists. Reveal folder, at the foot, opens everything else."})]})})}function B({file:e,onGone:n}){let i=e.path,[r]=(0,$.useServerAction)(R.openFileAction),[a,o]=(0,$.useServerAction)(A.deleteWorkspaceFileAction,{okMessage:"File deleted",onOk:()=>{(0,P.revalidate)(j.queryKey.workspace),n()}}),l=async()=>{await w.notify.confirm({title:`Delete ${i.split("/").pop()}?`,description:"It is deleted from disk for good.",okText:"Delete",destructive:!0})&&a(i)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-b border-border/60 px-6 py-2",children:[(0,t.jsx)(L,{path:i}),(0,t.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/70",children:[(0,M.formatBytes)(e.bytes)," · ",(0,E.shortAgo)(e.at)]}),(0,t.jsx)("a",{href:j.queryKey.fileView(i),target:"_blank",rel:"noreferrer","aria-label":"Open in a new tab",className:"grid size-7 shrink-0 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(s.ExternalLink,{className:"size-4"})}),(0,t.jsx)(b.Button,{size:"icon-sm",variant:"ghost","aria-label":"Reveal in the file manager",className:"text-muted-foreground",onClick:()=>r(i),children:(0,t.jsx)(u.FolderOpen,{})}),(0,t.jsx)(b.Button,{size:"icon-sm",variant:"ghost","aria-label":"Delete",loading:o,className:"text-muted-foreground",onClick:l,children:(0,t.jsx)(g.Trash2,{})})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:(0,t.jsx)(F.FilePreview,{path:i,bytes:e.bytes})})]})}function L({path:e}){let n=["workspace",...e.split("/").filter(Boolean)];return(0,t.jsx)("span",{className:"flex min-w-0 flex-1 items-center gap-1 font-mono text-[11px] text-muted-foreground",children:n.map((e,s)=>(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1",children:[s>0&&(0,t.jsx)(i.ChevronRight,{className:"size-3 shrink-0 opacity-50"}),(0,t.jsx)("span",{className:(0,M.cn)("truncate",s===n.length-1&&"text-foreground"),children:e})]},`${s}-${e}`))})}e.s(["WorkspaceSetting",0,function(){let[e,i]=(0,k.useState)(""),[s,r]=(0,k.useState)(N.WORKSPACE_VIEW.rows),[a,o]=(0,k.useState)(null),[l,d]=(0,k.useState)(""),{data:c,isLoading:m,error:x}=(0,P.useServerRoute)(j.queryKey.workspaceFolder(e,s),{keepPreviousData:!0}),h=e=>{i(e),r(N.WORKSPACE_VIEW.rows)},[f,p]=(0,$.useServerAction)(z,{okMessage:"Scratch emptied",onOk:()=>(0,P.revalidate)(j.queryKey.workspace)}),[g]=(0,$.useServerAction)(R.openFileAction),v=async()=>{await w.notify.confirm({title:"Empty scratch?",description:"Everything under scratch/ is deleted for good. artifacts/ and projects/ are untouched.",okText:"Empty",destructive:!0})&&f()};if(m)return(0,t.jsx)(S.SettingPanesSkeleton,{});if(x)return(0,t.jsx)(S.SettingError,{message:x.message});let y=c?.entries??[],F=c?.total??0,A=l.trim().toLowerCase(),C=A?y.filter(e=>e.name.toLowerCase().includes(A)):y,E=C.filter(e=>"dir"===e.kind),M=C.filter(e=>"file"===e.kind),W=""!==e||y.some(e=>"dir"===e.kind&&e.name===N.PATHS.scratch),L=y.find(e=>"file"===e.kind&&e.path===a?.path)??a;return(0,t.jsx)(S.SettingPanes,{footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S.SettingRailNote,{children:(0,t.jsxs)("span",{className:"font-mono",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:`.ai-workspace${e?`/${e}`:""}`}),` \xb7 ${function(e,t){let n=e.filter(e=>"dir"===e.kind).length,i=e.length-n,s=[n&&`${n} ${1===n?"folder":"folders"}`,i&&`${i} ${1===i?"file":"files"}`].filter(Boolean);if(!s.length)return"empty";let r=s.join(" · ");return t>e.length?`${r} of ${t.toLocaleString("en")}`:r}(y,F)}`]})}),(0,t.jsxs)(b.Button,{variant:"outline",size:"sm",onClick:()=>g(e||"."),children:[(0,t.jsx)(u.FolderOpen,{}),"Reveal folder"]}),W&&(0,t.jsx)(b.Button,{variant:"outline",size:"sm",loading:p,onClick:v,className:"text-destructive hover:text-destructive",children:"Empty scratch"})]}),left:(0,t.jsxs)("div",{className:"flex flex-col py-2",children:[(0,t.jsx)(S.SettingFilter,{value:l,onChange:d,placeholder:"Filter this folder",className:"mx-2 mb-1.5 w-auto"}),e&&(0,t.jsxs)("button",{type:"button",onClick:()=>h(e.split("/").slice(0,-1).join("/")),className:"mx-2 mb-1 flex items-center gap-1 rounded-md px-2 py-1 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)(n.ChevronLeft,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.split("/").slice(0,-1).pop()??"workspace"})]}),0===C.length?(0,t.jsx)("p",{className:"px-4 py-3 text-xs text-muted-foreground/60",children:A?"Nothing matches":"Empty folder"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(O,{label:"folders",rows:E,children:E.map(e=>(0,t.jsx)(K,{entry:e,onPick:()=>h(e.path)},e.path))}),(0,t.jsx)(O,{label:"files",rows:M,children:M.map(e=>(0,t.jsx)(K,{entry:e,active:e.path===a?.path,onPick:()=>"file"===e.kind&&o(e)},e.path))})]}),F>y.length&&(0,t.jsx)("button",{type:"button",onClick:()=>r(s+N.WORKSPACE_VIEW.rows),className:"mx-2 mt-2 rounded-md px-2 py-1.5 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:`Show ${Math.min(N.WORKSPACE_VIEW.rows,F-y.length)} more of ${F.toLocaleString("en")}`})]}),right:L?.kind==="file"?(0,t.jsx)(B,{file:L,onGone:()=>o(null)},L.path):(0,t.jsx)(T,{empty:!e&&0===y.length})})}],107941)},802828,e=>{"use strict";var t=e.i(95187);let n=(0,t.createServerReference)("7fd3a8b14d131f17a3ee8e56630e3f2ec5fed81cbb",t.callServer,void 0,t.findSourceMapURL,"deleteWorkspaceFileAction");e.s(["deleteWorkspaceFileAction",0,n])},726067,e=>{"use strict";var t=e.i(456420);let n={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};n.node;let i=(0,t.default)(n);e.s(["Folder",0,i],726067)},759659,e=>{"use strict";var t=e.i(456420);let n={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};n.node;let i=(0,t.default)(n);e.s(["Trash2",0,i],759659)}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,638475,e=>{"use strict";var t=e.i(843476),r=e.i(798120),i=e.i(319036),s=e.i(609856),n=e.i(283653),c=e.i(95187);let a=(0,c.createServerReference)("7f3dc1c7787c59bd2c3c24559f88e7e41638c1b78d",c.callServer,void 0,c.findSourceMapURL,"setKeepWorkingOnAction"),o="Work while the app is closed";e.s(["KeepWorkingSwitch",0,function(){let{data:e,mutate:c}=(0,n.useServerRoute)(r.queryKey.botKeepWorking),[l]=(0,s.useServerAction)(a,{onOk:()=>(0,n.revalidate)(r.queryKey.botKeepWorking)});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"shrink-0 text-xs text-muted-foreground",title:"Off, closing the last tab stops running jobs and holds routines until one is open again. On, they run until the server stops.",children:o}),(0,t.jsx)(i.Switch,{checked:e??!1,disabled:void 0===e,onCheckedChange:e=>{c(e,!1),l(e)},"aria-label":o})]})}],638475)},472625,e=>{"use strict";var t=e.i(95187);let r=(0,t.createServerReference)("7fecf7a8f59fb3b540c294fcbc5574664cfd32cc22",t.callServer,void 0,t.findSourceMapURL,"deleteWorkspaceFileAction");e.s(["deleteWorkspaceFileAction",0,r])},333999,e=>{"use strict";var t=e.i(271645),r=e.i(647163);e.s(["useObjectState",0,e=>{let[i,s]=(0,t.useState)(e);return[i,(0,t.useMemo)(()=>{let e=e=>{s(t=>{let i=(0,r.isFunction)(e)?e(t):e;return Object.keys(i).some(e=>!Object.is(t[e],i[e]))?{...t,...i}:t})},t=new Map;return new Proxy(e,{get(i,s,n){if("symbol"==typeof s)return Reflect.get(i,s,n);let c=t.get(s);return c||(c=t=>{e(e=>({[s]:(0,r.isFunction)(t)?t(e[s]):t}))},t.set(s,c)),c}})},[])]}])},759659,e=>{"use strict";var t=e.i(456420);let r={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};r.node;let i=(0,t.default)(r);e.s(["Trash2",0,i],759659)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,638475,e=>{"use strict";var t=e.i(843476),r=e.i(798120),i=e.i(319036),s=e.i(609856),a=e.i(283653),n=e.i(95187);let o=(0,n.createServerReference)("7fa00e3079a1fdce34072f8f4950ff89062514435f",n.callServer,void 0,n.findSourceMapURL,"setKeepWorkingOnAction"),c="Work while the app is closed";e.s(["KeepWorkingSwitch",0,function(){let{data:e,mutate:n}=(0,a.useServerRoute)(r.queryKey.botKeepWorking),[l]=(0,s.useServerAction)(o,{onOk:()=>(0,a.revalidate)(r.queryKey.botKeepWorking)});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"shrink-0 text-xs text-muted-foreground",title:"Off, closing the last tab stops running jobs and holds routines until one is open again. On, they run until the server stops.",children:c}),(0,t.jsx)(i.Switch,{checked:e??!1,disabled:void 0===e,onCheckedChange:e=>{n(e,!1),l(e)},"aria-label":c})]})}],638475)},802828,e=>{"use strict";var t=e.i(95187);let r=(0,t.createServerReference)("7fd3a8b14d131f17a3ee8e56630e3f2ec5fed81cbb",t.callServer,void 0,t.findSourceMapURL,"deleteWorkspaceFileAction");e.s(["deleteWorkspaceFileAction",0,r])},333999,e=>{"use strict";var t=e.i(271645),r=e.i(647163);e.s(["useObjectState",0,e=>{let[i,s]=(0,t.useState)(e);return[i,(0,t.useMemo)(()=>{let e=e=>{s(t=>{let i=(0,r.isFunction)(e)?e(t):e;return Object.keys(i).some(e=>!Object.is(t[e],i[e]))?{...t,...i}:t})},t=new Map;return new Proxy(e,{get(i,s,a){if("symbol"==typeof s)return Reflect.get(i,s,a);let n=t.get(s);return n||(n=t=>{e(e=>({[s]:(0,r.isFunction)(t)?t(e[s]):t}))},t.set(s,n)),n}})},[])]}])},759659,e=>{"use strict";var t=e.i(456420);let r={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};r.node;let i=(0,t.default)(r);e.s(["Trash2",0,i],759659)}]);