nodal-agents 0.9.2 → 0.9.3

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 (298) hide show
  1. package/cli.js +629 -426
  2. package/docs-index.json +21 -14
  3. package/migrations/0123_chat_messages_stopped.sql +10 -0
  4. package/migrations/0124_chat_messages_cut_reason.sql +12 -0
  5. package/migrations/0125_shell_checklist.sql +31 -0
  6. package/migrations/0126_run_budget.sql +57 -0
  7. package/migrations/0127_agent_budget.sql +86 -0
  8. package/migrations/0128_shell_policy_retired_kinds.sql +52 -0
  9. package/migrations/meta/_journal.json +42 -0
  10. package/package.json +1 -1
  11. package/runner.js +4373 -2761
  12. package/web/.next/BUILD_ID +1 -1
  13. package/web/.next/app-path-routes-manifest.json +6 -2
  14. package/web/.next/build-manifest.json +2 -2
  15. package/web/.next/prerender-manifest.json +5 -5
  16. package/web/.next/routes-manifest.json +28 -0
  17. package/web/.next/server/app/(dashboard)/agents/[id]/channels/page.js +1 -1
  18. package/web/.next/server/app/(dashboard)/agents/[id]/channels/page_client-reference-manifest.js +1 -1
  19. package/web/.next/server/app/(dashboard)/agents/[id]/edit/page.js +4 -4
  20. package/web/.next/server/app/(dashboard)/agents/[id]/edit/page_client-reference-manifest.js +1 -1
  21. package/web/.next/server/app/(dashboard)/agents/[id]/telegram/page.js +1 -1
  22. package/web/.next/server/app/(dashboard)/agents/[id]/telegram/page_client-reference-manifest.js +1 -1
  23. package/web/.next/server/app/(dashboard)/agents/page.js +1 -1
  24. package/web/.next/server/app/(dashboard)/agents/page_client-reference-manifest.js +1 -1
  25. package/web/.next/server/app/(dashboard)/approvals/page.js +1 -1
  26. package/web/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +1 -1
  27. package/web/.next/server/app/(dashboard)/automations/[id]/page.js +1 -1
  28. package/web/.next/server/app/(dashboard)/automations/[id]/page_client-reference-manifest.js +1 -1
  29. package/web/.next/server/app/(dashboard)/automations/page.js +1 -1
  30. package/web/.next/server/app/(dashboard)/automations/page_client-reference-manifest.js +1 -1
  31. package/web/.next/server/app/(dashboard)/chat/[id]/page.js +1 -1
  32. package/web/.next/server/app/(dashboard)/chat/[id]/page_client-reference-manifest.js +1 -1
  33. package/web/.next/server/app/(dashboard)/chat/page.js +1 -1
  34. package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  35. package/web/.next/server/app/(dashboard)/chat/runs/[id]/page.js +1 -0
  36. package/web/.next/server/app/(dashboard)/chat/runs/[id]/page_client-reference-manifest.js +1 -0
  37. package/web/.next/server/app/(dashboard)/code/[id]/page.js +1 -1
  38. package/web/.next/server/app/(dashboard)/code/[id]/page_client-reference-manifest.js +1 -1
  39. package/web/.next/server/app/(dashboard)/code/page.js +1 -1
  40. package/web/.next/server/app/(dashboard)/code/page_client-reference-manifest.js +1 -1
  41. package/web/.next/server/app/(dashboard)/connectors/page.js +1 -1
  42. package/web/.next/server/app/(dashboard)/connectors/page_client-reference-manifest.js +1 -1
  43. package/web/.next/server/app/(dashboard)/credentials/page.js +1 -1
  44. package/web/.next/server/app/(dashboard)/credentials/page_client-reference-manifest.js +1 -1
  45. package/web/.next/server/app/(dashboard)/dashboard/page.js +1 -1
  46. package/web/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  47. package/web/.next/server/app/(dashboard)/jobs/[id]/page.js +1 -1
  48. package/web/.next/server/app/(dashboard)/jobs/[id]/page_client-reference-manifest.js +1 -1
  49. package/web/.next/server/app/(dashboard)/jobs/page.js +1 -1
  50. package/web/.next/server/app/(dashboard)/jobs/page_client-reference-manifest.js +1 -1
  51. package/web/.next/server/app/(dashboard)/learned-skills/page.js +1 -1
  52. package/web/.next/server/app/(dashboard)/learned-skills/page_client-reference-manifest.js +1 -1
  53. package/web/.next/server/app/(dashboard)/llm-providers/page.js +1 -1
  54. package/web/.next/server/app/(dashboard)/llm-providers/page_client-reference-manifest.js +1 -1
  55. package/web/.next/server/app/(dashboard)/logs/page.js +1 -1
  56. package/web/.next/server/app/(dashboard)/logs/page_client-reference-manifest.js +1 -1
  57. package/web/.next/server/app/(dashboard)/mcp/page.js +1 -1
  58. package/web/.next/server/app/(dashboard)/mcp/page_client-reference-manifest.js +1 -1
  59. package/web/.next/server/app/(dashboard)/memories/page.js +1 -1
  60. package/web/.next/server/app/(dashboard)/memories/page_client-reference-manifest.js +1 -1
  61. package/web/.next/server/app/(dashboard)/page.js +1 -1
  62. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  63. package/web/.next/server/app/(dashboard)/scheduled/[id]/page.js +1 -1
  64. package/web/.next/server/app/(dashboard)/scheduled/[id]/page_client-reference-manifest.js +1 -1
  65. package/web/.next/server/app/(dashboard)/scheduled/page.js +1 -1
  66. package/web/.next/server/app/(dashboard)/scheduled/page_client-reference-manifest.js +1 -1
  67. package/web/.next/server/app/(dashboard)/settings/page.js +1 -1
  68. package/web/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
  69. package/web/.next/server/app/(dashboard)/settings/root-context/page.js +1 -1
  70. package/web/.next/server/app/(dashboard)/settings/root-context/page_client-reference-manifest.js +1 -1
  71. package/web/.next/server/app/(dashboard)/skills/[id]/edit/page.js +1 -1
  72. package/web/.next/server/app/(dashboard)/skills/[id]/edit/page_client-reference-manifest.js +1 -1
  73. package/web/.next/server/app/(dashboard)/skills/new/page.js +1 -1
  74. package/web/.next/server/app/(dashboard)/skills/new/page_client-reference-manifest.js +1 -1
  75. package/web/.next/server/app/(dashboard)/skills/page.js +1 -1
  76. package/web/.next/server/app/(dashboard)/skills/page_client-reference-manifest.js +1 -1
  77. package/web/.next/server/app/(dashboard)/spaces/[id]/files/page.js +1 -1
  78. package/web/.next/server/app/(dashboard)/spaces/[id]/files/page_client-reference-manifest.js +1 -1
  79. package/web/.next/server/app/(dashboard)/spaces/[id]/page.js +1 -1
  80. package/web/.next/server/app/(dashboard)/spaces/[id]/page_client-reference-manifest.js +1 -1
  81. package/web/.next/server/app/(dashboard)/spaces/page.js +1 -1
  82. package/web/.next/server/app/(dashboard)/spaces/page_client-reference-manifest.js +1 -1
  83. package/web/.next/server/app/_global-error/page.js +2 -2
  84. package/web/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  85. package/web/.next/server/app/_global-error.html +1 -1
  86. package/web/.next/server/app/_global-error.rsc +2 -2
  87. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +2 -2
  88. package/web/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +2 -2
  89. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  90. package/web/.next/server/app/_not-found/page.js +1 -1
  91. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  92. package/web/.next/server/app/_not-found.html +1 -1
  93. package/web/.next/server/app/_not-found.rsc +3 -3
  94. package/web/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
  95. package/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
  96. package/web/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  97. package/web/.next/server/app/api/auth/[...all]/route.js +1 -1
  98. package/web/.next/server/app/api/chat/live/route.js +4 -0
  99. package/web/.next/server/app/api/chat/live/route_client-reference-manifest.js +1 -0
  100. package/web/.next/server/app/api/chat/stop/route.js +1 -0
  101. package/web/.next/server/app/api/chat/stop/route_client-reference-manifest.js +1 -0
  102. package/web/.next/server/app/api/chat/stream/route.js +3 -3
  103. package/web/.next/server/app/api/health/route.js +1 -1
  104. package/web/.next/server/app/api/oauth/[provider]/callback/route.js +1 -1
  105. package/web/.next/server/app/api/oauth/[provider]/start/route.js +1 -1
  106. package/web/.next/server/app/api/runs/[jobId]/media/route.js +1 -0
  107. package/web/.next/server/app/api/runs/[jobId]/media/route_client-reference-manifest.js +1 -0
  108. package/web/.next/server/app/auth/callback/route.js +1 -1
  109. package/web/.next/server/app/login/page.js +1 -1
  110. package/web/.next/server/app/login/page_client-reference-manifest.js +1 -1
  111. package/web/.next/server/app/onboarding/page.js +2 -2
  112. package/web/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  113. package/web/.next/server/app-paths-manifest.json +6 -2
  114. package/web/.next/server/chunks/1326.js +136 -0
  115. package/web/.next/server/chunks/1406.js +1773 -0
  116. package/web/.next/server/chunks/1615.js +1 -0
  117. package/web/.next/server/chunks/1873.js +1 -0
  118. package/web/.next/server/chunks/2443.js +3 -0
  119. package/web/.next/server/chunks/3483.js +1 -0
  120. package/web/.next/server/chunks/3675.js +1 -1
  121. package/web/.next/server/chunks/3920.js +1 -0
  122. package/web/.next/server/chunks/42.js +3 -3
  123. package/web/.next/server/chunks/4546.js +1 -0
  124. package/web/.next/server/chunks/494.js +1 -1
  125. package/web/.next/server/chunks/5648.js +1 -0
  126. package/web/.next/server/chunks/5804.js +1 -1
  127. package/web/.next/server/chunks/592.js +1 -1
  128. package/web/.next/server/chunks/5976.js +1 -0
  129. package/web/.next/server/chunks/6915.js +1 -0
  130. package/web/.next/server/chunks/692.js +15 -15
  131. package/web/.next/server/chunks/7465.js +1 -0
  132. package/web/.next/server/chunks/7651.js +812 -0
  133. package/web/.next/server/chunks/7663.js +22 -22
  134. package/web/.next/server/chunks/7876.js +1 -0
  135. package/web/.next/server/chunks/7915.js +1 -1
  136. package/web/.next/server/chunks/796.js +1 -1
  137. package/web/.next/server/chunks/8030.js +1 -0
  138. package/web/.next/server/chunks/8104.js +1 -0
  139. package/web/.next/server/chunks/8697.js +1 -1
  140. package/web/.next/server/chunks/8794.js +1 -0
  141. package/web/.next/server/chunks/8830.js +1 -0
  142. package/web/.next/server/chunks/9009.js +1 -0
  143. package/web/.next/server/chunks/{2096.js → 9066.js} +1 -1
  144. package/web/.next/server/chunks/965.js +1 -1
  145. package/web/.next/server/chunks/{6213.js → 9844.js} +2 -2
  146. package/web/.next/server/chunks/9882.js +36 -0
  147. package/web/.next/server/middleware-build-manifest.js +1 -1
  148. package/web/.next/server/middleware.js +27 -27
  149. package/web/.next/server/pages/404.html +1 -1
  150. package/web/.next/server/pages/500.html +1 -1
  151. package/web/.next/server/server-reference-manifest.js +1 -1
  152. package/web/.next/server/server-reference-manifest.json +1 -1
  153. package/web/.next/static/chunks/{1091-6d0af9f18ddf99f6.js → 1091-9485133bd943918f.js} +1 -1
  154. package/web/.next/static/chunks/{1332-c8bed6b750598652.js → 1409-fe80b5952e1f40cb.js} +1 -1
  155. package/web/.next/static/chunks/1789-2566ac18a25fb387.js +1 -0
  156. package/web/.next/static/chunks/3844-36a00411beee6253.js +1 -0
  157. package/web/.next/static/chunks/4020-ec67a80b0e0b651e.js +1 -0
  158. package/web/.next/static/chunks/4666-5fd532303d09a950.js +1 -0
  159. package/web/.next/static/chunks/4771-47261da3c38b4746.js +1 -0
  160. package/web/.next/static/chunks/494-a34a6a0b36862877.js +1 -0
  161. package/web/.next/static/chunks/5034-9aff8cbeb288ac20.js +1 -0
  162. package/web/.next/static/chunks/5216-528f63f54d56b47a.js +1 -0
  163. package/web/.next/static/chunks/5575-444e6f49e2d2a328.js +1 -0
  164. package/web/.next/static/chunks/560-59e02268ee5fe11e.js +1 -0
  165. package/web/.next/static/chunks/5954-7c92f3e7812dce11.js +1 -0
  166. package/web/.next/static/chunks/{5925-76337eacde3c3bc8.js → 6724-8a6d2dc777961105.js} +11 -11
  167. package/web/.next/static/chunks/6861-5edebd867f40e3a6.js +3 -0
  168. package/web/.next/static/chunks/764-a883257e15345ae8.js +1 -0
  169. package/web/.next/static/chunks/825-c876657b507df9d8.js +1 -0
  170. package/web/.next/static/chunks/9052-33a3c725444cb518.js +1 -0
  171. package/web/.next/static/chunks/9287-41590f18e747f14c.js +1 -0
  172. package/web/.next/static/chunks/9484-f972307c1c78a8e8.js +1 -0
  173. package/web/.next/static/chunks/9643-03e18abc622d33f5.js +1 -0
  174. package/web/.next/static/chunks/app/(dashboard)/agents/[id]/channels/page-7b6e8b91210cb2ee.js +1 -0
  175. package/web/.next/static/chunks/app/(dashboard)/agents/[id]/edit/page-16e26ece80055943.js +6 -0
  176. package/web/.next/static/chunks/app/(dashboard)/agents/[id]/telegram/page-7b6e8b91210cb2ee.js +1 -0
  177. package/web/.next/static/chunks/app/(dashboard)/agents/page-ca54871a8009f0aa.js +1 -0
  178. package/web/.next/static/chunks/app/(dashboard)/approvals/page-a5d31137ad6c86c0.js +1 -0
  179. package/web/.next/static/chunks/app/(dashboard)/automations/[id]/{page-9ef1d76121b6030d.js → page-2ea773c99f54f674.js} +1 -1
  180. package/web/.next/static/chunks/app/(dashboard)/automations/page-095be3edd6287d73.js +1 -0
  181. package/web/.next/static/chunks/app/(dashboard)/chat/[id]/page-00acae0653281839.js +1 -0
  182. package/web/.next/static/chunks/app/(dashboard)/chat/page-056975f6c9d5625b.js +1 -0
  183. package/web/.next/static/chunks/app/(dashboard)/chat/runs/[id]/page-899772b15670d3de.js +1 -0
  184. package/web/.next/static/chunks/app/(dashboard)/code/[id]/page-83535784a61e8e36.js +1 -0
  185. package/web/.next/static/chunks/app/(dashboard)/code/page-7b6e8b91210cb2ee.js +1 -0
  186. package/web/.next/static/chunks/app/(dashboard)/connectors/page-af5150e89038a92b.js +1 -0
  187. package/web/.next/static/chunks/app/(dashboard)/dashboard/{page-7473d1190864cbd4.js → page-241109c80363cab1.js} +1 -1
  188. package/web/.next/static/chunks/app/(dashboard)/jobs/[id]/page-899772b15670d3de.js +1 -0
  189. package/web/.next/static/chunks/app/(dashboard)/jobs/page-7b6e8b91210cb2ee.js +1 -0
  190. package/web/.next/static/chunks/app/(dashboard)/layout-2b492fe5d87e7a8c.js +1 -0
  191. package/web/.next/static/chunks/app/(dashboard)/learned-skills/page-d3d0521187a02e31.js +1 -0
  192. package/web/.next/static/chunks/app/(dashboard)/llm-providers/page-1b5aef6848173842.js +1 -0
  193. package/web/.next/static/chunks/app/(dashboard)/logs/page-fd939bac9a74004e.js +1 -0
  194. package/web/.next/static/chunks/app/(dashboard)/mcp/page-11decdc1d91b079d.js +1 -0
  195. package/web/.next/static/chunks/app/(dashboard)/memories/{page-593161bc7c2a25d7.js → page-2dda98de596fe53c.js} +1 -1
  196. package/web/.next/static/chunks/app/(dashboard)/page-40b43271735f5935.js +1 -0
  197. package/web/.next/static/chunks/app/(dashboard)/scheduled/[id]/page-899772b15670d3de.js +1 -0
  198. package/web/.next/static/chunks/app/(dashboard)/scheduled/page-7b6e8b91210cb2ee.js +1 -0
  199. package/web/.next/static/chunks/app/(dashboard)/settings/page-420c62b3fbec2901.js +1 -0
  200. package/web/.next/static/chunks/app/(dashboard)/settings/root-context/page-7840e0f90ad51fd3.js +1 -0
  201. package/web/.next/static/chunks/app/(dashboard)/skills/page-497d3e268b76b0eb.js +1 -0
  202. package/web/.next/static/chunks/app/(dashboard)/spaces/[id]/files/page-d13f877dfd34c6c0.js +1 -0
  203. package/web/.next/static/chunks/app/(dashboard)/spaces/[id]/page-bf466093877ab1c5.js +1 -0
  204. package/web/.next/static/chunks/app/(dashboard)/spaces/page-1d264307964cfdfe.js +1 -0
  205. package/web/.next/static/chunks/app/_global-error/page-7b6e8b91210cb2ee.js +1 -0
  206. package/web/.next/static/chunks/app/_not-found/page-7b6e8b91210cb2ee.js +1 -0
  207. package/web/.next/static/chunks/app/api/auth/[...all]/route-7b6e8b91210cb2ee.js +1 -0
  208. package/web/.next/static/chunks/app/api/chat/live/route-7b6e8b91210cb2ee.js +1 -0
  209. package/web/.next/static/chunks/app/api/chat/stop/route-7b6e8b91210cb2ee.js +1 -0
  210. package/web/.next/static/chunks/app/api/chat/stream/route-7b6e8b91210cb2ee.js +1 -0
  211. package/web/.next/static/chunks/app/api/health/route-7b6e8b91210cb2ee.js +1 -0
  212. package/web/.next/static/chunks/app/api/oauth/[provider]/callback/route-7b6e8b91210cb2ee.js +1 -0
  213. package/web/.next/static/chunks/app/api/oauth/[provider]/start/route-7b6e8b91210cb2ee.js +1 -0
  214. package/web/.next/static/chunks/app/api/runs/[jobId]/media/route-7b6e8b91210cb2ee.js +1 -0
  215. package/web/.next/static/chunks/app/auth/callback/route-7b6e8b91210cb2ee.js +1 -0
  216. package/web/.next/static/chunks/app/login/{page-5357f030e5018563.js → page-d260a3be0b6857ef.js} +1 -1
  217. package/web/.next/static/chunks/app/onboarding/{page-9b6955cdd3033584.js → page-07908ee9b2b6d6b5.js} +2 -2
  218. package/web/.next/static/chunks/next/dist/client/components/builtin/app-error-7b6e8b91210cb2ee.js +1 -0
  219. package/web/.next/static/chunks/next/dist/client/components/builtin/forbidden-7b6e8b91210cb2ee.js +1 -0
  220. package/web/.next/static/chunks/next/dist/client/components/builtin/unauthorized-7b6e8b91210cb2ee.js +1 -0
  221. package/web/.next/static/css/55c009e1dd52d5a7.css +1 -0
  222. package/web/.next/static/uWxfL1NbU-xFtwNtkF4Wb/_buildManifest.js +1 -0
  223. package/web/.next/server/chunks/1960.js +0 -1
  224. package/web/.next/server/chunks/292.js +0 -1
  225. package/web/.next/server/chunks/3592.js +0 -1
  226. package/web/.next/server/chunks/409.js +0 -1
  227. package/web/.next/server/chunks/4357.js +0 -1
  228. package/web/.next/server/chunks/5547.js +0 -1
  229. package/web/.next/server/chunks/570.js +0 -1
  230. package/web/.next/server/chunks/5974.js +0 -1
  231. package/web/.next/server/chunks/6106.js +0 -1
  232. package/web/.next/server/chunks/7134.js +0 -947
  233. package/web/.next/server/chunks/7431.js +0 -1
  234. package/web/.next/server/chunks/7533.js +0 -1
  235. package/web/.next/server/chunks/7709.js +0 -1
  236. package/web/.next/server/chunks/8022.js +0 -1
  237. package/web/.next/server/chunks/8536.js +0 -3
  238. package/web/.next/server/chunks/8974.js +0 -1808
  239. package/web/.next/server/chunks/9200.js +0 -1
  240. package/web/.next/static/chunks/1054-08930540869affcc.js +0 -1
  241. package/web/.next/static/chunks/1577-09f4d5183fb172de.js +0 -1
  242. package/web/.next/static/chunks/1789-b436bca079b82fcc.js +0 -1
  243. package/web/.next/static/chunks/296-1b50dd61ac3198f4.js +0 -1
  244. package/web/.next/static/chunks/3159-f25525771781f5aa.js +0 -1
  245. package/web/.next/static/chunks/3775-3a5a749d63c785a1.js +0 -3
  246. package/web/.next/static/chunks/390-d6132d3a117487df.js +0 -1
  247. package/web/.next/static/chunks/4020-9778230f3cc2164a.js +0 -1
  248. package/web/.next/static/chunks/4771-a0aadf337f224b72.js +0 -1
  249. package/web/.next/static/chunks/494-ed02d105fa0ac132.js +0 -1
  250. package/web/.next/static/chunks/5034-fc9997ff33a114aa.js +0 -1
  251. package/web/.next/static/chunks/7879-67ac5a52d74c20d2.js +0 -1
  252. package/web/.next/static/chunks/7920-40dc6aa63e653d6b.js +0 -1
  253. package/web/.next/static/chunks/870-b7151716d04a13c3.js +0 -1
  254. package/web/.next/static/chunks/8794-2a616d1f9c210117.js +0 -1
  255. package/web/.next/static/chunks/8861-a108ed6178a56b21.js +0 -1
  256. package/web/.next/static/chunks/9643-e9c8a744dd98813d.js +0 -1
  257. package/web/.next/static/chunks/9952-992cabfb077d287c.js +0 -1
  258. package/web/.next/static/chunks/app/(dashboard)/agents/[id]/channels/page-523c5d229e8520bf.js +0 -1
  259. package/web/.next/static/chunks/app/(dashboard)/agents/[id]/edit/page-5ca9c1eef4d0f837.js +0 -6
  260. package/web/.next/static/chunks/app/(dashboard)/agents/[id]/telegram/page-523c5d229e8520bf.js +0 -1
  261. package/web/.next/static/chunks/app/(dashboard)/agents/page-5ffa4a2468c1f95a.js +0 -1
  262. package/web/.next/static/chunks/app/(dashboard)/approvals/page-cd46d5e439a20d3e.js +0 -1
  263. package/web/.next/static/chunks/app/(dashboard)/automations/page-46eeaa40df9e58f8.js +0 -1
  264. package/web/.next/static/chunks/app/(dashboard)/chat/[id]/page-25e095bf0cdd1c40.js +0 -1
  265. package/web/.next/static/chunks/app/(dashboard)/chat/page-e2df1a328e18da7a.js +0 -1
  266. package/web/.next/static/chunks/app/(dashboard)/code/[id]/page-f5f7624cfbb32ee2.js +0 -1
  267. package/web/.next/static/chunks/app/(dashboard)/code/page-523c5d229e8520bf.js +0 -1
  268. package/web/.next/static/chunks/app/(dashboard)/connectors/page-2ecbfc5836577888.js +0 -1
  269. package/web/.next/static/chunks/app/(dashboard)/jobs/[id]/page-47e177ab46926fd7.js +0 -1
  270. package/web/.next/static/chunks/app/(dashboard)/jobs/page-523c5d229e8520bf.js +0 -1
  271. package/web/.next/static/chunks/app/(dashboard)/layout-0b429859260736b2.js +0 -1
  272. package/web/.next/static/chunks/app/(dashboard)/learned-skills/page-596d973a31e774db.js +0 -1
  273. package/web/.next/static/chunks/app/(dashboard)/llm-providers/page-ba1968c9430c4dd4.js +0 -1
  274. package/web/.next/static/chunks/app/(dashboard)/logs/page-f74da6f66116c7e7.js +0 -1
  275. package/web/.next/static/chunks/app/(dashboard)/mcp/page-07bdc6780b13cfca.js +0 -1
  276. package/web/.next/static/chunks/app/(dashboard)/page-889d6e89a8f679f8.js +0 -1
  277. package/web/.next/static/chunks/app/(dashboard)/scheduled/[id]/page-47e177ab46926fd7.js +0 -1
  278. package/web/.next/static/chunks/app/(dashboard)/scheduled/page-523c5d229e8520bf.js +0 -1
  279. package/web/.next/static/chunks/app/(dashboard)/settings/page-1b40e127c38affda.js +0 -1
  280. package/web/.next/static/chunks/app/(dashboard)/settings/root-context/page-6b7e1cffcad40a6a.js +0 -1
  281. package/web/.next/static/chunks/app/(dashboard)/skills/page-3ad87d1a3fbb4f05.js +0 -1
  282. package/web/.next/static/chunks/app/(dashboard)/spaces/[id]/files/page-4e2d27f80456a1ba.js +0 -1
  283. package/web/.next/static/chunks/app/(dashboard)/spaces/[id]/page-c81023eaa26c2c7a.js +0 -1
  284. package/web/.next/static/chunks/app/(dashboard)/spaces/page-9dbb35822503481b.js +0 -1
  285. package/web/.next/static/chunks/app/_global-error/page-523c5d229e8520bf.js +0 -1
  286. package/web/.next/static/chunks/app/_not-found/page-523c5d229e8520bf.js +0 -1
  287. package/web/.next/static/chunks/app/api/auth/[...all]/route-523c5d229e8520bf.js +0 -1
  288. package/web/.next/static/chunks/app/api/chat/stream/route-523c5d229e8520bf.js +0 -1
  289. package/web/.next/static/chunks/app/api/health/route-523c5d229e8520bf.js +0 -1
  290. package/web/.next/static/chunks/app/api/oauth/[provider]/callback/route-523c5d229e8520bf.js +0 -1
  291. package/web/.next/static/chunks/app/api/oauth/[provider]/start/route-523c5d229e8520bf.js +0 -1
  292. package/web/.next/static/chunks/app/auth/callback/route-523c5d229e8520bf.js +0 -1
  293. package/web/.next/static/chunks/next/dist/client/components/builtin/app-error-523c5d229e8520bf.js +0 -1
  294. package/web/.next/static/chunks/next/dist/client/components/builtin/forbidden-523c5d229e8520bf.js +0 -1
  295. package/web/.next/static/chunks/next/dist/client/components/builtin/unauthorized-523c5d229e8520bf.js +0 -1
  296. package/web/.next/static/css/099c0b54fc41e5b0.css +0 -1
  297. package/web/.next/static/x5fvzE6AeZGASlemQTLwd/_buildManifest.js +0 -1
  298. /package/web/.next/static/{x5fvzE6AeZGASlemQTLwd → uWxfL1NbU-xFtwNtkF4Wb}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- "use strict";exports.id=1960,exports.ids=[1960],exports.modules={21960:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{"0008da4f39fd8670105ef9acce948190e6f471cb73":()=>f.dSg,"001317c8941959e3cc4e01c0bf7c5a7051022fbfaa":()=>f.HuK,"0021d42878f66ebc54dac5c946a21ab049132f2bd7":()=>f.wdR,"00239f1fef033671e0a60abb69bad1d044d31b2c68":()=>f.pDn,"002b122e9d253683a4dcb20dadc075e9d879fba52f":()=>f.VZe,"0035657a1ea9366bcaf39d60823b2609c212f87d69":()=>f.BMW,"0041d4199d684464480106caabb54af01d40dc66a9":()=>e.D0,"00468828b9d872610ad92de3f2c4aa200cffb6ebde":()=>f.dOR,"00481761c600ce5927a7dc13d489e6173f2200d0df":()=>e.qt,"00512800cad39d8fee52da8018074ab501cba5cc76":()=>f.bms,"005c27a8ade1a76bfc49907642d729c63575ab5e53":()=>f.$5k,"005cb121d9fbcc341ca32eec183a78a723bd0ebc89":()=>f.Ley,"006208f47f64c3b894892839c6bf06b1e42776fe49":()=>f.vX5,"0063707e06ff5e92e92e6374c28bdb2d02f0ccd45b":()=>f.j4T,"006c9ad6772d358a91e18569989a1c32c6b65c545b":()=>e.RN,"0083e45c0ee9472cf830115f90cdc44b6c21ea5c95":()=>f.KoN,"0085e97bfefa3e8c417b9046ede511a79d75dfff18":()=>e.gr,"0089907e33c9562cc647d5bca03ae107588dd6f2ca":()=>f.Zb,"008ba9c6a033c9548884b32ac12aec4498851fa165":()=>f.oA4,"00920ac177f0bb48e87febc3d332553bd5dae71ff8":()=>f.zh4,"009e1350c15a1c8739141ee0f64396da5c949c2cc8":()=>f.jjn,"00a661b582359ba480ed9d697aae80cee3353d8d5c":()=>f.$zY,"00a7f149942a46f4e544a42a7ae5e7b7d5d988c48a":()=>f.JD9,"00a8281c84cf1d00c841859fc2bf4a6c73149cff6e":()=>f.WDC,"00abe00c7c948da2e5ce3f0fd61d61706af1e5f69d":()=>f.cjC,"00b4e84ccaf61ba5b99295a6417f50b2c9024efc76":()=>f.c0,"00be6484513ed1dd208a1fe89336b1252412dc5ff6":()=>f.aGl,"00bf176f690adf008995c91b66759a3c58c9339813":()=>f.$4Z,"00c3735772f154c1634940666fd69fb45142f825f0":()=>f.M3i,"00c4629e919a24b21c8d6edb66b85a28aa19c4e185":()=>f.Hyt,"00c973fffcf0d916a66c9d57ffd556411956483ed3":()=>f.oG2,"00cef4137eb63112e339055fc87f23e647a68063aa":()=>f.A3_,"00da20bdbce662ac9daae1024072e76fadb500ed11":()=>f.Wdt,"00dfede8a6378a9d57231e2c4471d8da13644fafb3":()=>f.jTi,"00e05dd5e094593ccd6198cd26a7df9a0d3ee2a5c5":()=>f.le4,"00f00e5cbcbfbf91854a8bd87e5167fb68905946d6":()=>f.o4K,"00f3c319237e0d75632baaad2ae14a51edeb96327e":()=>f.ZzE,"00fcf468647ea7a5fd5206695e07fb8e58286dc8f4":()=>f.UK3,"400093dc77c1f86c93ae662498490008573e4c65e5":()=>f.ahp,"400575c6d19bdebd546e6aa25c4c5f677d5a7e92f3":()=>f.foO,"40060207d8393bf70c1df2731fc23adfd35d642b0e":()=>e.uc,"40060deba770cabcaf393126defb02dc9eb6e19f62":()=>f.puT,"40061ebc3e5fe2bee33cc091e0923642a5f447b0fd":()=>f.E4W,"400653d7e49ff18c52ab31ea75c055fce642ba7a05":()=>f.p5X,"400769f2991176c43b1dd042a9d6f3fca4a8fd8c84":()=>f.QlC,"4009828a1192d656725193c33d6b73a8f388cbf1e3":()=>f.Rts,"400a69f05e1dbe9d71a06d6a813639480b68d73cef":()=>f.Sbz,"400f6f122187a44fb6df0d28ff68fad2de571a27c6":()=>f.Q9G,"401516080e15c97e5ccf176c6263866bf15679a025":()=>f.ths,"4018d2fde618f62364c0998c782da989eb84fdff02":()=>f.HOY,"40191cba106816bf59808eca72e7b5996fe7c3e191":()=>f.vx,"401a28081169e48e9db29fc9de64baa4d05a0d7eb1":()=>f.PDy,"401b927cfd46b6d517f22575a111957ace75e55820":()=>f.ShT,"401ea622ab4dd7e321e28536fc05ea84759e5829b8":()=>f.cr5,"4020a9b5a7e1aa8d8e79d75dc02f58acdd4af67912":()=>f.JHm,"4020bc49b875accc07e798d3b9fac795b92f0ef1d6":()=>f.ASl,"40221aee1833c19bfe90063b7dac59e04b206000e1":()=>f.Zfd,"4022b75746d9f1f30d837a16dfa869b40cd0bfcfd9":()=>f.CVG,"4023b55efbc32e5efd3d91d1473cb3058ba92397dc":()=>f.HlP,"4025d074eb915be710802379fbbfa730d6fbe2f633":()=>f.EAh,"402608b166eadefab044a0b90c0c4a1877164eca41":()=>f.eiV,"4026a65ca14c354283475c21b41ba6113610c7c57b":()=>f.sHu,"4026b8e5c526a31e3e55da6a0d16d721a0d3391aa3":()=>f.xF9,"402781412fb9bdbf00477c6e4c16b13dd9e139b02f":()=>f.QaL,"402995cca001806c8f3d9637a86996ad847d4b0677":()=>f.p9Q,"402ae5e1cb86be0a615520162706d8ba5653293eed":()=>f.k98,"402b7c7e1c9802935e5c0b76e8815a91c23d8681b8":()=>f.PML,"402c6b37f9017e36713cda442daebf1ceb7c738c0e":()=>f.S2e,"402fa2aab06e1c35069f2157d036b46815e6ecab64":()=>f.gEh,"40314e38634a40e002ffe578dcb9d4ae99c46f532d":()=>f.xV9,"40319e15cced32d88942333dc8946fe0d441cd6908":()=>f.XlI,"403c036e1769567587ba69d9178e9e6e0bd9f006fd":()=>f.r1Q,"403ca1f9fe2299134631516d355ebbf0cb1e51609e":()=>e.rz,"403e0bd99ae9d9ba8c065ead612f77a4e02846a42b":()=>f.f_Q,"404009a071b103aeec91382a857f5f320dd19faa17":()=>f._xZ,"4041c2c0314f6f185c7de0e54a7924478792a6b2d6":()=>f.ML0,"4041e7f3a761b53a7a40351eefd967b937da88fd53":()=>f.X1t,"404616a8809c917b720920a17f4ce7fdd22ad4ed83":()=>f.gvg,"404c01a52bfef7c9939dcb90c4e0502f116594867d":()=>f.Ty5,"404c854c62bff37e9ea20ef56d3513b971f9ed8525":()=>f.keg,"40505c6e0ef17e5d7cd20757da376194d6da5e1349":()=>f.Jqn,"405455934cabf5f2c476e40be52d546683ac27d2df":()=>f.FSp,"405744c2977b00314f74f909c9b3a0fa5b6952ddde":()=>f.vPW,"40576a704c98d70ee1e8110597706abe859d7addc6":()=>f.WHd,"405820186999c2907d756e540fb88865ec02d50cc4":()=>f.LNX,"4058f5bf7ec9d8b305107bec313bd6980ba78f9099":()=>f.Jbj,"405be84667c8b7479a6225f1cb7fe66df7749c3d64":()=>f.Rzh,"405f1531a2287c807cdae4d2ef6647c42228631f57":()=>f.rfD,"405fc6a66732dca26ed46d7f0650cb28f5d9e0431f":()=>f.mJg,"40619e433150807318b315e536c41ba4601b7fb4c4":()=>f._HQ,"4062cef616071913ee4ce2257f7353748953b8fd7e":()=>f.Wqn,"4063c6465933dd4621e3c8ed37e05ba6efcfcb822e":()=>f.khK,"40640738f34c850782d52fe4f29414a0359c4233c7":()=>f.WqY,"4065f8ad1a7b09b47c076152bcc8fd1121b0ddfcbf":()=>e.aX,"4067cdcd01af6f350a208794a19363fcf0afee1b11":()=>f.oCn,"4068c5baaca236e82e624de8eba087057aec3a5948":()=>f.Yn$,"406994532d393328dab7ce4320500efcb794df03a1":()=>f.XUm,"406f325f411e1eff589df6b6c5df18177fdaba4ce9":()=>f.iuB,"4073db3da83b6ec93df737cac18bf487ef15e559bd":()=>f.CqO,"40751fb71c9ec3d3b2f0a0d8dea340aa1a0245d4dc":()=>f.flP,"40755736c35128c0a3149351bd60fdbc67e6ed528c":()=>f.nH7,"4075bcb00ec29f6c1cb35eb88ac31275466b377ac7":()=>f.ePu,"40778766bca0998714b2afc2ef6a24725e360c3252":()=>f.rTZ,"4078053c6ab56670e5e29c5197738439ed0bed8a1d":()=>f.V8m,"4078dccc4192da793058b75304d336042fa3596b90":()=>f.La$,"407a94fcad4baa65a486f2e0bb5b599ae9eeb051a6":()=>f.Trw,"407ab6fd0821adfe95c650f02b853d69810c4e7e6e":()=>f.lVM,"407b4e4776e57509a2f7e8a6a3d3d279e3c2011a3a":()=>f.KWz,"408011541bdc74610a558389ee81f105e3c66c2b98":()=>f.Hps,"4083458a938c278255f90a373c6f22090fa9a1a292":()=>f.bV3,"4084373c85a7063cef61e643ad2205c62a89cd6851":()=>f.fI9,"4084992fe3039dd70aba283b3387ad297d2e40538f":()=>f.qWw,"40859f5a21a0ef5634c213ffc198906eff8f0fe170":()=>e.ax,"40894b7e161e9cfb06404f58dd279b0a9c25babf9f":()=>f.hUS,"408b7a39c037fa9bf9867d5458972f8424f401affc":()=>f.t3Y,"408ebd8eb6a5fd6b326177ee2546e6d6e8081476d9":()=>f.g$k,"408f29057ed4dd2a89ffce4c6a7728e69a663f03ce":()=>f.oak,"409353abfb80767eac75198867885c3a1f605f6705":()=>f.Zm4,"40955851cad0505dd1b3a1d033b919e4658daecacf":()=>f.g$E,"4096ab53481dae526b3e3d94ce8dfad1e6c9d44b63":()=>f.MoE,"40979df594ff3dd9562d81bedb329591cf5612ce90":()=>f._Nd,"4097b6d0822e735ce0cc4b2a9edd5c75b2748125d7":()=>f.PEW,"409aeb9dd014d3202164f62ad2eff2ca2e83d90a5c":()=>f.FgD,"409c493b8c184dc5bdbd3ef332521bc4a1edc9ea98":()=>f.y4H,"409da1e50879602d50629473cf721c48c6d59849c3":()=>f.lgR,"409f929cc018d3d825b71c9087f70b79dea58cbfb1":()=>f.iU$,"40a78ae07fa6f74dceb20cfbda58223d620f65e350":()=>f.SVd,"40a8e47d54461367eba729fa5c9ad8423c7aa7fe0e":()=>f.KIl,"40a8ea3b8bf42740e42e206ef43ae0e7b208dcac1f":()=>e.q5,"40afc8fdbb1783c54de905a0d33a1d91316e6784dc":()=>f.Kep,"40b46fd17bf9459d4d04447ad03e654ca354524644":()=>f.rv7,"40b865fc488e5dd0c5d652a00f9d74064b57f8faa0":()=>f.fG_,"40c58739617839a940812b159dc12bab1ac980ef0a":()=>f.wIl,"40c96a62a2e774e0a5c59303e999937a0b44bfedac":()=>f.QT1,"40cc3ce7920f42c8ad2d5d72ae0ab29eb2859f1e0e":()=>f.hlo,"40cd081998ec54c9cbf152bcc54b4f2342a3318cf0":()=>f.cuo,"40d039abdd07a386ee71403a4c894d7e4c9222ff5a":()=>f.Ogj,"40d295ca2dd969f3a28684cc82c2d61bf8e3e9a84e":()=>f.hPA,"40d2cea29ff76eb591d39f739b8454fc3fb46c489d":()=>f.cmc,"40d8fc8a6eb8a5833c447f09330385f265cca79c69":()=>f.EvH,"40da7e995ab616a8434ba1ad9ea19cb2828934e8f5":()=>f.XmW,"40dba91a3d91396aa28ffb045260f2f273e13cb132":()=>f.TDu,"40df753079fde625c74c7073a48e6086b80b4f2198":()=>f.mDY,"40e16e5fd083a814d27a8e0f087e18404e093d9b7e":()=>f.LWx,"40e2b3ad26610b716852d20df66af356b8630d2e27":()=>f.INV,"40e2d0201afb63da25a2d11b27fbd7dcb38d59c249":()=>f.NM6,"40e4c78ec4b9aa0e236437fdc88e55ba271ea4b5b4":()=>f.e48,"40e54e694e429d5ce2b48342a8864e448082e3addd":()=>f.Byx,"40e7e9e9c7dd1dcdbec347665642f75fd3b5403150":()=>f.EpB,"40ea493f404839402fb6a7905385d5e1db8c31ec9d":()=>f._NR,"40ea6d73daaca9a98e9de4834e068d7720612c6ef7":()=>f.WT_,"40eb98d142c5916308285052fd182f40fb53a577a4":()=>f.tSk,"40ed2a4a3431a0a28a2552ca5bbc605aa047b8ae8c":()=>f.RoQ,"40ed6ec7f6b31f9c2e8aca2c033ebb97802f3b8200":()=>f.xo1,"40ed97d3ef199691892b30684aa6b5e0297f18f9b1":()=>f.lY3,"40f0ea5364a8ede1117763b0e7a0147da5bd7d850f":()=>f.hDc,"40f469227e1e023019dd61eecb24e0afdd58650ded":()=>f.K07,"40f6bcec2d1557df5a5c8657c515e645e4bf7cfb4f":()=>f.GLK,"40f7aaab2c6994ca716851afbd362e30e17543c7c1":()=>f.MQN,"40fa23fb18f32051944d61ca19ff917c83ce48fed9":()=>f.PHJ,"40fd26d89d438dac04b72ddaa75212de5ed94c437e":()=>f.ZGG,"40fdee9986b1514a17592aa57c16917832e6a3a69c":()=>f.CyH,"40ff91f04230dd2aa28294450c1f02479cdabf68e4":()=>f.VQR,"6017e2c74b2e24b8b879351268837a414496c2e86b":()=>f.WIq,"6029186d56f03a50d039165763da2fc8166a1a6d63":()=>f.ddZ,"602f1e3edbc2a116325d7f7fb8e5cb32c67250fada":()=>f.c29,"60397e84fe085de776dd4536d028f3003da17af850":()=>f.SsI,"60574cf67b272f5b25d8128bc188d88dfa6393fbfa":()=>f.ZJM,"60794920903db0715cb7af58fadf5de91eabbae33d":()=>f.f20,"6082b897f7d9a5c741d045ca0acbee07ff80bb6e13":()=>f.PC8,"6090ebe3c820c6dc56a24b929ec9af695b08ec0a71":()=>f.cD,"60ad34acc7ee529580c70fa868308346d9b820fdce":()=>f.yUj,"60b7f195ba6882f59d0758cdc041286434bf3e68f8":()=>f.wPz,"60d30fb7d6f4f4817d88dd157f246b6365cbc433c2":()=>f.wIV,"60d361e068e4da8e7d2754fbda5160b045c29c87b8":()=>f.Rue,"60db411968f5f7da25b7d0fab88339276555512873":()=>f.vum,"60e9215287c97d8c577837931b629c8c094ca4d8d0":()=>f.x7W,"707fd3667838f451adb9d7efad0c37efa3573f2a42":()=>f.z_0,"70d5ffe6e0a45b64d30e707df99e71f2cd9ff161d0":()=>f.JcR,"70efcb320785f0673d99e762cab4f1f32df84ab271":()=>f.Ocs,"70fcdfa1da0a84f23a1e0091ff51279952de5449d8":()=>f.chn,"7831aaf38a44b9b08607451a25babeaeb4c3294955":()=>f.wjv,"78fd26fcc6fe29d32d9ef82c293b60ac4301e17ce7":()=>f.AHw});var e=c(11428),f=c(12406),g=a([e,f]);[e,f]=g.then?(await g)():g,d()}catch(a){d(a)}})}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=292,exports.ids=[292],exports.modules={5524:(a,b,c)=>{c.d(b,{A:()=>r});var d=c(27557),e=c(44928),f=c(40236),g=c(81806),h=c(37355),i=c(98662),j=c(68789),k=c(48601);let l=(0,k.createServerReference)("6017e2c74b2e24b8b879351268837a414496c2e86b",k.callServer,void 0,k.findSourceMapURL,"toggleWebhookTriggerAction"),m=(0,k.createServerReference)("40894b7e161e9cfb06404f58dd279b0a9c25babf9f",k.callServer,void 0,k.findSourceMapURL,"rotateWebhookSecretAction");var n=c(5422),o=c(25e3),p=c(3079),q=c(775);function r({webhook:a,onRevealed:b,layout:c="row"}){let[k,s]=(0,e.useTransition)(),[t,u]=(0,e.useState)(!1),[v,w]=(0,e.useState)(!1);function x(){s(async()=>{let b=await l(a.id,!a.active);b.ok?f.oR.success(b.data.active?"Webhook enabled":"Webhook disabled"):f.oR.error(b.message)})}let y=(0,d.jsx)(o.A,{open:t,title:"Rotate webhook secret?",message:"A new URL is generated immediately and the current one stops working. Update the external service before it fires again.",confirmLabel:"Rotate",destructive:!1,onConfirm:function(){u(!1),s(async()=>{let c=await m(a.id);c.ok?(b(a.id,{secret:c.data.secret,path:c.data.path}),f.oR.success("Secret rotated. The old URL no longer works.")):f.oR.error(c.message)})},onCancel:()=>u(!1)});return"page"===c?(0,d.jsxs)("div",{className:"flex items-center gap-2","data-testid":"automation-actions",children:[(0,d.jsx)(q.A,{variant:"ink",onClick:x,disabled:k,children:a.active?"Pause":"Enable"}),(0,d.jsx)(q.A,{variant:"neutral",onClick:()=>u(!0),disabled:k,children:"Rotate secret"}),y]}):(0,d.jsxs)("div",{className:"flex items-center gap-1.5","data-testid":"automation-actions",children:[(0,d.jsx)(p.A,{square:!0,icon:a.active?(0,d.jsx)(g.v,{size:16,weight:"fill"}):(0,d.jsx)(h.j,{size:16,weight:"fill"}),title:a.active?"Pause":"Enable",onClick:x,disabled:k}),(0,d.jsx)(p.A,{square:!0,icon:(0,d.jsx)(i.P,{size:16}),title:"Rotate secret",onClick:()=>u(!0),disabled:k}),(0,d.jsx)(p.A,{square:!0,icon:(0,d.jsx)(j.l,{size:16}),title:"Delete",tone:"danger",onClick:()=>w(!0),disabled:k}),y,(0,d.jsx)(o.A,{open:v,title:"Delete webhook?",message:"This webhook trigger is removed. Any service still posting to its URL will get a 404.",confirmLabel:"Delete",onConfirm:function(){w(!1),s(async()=>{let b=await (0,n.t)(a.id);b.ok?f.oR.success("Webhook deleted"):f.oR.error(b.message)})},onCancel:()=>w(!1)})]})}},14859:(a,b,c)=>{c.d(b,{E:()=>i,A:()=>j});var d=c(27557),e=c(44928),f=c(48601);f.callServer,f.findSourceMapURL;var g=c(44545),h=c(44414);let i={telegram:"Telegram",discord:"Discord",slack:"Slack"};function j({idPrefix:a,agentId:b,agentName:c,notifyOnSuccess:f,onNotifyOnSuccessChange:k,notifyChannel:l,onNotifyChannelChange:m}){let[n,o]=(0,e.useState)(null),p=""!==b&&n?.agentId!==b,q=n?.agentId===b?n.options:[],r=f&&""!==b&&!p&&0===q.length;return(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)("label",{className:"flex items-start gap-2.5 rounded-md border border-rule bg-canvas px-3 py-2.5 text-sm",children:[(0,d.jsx)(h.A,{name:"notifyOnSuccess",checked:f,onChange:a=>k(a.target.checked),className:"mt-0.5"}),(0,d.jsxs)("span",{children:[(0,d.jsx)("span",{className:"font-medium text-ink",children:"Notify me when it succeeds"}),(0,d.jsx)("span",{className:"mt-0.5 block text-xs text-ink-3",children:"The agent sends you a short confirmation each time this automation finishes. Requires a connected channel on the agent (message it once so it knows where to reach you)."})]})]}),f&&(r?(0,d.jsxs)("p",{className:"rounded-md border border-warn/30 bg-warn-bg px-3 py-2 text-xs text-warn",children:["⚠️ ",(0,d.jsx)("span",{className:"font-medium",children:c})," has no channel connected, so it can't send you this confirmation. Connect Telegram, Discord, or Slack to this agent first."]}):(0,d.jsxs)(g.A,{id:`${a}-notify-channel`,label:"Notify via",value:l,onChange:a=>m(a.target.value),disabled:p,children:[(0,d.jsx)("option",{value:"",children:"Auto"}),q.map(a=>(0,d.jsx)("option",{value:a,children:i[a]??a},a))]}))]})}},18959:(a,b,c)=>{c.d(b,{default:()=>v});var d=c(27557),e=c(44928),f=c(40236),g=c(37355),h=c(81806),i=c(6417),j=c(74056),k=c(37599),l=c(68789),m=c(48601);let n=(0,m.createServerReference)("4075bcb00ec29f6c1cb35eb88ac31275466b377ac7",m.callServer,void 0,m.findSourceMapURL,"toggleScheduleAction");var o=c(52426);let p=(0,m.createServerReference)("4018d2fde618f62364c0998c782da989eb84fdff02",m.callServer,void 0,m.findSourceMapURL,"runScheduleNowAction"),q=(0,m.createServerReference)("4023b55efbc32e5efd3d91d1473cb3058ba92397dc",m.callServer,void 0,m.findSourceMapURL,"duplicateScheduleAction");var r=c(25e3),s=c(3079),t=c(775),u=c(30983);function v({schedule:a,agents:b,layout:c="row"}){let[m,w]=(0,e.useTransition)(),[x,y]=(0,e.useState)(!1),[z,A]=(0,e.useState)(!1);function B(){w(async()=>{let b=await n(a.id);b.ok?f.oR.success(b.data.active?"Schedule enabled":"Schedule disabled"):f.oR.error(b.message)})}function C(){w(async()=>{let b=await p(a.id);b.ok?f.oR.success(`Running "${a.name}" now`):f.oR.error(b.message)})}let D=z?(0,d.jsx)(u.A,{mode:"edit",agents:b,initial:a,onDone:()=>A(!1)}):null,E=(0,d.jsx)(r.A,{open:x,title:"Delete schedule?",message:"This cron schedule will be removed. Past runs are kept for audit.",confirmLabel:"Delete",onConfirm:function(){y(!1),w(async()=>{let b=await (0,o.X)(a.id);b.ok?f.oR.success("Schedule deleted"):f.oR.error(b.message)})},onCancel:()=>y(!1)});return"page"===c?(0,d.jsxs)("div",{className:"flex items-center gap-2","data-testid":"automation-actions",children:[(0,d.jsx)(t.A,{variant:"ink",onClick:C,disabled:m||!a.task,title:a.task?void 0:"No task to run",children:"Run now"}),(0,d.jsx)(t.A,{variant:"neutral",onClick:B,disabled:m,children:a.active?"Pause":"Enable"}),(0,d.jsx)(t.A,{variant:"neutral",onClick:()=>A(!0),disabled:m,children:"Edit"}),D]}):(0,d.jsxs)("div",{className:"flex items-center gap-1.5","data-testid":"automation-actions",children:[(0,d.jsx)(s.A,{square:!0,icon:(0,d.jsx)(g.j,{size:16,weight:"fill"}),title:a.task?"Run now":"No task to run",onClick:C,disabled:m||!a.task}),(0,d.jsx)(s.A,{square:!0,icon:a.active?(0,d.jsx)(h.v,{size:16,weight:"fill"}):(0,d.jsx)(i.N,{size:16,weight:"fill"}),title:a.active?"Pause":"Enable",onClick:B,disabled:m}),(0,d.jsx)(s.A,{square:!0,icon:(0,d.jsx)(j.I,{size:16}),title:"Edit",onClick:()=>A(!0),disabled:m}),(0,d.jsx)(s.A,{square:!0,icon:(0,d.jsx)(k.Q,{size:16}),title:"Duplicate",onClick:function(){w(async()=>{let b=await q(a.id);b.ok?f.oR.success(`Duplicated "${a.name}", paused. Enable it when ready.`):f.oR.error(b.message)})},disabled:m}),(0,d.jsx)(s.A,{square:!0,icon:(0,d.jsx)(l.l,{size:16}),title:"Delete",tone:"danger",onClick:()=>y(!0),disabled:m}),E,D]})}},30983:(a,b,c)=>{c.d(b,{A:()=>v});var d=c(27557),e=c(44928),f=c(40236),g=c(48601);let h=(0,g.createServerReference)("4084373c85a7063cef61e643ad2205c62a89cd6851",g.callServer,void 0,g.findSourceMapURL,"updateScheduleAction"),i=(0,g.createServerReference)("4020bc49b875accc07e798d3b9fac795b92f0ef1d6",g.callServer,void 0,g.findSourceMapURL,"createScheduleAction");var j=c(51123),k=c(44545),l=c(37422);function m({active:a,onClick:b,children:c,className:e=""}){return(0,d.jsx)("button",{type:"button",onClick:b,className:`rounded border px-2.5 py-1 text-xs font-medium ${a?"border-run/30 bg-run-bg text-run":"border-rule-2 text-ink-3 hover:border-rule hover:text-ink"} ${e}`,children:c})}let n=[{n:1,label:"Mon"},{n:2,label:"Tue"},{n:3,label:"Wed"},{n:4,label:"Thu"},{n:5,label:"Fri"},{n:6,label:"Sat"},{n:0,label:"Sun"}],o=[1,5,10,15,30];function p({name:a="cronExpr",initial:b}){let c=(0,e.useMemo)(()=>b?(0,j.X3)(b):{mode:"daily",values:{mode:"daily",time:"09:00"}},[b]),[f,g]=(0,e.useState)(c.mode),[h,i]=(0,e.useState)(c.values.everyMinutes??5),[r,s]=(0,e.useState)(c.values.time??"09:00"),[t,u]=(0,e.useState)(c.values.weekdays??[1,2,3,4,5]),[v,w]=(0,e.useState)(c.values.dayOfMonth??1),[x,y]=(0,e.useState)(c.values.custom??b??"0 9 * * *"),z=(0,e.useMemo)(()=>(0,j.Ff)({mode:f,everyMinutes:h,time:r,weekdays:t,dayOfMonth:v,custom:x}),[f,h,r,t,v,x]),A=(0,e.useMemo)(()=>(0,j.E$)(z),[z]);return(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsx)("input",{type:"hidden",name:a,value:z}),(0,d.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{htmlFor:"cron-mode",className:"block text-xs text-ink-3 mb-1",children:"Frequency"}),(0,d.jsxs)(k.A,{id:"cron-mode",value:f,onChange:a=>g(a.target.value),className:"bg-hover",children:[(0,d.jsx)("option",{value:"minutes",children:"Every N minutes"}),(0,d.jsx)("option",{value:"hourly",children:"Hourly"}),(0,d.jsx)("option",{value:"daily",children:"Daily"}),(0,d.jsx)("option",{value:"weekly",children:"Weekly"}),(0,d.jsx)("option",{value:"monthly",children:"Monthly"}),(0,d.jsx)("option",{value:"custom",children:"Custom (cron)"})]})]}),"minutes"===f&&(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{htmlFor:"cron-every",className:"block text-xs text-ink-3 mb-1",children:"Every"}),(0,d.jsx)(k.A,{id:"cron-every",value:h,onChange:a=>i(parseInt(a.target.value,10)),className:"bg-hover",children:o.map(a=>(0,d.jsxs)("option",{value:a,children:[a," ",1===a?"minute":"minutes"]},a))})]}),"hourly"===f&&(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{htmlFor:"cron-min-of-hour",className:"block text-xs text-ink-3 mb-1",children:"At minute"}),(0,d.jsx)(l.A,{id:"cron-min-of-hour",type:"number",min:0,max:59,value:parseInt(r.split(":")[1]??"0",10),onChange:a=>{let b=Math.max(0,Math.min(59,parseInt(a.target.value||"0",10)));s(`00:${String(b).padStart(2,"0")}`)},className:"bg-hover"})]}),("daily"===f||"weekly"===f||"monthly"===f)&&(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{htmlFor:"cron-time",className:"block text-xs text-ink-3 mb-1",children:"Time"}),(0,d.jsx)(l.A,{id:"cron-time",type:"time",value:r,onChange:a=>s(a.target.value),className:"bg-hover"})]})]}),"weekly"===f&&(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"block text-xs text-ink-3 mb-1",children:"Days"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5",children:n.map(a=>(0,d.jsx)(m,{active:t.includes(a.n),onClick:()=>{var b;return b=a.n,void u(a=>a.includes(b)?a.filter(a=>a!==b):[...a,b].sort())},children:a.label},a.n))})]}),"monthly"===f&&(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{htmlFor:"cron-dom",className:"block text-xs text-ink-3 mb-1",children:"Day of month"}),(0,d.jsx)(l.A,{id:"cron-dom",type:"number",min:1,max:31,value:v,onChange:a=>w(Math.max(1,Math.min(31,parseInt(a.target.value||"1",10)))),className:"w-32 bg-hover"})]}),"custom"===f&&(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{htmlFor:"cron-custom",className:"block text-xs text-ink-3 mb-1",children:"Cron expression"}),(0,d.jsx)(l.A,{id:"cron-custom",type:"text",value:x,onChange:a=>y(a.target.value),placeholder:"0 9 * * *",className:"bg-hover font-mono"}),(0,d.jsx)("p",{className:"text-legacy-11 text-ink-4 mt-1",children:"Format: minute hour day-of-month month day-of-week"})]}),(0,d.jsx)(q,{expr:z,preview:A})]})}function q({expr:a,preview:b}){return b.ok?(0,d.jsxs)("div",{className:"bg-canvas border border-rule-2 rounded-md px-3 py-2 space-y-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,d.jsx)("span",{className:"text-ink-3",children:"Schedule:"}),(0,d.jsx)("span",{className:"text-ink",children:b.humanLabel}),(0,d.jsx)("code",{className:"ml-auto text-mono-11 text-run",children:a})]}),(0,d.jsxs)("div",{className:"text-legacy-11 text-ink-4",suppressHydrationWarning:!0,children:["Next runs: ",b.nextRuns.map(a=>a.toLocaleString([],{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})).join(" \xb7 ")]})]}):(0,d.jsxs)("div",{className:"bg-warn-bg border border-err/30 rounded-md px-3 py-2 text-xs text-err",children:[(0,d.jsx)("span",{className:"font-semibold",children:"Invalid:"})," ",b.error]})}var r=c(775),s=c(73031),t=c(52282),u=c(14859);function v(a){let b="edit"===a.mode,c=!b&&void 0!==a.open,[g,j]=(0,e.useState)(b),m=c?a.open??!1:g,n=b=>{c?a.onOpenChange?.(b):j(b)},o=()=>{b?a.onDone?.():n(!1)},[q,v]=(0,e.useTransition)(),[w,x]=(0,e.useState)(b?a.initial.agentId:""),[y,z]=(0,e.useState)(!!b&&!0===a.initial.notifyOnSuccess),[A,B]=(0,e.useState)(b?a.initial.notifyChannel??"":"");if(!b&&!m)return c?null:(0,d.jsx)(r.A,{variant:"ink",onClick:()=>n(!0),disabled:0===a.agents.length,title:0===a.agents.length?"Create an agent first":"",children:"+ New schedule"});let C=b?a.initial.name:"",D=b?a.initial.task??"":"",E=b?a.initial.cronExpr:"0 9 * * *",F=b?a.initial.dailyBudgetUsd:5,G=a.agents.find(a=>a.id===w);return(0,d.jsx)(t.A,{open:!0,onClose:o,dismissable:!1,className:"max-w-xl",title:b?"Edit schedule":"New schedule",footer:(0,d.jsxs)(t.j,{children:[(0,d.jsx)(r.A,{variant:"neutral",onClick:o,children:"Cancel"}),(0,d.jsx)(r.A,{variant:"ink",type:"submit",form:"schedule-form",disabled:q,children:q?b?"Saving…":"Creating…":b?"Save changes":"Create schedule"})]}),children:(0,d.jsxs)("form",{id:"schedule-form",onSubmit:function(c){c.preventDefault();let d=c.currentTarget,e=new FormData(d);v(async()=>{let c=Number(e.get("dailyBudgetUsd"));if(b){let b=await h({id:a.initial.id,agentId:w,name:e.get("name"),cronExpr:e.get("cronExpr"),task:e.get("task"),notifyOnSuccess:y,notifyChannel:A||null,dailyBudgetUsd:c});b.ok?(f.oR.success("Schedule updated"),a.onDone?.()):f.oR.error(b.message)}else{let b=await i({agentId:w,name:e.get("name"),cronExpr:e.get("cronExpr"),task:e.get("task"),notifyOnSuccess:y,notifyChannel:A||null,dailyBudgetUsd:c});b.ok?(f.oR.success("Schedule created"),d.reset(),x(""),z(!1),B(""),n(!1),a.onDone?.()):f.oR.error(b.message)}})},className:"space-y-3",children:[(0,d.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,d.jsxs)(k.A,{id:"schedule-agent",label:"Agent",name:"agentId",required:!0,value:w,onChange:a=>x(a.target.value),children:[(0,d.jsx)("option",{value:"",children:"Select…"}),a.agents.map(a=>(0,d.jsx)("option",{value:a.id,children:a.name},a.id))]}),(0,d.jsx)(l.A,{id:"schedule-name",label:"Name",name:"name",required:!0,defaultValue:C,placeholder:"Daily standup"})]}),(0,d.jsx)(p,{name:"cronExpr",initial:E}),(0,d.jsx)(s.A,{id:"schedule-task",label:"Task instructions",name:"task",required:!0,rows:4,defaultValue:D,placeholder:"What should the agent do each time this fires?"}),(0,d.jsx)(u.A,{idPrefix:"schedule",agentId:w,agentName:G?.name,notifyOnSuccess:y,onNotifyOnSuccessChange:z,notifyChannel:A,onNotifyChannelChange:B}),(0,d.jsxs)("div",{children:[(0,d.jsx)(l.A,{id:"schedule-daily-budget",label:"Daily budget ($)",name:"dailyBudgetUsd",type:"number",required:!0,min:.5,max:100,step:.5,defaultValue:F,className:"w-32"}),(0,d.jsx)("p",{className:"mt-1 text-xs text-ink-3",children:"Runs pause automatically once this schedule spends this much in a day, resuming the next."})]})]})})}},35301:(a,b,c)=>{c.d(b,{n:()=>d});function d(a){return a}},44414:(a,b,c)=>{c.d(b,{A:()=>g});var d=c(27557),e=c(44928);let f={ink:"accent-ink",agent:"accent-agent-vivid",skill:"accent-skill-vivid",connector:"accent-conn-vivid"};function g({label:a,tone:b="ink",id:c,className:h="",containerClassName:i="",...j}){let k=(0,e.useId)(),l=c??k,m=(0,d.jsx)("input",{id:l,type:"checkbox",className:`h-4 w-4 shrink-0 cursor-pointer rounded border-rule disabled:cursor-not-allowed disabled:opacity-50 ${f[b]} ${h}`,...j});return a?(0,d.jsxs)("label",{htmlFor:l,className:`flex cursor-pointer items-center gap-2 text-sm text-ink ${i}`,children:[m,a]}):(0,d.jsx)("div",{className:i,children:m})}},44545:(a,b,c)=>{c.d(b,{A:()=>h});var d=c(27557),e=c(44928),f=c(3188),g=c(9987);let h=(0,e.forwardRef)(function({label:a,error:b,id:c,className:h="",containerClassName:i="",children:j,...k},l){let m=(0,e.useId)(),n=c??m,o=(0,e.useRef)(null);return(0,e.useImperativeHandle)(l,()=>o.current,[]),(0,e.useEffect)(()=>{o.current&&function(a){if(CSS.supports("appearance","base-select"))for(let b of a.querySelectorAll("optgroup")){let a=b.getAttribute("label")??"",c=b.querySelector(":scope > legend");if(!c){if(a){let c=document.createElement("legend");c.textContent=a,b.prepend(c)}continue}c.textContent!==a&&(c.textContent=a),b.firstElementChild!==c&&b.prepend(c)}}(o.current)}),(0,d.jsxs)("div",{className:i,children:[a&&(0,d.jsx)(g.A,{htmlFor:n,children:a}),(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("select",{id:n,ref:o,"aria-invalid":!!b||void 0,className:`peer h-8.5 w-full rounded-md border bg-hover py-1.5 pr-8 pl-3 text-body-14 leading-5! text-ink transition-colors required:invalid:text-ink-4 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${b?"border-err focus:border-err":"border-rule focus:border-ink-3"} ${h}`,...k,children:j}),(0,d.jsx)(f.a,{size:16,"aria-hidden":!0,className:"pointer-events-none absolute top-4.25 right-2 -translate-y-1/2 text-ink-3 peer-disabled:opacity-50"})]}),b&&(0,d.jsx)("p",{className:"mt-1 text-xs text-err",children:b})]})})},51123:(a,b,c)=>{c.d(b,{E$:()=>e,Ff:()=>i,X3:()=>j,_6:()=>g});var d=c(6612);function e(a,b=new Date){if(!a||"string"!=typeof a)return{ok:!1,error:"Empty expression"};try{let c=d.CronExpressionParser.parse(a.trim(),{currentDate:b}),e=[];for(let a=0;a<3;a++)e.push(c.next().toDate());return{ok:!0,nextRuns:e,humanLabel:g(a)}}catch(a){return{ok:!1,error:a instanceof Error?a.message:"Invalid cron expression"}}}let f=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function g(a){let b=a.trim().split(/\s+/);if(5!==b.length)return a;let[c,d,e,g,i]=b;if("*"===c&&"*"===d&&"*"===e&&"*"===g&&"*"===i)return"Every minute";let j=c?.match(/^\*\/(\d+)$/);if(j&&"*"===d&&"*"===e&&"*"===g&&"*"===i)return`Every ${j[1]} minutes`;if("*"===d&&"*"===e&&"*"===g&&"*"===i&&/^\d+$/.test(c??""))return"0"===c?"Every hour (top of hour)":`Every hour at :${(c??"").padStart(2,"0")}`;if("*"===e&&"*"===g&&"*"===i&&/^\d+$/.test(c??"")&&/^\d+$/.test(d??""))return`Every day at ${h(d)}:${h(c)}`;if("*"===e&&"*"===g&&/^\d+$/.test(c??"")&&/^\d+$/.test(d??"")){let a=function(a){if("*"===a)return"day";if("1-5"===a)return"weekday";if("0,6"===a||"6,0"===a)return"weekend";if(/^\d$/.test(a)){let b=parseInt(a,10);if(b>=0&&b<=6)return f[b]??null}return/^[0-6](,[0-6])+$/.test(a)?a.split(",").map(a=>f[parseInt(a,10)]).filter(Boolean).join(", "):null}(i??"");if(a)return`Every ${a} at ${h(d)}:${h(c)}`}return"*"===g&&"*"===i&&/^\d+$/.test(c??"")&&/^\d+$/.test(d??"")&&/^\d+$/.test(e??"")?`Day ${e} of every month at ${h(d)}:${h(c)}`:a}function h(a){return(a??"").padStart(2,"0")}function i(a){let b=function(a){if(!a)return{hour:9,minute:0};let b=a.match(/^(\d{1,2}):(\d{2})$/);return b?{hour:Math.max(0,Math.min(23,parseInt(b[1]??"0",10))),minute:Math.max(0,Math.min(59,parseInt(b[2]??"0",10)))}:{hour:9,minute:0}}(a.time);switch(a.mode){case"minutes":{let b=a.everyMinutes&&a.everyMinutes>0?a.everyMinutes:5;return`*/${b} * * * *`}case"hourly":return`${b.minute} * * * *`;case"daily":return`${b.minute} ${b.hour} * * *`;case"weekly":{let c=a.weekdays&&a.weekdays.length>0?a.weekdays.slice().sort().join(","):"1";return`${b.minute} ${b.hour} * * ${c}`}case"monthly":{let c=a.dayOfMonth&&a.dayOfMonth>0?a.dayOfMonth:1;return`${b.minute} ${b.hour} ${c} * *`}case"custom":return(a.custom??"").trim()}}function j(a){let b=a.trim().split(/\s+/);if(5!==b.length)return{mode:"custom",values:{mode:"custom",custom:a}};let[c,d,e,f,g]=b,i=c?.match(/^\*\/(\d+)$/);if(i&&"*"===d&&"*"===e&&"*"===f&&"*"===g)return{mode:"minutes",values:{mode:"minutes",everyMinutes:parseInt(i[1]??"5",10)}};if("*"===d&&"*"===e&&"*"===f&&"*"===g&&/^\d+$/.test(c??""))return{mode:"hourly",values:{mode:"hourly",time:`00:${h(c)}`}};if("*"===e&&"*"===f&&"*"===g&&/^\d+$/.test(c??"")&&/^\d+$/.test(d??""))return{mode:"daily",values:{mode:"daily",time:`${h(d)}:${h(c)}`}};if("*"===e&&"*"===f&&/^\d+$/.test(c??"")&&/^\d+$/.test(d??"")){let a=function(a){if("*"===a)return[0,1,2,3,4,5,6];if("1-5"===a)return[1,2,3,4,5];if("0,6"===a||"6,0"===a)return[0,6];if(/^\d$/.test(a)){let b=parseInt(a,10);if(b>=0&&b<=6)return[b]}return/^[0-6](,[0-6])+$/.test(a)?a.split(",").map(a=>parseInt(a,10)):null}(g??"");if(a)return{mode:"weekly",values:{mode:"weekly",time:`${h(d)}:${h(c)}`,weekdays:a}}}return"*"===f&&"*"===g&&/^\d+$/.test(c??"")&&/^\d+$/.test(d??"")&&/^\d+$/.test(e??"")?{mode:"monthly",values:{mode:"monthly",time:`${h(d)}:${h(c)}`,dayOfMonth:parseInt(e??"1",10)}}:{mode:"custom",values:{mode:"custom",custom:a}}}},73031:(a,b,c)=>{c.d(b,{A:()=>g});var d=c(27557),e=c(44928),f=c(9987);let g=(0,e.forwardRef)(function({label:a,error:b,showCount:c,id:g,className:h="",containerClassName:i="",maxLength:j,value:k,bare:l=!1,...m},n){let o=(0,e.useId)(),p=g??o;return(0,d.jsxs)("div",{className:i,children:[a&&(0,d.jsx)(f.A,{htmlFor:p,children:a}),(0,d.jsx)("textarea",{id:p,ref:n,maxLength:j,value:k,"aria-invalid":!!b||void 0,className:l?`w-full text-ink placeholder:text-ink-4 transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${h}`:`w-full resize-y rounded-md border bg-hover px-2 py-1.5 text-body-14 leading-[1.5]! text-ink placeholder:text-ink-4 transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${b?"border-err focus:border-err":"border-rule focus:border-ink-3"} ${h}`,...m}),c&&void 0!==j&&"string"==typeof k&&(0,d.jsxs)("div",{className:"mt-1 text-right text-legacy-11 text-ink-4",children:[k.length," / ",j]}),b&&(0,d.jsx)("p",{className:"mt-1 text-xs text-err",children:b})]})})},89386:(a,b,c)=>{c.d(b,{O:()=>f});var d=c(27557),e=c(40236);function f({subtitle:a,url:b}){async function c(){try{navigator.clipboard?.writeText?await navigator.clipboard.writeText(b):g(b),e.oR.success("Copied")}catch{try{g(b),e.oR.success("Copied")}catch{e.oR.error("Could not copy")}}}function g(a){let b=document.createElement("textarea");b.value=a,b.style.position="fixed",b.style.opacity="0",document.body.appendChild(b),b.select();let c=document.execCommand("copy");if(b.remove(),!c)throw Error("copy_failed")}return(0,d.jsxs)("div",{className:"flex items-center gap-3 bg-canvas/40 border border-rule-2 rounded-[9px] px-4 py-3.5 mt-2",children:[(0,d.jsxs)("span",{className:"flex-1 min-w-0",children:[(0,d.jsx)("span",{className:"block text-xs leading-[1.4] text-ink-4",children:a}),(0,d.jsx)("span",{className:"block font-mono text-legacy-14 leading-[1.4]! text-ink tracking-[0.02em] mt-1.5 break-all",children:b})]}),(0,d.jsxs)("button",{type:"button",onClick:c,className:"flex-shrink-0 flex items-center gap-1.5 px-2.5 py-1.5 border border-rule text-ink-3 rounded-[7px] text-xs font-medium hover:border-rule-2 hover:text-ink transition-colors",children:[(0,d.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"w-3.5 h-3.5",children:[(0,d.jsx)("rect",{x:"3",y:"3",width:"8",height:"8",rx:"1"}),(0,d.jsx)("rect",{x:"5",y:"5",width:"8",height:"8",rx:"1"})]}),"Copy"]})]})}},95618:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{"000bd8157c910bf77772cc2cb9c4f81f1610d832cc":()=>g.A6,"00218821ab88df9394cf56763865a74ac442f22da7":()=>g.S9,"0084a11776601cd6136e9e880140b2129722a78468":()=>g.te,"009e5ca731f63c45e1966761276db46b2ae60ca53c":()=>f.k,"400cb808a9c061817e8d349921532a78dcf43c8b71":()=>h.uR,"400d8a21a1bf5fc96a9550cebf781eafac6bd8919a":()=>e.sc,"40197e4562d81a5a38d4dcf80bcdbbb1c85995832d":()=>h.X2,"402bbeb3e91ca0916272f7159778065334dfe7d448":()=>g.dP,"40441fc5a6341bfe063e9db7772193a1a043bfcc8f":()=>g.gL,"4051cbca859f5bd05098d09d04bc3dd1b5e48be8f4":()=>g.t8,"40554da7e37aaee6faf4fab6327cdfeb006bef80f1":()=>e.My,"405c5157869cc4cd2f63b1a8e4dafc2522077d04e0":()=>g.O0,"40620fec99ecf7c5964b221c1b989a37c00fe9c78a":()=>g.Vr,"4074c5de725bee02e0f663a2138b15d1e5e22aa677":()=>g.Kd,"4074e911becbb81bb6d5208451da6432e12876099b":()=>g.Vq,"40ac972db85279baeb887c6e0f585d5a163b7b3258":()=>h.vU,"40bd361728e465a1d4ea7a8b2dbb085f273d06532e":()=>g.zj,"40cb7c956c55a04d4400e77d3981caac044c187fcd":()=>e.W8,"40cc91a8a2422f52b934bbeaf370edacf4ebf80c75":()=>g.fn,"40e03646d17d361f60ef3b19c68f24afc0a5933c10":()=>h.lA,"40e95a60757035b9439ecd3476ae114f1acac531f4":()=>e.EY,"40ff3b3ceb10fbabd64248846fd364d973ff318685":()=>g.$A});var e=c(4420),f=c(27944),g=c(53675),h=c(34020),i=a([f]);f=(i.then?(await i)():i)[0],d()}catch(a){d(a)}})}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=3592,exports.ids=[3592],exports.modules={68299:(a,b,c)=>{c.d(b,{P:()=>l,em:()=>j,mB:()=>k});var d=c(84422),e=c(91919),f=c(84938),g=c(31990);let h=new Set(["completed","failed","cancelled"]),i={completed:"Done",failed:"Failed",cancelled:"Cancelled",processing:"Running",pending:"Pending",awaiting_approval:"Blocked",awaiting_delegation:"Waiting"};function j(a){let b=a??"pending",c=i[b]??b;return"completed"===b?{variant:"done",label:c}:"failed"===b||"cancelled"===b?{variant:"warn",label:c}:"processing"===b||"pending"===b||b.startsWith("awaiting")?{variant:"run",label:c}:{variant:"idle",label:c}}function k(a){let b=[`${a.steps} ${1===a.steps?"step":"steps"}`];return a.agents>0&&b.push(`${a.agents} ${1===a.agents?"agent":"agents"}`),null!==a.durationMs&&a.durationMs>0&&b.push((0,f._V)(a.durationMs)),b.join(" \xb7 ")}function l(a){var b,c,i,k,l;let m,n,o,p,q,r,s,t=function(a,b,c=!1,d=null){let f="relay"===d||null===d&&c,g=[...a];if(null===b.completedAt)return{reply:null,items:g};let h=g.findIndex(a=>"answer"===a.kind);if(h>=0){let a=g[h];return g.splice(h,1),{reply:f?null:a?.kind==="answer"?a.text:null,items:g}}if(f||g.some(a=>"failure"===a.kind))return{reply:null,items:g};let i=b.result?.trim()??"",j=g.map(a=>a.kind).lastIndexOf("turn"),k=j>=0?g[j]:void 0,l=void 0!==k&&"turn"===k.kind?k.blocks.map(a=>a.kind).lastIndexOf("prose"):-1,m=void 0!==k&&"turn"===k.kind?k.blocks[l]:void 0,n=void 0!==m&&"prose"===m.kind?m:null;if(""!==i&&(0,e.s2)(i,n?.text??null,d))return{reply:b.result??"",items:g};if(null===n||void 0===k||"turn"!==k.kind)return{reply:null,items:g};let o=k.blocks.filter((a,b)=>b!==l);return 0===o.length&&null===k.usage?g.splice(j,1):g[j]={...k,blocks:o},{reply:n.text,items:g}}(function(a,b){let c=a.findIndex(a=>"request"===a.kind),e=c>=0?a[c]:void 0;if(void 0===e||"request"!==e.kind||(0,d.fQ)(e.text)!==(0,d.fQ)(b))return[...a];let f=[...a];return f.splice(c,1),f}(a.feed.items,a.job.task),a.job,a.verdicts.length>0,a.job.resultKind),{delivered:u,items:v}=function(a){let b=[...a],c=b.findIndex(a=>"produced"===a.kind);if(c<0)return{delivered:null,items:b};let d=b[c];return b.splice(c,1),{delivered:d?.kind==="produced"?d:null,items:b}}(t.items);return{stats:(m=a.cost.totals,b=a.feed.items,n=new Set,o=!1,(p=a=>{for(let b of a){if("run"===b.kind){p(b.items);continue}if("child"===b.kind){b.job.feed&&p(b.job.feed.items);continue}if("turn"===b.kind)for(let a of b.blocks)for(let b of"card"===a.kind?[a.step]:"steps"===a.kind?a.steps:[]){if("tool"!==b.kind)continue;let a=b.presented;if(null!==a&&"files"===a.card)for(let b of(o=!0,a.files))"listed"!==b.action&&n.add(b.path)}}})(b),q=o?n.size:null,r=null!==a.job.createdAt,[{label:"Cost",value:null===m.costUsd?"—":`$${m.costUsd.toFixed(2)}`},{label:"Duration",value:r?(0,f._V)(m.durationMs):"—"},{label:"Input tokens",value:(0,f._y)(m.inputTokens)},{label:"Output tokens",value:(0,f._y)(m.outputTokens)},{label:"Cache reads",value:(0,f._y)(m.cachedTokens)},{label:"Files changed",value:null===q?"—":String(q)},{label:"Activity",value:(0,g.KW)(function(a){if(null!==a.job.completedAt)return a.job.completedAt;let b=null,c=a=>{for(let d of a)"run"===d.kind?c(d.items):"turn"===d.kind&&null!==d.at&&(null===b||d.at.getTime()>b.getTime())&&(b=d.at)};return c(a.feed.items),b??a.job.createdAt}(a))}]),origin:"cron"===(c=a.job).channel?null!==c.scheduleName&&""!==c.scheduleName?`scheduled \xb7 ${c.scheduleName}`:"scheduled":null!==c.parentJobId&&""!==c.parentJobId?"delegated":"api"===c.channel||"dashboard"===c.channel?"from the dashboard":"internal"===c.channel?"from another agent":"task-board"===c.channel?"from the task board":`via ${c.channel.charAt(0).toUpperCase()}${c.channel.slice(1)}`,model:(i=a.feed,(s=a=>{for(let b of a){if("turn"===b.kind&&null!==b.model&&""!==b.model)return b.model;if("run"===b.kind){let a=s(b.items);if(null!==a)return a}}return null})(i.items)??i.totals.models[0]??null),status:j(a.job.status),reply:t.reply,delivered:u,timeline:v,activity:(k=a.job,{steps:v.length,agents:(0,f.ze)(v).length,durationMs:null!==k.createdAt&&null!==k.completedAt?k.completedAt.getTime()-k.createdAt.getTime():null}),live:(l=a.job.status,!h.has(l??""))}}},81398:(a,b,c)=>{c.d(b,{A:()=>j});var d=c(27557),e=c(9073),f=c(84249),g=c(98302);let h={done:"Done",warn:"Attention",run:"Running",idle:"Idle","lvl-info":"INFO","lvl-ok":"OK","lvl-warn":"WARN","lvl-err":"ERR"},i={done:"bg-ok-bg text-ok",warn:"bg-warn-bg text-warn",run:"bg-run-bg text-run",idle:"bg-black/5 text-ink-3 dark:bg-white/5","lvl-info":"bg-black/5 text-ink-3 dark:bg-white/5","lvl-ok":"bg-ok-bg text-ok","lvl-warn":"bg-warn-bg text-warn","lvl-err":"bg-warn-bg text-err"};function j({variant:a,label:b,icon:c,className:k=""}){let l=b??h[a],m=null;return void 0!==c?m=c:"done"===a?m=(0,d.jsx)(e.r,{size:11,weight:"regular"}):"warn"===a?m=(0,d.jsx)(f.N,{size:11,weight:"regular"}):"run"===a&&(m=(0,d.jsx)(g.A,{variant:"blue",size:"sm"})),(0,d.jsxs)("span",{className:`inline-flex h-[22px] items-center gap-1.5 rounded-[5px] px-2.5 text-medium-12 leading-none! ${i[a]} ${k}`,children:[m,l]})}}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=409,exports.ids=[409],exports.modules={40409:(a,b,c)=>{c.d(b,{EBd:()=>_,YTi:()=>$,zw:()=>Z,KvV:()=>g,SVi:()=>aa,bpx:()=>as,XWN:()=>ar,MQp:()=>aq,mVm:()=>ac,CNy:()=>at,eSe:()=>ag,HgT:()=>ae,Cco:()=>ad,vMr:()=>an,hic:()=>am,$NF:()=>al,RMo:()=>J,X5e:()=>aj,VvF:()=>ao,I7q:()=>ah});var d=c(88226);let e=d.k5(["telegram","api","whatsapp","internal","cron","task-board","slack","discord","dashboard","webhook","mcp"]),f=d.k5(["pending","processing","completed","failed","awaiting_approval","awaiting_delegation","cancelled"]),g=["pending","processing","awaiting_approval","awaiting_delegation"],h=d.k5(["todo","in_progress","done","cancelled","blocked"]),i=d.k5(["low","medium","high"]),j=d.k5(["agent","orchestrator","system"]),k=d.k5(["router","planner"]),l=d.k5(["api_key","oauth2","bearer","basic","none"]),m=d.k5(["pending","approved","rejected","expired"]),n=d.k5(["auto_approve","require_approval","block"]),o=d.k5(["preference","context","outcome","learned_rule"]),p=d.k5(["agent","reflection","manual"]),q=d.k5(["L1","L2","L3"]),r=d.k5(["cron","heartbeat"]),s=d.k5(["success","failed","no_action"]),t=d.k5(["owner","admin","member","viewer"]),u=d.k5(["agency","startup","personal","studio","enterprise","other"]),v=d.k5(["read","write","destructive"]),w=["text","read","search","files","table","terminal","sent","checks","question","delegation","generic"];d.k5(w),d.k5(["http","stdio"]);let x=a=>d.Yj().max(a),y=d.Ik({card:d.eu("text"),text:x(4e3),failure:d.eu(!0).optional(),truncated:d.zM().optional()}),z=d.Ik({card:d.eu("read"),path:d.Yj().nullable(),excerpt:x(2e3),chars:d.ai().int().nonnegative(),truncated:d.zM(),sections:d.ai().int().nonnegative().optional()}),A=d.Ik({card:d.eu("search"),query:x(400),hits:d.YO(d.Ik({title:x(400),ref:x(400).optional(),snippet:x(400).optional()})).max(50),total:d.ai().int().nonnegative(),truncated:d.zM()}),B=d.Ik({name:x(400).optional(),columns:d.YO(x(200)).max(20),header:d.k5(["columns","unknown"]),rows:d.YO(d.YO(d.KC([x(200),d.ai(),d.ch()])).max(20)).max(50),total:d.ai().int().nonnegative(),truncated:d.zM(),clipped:d.zM(),columnsTotal:d.ai().int().nonnegative().optional()}),C=d.Ik({card:d.eu("files"),files:d.YO(d.Ik({path:x(400),action:d.k5(["created","modified","written","listed"]),bytes:d.ai().int().nonnegative().optional(),detail:x(400).optional(),preview:B.optional(),deliverableKey:x(400).optional()})).max(50),total:d.ai().int().nonnegative(),truncated:d.zM()}),D=d.Ik({card:d.eu("table"),tables:d.YO(B).min(1)}),E=d.Ik({card:d.eu("terminal"),command:x(2e3),exitCode:d.ai().int().nullable(),timedOut:d.zM(),stdoutTail:x(2e3),stdoutTruncated:d.zM(),stderrTail:x(2e3),stderrTruncated:d.zM(),cwd:x(400).optional()}),F=d.Ik({card:d.eu("sent"),channel:x(400),kind:d.k5(["message","file","image","video","audio","voice","dashboard"]),target:x(400).optional(),filename:x(400).optional(),bytes:d.ai().int().nonnegative().optional()}),G=d.Ik({card:d.eu("checks"),verdict:d.k5(["pass","fail"]),summary:x(4e3),items:d.YO(d.Ik({label:x(400),ok:d.zM(),ref:x(400).optional(),severity:x(400).optional()})).max(50),total:d.ai().int().nonnegative()}),H=d.Ik({card:d.eu("delegation"),to:x(400),task:x(2e3),ok:d.zM(),resultText:x(4e3).nullable(),error:x(400).nullable(),durationMs:d.ai().int().nonnegative().nullable(),costUsd:d.ai().nullable(),sessionId:x(400).nullable().optional()}),I=d.Ik({card:d.eu("question"),prompt:x(4e3),options:d.YO(x(400)).optional(),answer:x(400).nullable().optional()});function J(a){if("object"!=typeof a||null===a||"string"!=typeof a.question||""===a.question.trim()||!Array.isArray(a.options))return null;let b=a.options.filter(a=>"string"==typeof a);return b.length!==a.options.length||0===b.length?null:{question:a.question,options:b,context:"string"==typeof a.context&&""!==a.context.trim()?a.context:null}}let K=d.Ik({card:d.eu("generic")});d.gM("card",[y,z,A,C,D,E,F,G,H,I,K]),w.filter(a=>"text"!==a&&"generic"!==a),d.Yj().guid().brand(),d.Yj().guid().brand(),d.Yj().guid().brand(),d.Yj().guid().brand(),d.Yj().guid().brand(),d.Yj().guid().brand(),d.Yj().guid().brand(),d.Yj().guid().brand(),d.Yj().guid().brand(),d.Yj().guid().brand(),d.Yj().guid().brand(),d.Yj().guid().brand(),d.Yj().guid().brand(),d.Yj().guid().brand(),d.Yj().guid().brand(),d.Yj().guid().brand(),d.Ik({id:d.Yj().guid(),user_id:d.Yj().guid(),name:d.Yj().min(1).max(120),slug:d.Yj().min(1).max(80).regex(/^[a-z0-9-]+$/),description:d.Yj().max(500).nullable(),icon:d.Yj().max(4),industry:u.nullable(),goal:d.Yj().max(1e3).nullable(),mcp_token:d.Yj().guid().nullable(),created_at:d.Yj().datetime(),updated_at:d.Yj().datetime()}).strict().omit({id:!0,mcp_token:!0,created_at:!0,updated_at:!0}).extend({description:d.Yj().max(500).nullable().optional(),icon:d.Yj().max(4).default("\uD83C\uDFE2"),industry:u.nullable().optional(),goal:d.Yj().max(1e3).nullable().optional()}),d.Ik({id:d.Yj().guid(),entity_id:d.Yj().guid(),user_id:d.Yj().guid(),role:t,created_at:d.Yj().datetime()}).strict().omit({id:!0,created_at:!0}).extend({role:t.default("owner")}),d.Ik({user_id:d.Yj().guid(),display_name:d.Yj().max(120).nullable(),avatar_url:d.Yj().max(500).nullable(),timezone:d.Yj().max(80),locale:d.Yj().max(10),created_at:d.Yj().datetime(),updated_at:d.Yj().datetime()}).strict().omit({created_at:!0,updated_at:!0}).extend({display_name:d.Yj().max(120).nullable().optional(),avatar_url:d.Yj().max(500).nullable().optional(),timezone:d.Yj().max(80).default("UTC"),locale:d.Yj().max(10).default("en")}),d.Ik({id:d.Yj().guid(),entity_id:d.Yj().guid().nullable(),name:d.Yj().min(1).max(120),slug:d.Yj().min(1).max(80).regex(/^[a-z0-9-]+$/),personality:d.Yj().min(1),model:d.Yj().min(1),active:d.zM(),is_default:d.zM(),role:j,orchestrator_mode:k.nullable(),telegram_bot_token:d.Yj().nullable(),telegram_bot_username:d.Yj().nullable(),telegram_offset:d.ai().int().nonnegative().nullable(),capabilities:d.YO(d.Yj()),task_context_template:d.Yj().nullable(),avatar_url:d.Yj().nullable(),system_agent:d.zM(),max_tokens_per_job:d.ai().int().min(0),created_at:d.Yj().datetime(),updated_at:d.Yj().datetime()}).strict().omit({id:!0,created_at:!0,updated_at:!0,telegram_offset:!0,capabilities:!0,system_agent:!0}).extend({active:d.zM().default(!0),is_default:d.zM().default(!1),role:j.default("agent"),orchestrator_mode:k.nullable().optional(),telegram_bot_token:d.Yj().nullable().optional(),telegram_bot_username:d.Yj().nullable().optional(),task_context_template:d.Yj().nullable().optional(),avatar_url:d.Yj().nullable().optional(),max_tokens_per_job:d.ai().int().min(0).max(5e5).default(0)});let L=d.ai().int().min(0),M=d.ai().int().min(0);d.Ik({id:d.Yj().guid(),entity_id:d.Yj().guid().nullable(),agent_id:d.Yj().guid().nullable(),status:f,channel:e,task:d.Yj().min(1),original_task:d.Yj().nullable(),chat_id:d.Yj().nullable(),conversation_id:d.Yj().guid().nullable(),system_prompt:d.Yj().nullable(),messages:d.YO(d.g1(d.Yj(),d.L5())),tools_used:d.YO(d.Yj()),turn:d.ai().int().min(0),result:d.Yj().nullable(),error:d.Yj().nullable(),chain_count:L,request_id:d.Yj().nullable(),parent_job_id:d.Yj().guid().nullable(),parent_request_id:d.Yj().nullable(),total_duration_ms:d.ai().int().min(0),input_tokens:d.ai().int().min(0),output_tokens:d.ai().int().min(0),delegation_depth:M,pending_delegation:d.g1(d.Yj(),d.L5()).nullable(),completed_at:d.Yj().datetime().nullable(),created_at:d.Yj().datetime(),updated_at:d.Yj().datetime()}).strict().omit({id:!0,created_at:!0,updated_at:!0,completed_at:!0,messages:!0,tools_used:!0,turn:!0,result:!0,error:!0,chain_count:!0,total_duration_ms:!0,input_tokens:!0,output_tokens:!0,delegation_depth:!0,pending_delegation:!0,parent_request_id:!0}).extend({status:f.default("pending"),original_task:d.Yj().nullable().optional(),chat_id:d.Yj().nullable().optional(),conversation_id:d.Yj().guid().nullable().optional(),system_prompt:d.Yj().nullable().optional(),request_id:d.Yj().nullable().optional(),parent_job_id:d.Yj().guid().nullable().optional()});let N=d.Yj().max(2e3).nullable(),O=d.Yj().min(1).max(200);d.Ik({id:d.Yj().guid(),entity_id:d.Yj().guid(),orchestrator_id:d.Yj().guid(),title:O,description:N,status:h,priority:i,job_id:d.Yj().guid().nullable(),result:d.Yj().nullable(),created_by_agent_id:d.Yj().guid().nullable(),assigned_agent_id:d.Yj().guid().nullable(),input_tokens:d.ai().int().min(0),output_tokens:d.ai().int().min(0),cost_usd:d.ai().min(0),depends_on:d.YO(d.Yj().guid()),context:d.g1(d.Yj(),d.L5()),root_job_id:d.Yj().guid().nullable(),locked_at:d.Yj().datetime().nullable(),locked_by:d.Yj().nullable(),created_at:d.Yj().datetime(),updated_at:d.Yj().datetime()}).strict().omit({id:!0,created_at:!0,updated_at:!0,job_id:!0,result:!0,created_by_agent_id:!0,assigned_agent_id:!0,input_tokens:!0,output_tokens:!0,cost_usd:!0,depends_on:!0,context:!0,root_job_id:!0,locked_at:!0,locked_by:!0}).extend({status:h.default("todo"),priority:i.default("medium"),description:N.optional(),depends_on:d.YO(d.Yj().guid()).default([]),context:d.g1(d.Yj(),d.L5()).default({}),root_job_id:d.Yj().guid().nullable().optional()}),d.Ik({id:d.Yj().guid(),owner_user_id:d.Yj().guid(),name:d.Yj().min(1),type:d.k5(["google-oauth","notion-oauth","airtable-oauth","microsoft-oauth"]),payload:d.Yj(),created_at:d.p6().nullable(),updated_at:d.p6().nullable()}),d.Ik({clientId:d.Yj(),clientSecret:d.Yj(),refreshToken:d.Yj().nullable(),accessToken:d.Yj(),expiresAt:d.Yj().nullable(),scopes:d.Yj(),accountName:d.Yj(),tokenUrl:d.Yj().url()}),d.Ik({id:d.Yj().guid(),entity_id:d.Yj().guid().nullable(),name:d.Yj().min(1).max(120),slug:d.Yj().min(1).max(80).regex(/^[a-z0-9-]+$/),base_url:d.Yj().nullable(),api_key:d.Yj().nullable(),active:d.zM(),auth_type:l,credential_id:d.Yj().guid().nullable(),created_at:d.Yj().datetime(),updated_at:d.Yj().datetime()}).strict().omit({id:!0,created_at:!0,updated_at:!0}).extend({active:d.zM().default(!0),auth_type:l.default("api_key"),base_url:d.Yj().nullable().optional(),api_key:d.Yj().nullable().optional(),credential_id:d.Yj().guid().nullable().optional()}),d.Ik({id:d.Yj().guid(),entity_id:d.Yj().guid().nullable(),job_id:d.Yj().guid().nullable(),tool_name:d.Yj().min(1),tool_input:d.g1(d.Yj(),d.L5()).nullable(),tool_output:d.Yj().nullable(),duration_ms:d.ai().int().min(0).nullable(),turn:d.ai().int().min(0).nullable(),created_at:d.Yj().datetime()}).strict().omit({id:!0,created_at:!0}).extend({tool_input:d.g1(d.Yj(),d.L5()).nullable().optional(),tool_output:d.Yj().nullable().optional(),duration_ms:d.ai().int().min(0).nullable().optional(),turn:d.ai().int().min(0).nullable().optional()}),d.Ik({id:d.Yj().guid(),entity_id:d.Yj().guid().nullable(),job_id:d.Yj().guid(),agent_id:d.Yj().guid().nullable(),tool_name:d.Yj().min(1),tool_input:d.g1(d.Yj(),d.L5()),status:m,requested_at:d.Yj().datetime(),resolved_at:d.Yj().datetime().nullable(),resolved_by:d.Yj().nullable(),expires_at:d.Yj().datetime().nullable(),notes:d.Yj().nullable()}).strict().omit({id:!0,requested_at:!0,resolved_at:!0,resolved_by:!0,expires_at:!0}).extend({status:m.default("pending"),notes:d.Yj().nullable().optional()}),d.Ik({id:d.Yj().guid(),entity_id:d.Yj().guid().nullable(),agent_id:d.Yj().guid().nullable(),tool_name:d.Yj().min(1),action:n,condition_json:d.g1(d.Yj(),d.L5()),created_at:d.Yj().datetime(),updated_at:d.Yj().datetime()}).strict().omit({id:!0,created_at:!0,updated_at:!0}).extend({agent_id:d.Yj().guid().nullable().optional(),condition_json:d.g1(d.Yj(),d.L5()).default({})});let P=d.ai().int().min(1).max(5);d.Ik({id:d.Yj().guid(),entity_id:d.Yj().guid().nullable(),agent_id:d.Yj().guid().nullable(),fact:d.Yj().min(1),category:o,importance:P,source:p,skill_tags:d.YO(d.Yj().max(60)),memory_layer:q.nullable(),valid_from:d.Yj().datetime().nullable(),valid_to:d.Yj().datetime().nullable(),fact_hash:d.Yj().nullable(),archived:d.zM(),importance_locked:d.zM().default(!1),last_accessed_at:d.Yj().datetime().nullable(),access_count:d.ai().int().min(0),created_at:d.Yj().datetime(),updated_at:d.Yj().datetime()}).strict().omit({id:!0,created_at:!0,updated_at:!0,fact_hash:!0,archived:!0,importance_locked:!0,last_accessed_at:!0,access_count:!0,valid_from:!0,valid_to:!0}).extend({agent_id:d.Yj().guid().nullable().optional(),category:o.default("context"),importance:P.default(3),source:p.default("manual"),skill_tags:d.YO(d.Yj().max(60)).max(20).default([]),memory_layer:q.nullable().optional()}),d.Ik({id:d.Yj().guid(),entity_id:d.Yj().guid().nullable(),agent_id:d.Yj().guid().nullable(),name:d.Yj().min(1).max(120),slug:d.Yj().min(1).max(80).regex(/^[a-z0-9-]+$/),task_template:d.Yj().min(1),active:d.zM(),secret:d.Yj().nullable(),last_triggered_at:d.Yj().datetime().nullable(),trigger_count:d.ai().int().min(0),created_at:d.Yj().datetime(),updated_at:d.Yj().datetime()}).strict().omit({id:!0,created_at:!0,updated_at:!0,secret:!0,last_triggered_at:!0,trigger_count:!0}).extend({active:d.zM().default(!0)});let Q=d.Ik({name:d.Yj().min(1),slug:d.Yj().min(1).regex(/^[a-z0-9-]+$/),risk:v,requires_approval:d.zM()}).strict(),R=d.Ik({label:d.Yj().min(1),description:d.Yj().min(1),type:d.k5(["connector_slug","manual"]),value:d.Yj().optional(),critical:d.zM()}).strict();d.Ik({id:d.Yj().guid(),entity_id:d.Yj().guid().nullable(),name:d.Yj().min(1).max(120),slug:d.Yj().min(1).max(80).regex(/^[a-z0-9-]+$/),content:d.Yj().min(1),active:d.zM(),description:d.Yj().max(300).nullable(),default_content:d.Yj().nullable(),content_overridden:d.zM(),required_config:d.YO(R),operations:d.YO(Q),required_builtins:d.YO(d.Yj()),created_at:d.Yj().datetime(),updated_at:d.Yj().datetime()}).strict().omit({id:!0,created_at:!0,updated_at:!0}).extend({active:d.zM().default(!0),description:d.Yj().max(300).nullable().optional(),default_content:d.Yj().nullable().optional(),content_overridden:d.zM().default(!1),required_config:d.YO(R).default([]),operations:d.YO(Q).default([]),required_builtins:d.YO(d.Yj()).default([])}),d.Ik({id:d.Yj().guid(),entity_id:d.Yj().guid(),agent_id:d.Yj().guid(),skill_id:d.Yj().guid(),use_custom_instructions:d.zM(),enabled_operations:d.YO(d.Yj()).nullable(),created_at:d.Yj().datetime()}).strict().omit({id:!0,created_at:!0}).extend({use_custom_instructions:d.zM().default(!1),enabled_operations:d.YO(d.Yj()).nullable().optional()}),d.Ik({id:d.Yj().guid(),entity_id:d.Yj().guid().nullable(),agent_id:d.Yj().guid(),type:r,name:d.Yj().min(1).max(120),cron_expr:d.Yj().min(1),task:d.Yj().nullable(),objectives:d.Yj().nullable(),active:d.zM(),last_run:d.Yj().datetime().nullable(),next_run:d.Yj().datetime().nullable(),last_status:s.nullable(),chat_id:d.Yj().nullable(),created_at:d.Yj().datetime(),updated_at:d.Yj().datetime()}).strict().omit({id:!0,created_at:!0,updated_at:!0,last_run:!0,next_run:!0,last_status:!0}).extend({type:r.default("cron"),active:d.zM().default(!0),task:d.Yj().nullable().optional(),objectives:d.Yj().nullable().optional(),chat_id:d.Yj().nullable().optional()}),d.Ik({id:d.Yj().guid(),entity_id:d.Yj().guid(),provider:d.Yj().min(1),api_key:d.Yj(),base_url:d.Yj().nullable(),nickname:d.Yj().max(80).nullable(),is_active:d.zM(),created_at:d.Yj().datetime(),updated_at:d.Yj().datetime()}).strict().omit({id:!0,created_at:!0,updated_at:!0}).extend({api_key:d.Yj().default(""),base_url:d.Yj().nullable().optional(),nickname:d.Yj().max(80).nullable().optional(),is_active:d.zM().default(!0)});let S=d.k5(["telegram","discord","slack","whatsapp"]),T=d.Ik({id:d.Yj().optional(),username:d.Yj().optional(),displayName:d.Yj().optional()}).strict();d.Ik({id:d.Yj().guid(),entity_id:d.Yj().guid().nullable(),agent_id:d.Yj().guid(),channel:S,credentials:d.Yj(),bot_identity:T.nullable(),cursor:d.Yj().nullable(),enabled:d.zM(),created_at:d.Yj().datetime(),updated_at:d.Yj().datetime()}).strict().omit({id:!0,created_at:!0,updated_at:!0}).extend({entity_id:d.Yj().guid().nullable().optional(),bot_identity:T.nullable().optional(),cursor:d.Yj().nullable().optional(),enabled:d.zM().default(!0)});let U=d.k5(["private","group","channel","thread"]),V=d.k5(["owner","member"]),W=d.k5(["active","pending"]);d.Ik({id:d.Yj().guid(),entity_id:d.Yj().guid().nullable(),agent_id:d.Yj().guid(),channel:S,conversation_id:d.Yj(),kind:U,role:V,status:W,requester_name:d.Yj().nullable(),created_at:d.Yj().datetime(),updated_at:d.Yj().datetime()}).strict().omit({id:!0,created_at:!0,updated_at:!0}).extend({entity_id:d.Yj().guid().nullable().optional(),kind:U.default("private"),role:V.default("member"),status:W.default("pending"),requester_name:d.Yj().nullable().optional()});let X=["https://www.googleapis.com/auth/userinfo.email","openid"];[...X],[...X],[...X],[...X],[...X];let Y=d.k5(["propose_confirm","destructive_gate","fully_autonomous"]);d.Ik({createAgent:d.zM(),updateAgent:d.zM(),attachAgent:d.zM(),createSkill:d.zM(),updateSkill:d.zM(),assignSkill:d.zM(),createMcp:d.zM(),attachMcp:d.zM(),createConnector:d.zM(),attachConnector:d.zM(),manageSchedules:d.zM(),autonomy:Y});let Z={createAgent:!0,updateAgent:!0,attachAgent:!0,createSkill:!0,updateSkill:!0,assignSkill:!0,createMcp:!0,attachMcp:!0,createConnector:!0,attachConnector:!0,manageSchedules:!0,autonomy:"propose_confirm"},$=[{slug:"notion",label:"Notion",authType:"api_key",category:"Productivity",docsHint:"Create a Notion integration at notion.so/my-integrations and copy its internal secret."},{slug:"notion-oauth",label:"Notion (OAuth)",authType:"oauth2",credentialType:"notion-oauth",category:"Productivity",docsHint:"Public Integration via OAuth — create one at notion.so/my-integrations (Public type) and authorize from your dashboard."},{slug:"google-drive",label:"Google Drive",authType:"oauth2",credentialType:"google-oauth",category:"Productivity",docsHint:"OAuth flow — uses your Google credential (create one under Credentials).",scopeDisclosure:"Grants access to your ENTIRE Google Drive — every file, read and write — not only the files agents create. Google offers no narrower scope that still lets an agent open a file you already have."},{slug:"gmail",label:"Gmail",authType:"oauth2",credentialType:"google-oauth",category:"Productivity",docsHint:"OAuth flow — uses your Google credential (create one under Credentials)."},{slug:"google-calendar",label:"Google Calendar",authType:"oauth2",credentialType:"google-oauth",category:"Productivity",docsHint:"OAuth flow — uses your Google credential (create one under Credentials).",scopeDisclosure:"Grants event access on your calendars (create, edit, delete events) and the ability to list them. It cannot create or delete calendars themselves."},{slug:"google-sheets",label:"Google Sheets",authType:"oauth2",credentialType:"google-oauth",category:"Productivity",docsHint:"OAuth flow — uses your Google credential (create one under Credentials).",scopeDisclosure:"Grants access to ALL your spreadsheets, read and write. A read-only scope exists but would disable every editing tool."},{slug:"google-docs",label:"Google Docs",authType:"oauth2",credentialType:"google-oauth",category:"Productivity",docsHint:"OAuth flow — uses your Google credential (create one under Credentials).",scopeDisclosure:"Grants access to ALL your documents, read and write. A read-only scope exists but would disable document creation and editing."},{slug:"airtable-oauth",label:"Airtable (OAuth)",authType:"oauth2",credentialType:"airtable-oauth",category:"Productivity",docsHint:"OAuth flow for Airtable Public Integrations (recommended)."},{slug:"outlook-mail",label:"Outlook Mail",authType:"oauth2",credentialType:"microsoft-oauth",category:"Productivity",docsHint:"OAuth flow — uses your Microsoft credential (create one under Credentials)."},{slug:"airtable",label:"Airtable",authType:"api_key",category:"Productivity",docsHint:"Personal Access Token — airtable.com/create/tokens."},{slug:"apify",label:"Apify",authType:"api_key",category:"Data",docsHint:"Apify API token — console.apify.com/account/integrations."},{slug:"firecrawl",label:"Firecrawl",authType:"api_key",category:"Data",docsHint:"Firecrawl API key — firecrawl.dev/account."},{slug:"cloudflare",label:"Cloudflare",authType:"api_key",category:"DevTools",docsHint:'Cloudflare API Token — dash.cloudflare.com → My Profile → API Tokens → template "Edit Cloudflare Workers" (includes Workers Scripts:Write, Account Settings:Read). Scope it to ONE account.'},{slug:"tavily",label:"Tavily",authType:"api_key",category:"Data",docsHint:"Tavily API key — app.tavily.com."},{slug:"poyo",label:"Poyo",authType:"api_key",category:"Creative",docsHint:"Poyo API key — poyo.ai (API Console). Sent as a Bearer token."}],_=[{slug:"comfyui",name:"ComfyUI",description:"Generate images, video and audio with your own ComfyUI (local, Desktop or Cloud) — run any workflow with parameter injection. Requires a running ComfyUI + python3.",source:"NousResearch/hermes-agent/skills/creative/comfyui",sourceHost:"github",category:"Creative"},{slug:"excel-author",name:"Excel author",description:"Build auditable Excel workbooks headlessly (openpyxl) — real formulas instead of hardcoded values, cell-colour conventions and balance checks. Needs python3.",source:"NousResearch/hermes-agent/optional-skills/finance/excel-author",sourceHost:"github",category:"Office & documents"},{slug:"pptx-author",name:"PowerPoint author",description:"Generate PowerPoint decks headlessly (python-pptx) — slides, speaker notes and templates, with numbers traceable back to a workbook. Needs python3.",source:"NousResearch/hermes-agent/optional-skills/finance/pptx-author",sourceHost:"github",category:"Office & documents"},{slug:"ocr-and-documents",name:"PDF & OCR",description:"Extract text from PDFs and scanned images (pymupdf, marker-pdf) — searchable text out of documents that have none. Needs python3.",source:"NousResearch/hermes-agent/skills/productivity/ocr-and-documents",sourceHost:"github",category:"Office & documents"},{slug:"nano-pdf",name:"PDF editor",description:"Edit PDF text, fix typos and change titles from natural-language prompts (nano-pdf CLI) — no re-export from the source document.",source:"NousResearch/hermes-agent/skills/productivity/nano-pdf",sourceHost:"github",category:"Office & documents"},{slug:"youtube-content",name:"YouTube content",description:"Turn YouTube videos into summaries, threads and blog posts from their transcripts — no video download.",source:"NousResearch/hermes-agent/skills/media/youtube-content",sourceHost:"github",category:"Media"},{slug:"whisper",name:"Whisper speech-to-text",description:"Local speech-to-text in 99 languages (OpenAI Whisper) — transcription and translation, offline. Needs python3.",source:"NousResearch/hermes-agent/optional-skills/mlops/whisper",sourceHost:"github",category:"Media"},{slug:"osint-investigation",name:"OSINT investigation",description:"Public-records OSINT — SEC EDGAR filings, USAspending contracts, sanctions lists and court records, with entity resolution. No API key (stdlib only).",source:"NousResearch/hermes-agent/optional-skills/research/osint-investigation",sourceHost:"github",category:"Research"},{slug:"stocks",name:"Stocks & crypto",description:"Stock quotes, history, comparison and crypto prices via Yahoo Finance. No API key.",source:"NousResearch/hermes-agent/optional-skills/finance/stocks",sourceHost:"github",category:"Finance"},{slug:"doc-coauthoring",name:"Doc co-authoring",description:"Structured workflow to co-author docs, proposals, specs and decision documents.",source:"anthropics/skills/skills/doc-coauthoring",sourceHost:"github",category:"Office & documents"},{slug:"skill-creator",name:"Skill creator",description:"Create, evaluate and package new agent skills — Anthropic's official skill scaffolder.",source:"anthropics/skills/skills/skill-creator",sourceHost:"github",category:"Development"},{slug:"mcp-builder",name:"MCP builder",description:"Guidance for building well-designed MCP servers with good tools.",source:"anthropics/skills/skills/mcp-builder",sourceHost:"github",category:"Development"},{slug:"webapp-testing",name:"Web app testing",description:"Test and debug local web apps with Playwright — screenshots, console logs, server lifecycle. Needs python3.",source:"anthropics/skills/skills/webapp-testing",sourceHost:"github",category:"Development"},{slug:"frontend-design",name:"Frontend design",description:"Opinionated guidance for distinctive, intentional UI and visual design (one of the most-installed skills).",source:"anthropics/skills/skills/frontend-design",sourceHost:"github",category:"Design"},{slug:"canvas-design",name:"Canvas design",description:"Design-philosophy-driven visual art as PNG/PDF compositions.",source:"anthropics/skills/skills/canvas-design",sourceHost:"github",category:"Design"},{slug:"theme-factory",name:"Theme factory",description:"Style artifacts (slides, docs, HTML) with preset or custom themes.",source:"anthropics/skills/skills/theme-factory",sourceHost:"github",category:"Design"},{slug:"algorithmic-art",name:"Algorithmic art",description:"Generative art via p5.js (flow fields, particles) as self-contained HTML.",source:"anthropics/skills/skills/algorithmic-art",sourceHost:"github",category:"Media"},{slug:"internal-comms",name:"Internal comms",description:"Write internal company communications in preferred formats.",source:"anthropics/skills/skills/internal-comms",sourceHost:"github",category:"Productivity"},{slug:"test-driven-development",name:"Test-driven development",description:"Enforce RED-GREEN-REFACTOR — write tests before code (Superpowers).",source:"obra/superpowers/skills/test-driven-development",sourceHost:"github",category:"Development"},{slug:"systematic-debugging",name:"Systematic debugging",description:"Hypothesis-first structured debugging — understand before fixing (Superpowers).",source:"obra/superpowers/skills/systematic-debugging",sourceHost:"github",category:"Development"},{slug:"writing-plans",name:"Writing plans",description:"Turn a spec into an actionable, checkpointed implementation plan (Superpowers).",source:"obra/superpowers/skills/writing-plans",sourceHost:"github",category:"Development"},{slug:"verification-before-completion",name:"Verify before done",description:"Show real evidence before claiming a task is complete (Superpowers).",source:"obra/superpowers/skills/verification-before-completion",sourceHost:"github",category:"Development"},{slug:"using-git-worktrees",name:"Git worktrees",description:"Isolated parallel workspaces with git worktrees (Superpowers).",source:"obra/superpowers/skills/using-git-worktrees",sourceHost:"github",category:"Development"},{slug:"find-skills",name:"Find skills",description:"Discover and install agent skills on demand (Vercel) — the most-installed skill.",source:"vercel-labs/skills/skills/find-skills",sourceHost:"github",category:"Development"},{slug:"agent-browser",name:"Agent browser",description:"Drive a real browser for agent tasks (Vercel). Needs the browser runtime.",source:"vercel-labs/agent-browser/skills/agent-browser",sourceHost:"github",category:"Web"},{slug:"react-best-practices",name:"React best practices",description:"React patterns and performance guidance (Vercel).",source:"vercel-labs/agent-skills/skills/react-best-practices",sourceHost:"github",category:"Development"},{slug:"web-design-guidelines",name:"Web design guidelines",description:"Practical web design heuristics and guidelines (Vercel).",source:"vercel-labs/agent-skills/skills/web-design-guidelines",sourceHost:"github",category:"Design"},{slug:"playwright",name:"Playwright browser",description:"Browser automation — navigate, fill forms, scrape (OpenAI). Needs the Playwright runtime.",source:"openai/skills/skills/.curated/playwright",sourceHost:"github",category:"Web"},{slug:"supabase-postgres-best-practices",name:"Supabase / Postgres",description:"Postgres & Supabase schema, RLS and query best practices (Supabase).",source:"supabase/agent-skills/skills/supabase-postgres-best-practices",sourceHost:"github",category:"Development"},{slug:"workers-best-practices",name:"Cloudflare Workers",description:"Author and review Cloudflare Workers code (Cloudflare).",source:"cloudflare/skills/skills/workers-best-practices",sourceHost:"github",category:"Development"},{slug:"firecrawl-scrape",name:"Firecrawl scrape",description:"Scrape any page to clean markdown via Firecrawl. Needs a Firecrawl API key.",source:"firecrawl/firecrawl-claude-plugin/skills/firecrawl-scrape",sourceHost:"github",category:"Web"},{slug:"firecrawl-search",name:"Firecrawl search",description:"Web search via Firecrawl. Needs a Firecrawl API key.",source:"firecrawl/firecrawl-claude-plugin/skills/firecrawl-search",sourceHost:"github",category:"Web"},{slug:"semgrep",name:"Semgrep static analysis",description:"Find security bugs with Semgrep static analysis (Trail of Bits). Needs python3.",source:"trailofbits/skills/plugins/static-analysis/skills/semgrep",sourceHost:"github",category:"Security"},{slug:"codeql",name:"CodeQL static analysis",description:"CodeQL static analysis for security review (Trail of Bits).",source:"trailofbits/skills/plugins/static-analysis/skills/codeql",sourceHost:"github",category:"Security"},{slug:"dcf-model",name:"DCF model",description:"Build institutional-quality DCF valuation models in Excel. Needs python3.",source:"NousResearch/hermes-agent/optional-skills/finance/dcf-model",sourceHost:"github",category:"Finance"},{slug:"3-statement-model",name:"3-statement model",description:"Build fully-integrated 3-statement models (income, balance, cash flow) in Excel.",source:"NousResearch/hermes-agent/optional-skills/finance/3-statement-model",sourceHost:"github",category:"Finance"},{slug:"lbo-model",name:"LBO model",description:"Leveraged-buyout models — sources & uses, debt schedule, IRR/MOIC, in Excel.",source:"NousResearch/hermes-agent/optional-skills/finance/lbo-model",sourceHost:"github",category:"Finance"},{slug:"comps-analysis",name:"Comps analysis",description:"Comparable-company analysis — trading multiples and benchmarking, in Excel.",source:"NousResearch/hermes-agent/optional-skills/finance/comps-analysis",sourceHost:"github",category:"Finance"},{slug:"merger-model",name:"Merger model",description:"Accretion/dilution merger models — pro-forma P&L and EPS impact, in Excel.",source:"NousResearch/hermes-agent/optional-skills/finance/merger-model",sourceHost:"github",category:"Finance"},{slug:"remotion",name:"Remotion video",description:"Programmatic video with React via Remotion (official). Needs node.",source:"remotion-dev/skills/skills/remotion",sourceHost:"github",category:"Media"}],aa={deepseek:[{modelId:"deepseek-chat",label:"DeepSeek Chat (V3)",capabilities:{tools:!0,forcedToolChoice:!0},contextWindow:128e3,pricing:{inputPerMillionUsd:.27,outputPerMillionUsd:1.1}},{modelId:"deepseek-reasoner",label:"DeepSeek Reasoner (R1)",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"onoff"}},contextWindow:128e3,pricing:{inputPerMillionUsd:.55,outputPerMillionUsd:2.19}}],minimax:[{modelId:"MiniMax-M3",label:"MiniMax M3",capabilities:{tools:!0,forcedToolChoice:!1,reasoning:!0,reasoningControl:{kind:"budget",budgets:{low:4e3,medium:8e3,high:16e3,max:32e3}}},contextWindow:1048576,pricing:{inputPerMillionUsd:.3,outputPerMillionUsd:1.2,cacheReadPerMillionUsd:.06}},{modelId:"MiniMax-M2.7",label:"MiniMax M2.7",capabilities:{tools:!0,forcedToolChoice:!1},contextWindow:2e5,pricing:{inputPerMillionUsd:.3,outputPerMillionUsd:1.2,cacheReadPerMillionUsd:.06}},{modelId:"MiniMax-M2",label:"MiniMax M2",capabilities:{tools:!0,forcedToolChoice:!1},contextWindow:2e5,pricing:{inputPerMillionUsd:.255,outputPerMillionUsd:1.02}}],moonshot:[{modelId:"kimi-k2.6",label:"Kimi K2.6",capabilities:{tools:!0,forcedToolChoice:!1,reasoning:!0,reasoningControl:{kind:"onoff",mandatory:!0}},contextWindow:262144,pricing:{inputPerMillionUsd:.95,outputPerMillionUsd:4,cacheReadPerMillionUsd:.16}},{modelId:"kimi-k2.7-code",label:"Kimi K2.7 Code",capabilities:{tools:!0,forcedToolChoice:!1,reasoning:!0,reasoningControl:{kind:"onoff",mandatory:!0}},contextWindow:262144,pricing:{inputPerMillionUsd:.7,outputPerMillionUsd:3.5,cacheReadPerMillionUsd:.18}},{modelId:"kimi-k3",label:"Kimi K3",capabilities:{tools:!0,forcedToolChoice:!1,reasoning:!0,reasoningControl:{kind:"effort",levels:["max"],mandatory:!0}},contextWindow:1048576,pricing:{inputPerMillionUsd:3,outputPerMillionUsd:15,cacheReadPerMillionUsd:.3}}],anthropic:[{modelId:"claude-opus-5",label:"Claude Opus 5",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"adaptive-effort",levels:["low","medium","high","max"]}},contextWindow:1e6,pricing:{inputPerMillionUsd:5,outputPerMillionUsd:25,cacheReadPerMillionUsd:.5,cacheWritePerMillionUsd:6.25}},{modelId:"claude-sonnet-5",label:"Claude Sonnet 5",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"adaptive-effort",levels:["low","medium","high","max"]}},contextWindow:1e6,pricing:{inputPerMillionUsd:2,outputPerMillionUsd:10,cacheReadPerMillionUsd:.2,cacheWritePerMillionUsd:2.5}},{modelId:"claude-fable-5",label:"Claude Fable 5",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"adaptive-effort",levels:["low","medium","high","max"]}},contextWindow:1e6,pricing:{inputPerMillionUsd:10,outputPerMillionUsd:50,cacheReadPerMillionUsd:1,cacheWritePerMillionUsd:12.5}},{modelId:"claude-opus-4-8",label:"Claude Opus 4.8",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"adaptive-effort",levels:["low","medium","high","max"]}},contextWindow:2e5,pricing:{inputPerMillionUsd:5,outputPerMillionUsd:25,cacheReadPerMillionUsd:.5,cacheWritePerMillionUsd:6.25}},{modelId:"claude-sonnet-4-6",label:"Claude Sonnet 4.6",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"adaptive-effort",levels:["low","medium","high","max"]}},contextWindow:2e5,pricing:{inputPerMillionUsd:3,outputPerMillionUsd:15,cacheReadPerMillionUsd:.3,cacheWritePerMillionUsd:3.75}},{modelId:"claude-haiku-4-5-20251001",label:"Claude Haiku 4.5",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"budget",budgets:{low:4e3,medium:8e3,high:16e3,max:32e3}}},contextWindow:2e5,pricing:{inputPerMillionUsd:1,outputPerMillionUsd:5,cacheReadPerMillionUsd:.1,cacheWritePerMillionUsd:1.25}}],openai:[{modelId:"gpt-5",label:"GPT-5",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high"],mandatory:!0}},contextWindow:4e5,pricing:{inputPerMillionUsd:1.25,outputPerMillionUsd:10,cacheReadPerMillionUsd:.125}},{modelId:"gpt-5-mini",label:"GPT-5 mini",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high"],mandatory:!0}},contextWindow:4e5,pricing:{inputPerMillionUsd:.25,outputPerMillionUsd:2,cacheReadPerMillionUsd:.025}}],google:[{modelId:"gemini-3.7-flash",label:"Gemini 3.7 Flash",capabilities:{tools:!0,forcedToolChoice:!1,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high"],mandatory:!0}},contextWindow:1048576,pricing:{inputPerMillionUsd:.75,outputPerMillionUsd:3.75,cacheReadPerMillionUsd:.075,cacheWritePerMillionUsd:.0416667}},{modelId:"gemini-3.5-flash",label:"Gemini 3.5 Flash",capabilities:{tools:!0,forcedToolChoice:!1,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high"],mandatory:!0}},contextWindow:1048576,pricing:{inputPerMillionUsd:1.5,outputPerMillionUsd:9,cacheReadPerMillionUsd:.15,cacheWritePerMillionUsd:.0833333}},{modelId:"gemini-3.1-pro-preview",label:"Gemini 3.1 Pro (preview)",capabilities:{tools:!0,forcedToolChoice:!1,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high"],mandatory:!0}},contextWindow:1048576,pricing:{inputPerMillionUsd:2,outputPerMillionUsd:12,cacheReadPerMillionUsd:.2,cacheWritePerMillionUsd:.375}}],groq:[{modelId:"llama-3.3-70b-versatile",label:"Llama 3.3 70B",capabilities:{tools:!0,forcedToolChoice:!0},contextWindow:131072}],mistral:[{modelId:"mistral-large-latest",label:"Mistral Large",capabilities:{tools:!0,forcedToolChoice:!0},contextWindow:131072}],openrouter:[{modelId:"anthropic/claude-opus-5",label:"Claude Opus 5",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:1e6,pricing:{inputPerMillionUsd:5,outputPerMillionUsd:25,cacheReadPerMillionUsd:.5,cacheWritePerMillionUsd:6.25}},{modelId:"anthropic/claude-sonnet-5",label:"Claude Sonnet 5",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:1e6,pricing:{inputPerMillionUsd:2,outputPerMillionUsd:10,cacheReadPerMillionUsd:.2,cacheWritePerMillionUsd:2.5}},{modelId:"anthropic/claude-fable-5",label:"Claude Fable 5",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:1e6,pricing:{inputPerMillionUsd:10,outputPerMillionUsd:50,cacheReadPerMillionUsd:1,cacheWritePerMillionUsd:12.5}},{modelId:"anthropic/claude-fable-5.1",label:"Claude Fable 5.1",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"],mandatory:!0}},contextWindow:1e6,pricing:{inputPerMillionUsd:10,outputPerMillionUsd:50,cacheReadPerMillionUsd:.25,cacheWritePerMillionUsd:12.5}},{modelId:"openai/gpt-5.6-luna",label:"GPT-5.6 Luna",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:105e4,pricing:{inputPerMillionUsd:.2,outputPerMillionUsd:1.2,cacheReadPerMillionUsd:.02,cacheWritePerMillionUsd:.25}},{modelId:"openai/gpt-5.6-luna-pro",label:"GPT-5.6 Luna Pro",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:105e4,pricing:{inputPerMillionUsd:.2,outputPerMillionUsd:1.2,cacheReadPerMillionUsd:.02,cacheWritePerMillionUsd:.25}},{modelId:"openai/gpt-5.6-terra-pro",label:"GPT-5.6 Terra Pro",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:105e4,pricing:{inputPerMillionUsd:2,outputPerMillionUsd:12,cacheReadPerMillionUsd:.2,cacheWritePerMillionUsd:2.5}},{modelId:"openai/gpt-5.6-terra",label:"GPT-5.6 Terra",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:105e4,pricing:{inputPerMillionUsd:2,outputPerMillionUsd:12,cacheReadPerMillionUsd:.2,cacheWritePerMillionUsd:2.5}},{modelId:"openai/gpt-5.6-sol",label:"GPT-5.6 Sol",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:105e4,pricing:{inputPerMillionUsd:2,outputPerMillionUsd:10,cacheReadPerMillionUsd:.2,cacheWritePerMillionUsd:2.5}},{modelId:"openai/gpt-5.6-sol-pro",label:"GPT-5.6 Sol Pro",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:105e4,pricing:{inputPerMillionUsd:2,outputPerMillionUsd:10,cacheReadPerMillionUsd:.2,cacheWritePerMillionUsd:2.5}},{modelId:"openai/gpt-6-astra",label:"GPT-6 Astra",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"],mandatory:!0}},contextWindow:105e4,pricing:{inputPerMillionUsd:10,outputPerMillionUsd:50,cacheReadPerMillionUsd:1,cacheWritePerMillionUsd:12.5}},{modelId:"openai/gpt-6-astra-pro",label:"GPT-6 Astra Pro",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"],mandatory:!0}},contextWindow:105e4,pricing:{inputPerMillionUsd:10,outputPerMillionUsd:50,cacheReadPerMillionUsd:1,cacheWritePerMillionUsd:12.5}},{modelId:"anthropic/claude-haiku-4.5",label:"Claude Haiku 4.5",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:2e5,pricing:{inputPerMillionUsd:1,outputPerMillionUsd:5,cacheReadPerMillionUsd:.1,cacheWritePerMillionUsd:1.25}},{modelId:"anthropic/claude-opus-4.7",label:"Claude Opus 4.7",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:1e6,pricing:{inputPerMillionUsd:5,outputPerMillionUsd:25,cacheReadPerMillionUsd:.5,cacheWritePerMillionUsd:6.25}},{modelId:"anthropic/claude-opus-4.8",label:"Claude Opus 4.8",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:1e6,pricing:{inputPerMillionUsd:5,outputPerMillionUsd:25,cacheReadPerMillionUsd:.5,cacheWritePerMillionUsd:6.25}},{modelId:"anthropic/claude-sonnet-4.6",label:"Claude Sonnet 4.6",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:1e6,pricing:{inputPerMillionUsd:3,outputPerMillionUsd:15,cacheReadPerMillionUsd:.3,cacheWritePerMillionUsd:3.75}},{modelId:"deepseek/deepseek-v3.2",label:"DeepSeek V3.2",capabilities:{tools:!0,forcedToolChoice:!0},contextWindow:131072,pricing:{inputPerMillionUsd:.269,outputPerMillionUsd:.4,cacheReadPerMillionUsd:.1345}},{modelId:"deepseek/deepseek-v4-flash",label:"DeepSeek V4 Flash",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:1048576,providerOrder:["deepseek"],pricing:{inputPerMillionUsd:.08246,outputPerMillionUsd:.16492,cacheReadPerMillionUsd:.016492}},{modelId:"deepseek/deepseek-v4-flash-0731",label:"DeepSeek V4 Flash (0731)",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:1048576,pricing:{inputPerMillionUsd:.065,outputPerMillionUsd:.18,cacheReadPerMillionUsd:.016},providerOrder:["deepseek"]},{modelId:"deepseek/deepseek-v4-pro",label:"DeepSeek V4 Pro",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:1048576,providerOrder:["deepseek"],pricing:{inputPerMillionUsd:.778824,outputPerMillionUsd:1.55765,cacheReadPerMillionUsd:.064902}},{modelId:"deepseek/deepseek-v4-pro-0813",label:"DeepSeek V4 Pro (0813)",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","high","max"]}},contextWindow:1048576,providerOrder:["deepseek"],pricing:{inputPerMillionUsd:.66,outputPerMillionUsd:1.98,cacheReadPerMillionUsd:.022}},{modelId:"deepseek/deepseek-v4.1-flash",label:"DeepSeek V4.1 Flash",capabilities:{tools:!0,forcedToolChoice:!1,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","high","max"]}},contextWindow:1048576,providerOrder:["deepseek"],pricing:{inputPerMillionUsd:.15,outputPerMillionUsd:.6,cacheReadPerMillionUsd:.003}},{modelId:"google/gemini-3.1-flash-lite-preview",label:"Gemini 3.1 Flash Lite (preview)",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:1048576,pricing:{inputPerMillionUsd:.25,outputPerMillionUsd:1.5,cacheReadPerMillionUsd:.025,cacheWritePerMillionUsd:.0833333}},{modelId:"google/gemini-3.1-pro-preview",label:"Gemini 3.1 Pro (preview)",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:1048576,pricing:{inputPerMillionUsd:2,outputPerMillionUsd:12,cacheReadPerMillionUsd:.2,cacheWritePerMillionUsd:.375}},{modelId:"google/gemini-3.5-flash",label:"Gemini 3.5 Flash",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:1048576,pricing:{inputPerMillionUsd:1.5,outputPerMillionUsd:9,cacheReadPerMillionUsd:.15,cacheWritePerMillionUsd:.0833333}},{modelId:"google/gemini-3.6-flash",label:"Gemini 3.6 Flash",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high"],mandatory:!0}},contextWindow:1048576,pricing:{inputPerMillionUsd:.75,outputPerMillionUsd:3.75,cacheReadPerMillionUsd:.075,cacheWritePerMillionUsd:.0416667}},{modelId:"google/gemini-3.7-flash",label:"Gemini 3.7 Flash",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high"],mandatory:!0}},contextWindow:1048576,pricing:{inputPerMillionUsd:.75,outputPerMillionUsd:3.75,cacheReadPerMillionUsd:.075,cacheWritePerMillionUsd:.0416667}},{modelId:"google/gemma-4-31b-it",label:"Gemma 4 31B-IT",capabilities:{tools:!0,forcedToolChoice:!0},contextWindow:262144,pricing:{inputPerMillionUsd:.09,outputPerMillionUsd:.34,cacheReadPerMillionUsd:.05}},{modelId:"minimax/minimax-m3",label:"MiniMax M3",capabilities:{tools:!0,forcedToolChoice:!1,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:1048576,pricing:{inputPerMillionUsd:.3,outputPerMillionUsd:1.2,cacheReadPerMillionUsd:.06}},{modelId:"z-ai/glm-5.2",label:"GLM 5.2",capabilities:{tools:!0,forcedToolChoice:!1,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"],mandatory:!0}},contextWindow:1048576,pricing:{inputPerMillionUsd:.966,outputPerMillionUsd:3.036,cacheReadPerMillionUsd:.1932}},{modelId:"z-ai/glm-5.3",label:"GLM 5.3",capabilities:{tools:!0,forcedToolChoice:!1,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"],mandatory:!0}},contextWindow:1048576,pricing:{inputPerMillionUsd:1.4,outputPerMillionUsd:4.4,cacheReadPerMillionUsd:.14}},{modelId:"z-ai/glm-5.3-flash",label:"GLM 5.3 Flash",capabilities:{tools:!0,forcedToolChoice:!1,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:1310720,pricing:{inputPerMillionUsd:.075,outputPerMillionUsd:.25,cacheReadPerMillionUsd:.015}},{modelId:"z-ai/glm-5.3-flashx",label:"GLM 5.3 FlashX",capabilities:{tools:!0,forcedToolChoice:!1,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","high","max"],mandatory:!0}},contextWindow:1048576,pricing:{inputPerMillionUsd:.37,outputPerMillionUsd:1.25,cacheReadPerMillionUsd:.075}},{modelId:"xiaomi/mimo-v2.6-flash",label:"MiMo V2.6 Flash",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"onoff"}},contextWindow:1048576,pricing:{inputPerMillionUsd:.14,outputPerMillionUsd:.28,cacheReadPerMillionUsd:.0028}},{modelId:"xiaomi/mimo-v2.6-pro",label:"MiMo V2.6 Pro",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"onoff"}},contextWindow:1048576,pricing:{inputPerMillionUsd:.435,outputPerMillionUsd:.87,cacheReadPerMillionUsd:.0036}},{modelId:"xiaomi/mimo-v2.6-pro-ultraspeed",label:"MiMo V2.6 Pro UltraSpeed",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"onoff"}},contextWindow:1048576,pricing:{inputPerMillionUsd:4.35,outputPerMillionUsd:8.7,cacheReadPerMillionUsd:.036}},{modelId:"moonshotai/kimi-k2.6",label:"Kimi K2.6",capabilities:{tools:!0,forcedToolChoice:!1,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"],mandatory:!0}},contextWindow:262144,pricing:{inputPerMillionUsd:.95,outputPerMillionUsd:4,cacheReadPerMillionUsd:.16}},{modelId:"moonshotai/kimi-k2.7-code",label:"Kimi K2.7 Code",capabilities:{tools:!0,forcedToolChoice:!1,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"],mandatory:!0}},contextWindow:262144,pricing:{inputPerMillionUsd:.66,outputPerMillionUsd:3.4,cacheReadPerMillionUsd:.18}},{modelId:"x-ai/grok-4.5",label:"Grok 4.5",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high"],mandatory:!0}},contextWindow:5e5,pricing:{inputPerMillionUsd:2,outputPerMillionUsd:6,cacheReadPerMillionUsd:.3}},{modelId:"x-ai/grok-4.6",label:"Grok 4.6",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"],mandatory:!0}},contextWindow:5e5,pricing:{inputPerMillionUsd:2,outputPerMillionUsd:6,cacheReadPerMillionUsd:.5}},{modelId:"x-ai/grok-4.7",label:"Grok 4.7",capabilities:{tools:!0,forcedToolChoice:!0,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"],mandatory:!0}},contextWindow:5e5,pricing:{inputPerMillionUsd:1.6,outputPerMillionUsd:4.8,cacheReadPerMillionUsd:.4}},{modelId:"qwen/qwen3.8-max",label:"Qwen 3.8 Max",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:1e6,pricing:{inputPerMillionUsd:2,outputPerMillionUsd:6}},{modelId:"qwen/qwen3.7-max",label:"Qwen 3.7 Max",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:1048576,pricing:{inputPerMillionUsd:1.475,outputPerMillionUsd:4.425,cacheReadPerMillionUsd:.295,cacheWritePerMillionUsd:1.84375}},{modelId:"qwen/qwen3.7-plus",label:"Qwen 3.7 Plus",capabilities:{tools:!0,forcedToolChoice:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"]}},contextWindow:1048576,pricing:{inputPerMillionUsd:.32,outputPerMillionUsd:1.28,cacheReadPerMillionUsd:.064,cacheWritePerMillionUsd:.4}},{modelId:"moonshotai/kimi-k3",label:"Kimi K3",capabilities:{tools:!0,forcedToolChoice:!1,reasoning:!0,reasoningControl:{kind:"effort",levels:["low","medium","high","max"],mandatory:!0}},contextWindow:1048576,pricing:{inputPerMillionUsd:3,outputPerMillionUsd:15,cacheReadPerMillionUsd:.3}}]},ab=new Set(["anthropic/claude-fable-5","anthropic/claude-fable-5.1","anthropic/claude-haiku-4.5","anthropic/claude-opus-4.7","anthropic/claude-opus-4.8","anthropic/claude-opus-5","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet-5","google/gemini-3.1-flash-lite-preview","google/gemini-3.1-pro-preview","google/gemini-3.5-flash","google/gemini-3.6-flash","google/gemini-3.7-flash","google/gemma-4-31b-it","minimax/minimax-m3","moonshotai/kimi-k2.6","moonshotai/kimi-k2.7-code","moonshotai/kimi-k3","openai/gpt-5.6-luna","openai/gpt-5.6-luna-pro","openai/gpt-5.6-terra-pro","openai/gpt-5.6-terra","openai/gpt-5.6-sol","openai/gpt-5.6-sol-pro","openai/gpt-6-astra","openai/gpt-6-astra-pro","deepseek/deepseek-v4.1-flash","qwen/qwen3.8-max","z-ai/glm-5.3-flash","z-ai/glm-5.3-flashx","xiaomi/mimo-v2.6-flash","xiaomi/mimo-v2.6-pro","xiaomi/mimo-v2.6-pro-ultraspeed","x-ai/grok-4.5","x-ai/grok-4.6","x-ai/grok-4.7","qwen/qwen3.7-plus","claude-fable-5","claude-opus-4-8","claude-opus-5","claude-sonnet-4-6","claude-sonnet-5","claude-haiku-4-5-20251001","gpt-5","gpt-5-mini","gemini-3.5-flash","gemini-3.7-flash","gemini-3.1-pro-preview","mistral-large-latest","MiniMax-M3","kimi-k2.6","kimi-k2.7-code","kimi-k3"]);for(let a of Object.values(aa))for(let b of a)b.capabilities.vision=ab.has(b.modelId);function ac(a,b){return aa[a]?.find(a=>a.modelId===b)}function ad(a,b){let c=ac(a,b);return c?c.capabilities.tools?"yes":"no":"unknown"}function ae(a){return a.capabilities.tools?a.label:`${a.label} (no tools)`}let af={anthropic:"Anthropic",openai:"OpenAI",google:"Google",deepseek:"DeepSeek",minimax:"MiniMax",mistral:"Mistral",meta:"Meta",qwen:"Qwen","meta-llama":"Meta",moonshotai:"Moonshot"};function ag(a){let b=new Map;for(let c of a){let a=function(a){let b=a.indexOf("/");if(b<0)return null;let c=a.slice(0,b);return af[c]??c.charAt(0).toUpperCase()+c.slice(1)}(c.modelId),d=b.get(a)??[];d.push(c),b.set(a,d)}return[...b.entries()].map(([a,b])=>({group:a,models:[...b].sort((a,b)=>a.label.localeCompare(b.label))})).sort((a,b)=>(a.group??"").localeCompare(b.group??""))}function ah(a){let b,c=(b=a.indexOf("__"))<=0?null:{prefix:a.slice(0,b),tool:a.slice(b+2)},d=(c?c.tool:a).replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").trim().toLowerCase();return d.charAt(0).toUpperCase()+d.slice(1)}let ai=[[/\bsk-[A-Za-z0-9_-]{16,}/g,"sk-"],[/\bsk-ant-[A-Za-z0-9_-]{16,}/g,"sk-ant-"],[/\bgh[pousr]_[A-Za-z0-9]{16,}/g,"gh*_"],[/\bxox[abposr]-[A-Za-z0-9-]{10,}/g,"xox*-"],[/\bxapp-[0-9]-[A-Za-z0-9-]{10,}/g,"xapp-"],[/\bAIza[A-Za-z0-9_-]{30,}/g,"AIza"],[/\b(?:AKIA|ASIA)[A-Z0-9]{16}\b/g,"AKIA/ASIA"],[/\b\d{8,12}:[A-Za-z0-9_-]{30,}/g,"telegram"],[/\b[A-Za-z0-9_-]{23,28}\.[A-Za-z0-9_-]{6}\.[A-Za-z0-9_-]{27,40}\b/g,"discord"],[/\bcog_[A-Za-z0-9]{16,}/g,"cog_"],[/\btvly-[A-Za-z0-9]{16,}/g,"tvly-"],[/-----BEGIN[^-]{0,40}PRIVATE KEY-----[\s\S]*?-----END[^-]{0,40}PRIVATE KEY-----/g,"pem"],[/\b[Bb]earer\s+[A-Za-z0-9._~+/=-]{20,}/g,"bearer"]];function aj(a){let b=a;for(let[a,c]of ai)b=b.replace(a,`[secret masqu\xe9] (${c})`);return b}d.Yj().min(1).max(80).regex(/^[a-z0-9][a-z0-9-]*$/,"Slug must be lowercase alphanumeric with hyphens, and must not start with a hyphen.");let ak=a=>a.replace(/\\/g,"/").replace(/\/+$/,"");function al(a){let b=ak(a);return/^[a-z]:\//i.test(b)||b.startsWith("//")?b.toLowerCase():b}function am(a){return a.normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,60).replace(/-+$/,"")}function an(a,b){if(!function(a){if(""===a)return!0;let b=a.replace(/\\/g,"/");return!(/^[a-z]:/i.test(b)||b.startsWith("/")||/[\u0000-\u001f]/.test(b))&&b.split("/").every(a=>""!==a&&"."!==a&&".."!==a)}(b))return null;let c=ak(a);return""===b?c:ak(`${c}/${b.replace(/\\/g,"/")}`)}function ao(a){return null!=a&&"request_changes"===("string"==typeof a?a:a.verdict)}d.k5(["code_project","office_file","document","outbound_action","other"]),d.k5(["dirty","green","red","pending_approval","not_configured","infra_error"]),d.k5(["prepared","attempted","confirmed","rejected","outcome_unknown"]),d.k5(["green","red","infra_error"]),d.k5(["job","reviewer"]);let ap=d.Ik({command:d.Yj().trim().min(1).max(2e3),timeoutSeconds:d.ai().int().min(1).max(3600)}),aq=5;d.YO(ap).min(1).max(aq),new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]);let ar=["codeTask","cliRuntime","fileOps","shell"];d.Ik({codeTask:d.zM(),cliRuntime:d.zM(),fileOps:d.zM(),shell:d.zM()}),Object.freeze({codeTask:!0,cliRuntime:!0,fileOps:!0,shell:!0}),Object.freeze({codeTask:["code_task"],cliRuntime:[],fileOps:["file_write","file_edit","docx_create","docx_append_paragraphs","docx_replace_text","pptx_create","pptx_append_slides","pptx_replace_text","xlsx_set_cell","xlsx_set_range","xlsx_append_rows","xlsx_add_sheet","xlsx_create","xlsx_delete_rows","xlsx_format_range","xlsx_insert_rows","xlsx_insert_columns","xlsx_delete_columns","xlsx_merge_cells","xlsx_unmerge_cells","xlsx_set_column_widths","xlsx_freeze_panes"],shell:["run_command","run_skill_script"]});let as=Object.freeze([0,1,2,3]);function at(a,b){let c=""===a?[]:a.split("\n"),d=""===b?[]:b.split("\n");if(c.length>2e3||d.length>2e3)return{lines:[...c.map(a=>({kind:"-",text:a})),...d.map(a=>({kind:"+",text:a}))],truncated:!0};let e=Array.from({length:c.length+1},()=>Array(d.length+1).fill(0));for(let a=c.length-1;a>=0;a--)for(let b=d.length-1;b>=0;b--)e[a][b]=c[a]===d[b]?e[a+1][b+1]+1:Math.max(e[a+1][b],e[a][b+1]);let f=[],g=0,h=0;for(;g<c.length&&h<d.length;)c[g]===d[h]?(f.push({kind:" ",text:c[g]}),g++,h++):e[g+1][h]>=e[g][h+1]?(f.push({kind:"-",text:c[g]}),g++):(f.push({kind:"+",text:d[h]}),h++);for(;g<c.length;)f.push({kind:"-",text:c[g]}),g++;for(;h<d.length;)f.push({kind:"+",text:d[h]}),h++;return{lines:f,truncated:!1}}}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=4357,exports.ids=[4357],exports.modules={9073:(a,b,c)=>{c.d(b,{r:()=>h});var d=c(44928),e=c(46895),f=c(72691);let g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f.A}));g.displayName="CheckCircleIcon";let h=g},10295:(a,b,c)=>{c.d(b,{A:()=>e});var d=c(44928);let e=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),d.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]])},55911:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(47235),e=c(80241),f=c(71095),g=c(60464),h=c(87777);function i({avatarName:a,avatarUrl:b=null,title:c,subtitle:j,agents:k,status:l=null,proofVerdict:m=null,filesHref:n=null,statusBar:o=null,actions:p=null,children:q}){return(0,d.jsx)(e.A,{fill:!0,fluid:!0,toolbarBleed:!0,footer:o,header:(0,d.jsx)(f.A,{avatarName:a,avatarUrl:b,title:c,subtitle:j}),toolbar:(0,d.jsx)(h.A,{agents:k,status:l,proofVerdict:m,filesHref:n}),children:(0,d.jsx)(g.A,{follow:"never",sidePadding:!1,actions:p,actionsBox:"mx-auto max-w-6xl",children:q})})}},60429:(a,b,c)=>{c.d(b,{default:()=>q});var d=c(27557),e=c(44928),f=c(61841),g=c(87342),h=c(51040),i=c(31268);let j={green:{tone:"ok",label:"green"},red:{tone:"err",label:"red"},infra_error:{tone:"warn",label:"infra error"}},k="Chat turns are not under verification yet: a chat turn has no job, so no proof runs for it.",l="No proof yet. Proof commands run when the process finishes.",m="No proof ran for this process.";function n(a){return j[a]??{tone:"warn",label:a}}let o={reviewer:"reviewer"};function p(a){return"timeout"===a.outcomeKind?"timeout":"spawn_error"===a.outcomeKind?"spawn error":null===a.exitCode?"n/a":String(a.exitCode)}function q({sequences:a,skippedSurfaces:b,unconfigured:c,stage:i,live:j}){let[o,p]=(0,e.useState)(!1),s="chat"===i,t=0===a.length,u=function(a){if(0===a.length)return null;let b=a.find(a=>"green"!==a.verdict);return n(b?.verdict??"green")}(a),v=function(a){if(a.isChat)return k;if(0===a.sequences.length)return a.live?l:m;let b=a.sequences.reduce((a,b)=>a+b.runs.length,0);return`${a.sequences.length} ${1===a.sequences.length?"sequence":"sequences"} \xb7 ${b} ${1===b?"command":"commands"}`}({isChat:s,sequences:a,live:j});return(0,d.jsxs)("div",{className:"overflow-hidden rounded-xl border border-rule-2 bg-paper","data-testid":"verification-section",children:[(0,d.jsxs)(g.A,{open:o,onClick:()=>p(a=>!a),inset:"tight",testId:"verification-row",children:[(0,d.jsxs)("span",{className:"shrink-0 text-mono-11 tracking-wider text-ink-4 uppercase",children:["Verification",a.length>0?` \xb7 ${a.length}`:""]}),null!==u&&(0,d.jsx)(h.s,{tone:u.tone,children:u.label}),(0,d.jsx)("span",{className:"min-w-0 truncate text-body-13 text-ink-3",children:v})]}),o?s?(0,d.jsx)("p",{className:"border-t border-rule-2 px-4 py-6 text-body-13 text-ink-4",children:k}):(0,d.jsxs)("div",{className:"border-t border-rule-2",children:[b.length>0&&(0,d.jsx)("ul",{className:"space-y-1.5 border-b border-rule-2 px-4 py-3",children:b.map(a=>(0,d.jsxs)("li",{className:"flex flex-wrap items-center gap-2 text-body-13 text-ink-3","data-testid":`verification-skipped-${a}`,children:[(0,d.jsx)(h.s,{tone:"warn",children:"not verified"}),(0,d.jsxs)("span",{children:[(0,f.CR)(a)," is out of verification for this workspace."]})]},a))}),c.length>0&&(0,d.jsx)("ul",{className:"space-y-1.5 border-b border-rule-2 px-4 py-3",children:c.map(a=>(0,d.jsxs)("li",{className:"flex flex-wrap items-center gap-2 text-body-13 text-ink-3",children:[(0,d.jsx)(h.s,{tone:"ink",children:"pending_approval"===a.reason?"awaiting approval":"code_project"===a.deliverableType?"not configured":"not checked"}),(0,d.jsx)("span",{className:"min-w-0 truncate font-mono",title:a.canonicalKey,children:a.displayPath??a.canonicalKey}),(0,d.jsx)("span",{children:function(a){if("pending_approval"===a.reason)return"has proof commands waiting for the owner’s approval.";switch(a.deliverableType){case"code_project":return"has no proof commands. Add them on its project card in Code.";case"office_file":return"is a document. Nodal does not check documents yet.";default:return"is not checked yet."}}(a)})]},`${a.deliverableType}:${a.canonicalKey}`))}),t?(0,d.jsx)("p",{className:"px-4 py-6 text-body-13 text-ink-4",children:j?l:m}):a.map(a=>(0,d.jsx)(r,{sequence:a},a.sequenceId))]}):null]})}function r({sequence:a}){let b=n(a.verdict),c="job"===a.source?null:{role:o[a.source]??a.source,name:a.sourceAgentName};return(0,d.jsxs)("div",{className:"border-b border-rule-2 last:border-b-0","data-testid":"verification-sequence",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 px-4 py-2.5",children:[(0,d.jsx)(h.s,{tone:b.tone,children:b.label}),null!==c&&(0,d.jsx)("span",{"data-testid":"verification-origin",children:(0,d.jsx)(h.s,{tone:"ink",children:c.role})}),(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate text-mono-13 text-ink",title:a.canonicalKey,children:a.canonicalKey}),(0,d.jsxs)("span",{className:"shrink-0 text-mono-11 text-ink-4",children:[a.runs.length," ",1===a.runs.length?"command":"commands",c?.name?` \xb7 ${c.name}`:"",a.startedAt?` \xb7 ${(0,i.KW)(a.startedAt)}`:""]})]}),(0,d.jsx)("div",{children:a.runs.map(a=>{let b=n(a.verdict);return(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 border-t border-rule-2 bg-canvas px-4 py-2","data-testid":"verification-command",children:[(0,d.jsx)("span",{className:"shrink-0 text-mono-11 text-ink-4",children:a.commandRank}),(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate text-mono-13 text-ink",title:a.command,children:a.command}),(0,d.jsx)("span",{className:"shrink-0 text-mono-11 text-ink-3",children:"exit"===a.outcomeKind?`exit ${p(a)}`:p(a)}),(0,d.jsx)("span",{className:"shrink-0 text-mono-11 text-ink-3",children:function(a){if(null===a)return"n/a";if(a<1e3)return`${a} ms`;let b=a/1e3;return b<60?`${b.toFixed(1)} s`:`${Math.floor(b/60)} min ${Math.round(b%60)} s`}(a.durationMs)}),(0,d.jsx)(h.s,{tone:b.tone,children:b.label})]},`${a.sequenceId}:${a.commandRank}`)})})]})}},61841:(a,b,c)=>{c.d(b,{CR:()=>e,Oi:()=>d}),c(40409);let d={codeTask:{label:"Coding tool",hint:"code_task: a coding CLI called as a tool"},cliRuntime:{label:"Claude Code / Codex agents",hint:"agents that ARE a coding CLI session"},fileOps:{label:"File tools",hint:"file_write, file_edit, Office files"},shell:{label:"Commands and scripts",hint:"run_command, run_skill_script"}};function e(a){return d[a]?.label??a}},66123:(a,b,c)=>{c.d(b,{default:()=>j});var d=c(27557),e=c(44928),f=c(87342),g=c(81398),h=c(51040),i=c(45613);function j({verdicts:a,reviewing:b=!1}){let[c,h]=(0,e.useState)(!1),i=0===a.length?b?{variant:"run",label:"Review in progress"}:null:"approve"===a[a.length-1].verdict?{variant:"done",label:"Approve"}:{variant:"warn",label:"Request changes"},l=a[a.length-1]??null,m=(0,d.jsxs)("span",{className:"ml-auto shrink-0 text-mono-11 text-ink-4",children:[a.length," ",1===a.length?"verdict":"verdicts"]});return 0===a.length?(0,d.jsx)("div",{className:"overflow-hidden rounded-xl border border-rule-2 bg-paper","data-testid":"review-section",children:(0,d.jsxs)("div",{className:"flex items-center gap-2 px-4 py-3",children:[(0,d.jsx)("h2",{className:"shrink-0 text-mono-11 tracking-wider text-ink-4 uppercase",children:"Review"}),null!==i&&(0,d.jsx)(g.A,{variant:i.variant,label:i.label}),(0,d.jsx)("span",{className:"min-w-0 truncate text-body-13 text-ink-3",children:"No review on this run"}),m]})}):(0,d.jsxs)("div",{className:"overflow-hidden rounded-xl border border-rule-2 bg-paper","data-testid":"review-section",children:[(0,d.jsxs)(f.A,{open:c,onClick:()=>h(a=>!a),inset:"tight",testId:"review-row",children:[(0,d.jsx)("span",{className:"shrink-0 text-mono-11 tracking-wider text-ink-4 uppercase",children:"Review"}),null!==i&&(0,d.jsx)(g.A,{variant:i.variant,label:i.label}),l?.summary!==null&&l?.summary!==void 0&&""!==l.summary&&!c&&(0,d.jsx)("span",{className:"min-w-0 truncate text-body-13 text-ink-3",children:l.summary}),m]}),c&&(0,d.jsx)("div",{className:"space-y-3 border-t border-rule-2 px-4 py-4",children:a.map((a,b)=>(0,d.jsx)(k,{verdict:a},b))})]})}function k({verdict:a}){let b="approve"===a.verdict;return(0,d.jsxs)("div",{className:"space-y-2","data-testid":"review-verdict",children:[(0,d.jsx)(g.A,{variant:b?"done":"warn",label:b?"Approve":a.verdict??"Request changes"}),a.summary&&(0,d.jsx)("p",{className:"text-body-13 text-ink-2",children:a.summary}),a.findings.length>0&&(0,d.jsx)("ul",{className:"space-y-1.5",children:a.findings.map((a,b)=>(0,d.jsxs)("li",{className:"rounded-md border border-rule-2 px-3 py-2 text-body-13",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsxs)("span",{className:"text-mono-12 text-ink-3",children:[a.file??"Unknown file",a.line?`:${a.line}`:""]}),a.severity&&(0,d.jsx)(h.s,{tone:"warn",children:a.severity})]}),a.issue&&(0,d.jsx)("p",{className:"mt-1 text-ink-2",children:a.issue})]},b))}),null!==a.report&&""!==a.report&&(0,d.jsx)("div",{className:"border-t border-rule-2 pt-2","data-testid":"review-report",children:(0,d.jsx)(i.Ay,{text:a.report})})]})}},72691:(a,b,c)=>{c.d(b,{A:()=>e});var d=c(44928);let e=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),d.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]])},84249:(a,b,c)=>{c.d(b,{N:()=>h});var d=c(44928),e=c(46895),f=c(10295);let g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f.A}));g.displayName="WarningIcon";let h=g}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=5547,exports.ids=[5547],exports.modules={3771:(a,b,c)=>{c.d(b,{default:()=>g});var d=c(27557),e=c(44928),f=c(87342);function g({text:a}){let[b,c]=(0,e.useState)(!1);return""===a.trim()?null:(0,d.jsxs)("div",{className:"mt-3",children:[(0,d.jsxs)(f.A,{open:b,onClick:()=>c(a=>!a),inset:"none",insetY:"default",className:"h-auto",children:[(0,d.jsx)("span",{className:"shrink-0 text-mono-11 text-ink-4",children:"Handed to the work"}),!b&&(0,d.jsxs)("span",{className:"min-w-0 flex-1 truncate text-left text-mono-11 text-ink-4",children:["\xb7 ",a]})]}),b&&(0,d.jsx)("p",{className:"mt-1.5 pl-[22px] text-mono-11 whitespace-pre-wrap break-words text-ink-3",children:a})]})}},7368:(a,b,c)=>{c.d(b,{FileName:()=>f,LineDelta:()=>e,default:()=>g});var d=c(5347);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call LineDelta() from the server but LineDelta is 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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\FileDiff.tsx","LineDelta");(0,d.registerClientReference)(function(){throw Error("Attempted to call gitDiffLines() from the server but gitDiffLines is 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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\FileDiff.tsx","gitDiffLines"),(0,d.registerClientReference)(function(){throw Error("Attempted to call DiffBody() from the server but DiffBody is 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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\FileDiff.tsx","DiffBody");let f=(0,d.registerClientReference)(function(){throw Error("Attempted to call FileName() from the server but FileName is 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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\FileDiff.tsx","FileName"),g=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\spaces\\\\FileDiff.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\FileDiff.tsx","default")},9255:(a,b,c)=>{c.d(b,{default:()=>k});var d=c(27557),e=c(44928),f=c(81023),g=c(40236),h=c(27399),i=c(775),j=c(81831);function k({prompt:a,options:b,question:c}){let[l,m]=(0,e.useTransition)(),n=(0,f.useRouter)(),{refresh:o}=(0,j.e)(),p=c?.status??null,q=c?.answer??null,r="pending"===p&&null!==c;return(0,d.jsxs)("div",{className:"rounded-xl border border-run bg-canvas px-4 py-3.5",children:[(0,d.jsxs)("div",{className:"flex items-start gap-3",children:[(0,d.jsx)("div",{className:"min-w-0 flex-1 text-medium-14 text-ink",children:a}),r&&(0,d.jsxs)("span",{className:"flex shrink-0 items-center gap-1.5",children:[(0,d.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-run"}),(0,d.jsx)("span",{className:"text-mono-11-caps text-run",children:"Waiting"})]}),null!==q&&(0,d.jsx)("span",{className:"shrink-0 text-mono-11-caps text-ok",children:"Answered"})]}),r?(0,d.jsx)("div",{className:"mt-3.5 flex flex-wrap gap-2",children:b.map(a=>(0,d.jsx)(i.A,{variant:"neutral",size:"sm",onClick:()=>{c&&m(async()=>{let b=await (0,h.C)({approvalRequestId:c.approvalRequestId,decision:"approve",answer:a});b.ok?(g.oR.success(`Answered: ${a}`),n.refresh(),await o()):g.oR.error(b.message)})},disabled:l,children:a},a))}):(0,d.jsx)("div",{className:"mt-3.5 flex flex-wrap items-center gap-2",children:b.map(a=>a===q?(0,d.jsxs)("span",{className:"inline-flex h-[30px] items-center rounded-lg bg-ok-bg px-3.5 text-medium-13 text-ok",children:["✓ ",a]},a):(0,d.jsx)("span",{className:"text-body-12 text-ink-4",children:a},a))}),"rejected"===p&&(0,d.jsxs)("p",{className:"mt-3 text-body-12 text-ink-3",children:["Declined",c?.notes?` \xb7 ${c.notes}`:""]}),null===c&&(0,d.jsx)("p",{className:"mt-3 text-body-12 text-ink-4",children:"Answer it from the Approvals page."})]})}},10306:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{"000bd8157c910bf77772cc2cb9c4f81f1610d832cc":()=>g.A6,"00218821ab88df9394cf56763865a74ac442f22da7":()=>g.S9,"0084a11776601cd6136e9e880140b2129722a78468":()=>g.te,"009e5ca731f63c45e1966761276db46b2ae60ca53c":()=>f.k,"400cb808a9c061817e8d349921532a78dcf43c8b71":()=>h.uR,"400d8a21a1bf5fc96a9550cebf781eafac6bd8919a":()=>e.sc,"40197e4562d81a5a38d4dcf80bcdbbb1c85995832d":()=>h.X2,"402bbeb3e91ca0916272f7159778065334dfe7d448":()=>g.dP,"40441fc5a6341bfe063e9db7772193a1a043bfcc8f":()=>g.gL,"4051cbca859f5bd05098d09d04bc3dd1b5e48be8f4":()=>g.t8,"40554da7e37aaee6faf4fab6327cdfeb006bef80f1":()=>e.My,"405c5157869cc4cd2f63b1a8e4dafc2522077d04e0":()=>g.O0,"40620fec99ecf7c5964b221c1b989a37c00fe9c78a":()=>g.Vr,"40739fb23bd2134be5673af9b849b05e245da36588":()=>i.d,"4074c5de725bee02e0f663a2138b15d1e5e22aa677":()=>g.Kd,"4074e911becbb81bb6d5208451da6432e12876099b":()=>g.Vq,"40ac972db85279baeb887c6e0f585d5a163b7b3258":()=>h.vU,"40bbb9281e0ab36cd4ec0d93343838c6c898b30b7f":()=>j.o,"40bd361728e465a1d4ea7a8b2dbb085f273d06532e":()=>g.zj,"40cb7c956c55a04d4400e77d3981caac044c187fcd":()=>e.W8,"40cc91a8a2422f52b934bbeaf370edacf4ebf80c75":()=>g.fn,"40e03646d17d361f60ef3b19c68f24afc0a5933c10":()=>h.lA,"40e95a60757035b9439ecd3476ae114f1acac531f4":()=>e.EY,"40ff3b3ceb10fbabd64248846fd364d973ff318685":()=>g.$A});var e=c(4420),f=c(27944),g=c(53675),h=c(34020),i=c(91878),j=c(74774),k=a([f,i]);[f,i]=k.then?(await k)():k,d()}catch(a){d(a)}})},18028:(a,b,c)=>{c.d(b,{A:()=>x});var d=c(47235),e=c(13027),f=c(96616),g=c(64432),h=c(89306),i=c(70806),j=c(40443),k=c(86393),l=c(21983),m=c(92054),n=c(82407),o=c(37933),p=c(37468),q=c(16440),r=c(59177),s=c(99074),t=c(84938);let u={approve:"Approved",request_changes:"Changes requested"};function v(a){return a.blocked?"blocked":a.timedOut?"timed out":null===a.exitCode||0===a.exitCode?null:`exit ${String(a.exitCode)}`}function w({label:a,value:b,mono:c=!1}){return(0,d.jsxs)("div",{className:"w-[100px] shrink-0",children:[(0,d.jsx)("p",{className:"text-mono-11 text-ink-4",children:a}),(0,d.jsx)("p",{className:`mt-0.5 text-medium-14 ${c?"text-feed-metric":"text-ink"}`,children:b})]})}function x({summary:a,jobId:b,status:c=null,filesJobId:y=null}){var z;let{verdict:A,changesRequested:B}=a,C=null===(z=a.review)||""===z?null:u[z]??z,D=[];a.files>0&&D.push({label:"Files",value:String(a.files)}),null!==a.lines&&D.push({label:"Lines",value:[a.lines.added>0?`+${a.lines.added}`:null,a.lines.removed>0?`−${a.lines.removed}`:null].filter(a=>null!==a).join(" ")}),null!==a.tests&&D.push({label:"Tests",value:`${a.tests.passed} / ${a.tests.total}`}),null!==a.durationMs&&a.durationMs>0&&D.push({label:"Duration",value:(0,t._V)(a.durationMs),mono:!0}),null!==a.costUsd&&D.push({label:"Cost",value:(0,t.BD)(a.costUsd)});let E=a.fileChanges.slice(0,12),F=a.fileChanges.length-E.length,G=a.commands.slice(0,12),H=a.commands.length-G.length,I=a.reviews.length>0||null!==b;return(0,d.jsxs)("div",{className:"mt-4 overflow-hidden rounded-xl border border-rule-2 bg-paper",children:[(0,d.jsxs)("div",{className:"flex h-[48px] items-center gap-2.5 px-4","data-testid":"delivery-head",children:["working"===a.live?(0,d.jsx)(e.N,{size:16,className:"animate-spin text-run","aria-hidden":!0}):"waiting"===a.live?(0,d.jsx)(f.N,{size:16,className:"text-warn","aria-hidden":!0}):B?(0,d.jsx)(g.N,{size:16,className:"text-warn","aria-hidden":!0}):null,null!==a.live||B?null:(0,d.jsx)(h.r,{size:16,className:null===a.ended&&a.produced?"text-ok":"text-ink-4","aria-hidden":!0}),(0,d.jsxs)("span",{className:`min-w-0 truncate text-title-15 ${"working"===a.live?"text-run":"waiting"===a.live?"text-warn":"text-ink"}`,children:["working"===a.live?"Working":"waiting"===a.live?"Waiting for you":"stopped"===a.ended?"Stopped":"failed"===a.ended?"Failed":a.produced?"Delivered":"Ran",null!==C&&(0,d.jsxs)("span",{className:"text-ink-3",children:[" \xb7 ",C]}),null===a.live&&null!==A&&(0,d.jsxs)("span",{className:"red"===A?"text-warn":"text-ok",children:[" ","\xb7 ","red"===A?"Proof failed":"Proof passed",null!==a.repairs&&a.repairs>0?` after ${a.repairs} repair${a.repairs>1?"s":""}`:""]})]}),(0,d.jsx)("span",{className:"ml-5",children:null!==C?(0,d.jsx)(p.A,{variant:B?"warn":"done",label:"By the reviewer"}):null!==a.live?(0,d.jsx)(p.A,{variant:"idle",label:null!==a.tests?`${a.tests.passed} ${1===a.tests.passed?"check":"checks"} passed so far`:"No checks yet"}):"green"===A?(0,d.jsx)(p.A,{variant:"done",label:"Verified"}):"red"===A?(0,d.jsx)(p.A,{variant:"warn",label:"Checks failed"}):(0,d.jsx)(p.A,{variant:"idle",label:"Not verified"})}),null!==b&&(0,r.G)(c)&&(0,d.jsx)("span",{className:"ml-auto",children:(0,d.jsx)(q.default,{jobId:b,status:c})})]}),D.length>0&&(0,d.jsx)("div",{className:"flex flex-wrap gap-x-4 gap-y-3 border-t border-rule-2 px-4 py-3",children:D.map(a=>(0,d.jsx)(w,{label:a.label,value:a.value,mono:a.mono??!1},a.label))}),E.length>0&&(null!==y?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s.default,{files:E,jobId:y}),F>0&&(0,d.jsxs)("p",{className:"border-t border-rule-2 px-4 py-1.5 text-mono-11 text-ink-4",children:["… and ",F," more"]})]}):(0,d.jsxs)("div",{className:"border-t border-rule-2 px-4 py-2.5",children:[(0,d.jsx)("ul",{className:"flex flex-col gap-1",children:E.map(a=>(0,d.jsxs)("li",{className:"flex min-w-0 items-center gap-2",children:[(0,d.jsx)(i.I,{size:12,className:"shrink-0 text-ink-4","aria-hidden":!0}),(0,d.jsx)("span",{className:"min-w-0 truncate text-mono-12 text-feed-path",children:a.path})]},a.path))}),F>0&&(0,d.jsxs)("p",{className:"mt-1 text-mono-11 text-ink-4",children:["… and ",F," more"]})]})),a.commands.length>0&&(0,d.jsxs)("div",{className:"border-t border-rule-2 px-4 pt-2.5 pb-3",children:[(0,d.jsx)("p",{className:"text-mono-11 text-ink-4",children:"Commands"}),(0,d.jsx)("p",{className:"mb-1.5 text-body-12 text-ink-4",children:"Every command the run executed. Proof below lists the checks the agent declared."}),(0,d.jsx)("ul",{className:"flex flex-col gap-1",children:G.map((a,b)=>(0,d.jsxs)("li",{className:"flex min-w-0 items-start gap-2","data-testid":"delivery-command",children:[(0,d.jsx)(j.B,{size:12,className:"mt-1 shrink-0 text-ink-4","aria-hidden":!0}),(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[null!==a.purpose&&(0,d.jsx)("span",{"data-testid":"delivery-command-purpose",className:"line-clamp-2 text-body-12 text-ink-2",children:a.purpose}),(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,d.jsx)("span",{className:"min-w-0 truncate text-mono-12 text-ink-2",children:a.label}),null!==v(a)&&(0,d.jsx)("span",{"data-testid":"delivery-command-outcome",className:"shrink-0 text-mono-11 text-warn",children:v(a)}),!a.observed&&(0,d.jsx)("span",{className:"shrink-0 text-mono-11 text-ink-4",children:"no file change seen"})]})]})]},b))}),H>0&&(0,d.jsxs)("p",{"data-testid":"commands-more",className:"mt-1 text-mono-11 text-ink-4",children:["… and ",H," more"]})]}),a.checks.length>0&&(0,d.jsxs)("div",{className:"border-t border-rule-2 px-4 pt-2.5 pb-3",children:[(0,d.jsx)("p",{className:"mb-1 text-mono-11 text-ink-4",children:"Proof"}),(0,d.jsx)("ul",{className:"flex flex-col gap-1",children:a.checks.map((a,b)=>(0,d.jsxs)("li",{className:"flex min-w-0 items-center gap-2",children:[a.ok?(0,d.jsx)(k.J,{size:12,className:"shrink-0 text-ok","aria-hidden":!0}):(0,d.jsx)(l.X,{size:12,className:"shrink-0 text-warn","aria-hidden":!0}),(0,d.jsx)("span",{className:"min-w-0 truncate text-mono-12 text-ink-2",children:a.command})]},b))})]}),I&&(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5 border-t border-rule-2 px-4 pt-2.5 pb-3",children:[a.reviews.length>0&&(0,d.jsx)("span",{className:"text-mono-11 text-ink-4",children:"Reviewed by"}),a.reviews.map((a,b)=>(0,d.jsxs)("span",{className:"flex items-center gap-2",children:[a.isAgent&&(0,d.jsx)(n.A,{name:a.name,imageUrl:a.avatarUrl,size:"sm",shape:"square"}),(0,d.jsx)("span",{className:`text-medium-13 ${a.ok?"text-ink":"text-warn"}`,title:a.ok?void 0:"This review said no",children:a.isAgent?a.name:(0,t.Ow)(a.name)})]},b)),null!==b&&(0,d.jsx)("span",{className:"ml-auto",children:(0,d.jsxs)(o.A,{variant:"neutral",size:"sm",href:`/scheduled/${b}`,children:["Open run",(0,d.jsx)(m.B,{size:12,"aria-hidden":!0})]})})]})]})}},20828:(a,b,c)=>{c.d(b,{default:()=>g});var d=c(27557),e=c(44928),f=c(87342);function g({label:a,avatar:b,title:c,ok:h,aside:i,children:j}){let[k,l]=(0,e.useState)(!1);return(0,d.jsxs)("div",{"data-delegation":"",children:[(0,d.jsx)("p",{className:"mb-1.5 text-mono-11-caps text-ok",children:a}),(0,d.jsxs)("div",{className:"overflow-hidden rounded-xl border border-ok/25 bg-paper",children:[(0,d.jsxs)(f.A,{open:k,onClick:()=>l(a=>!a),inset:"tight",className:"h-[40px]",children:[b,(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate text-left text-body-13 text-ink",children:c}),(0,d.jsx)("span",{"data-outcome":h?"ok":"failed",className:`h-1.5 w-1.5 shrink-0 rounded-full ${h?"bg-ok":"bg-err"}`}),void 0!==i&&""!==i&&(0,d.jsx)("span",{className:"shrink-0 text-mono-11 text-ink-4",children:i})]}),k&&(0,d.jsx)("div",{className:"border-t border-rule-2",children:j})]})]})}},21478:(a,b,c)=>{c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\spaces\\\\HistoryGroup.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\HistoryGroup.tsx","default")},21868:(a,b,c)=>{c.d(b,{default:()=>g});var d=c(27557),e=c(44928),f=c(87342);function g({head:a,body:b}){let[c,h]=(0,e.useState)(!1);return(0,d.jsxs)("div",{"data-delegation":"",className:"overflow-hidden rounded-xl border border-rule-2 bg-paper",children:[(0,d.jsx)(f.A,{open:c,onClick:()=>h(a=>!a),inset:"tight",className:"h-[46px] gap-2.5",children:a}),c&&(0,d.jsx)("div",{className:"border-t border-rule-2",children:b})]})}},22133:(a,b,c)=>{c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\spaces\\\\QuestionCard.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\QuestionCard.tsx","default")},27114:(a,b,c)=>{c.d(b,{Ay:()=>M});var d=c(47235),e=c(57191),f=c.n(e),g=c(52189),h=c(92054),i=c(82407),j=c(37468),k=c(16440),l=c(59177),m=c(51632),n=c(49435),o=c(93498),p=c(54785),q=c(17639),r=c(57259),s=c(65561),t=c(20383),u=c(31990),v=c(73596),w=c(85674),x=c(40023),y=c(53520),z=c(84938);function A({model:a,usage:b,className:c=""}){if(null===b)return null;let e=[b.inputTokens>0?`${(0,z._y)(b.inputTokens)} in`:null,b.outputTokens>0?`${(0,z._y)(b.outputTokens)} out`:null,b.cachedTokens>0?`${(0,z._y)(b.cachedTokens)} cached`:null].filter(a=>null!==a).join(" \xb7 "),f=[b.durationMs>0?(0,z._V)(b.durationMs):null,null!==b.costUsd?(0,z.BD)(b.costUsd):null].filter(a=>null!==a).join(" \xb7 ");return null===a&&""===e&&""===f?null:(0,d.jsxs)("div",{className:`flex items-center gap-2 overflow-hidden rounded-md border border-rule-2 bg-canvas px-3 py-[7px] ${c}`,children:[(0,d.jsx)(y.j,{size:14,className:"shrink-0 text-ink-4","aria-hidden":!0}),null!==a&&(0,d.jsx)("span",{className:"shrink-0 text-mono-12 text-feed-model",title:a,children:a}),""!==e&&(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate text-mono-12 text-feed-metric",children:e}),""!==f&&(0,d.jsx)("span",{className:"ml-auto shrink-0 text-mono-12 text-feed-metric",children:f})]})}var B=c(18028),C=c(22133),D=c(7368);let E={success:"bg-ok",error:"bg-err",blocked:"bg-err",awaiting_approval:"bg-run"},F={created:"bg-ok",modified:"bg-warn",listed:"bg-ink-4"};var G=c(21478),H=c(32062),I=c(78390),J=c(56409),K=c(67932),L=c(27884);function M({feed:a,deliverables:b=[],density:c=L.i,width:e="thread"}){if(0===a.items.length)return(0,d.jsx)("p",{className:"text-body-13 text-ink-4",children:"Nothing recorded yet."});let f=new Map(b.map(a=>[(0,q.Do)(a.jobId,a.canonicalKey),a.status]));return(0,d.jsx)("div",{className:"full"===e?"w-full min-w-0":"mx-auto max-w-[760px]",children:(0,d.jsx)(N,{items:a.items,deliverables:f,density:c})})}function N({items:a,deliverables:b,density:c=L.i}){let e=[...a].reverse().flatMap(a=>"run"===a.kind?[...a.items].reverse():[a]).find(a=>"turn"===a.kind),f=e?.agent.name??"Agent",g=e?.agent.avatarUrl??null;return(0,d.jsx)(d.Fragment,{children:a.map((a,e)=>(0,d.jsx)(O,{item:a,deliverables:b,agentName:f,agentAvatarUrl:g,density:c},e))})}function O({item:a,deliverables:b,agentName:c,agentAvatarUrl:e,density:f=L.i}){switch(a.kind){case"request":return(0,d.jsx)("div",{className:"flex justify-end pt-6",children:(0,d.jsxs)("div",{className:"max-w-[80%] min-w-0",children:[(0,d.jsx)("p",{className:"mb-1.5 text-right text-mono-11 text-ink-4",children:(0,z.fG)(a.origin)}),(0,d.jsx)("div",{className:"rounded-xl bg-hover px-4 py-3",children:(0,d.jsx)(m.default,{plain:a.text,children:(0,d.jsx)(t.Ay,{text:a.text,tone:"user"})})})]})});case"note":return(0,d.jsx)("p",{className:"mt-3 truncate text-mono-11 text-ink-4",title:a.text,children:"runner"===a.origin?`Nodal reminded the agent \xb7 ${a.text}`:a.text});case"turn":return(0,d.jsxs)(Q,{children:[(0,d.jsx)(R,{name:a.agent.name??"Agent",avatarUrl:a.agent.avatarUrl,model:a.model,at:a.at}),a.blocks.map((a,c)=>(0,d.jsx)(S,{block:a,deliverables:b},c)),(0,d.jsx)(A,{model:a.model,usage:a.usage,className:"mb-3"})]});case"run":return(0,d.jsx)(K.default,{jobId:a.jobId,summary:a.summary,defaultOpen:"unfolded"===f,children:(0,d.jsx)(N,{items:a.items,deliverables:b,density:f})});case"history":return(0,d.jsx)(G.default,{exchanges:a.exchanges});case"child":return(0,d.jsx)(af,{job:a.job,from:a.from,deliverables:b});case"answer":return(0,d.jsxs)(Q,{children:[(0,d.jsx)(R,{name:c,avatarUrl:e}),(0,d.jsx)(t.Ay,{text:a.text})]});case"produced":return(0,d.jsx)(B.A,{summary:a.summary,jobId:a.jobId,filesJobId:a.jobId,status:a.status});case"handoff":return(0,d.jsx)(J.default,{text:a.text});case"failure":return(0,d.jsx)("div",{className:"mt-6",children:(0,d.jsx)(T,{title:"Failed",tone:"warn",children:(0,d.jsxs)("div",{className:"px-4 py-3",children:[(0,d.jsx)(t.Ay,{text:a.text}),(0,d.jsx)(P,{hint:a.hint})]})})})}}function P({hint:a}){let b=(0,s.t)(a);return null===b?null:(0,d.jsx)("p",{className:"pt-2 text-body-13 text-ink-3",children:b})}function Q({children:a}){return(0,d.jsx)("div",{className:"min-w-0 pt-6",children:a})}function R({name:a,avatarUrl:b,model:c,at:e}){return(0,d.jsxs)("div",{className:"mb-1.5 flex items-center gap-2.5",children:[(0,d.jsx)(i.A,{name:a,imageUrl:b??void 0,size:"sm",shape:"square"}),(0,d.jsx)("span",{className:"text-title-15 text-ink",children:a}),null!=c&&""!==c&&(0,d.jsx)("span",{className:"text-mono-11 text-feed-model",children:c}),null!=e&&(0,d.jsx)("span",{className:"ml-auto text-mono-11 text-ink-4",children:(0,u.ei)(e)})]})}function S({block:a,deliverables:b}){switch(a.kind){case"prose":return(0,d.jsx)(t.Ay,{text:a.text,className:"mb-3"});case"steps":{let b=a.steps.filter(a=>"reasoning"===a.kind).map(a=>a.text),c=a.steps.filter(a=>"tool"===a.kind);return(0,d.jsxs)("div",{className:"mb-3 space-y-2",children:[b.length>0&&(0,d.jsx)(v.default,{steps:b}),c.map((a,b)=>(0,d.jsx)(w.default,{step:a},b))]})}case"card":return(0,d.jsx)("div",{className:"mb-4",children:(0,d.jsx)(U,{step:a.step,deliverables:b})})}}function T({title:a,meta:b,aside:c,tone:e="neutral",children:f}){return(0,d.jsxs)("div",{className:"max-w-[760px] overflow-hidden rounded-xl border border-rule-2 bg-paper",children:[(0,d.jsxs)("div",{className:`flex flex-wrap items-center gap-2.5 px-4 py-2.5 ${"ok"===e?"bg-ok-bg":"warn"===e?"bg-warn-bg":"bg-sidebar border-b border-rule-2"}`,children:[(0,d.jsx)("span",{className:"text-medium-13 text-ink",children:a}),void 0!==b&&(0,d.jsx)("span",{className:"text-mono-11 text-ink-4",children:b}),void 0!==c&&(0,d.jsx)("span",{className:"ml-auto text-mono-11 text-ink-4",children:c})]}),f]})}function U({step:a,deliverables:b}){let c=a.presented,e=null!==a.durationMs?(0,z._V)(a.durationMs):void 0;if("question"===a.card){let b=(0,p.RMo)(a.input),e=c?.card==="question"?c.prompt:b?.question??null,f=c?.card==="question"?c.options??[]:b?.options??[];return null!==e&&f.length>0?(0,d.jsx)(C.default,{prompt:(0,d.jsx)(t.Ay,{text:e,tone:"user"}),options:f,question:a.question}):(0,d.jsx)(w.default,{step:a})}if(null===c)return(0,d.jsx)(w.default,{step:a});switch(c.card){case"table":return(0,d.jsx)(V,{payload:c,aside:e});case"files":return(0,d.jsx)($,{payload:c,step:a,aside:e,deliverables:b});case"terminal":return(0,d.jsx)(_,{payload:c});case"sent":return(0,d.jsx)(aa,{payload:c,input:a.input,aside:e,outcome:a.outcome});case"checks":return(0,d.jsx)(ab,{payload:c});case"delegation":return(0,d.jsx)(ad,{payload:c});default:return(0,d.jsx)(w.default,{step:a})}}function V({payload:a,aside:b}){let c=a.tables.reduce((a,b)=>a+b.total,0);return(0,d.jsx)(T,{title:1===a.tables.length&&a.tables[0]?.name?a.tables[0].name:"Table",meta:`${a.tables.length>1?`${a.tables.length} sheets \xb7 `:""}${c} rows`,aside:b,children:a.tables.map((b,c)=>(0,d.jsxs)("div",{className:c>0?"border-t border-rule-2":"",children:[a.tables.length>1&&b.name&&(0,d.jsx)("p",{className:"px-4 pt-3 text-label-11 uppercase tracking-wider text-ink-4",children:b.name}),(0,d.jsx)(W,{entry:b})]},c))})}function W({entry:a,notes:b=[]}){let c=Math.max(a.columns.length,...a.rows.map(a=>a.length)),e=[a.truncated?`showing ${a.rows.length} of ${a.total} rows`:null,void 0!==a.columnsTotal&&a.columnsTotal>c?`showing ${c} of ${a.columnsTotal} columns`:null,a.clipped?"some cells were shortened":null,"unknown"===a.header&&a.rows.length>0?"first row may or may not be a header":null,...b].filter(a=>null!==a);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"overflow-x-auto",children:(0,d.jsxs)(n.Ay,{frame:!1,children:["columns"===a.header&&a.columns.length>0&&(0,d.jsx)(n.D1,{children:a.columns.map((a,b)=>(0,d.jsx)(n.Th,{children:a},b))}),(0,d.jsx)("tbody",{children:a.rows.map((a,b)=>(0,d.jsx)(n.Tr,{children:a.map((a,b)=>(0,d.jsx)(n.Td,{align:"number"==typeof a?"right":"left",className:"max-w-[40ch] truncate text-mono-12 text-ink-2 whitespace-nowrap",children:null===a?"":String(a)},b))},b))})]})}),e.length>0&&(0,d.jsx)("p",{className:"px-4 py-2 text-mono-11 text-ink-4",children:e.join(" \xb7 ")})]})}let X={not_configured:"Not verified: no checks configured for this file",dirty:"Not yet verified",pending_approval:"Checks await approval",green:"Verified",red:"Checks failed",infra_error:"Checks could not run"};function Y({status:a}){let b=void 0===a?void 0:X[a];return void 0===b?null:(0,d.jsx)("p",{className:"border-t border-rule-2 px-4 py-2 text-mono-11 text-ink-4",children:b})}function Z({entry:a,status:b}){let c=void 0===b?void 0:X[b];return(0,d.jsxs)("div",{className:"border-t border-rule-2",children:[void 0!==a.name&&(0,d.jsx)("p",{className:"px-4 pt-3 text-label-11 uppercase tracking-wider text-ink-4",children:a.name}),(0,d.jsx)(W,{entry:a,notes:[...0===a.total?["empty sheet"]:[],"no formatting or merged cells; uncomputed formulas shown as written"]}),void 0!==c&&(0,d.jsx)("p",{className:"border-t border-rule-2 px-4 py-2 text-mono-11 text-ink-4",children:c})]})}function $({payload:a,step:b,aside:c,deliverables:e}){let f=a.files.some(a=>"listed"!==a.action),g=a.files.map(a=>(0,r.qg)(b.lineCounts,a.path)),h=g.reduce((a,b)=>null===b?a:{added:(a?.added??0)+b.added,removed:(a?.removed??0)+b.removed},null);return(0,d.jsxs)("div",{className:"overflow-hidden rounded-xl border border-rule-2 bg-canvas",children:[(0,d.jsxs)("div",{className:"flex h-[35px] items-center gap-2.5 px-3.5",children:[(0,d.jsx)(o.s,{tone:"ink",children:f?"diff review":"files"}),(0,d.jsxs)("span",{className:"text-mono-11 text-ink-3",children:[a.total," ",1===a.total?"file":"files",a.truncated?` \xb7 showing ${a.files.length}`:""]}),(0,d.jsxs)("span",{className:"ml-auto flex items-center gap-2.5",children:[(0,d.jsx)(D.LineDelta,{counts:h}),void 0!==c&&(0,d.jsx)("span",{className:"text-mono-11 text-ink-4",children:c})]})]}),(0,d.jsx)("ul",{className:"border-t border-rule-2",children:a.files.map((a,c)=>{let f=g[c]??null,h=void 0===a.deliverableKey?void 0:e.get((0,q.Do)(b.jobId,a.deliverableKey)),i=void 0!==a.preview?(0,d.jsx)(Z,{entry:a.preview,status:h}):void 0!==h?(0,d.jsx)(Y,{status:h}):void 0;return"listed"!==a.action&&null!==b.toolCallId?(0,d.jsx)(D.default,{jobId:b.jobId,toolCallId:b.toolCallId,path:a.path,action:a.action,lineCounts:f,...void 0!==a.bytes?{bytes:`${(0,z._y)(a.bytes)} B`}:{},...void 0!==a.detail?{detail:a.detail}:{},...void 0!==i?{preview:i}:{}},c):(0,d.jsxs)("li",{className:"border-t border-rule-2 first:border-t-0",children:[(0,d.jsxs)("div",{className:"flex h-[42px] items-center gap-2 pr-3.5 pl-[38px]",children:[(0,d.jsx)("span",{className:`h-1.5 w-1.5 shrink-0 rounded-full ${F[a.action]??"bg-ink-4"}`}),(0,d.jsx)(D.FileName,{path:a.path}),(0,d.jsx)(D.LineDelta,{counts:f}),void 0!==a.bytes&&(0,d.jsxs)("span",{className:"shrink-0 text-mono-11 text-ink-4",children:[(0,z._y)(a.bytes)," B"]}),void 0!==a.detail&&(0,d.jsx)("span",{className:"max-w-[40%] shrink-0 truncate text-mono-11 text-ink-4",children:a.detail})]}),i]},c)})})]})}function _({payload:a}){let b=a.timedOut||null!==a.exitCode&&0!==a.exitCode;return(0,d.jsxs)(T,{title:(0,d.jsx)("span",{className:"text-mono-12 text-ink",children:a.command}),aside:(0,d.jsx)(o.s,{tone:b?"err":"ink",children:a.timedOut?"timed out":`exit ${a.exitCode??"?"}`}),tone:b?"warn":"neutral",children:[""!==a.stdoutTail&&(0,d.jsxs)("pre",{className:"max-h-64 overflow-auto px-4 py-3 text-mono-11 text-ink-2 whitespace-pre-wrap break-words",children:[a.stdoutTruncated?"… (earlier output not kept)\n":"",a.stdoutTail]}),""!==a.stderrTail&&(0,d.jsxs)("pre",{className:"max-h-64 overflow-auto border-t border-rule-2 px-4 py-3 text-mono-11 text-err whitespace-pre-wrap break-words",children:[a.stderrTruncated?"… (earlier output not kept)\n":"",a.stderrTail]}),""===a.stdoutTail&&""===a.stderrTail&&(0,d.jsx)("p",{className:"px-4 py-3 text-body-12 text-ink-4",children:"No output."})]})}function aa({payload:a,input:b,aside:c,outcome:e}){let f=b&&"object"==typeof b&&"string"==typeof b.text?b.text:null,h=[a.kind,a.filename,a.target?`to ${a.target}`:null].filter(a=>"string"==typeof a&&""!==a).join(" \xb7 "),i=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{size:14,className:"shrink-0 text-ink-4","aria-hidden":!0}),(0,d.jsxs)("span",{className:"shrink-0 text-mono-12 text-ink",children:["Sent to ",a.channel]}),""!==h&&(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate text-mono-12 text-ink-3",children:h}),(0,d.jsx)("span",{className:`ml-auto h-2 w-2 shrink-0 rounded-full ${E[e]??"bg-ink-4"}`,"aria-hidden":!0}),void 0!==c&&(0,d.jsx)("span",{className:"shrink-0 text-mono-12 text-feed-metric",children:c})]}),j=null!==f||void 0!==a.bytes?(0,d.jsxs)(x.FoldableBody,{children:[null!==f&&(0,d.jsx)(t.Ay,{text:f}),void 0!==a.bytes&&(0,d.jsxs)("p",{className:"text-mono-11 text-ink-4",children:[(0,z._y)(a.bytes)," B"]})]}):void 0;return(0,d.jsx)(x.default,{head:i,...void 0!==j?{body:j}:{}})}function ab({payload:a}){let b="pass"===a.verdict;return(0,d.jsxs)(T,{title:b?"Review: approved":"Review: changes requested",meta:`${a.total} ${1===a.total?"finding":"findings"}`,tone:b?"ok":"warn",children:[(0,d.jsx)("div",{className:"px-4 py-3",children:(0,d.jsx)(t.Ay,{text:a.summary})}),a.items.length>0&&(0,d.jsx)("ul",{className:"border-t border-rule-2",children:a.items.map((a,b)=>(0,d.jsxs)("li",{className:"flex items-start gap-3 border-b border-rule-2 px-4 py-2.5 last:border-b-0",children:[(0,d.jsx)(o.s,{tone:a.ok?"agent":"blocker"===a.severity?"err":"warn",children:a.ok?"ok":a.severity??"issue"}),(0,d.jsxs)("span",{className:"min-w-0 flex-1 text-body-13 text-ink-2",children:[a.label,void 0!==a.ref&&(0,d.jsx)("span",{className:"mt-0.5 block text-mono-11 text-ink-4",children:a.ref})]})]},b))})]})}function ac({children:a}){return(0,d.jsx)("p",{className:"mb-1 text-label-11 uppercase tracking-wider text-ink-4",children:a})}function ad({payload:a}){var b,c;let e;return(0,d.jsxs)(H.default,{label:`Delegated to ${a.to}`,title:(b=a.resultText,c=a.task,""===(e=null!==b&&""!==b.trim()?b:c??"").trim()?"No result yet":(0,u.xv)((0,t.wh)(e),80)),ok:a.ok,aside:[null!==a.durationMs?(0,z._V)(a.durationMs):null,null!==a.costUsd?(0,z.BD)(a.costUsd):null].filter(a=>null!==a).join(" \xb7 "),children:[(0,d.jsxs)("div",{className:"px-4 py-3",children:[(0,d.jsx)(ac,{children:"Task"}),(0,d.jsx)(t.Ay,{text:a.task})]}),null!==a.resultText&&(0,d.jsxs)("div",{className:"border-t border-rule-2 px-4 py-3",children:[(0,d.jsx)(ac,{children:"Result"}),(0,d.jsx)(t.Ay,{text:a.resultText})]}),null!==a.error&&(0,d.jsx)("p",{className:"border-t border-rule-2 px-4 py-3 text-body-13 text-err",children:a.error})]})}function ae({children:a}){return(0,d.jsx)("p",{className:"text-mono-11 text-ink-4",children:a})}function af({job:a,from:b,deliverables:c}){let e=null!==a.completedAt&&null!==a.createdAt?a.completedAt.getTime()-a.createdAt.getTime():null,g=a.feed?.items.filter(a=>"request"!==a.kind&&"history"!==a.kind&&"child"!==a.kind),m=a.feed?.totals,n=void 0===m?0:m.inputTokens+m.outputTokens,o=[null!==e&&e>0?(0,z._V)(e):null,n>0?`${(0,z._y)(n)} tokens`:null,m&&null!==m.costUsd?(0,z.BD)(m.costUsd):null].filter(a=>null!==a).join(" \xb7 "),p=b.name??"An agent",q=a.agentName??"an agent",r="failed"===a.status||"cancelled"===a.status,s="completed"===a.status,v=null!==a.task?(0,u.xv)((0,t.wh)(a.task),80):"",w=function(a){let b=a.reviewVerdict;if(null==b)return function(a){if(null===a)return null;let[b,c]=(0,t.y1)(a,2);if(void 0===b)return null;let d=/^verdict(?:\s+[^\s:—]+)?\s*[:—]\s*(.+)$/i.exec(b.text);return d?.[1]!==void 0?d[1]:/^verdict\s*[:—–-]?$/i.test(b.text)&&void 0!==c&&"paragraph"===c.block?c.text:null}(a.result);let c="approve"===b.verdict?"Approved":"Changes requested",d=[["blocker",b.counts.blocker],["major",b.counts.major],["minor",b.counts.minor]].filter(([,a])=>a>0).map(([a,b])=>`${b} ${a}${b>1?"s":""}`).join(", ");return""===d?c:`${c} \xb7 ${d}`}(a);return(0,d.jsx)("div",{className:"mt-4",children:(0,d.jsx)(I.default,{head:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i.A,{name:p,imageUrl:b.avatarUrl??void 0,size:"sm",shape:"square"}),(0,d.jsx)("span",{className:"shrink-0 text-medium-13 text-ink",children:p}),(0,d.jsx)("span",{className:"shrink-0 text-body-13 text-feed-delegation",children:"delegated to"}),(0,d.jsx)(i.A,{name:q,imageUrl:a.agentAvatarUrl??void 0,size:"sm",shape:"square"}),(0,d.jsx)("span",{className:"shrink-0 text-medium-13 text-ink",children:q}),(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate text-body-13 text-ink-3",children:v}),null!==w&&(0,d.jsx)("span",{className:"max-w-[30ch] shrink-0 truncate text-body-13 text-feed-delegation",children:w}),(s||r)&&(0,d.jsx)("span",{"data-outcome":s?"ok":"failed",className:`h-2 w-2 shrink-0 rounded-full ${s?"bg-ok":"bg-err"}`}),(0,d.jsx)(j.A,{variant:s?"done":r?"warn":"run",label:s?"Done":r?"Failed":"Running",className:"shrink-0"}),""!==o&&(0,d.jsx)("span",{className:"shrink-0 text-mono-11 text-feed-metric",children:o})]}),body:(0,d.jsxs)("div",{className:"flex flex-col gap-2 pt-2.5 pr-3.5 pb-3 pl-10",children:[null!==a.task&&(0,d.jsxs)("div",{children:[(0,d.jsx)(ae,{children:"Task"}),(0,d.jsx)("div",{className:"text-body-13 text-ink-2",children:(0,d.jsx)(t.Ay,{text:a.task})})]}),void 0!==g&&g.length>0?(0,d.jsxs)("div",{children:[(0,d.jsx)(ae,{children:"What the child did"}),(0,d.jsx)(N,{items:g,deliverables:c})]}):(0,d.jsxs)(d.Fragment,{children:[null!==a.result&&(0,d.jsxs)("div",{children:[(0,d.jsx)(ae,{children:"Result"}),(0,d.jsx)("div",{className:"text-body-13 text-ink-2",children:(0,d.jsx)(t.Ay,{text:a.result})})]}),null!==a.error&&(0,d.jsx)("p",{className:"text-body-13 text-err",children:a.error}),(0,d.jsx)(P,{hint:a.failureHint})]}),null!=a.reviewVerdict&&""!==a.reviewVerdict.summary&&(0,d.jsxs)("div",{children:[(0,d.jsx)(ae,{children:"Verdict"}),(0,d.jsx)("p",{className:"text-body-13 text-ink-2",children:a.reviewVerdict.summary})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-3",children:[(0,l.G)(a.status)&&(0,d.jsx)(k.default,{jobId:a.id,status:a.status}),(0,d.jsxs)(f(),{href:`/scheduled/${a.id}`,className:"flex shrink-0 items-center gap-1.5 text-medium-13 text-ink-2 hover:text-ink",children:["Open run",(0,d.jsx)(h.B,{size:14,"aria-hidden":!0})]})]})]})})})}},27884:(a,b,c)=>{c.d(b,{i:()=>d});let d="folded"},32062:(a,b,c)=>{c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\spaces\\\\DelegationDisclosure.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\DelegationDisclosure.tsx","default")},40023:(a,b,c)=>{c.d(b,{FoldableBody:()=>f,default:()=>e});var d=c(5347);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\spaces\\\\FoldableBlock.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\FoldableBlock.tsx","default"),f=(0,d.registerClientReference)(function(){throw Error("Attempted to call FoldableBody() from the server but FoldableBody is 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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\FoldableBlock.tsx","FoldableBody")},42370:(a,b,c)=>{c.d(b,{default:()=>i});var d=c(27557),e=c(44928),f=c(87342),g=c(64560);function h(a,b,c){return`${a} ${1===a?b:c}`}function i({jobId:a,summary:b,defaultOpen:c=!1,children:j}){let k,[l,m]=(0,e.useState)(c),n=(k=[],b.tools>0&&k.push(h(b.tools,"tool","tools")),b.delegations>0&&k.push(h(b.delegations,"delegation","delegations")),b.modelCalls>0&&k.push(h(b.modelCalls,"model call","model calls")),null!==b.durationMs&&b.durationMs>0&&k.push((0,g._V)(b.durationMs)),null!==b.costUsd&&b.costUsd>0&&k.push((0,g.BD)(b.costUsd)),k);return(0,d.jsxs)("div",{className:"mt-3",children:[(0,d.jsx)("div",{className:"overflow-hidden rounded-md border border-rule-2 bg-canvas",children:(0,d.jsxs)(f.A,{open:l,onClick:()=>m(a=>!a),testId:`run-summary-${a}`,inset:"tight",className:"h-8 gap-2",children:[n.length>0&&(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate text-mono-12 text-feed-metric",children:n.join(" \xb7 ")}),(0,d.jsx)("span",{className:"ml-auto shrink-0 text-micro-10 text-ink-4",children:l?"Hide the work":"Show the work"})]})}),l&&j]})}},50822:(a,b,c)=>{c.d(b,{default:()=>h});var d=c(27557),e=c(44928),f=c(68051),g=c(87342);function h({steps:a}){let[b,c]=(0,e.useState)(!1);if(0===a.length)return null;let i=`${a.length} ${1===a.length?"step":"steps"}`;return(0,d.jsxs)("div",{className:"overflow-hidden rounded-xl border border-rule-2 bg-paper",children:[(0,d.jsxs)(g.A,{open:b,onClick:()=>c(a=>!a),chevron:"end",inset:"tight",className:"h-[36px] gap-2.5",children:[(0,d.jsx)(f.R,{size:14,className:"shrink-0 text-ink-4","aria-hidden":!0}),(0,d.jsx)("span",{className:"shrink-0 text-body-13 text-feed-reasoning",children:"Reasoning"}),(0,d.jsx)("span",{className:"ml-auto truncate text-mono-11 text-feed-metric",children:i})]}),b&&(0,d.jsx)("ul",{className:"border-t border-rule-2 py-1",children:a.map((a,b)=>(0,d.jsx)("li",{className:"px-4 py-2 text-body-12 text-feed-reasoning whitespace-pre-wrap break-words",children:a},b))})]})}},51632:(a,b,c)=>{c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\spaces\\\\ClampedText.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\ClampedText.tsx","default")},52460:(a,b,c)=>{c.d(b,{default:()=>g});var d=c(27557),e=c(44928),f=c(87342);function g({exchanges:a}){let[b,c]=(0,e.useState)(!1);return(0,d.jsxs)("div",{className:"mt-2 max-w-[720px] overflow-hidden rounded-[10px] border border-dashed border-rule-2 bg-canvas",children:[(0,d.jsxs)(f.A,{open:b,onClick:()=>c(a=>!a),inset:"tight",insetY:"tight",children:[(0,d.jsx)("span",{className:"text-medium-13 text-ink-3",children:"Earlier in this conversation"}),(0,d.jsxs)("span",{className:"ml-auto text-mono-11 text-ink-4",children:[a.length," ",1===a.length?"message":"messages"]})]}),b&&(0,d.jsx)("ul",{className:"border-t border-rule-2 py-2",children:a.map((a,b)=>(0,d.jsxs)("li",{className:"flex items-start gap-3 px-4 py-1.5 text-body-12 text-ink-3",children:[(0,d.jsx)("span",{className:"w-[52px] shrink-0 text-mono-11 text-ink-4",children:"user"===a.role?"you":"agent"}),(0,d.jsx)("span",{className:"min-w-0 flex-1 whitespace-pre-wrap break-words",children:a.text})]},b))})]})}},56409:(a,b,c)=>{c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\spaces\\\\Handoff.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\Handoff.tsx","default")},67028:(a,b,c)=>{c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\spaces\\\\LiveRefresh.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\LiveRefresh.tsx","default")},67932:(a,b,c)=>{c.d(b,{default:()=>e});var d=c(5347);(0,d.registerClientReference)(function(){throw Error("Attempted to call runSummaryParts() from the server but runSummaryParts is 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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\RunSummaryRow.tsx","runSummaryParts");let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\spaces\\\\RunSummaryRow.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\RunSummaryRow.tsx","default")},73596:(a,b,c)=>{c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\spaces\\\\ThinkingBlock.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\ThinkingBlock.tsx","default")},74774:(a,b,c)=>{c.d(b,{o:()=>o});var d=c(62793),e=c(72185),f=c(20556),g=c(63890),h=c(46190),i=c(24483),j=c(39311),k=c(94669);function l(a,b){return{ok:!1,code:a,message:b}}let m=e.Ik({jobId:e.Yj().guid(),toolCallId:e.Yj().min(1),path:e.Yj().min(1).optional()});async function n(){let a,b=(0,i.Iz)();try{let b=await (0,h.b3)();a=new Request("http://localhost/",{headers:b})}catch{a=new Request("http://localhost/")}let c=await (0,g.oC)(a,b);return(0,i.a1)(c,a)}async function o(a){try{var b;let c,d=await n(),e=m.safeParse(a);if(!e.success)return l("validation_failed",e.error.issues[0]?.message??"Invalid input");if(!d.entityId)return l("no_entity","No active entity");let g=(0,i.Lf)(),[h]=await g.select({id:f.ME.id}).from(f.ME).where((0,f.Uo)((0,f.eq)(f.ME.id,e.data.jobId),(0,f.eq)(f.ME.entityId,d.entityId))).limit(1);if(!h)return l("not_found","Job not found");if(!j._.WORKER_SECRET)return console.error("[getFileDiffAction] WORKER_SECRET missing"),l("config_error","WORKER_SECRET is not set");let k=new URLSearchParams({toolCallId:e.data.toolCallId});void 0!==e.data.path&&k.set("path",e.data.path);let o=`${j._.RUNNER_URL}/api/jobs/${e.data.jobId}/file-diff?${k.toString()}`;try{c=await fetch(o,{method:"GET",headers:{Authorization:`Bearer ${j._.WORKER_SECRET}`}})}catch(a){return console.error("[getFileDiffAction] fetch failed",a),l("runner_unreachable","Runner did not respond")}if(!c.ok){let a=(await c.json().catch(()=>({}))).error??`runner_${c.status}`;return l(a,`Runner rejected: ${a}`)}return b=await c.json(),{ok:!0,data:b}}catch(a){return console.error("[getFileDiffAction]",a),l("db_error","Failed to read the diff")}}(0,k.D)([o]),(0,d.A)(o,"40bbb9281e0ab36cd4ec0d93343838c6c898b30b7f",null)},78390:(a,b,c)=>{c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\spaces\\\\DelegationBlock.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\DelegationBlock.tsx","default")},85674:(a,b,c)=>{c.d(b,{default:()=>e});var d=c(5347);(0,d.registerClientReference)(function(){throw Error("Attempted to call excerptOfInput() from the server but excerptOfInput is 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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\ToolBlock.tsx","excerptOfInput"),(0,d.registerClientReference)(function(){throw Error("Attempted to call hasBody() from the server but hasBody is 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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\ToolBlock.tsx","hasBody");let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\spaces\\\\ToolBlock.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\ToolBlock.tsx","default");(0,d.registerClientReference)(function(){throw Error("Attempted to call StepLine() from the server but StepLine is 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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\ToolBlock.tsx","StepLine")},95005:(a,b,c)=>{c.d(b,{FileName:()=>q,LineDelta:()=>l,default:()=>r});var d=c(27557),e=c(44928),f=c(87342),g=c(40409),h=c(48601);let i=(0,h.createServerReference)("40bbb9281e0ab36cd4ec0d93343838c6c898b30b7f",h.callServer,void 0,h.findSourceMapURL,"getFileDiffAction");var j=c(13704);let k={no_checkpoint:"written before snapshots were kept",path_unresolved:"file could not be located",workspace_unreachable:"folder no longer reachable",checkpoint_store_unreadable:"snapshot history could not be read",not_in_snapshot:"file is ignored by the folder's .gitignore"};function l({counts:a}){return null===a||0===a.added&&0===a.removed?null:(0,d.jsxs)("span",{className:"shrink-0 text-mono-11",children:[a.removed>0&&(0,d.jsxs)("span",{className:"text-err",children:["−",a.removed]}),a.removed>0&&a.added>0&&" ",a.added>0&&(0,d.jsxs)("span",{className:"text-ok",children:["+",a.added]})]})}let m={"+":"text-ok","-":"text-err"," ":"text-ink-3","@":"text-ink-4"};function n({lines:a,truncated:b,truncatedNote:c="… truncated"}){return(0,d.jsxs)("div",{className:"border-t border-rule-2 bg-sidebar px-4 py-2",children:[(0,d.jsx)("pre",{className:"max-h-80 overflow-auto text-mono-11 whitespace-pre-wrap break-words",children:a.map((a,b)=>(0,d.jsx)("div",{className:m[a.kind],"data-diff":a.kind,children:"@"===a.kind?a.text:`${a.kind}${a.text}`},b))}),b&&(0,d.jsx)("p",{className:"pt-1 text-mono-11 text-ink-4",children:c})]})}function o({children:a}){return(0,d.jsx)("p",{className:"border-t border-rule-2 bg-sidebar px-4 py-2 text-mono-11 text-ink-4",children:a})}function p({view:a}){switch(a.kind){case"diff":return(0,d.jsx)(n,{lines:function(a){let b=[];for(let c of a.split("\n"))if(!(c.startsWith("diff --git")||c.startsWith("index ")||c.startsWith("--- ")||c.startsWith("+++ ")||c.startsWith("new file mode")||c.startsWith("deleted file mode")||c.startsWith("similarity index")||c.startsWith("rename "))){if(c.startsWith("@@")){b.push({kind:"@",text:c});continue}if(""!==c||0!==b.length)if(c.startsWith("+"))b.push({kind:"+",text:c.slice(1)});else if(c.startsWith("-"))b.push({kind:"-",text:c.slice(1)});else{if(c.startsWith("\\"))continue;b.push({kind:" ",text:c.startsWith(" ")?c.slice(1):c})}}return b}(a.text),truncated:a.truncated});case"fragment":{let b=(0,g.CNy)(a.oldString,a.newString);return(0,d.jsx)(n,{lines:b.lines,truncated:b.truncated,truncatedNote:"diff simplified: too long to compare line by line"})}case"unchanged":return(0,d.jsx)(o,{children:"No change"});case"binary":return(0,d.jsx)(o,{children:"Binary file"});case"unavailable":return(0,d.jsxs)(o,{children:["No diff: ",k[a.reason]??a.reason]})}}function q({path:a}){let b=a.lastIndexOf("/"),c=-1===b?a:a.slice(b+1),e=-1===b?"":a.slice(0,b+1);return(0,d.jsxs)("span",{className:"flex min-w-0 flex-1 items-baseline gap-1.5 text-left",title:a,children:[(0,d.jsx)("span",{className:"shrink-0 text-mono-12 text-ink",children:c}),""!==e&&(0,d.jsx)("span",{className:"min-w-0 truncate text-mono-11 text-ink-4",dir:"rtl",children:(0,d.jsx)("bdi",{dir:"ltr",children:e})})]})}function r({jobId:a,toolCallId:b,path:c,action:g,lineCounts:h=null,bytes:k,detail:m,preview:n}){let[s,t]=(0,e.useState)(!1),[u,v]=(0,e.useState)(null),[w,x]=(0,e.useState)(null),[y,z]=(0,e.useState)(!1);return(0,d.jsxs)("li",{className:"border-t border-rule-2 first:border-t-0",children:[(0,d.jsxs)(f.A,{open:s,onClick:()=>{let d=!s;t(d),d&&null===u&&!y&&(z(!0),x(null),i({jobId:a,toolCallId:b,path:c}).then(a=>{a.ok?v(a.data):x(a.code)}).catch(()=>x("unreachable")).finally(()=>z(!1)))},inset:"tight",className:"h-[42px]",children:[(0,d.jsx)("span",{className:`h-1.5 w-1.5 shrink-0 rounded-full ${j.v[g]??"bg-ink-4"}`}),(0,d.jsx)(q,{path:c}),(0,d.jsx)(l,{counts:h}),void 0!==k&&(0,d.jsx)("span",{className:"shrink-0 text-mono-11 text-ink-4",children:k}),void 0!==m&&(0,d.jsx)("span",{className:"max-w-[40%] shrink-0 truncate text-mono-11 text-ink-4",children:m})]}),n,s&&y&&(0,d.jsx)(o,{children:"Loading the diff…"}),s&&!y&&null!==w&&(0,d.jsxs)(o,{children:["No diff: ",w]}),s&&!y&&null!==u&&(0,d.jsx)(p,{view:u})]})}},99074:(a,b,c)=>{c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\spaces\\\\DeliveryFiles.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\spaces\\DeliveryFiles.tsx","default")}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=570,exports.ids=[570],exports.modules={12698:(a,b,c)=>{c.d(b,{default:()=>j});var d=c(27557),e=c(44928),f=c(81086),g=c(48601);let h=(0,g.createServerReference)("40739fb23bd2134be5673af9b849b05e245da36588",g.callServer,void 0,g.findSourceMapURL,"getRunFileChangesAction"),i=[];function j({files:a,jobId:b}){let[c,g]=(0,e.useState)(null),[k,l]=(0,e.useState)(!1),[m,n]=(0,e.useState)(null),o=()=>{null!==c||k||(l(!0),n(null),h({jobId:b}).then(a=>{a.ok?g(a.data):n(a.code)}).catch(()=>n("unreachable")).finally(()=>l(!1)))},p=new Map;for(let a of c??[]){let b=p.get(a.filePath)??[];b.push(a.edits),p.set(a.filePath,b)}let q=new Map;return(0,d.jsx)("div",{className:"flex flex-col","data-testid":"delivery-files",children:a.map(a=>{let b=q.get(a.path)??0;return q.set(a.path,b+1),(0,d.jsx)(f.Ay,{flush:!0,defaultOpen:!1,onOpen:o,pending:k,emptyNote:null!==m?`No diff: ${m}`:void 0,group:{filePath:a.path,addedLines:a.addedLines,removedLines:a.removedLines,changeKind:a.changeKind,edits:p.get(a.path)?.[b]??i}},`${a.path}#${b}`)})})}},13704:(a,b,c)=>{c.d(b,{v:()=>e,y:()=>d});let d={success:"bg-ok",error:"bg-err",blocked:"bg-err",awaiting_approval:"bg-run"},e={created:"bg-ok",modified:"bg-warn",listed:"bg-ink-4"}},16440:(a,b,c)=>{c.r(b),c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\components\\\\ui\\\\StopRunButton.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\components\\ui\\StopRunButton.tsx","default")},28524:(a,b,c)=>{c.d(b,{default:()=>f});var d=c(27557),e=c(44928);function f({children:a,className:b,follow:c="bottom"}){let g=(0,e.useRef)(null),h=(0,e.useRef)(!0),i=(0,e.useRef)(null),j=(0,e.useRef)(null),k=(0,e.useRef)(!1);return(0,d.jsx)("div",{ref:g,"data-thread-scroller":"","data-follow":c,className:b,onPointerDownCapture:()=>{j.current=performance.now(),k.current=!1},onKeyDownCapture:a=>{("Enter"===a.key||" "===a.key)&&(j.current=performance.now(),k.current=!1)},onScroll:()=>{let a=g.current;if(a){if(a.scrollHeight-a.scrollTop-a.clientHeight<64){i.current=null,h.current=!0,k.current=!0;return}(null===i.current||a.scrollTop!==i.current)&&(i.current=null,h.current=!1,k.current=!0)}},children:a})}},37133:(a,b,c)=>{c.d(b,{FoldableBody:()=>h,default:()=>g});var d=c(27557),e=c(44928),f=c(87342);function g({head:a,body:b}){let[c,h]=(0,e.useState)(!1);return(0,d.jsxs)("div",{className:"overflow-hidden rounded-md border border-rule-2 bg-canvas",children:[void 0!==b?(0,d.jsx)(f.A,{open:c,onClick:()=>h(a=>!a),chevron:"end",inset:"tight",className:"h-[33px] gap-2",children:a}):(0,d.jsx)("div",{className:"flex h-[33px] items-center gap-2 px-3",children:a}),c&&b]})}function h({children:a}){return(0,d.jsx)("div",{className:"flex flex-col gap-1.5 border-t border-rule-2 bg-paper px-3 pt-2 pb-2.5",children:a})}},55175:(a,b,c)=>{c.d(b,{$:()=>f,G:()=>e});var d=c(40409);function e(a){return null!=a&&d.KvV.includes(a)}function f(a){return e(a)?"awaiting_approval"===a?"waiting":"working":null}},60266:(a,b,c)=>{c.d(b,{default:()=>e});var d=c(5347);(0,d.registerClientReference)(function(){throw Error("Attempted to call AT_BOTTOM_SLACK_PX() from the server but AT_BOTTOM_SLACK_PX is 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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\chat\\[id]\\ThreadScroller.tsx","AT_BOTTOM_SLACK_PX"),(0,d.registerClientReference)(function(){throw Error("Attempted to call THREAD_GUTTER_VAR() from the server but THREAD_GUTTER_VAR is 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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\chat\\[id]\\ThreadScroller.tsx","THREAD_GUTTER_VAR"),(0,d.registerClientReference)(function(){throw Error("Attempted to call scrollbarGutterOf() from the server but scrollbarGutterOf is 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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\chat\\[id]\\ThreadScroller.tsx","scrollbarGutterOf"),(0,d.registerClientReference)(function(){throw Error("Attempted to call staysAtBottom() from the server but staysAtBottom is 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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\chat\\[id]\\ThreadScroller.tsx","staysAtBottom"),(0,d.registerClientReference)(function(){throw Error("Attempted to call READER_GESTURE_WINDOW_MS() from the server but READER_GESTURE_WINDOW_MS is 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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\chat\\[id]\\ThreadScroller.tsx","READER_GESTURE_WINDOW_MS"),(0,d.registerClientReference)(function(){throw Error("Attempted to call growthIsTheReaders() from the server but growthIsTheReaders is 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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\chat\\[id]\\ThreadScroller.tsx","growthIsTheReaders"),(0,d.registerClientReference)(function(){throw Error("Attempted to call scrollPolicy() from the server but scrollPolicy is 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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\chat\\[id]\\ThreadScroller.tsx","scrollPolicy");let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\chat\\\\[id]\\\\ThreadScroller.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\chat\\[id]\\ThreadScroller.tsx","default")},60464:(a,b,c)=>{c.d(b,{A:()=>g});var d=c(47235),e=c(77285),f=c(60266);function g({children:a,composer:b,actions:c=null,actionsBox:h="",follow:i="bottom",sidePadding:j=!0}){return(0,d.jsxs)(d.Fragment,{children:[null!==c&&(0,d.jsx)("div",{className:"w-full min-w-0 shrink-0 pt-4 pr-[var(--thread-gutter,0px)]",children:(0,d.jsx)("div",{className:`min-w-0 px-5 sm:px-8 lg:px-9 ${h}`,children:(0,d.jsx)(e.A,{children:c})})}),(0,d.jsx)(f.default,{follow:i,className:`min-h-0 flex-1 overflow-y-auto pt-6 pb-8 [scrollbar-gutter:stable] ${j?"px-5 sm:px-8 lg:px-9":""}`,children:(0,d.jsx)("div",{children:a})}),void 0!==b&&(0,d.jsxs)("div",{className:"relative shrink-0 px-5 pt-2 pb-3 sm:px-8 lg:px-9 mr-[var(--thread-gutter,0px)]",children:[(0,d.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 bottom-full h-7 bg-linear-to-t from-canvas to-transparent"}),b]})]})}},61387:(a,b,c)=>{c.r(b),c.d(b,{default:()=>m});var d=c(27557),e=c(44928),f=c(81023),g=c(40236),h=c(25e3),i=c(3079),j=c(48601);let k=(0,j.createServerReference)("402c6b37f9017e36713cda442daebf1ceb7c738c0e",j.callServer,void 0,j.findSourceMapURL,"cancelJobAction");var l=c(55175);function m({jobId:a,status:b}){let[c,j]=(0,e.useState)(!1),[n,o]=(0,e.useTransition)(),p=(0,f.useRouter)();return(0,l.G)(b)?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{"data-testid":"stop-run","data-job-id":a,children:(0,d.jsx)(i.A,{tone:"danger",onClick:()=>j(!0),disabled:n,children:n?"Stopping…":"Stop"})}),(0,d.jsx)(h.A,{open:c,title:"Stop this run?",message:"The run and everything it delegated stop at the next check. A model call already in flight finishes on its own, and the run then reads Cancelled.",confirmLabel:"Stop run",cancelLabel:"Keep running",destructive:!0,onConfirm:function(){j(!1),o(async()=>{let b=await k(a);b.ok?(g.oR.success("Run stopped"),p.refresh()):g.oR.error(b.message)})},onCancel:()=>j(!1)})]}):null}},71095:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(47235),e=c(82407);function f({avatarName:a,avatarUrl:b=null,title:c,subtitle:g}){return(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[""!==a.trim()&&(0,d.jsx)(e.A,{name:a,imageUrl:b,size:"md",shape:"square"}),(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,d.jsx)("h1",{className:"truncate text-title-16 text-ink",children:c}),(0,d.jsx)("p",{className:"truncate text-mono-11 text-ink-4",children:g})]})]})}},77285:(a,b,c)=>{c.d(b,{A:()=>e});var d=c(47235);function e({children:a,className:b=""}){return(0,d.jsx)("div",{"data-testid":"action-row",className:`flex min-w-0 flex-wrap items-center justify-end gap-2 ${b}`,children:a})}},81086:(a,b,c)=>{c.d(b,{Ay:()=>k});var d=c(27557),e=c(44928),f=c(40409),g=c(87342);let h={added:"added",modified:"modified",deleted:"deleted",renamed:"renamed",written:"written"};function i(a,b){if(null===a||""===a)return{lines:[],total:0};let c=1,d=0,e=-1;for(let f=a.indexOf("\n");-1!==f;f=a.indexOf("\n",f+1))c++,++d===b&&(e=f);return b<=0?{lines:[],total:c}:{lines:(-1===e?a:a.slice(0,e)).split("\n"),total:c}}function j({row:a}){let b="+"===a.sign?"bg-ok-bg text-ok":"-"===a.sign?"bg-warn-bg text-err":"text-code-text";return(0,d.jsxs)("div",{className:`flex w-full gap-3 px-3.5 py-px ${b}`,"data-diff":a.sign,children:[(0,d.jsx)("span",{className:"w-7 shrink-0 text-right text-mono-12 text-ink-4 select-none",children:a.num}),(0,d.jsxs)("span",{className:"text-mono-12 whitespace-pre",children:[" "===a.sign?" ":a.sign,a.text||" "]})]})}function k({group:a,defaultOpen:b=!0,onOpen:c,pending:l=!1,emptyNote:m,flush:n=!1}){let[o,p]=(0,e.useState)(b),{rows:q,hiddenOld:r,hiddenNew:s}=(0,e.useMemo)(()=>{var b;let c,d,e,g,h,j,k;return b=a.edits,c=[],d=0,e=0,g=0,h=0,j=0,k=!1,b.forEach((a,b)=>{b>0&&(k=!0);let l=Math.max(0,80-g),m=i(a.oldText,l),n=i(a.newText,l),o=(0,f.CNy)(m.lines.join("\n"),n.lines.join("\n")),p=0,q=0;for(let a of o.lines){let b;if(g>=80)break;"-"===a.kind?(b=++d,p++):("+"===a.kind?b=++e:(d++,b=++e,p++),q++),k&&(c.push({kind:"edit-sep"}),k=!1),g++,c.push({kind:"line",sign:a.kind,num:b,text:a.text})}h+=m.total-p,j+=n.total-q}),{rows:c,hiddenOld:h,hiddenNew:j}},[a.edits]),t=function(a,b){if(a>0&&b>0)return`… ${a} old, ${b} new lines not shown`;let c=a+b;return c>0?`… and ${c} more lines`:null}(r,s),u=a.changeKind??(a.edits[0]?.kind==="write"?"added":"modified");return(0,d.jsxs)("div",{className:n?"w-full bg-paper border-b border-rule-2 first:border-t last:border-b-0":"overflow-hidden rounded-xl border border-rule-2",children:[(0,d.jsxs)(g.A,{open:o,onClick:()=>{let a=!o;p(a),a&&c?.()},inset:"tight",className:"h-[42px]",children:[(0,d.jsx)("span",{className:"shrink-0 text-mono-12 font-bold text-feed-tool","data-testid":"file-change-kind",children:h[u]}),(0,d.jsx)("span",{dir:"rtl",title:a.filePath,className:"min-w-0 flex-1 truncate text-left text-mono-12 text-feed-path",children:(0,d.jsx)("bdi",{dir:"ltr",children:a.filePath})}),(0,d.jsxs)("span",{className:"shrink-0 text-mono-11",children:[a.addedLines>0&&(0,d.jsxs)("span",{className:"text-ok",children:["+",a.addedLines]}),a.addedLines>0&&a.removedLines>0&&" ",a.removedLines>0&&(0,d.jsxs)("span",{className:"text-err",children:["−",a.removedLines]})]})]}),o&&(0,d.jsxs)("div",{className:"border-t border-rule-2 bg-code-bg",children:[l&&0===q.length?(0,d.jsx)("p",{className:"px-4 py-2 text-mono-11 text-ink-4",children:"Loading the diff…"}):0===q.length?(0,d.jsx)("p",{className:"px-4 py-2 text-mono-11 text-ink-4",children:m??"No text recorded for this change."}):(0,d.jsx)("div",{className:"max-h-[480px] overflow-auto",children:(0,d.jsx)("div",{className:"min-w-max py-2",children:q.map((a,b)=>"edit-sep"===a.kind?(0,d.jsx)("div",{className:"my-2 border-t border-rule-2"},b):(0,d.jsx)(j,{row:a},b))})}),null!==t&&(0,d.jsx)("p",{className:"border-t border-rule-2 px-4 py-1.5 text-mono-11 text-ink-4",children:t})]})]})}},81730:(a,b,c)=>{c.d(b,{default:()=>e}),c(44928);var d=c(81023);function e({live:a,everyMs:b=3e3}){return(0,d.useRouter)(),null}},87342:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(27557),e=c(3188),f=c(75804);let g={default:"px-4",tight:"px-3",none:"px-0"},h={default:"py-3",tight:"py-2",none:"py-0"};function i({open:a,onClick:b,children:c,chevron:j="start",inset:k="default",insetY:l="default",className:m="",testId:n}){let o=(0,d.jsx)("span",{className:"flex w-3.5 shrink-0 items-center text-ink-4","aria-hidden":!0,children:a?(0,d.jsx)(e.a,{size:14}):(0,d.jsx)(f.K,{size:14})});return(0,d.jsxs)("button",{type:"button",onClick:b,"aria-expanded":a,"data-testid":n,className:`flex w-full items-center gap-2 ${g[k]} ${h[l]} text-left hover:bg-hover ${m}`,children:["start"===j&&o,c,"end"===j&&o]})}},91452:(a,b,c)=>{c.d(b,{default:()=>m});var d=c(27557),e=c(86965),f=c(37133),g=c(51040),h=c(91911),i=c(9920),j=c(64560),k=c(13704);function l(a){if(null==a)return null;let b=null;if("string"==typeof a)b=a;else if("object"==typeof a){let c=Object.entries(a);if(0===c.length)return null;b=1===c.length&&"string"==typeof c[0]?.[1]?c[0][1]:c.map(([a,b])=>`${a}=${"string"==typeof b?b:JSON.stringify(b)}`).join(" ")}else b=String(a);if(null===b||""===b)return null;let c=b.replace(/\s+/g," ").trim();return""===c?null:c.length>60?`${c.slice(0,59)}…`:c}function m({step:a,tag:b=null}){let c=l(a.input),g=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(e.B,{size:14,className:"shrink-0 text-ink-4","aria-hidden":!0}),(0,d.jsx)("span",{className:"shrink-0 text-mono-12 text-feed-tool",title:a.toolName,children:(0,j.Ow)(a.toolName)}),b,null!==c&&(0,d.jsxs)("span",{className:"min-w-0 flex-1 truncate text-mono-12 text-feed-argument",children:["(",c,")"]}),(0,d.jsx)("span",{className:`ml-auto h-2 w-2 shrink-0 rounded-full ${k.y[a.outcome]??"bg-ink-4"}`,"aria-hidden":!0}),null!==a.durationMs&&(0,d.jsx)("span",{className:"shrink-0 text-mono-12 text-feed-metric",children:(0,j._V)(a.durationMs)})]});return(0,d.jsx)(f.default,{head:g,..."success"!==a.outcome||null!==a.presented||null!==a.outputText&&""!==a.outputText.trim()||null!==l(a.input)?{body:(0,d.jsx)(n,{step:a})}:{}})}function n({step:a}){var b;let c=null==(b=a.input)||"object"==typeof b&&0===Object.keys(b).length?null:JSON.stringify(b,null,2),e=null!==a.presented?null:null===a.card?"no card recorded":`${a.card} \xb7 raw`,g=null===a.presented&&"success"===a.outcome,i="error"===a.outcome||"blocked"===a.outcome;return(0,d.jsxs)(f.FoldableBody,{children:[null!==c&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:"text-mono-11 text-ink-4",children:"Input"}),(0,d.jsx)(h.A,{code:c,lang:"json",className:"",lineNumbers:!1})]}),(0,d.jsx)("p",{className:"text-mono-11 text-ink-4",children:"Result"}),g?(0,d.jsx)(o,{text:a.outputText??l(a.input)??""}):(0,d.jsx)("div",{className:`text-mono-12 break-words ${i?"text-err":"text-ink-3"}`,children:(0,d.jsx)(p,{step:a})}),null!==e&&(0,d.jsx)("p",{className:"text-mono-11 text-ink-4",children:e})]})}function o({text:a}){let b=(0,i.D_)(a);return null!==b?(0,d.jsx)(h.A,{code:b,lang:"json",className:"",lineNumbers:!1}):(0,d.jsx)(h.A,{code:a,className:"",lineNumbers:!1})}function p({step:a}){if("error"===a.outcome||"blocked"===a.outcome)return(0,d.jsxs)(d.Fragment,{children:[a.outcome," ",(0,d.jsx)(q,{text:a.outputText})]});if("awaiting_approval"===a.outcome)return(0,d.jsx)(g.s,{tone:"warn",children:"awaiting approval"});let b=a.presented;if(null===b)return(0,d.jsxs)(d.Fragment,{children:[null!==a.card&&(0,d.jsx)(g.s,{tone:"ink",children:a.card})," ",(0,d.jsx)(q,{text:a.outputText??l(a.input)})]});switch(b.card){case"text":return(0,d.jsxs)("span",{className:b.failure?"text-err":"",children:[b.text,b.truncated?" …":""]});case"read":return(0,d.jsxs)(d.Fragment,{children:[b.path??"document"," \xb7 ",b.chars.toLocaleString("en-US")," chars",void 0!==b.sections?` \xb7 ${b.sections} sections`:"",b.truncated?" \xb7 truncated":""]});case"search":return(0,d.jsxs)(d.Fragment,{children:["“",b.query,"” \xb7 ",b.total," ",1===b.total?"match":"matches",b.hits[0]?` \xb7 ${b.hits[0].title}`:"",b.truncated?" \xb7 truncated":""]});case"table":return(0,d.jsxs)(d.Fragment,{children:[b.tables.length," ",1===b.tables.length?"table":"tables"," \xb7"," ",b.tables.reduce((a,b)=>a+b.total,0)," rows"]});case"files":return(0,d.jsxs)(d.Fragment,{children:[b.total," ",1===b.total?"file":"files"," \xb7 ",b.files[0]?.path??""]});case"sent":{let c=null!==a.input&&"object"==typeof a.input&&"string"==typeof a.input.text?a.input.text.length:null;return(0,d.jsxs)(d.Fragment,{children:["to ",b.target??b.channel,null!==c?` \xb7 ${c} chars`:""]})}case"question":return(0,d.jsxs)(d.Fragment,{children:["asked \xb7 ",b.options?.length??0," ",b.options?.length===1?"option":"options"]});case"delegation":return(0,d.jsxs)(d.Fragment,{children:["to ",b.to," \xb7 ",b.ok?"done":"failed"]});case"terminal":return(0,d.jsxs)(d.Fragment,{children:[b.command," \xb7 ",b.timedOut?"timed out":`exit ${b.exitCode??"?"}`]});case"checks":return(0,d.jsxs)(d.Fragment,{children:["pass"===b.verdict?"approved":"changes requested"," \xb7 ",b.total," ",1===b.total?"finding":"findings"]});case"generic":return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.s,{tone:"ink",children:"raw"})," ",(0,d.jsx)(q,{text:a.outputText})]});default:return null}}function q({text:a}){if(null===a)return null;let b=a.replace(/\s+/g," ").trim();return(0,d.jsx)(d.Fragment,{children:b.length>160?`${b.slice(0,159)}…`:b})}},91878:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{d:()=>t});var e=c(62793),f=c(72185),g=c(20556),h=c(63890),i=c(46190),j=c(24483),k=c(11712),l=c(84969),m=c(86816),n=c(50914),o=c(17554),p=c(94669),q=a([k]);function r(a,b){return{ok:!1,code:a,message:b}}k=(q.then?(await q)():q)[0];let u=f.Ik({jobId:f.Yj().guid()});async function s(){let a,b=(0,j.Iz)();try{let b=await (0,i.b3)();a=new Request("http://localhost/",{headers:b})}catch{a=new Request("http://localhost/")}let c=await (0,h.oC)(a,b);return(0,j.a1)(c,a)}async function t(a){try{var b;let c=await s(),d=u.safeParse(a);if(!d.success)return r("validation_failed",d.error.issues[0]?.message??"Invalid input");if(!c.entityId)return r("no_entity","No active entity");let e=(0,j.Lf)(),[f]=await e.select({id:g.ME.id}).from(g.ME).where((0,g.Uo)((0,g.eq)(g.ME.id,d.data.jobId),(0,g.eq)(g.ME.entityId,c.entityId))).limit(1);if(!f)return r("not_found","Job not found");let h=await (0,k.pJ)(e,c.entityId,[d.data.jobId]),i=[d.data.jobId,...h.map(a=>a.id)],p=await e.select({toolName:g.Ky.toolName,toolInput:g.Ky.toolInput,toolOutput:g.Ky.toolOutput,presented:g.Ky.presented}).from(g.Ky).where((0,g.Uo)((0,g.eq)(g.Ky.entityId,c.entityId),(0,g.RV)(g.Ky.jobId,i))).orderBy(g.Ky.createdAt),q=await (0,l.gT)(e,c.entityId),t=p.map(a=>{let b=null!==a.presented&&"object"==typeof a.presented&&"files"===a.presented.card?(0,n.EQ)(a.presented):null;return{...(0,m.Ne)(a),rawFilePaths:null!==b&&"files"===b.card?b.files.map(a=>a.path):void 0}});return b=(0,o.J)(t,q),{ok:!0,data:b}}catch(a){return console.error("[getRunFileChangesAction]",a),r("db_error","Failed to read the file changes")}}(0,p.D)([t]),(0,e.A)(t,"40739fb23bd2134be5673af9b849b05e245da36588",null),d()}catch(a){d(a)}})}};
@@ -1 +0,0 @@
1
- exports.id=5974,exports.ids=[5974],exports.modules={4074:(a,b,c)=>{"use strict";c.d(b,{default:()=>r});var d=c(27557),e=c(44928),f=c(81023),g=c(40236),h=c(48601);let i=(0,h.createServerReference)("4020a9b5a7e1aa8d8e79d75dc02f58acdd4af67912",h.callServer,void 0,h.findSourceMapURL,"resetSkillToDefaultAction");var j=c(9689);let k=(0,h.createServerReference)("40d8fc8a6eb8a5833c447f09330385f265cca79c69",h.callServer,void 0,h.findSourceMapURL,"createSkillAction");var l=c(25e3),m=c(775),n=c(3079),o=c(37422),p=c(73031),q=c(52282);function r(a){let b="edit"===a.mode,c=(0,f.useRouter)(),[h,r]=(0,e.useState)(b||!0===a.defaultOpen),[s,t]=(0,e.useTransition)(),[u,v]=(0,e.useState)(!1),w=b&&!0===a.initial.contentOverridden&&null!==a.initial.defaultContent;if(!h)return(0,d.jsx)(m.A,{variant:"ink",onClick:()=>r(!0),children:"+ New skill"});let x=b?a.initial:void 0;return(0,d.jsxs)("form",{onSubmit:function(d){d.preventDefault();let e=d.currentTarget,f=new FormData(e);if(b&&"edit"===a.mode){let b={id:a.initial.id,name:f.get("name"),content:f.get("content"),description:f.get("description")||void 0};t(async()=>{let d=await (0,j.R)(b);d.ok?(g.oR.success("Skill updated"),a.onClose?(a.onClose(),c.refresh()):c.push("/skills")):g.oR.error(d.message)})}else t(async()=>{let b=await k({slug:f.get("slug"),name:f.get("name"),content:f.get("content"),description:f.get("description")||void 0});b.ok?(g.oR.success("Skill created"),e.reset(),a.onClose?(a.onClose(),c.refresh()):c.push("/skills")):g.oR.error(b.message)})},className:"bg-paper border border-rule-2 rounded-xl p-5 space-y-3",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsx)("h3",{className:"text-sm font-semibold text-ink",children:b?"Edit skill":"New skill"}),w&&(0,d.jsx)(n.A,{onClick:()=>v(!0),disabled:s,title:"Restore the catalog default content for this skill",className:"!border-warn/30 !text-warn hover:!bg-warn-bg hover:!text-warn",children:"Reset to default"})]}),(0,d.jsx)(l.A,{open:u,title:"Reset skill to default?",message:"Your customised instructions will be replaced with the catalog default shipped with NodalAI. This cannot be undone.",confirmLabel:"Reset",cancelLabel:"Cancel",destructive:!0,onConfirm:function(){if(!b)return;let d=a.initial.id;v(!1),t(async()=>{let a=await i(d);a.ok?(g.oR.success("Skill reset to default"),c.refresh()):g.oR.error(a.message)})},onCancel:()=>v(!1)}),(0,d.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,d.jsx)(o.A,{id:"skill-slug",label:(0,d.jsxs)(d.Fragment,{children:["Slug ",b&&(0,d.jsx)("span",{className:"text-ink-4",children:"(stable — not editable)"})]}),name:"slug",required:!b,readOnly:b,disabled:b,pattern:b?void 0:"[a-z0-9\\-]+",placeholder:"my-skill",defaultValue:x?.slug,title:b?"Slug is a stable identifier and cannot be changed":void 0,className:b?"cursor-not-allowed font-mono text-ink-3":"font-mono"}),(0,d.jsx)(o.A,{id:"skill-name",label:"Name",name:"name",required:!0,placeholder:"My Skill",defaultValue:x?.name})]}),(0,d.jsx)(o.A,{id:"skill-description",label:(0,d.jsxs)(d.Fragment,{children:["Description ",(0,d.jsx)("span",{className:"text-ink-4",children:"(optional)"})]}),name:"description",maxLength:500,placeholder:"What does this skill teach the agent?",defaultValue:x?.description??""}),(0,d.jsx)(p.A,{id:"skill-content",label:"Instructions",name:"content",required:!0,rows:18,placeholder:"Step-by-step instructions or context the agent gets when this skill is enabled.",defaultValue:x?.content,className:"min-h-[440px] leading-relaxed"}),(0,d.jsxs)(q.j,{className:"-mx-5 -mb-5 mt-1 rounded-b-xl",children:[(0,d.jsx)(m.A,{variant:"neutral",onClick:()=>a.onClose?a.onClose():c.push("/skills"),children:"Cancel"}),(0,d.jsx)(m.A,{variant:"ink",type:"submit",disabled:s,children:s?b?"Saving…":"Creating…":b?"Save changes":"Create skill"})]})]})}},9689:(a,b,c)=>{"use strict";c.d(b,{R:()=>e});var d=c(48601);let e=(0,d.createServerReference)("405be84667c8b7479a6225f1cb7fe66df7749c3d64",d.callServer,void 0,d.findSourceMapURL,"updateSkillAction")},31629:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\app\\\\(dashboard)\\\\skills\\\\SkillForm.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\app\\(dashboard)\\skills\\SkillForm.tsx","default")},35542:(a,b,c)=>{"use strict";c.d(b,{default:()=>g});var d=c(27557),e=c(55703),f=c(44928);function g({placeholder:a="Search agents, skills, runs…",keyboardShortcut:b=!0,onSubmit:c,className:h=""}){let i=(0,f.useRef)(null);return(0,d.jsxs)("form",{onSubmit:a=>{a.preventDefault(),c?.(i.current?.value??"")},className:`flex h-[34px] min-w-[280px] items-center gap-2 rounded-md border border-rule-2 bg-paper px-3 text-body-13 text-ink-4 ${h}`,children:[(0,d.jsx)(e.e,{size:13,className:"shrink-0"}),(0,d.jsx)("input",{ref:i,type:"search",placeholder:a,className:"h-full flex-1 border-0 bg-transparent text-body-14 leading-none! text-ink outline-none placeholder:text-ink-4"}),(0,d.jsx)("span",{className:"rounded-[5px] border border-rule bg-black/5 px-1.5 py-[1px] text-mono-12 leading-none! text-ink-4 dark:bg-white/[0.06]",children:"/"})]})}},39437:(a,b,c)=>{Promise.resolve().then(c.bind(c,4074)),Promise.resolve().then(c.bind(c,7375)),Promise.resolve().then(c.bind(c,35542)),Promise.resolve().then(c.bind(c,28198))},41060:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\components\\\\ui\\\\SearchBox.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\components\\ui\\SearchBox.tsx","default")},55703:(a,b,c)=>{"use strict";c.d(b,{e:()=>h});var d=c(44928),e=c(14778);let f=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),d.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),g=d.forwardRef((a,b)=>d.createElement(e.A,{ref:b,...a,weights:f}));g.displayName="MagnifyingGlassIcon";let h=g},57997:(a,b,c)=>{Promise.resolve().then(c.bind(c,31629)),Promise.resolve().then(c.bind(c,86585)),Promise.resolve().then(c.bind(c,41060)),Promise.resolve().then(c.bind(c,90356))},73031:(a,b,c)=>{"use strict";c.d(b,{A:()=>g});var d=c(27557),e=c(44928),f=c(9987);let g=(0,e.forwardRef)(function({label:a,error:b,showCount:c,id:g,className:h="",containerClassName:i="",maxLength:j,value:k,bare:l=!1,...m},n){let o=(0,e.useId)(),p=g??o;return(0,d.jsxs)("div",{className:i,children:[a&&(0,d.jsx)(f.A,{htmlFor:p,children:a}),(0,d.jsx)("textarea",{id:p,ref:n,maxLength:j,value:k,"aria-invalid":!!b||void 0,className:l?`w-full text-ink placeholder:text-ink-4 transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${h}`:`w-full resize-y rounded-md border bg-hover px-2 py-1.5 text-body-14 leading-[1.5]! text-ink placeholder:text-ink-4 transition-colors focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ${b?"border-err focus:border-err":"border-rule focus:border-ink-3"} ${h}`,...m}),c&&void 0!==j&&"string"==typeof k&&(0,d.jsxs)("div",{className:"mt-1 text-right text-legacy-11 text-ink-4",children:[k.length," / ",j]}),b&&(0,d.jsx)("p",{className:"mt-1 text-xs text-err",children:b})]})})},80241:(a,b,c)=>{"use strict";c.d(b,{A:()=>i});var d=c(47235),e=c(41060),f=c(90356),g=c(86585);function h({title:a,subtitle:b,header:c}){return void 0!==c?(0,d.jsxs)("header",{className:"flex min-h-[75px] items-center gap-4 border-b border-rule-2 px-5 pt-5 pb-4 sm:px-8 lg:px-9",children:[(0,d.jsx)("div",{className:"min-w-0 flex-1",children:c}),(0,d.jsxs)("div",{className:"hidden shrink-0 items-center gap-2 lg:flex",children:[(0,d.jsx)(e.default,{className:"hidden md:flex"}),(0,d.jsx)(g.default,{}),(0,d.jsx)(f.default,{})]})]}):(0,d.jsxs)("header",{className:"flex items-center justify-between gap-4 border-b border-rule-2 px-5 pt-5 pb-4 sm:px-8 lg:px-9",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsx)("h1",{className:"text-display-28 leading-[1.15]! tracking-[-0.015em] text-ink",children:a}),b&&(0,d.jsx)("p",{className:"mt-1.5 text-body-14 leading-[1.5]! text-ink-3",children:b})]}),(0,d.jsxs)("div",{className:"hidden shrink-0 items-center gap-2 lg:flex",children:[(0,d.jsx)(e.default,{className:"hidden md:flex"}),(0,d.jsx)(g.default,{}),(0,d.jsx)(f.default,{})]})]})}function i(a){let{toolbar:b,toolbarBleed:c=!1,aside:e,footer:f,children:g,fluid:i=!1,fill:j=!1,bodyClassName:k=""}=a,l=void 0!==a.header?(0,d.jsx)(h,{header:a.header}):(0,d.jsx)(h,{title:a.title,subtitle:a.subtitle});return j?(0,d.jsxs)("div",{className:"flex h-full min-h-0 flex-1 flex-col",children:[l,b&&c&&b,(0,d.jsxs)("div",{className:"flex min-h-0 flex-1",children:[(0,d.jsxs)("div",{className:`flex min-w-0 min-h-0 flex-1 flex-col ${k}`,children:[b&&!c&&(0,d.jsx)("div",{className:`w-full px-5 pt-4 sm:px-8 lg:px-9 ${i?"":"mx-auto max-w-6xl"}`,children:b}),i?g:(0,d.jsx)("div",{className:"mx-auto flex min-h-0 w-full max-w-6xl flex-1 flex-col",children:g})]}),e]}),f]}):(0,d.jsxs)(d.Fragment,{children:[l,b&&c&&b,(0,d.jsxs)("div",{className:`w-full px-5 pt-6 pb-10 sm:px-8 lg:px-9 ${i?"":"mx-auto max-w-6xl"} ${k}`,children:[b&&!c&&(0,d.jsx)("div",{className:"mb-5",children:b}),g]})]})}},86585:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\components\\\\NotificationsBell.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\components\\NotificationsBell.tsx","default")},90356:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(5347).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\APPS\\\\NodalAI\\\\apps\\\\web\\\\src\\\\components\\\\ui\\\\ThemeToggle.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.")},"D:\\APPS\\NodalAI\\apps\\web\\src\\components\\ui\\ThemeToggle.tsx","default")},95618:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{"000bd8157c910bf77772cc2cb9c4f81f1610d832cc":()=>g.A6,"00218821ab88df9394cf56763865a74ac442f22da7":()=>g.S9,"0084a11776601cd6136e9e880140b2129722a78468":()=>g.te,"009e5ca731f63c45e1966761276db46b2ae60ca53c":()=>f.k,"400cb808a9c061817e8d349921532a78dcf43c8b71":()=>h.uR,"400d8a21a1bf5fc96a9550cebf781eafac6bd8919a":()=>e.sc,"40197e4562d81a5a38d4dcf80bcdbbb1c85995832d":()=>h.X2,"402bbeb3e91ca0916272f7159778065334dfe7d448":()=>g.dP,"40441fc5a6341bfe063e9db7772193a1a043bfcc8f":()=>g.gL,"4051cbca859f5bd05098d09d04bc3dd1b5e48be8f4":()=>g.t8,"40554da7e37aaee6faf4fab6327cdfeb006bef80f1":()=>e.My,"405c5157869cc4cd2f63b1a8e4dafc2522077d04e0":()=>g.O0,"40620fec99ecf7c5964b221c1b989a37c00fe9c78a":()=>g.Vr,"4074c5de725bee02e0f663a2138b15d1e5e22aa677":()=>g.Kd,"4074e911becbb81bb6d5208451da6432e12876099b":()=>g.Vq,"40ac972db85279baeb887c6e0f585d5a163b7b3258":()=>h.vU,"40bd361728e465a1d4ea7a8b2dbb085f273d06532e":()=>g.zj,"40cb7c956c55a04d4400e77d3981caac044c187fcd":()=>e.W8,"40cc91a8a2422f52b934bbeaf370edacf4ebf80c75":()=>g.fn,"40e03646d17d361f60ef3b19c68f24afc0a5933c10":()=>h.lA,"40e95a60757035b9439ecd3476ae114f1acac531f4":()=>e.EY,"40ff3b3ceb10fbabd64248846fd364d973ff318685":()=>g.$A});var e=c(4420),f=c(27944),g=c(53675),h=c(34020),i=a([f]);f=(i.then?(await i)():i)[0],d()}catch(a){d(a)}})}};