@orgsdk/cli 0.1.0 → 0.2.1

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 (275) hide show
  1. package/README.md +21 -7
  2. package/bin/orgsdk.mjs +1 -1
  3. package/dist/THIRD_PARTY_NOTICES.txt +278 -0
  4. package/dist/runtime/README.md +9 -7
  5. package/dist/runtime/cli.js +12 -13
  6. package/dist/runtime/client.js +79 -17
  7. package/dist/runtime/contract.js +39 -6
  8. package/dist/runtime/executor-configuration.js +1 -1
  9. package/dist/runtime/isolated-actions.js +4 -5
  10. package/dist/runtime/isolated-worker.js +5 -0
  11. package/dist/runtime/mcp/aliases.js +29 -0
  12. package/dist/runtime/mcp/client.js +239 -0
  13. package/dist/runtime/mcp/contract.js +57 -0
  14. package/dist/runtime/mcp/functions.js +40 -0
  15. package/dist/runtime/mcp/network.js +61 -0
  16. package/dist/runtime/mcp/schema-types.js +35 -0
  17. package/dist/runtime/mcp/transport.js +18 -0
  18. package/dist/runtime/project-data.js +1 -1
  19. package/dist/runtime/register-executor.js +23 -0
  20. package/dist/runtime/runner.js +30 -24
  21. package/dist/runtime/sdk-declarations.js +8 -1
  22. package/dist/runtime/session-job-contract.js +29 -0
  23. package/dist/runtime/session-job.js +256 -0
  24. package/dist/runtime/session-plugin-call.js +33 -0
  25. package/dist/runtime/sessions/manager.js +5 -3
  26. package/dist/runtime/sessions/process.js +3 -3
  27. package/dist/runtime/sessions/session-runtime.js +7 -3
  28. package/dist/runtime/sessions/worker-guard.js +20 -0
  29. package/dist/runtime/spawn-job.js +69 -0
  30. package/dist/runtime/supervisor.js +102 -146
  31. package/dist/runtime/worker.js +48 -45
  32. package/dist/server/{bun-driver-JKOGHIVX.js → bun-driver-DTZUUCI3.js} +1 -1
  33. package/dist/server/{chunk-WCVBLUNL.js → chunk-S5SFX3JM.js} +24 -0
  34. package/dist/server/index.js +2628 -1230
  35. package/dist/server/migrations/0003_remote-mcp.sql +17 -0
  36. package/dist/server/migrations/meta/0003_snapshot.json +3395 -0
  37. package/dist/server/migrations/meta/_journal.json +7 -0
  38. package/dist/server/{node-driver-FRDSYDBU.js → node-driver-HDJKKWXQ.js} +1 -1
  39. package/dist/server/out/404/index.html +1 -1
  40. package/dist/server/out/404.html +1 -1
  41. package/dist/server/out/__next.!KHdvcmtzcGFjZSk.__PAGE__.txt +10 -10
  42. package/dist/server/out/__next._full.txt +11 -11
  43. package/dist/server/out/__next._tree.txt +2 -2
  44. package/dist/server/out/_next/static/chunks/0ay0b1lpy734z.js +1 -0
  45. package/dist/server/out/_next/static/chunks/0c-3k17txbh0-.js +1 -0
  46. package/dist/server/out/_next/static/chunks/0cwfl2xanfapu.js +1 -0
  47. package/dist/server/out/_next/static/chunks/0e7s8ie0wlk66.js +1 -0
  48. package/dist/server/out/_next/static/chunks/0ey-6hb0za4r_.js +1 -0
  49. package/dist/server/out/_next/static/chunks/0huhp5j8dlai8.js +1 -0
  50. package/dist/server/out/_next/static/chunks/0khjy8qh1ll42.js +1 -0
  51. package/dist/server/out/_next/static/chunks/0r0572w1rwpcv.js +1 -0
  52. package/dist/server/out/_next/static/chunks/0rlc9tihf4po6.css +1 -0
  53. package/dist/server/out/_next/static/chunks/0u_9k8f7709np.js +1 -0
  54. package/dist/server/out/_next/static/chunks/0w34iczo7r1v5.js +1 -0
  55. package/dist/server/out/_next/static/chunks/{280w168xxgtwt.js → 0y5lgqdwpeabb.js} +4 -4
  56. package/dist/server/out/_next/static/chunks/0zfiikazg0_ga.js +1 -0
  57. package/dist/server/out/_next/static/chunks/1-75euysc3lin.js +22 -0
  58. package/dist/server/out/_next/static/chunks/10aam78qxauw0.js +1 -0
  59. package/dist/server/out/_next/static/chunks/12ro_nqb83zku.js +1 -0
  60. package/dist/server/out/_next/static/chunks/19ue6x5c3f_38.js +3 -0
  61. package/dist/server/out/_next/static/chunks/1c1ayx3fqtub5.js +31 -0
  62. package/dist/server/out/_next/static/chunks/1c2xcwifk3vhh.js +1 -0
  63. package/dist/server/out/_next/static/chunks/1dwr62uuyceq-.js +1 -0
  64. package/dist/server/out/_next/static/chunks/1fweh1ttncdlv.js +1 -0
  65. package/dist/server/out/_next/static/chunks/1iklteprcoims.js +1 -0
  66. package/dist/server/out/_next/static/chunks/1qaow7bdy3oid.js +1 -0
  67. package/dist/server/out/_next/static/chunks/1tnzhqkfwk7l8.js +1 -0
  68. package/dist/server/out/_next/static/chunks/1wn9ohqcnx8y8.js +3 -0
  69. package/dist/server/out/_next/static/chunks/1zieh-zxgxmcp.js +1 -0
  70. package/dist/server/out/_next/static/chunks/25qsan0t-_of0.js +1 -0
  71. package/dist/server/out/_next/static/chunks/26yareaaj1kyr.js +1 -0
  72. package/dist/server/out/_next/static/chunks/2bkkmnhngpacd.js +1 -0
  73. package/dist/server/out/_next/static/chunks/2e39uy7huhczu.js +1 -0
  74. package/dist/server/out/_next/static/chunks/2lxgam-nk-e9a.js +3 -0
  75. package/dist/server/out/_next/static/chunks/{3dx108d0g6032.js → 2navy2mx7--vk.js} +1 -1
  76. package/dist/server/out/_next/static/chunks/2ngzwwqeitkk7.js +1 -0
  77. package/dist/server/out/_next/static/chunks/2rp65hq6bmpxv.js +1 -0
  78. package/dist/server/out/_next/static/chunks/2z60o39-yshg2.js +1 -0
  79. package/dist/server/out/_next/static/chunks/3_d6w25_b15kx.js +1 -0
  80. package/dist/server/out/_next/static/chunks/3d8gkwu9nszjk.js +1 -0
  81. package/dist/server/out/_next/static/chunks/3l-16g1y6k5rs.js +1 -0
  82. package/dist/server/out/_next/static/chunks/3obu_9-ka7u_h.js +1 -0
  83. package/dist/server/out/_next/static/chunks/3xs2ji0dgkbmc.js +1 -0
  84. package/dist/server/out/_next/static/chunks/{turbopack-3-ry682tkyiqk.js → turbopack-2u1d16houkiyo.js} +1 -1
  85. package/dist/server/out/_not-found/__next._full.txt +4 -4
  86. package/dist/server/out/_not-found/__next._not-found.__PAGE__.txt +3 -3
  87. package/dist/server/out/_not-found/__next._tree.txt +2 -2
  88. package/dist/server/out/_not-found/index.html +1 -1
  89. package/dist/server/out/_not-found/index.txt +4 -4
  90. package/dist/server/out/accounts/2fa/__next._full.txt +9 -9
  91. package/dist/server/out/accounts/2fa/__next._tree.txt +2 -2
  92. package/dist/server/out/accounts/2fa/__next.accounts.2fa.__PAGE__.txt +8 -8
  93. package/dist/server/out/accounts/2fa/index.html +1 -1
  94. package/dist/server/out/accounts/2fa/index.txt +9 -9
  95. package/dist/server/out/accounts/email/__next._full.txt +8 -8
  96. package/dist/server/out/accounts/email/__next._tree.txt +2 -2
  97. package/dist/server/out/accounts/email/__next.accounts.email.__PAGE__.txt +7 -7
  98. package/dist/server/out/accounts/email/index.html +1 -1
  99. package/dist/server/out/accounts/email/index.txt +8 -8
  100. package/dist/server/out/accounts/login/__next._full.txt +8 -8
  101. package/dist/server/out/accounts/login/__next._tree.txt +2 -2
  102. package/dist/server/out/accounts/login/__next.accounts.login.__PAGE__.txt +7 -7
  103. package/dist/server/out/accounts/login/index.html +1 -1
  104. package/dist/server/out/accounts/login/index.txt +8 -8
  105. package/dist/server/out/accounts/logout/__next._full.txt +8 -8
  106. package/dist/server/out/accounts/logout/__next._tree.txt +2 -2
  107. package/dist/server/out/accounts/logout/__next.accounts.logout.__PAGE__.txt +7 -7
  108. package/dist/server/out/accounts/logout/index.html +1 -1
  109. package/dist/server/out/accounts/logout/index.txt +8 -8
  110. package/dist/server/out/accounts/password/change/__next._full.txt +8 -8
  111. package/dist/server/out/accounts/password/change/__next._tree.txt +2 -2
  112. package/dist/server/out/accounts/password/change/__next.accounts.password.change.__PAGE__.txt +7 -7
  113. package/dist/server/out/accounts/password/change/index.html +1 -1
  114. package/dist/server/out/accounts/password/change/index.txt +8 -8
  115. package/dist/server/out/accounts/password/reset/__next._full.txt +6 -6
  116. package/dist/server/out/accounts/password/reset/__next._tree.txt +2 -2
  117. package/dist/server/out/accounts/password/reset/__next.accounts.password.reset.__PAGE__.txt +5 -5
  118. package/dist/server/out/accounts/password/reset/index.html +1 -1
  119. package/dist/server/out/accounts/password/reset/index.txt +6 -6
  120. package/dist/server/out/accounts/signup/__next._full.txt +8 -8
  121. package/dist/server/out/accounts/signup/__next._tree.txt +2 -2
  122. package/dist/server/out/accounts/signup/__next.accounts.signup.__PAGE__.txt +7 -7
  123. package/dist/server/out/accounts/signup/index.html +1 -1
  124. package/dist/server/out/accounts/signup/index.txt +8 -8
  125. package/dist/server/out/actions/__next.!KHdvcmtzcGFjZSk.actions.__PAGE__.txt +15 -15
  126. package/dist/server/out/actions/__next._full.txt +16 -16
  127. package/dist/server/out/actions/__next._tree.txt +2 -2
  128. package/dist/server/out/actions/index.html +1 -1
  129. package/dist/server/out/actions/index.txt +16 -16
  130. package/dist/server/out/agents/__next.!KHdvcmtzcGFjZSk.agents.__PAGE__.txt +8 -8
  131. package/dist/server/out/agents/__next._full.txt +9 -9
  132. package/dist/server/out/agents/__next._tree.txt +2 -2
  133. package/dist/server/out/agents/index.html +1 -1
  134. package/dist/server/out/agents/index.txt +9 -9
  135. package/dist/server/out/apple-touch-icon.png +0 -0
  136. package/dist/server/out/approvals/__next.!KHdvcmtzcGFjZSk.approvals.__PAGE__.txt +10 -10
  137. package/dist/server/out/approvals/__next._full.txt +11 -11
  138. package/dist/server/out/approvals/__next._tree.txt +2 -2
  139. package/dist/server/out/approvals/index.html +1 -1
  140. package/dist/server/out/approvals/index.txt +11 -11
  141. package/dist/server/out/artifacts/__next.!KHdvcmtzcGFjZSk.artifacts.__PAGE__.txt +12 -12
  142. package/dist/server/out/artifacts/__next._full.txt +13 -13
  143. package/dist/server/out/artifacts/__next._tree.txt +2 -2
  144. package/dist/server/out/artifacts/index.html +1 -1
  145. package/dist/server/out/artifacts/index.txt +13 -13
  146. package/dist/server/out/audit/__next.!KHdvcmtzcGFjZSk.audit.__PAGE__.txt +10 -10
  147. package/dist/server/out/audit/__next._full.txt +11 -11
  148. package/dist/server/out/audit/__next._tree.txt +2 -2
  149. package/dist/server/out/audit/index.html +1 -1
  150. package/dist/server/out/audit/index.txt +11 -11
  151. package/dist/server/out/chat/__next.!KHdvcmtzcGFjZSk.chat.__PAGE__.txt +8 -8
  152. package/dist/server/out/chat/__next._full.txt +9 -9
  153. package/dist/server/out/chat/__next._tree.txt +2 -2
  154. package/dist/server/out/chat/index.html +1 -1
  155. package/dist/server/out/chat/index.txt +9 -9
  156. package/dist/server/out/connections/__next.!KHdvcmtzcGFjZSk.connections.__PAGE__.txt +10 -10
  157. package/dist/server/out/connections/__next._full.txt +11 -11
  158. package/dist/server/out/connections/__next._tree.txt +2 -2
  159. package/dist/server/out/connections/index.html +1 -1
  160. package/dist/server/out/connections/index.txt +11 -11
  161. package/dist/server/out/credentials/__next.!KHdvcmtzcGFjZSk.credentials.__PAGE__.txt +11 -11
  162. package/dist/server/out/credentials/__next._full.txt +12 -12
  163. package/dist/server/out/credentials/__next._tree.txt +2 -2
  164. package/dist/server/out/credentials/index.html +1 -1
  165. package/dist/server/out/credentials/index.txt +12 -12
  166. package/dist/server/out/documents/__next.!KHdvcmtzcGFjZSk.documents.__PAGE__.txt +10 -10
  167. package/dist/server/out/documents/__next._full.txt +11 -11
  168. package/dist/server/out/documents/__next._tree.txt +2 -2
  169. package/dist/server/out/documents/index.html +1 -1
  170. package/dist/server/out/documents/index.txt +11 -11
  171. package/dist/server/out/favicon.ico +0 -0
  172. package/dist/server/out/favicon.png +0 -0
  173. package/dist/server/out/favicon.svg +4 -7
  174. package/dist/server/out/index.html +1 -1
  175. package/dist/server/out/index.txt +11 -11
  176. package/dist/server/out/people/__next.!KHdvcmtzcGFjZSk.people.__PAGE__.txt +10 -10
  177. package/dist/server/out/people/__next._full.txt +11 -11
  178. package/dist/server/out/people/__next._tree.txt +2 -2
  179. package/dist/server/out/people/index.html +1 -1
  180. package/dist/server/out/people/index.txt +11 -11
  181. package/dist/server/out/plugins/__next.!KHdvcmtzcGFjZSk.plugins.__PAGE__.txt +13 -13
  182. package/dist/server/out/plugins/__next._full.txt +14 -14
  183. package/dist/server/out/plugins/__next._tree.txt +2 -2
  184. package/dist/server/out/plugins/index.html +1 -1
  185. package/dist/server/out/plugins/index.txt +14 -14
  186. package/dist/server/out/projects/__next.!KHdvcmtzcGFjZSk.projects.__PAGE__.txt +10 -10
  187. package/dist/server/out/projects/__next._full.txt +11 -11
  188. package/dist/server/out/projects/__next._tree.txt +2 -2
  189. package/dist/server/out/projects/index.html +1 -1
  190. package/dist/server/out/projects/index.txt +11 -11
  191. package/dist/server/out/runs/__next.!KHdvcmtzcGFjZSk.runs.__PAGE__.txt +12 -12
  192. package/dist/server/out/runs/__next._full.txt +13 -13
  193. package/dist/server/out/runs/__next._tree.txt +2 -2
  194. package/dist/server/out/runs/index.html +1 -1
  195. package/dist/server/out/runs/index.txt +13 -13
  196. package/dist/server/out/schedules/__next.!KHdvcmtzcGFjZSk.schedules.__PAGE__.txt +12 -12
  197. package/dist/server/out/schedules/__next._full.txt +13 -13
  198. package/dist/server/out/schedules/__next._tree.txt +2 -2
  199. package/dist/server/out/schedules/index.html +1 -1
  200. package/dist/server/out/schedules/index.txt +13 -13
  201. package/dist/server/out/settings/__next.!KHdvcmtzcGFjZSk.settings.__PAGE__.txt +10 -10
  202. package/dist/server/out/settings/__next._full.txt +11 -11
  203. package/dist/server/out/settings/__next._tree.txt +2 -2
  204. package/dist/server/out/settings/index.html +1 -1
  205. package/dist/server/out/settings/index.txt +11 -11
  206. package/dist/server/out/setup/__next._full.txt +8 -8
  207. package/dist/server/out/setup/__next._tree.txt +2 -2
  208. package/dist/server/out/setup/__next.setup.__PAGE__.txt +7 -7
  209. package/dist/server/out/setup/index.html +1 -1
  210. package/dist/server/out/setup/index.txt +8 -8
  211. package/dist/server/out/tables/__next.!KHdvcmtzcGFjZSk.tables.__PAGE__.txt +10 -10
  212. package/dist/server/out/tables/__next._full.txt +11 -11
  213. package/dist/server/out/tables/__next._tree.txt +2 -2
  214. package/dist/server/out/tables/index.html +1 -1
  215. package/dist/server/out/tables/index.txt +11 -11
  216. package/dist/server/out/webhooks/__next.!KHdvcmtzcGFjZSk.webhooks.__PAGE__.txt +10 -10
  217. package/dist/server/out/webhooks/__next._full.txt +11 -11
  218. package/dist/server/out/webhooks/__next._tree.txt +2 -2
  219. package/dist/server/out/webhooks/index.html +1 -1
  220. package/dist/server/out/webhooks/index.txt +11 -11
  221. package/dist/server/out/workspaces/invite/__next._full.txt +7 -7
  222. package/dist/server/out/workspaces/invite/__next._tree.txt +2 -2
  223. package/dist/server/out/workspaces/invite/__next.workspaces.invite.__PAGE__.txt +6 -6
  224. package/dist/server/out/workspaces/invite/index.html +1 -1
  225. package/dist/server/out/workspaces/invite/index.txt +7 -7
  226. package/docs/browser-sessions.md +85 -0
  227. package/docs/npm-distribution.md +16 -17
  228. package/docs/remote-mcp.md +51 -0
  229. package/package.json +53 -20
  230. package/runtime/README.md +9 -7
  231. package/dist/runtime/generated/schema.d.ts +0 -6443
  232. package/dist/server/out/THIRD_PARTY_NOTICES.md +0 -13
  233. package/dist/server/out/_next/static/chunks/016glzdsa3q5_.js +0 -1
  234. package/dist/server/out/_next/static/chunks/05i1qq0mw887k.js +0 -1
  235. package/dist/server/out/_next/static/chunks/06tt8wiyre1ez.js +0 -1
  236. package/dist/server/out/_next/static/chunks/0cm9i2msjsy--.js +0 -1
  237. package/dist/server/out/_next/static/chunks/0hq5dvj7fy64b.js +0 -1
  238. package/dist/server/out/_next/static/chunks/0ma4vl-fj0tmu.js +0 -1
  239. package/dist/server/out/_next/static/chunks/0noal-jqjivtf.js +0 -1
  240. package/dist/server/out/_next/static/chunks/0spckmsiek0gd.js +0 -1
  241. package/dist/server/out/_next/static/chunks/103sekujf0rxr.js +0 -1
  242. package/dist/server/out/_next/static/chunks/10h8kpcnjfe_v.js +0 -1
  243. package/dist/server/out/_next/static/chunks/16_aurf9162_6.js +0 -1
  244. package/dist/server/out/_next/static/chunks/1c48yx15nlt6w.js +0 -1
  245. package/dist/server/out/_next/static/chunks/1jp827_2p_wkf.js +0 -1
  246. package/dist/server/out/_next/static/chunks/1kdk-viqnjs3j.js +0 -1
  247. package/dist/server/out/_next/static/chunks/1mlfee105fhl7.js +0 -1
  248. package/dist/server/out/_next/static/chunks/1q9jpzm9b6zy9.js +0 -1
  249. package/dist/server/out/_next/static/chunks/1v0-a7pehktp9.js +0 -22
  250. package/dist/server/out/_next/static/chunks/24qxhh2dqvhaa.js +0 -1
  251. package/dist/server/out/_next/static/chunks/253gnn8ai3i89.js +0 -1
  252. package/dist/server/out/_next/static/chunks/27umf0z4povug.js +0 -1
  253. package/dist/server/out/_next/static/chunks/2a_c2xcjy62fq.css +0 -1
  254. package/dist/server/out/_next/static/chunks/2mvlvogrl6o0u.js +0 -1
  255. package/dist/server/out/_next/static/chunks/2xzrcwr9q6195.js +0 -1
  256. package/dist/server/out/_next/static/chunks/2yi6lq56xoijl.js +0 -31
  257. package/dist/server/out/_next/static/chunks/30g0jo299pr8e.js +0 -1
  258. package/dist/server/out/_next/static/chunks/36tf56rgybjz0.js +0 -3
  259. package/dist/server/out/_next/static/chunks/39dofrhzg_uju.js +0 -1
  260. package/dist/server/out/_next/static/chunks/3a8aanmz3kfof.js +0 -1
  261. package/dist/server/out/_next/static/chunks/3bd3k15tx3lj1.js +0 -1
  262. package/dist/server/out/_next/static/chunks/3d34pxerfr389.js +0 -1
  263. package/dist/server/out/_next/static/chunks/3elab9vgx7_ok.js +0 -1
  264. package/dist/server/out/_next/static/chunks/3gvae9c-5pi5z.js +0 -1
  265. package/dist/server/out/_next/static/chunks/3hzia782sc9pf.js +0 -1
  266. package/dist/server/out/_next/static/chunks/3jl4k-15i8847.js +0 -1
  267. package/dist/server/out/_next/static/chunks/3lb23el6qno6s.js +0 -1
  268. package/dist/server/out/_next/static/chunks/3prum3lr5470i.js +0 -3
  269. package/dist/server/out/_next/static/chunks/3prwkrciuqwjg.js +0 -1
  270. package/dist/server/out/_next/static/chunks/3txmqtuo5xgfd.js +0 -3
  271. package/dist/server/out/third-party-licenses/monaco-editor.txt +0 -21
  272. package/dist/server/out/third-party-licenses/zod.txt +0 -21
  273. /package/dist/server/out/_next/static/{F49bfPs3jKhcIuc95hqZh → pj0R4_8zvgkN95QPXRHgC}/_buildManifest.js +0 -0
  274. /package/dist/server/out/_next/static/{F49bfPs3jKhcIuc95hqZh → pj0R4_8zvgkN95QPXRHgC}/_clientMiddlewareManifest.js +0 -0
  275. /package/dist/server/out/_next/static/{F49bfPs3jKhcIuc95hqZh → pj0R4_8zvgkN95QPXRHgC}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,11241,e=>{"use strict";var s=e.i(56420);let t={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};t.node;let i=(0,s.f)(t);e.s(["f",0,i],11241)},51757,e=>{"use strict";var s=e.i(56420);let t={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};t.node;let i=(0,s.f)(t);e.s(["f",0,i],51757)},62368,e=>{"use strict";var s=e.i(56420);let t={name:"download",size:24,node:[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]};t.node;let i=(0,s.f)(t);e.s(["f",0,i],62368)},95925,29272,e=>{"use strict";var s=e.i(56420);let t={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};t.node;let i=(0,s.f)(t);e.s(["f",0,i],95925);let r={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};r.node;let a=(0,s.f)(r);e.s(["f",0,a],29272)},66595,e=>{"use strict";var s=e.i(56420);let t={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};t.node;let i=(0,s.f)(t);e.s(["f",0,i],66595)},13581,29487,e=>{"use strict";var s=e.i(71645),t=e.i(95813);e.s(["f",0,function(e,i=0){let[r,a]=(0,s.useState)(),[n,l]=(0,s.useState)(""),[c,o]=(0,s.useState)(!0),d=(0,s.useRef)(void 0),u=(0,s.useRef)(!1),h=(0,s.useCallback)(async()=>{d.current?.abort();let s=new AbortController;d.current=s;try{let t=await e(s.signal);if(s.signal.aborted||!u.current)return;a(t),l("")}catch(e){!s.signal.aborted&&u.current&&l((0,t.f)(e))}finally{!s.signal.aborted&&u.current&&o(!1)}},[e]);return(0,s.useEffect)(()=>{u.current=!0,queueMicrotask(()=>{u.current&&h()});let e=i>0?setInterval(()=>{h()},i):void 0;return()=>{u.current=!1,d.current?.abort(),clearInterval(e)}},[h,i]),{data:r,error:n,isLoading:c,refresh:h}}],13581);var i=e.i(18050),r=e.i(19455);e.s(["f",0,function({isLoading:e,error:s,refresh:t}){return(0,i.jsxs)(i.Fragment,{children:[e?(0,i.jsx)("p",{role:"status",children:"Loading workspace data…"}):void 0,s?(0,i.jsxs)("div",{className:"error",role:"alert",children:[(0,i.jsx)("p",{children:s}),(0,i.jsx)(r.f,{variant:"outline",onClick:()=>{t()},children:"Try again"})]}):void 0]})}],29487)},3340,e=>{"use strict";var s=e.i(18050),t=e.i(18566),i=e.i(59140),r=e.i(66595),a=e.i(71645),n=e.i(73656),l=e.i(13581),c=e.i(15080),o=e.i(19455),d=e.i(93479),u=e.i(29487),h=e.i(10505),x=e.i(94757),p=e.i(36174);function j({projects:e,selected:t,onSelect:i,actionId:m=""}){let{selected:f}=(0,x.useWorkspace)(),v=(0,a.useCallback)(async e=>{let[s,t]=await Promise.all([(0,c.f)(e),m?n.U.actions.versions.query({id:m},{signal:e}):void 0]),i=new Set(t?.map(e=>e.id));return s.filter(e=>e.project===f&&(!m||null!==e.action_version&&i.has(e.action_version)))},[m,f]),g=(0,l.f)(v,5e3),[y,b]=(0,a.useState)(""),[k,w]=(0,a.useState)(""),[N,S]=(0,a.useState)(""),C=g.data?.filter(s=>s.project===f&&(!k||s.status===k)&&(!N||s.operation===N)&&`${(0,h.N)(s,e)} ${s.id}`.toLowerCase().includes(y.toLowerCase()))??[];return t&&!g.data?.some(e=>e.id===t)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.f,{...g}),g.isLoading||g.error?null:(0,s.jsx)("p",{role:"alert",children:"This run is not available in this action or project."})]}):t?(0,s.jsx)(p.T,{id:t,projects:e,back:()=>{i("")},openRun:i},t):(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsxs)("div",{className:"panel-title",children:[(0,s.jsx)("h2",{children:"Run history"}),(0,s.jsxs)("span",{className:"badge",children:[C.length," runs"]})]}),(0,s.jsxs)("p",{className:"small",children:["Project:"," ",e.find(e=>e.id===f)?.name??"Choose a project"]}),(0,s.jsxs)("div",{className:"resource-toolbar",children:[(0,s.jsxs)("label",{className:"search-field",children:[(0,s.jsx)(r.f,{size:15}),(0,s.jsx)(d.f,{"aria-label":"Search runs",placeholder:"Search by project or run ID…",value:y,onChange:e=>{b(e.target.value)}})]}),(0,s.jsxs)("select",{"aria-label":"Run status",value:k,onChange:e=>{w(e.target.value)},children:[(0,s.jsx)("option",{value:"",children:"All statuses"}),["queued","running","waiting_approval","succeeded","failed","cancelled","interrupted"].map(e=>(0,s.jsx)("option",{value:e,children:e.replaceAll("_"," ")},e))]}),(0,s.jsxs)("select",{"aria-label":"Run type",value:N,onChange:e=>{S(e.target.value)},children:[(0,s.jsx)("option",{value:"",children:"All work"}),(0,s.jsx)("option",{value:"action",children:"Actions"}),(0,s.jsx)("option",{value:"code",children:"Code execution"}),(0,s.jsx)("option",{value:"validate",children:"Code validation"}),(0,s.jsx)("option",{value:"test",children:"Action tests"}),(0,s.jsx)("option",{value:"chat",children:"Chat tasks"})]})]}),(0,s.jsx)(u.f,{...g}),g.isLoading||0!==C.length?void 0:(0,s.jsxs)("div",{className:"resource-empty",children:[(0,s.jsx)("h3",{children:"No matching runs"}),(0,s.jsx)("p",{children:"Execute code from an external client or run a saved action, then follow its progress here."})]}),(0,s.jsx)("div",{className:"table-wrap",children:(0,s.jsxs)("table",{children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:"Work"}),(0,s.jsx)("th",{children:"Status"}),(0,s.jsx)("th",{children:"Created"}),(0,s.jsx)("th",{})]})}),(0,s.jsx)("tbody",{children:C.map(t=>(0,s.jsxs)("tr",{children:[(0,s.jsxs)("td",{children:[(0,s.jsx)("strong",{children:(0,h.N)(t,e)}),(0,s.jsx)("small",{className:"block muted",children:t.id.slice(0,8)})]}),(0,s.jsx)("td",{children:(0,s.jsx)(h.k,{status:t.status})}),(0,s.jsx)("td",{children:new Date(t.created_at).toLocaleString()}),(0,s.jsx)("td",{children:(0,s.jsx)(o.f,{variant:"outline",size:"sm",onClick:()=>{i(t.id)},children:"View run"})})]},t.id))})]})})]})}e.s(["default",0,function(){let{projects:e,selected:r,navigateTo:a}=(0,x.useWorkspace)(),n=(0,t.useSearchParams)();return(0,s.jsx)(i.c,{current:"runs",children:t=>(0,s.jsx)(j,{projects:e,actionId:t,selected:n.get("run")??"",onSelect:e=>{let s=new URLSearchParams({project:r});t&&s.set("action",t),e&&s.set("run",e),a(`/runs/?${s.toString()}`)}},`${r}:${t}`)})}],3340)},93479,e=>{"use strict";var s=e.i(18050),t=e.i(71645),i=e.i(39689);let r=t.forwardRef(({className:e,type:t,...r},a)=>(0,s.jsx)("input",{type:t,className:(0,i.f)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...r}));r.displayName="Input",e.s(["f",0,r])},24687,e=>{"use strict";var s=e.i(18050),t=e.i(71645),i=e.i(39689);let r=t.forwardRef(({className:e,...t},r)=>(0,s.jsx)("textarea",{className:(0,i.f)("flex min-h-[60px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));r.displayName="Textarea",e.s(["f",0,r])},12102,e=>{"use strict";var s=e.i(40192),t=e.i(54105),i=e.i(19877),r=e.i(22219),r=r;let a=s.z.record(t.z.string(),i.z.json());e.s(["z",0,function(e){let s=JSON.parse(e);return r.array(a).min(1).max(50).parse(s)},"J",0,function(e){let s=JSON.parse(e);return a.parse(s)}],12102)},59140,e=>{"use strict";var s=e.i(18050),t=e.i(71645),i=e.i(18566),r=e.i(11241),a=e.i(73656),n=e.i(13581),l=e.i(94757),c=e.i(75016),o=e.i(29487);let d=[{id:"editor",label:"Code & configuration",path:"/actions/"},{id:"runs",label:"Runs",path:"/runs/"},{id:"schedules",label:"Schedule",path:"/schedules/"},{id:"webhooks",label:"Webhooks",path:"/webhooks/"}];function u({action:e,current:t}){let i=e.project,a=new URLSearchParams({project:i,action:e.id});return(0,s.jsxs)("div",{className:"mb-6 min-w-0 space-y-3",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,s.jsxs)(c.f,{className:"inline-flex items-center gap-1 text-sm",href:`/actions/?${new URLSearchParams({project:i}).toString()}`,children:[(0,s.jsx)(r.f,{size:14,"aria-hidden":"true"})," All actions"]}),(0,s.jsx)("span",{className:"text-slate-300","aria-hidden":"true",children:"/"}),(0,s.jsx)("strong",{className:"min-w-0 break-words",children:e.name})]}),(0,s.jsx)("nav",{className:"flex flex-wrap gap-2","aria-label":"Action sections",children:d.map(e=>(0,s.jsx)(c.f,{href:`${e.path}?${a.toString()}`,"aria-current":t===e.id?"page":void 0,className:t===e.id?"rounded-md bg-indigo-50 px-3 py-2 text-sm font-medium text-indigo-700":"rounded-md px-3 py-2 text-sm text-slate-600 hover:bg-slate-100",children:e.label},e.id))})]})}function h({project:e,actionId:i,current:r,children:l}){let d=(0,t.useCallback)(async s=>{if(!i)return;let t=await a.U.actions.get.query({id:i},{signal:s});if(t.project!==e)throw Error("This action is not available in the selected project.");return t},[i,e]),x=(0,n.f)(d);return i&&(x.isLoading||x.error||x.data?.id!==i)?(0,s.jsx)(o.f,{...x}):(0,s.jsxs)(s.Fragment,{children:[x.data?(0,s.jsx)(u,{action:x.data,current:r}):(0,s.jsx)("p",{className:"mb-5",children:(0,s.jsx)(c.f,{href:`/actions/?${new URLSearchParams({project:e}).toString()}`,children:"Back to project actions"})}),l(i)]})}e.s(["F",0,u,"c",0,function({current:e,children:t}){let{selected:r}=(0,l.useWorkspace)(),a=(0,i.useSearchParams)().get("action")??"";return(0,s.jsx)(h,{project:r,actionId:a,current:e,children:t},`${r}:${a}`)}])},44555,e=>{"use strict";var s=e.i(18050),t=e.i(56420);let i={name:"shield-check",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]};i.node;let r=(0,t.f)(i);var a=e.i(71645),n=e.i(73656),l=e.i(95813),c=e.i(13581),o=e.i(15080),d=e.i(19455),u=e.i(29487);e.s(["f",0,function({runId:e,openRun:t}){let i=(0,c.f)(o.i,5e3),[h,x]=(0,a.useState)(""),[p,j]=(0,a.useState)(""),m=i.data?.filter(s=>"pending"===s.status&&(!e||s.run===e))??[],f=async(e,s)=>{x(e),j("");try{await n.U.approvals.decide.mutate({id:e,decision:s}),await i.refresh()}catch(e){j((0,l.f)(e))}finally{x("")}};return(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsxs)("div",{className:"panel-title",children:[(0,s.jsxs)("h2",{children:[(0,s.jsx)(r,{size:18})," ",e?"Run approvals":"Approval queue"]}),(0,s.jsxs)("span",{className:"badge",children:[m.length," pending"]})]}),(0,s.jsx)(u.f,{...i}),p?(0,s.jsx)("p",{className:"error",role:"alert",children:p}):void 0,i.isLoading||0!==m.length?void 0:(0,s.jsxs)("div",{className:"resource-empty",children:[(0,s.jsx)(r,{size:28}),(0,s.jsx)("h3",{children:"All caught up"}),(0,s.jsx)("p",{children:"No decisions are waiting for you."})]}),m.map(e=>(0,s.jsxs)("article",{className:"approval-card",children:[(0,s.jsx)("span",{className:"eyebrow",children:"Human approval required"}),(0,s.jsx)("p",{className:"approval-prompt",children:e.prompt}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)(d.f,{disabled:!!h,onClick:()=>{f(e.id,"approved")},children:h===e.id?"Saving decision…":"Approve"}),(0,s.jsx)(d.f,{variant:"outline",disabled:!!h,onClick:()=>{f(e.id,"denied")},children:"Deny"}),t?(0,s.jsx)(d.f,{variant:"ghost",onClick:()=>{t(e.run)},children:"Inspect run"}):void 0]})]},e.id))]})}],44555)},36174,e=>{"use strict";var s=e.i(18050),t=e.i(11241),i=e.i(62368),r=e.i(95925),a=e.i(29272),n=e.i(71645),l=e.i(73656),c=e.i(95813),o=e.i(13581),d=e.i(15080),u=e.i(19455),h=e.i(85951),x=e.i(10505),p=e.i(29487),j=e.i(90409),m=e.i(59241),f=e.i(12102),v=e.i(75016),g=e.i(93479),y=e.i(24687);function b({id:e}){let[t,i]=(0,n.useState)(""),[r,a]=(0,n.useState)('{"type":"object"}'),[o,d]=(0,n.useState)("{}"),[h,x]=(0,n.useState)(!1),[p,j]=(0,n.useState)(""),[m,k]=(0,n.useState)(""),[w,N]=(0,n.useState)("");async function S(){x(!0),N(""),j("");try{let s=await l.U.runs.promote.mutate({id:e,name:t.trim(),input_schema:(0,f.J)(r),output_schema:(0,f.J)(o)});k(s.action),j(`Saved exact run source as version ${String(s.version.number)} of ${t.trim()} (action ${s.action}).`)}catch(e){N((0,c.f)(e))}finally{x(!1)}}return(0,s.jsxs)("details",{children:[(0,s.jsx)("summary",{children:"Promote accepted source to a saved action"}),(0,s.jsx)("p",{children:"The server copies this run’s exact source and SDK provenance. Run inputs remain examples and are not saved as defaults."}),(0,s.jsxs)("label",{children:["New action name",(0,s.jsx)(g.f,{value:t,disabled:h,onChange:e=>{i(e.target.value)}})]}),(0,s.jsxs)("label",{children:["Input schema (JSON)",(0,s.jsx)(y.f,{className:"code",value:r,disabled:h,onChange:e=>{a(e.target.value)}})]}),(0,s.jsxs)("label",{children:["Output schema (JSON)",(0,s.jsx)(y.f,{className:"code",value:o,disabled:h,onChange:e=>{d(e.target.value)}})]}),(0,s.jsx)(u.f,{disabled:h||!t.trim(),onClick:()=>{S()},children:"Promote exact source"}),w?(0,s.jsx)("p",{role:"alert",className:"error",children:w}):null,p?(0,s.jsx)("p",{role:"status",children:p}):null,m?(0,s.jsx)(v.f,{href:`/actions/?action=${encodeURIComponent(m)}`,children:"Open saved action"}):null]})}var k=e.i(44555);function w(e){let s=new Blob([e.content],{type:e.media_type}),t=URL.createObjectURL(s),i=document.createElement("a");i.href=t,i.download=e.name,i.click(),URL.revokeObjectURL(t)}function N({run:e,hasCheckReport:t}){return t?(0,s.jsx)(m.f,{output:e.output}):"succeeded"!==e.status?(0,s.jsx)("p",{children:x.B.includes(e.status)?"This run is still in progress. Its result will appear here.":`This run ${e.status}. Review the trace before retrying.`}):"chat"===e.operation?(0,s.jsx)(h.f,{content:(0,x.A)(e.output)}):(0,s.jsx)("pre",{children:(0,x.A)(e.output)||"Completed without output."})}let S={session:"Session result",test:"Mocked test results",validate:"Semantic validation diagnostics"};e.s(["T",0,function({id:e,projects:h,back:m,openRun:f}){let v=(0,j.f)(e),g=(0,o.f)(d.K),[y,C]=(0,n.useState)(!1),[A,z]=(0,n.useState)(""),_=v.data?.run,R=void 0!==_&&("test"===_.operation||"validate"===_.operation)&&null!==_.output&&"object"==typeof _.output&&Object.hasOwn(_.output,"result"),U=async s=>{C(!0),z("");try{if("cancel"===s)await l.U.runs.cancel.mutate({id:e});else{let s=await l.U.runs.retry.mutate({id:e,idempotency_key:crypto.randomUUID()});f(s.id)}await v.refresh()}catch(e){z((0,c.f)(e))}finally{C(!1)}};return(0,s.jsxs)("div",{className:"run-detail",children:[(0,s.jsxs)(u.f,{variant:"ghost",onClick:m,children:[(0,s.jsx)(t.f,{size:14})," All runs"]}),(0,s.jsx)(p.f,{...v}),A?(0,s.jsx)("p",{className:"error",role:"alert",children:A}):void 0,_?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsxs)("div",{className:"panel-title",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"eyebrow",children:["RUN ",_.id.slice(0,8)]}),(0,s.jsxs)("h2",{children:[h.find(e=>e.id===_.project)?.name??"Project"," ","· ",(0,x.T)(_.operation)]})]}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)(x.k,{status:_.status}),x.B.includes(_.status)?(0,s.jsxs)(u.f,{variant:"outline",disabled:y||_.cancel_requested,onClick:()=>{U("cancel")},children:[(0,s.jsx)(a.f,{size:13}),_.cancel_requested?"Cancellation requested":"Cancel run"]}):void 0,["action","code","validate","test"].includes(_.operation)&&["failed","interrupted","cancelled"].includes(_.status)?(0,s.jsxs)(u.f,{variant:"outline",disabled:y,onClick:()=>{U("retry")},children:[(0,s.jsx)(r.f,{size:13})," Retry run"]}):void 0]})]}),(0,s.jsxs)("p",{className:"small",children:["Created ",new Date(_.created_at).toLocaleString()," · Updated"," ",new Date(_.updated_at).toLocaleString()]}),_.retry_of?(0,s.jsx)(u.f,{variant:"link",onClick:()=>{f(_.retry_of??"")},children:"View original run"}):void 0,_.error?(0,s.jsx)("div",{className:"error",role:"alert",children:_.error}):void 0,(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{children:"Origin"}),(0,s.jsxs)("dd",{children:[_.origin," ",_.origin_reference]}),(0,s.jsx)("dt",{children:"Originating client"}),(0,s.jsx)("dd",{children:_.client_token??"No client token (historical attribution may be unknown)"}),(0,s.jsx)("dt",{children:"SDK revision"}),(0,s.jsx)("dd",{children:(0,x.A)(_.sdk_revision)||"Unknown"}),(0,s.jsx)("dt",{children:"Configuration revision"}),(0,s.jsx)("dd",{children:(0,x.A)(_.configuration_revision)||"Unknown"}),(0,s.jsx)("dt",{children:"Immutable action version"}),(0,s.jsx)("dd",{children:_.action_version??"One-off source / none"}),(0,s.jsx)("dt",{children:"Source digest"}),(0,s.jsx)("dd",{children:(0,x.A)(_.source_digest)||"Unknown"})]}),null===_.source?null:(0,s.jsxs)("details",{children:[(0,s.jsx)("summary",{children:"Accepted source"}),(0,s.jsx)("pre",{children:(0,x.A)(_.source)})]}),"code"===_.operation&&null!==_.source?(0,s.jsx)(b,{id:_.id},_.id):null,(0,s.jsx)("h3",{children:S[_.operation]??"Outcome"}),(0,s.jsx)(N,{run:_,hasCheckReport:R}),(0,s.jsxs)("details",{children:[(0,s.jsx)("summary",{children:"Run inputs"}),(0,s.jsx)("pre",{children:(0,x.A)(_.inputs)})]})]}),"waiting_approval"===_.status?(0,s.jsx)(k.f,{runId:e}):void 0,(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Artifacts"}),(0,s.jsx)(p.f,{...g}),g.data?.filter(s=>s.run===e).length===0?(0,s.jsx)("p",{className:"small",children:"No artifacts were saved by this run."}):void 0,g.data?.filter(s=>s.run===e).map(e=>(0,s.jsxs)("details",{children:[(0,s.jsx)("summary",{children:e.name}),(0,s.jsxs)(u.f,{variant:"outline",size:"sm",onClick:()=>{w(e)},children:[(0,s.jsx)(i.f,{size:13}),"Download"]}),(0,s.jsx)("pre",{children:e.content})]},e.id))]}),"session"===_.operation?null:(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Execution trace"}),v.data?.events.length===0?(0,s.jsx)("p",{className:"small",children:"Waiting for the first execution event."}):void 0,(0,s.jsx)("ol",{className:"run-timeline",children:v.data?.events.map(e=>(0,s.jsxs)("li",{children:[(0,s.jsx)("span",{className:"timeline-dot"}),(0,s.jsxs)("details",{children:[(0,s.jsxs)("summary",{children:[(0,s.jsx)("strong",{children:e.kind.replaceAll("."," ")}),(0,s.jsx)("time",{children:new Date(e.created_at).toLocaleTimeString()})]}),(0,s.jsx)("pre",{children:(0,x.A)(e.data)})]})]},e.sequence))})]})]}):void 0]})},"t",0,w],36174)},10505,79432,e=>{"use strict";var s=e.i(18050),t=e.i(56420);let i={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};i.node;let r=(0,t.f)(i);e.s(["f",0,r],79432);var a=e.i(51757);let n={name:"clock-3",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]]};n.node;let l=(0,t.f)(n),c={name:"shield-exclamation-point",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],aliases:["shield-alert"]};c.node;let o=(0,t.f)(c),d={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};d.node;let u=(0,t.f)(d);function h(e){return({chat:"Chat task",code:"Code execution",session:"Execution session",action:"Action run",validate:"Code validation",test:"Action tests"})[e]??e.replaceAll("_"," ")}e.s(["k",0,function({status:e}){let t={succeeded:a.f,waiting_approval:o,running:r,queued:l,failed:u,cancelled:u,interrupted:u}[e]??l;return(0,s.jsxs)("span",{className:`run-status status-${e}`,children:[(0,s.jsx)(t,{size:13,"aria-hidden":"true"}),e.replaceAll("_"," ")]})},"B",0,["queued","running","waiting_approval"],"A",0,function(e){return void 0===e?"":"string"==typeof e?e:JSON.stringify(e,void 0,2)},"N",0,function(e,s){let t=s.find(s=>s.id===e.project)?.name??"Project";return"chat"===e.operation?`${t} \xb7 ${(function(e,s){if(null!==e&&"object"==typeof e&&Object.hasOwn(e,s)){let t=Reflect.get(e,s);if("string"==typeof t)return t}return""})(e.inputs,"message").slice(0,70)}`:`${t} \xb7 ${h(e.operation)}`},"T",0,h],10505)},90409,59241,e=>{"use strict";var s=e.i(71645),t=e.i(73656),i=e.i(13581);e.s(["f",0,function(e){let r=(0,s.useCallback)(async s=>{let[i,r]=await Promise.all([t.U.runs.get.query({id:e},{signal:s}),t.U.runs.events.query({id:e},{signal:s})]);return{run:i,events:r}},[e]),a=(0,i.f)(r,3e3),n=a.data?.run.id===e?a.data:void 0,l=void 0!==n,{refresh:c}=a;return(0,s.useEffect)(()=>{if(l)return function(e,s,i=t.U.runs.stream.subscribe){let r,a=!0,n=()=>{a&&!r&&(r=setTimeout(()=>{r=void 0,a&&s()},400))},l=i({id:e},{onData:n,onComplete(){a&&(clearTimeout(r),r=void 0,s())},onError:n});return()=>{a=!1,clearTimeout(r),l.unsubscribe()}}(e,c)},[e,l,c]),{...a,data:n}}],90409);var r=e.i(18050),a=e.i(10505);function n(e){return"object"!=typeof e||null===e||Array.isArray(e)?void 0:e}e.s(["f",0,function({output:e}){let s=n(e),t=n(s?.result)??s;if(!t)return null;let i=n(t.validation)??t,l=Array.isArray(i.diagnostics)?i.diagnostics:[],c=Array.isArray(t.cases)?t.cases:[];return(0,r.jsxs)("div",{children:["boolean"==typeof i.valid?(0,r.jsx)("p",{children:i.valid?"Source passed semantic validation.":"Source failed semantic validation."}):null,l.length>0?(0,r.jsx)("ul",{children:l.map((e,s)=>{let t=n(e);return(0,r.jsxs)("li",{children:["Line ",(0,a.A)(t?.line),", column"," ",(0,a.A)(t?.column),":"," ",(0,a.A)(t?.message)]},s)})}):null,c.length>0?(0,r.jsxs)("table",{children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Case"}),(0,r.jsx)("th",{children:"Result"}),(0,r.jsx)("th",{children:"Details"})]})}),(0,r.jsx)("tbody",{children:c.map((e,s)=>{let t=n(e);return(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,a.A)(t?.name)}),(0,r.jsx)("td",{children:t?.passed===!0?"Passed":"Failed"}),(0,r.jsxs)("td",{children:["string"==typeof t?.error&&""!==t.error?(0,r.jsx)("p",{children:t.error}):null,Array.isArray(t?.violations)?(0,r.jsx)("pre",{children:(0,a.A)(t.violations)}):null,(0,r.jsxs)("details",{children:[(0,r.jsx)("summary",{children:"Actual output and logs"}),(0,r.jsx)("pre",{children:(0,a.A)(t?.actual)}),(0,r.jsx)("pre",{children:(0,a.A)(t?.logs)})]})]})]},s)})})]}):null]})}],59241)}]);