@stigmer/server-slim 3.13.0 → 3.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (525) hide show
  1. package/console/404.html +1 -1
  2. package/console/__next.__PAGE__.txt +2 -2
  3. package/console/__next._full.txt +16 -16
  4. package/console/__next._head.txt +4 -4
  5. package/console/__next._index.txt +10 -10
  6. package/console/__next._tree.txt +2 -2
  7. package/console/_next/static/chunks/00609po93aecc.js +1 -0
  8. package/console/_next/static/chunks/{0o-.19qua6web.js → 0243~hpvegq~b.js} +2 -2
  9. package/console/_next/static/chunks/{0iwpyv2wbln6f.js → 0a2~15er-td24.js} +1 -1
  10. package/console/_next/static/chunks/0bssx61s0a_wl.js +1 -0
  11. package/console/_next/static/chunks/{0qji_.pm~u8x3.js → 0d~8qc-i_t3~z.js} +1 -1
  12. package/console/_next/static/chunks/{04nu-nyhd8yfk.js → 0e21g0s~5r7o9.js} +2 -2
  13. package/console/_next/static/chunks/0fss.uff1x3km.js +2 -0
  14. package/console/_next/static/chunks/0gpuzaltw6-8i.js +1 -0
  15. package/console/_next/static/chunks/0q80yr288t-5-.css +1 -0
  16. package/console/_next/static/chunks/{0icsogze8wb_v.js → 0uq41itbafxa3.js} +1 -1
  17. package/console/_next/static/chunks/0wsn_vbkz2vb9.js +1 -0
  18. package/console/_next/static/chunks/0x0c3-ubfxc~5.js +1 -0
  19. package/console/_next/static/chunks/0zf7ijjyl6exo.js +1 -0
  20. package/console/_next/static/chunks/{0zsntdh42--v1.js → 0~l2og0651chl.js} +1 -1
  21. package/console/_next/static/chunks/10ki-iljfqcs_.js +1 -0
  22. package/console/_next/static/chunks/163ne8a28fcm8.js +1 -0
  23. package/console/_not-found/__next._full.txt +16 -16
  24. package/console/_not-found/__next._head.txt +4 -4
  25. package/console/_not-found/__next._index.txt +10 -10
  26. package/console/_not-found/__next._not-found.__PAGE__.txt +3 -3
  27. package/console/_not-found/__next._not-found.txt +3 -3
  28. package/console/_not-found/__next._tree.txt +2 -2
  29. package/console/_not-found.html +1 -1
  30. package/console/_not-found.txt +16 -16
  31. package/console/auth/callback/__next._full.txt +18 -18
  32. package/console/auth/callback/__next._head.txt +4 -4
  33. package/console/auth/callback/__next._index.txt +10 -10
  34. package/console/auth/callback/__next._tree.txt +2 -2
  35. package/console/auth/callback/__next.auth.callback.__PAGE__.txt +4 -4
  36. package/console/auth/callback/__next.auth.callback.txt +3 -3
  37. package/console/auth/callback/__next.auth.txt +3 -3
  38. package/console/auth/callback.html +1 -1
  39. package/console/auth/callback.txt +18 -18
  40. package/console/auth/github/callback/__next._full.txt +18 -18
  41. package/console/auth/github/callback/__next._head.txt +4 -4
  42. package/console/auth/github/callback/__next._index.txt +10 -10
  43. package/console/auth/github/callback/__next._tree.txt +2 -2
  44. package/console/auth/github/callback/__next.auth.github.callback.__PAGE__.txt +4 -4
  45. package/console/auth/github/callback/__next.auth.github.callback.txt +3 -3
  46. package/console/auth/github/callback/__next.auth.github.txt +3 -3
  47. package/console/auth/github/callback/__next.auth.txt +3 -3
  48. package/console/auth/github/callback.html +1 -1
  49. package/console/auth/github/callback.txt +18 -18
  50. package/console/auth/oauth/callback/__next._full.txt +18 -18
  51. package/console/auth/oauth/callback/__next._head.txt +4 -4
  52. package/console/auth/oauth/callback/__next._index.txt +10 -10
  53. package/console/auth/oauth/callback/__next._tree.txt +2 -2
  54. package/console/auth/oauth/callback/__next.auth.oauth.callback.__PAGE__.txt +4 -4
  55. package/console/auth/oauth/callback/__next.auth.oauth.callback.txt +3 -3
  56. package/console/auth/oauth/callback/__next.auth.oauth.txt +3 -3
  57. package/console/auth/oauth/callback/__next.auth.txt +3 -3
  58. package/console/auth/oauth/callback.html +1 -1
  59. package/console/auth/oauth/callback.txt +18 -18
  60. package/console/chat/__placeholder__/__placeholder__/__next._full.txt +17 -17
  61. package/console/chat/__placeholder__/__placeholder__/__next._head.txt +4 -4
  62. package/console/chat/__placeholder__/__placeholder__/__next._index.txt +10 -10
  63. package/console/chat/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  64. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.__PAGE__.txt +3 -3
  65. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.txt +3 -3
  66. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.txt +3 -3
  67. package/console/chat/__placeholder__/__placeholder__/__next.chat.txt +3 -3
  68. package/console/chat/__placeholder__/__placeholder__.html +1 -1
  69. package/console/chat/__placeholder__/__placeholder__.txt +17 -17
  70. package/console/conversations/__next._full.txt +17 -17
  71. package/console/conversations/__next._head.txt +4 -4
  72. package/console/conversations/__next._index.txt +10 -10
  73. package/console/conversations/__next._tree.txt +2 -2
  74. package/console/conversations/__next.conversations.__PAGE__.txt +3 -3
  75. package/console/conversations/__next.conversations.txt +3 -3
  76. package/console/conversations/__placeholder__/__placeholder__/__next._full.txt +17 -17
  77. package/console/conversations/__placeholder__/__placeholder__/__next._head.txt +4 -4
  78. package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +10 -10
  79. package/console/conversations/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  80. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.__PAGE__.txt +3 -3
  81. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.txt +3 -3
  82. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.txt +3 -3
  83. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.txt +3 -3
  84. package/console/conversations/__placeholder__/__placeholder__.html +1 -1
  85. package/console/conversations/__placeholder__/__placeholder__.txt +17 -17
  86. package/console/conversations.html +1 -1
  87. package/console/conversations.txt +17 -17
  88. package/console/dashboard/__next._full.txt +17 -17
  89. package/console/dashboard/__next._head.txt +4 -4
  90. package/console/dashboard/__next._index.txt +10 -10
  91. package/console/dashboard/__next._tree.txt +2 -2
  92. package/console/dashboard/__next.dashboard.__PAGE__.txt +3 -3
  93. package/console/dashboard/__next.dashboard.txt +3 -3
  94. package/console/dashboard.html +1 -1
  95. package/console/dashboard.txt +17 -17
  96. package/console/executions/__placeholder__/__next._full.txt +16 -16
  97. package/console/executions/__placeholder__/__next._head.txt +4 -4
  98. package/console/executions/__placeholder__/__next._index.txt +10 -10
  99. package/console/executions/__placeholder__/__next._tree.txt +2 -2
  100. package/console/executions/__placeholder__/__next.executions.$d$id.__PAGE__.txt +2 -2
  101. package/console/executions/__placeholder__/__next.executions.$d$id.txt +3 -3
  102. package/console/executions/__placeholder__/__next.executions.txt +3 -3
  103. package/console/executions/__placeholder__.html +1 -1
  104. package/console/executions/__placeholder__.txt +16 -16
  105. package/console/index.html +1 -1
  106. package/console/index.txt +16 -16
  107. package/console/invite/__placeholder__/__next._full.txt +17 -17
  108. package/console/invite/__placeholder__/__next._head.txt +4 -4
  109. package/console/invite/__placeholder__/__next._index.txt +10 -10
  110. package/console/invite/__placeholder__/__next._tree.txt +2 -2
  111. package/console/invite/__placeholder__/__next.invite.$d$token.__PAGE__.txt +3 -3
  112. package/console/invite/__placeholder__/__next.invite.$d$token.txt +3 -3
  113. package/console/invite/__placeholder__/__next.invite.txt +3 -3
  114. package/console/invite/__placeholder__.html +1 -1
  115. package/console/invite/__placeholder__.txt +17 -17
  116. package/console/library/__next._full.txt +20 -20
  117. package/console/library/__next._head.txt +4 -4
  118. package/console/library/__next._index.txt +10 -10
  119. package/console/library/__next._tree.txt +2 -2
  120. package/console/library/__next.library.__PAGE__.txt +3 -3
  121. package/console/library/__next.library.txt +5 -5
  122. package/console/library/agents/__next._full.txt +20 -20
  123. package/console/library/agents/__next._head.txt +4 -4
  124. package/console/library/agents/__next._index.txt +10 -10
  125. package/console/library/agents/__next._tree.txt +2 -2
  126. package/console/library/agents/__next.library.agents.__PAGE__.txt +3 -3
  127. package/console/library/agents/__next.library.agents.txt +3 -3
  128. package/console/library/agents/__next.library.txt +5 -5
  129. package/console/library/agents/__placeholder__/__placeholder__/__next._full.txt +20 -20
  130. package/console/library/agents/__placeholder__/__placeholder__/__next._head.txt +4 -4
  131. package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +10 -10
  132. package/console/library/agents/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  133. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.__PAGE__.txt +3 -3
  134. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.txt +3 -3
  135. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.txt +3 -3
  136. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.txt +3 -3
  137. package/console/library/agents/__placeholder__/__placeholder__/__next.library.txt +5 -5
  138. package/console/library/agents/__placeholder__/__placeholder__.html +1 -1
  139. package/console/library/agents/__placeholder__/__placeholder__.txt +20 -20
  140. package/console/library/agents/new/__next._full.txt +21 -21
  141. package/console/library/agents/new/__next._head.txt +4 -4
  142. package/console/library/agents/new/__next._index.txt +10 -10
  143. package/console/library/agents/new/__next._tree.txt +2 -2
  144. package/console/library/agents/new/__next.library.agents.new.__PAGE__.txt +4 -4
  145. package/console/library/agents/new/__next.library.agents.new.txt +3 -3
  146. package/console/library/agents/new/__next.library.agents.txt +3 -3
  147. package/console/library/agents/new/__next.library.txt +5 -5
  148. package/console/library/agents/new.html +1 -1
  149. package/console/library/agents/new.txt +21 -21
  150. package/console/library/agents.html +1 -1
  151. package/console/library/agents.txt +20 -20
  152. package/console/library/mcp-servers/__next._full.txt +20 -20
  153. package/console/library/mcp-servers/__next._head.txt +4 -4
  154. package/console/library/mcp-servers/__next._index.txt +10 -10
  155. package/console/library/mcp-servers/__next._tree.txt +2 -2
  156. package/console/library/mcp-servers/__next.library.mcp-servers.__PAGE__.txt +3 -3
  157. package/console/library/mcp-servers/__next.library.mcp-servers.txt +3 -3
  158. package/console/library/mcp-servers/__next.library.txt +5 -5
  159. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._full.txt +20 -20
  160. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._head.txt +4 -4
  161. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._index.txt +10 -10
  162. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  163. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.__PAGE__.txt +3 -3
  164. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.txt +3 -3
  165. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.txt +3 -3
  166. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.txt +3 -3
  167. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.txt +5 -5
  168. package/console/library/mcp-servers/__placeholder__/__placeholder__.html +1 -1
  169. package/console/library/mcp-servers/__placeholder__/__placeholder__.txt +20 -20
  170. package/console/library/mcp-servers/new/__next._full.txt +21 -21
  171. package/console/library/mcp-servers/new/__next._head.txt +4 -4
  172. package/console/library/mcp-servers/new/__next._index.txt +10 -10
  173. package/console/library/mcp-servers/new/__next._tree.txt +2 -2
  174. package/console/library/mcp-servers/new/__next.library.mcp-servers.new.__PAGE__.txt +4 -4
  175. package/console/library/mcp-servers/new/__next.library.mcp-servers.new.txt +3 -3
  176. package/console/library/mcp-servers/new/__next.library.mcp-servers.txt +3 -3
  177. package/console/library/mcp-servers/new/__next.library.txt +5 -5
  178. package/console/library/mcp-servers/new.html +1 -1
  179. package/console/library/mcp-servers/new.txt +21 -21
  180. package/console/library/mcp-servers.html +1 -1
  181. package/console/library/mcp-servers.txt +20 -20
  182. package/console/library/schedules/__next._full.txt +20 -20
  183. package/console/library/schedules/__next._head.txt +4 -4
  184. package/console/library/schedules/__next._index.txt +10 -10
  185. package/console/library/schedules/__next._tree.txt +2 -2
  186. package/console/library/schedules/__next.library.schedules.__PAGE__.txt +3 -3
  187. package/console/library/schedules/__next.library.schedules.txt +3 -3
  188. package/console/library/schedules/__next.library.txt +5 -5
  189. package/console/library/schedules/__placeholder__/__placeholder__/__next._full.txt +20 -20
  190. package/console/library/schedules/__placeholder__/__placeholder__/__next._head.txt +4 -4
  191. package/console/library/schedules/__placeholder__/__placeholder__/__next._index.txt +10 -10
  192. package/console/library/schedules/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  193. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.__PAGE__.txt +3 -3
  194. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.txt +3 -3
  195. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.txt +3 -3
  196. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.txt +3 -3
  197. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.txt +5 -5
  198. package/console/library/schedules/__placeholder__/__placeholder__.html +1 -1
  199. package/console/library/schedules/__placeholder__/__placeholder__.txt +20 -20
  200. package/console/library/schedules/new/__next._full.txt +21 -21
  201. package/console/library/schedules/new/__next._head.txt +4 -4
  202. package/console/library/schedules/new/__next._index.txt +10 -10
  203. package/console/library/schedules/new/__next._tree.txt +2 -2
  204. package/console/library/schedules/new/__next.library.schedules.new.__PAGE__.txt +4 -4
  205. package/console/library/schedules/new/__next.library.schedules.new.txt +3 -3
  206. package/console/library/schedules/new/__next.library.schedules.txt +3 -3
  207. package/console/library/schedules/new/__next.library.txt +5 -5
  208. package/console/library/schedules/new.html +1 -1
  209. package/console/library/schedules/new.txt +21 -21
  210. package/console/library/schedules.html +1 -1
  211. package/console/library/schedules.txt +20 -20
  212. package/console/library/skills/__next._full.txt +20 -20
  213. package/console/library/skills/__next._head.txt +4 -4
  214. package/console/library/skills/__next._index.txt +10 -10
  215. package/console/library/skills/__next._tree.txt +2 -2
  216. package/console/library/skills/__next.library.skills.__PAGE__.txt +3 -3
  217. package/console/library/skills/__next.library.skills.txt +3 -3
  218. package/console/library/skills/__next.library.txt +5 -5
  219. package/console/library/skills/__placeholder__/__placeholder__/__next._full.txt +20 -20
  220. package/console/library/skills/__placeholder__/__placeholder__/__next._head.txt +4 -4
  221. package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +10 -10
  222. package/console/library/skills/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  223. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.__PAGE__.txt +3 -3
  224. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.txt +3 -3
  225. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.txt +3 -3
  226. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.txt +3 -3
  227. package/console/library/skills/__placeholder__/__placeholder__/__next.library.txt +5 -5
  228. package/console/library/skills/__placeholder__/__placeholder__.html +1 -1
  229. package/console/library/skills/__placeholder__/__placeholder__.txt +20 -20
  230. package/console/library/skills/new/__next._full.txt +21 -21
  231. package/console/library/skills/new/__next._head.txt +4 -4
  232. package/console/library/skills/new/__next._index.txt +10 -10
  233. package/console/library/skills/new/__next._tree.txt +2 -2
  234. package/console/library/skills/new/__next.library.skills.new.__PAGE__.txt +4 -4
  235. package/console/library/skills/new/__next.library.skills.new.txt +3 -3
  236. package/console/library/skills/new/__next.library.skills.txt +3 -3
  237. package/console/library/skills/new/__next.library.txt +5 -5
  238. package/console/library/skills/new.html +1 -1
  239. package/console/library/skills/new.txt +21 -21
  240. package/console/library/skills.html +1 -1
  241. package/console/library/skills.txt +20 -20
  242. package/console/library/workflows/__next._full.txt +20 -20
  243. package/console/library/workflows/__next._head.txt +4 -4
  244. package/console/library/workflows/__next._index.txt +10 -10
  245. package/console/library/workflows/__next._tree.txt +2 -2
  246. package/console/library/workflows/__next.library.txt +5 -5
  247. package/console/library/workflows/__next.library.workflows.__PAGE__.txt +3 -3
  248. package/console/library/workflows/__next.library.workflows.txt +3 -3
  249. package/console/library/workflows/__placeholder__/__placeholder__/__next._full.txt +20 -20
  250. package/console/library/workflows/__placeholder__/__placeholder__/__next._head.txt +4 -4
  251. package/console/library/workflows/__placeholder__/__placeholder__/__next._index.txt +10 -10
  252. package/console/library/workflows/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  253. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.txt +5 -5
  254. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.__PAGE__.txt +3 -3
  255. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.txt +3 -3
  256. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.txt +3 -3
  257. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.txt +3 -3
  258. package/console/library/workflows/__placeholder__/__placeholder__.html +1 -1
  259. package/console/library/workflows/__placeholder__/__placeholder__.txt +20 -20
  260. package/console/library/workflows/executions/__next._full.txt +20 -20
  261. package/console/library/workflows/executions/__next._head.txt +4 -4
  262. package/console/library/workflows/executions/__next._index.txt +10 -10
  263. package/console/library/workflows/executions/__next._tree.txt +2 -2
  264. package/console/library/workflows/executions/__next.library.txt +5 -5
  265. package/console/library/workflows/executions/__next.library.workflows.executions.__PAGE__.txt +3 -3
  266. package/console/library/workflows/executions/__next.library.workflows.executions.txt +3 -3
  267. package/console/library/workflows/executions/__next.library.workflows.txt +3 -3
  268. package/console/library/workflows/executions.html +1 -1
  269. package/console/library/workflows/executions.txt +20 -20
  270. package/console/library/workflows/new/__next._full.txt +21 -21
  271. package/console/library/workflows/new/__next._head.txt +4 -4
  272. package/console/library/workflows/new/__next._index.txt +10 -10
  273. package/console/library/workflows/new/__next._tree.txt +2 -2
  274. package/console/library/workflows/new/__next.library.txt +5 -5
  275. package/console/library/workflows/new/__next.library.workflows.new.__PAGE__.txt +4 -4
  276. package/console/library/workflows/new/__next.library.workflows.new.txt +3 -3
  277. package/console/library/workflows/new/__next.library.workflows.txt +3 -3
  278. package/console/library/workflows/new.html +1 -1
  279. package/console/library/workflows/new.txt +21 -21
  280. package/console/library/workflows.html +1 -1
  281. package/console/library/workflows.txt +20 -20
  282. package/console/library.html +1 -1
  283. package/console/library.txt +20 -20
  284. package/console/login/__next._full.txt +18 -18
  285. package/console/login/__next._head.txt +4 -4
  286. package/console/login/__next._index.txt +10 -10
  287. package/console/login/__next._tree.txt +2 -2
  288. package/console/login/__next.login.__PAGE__.txt +4 -4
  289. package/console/login/__next.login.txt +3 -3
  290. package/console/login.html +1 -1
  291. package/console/login.txt +18 -18
  292. package/console/oauth/slack/callback/__next._full.txt +18 -18
  293. package/console/oauth/slack/callback/__next._head.txt +4 -4
  294. package/console/oauth/slack/callback/__next._index.txt +10 -10
  295. package/console/oauth/slack/callback/__next._tree.txt +2 -2
  296. package/console/oauth/slack/callback/__next.oauth.slack.callback.__PAGE__.txt +4 -4
  297. package/console/oauth/slack/callback/__next.oauth.slack.callback.txt +3 -3
  298. package/console/oauth/slack/callback/__next.oauth.slack.txt +3 -3
  299. package/console/oauth/slack/callback/__next.oauth.txt +3 -3
  300. package/console/oauth/slack/callback.html +1 -1
  301. package/console/oauth/slack/callback.txt +18 -18
  302. package/console/sessions/__placeholder__/__next._full.txt +16 -16
  303. package/console/sessions/__placeholder__/__next._head.txt +4 -4
  304. package/console/sessions/__placeholder__/__next._index.txt +10 -10
  305. package/console/sessions/__placeholder__/__next._tree.txt +2 -2
  306. package/console/sessions/__placeholder__/__next.sessions.$d$id.__PAGE__.txt +2 -2
  307. package/console/sessions/__placeholder__/__next.sessions.$d$id.txt +3 -3
  308. package/console/sessions/__placeholder__/__next.sessions.txt +3 -3
  309. package/console/sessions/__placeholder__.html +1 -1
  310. package/console/sessions/__placeholder__.txt +16 -16
  311. package/console/settings/__next._full.txt +20 -20
  312. package/console/settings/__next._head.txt +4 -4
  313. package/console/settings/__next._index.txt +10 -10
  314. package/console/settings/__next._tree.txt +2 -2
  315. package/console/settings/__next.settings.__PAGE__.txt +4 -4
  316. package/console/settings/__next.settings.txt +5 -5
  317. package/console/settings/account-preferences/__next._full.txt +19 -19
  318. package/console/settings/account-preferences/__next._head.txt +4 -4
  319. package/console/settings/account-preferences/__next._index.txt +10 -10
  320. package/console/settings/account-preferences/__next._tree.txt +2 -2
  321. package/console/settings/account-preferences/__next.settings.account-preferences.__PAGE__.txt +3 -3
  322. package/console/settings/account-preferences/__next.settings.account-preferences.txt +3 -3
  323. package/console/settings/account-preferences/__next.settings.txt +5 -5
  324. package/console/settings/account-preferences.html +1 -1
  325. package/console/settings/account-preferences.txt +19 -19
  326. package/console/settings/api-keys/__next._full.txt +19 -19
  327. package/console/settings/api-keys/__next._head.txt +4 -4
  328. package/console/settings/api-keys/__next._index.txt +10 -10
  329. package/console/settings/api-keys/__next._tree.txt +2 -2
  330. package/console/settings/api-keys/__next.settings.api-keys.__PAGE__.txt +3 -3
  331. package/console/settings/api-keys/__next.settings.api-keys.txt +3 -3
  332. package/console/settings/api-keys/__next.settings.txt +5 -5
  333. package/console/settings/api-keys.html +1 -1
  334. package/console/settings/api-keys.txt +19 -19
  335. package/console/settings/billing/__next._full.txt +20 -20
  336. package/console/settings/billing/__next._head.txt +4 -4
  337. package/console/settings/billing/__next._index.txt +10 -10
  338. package/console/settings/billing/__next._tree.txt +2 -2
  339. package/console/settings/billing/__next.settings.billing.__PAGE__.txt +4 -4
  340. package/console/settings/billing/__next.settings.billing.txt +3 -3
  341. package/console/settings/billing/__next.settings.txt +5 -5
  342. package/console/settings/billing.html +1 -1
  343. package/console/settings/billing.txt +20 -20
  344. package/console/settings/channel-apps/__next._full.txt +19 -19
  345. package/console/settings/channel-apps/__next._head.txt +4 -4
  346. package/console/settings/channel-apps/__next._index.txt +10 -10
  347. package/console/settings/channel-apps/__next._tree.txt +2 -2
  348. package/console/settings/channel-apps/__next.settings.channel-apps.__PAGE__.txt +3 -3
  349. package/console/settings/channel-apps/__next.settings.channel-apps.txt +3 -3
  350. package/console/settings/channel-apps/__next.settings.txt +5 -5
  351. package/console/settings/channel-apps.html +1 -1
  352. package/console/settings/channel-apps.txt +19 -19
  353. package/console/settings/cursor-accounts/__next._full.txt +21 -21
  354. package/console/settings/cursor-accounts/__next._head.txt +4 -4
  355. package/console/settings/cursor-accounts/__next._index.txt +10 -10
  356. package/console/settings/cursor-accounts/__next._tree.txt +2 -2
  357. package/console/settings/cursor-accounts/__next.settings.cursor-accounts.__PAGE__.txt +4 -4
  358. package/console/settings/cursor-accounts/__next.settings.cursor-accounts.txt +3 -3
  359. package/console/settings/cursor-accounts/__next.settings.txt +5 -5
  360. package/console/settings/cursor-accounts.html +1 -1
  361. package/console/settings/cursor-accounts.txt +21 -21
  362. package/console/settings/environments/__next._full.txt +19 -19
  363. package/console/settings/environments/__next._head.txt +4 -4
  364. package/console/settings/environments/__next._index.txt +10 -10
  365. package/console/settings/environments/__next._tree.txt +2 -2
  366. package/console/settings/environments/__next.settings.environments.__PAGE__.txt +3 -3
  367. package/console/settings/environments/__next.settings.environments.txt +3 -3
  368. package/console/settings/environments/__next.settings.txt +5 -5
  369. package/console/settings/environments.html +1 -1
  370. package/console/settings/environments.txt +19 -19
  371. package/console/settings/identity-providers/__next._full.txt +19 -19
  372. package/console/settings/identity-providers/__next._head.txt +4 -4
  373. package/console/settings/identity-providers/__next._index.txt +10 -10
  374. package/console/settings/identity-providers/__next._tree.txt +2 -2
  375. package/console/settings/identity-providers/__next.settings.identity-providers.__PAGE__.txt +3 -3
  376. package/console/settings/identity-providers/__next.settings.identity-providers.txt +3 -3
  377. package/console/settings/identity-providers/__next.settings.txt +5 -5
  378. package/console/settings/identity-providers.html +1 -1
  379. package/console/settings/identity-providers.txt +19 -19
  380. package/console/settings/invitations/__next._full.txt +19 -19
  381. package/console/settings/invitations/__next._head.txt +4 -4
  382. package/console/settings/invitations/__next._index.txt +10 -10
  383. package/console/settings/invitations/__next._tree.txt +2 -2
  384. package/console/settings/invitations/__next.settings.invitations.__PAGE__.txt +3 -3
  385. package/console/settings/invitations/__next.settings.invitations.txt +3 -3
  386. package/console/settings/invitations/__next.settings.txt +5 -5
  387. package/console/settings/invitations.html +1 -1
  388. package/console/settings/invitations.txt +19 -19
  389. package/console/settings/members/__next._full.txt +19 -19
  390. package/console/settings/members/__next._head.txt +4 -4
  391. package/console/settings/members/__next._index.txt +10 -10
  392. package/console/settings/members/__next._tree.txt +2 -2
  393. package/console/settings/members/__next.settings.members.__PAGE__.txt +3 -3
  394. package/console/settings/members/__next.settings.members.txt +3 -3
  395. package/console/settings/members/__next.settings.txt +5 -5
  396. package/console/settings/members.html +1 -1
  397. package/console/settings/members.txt +19 -19
  398. package/console/settings/memory/__next._full.txt +19 -19
  399. package/console/settings/memory/__next._head.txt +4 -4
  400. package/console/settings/memory/__next._index.txt +10 -10
  401. package/console/settings/memory/__next._tree.txt +2 -2
  402. package/console/settings/memory/__next.settings.memory.__PAGE__.txt +3 -3
  403. package/console/settings/memory/__next.settings.memory.txt +3 -3
  404. package/console/settings/memory/__next.settings.txt +5 -5
  405. package/console/settings/memory.html +1 -1
  406. package/console/settings/memory.txt +19 -19
  407. package/console/settings/oauth-apps/__next._full.txt +19 -19
  408. package/console/settings/oauth-apps/__next._head.txt +4 -4
  409. package/console/settings/oauth-apps/__next._index.txt +10 -10
  410. package/console/settings/oauth-apps/__next._tree.txt +2 -2
  411. package/console/settings/oauth-apps/__next.settings.oauth-apps.__PAGE__.txt +3 -3
  412. package/console/settings/oauth-apps/__next.settings.oauth-apps.txt +3 -3
  413. package/console/settings/oauth-apps/__next.settings.txt +5 -5
  414. package/console/settings/oauth-apps.html +1 -1
  415. package/console/settings/oauth-apps.txt +19 -19
  416. package/console/settings/org-preferences/__next._full.txt +19 -19
  417. package/console/settings/org-preferences/__next._head.txt +4 -4
  418. package/console/settings/org-preferences/__next._index.txt +10 -10
  419. package/console/settings/org-preferences/__next._tree.txt +2 -2
  420. package/console/settings/org-preferences/__next.settings.org-preferences.__PAGE__.txt +3 -3
  421. package/console/settings/org-preferences/__next.settings.org-preferences.txt +3 -3
  422. package/console/settings/org-preferences/__next.settings.txt +5 -5
  423. package/console/settings/org-preferences.html +1 -1
  424. package/console/settings/org-preferences.txt +19 -19
  425. package/console/settings/org-profile/__next._full.txt +19 -19
  426. package/console/settings/org-profile/__next._head.txt +4 -4
  427. package/console/settings/org-profile/__next._index.txt +10 -10
  428. package/console/settings/org-profile/__next._tree.txt +2 -2
  429. package/console/settings/org-profile/__next.settings.org-profile.__PAGE__.txt +3 -3
  430. package/console/settings/org-profile/__next.settings.org-profile.txt +3 -3
  431. package/console/settings/org-profile/__next.settings.txt +5 -5
  432. package/console/settings/org-profile.html +1 -1
  433. package/console/settings/org-profile.txt +19 -19
  434. package/console/settings/platform-clients/__next._full.txt +19 -19
  435. package/console/settings/platform-clients/__next._head.txt +4 -4
  436. package/console/settings/platform-clients/__next._index.txt +10 -10
  437. package/console/settings/platform-clients/__next._tree.txt +2 -2
  438. package/console/settings/platform-clients/__next.settings.platform-clients.__PAGE__.txt +3 -3
  439. package/console/settings/platform-clients/__next.settings.platform-clients.txt +3 -3
  440. package/console/settings/platform-clients/__next.settings.txt +5 -5
  441. package/console/settings/platform-clients.html +1 -1
  442. package/console/settings/platform-clients.txt +19 -19
  443. package/console/settings/pricing-governance/__next._full.txt +20 -20
  444. package/console/settings/pricing-governance/__next._head.txt +4 -4
  445. package/console/settings/pricing-governance/__next._index.txt +10 -10
  446. package/console/settings/pricing-governance/__next._tree.txt +2 -2
  447. package/console/settings/pricing-governance/__next.settings.pricing-governance.__PAGE__.txt +4 -4
  448. package/console/settings/pricing-governance/__next.settings.pricing-governance.txt +3 -3
  449. package/console/settings/pricing-governance/__next.settings.txt +5 -5
  450. package/console/settings/pricing-governance.html +1 -1
  451. package/console/settings/pricing-governance.txt +20 -20
  452. package/console/settings/provider-standing/__next._full.txt +20 -20
  453. package/console/settings/provider-standing/__next._head.txt +4 -4
  454. package/console/settings/provider-standing/__next._index.txt +10 -10
  455. package/console/settings/provider-standing/__next._tree.txt +2 -2
  456. package/console/settings/provider-standing/__next.settings.provider-standing.__PAGE__.txt +4 -4
  457. package/console/settings/provider-standing/__next.settings.provider-standing.txt +3 -3
  458. package/console/settings/provider-standing/__next.settings.txt +5 -5
  459. package/console/settings/provider-standing.html +1 -1
  460. package/console/settings/provider-standing.txt +20 -20
  461. package/console/settings/usage/__next._full.txt +19 -19
  462. package/console/settings/usage/__next._head.txt +4 -4
  463. package/console/settings/usage/__next._index.txt +10 -10
  464. package/console/settings/usage/__next._tree.txt +2 -2
  465. package/console/settings/usage/__next.settings.txt +5 -5
  466. package/console/settings/usage/__next.settings.usage.__PAGE__.txt +3 -3
  467. package/console/settings/usage/__next.settings.usage.txt +3 -3
  468. package/console/settings/usage.html +1 -1
  469. package/console/settings/usage.txt +19 -19
  470. package/console/settings.html +1 -1
  471. package/console/settings.txt +20 -20
  472. package/console/workflows/__next._full.txt +16 -16
  473. package/console/workflows/__next._head.txt +4 -4
  474. package/console/workflows/__next._index.txt +10 -10
  475. package/console/workflows/__next._tree.txt +2 -2
  476. package/console/workflows/__next.workflows.__PAGE__.txt +2 -2
  477. package/console/workflows/__next.workflows.txt +3 -3
  478. package/console/workflows/__placeholder__/__placeholder__/__next._full.txt +17 -17
  479. package/console/workflows/__placeholder__/__placeholder__/__next._head.txt +4 -4
  480. package/console/workflows/__placeholder__/__placeholder__/__next._index.txt +10 -10
  481. package/console/workflows/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  482. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.__PAGE__.txt +3 -3
  483. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.txt +3 -3
  484. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.txt +3 -3
  485. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.txt +3 -3
  486. package/console/workflows/__placeholder__/__placeholder__.html +1 -1
  487. package/console/workflows/__placeholder__/__placeholder__.txt +17 -17
  488. package/console/workflows/executions/__next._full.txt +16 -16
  489. package/console/workflows/executions/__next._head.txt +4 -4
  490. package/console/workflows/executions/__next._index.txt +10 -10
  491. package/console/workflows/executions/__next._tree.txt +2 -2
  492. package/console/workflows/executions/__next.workflows.executions.__PAGE__.txt +2 -2
  493. package/console/workflows/executions/__next.workflows.executions.txt +3 -3
  494. package/console/workflows/executions/__next.workflows.txt +3 -3
  495. package/console/workflows/executions/__placeholder__/__next._full.txt +17 -17
  496. package/console/workflows/executions/__placeholder__/__next._head.txt +4 -4
  497. package/console/workflows/executions/__placeholder__/__next._index.txt +10 -10
  498. package/console/workflows/executions/__placeholder__/__next._tree.txt +2 -2
  499. package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.__PAGE__.txt +3 -3
  500. package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.txt +3 -3
  501. package/console/workflows/executions/__placeholder__/__next.workflows.executions.txt +3 -3
  502. package/console/workflows/executions/__placeholder__/__next.workflows.txt +3 -3
  503. package/console/workflows/executions/__placeholder__.html +1 -1
  504. package/console/workflows/executions/__placeholder__.txt +17 -17
  505. package/console/workflows/executions.html +1 -1
  506. package/console/workflows/executions.txt +16 -16
  507. package/console/workflows.html +1 -1
  508. package/console/workflows.txt +16 -16
  509. package/main.js +286 -100
  510. package/package.json +6 -6
  511. package/workflow-bundle-agent-execution.js +26 -8
  512. package/workflow-bundle-workflow-execution.js +25 -7
  513. package/console/_next/static/chunks/0-l4jzu40dd8w.js +0 -1
  514. package/console/_next/static/chunks/0-z-fnjdx4ulh.js +0 -1
  515. package/console/_next/static/chunks/07wnm1~gr1rx~.js +0 -1
  516. package/console/_next/static/chunks/0af53k.rxu1kn.js +0 -1
  517. package/console/_next/static/chunks/0cgp87bgoglgv.js +0 -1
  518. package/console/_next/static/chunks/0g-98wql22rf4.css +0 -1
  519. package/console/_next/static/chunks/0oprw5m.lmqln.js +0 -1
  520. package/console/_next/static/chunks/0ptwwlt0l20~o.js +0 -1
  521. package/console/_next/static/chunks/0taiwi2j.k7mm.js +0 -1
  522. package/console/_next/static/chunks/11xfx57fbi3md.js +0 -2
  523. /package/console/_next/static/{XrBnttPHHP5Wmi7mT4uLM → _-1QOBCdmEZcdWQHZomTm}/_buildManifest.js +0 -0
  524. /package/console/_next/static/{XrBnttPHHP5Wmi7mT4uLM → _-1QOBCdmEZcdWQHZomTm}/_clientMiddlewareManifest.js +0 -0
  525. /package/console/_next/static/{XrBnttPHHP5Wmi7mT4uLM → _-1QOBCdmEZcdWQHZomTm}/_ssgManifest.js +0 -0
@@ -0,0 +1,2 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,630983,e=>{"use strict";var t=e.i(843476),s=e.i(893976);function r({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:"6.25"}),(0,t.jsx)("path",{d:"M8 7v4"}),(0,t.jsx)("circle",{cx:"8",cy:"5",r:"0.5",fill:"currentColor",stroke:"none"})]})}e.s(["CloudFeatureNotice",0,function({children:e,className:n}){return(0,t.jsxs)("div",{role:"status",className:(0,s.cn)("stg:bg-muted-subtle stg:text-muted-foreground stg:flex stg:items-start stg:gap-2.5 stg:rounded-lg stg:border stg:border-transparent stg:px-4 stg:py-3",n),children:[(0,t.jsx)(r,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsx)("p",{className:"stg:text-xs stg:leading-relaxed",children:e})]})}])},858677,e=>{e.q("/_next/static/media/elk-worker.min.13hrbirt7_.ef.js")},451241,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(618566);let n=(0,s.createContext)(null),i=RegExp("^/library/(agents|skills|mcp-servers|workflows|schedules)/([^/]+)/([^/]+)/?$");function a(e){let t=e.match(i);return t?{resourceType:t[1],org:t[2],slug:t[3]}:null}function l(e){return"/library"===e||e.startsWith("/library/")}function o(e){return`/library/${e.resourceType}/${e.org}/${e.slug}`}function u(){let e=(0,s.useContext)(n);if(!e)throw Error("useLibraryNavigation must be used within <LibraryNavigationProvider>");return e}e.s(["LibraryNavigationProvider",0,function({children:e}){let[i,u]=(0,s.useState)(()=>a(window.location.pathname)),c=(0,r.usePathname)(),[d,g]=(0,s.useState)(c);c!==d&&(g(c),l(c)&&a(c)||u(null));let m=(0,s.useRef)(i);(0,s.useEffect)(()=>{m.current=i},[i]);let h=(0,s.useCallback)((e,t,s)=>{var r;let n={resourceType:e,org:t,slug:s};(r=m.current)===n||r&&n&&r.resourceType===n.resourceType&&r.org===n.org&&r.slug===n.slug||(u(n),window.history.pushState(null,"",o(n)))},[]),p=(0,s.useCallback)(()=>{if(m.current){let e=`/library/${m.current.resourceType}`;u(null),window.history.pushState(null,"",e)}},[]);(0,s.useEffect)(()=>{function e(){let e=window.location.pathname;l(e)?u(a(e)):u(null)}return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]);let f=i?o(i):c,x=(0,s.useMemo)(()=>({activeDetail:i,currentLibraryPath:f,navigateToDetail:h,clearDetail:p}),[i,f,h,p]);return(0,t.jsx)(n.Provider,{value:x,children:e})},"useLibraryNavigation",0,u,"useRouteDetailYieldsToOverlay",0,function(){let{activeDetail:e}=u();return null!=e}])},65642,e=>{"use strict";var t=e.i(843476),s=e.i(893976);let r={primary:"stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover",outline:"stg:border stg:border-border stg:text-foreground stg:hover:bg-accent-hover",ghost:"stg:text-foreground stg:hover:bg-accent-hover",destructive:"stg:bg-destructive stg:text-destructive-foreground stg:hover:bg-destructive-hover"},n={xs:"stg:px-2.5 stg:py-1 stg:text-xs",sm:"stg:px-3 stg:py-1.5 stg:text-xs"};e.s(["Button",0,function({variant:e="primary",size:i="sm",icon:a,type:l="button",className:o,children:u,...c}){return(0,t.jsxs)("button",{type:l,className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:font-medium stg:transition-colors","stg:motion-reduce:transition-none","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50",n[i],r[e],o),...c,children:[a,u]})}])},311015,e=>{"use strict";var t=e.i(843476),s=e.i(893976),r=e.i(65642),n=e.i(271645),i=e.i(475254);let a=(0,i.default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),l=(0,i.default)("search-x",[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),o=(0,i.default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);var u=e.i(63209);let c="stg:h-10 stg:w-10";e.s(["EmptyState",0,function({variant:e,resourceLabel:i,icon:d,title:g,description:m,errorMessage:h,action:p,children:f,className:x}){let y=function(e){let{variant:t,resourceLabel:s="resources",title:r,description:i,errorMessage:d}=e;return(0,n.useMemo)(()=>{let e=function(e,t){switch(e){case"first-use":return{title:`No ${t} yet`,description:`Create ${"agents"===t?"an agent":`a ${t.replace(/s$/,"")}`} to get started.`};case"zero-results":return{title:"No results found",description:"Try adjusting your search or filters."};case"permission":return{title:`No access to ${t}`,description:"You don't have permission to view these resources. Contact your organization admin."};case"error":return{title:"Something went wrong",description:"We couldn't load this content. Please try again."}}}(t,s);return{title:r??e.title,description:"error"===t&&d?d:i??e.description,defaultIcon:function(e){switch(e){case"first-use":return(0,n.createElement)(a,{className:c});case"zero-results":return(0,n.createElement)(l,{className:c});case"permission":return(0,n.createElement)(o,{className:c});case"error":return(0,n.createElement)(u.AlertCircle,{className:c})}}(t),role:"error"===t?"alert":"status"}},[t,s,r,i,d])}({variant:e,resourceLabel:i,title:g,description:m,errorMessage:h});return(0,t.jsxs)("div",{role:y.role,className:(0,s.cn)("stg:flex stg:flex-col stg:items-center stg:gap-3 stg:py-12 stg:text-center",x),children:[(0,t.jsx)("div",{className:"stg:text-muted-foreground-faint",children:d??y.defaultIcon}),(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1",children:[(0,t.jsx)("p",{className:"stg:text-sm stg:font-medium stg:text-muted-foreground",children:y.title}),(0,t.jsx)("p",{className:"stg:max-w-sm stg:text-xs stg:text-muted-foreground-subtle",children:y.description})]}),f?(0,t.jsx)("div",{className:"stg:mt-1",children:f}):p&&(0,t.jsx)(r.Button,{variant:"error"===e?"outline":"primary",icon:p.icon,onClick:p.onClick,className:"stg:mt-1",children:p.label})]})}],311015)},541071,727612,e=>{"use strict";var t=e.i(475254);let s=(0,t.default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["MoreHorizontal",0,s],541071);let r=(0,t.default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,r],727612)},778917,e=>{"use strict";let t=(0,e.i(475254).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,t],778917)},367240,e=>{"use strict";let t=(0,e.i(475254).default)("rotate-ccw",[["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"}]]);e.s(["RotateCcw",0,t],367240)},543727,914118,582688,e=>{"use strict";var t=e.i(843476);function s({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M5.04 15.17a2.52 2.52 0 1 1-2.52-2.52h2.52v2.52zM6.31 15.17a2.52 2.52 0 0 1 5.04 0v6.31a2.52 2.52 0 1 1-5.04 0v-6.31zM8.83 5.04a2.52 2.52 0 1 1 2.52-2.52v2.52H8.83zM8.83 6.31a2.52 2.52 0 0 1 0 5.04H2.52a2.52 2.52 0 1 1 0-5.04h6.31zM18.96 8.83a2.52 2.52 0 1 1 2.52 2.52h-2.52V8.83zM17.69 8.83a2.52 2.52 0 0 1-5.04 0V2.52a2.52 2.52 0 1 1 5.04 0v6.31zM15.17 18.96a2.52 2.52 0 1 1-2.52 2.52v-2.52h2.52zM15.17 17.69a2.52 2.52 0 0 1 0-5.04h6.31a2.52 2.52 0 1 1 0 5.04h-6.31z"})})}function r({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413Z"})})}e.s(["SlackMarkIcon",0,s],914118),e.s(["WhatsAppMarkIcon",0,r],582688);let n=[{id:"slack",label:"Slack",Icon:s,installStyle:"redirect",supportsMessageTemplates:!1,supportsStaffReplies:!1,timelineIncludesCustomerMessages:!1},{id:"whatsapp",label:"WhatsApp",Icon:r,installStyle:"direct",supportsMessageTemplates:!0,supportsStaffReplies:!0,timelineIncludesCustomerMessages:!0}];e.s(["CHANNEL_PROVIDERS",0,n,"channelProviderOf",0,function(e){return n.find(t=>t.id===e)??null}],543727)},385663,928240,182990,e=>{"use strict";let t=(0,e.i(475254).default)("layout-template",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]]);e.s(["LayoutTemplate",0,t],385663);let s=/\{\{\s*[A-Za-z0-9_]+\s*\}\}/g;e.s(["splitTemplateBody",0,function(e){let t=[],r=0;for(let n of e.matchAll(s))n.index>r&&t.push({kind:"text",value:e.slice(r,n.index)}),t.push({kind:"placeholder",value:n[0]}),r=n.index+n[0].length;return r<e.length&&t.push({kind:"text",value:e.slice(r)}),t},"templateStatusPhase",0,function(e){switch(e){case"APPROVED":return"ready";case"PENDING":case"IN_APPEAL":return"pending";case"PAUSED":case"LIMIT_EXCEEDED":return"degraded";case"REJECTED":case"DISABLED":return"failed";case"PENDING_DELETION":case"DELETED":return"disabled";default:return"draft"}}],928240);var r=e.i(271645),n=e.i(891287),i=e.i(730938),a=e.i(586108),l=e.i(583093);e.s(["useChannelTemplateList",0,function(e,t,s){let o=(0,a.useStigmer)(),u=s?.approvedOnly??!1,[c,d]=(0,r.useState)(!1),g=e&&t?async()=>(await o.agentChannel.listTemplates((0,n.create)(i.ListChannelTemplatesInputSchema,{channel:e,org:t,approvedOnly:u}))).entries:null,{data:m,isLoading:h,isRefetching:p,error:f,refetch:x}=(0,l.useFetch)(g,[e,t,u,o],[],{refetchInterval:c}),y=m.some(e=>"PENDING"===e.status);return(0,r.useEffect)(()=>{d(!!y&&6e4)},[y]),{templates:m,isLoading:h,isRefetching:p,error:f,refetch:x}}],182990)},815907,e=>{"use strict";var t=e.i(891287),s=e.i(476487),r=e.i(586108),n=e.i(583093);e.s(["useOrgAgentChannelList",0,function(e){let i=(0,r.useStigmer)(),a=e?async()=>(await i.agentChannel.list((0,t.create)(s.ListAgentChannelsRequestSchema,{org:e}))).items:null,{data:l,isLoading:o,isRefetching:u,error:c,refetch:d}=(0,n.useFetch)(a,[e,i],[]);return{channels:l,isLoading:o,isRefetching:u,error:c,refetch:d}}])},699187,e=>{"use strict";var t=e.i(891287),s=e.i(109623),r=e.i(586108),n=e.i(583093);e.s(["useChannelAppList",0,function(e){let i=(0,r.useStigmer)(),{data:a,isLoading:l,isRefetching:o,error:u,refetch:c}=(0,n.useFetch)(e?()=>i.channelapp.listByOrg((0,t.create)(s.ListChannelAppsByOrgInputSchema,{org:e})).then(e=>[...e.entries]):null,[e,i],[]);return{channelApps:a,isLoading:l,isRefetching:o,error:u,refetch:c}}])},862749,901352,e=>{"use strict";let t=(0,e.i(475254).default)("file-code-corner",[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]]);e.s(["FileCode2",0,t],862749),e.s(["getAgentSessionUrl",0,function(e,t,s){let r=`/?agent=${encodeURIComponent(`${e}/${t}`)}`;return s?`${r}&instance=${encodeURIComponent(s)}`:r},"getDraftSessionUrl",0,function(e){return`/?draft=${e}`}],901352)},780052,e=>{"use strict";var t=e.i(891287),s=e.i(218766),r=e.i(586108),n=e.i(583093);e.s(["useWorkflowDashboardSummary",0,function(e){let i=(0,r.useStigmer)(),a=e.org??"",l=e.timeWindow??s.SummaryTimeWindow.LAST_7D,o=e.workflowId??"",u=e.refetchInterval??0,c=a?async()=>{let e={org:a,timeWindow:l};return o&&(e.workflowId=o),await i.workflowExecution.getExecutionSummary((0,t.create)(s.GetExecutionSummaryRequestSchema,e))}:null,{data:d,isLoading:g,isRefetching:m,error:h,refetch:p}=(0,n.useFetch)(c,[i,a,l,o],null,{refetchInterval:u||!1});return{summary:d,isLoading:g,isRefetching:m,error:h,refetch:p}}])},431343,e=>{"use strict";let t=(0,e.i(475254).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",0,t],431343)},495242,e=>{"use strict";let t=(0,e.i(475254).default)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);e.s(["Pause",0,t],495242)},818424,e=>{"use strict";var t=e.i(843476),s=e.i(893976);let r=(0,s.cn)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium stg:text-muted-foreground stg:transition-colors","stg:hover:bg-accent stg:hover:text-foreground","stg:disabled:pointer-events-none stg:disabled:opacity-40");e.s(["Pagination",0,function({pageNum:e,totalPages:n,onPageChange:i,ariaLabel:a,className:l}){return(0,t.jsxs)("div",{className:(0,s.cn)("stg:flex stg:items-center stg:justify-between",l),role:"navigation","aria-label":a,children:[(0,t.jsx)("button",{type:"button",disabled:e<=1,onClick:()=>i(e-1),className:r,children:"Previous"}),(0,t.jsxs)("span",{className:"stg:text-xs stg:tabular-nums stg:text-muted-foreground",children:["Page ",e," of ",n]}),(0,t.jsx)("button",{type:"button",disabled:e>=n,onClick:()=>i(e+1),className:r,children:"Next"})]})}])},82765,e=>{"use strict";let t=/^https?:\/\/[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?)*(:[0-9]{1,5})?$/;e.s(["LINK_TOKEN_PARAM",0,"k","MAX_ALLOWED_ORIGINS",0,32,"appendLinkToken",0,function(e,t){if(!t)return e;let s=e.includes("?")?"&":"?";return`${e}${s}k=${encodeURIComponent(t)}`},"buildEmbedSnippet",0,function(e,t,s,r){var n;let i=r?` token="${r}"`:"";return`<script src="${(n=e).endsWith("/")?n.slice(0,-1):n}/embed.js" async></script>
2
+ <stigmer-agent org="${t}" agent="${s}"${i}></stigmer-agent>`},"chatPath",0,function(e,t,s){let r=`/chat/${e}/${t}`;return s?`${r}?k=${encodeURIComponent(s)}`:r},"validateOrigin",0,function(e){let s=e.trim();return s?t.test(s)?null:"Must be an exact web origin like https://example.com — no path, query, or trailing slash":"Enter an origin, like https://example.com"}])},936175,e=>{"use strict";var t=e.i(586108),s=e.i(583093);e.s(["useBillingAccount",0,function(e){let r=(0,t.useStigmer)(),{data:n,isLoading:i,isRefetching:a,error:l,refetch:o}=(0,s.useFetch)(e?()=>r.billing.getOrCreateBillingAccount(e):null,[e,r],null);return{account:n,isLoading:i,isRefetching:a,error:l,refetch:o}}])},982247,e=>{"use strict";var t=e.i(960511);let s={[t.LedgerEntryType.purchase_credit]:"Credit Purchase",[t.LedgerEntryType.promotional_credit]:"Promotional Credit",[t.LedgerEntryType.usage_debit]:"Usage",[t.LedgerEntryType.reservation_hold]:"Reservation Hold",[t.LedgerEntryType.reservation_release]:"Reservation Release",[t.LedgerEntryType.adjustment_credit]:"Admin Credit",[t.LedgerEntryType.adjustment_debit]:"Admin Debit",[t.LedgerEntryType.refund_reversal]:"Refund",[t.LedgerEntryType.dispute_hold]:"Dispute Hold",[t.LedgerEntryType.dispute_release]:"Dispute Release",[t.LedgerEntryType.expiry_debit]:"Credit Expiry",[t.LedgerEntryType.auto_recharge_credit]:"Auto-Recharge"};e.s(["formatCreditBalance",0,function(e){if(void 0===e)return"$0.00";let t=Number(e)/1e4;return`$${(t/100).toFixed(2)}`},"formatLedgerAmount",0,function(e){let t=BigInt(0),s=Number(e<t?-e:e)/1e6,r=`$${s.toFixed(2)}`;return e>t?`+${r}`:e<t?`-${r}`:r},"formatLedgerDate",0,function(e){let t=new Date(1e3*Number(e));return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}).format(t)},"isCredit",0,function(e){return e===t.LedgerEntryType.purchase_credit||e===t.LedgerEntryType.promotional_credit||e===t.LedgerEntryType.adjustment_credit||e===t.LedgerEntryType.reservation_release||e===t.LedgerEntryType.dispute_release||e===t.LedgerEntryType.auto_recharge_credit},"isHold",0,function(e){return e===t.LedgerEntryType.reservation_hold||e===t.LedgerEntryType.dispute_hold},"ledgerEntryLabel",0,function(e){return s[e]??"Unknown"}])},638182,803636,38030,e=>{"use strict";e.s(["deriveScheduleState",0,function(e,t){let s=(t?.pausedReason??"")!=="";return e?.enabled?s?{state:"paused",phase:"degraded",label:"Paused",isPaused:s}:{state:"active",phase:"ready",label:"Active",isPaused:s}:{state:"disabled",phase:"disabled",label:"Disabled",isPaused:s}},"formatNextFire",0,function(e,t){let s=e.getTime()-t.getTime();if(s<6e4)return"now";let r=Math.floor(s/6e4);if(r<60)return`in ${r}m`;let n=Math.floor(r/60);if(n<24)return`in ${n}h`;let i=Math.floor(n/24);if(i<7)return`in ${i}d`;let a=e.getFullYear()===t.getFullYear();return e.toLocaleDateString(void 0,{month:"short",day:"numeric",...a?{}:{year:"numeric"}})}],638182);var t=e.i(271645),s=e.i(610595),r=e.i(586108),n=e.i(846696),i=e.i(326283);e.s(["useResumeSchedule",0,function(){let e=(0,r.useStigmer)(),[a,l]=(0,t.useState)(!1),[o,u]=(0,t.useState)(null),c=(0,t.useCallback)(async t=>{l(!0),u(null);try{let s=await e.schedule.resume(t);return n.toast.success("Schedule resumed"),s}catch(t){let e=(0,i.toError)(t);throw u(e),n.toast.error((0,s.getUserMessage)(t)),e}finally{l(!1)}},[e]);return(0,t.useMemo)(()=>({resumeSchedule:c,isResuming:a,error:o}),[c,a,o])}],803636);var a=e.i(695682);e.s(["useTriggerSchedule",0,function(){let e=(0,r.useStigmer)(),[l,o]=(0,t.useState)(!1),[u,c]=(0,t.useState)(null),d=(0,t.useCallback)(async t=>{o(!0),c(null);try{let s=await e.schedule.trigger(t);return s.outcome===a.ScheduleRunOutcome.STARTED?n.toast.success("Run started"):n.toast.error(s.refusalReason||"The run was refused by a launch gate"),s}catch(t){let e=(0,i.toError)(t);throw c(e),n.toast.error((0,s.getUserMessage)(t)),e}finally{o(!1)}},[e]);return(0,t.useMemo)(()=>({triggerSchedule:d,isTriggering:l,error:u}),[d,l,u])}],38030)},521557,e=>{"use strict";e.s(["isUnimplemented",0,function(e){if(!e||"object"!=typeof e)return!1;if("connectCode"in e&&12===e.connectCode)return!0;let t=e.message??"";return t.includes("[unimplemented]")||t.includes("UNIMPLEMENTED")}])},244990,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976);function n({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}function i({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"m3 8.5 3.5 3.5 6.5-8"})})}function a({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"m4 4 8 8M12 4l-8 8"})})}function l(){return(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"stg:animate-spin","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M8 2a6 6 0 1 0 6 6"})})}e.s(["InlineEditText",0,function({value:e,onSave:o,placeholder:u="Click to edit",validate:c,variant:d="default",disabled:g,isSaving:m,error:h,className:p}){let[f,x]=(0,s.useState)(!1),[y,v]=(0,s.useState)(e),[b,k]=(0,s.useState)(null),j=(0,s.useRef)(null);(0,s.useEffect)(()=>{f&&(v(e),k(null),requestAnimationFrame(()=>j.current?.focus()))},[f,e]);let w=(0,s.useCallback)(async()=>{let t=y.trim();if(t===e)return void x(!1);if(c){let e=c(t);if(e)return void k(e)}await o(t)&&x(!1)},[y,e,c,o]),N=(0,s.useCallback)(()=>{x(!1),v(e),k(null)},[e]),C=(0,s.useCallback)(e=>{"Enter"===e.key?(e.preventDefault(),w()):"Escape"===e.key&&N()},[w,N]),A=b||h;return g||!f?(0,t.jsx)("div",{className:(0,r.cn)("stg:group/inline-edit",p),children:(0,t.jsxs)("button",{type:"button",onClick:()=>{g||x(!0)},disabled:g,className:(0,r.cn)("stg:inline-flex stg:w-full stg:items-center stg:gap-1.5 stg:rounded-md stg:px-1.5 stg:py-0.5 stg:text-left stg:transition-colors",!g&&"stg:hover:bg-accent-hover stg:cursor-pointer",g&&"stg:cursor-default","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-inset stg:focus-visible:ring-ring"),children:[(0,t.jsx)("span",{className:(0,r.cn)("stg:min-w-0 stg:truncate","heading"===d?"stg:text-lg stg:font-semibold stg:text-foreground":"stg:text-sm stg:text-foreground",!e&&"stg:text-muted-foreground stg:italic"),children:e||u}),!g&&(0,t.jsx)(n,{className:"stg:size-3 stg:shrink-0 stg:text-muted-foreground stg:opacity-0 stg:transition-opacity stg:group-hover/inline-edit:opacity-100"})]})}):(0,t.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-1",p),children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,t.jsx)("input",{ref:j,type:"text",value:y,onChange:e=>{v(e.target.value),k(null)},onKeyDown:C,disabled:m,placeholder:u,className:(0,r.cn)("stg:flex-1 stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-2 stg:py-1 stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring","stg:disabled:opacity-50","heading"===d&&"stg:text-lg stg:font-semibold",A&&"stg:border-destructive")}),(0,t.jsx)("button",{type:"button",onClick:w,disabled:m,"aria-label":"Save",className:(0,r.cn)("stg:inline-flex stg:size-7 stg:items-center stg:justify-center stg:rounded-md","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:m?(0,t.jsx)(l,{}):(0,t.jsx)(i,{className:"stg:size-3.5"})}),(0,t.jsx)("button",{type:"button",onClick:N,disabled:m,"aria-label":"Cancel",className:(0,r.cn)("stg:inline-flex stg:size-7 stg:items-center stg:justify-center stg:rounded-md","stg:border stg:border-border stg:bg-background stg:text-foreground stg:hover:bg-accent stg:hover:text-accent-foreground","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:(0,t.jsx)(a,{className:"stg:size-3.5"})})]}),A&&(0,t.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:A})]})}])},153158,651424,e=>{"use strict";var t=e.i(271645),s=e.i(498931),r=e.i(437241),n=e.i(207344),i=e.i(288270),a=e.i(139666),l=e.i(891287),o=e.i(336973),u=e.i(586108),c=e.i(583093);let d={connected:!1,accessTokenExpiresAt:BigInt(0),targetEnvVar:"",authMethod:"",connectionHealth:o.OAuthConnectionHealth.OAUTH_CONNECTION_HEALTH_UNSPECIFIED};var g=e.i(521557),m=e.i(326283);let h={isSupported:!1,hasOverride:!1,oauthAppId:null,clientId:null},p={isSupported:!1,hasOverride:!1,oauthAppId:null,clientId:null},f={...h,isLoading:!1,isRefetching:!1,error:null,refetch:()=>{},setOrgOAuthApp:()=>Promise.resolve(""),isSetting:!1,setError:null,deleteOrgOAuthApp:()=>Promise.resolve(!1),isDeleting:!1,deleteError:null,clearErrors:()=>{}};function x(e,s){let r=(0,u.useStigmer)(),{data:n,isLoading:i,isRefetching:a,error:d,refetch:x}=(0,c.useFetch)(e&&s?async()=>{try{let t=await r.mcpServer.getOrgOAuthApp((0,l.create)(o.GetOrgOAuthAppInputSchema,{resourceId:e,org:s}));return{isSupported:!0,hasOverride:t.hasOverride,oauthAppId:t.oauthAppId||null,clientId:t.clientId||null}}catch(e){if((0,g.isUnimplemented)(e))return p;throw e}}:null,[e,s,r],h,{cacheKey:`org-oauth-app:${s}:${e}`}),[y,v]=(0,t.useState)(!1),[b,k]=(0,t.useState)(null),[j,w]=(0,t.useState)(!1),[N,C]=(0,t.useState)(null),A=(0,t.useCallback)(()=>{k(null),C(null)},[]),S=(0,t.useCallback)(async(t,n)=>{if(!e||!s)throw Error("useOrgOAuthApp: resourceId and org are required for setOrgOAuthApp");v(!0),k(null);try{return(await r.mcpServer.setOrgOAuthApp((0,l.create)(o.SetOrgOAuthAppInputSchema,{resourceId:e,org:s,clientId:t,clientSecret:n}))).oauthAppId}catch(t){let e=(0,m.toError)(t);throw k(e),e}finally{v(!1)}},[r,e,s]),E=(0,t.useCallback)(async()=>{if(!e||!s)throw Error("useOrgOAuthApp: resourceId and org are required for deleteOrgOAuthApp");w(!0),C(null);try{return(await r.mcpServer.deleteOrgOAuthApp((0,l.create)(o.DeleteOrgOAuthAppInputSchema,{resourceId:e,org:s}))).deleted}catch(t){let e=(0,m.toError)(t);throw C(e),e}finally{w(!1)}},[r,e,s]);return e&&s?{...n,isLoading:i,isRefetching:a,error:d,refetch:x,setOrgOAuthApp:S,isSetting:y,setError:b,deleteOrgOAuthApp:E,isDeleting:j,deleteError:N,clearErrors:A}:{...f,refetch:x,clearErrors:A}}e.s(["useOrgOAuthApp",0,x],651424),e.s(["useMcpServerCredentials",0,function(e,g){let m=(0,n.usePersonalEnvironment)(e),[h,p]=(0,t.useState)(!1),f=g?.spec?.auth,y=f?"oauth":"manual",v=f?.targetEnvVar||null,b=f?.tokenLifetimeHint||null,k=!f?.oauthOnly,j=h&&k,w=g?.status?.oauthStatus,N="oauth"===y&&w?.vendorApprovalStatus===r.VendorApprovalStatus.PENDING,C="oauth"===y&&(w?.vendorApprovalStatus===r.VendorApprovalStatus.PENDING||w?.vendorApprovalStatus===r.VendorApprovalStatus.REJECTED),A=w?.vendorApprovalDocsUrl||null,S=!!f?.oauthAppRef?.slug,E=x("oauth"===y&&S?g?.metadata?.id??null:null,e),L=E.hasOverride,T=E.isLoading||null!==E.error||S&&!e,M="oauth"!==y||T?s.OAuthAppSource.OAUTH_APP_SOURCE_UNSPECIFIED:L?s.OAuthAppSource.OAUTH_APP_SOURCE_ORG_OVERRIDE:S?s.OAuthAppSource.OAUTH_APP_SOURCE_PLATFORM:s.OAuthAppSource.OAUTH_APP_SOURCE_NONE,$="oauth"===y&&S&&!L&&E.isSupported,O=function(e,t){let s=(0,u.useStigmer)(),{data:r,isLoading:n,isRefetching:i,error:a,refetch:g}=(0,c.useFetch)(e&&t?async()=>{let r=await s.mcpServer.getOAuthGrantStatus((0,l.create)(o.GetOAuthGrantStatusInputSchema,{resourceId:e,org:t}));return{connected:r.connected,accessTokenExpiresAt:r.accessTokenExpiresAt,targetEnvVar:r.targetEnvVar,authMethod:r.authMethod,connectionHealth:r.connectionHealth}}:null,[e,t,s],d);return{...r,isLoading:n,isRefetching:i,error:a,refetch:g}}("oauth"===y?g?.metadata?.id??null:null,"oauth"===y?e:null),I="oauth"===y&&O.connected,D=(0,t.useMemo)(()=>new Set(Object.keys(m.environment?.spec?.data??{})),[m.environment]),R=(0,t.useMemo)(()=>{if(!g)return[];let e=g.spec?.env;return e&&0!==Object.keys(e).length?(0,i.diffEnv)(e,D).filter(e=>!a.SYSTEM_ENV_VAR_KEYS.has(e.key)):[]},[g,D]),P=(0,t.useMemo)(()=>R.filter(e=>!e.optional),[R]),z=(0,t.useMemo)(()=>!v||j?P:P.filter(e=>e.key!==v),[P,v,j]),_=!m.isLoading&&!O.isLoading&&0===z.length&&("manual"===y||j||I),F=(0,t.useCallback)(async e=>{await m.getOrCreate(),await m.addVariables(e)},[m]),U=(0,t.useCallback)(()=>{m.refetch(),O.refetch(),E.refetch()},[m,O,E]);return{authMode:y,oauthTargetEnvVar:v,isOAuthConnected:I,connectionHealth:O.connectionHealth,canDisconnect:I,accessTokenExpiresAt:O.accessTokenExpiresAt,tokenLifetimeHint:b,isVendorApprovalPending:N,isVendorApprovalBlocked:C,vendorApprovalDocsUrl:A,effectiveOAuthSource:M,isOrgOAuthApp:L,canBringOwnApp:$,manualEntrySupported:k,missingVariables:z,isReady:_,isLoading:m.isLoading||O.isLoading||E.isLoading,error:m.error??O.error??E.error,saveCredentials:F,isSaving:m.isMutating,refetch:U,manualOverride:j,setManualOverride:p}}],153158)},844533,801731,e=>{"use strict";var t=e.i(843476),s=e.i(893976),r=e.i(597744);function n({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M2 5.5 8 2.5l6 3-6 3-6-3Z"}),(0,t.jsx)("path",{d:"M2 5.5v5l6 3 6-3v-5"}),(0,t.jsx)("path",{d:"M8 8.5v5"})]})}function i({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"5",cy:"11",r:"2.5"}),(0,t.jsx)("path",{d:"M6.8 9.2 13 3"}),(0,t.jsx)("path",{d:"M11 5l1.5 1.5"}),(0,t.jsx)("path",{d:"M9 7l1.5 1.5"})]})}e.s(["StdioSandboxNotice",0,function({serverType:e,className:i}){var a;return(a=(0,r.useDeploymentMode)(),"cloud"!==a||e?.case!=="stdio")?null:(0,t.jsxs)("div",{role:"status",className:(0,s.cn)("stg:bg-muted-subtle stg:text-muted-foreground stg:flex stg:items-start stg:gap-2.5 stg:rounded-lg stg:border stg:border-transparent stg:px-4 stg:py-3",i),children:[(0,t.jsx)(n,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsx)("p",{className:"stg:text-xs stg:leading-relaxed",children:"This stdio server runs only on local runners — it won't be available to sessions on Stigmer-managed cloud compute. Run the session on a local runner (desktop app or CLI) to use it, or choose a remote (HTTP) server instead."})]})}],844533),e.s(["OAuthRequiredNotice",0,function({oauthOnly:e,className:r}){return e?(0,t.jsxs)("div",{role:"status",className:(0,s.cn)("stg:bg-muted-subtle stg:text-muted-foreground stg:flex stg:items-start stg:gap-2.5 stg:rounded-lg stg:border stg:border-transparent stg:px-4 stg:py-3",r),children:[(0,t.jsx)(i,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsx)("p",{className:"stg:text-xs stg:leading-relaxed",children:"This server requires OAuth. Sign in to connect — its hosted endpoint rejects manually-entered API tokens, so a pasted token won't work here."})]}):null}],801731)},388894,e=>{"use strict";var t=e.i(271645),s=e.i(891287),r=e.i(336973),n=e.i(586108),i=e.i(326283);e.s(["useDisconnectOAuth",0,function(){let e=(0,n.useStigmer)(),[a,l]=(0,t.useState)(!1),[o,u]=(0,t.useState)(null),c=(0,t.useCallback)(()=>u(null),[]);return{disconnect:(0,t.useCallback)(async(t,n)=>{l(!0),u(null);try{return(await e.mcpServer.disconnectOAuth((0,s.create)(r.DisconnectOAuthInputSchema,{resourceId:t,org:n}))).disconnected}catch(e){throw u((0,i.toError)(e)),e}finally{l(!1)}},[e]),isDisconnecting:a,error:o,clearError:c}}])},653904,487809,540560,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),n=e.i(188482);let i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function a(e){switch(e.kind){case"hourly":return`${e.minute} * * * *`;case"daily":return`${e.minute} ${e.hour} * * *`;case"weekly":{let t=[...new Set(e.days)].sort((e,t)=>e-t);return`${e.minute} ${e.hour} * * ${t.join(",")}`}case"monthly":return`${e.minute} ${e.hour} ${e.day} * *`;case"custom":return e.cron}}let l=/^(\d{1,2}) \* \* \* \*$/,o=/^(\d{1,2}) (\d{1,2}) \* \* \*$/,u=/^(\d{1,2}) (\d{1,2}) \* \* (\d(?:,\d)*)$/,c=/^(\d{1,2}) (\d{1,2}) (\d{1,2}) \* \*$/;function d(e){return Number.isInteger(e)&&e>=0&&e<=59}function g(e){return Number.isInteger(e)&&e>=0&&e<=23}function m(e,t){let s=t?` (${t})`:"";switch(e.kind){case"hourly":return`Every hour at minute ${e.minute}${s}`;case"daily":return`Every day at ${h(e.hour,e.minute)}${s}`;case"weekly":{var r;let t=[...new Set(e.days)].sort((e,t)=>e-t),n=7===t.length?"day":1===(r=t.map(e=>i[e])).length?r[0]:`${r.slice(0,-1).join(", ")} and ${r[r.length-1]}`;return`Every ${n} at ${h(e.hour,e.minute)}${s}`}case"monthly":return`On day ${e.day} of every month at ${h(e.hour,e.minute)}${s}`;case"custom":return`Cron “${e.cron.trim()}”${s}`}}function h(e,t){return`${String(e).padStart(2,"0")}:${String(t).padStart(2,"0")}`}let p=new Set(["@hourly","@daily","@weekly","@monthly","@yearly"]),f=/^[0-9A-Za-z*,/-]+$/;function x(e){if(e.startsWith("CRON_TZ=")||e.startsWith("TZ="))return"spec.cron must not carry a timezone prefix (CRON_TZ=/TZ=) — spec.time_zone is the single timezone authority";if(e.includes("#"))return"spec.cron must not contain a comment (#)";if(e.startsWith("@"))return e.startsWith("@every")?"spec.cron must be a calendar expression — @every intervals are not supported":p.has(e)?null:`spec.cron shorthand "${e}" is not supported — use @hourly, @daily, @weekly, @monthly, or @yearly, or a 5-field cron expression`;let t=e.split(/\s+/).filter(e=>e.length>0);if(5!==t.length)return`spec.cron must have exactly 5 fields (minute hour day-of-month month day-of-week); got ${t.length}`;for(let e of t)if(!f.test(e))return`spec.cron field "${e}" contains unsupported characters — allowed: digits, names, '*', ',', '-', '/'`;return null}e.s(["WEEKDAY_LABELS",0,i,"cadenceToCron",0,a,"cronToCadence",0,function(e){let t=e.trim().replace(/\s+/g," ");switch(t){case"@hourly":return{kind:"hourly",minute:0};case"@daily":return{kind:"daily",hour:0,minute:0};case"@weekly":return{kind:"weekly",days:[0],hour:0,minute:0};case"@monthly":return{kind:"monthly",day:1,hour:0,minute:0}}let s=l.exec(t);if(s){let e=Number(s[1]);if(d(e))return{kind:"hourly",minute:e}}if(s=o.exec(t)){let e=Number(s[1]),t=Number(s[2]);if(d(e)&&g(t))return{kind:"daily",hour:t,minute:e}}if(s=u.exec(t)){let e=Number(s[1]),t=Number(s[2]),r=s[3].split(",").map(Number);if(d(e)&&g(t)&&r.length>0&&r.every(e=>e>=0&&e<=6)&&new Set(r).size===r.length)return{kind:"weekly",days:[...r].sort((e,t)=>e-t),hour:t,minute:e}}if(s=c.exec(t)){let e=Number(s[1]),t=Number(s[2]),r=Number(s[3]);if(d(e)&&g(t)&&r>=1&&r<=31)return{kind:"monthly",day:r,hour:t,minute:e}}return{kind:"custom",cron:e}},"describeCadence",0,m,"formatTime",0,h,"validateCron",0,x],487809);let y=[{kind:"hourly",label:"Hourly"},{kind:"daily",label:"Daily"},{kind:"weekly",label:"Weekly"},{kind:"monthly",label:"Monthly"},{kind:"custom",label:"Custom cron"}],v=(0,r.cn)("stg:w-16 stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2 stg:py-1 stg:text-xs stg:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50");function b({id:e,hour:s,minute:n,disabled:i,onChange:a}){return(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:text-xs stg:text-foreground",children:[(0,t.jsx)("label",{htmlFor:e,children:"At"}),(0,t.jsx)("input",{id:e,type:"time",value:h(s,n),onChange:e=>{let[t,s]=e.target.value.split(":").map(Number);Number.isInteger(t)&&Number.isInteger(s)&&a(t,s)},disabled:i,className:(0,r.cn)("stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2 stg:py-1 stg:text-xs stg:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50")})]})}function k(e,t,s,r){let n=Number(e);return Number.isInteger(n)?Math.min(s,Math.max(t,n)):r}e.s(["CadenceField",0,function({value:e,onChange:l,timeZone:o,disabled:u}){let c=(0,s.useId)(),d=(0,s.useCallback)(t=>{t!==e.kind&&l(function(e,t){let s="hour"in t?t.hour:9,r="minute"in t?t.minute:0;switch(e){case"hourly":return{kind:e,minute:r};case"daily":return{kind:e,hour:s,minute:r};case"weekly":return{kind:e,days:[1],hour:s,minute:r};case"monthly":return{kind:e,day:1,hour:s,minute:r};case"custom":return{kind:e,cron:"custom"===t.kind?t.cron:a(t)}}}(t,e))},[e,l]),g="custom"===e.kind&&""!==e.cron.trim()?x(e.cron.trim()):null;return(0,t.jsxs)("div",{className:"stg:space-y-2",children:[(0,t.jsx)("div",{role:"radiogroup","aria-label":"Cadence","aria-disabled":u||void 0,className:(0,r.cn)("stg:inline-flex stg:flex-wrap stg:rounded-md stg:bg-muted stg:p-0.5",u&&"stg:pointer-events-none stg:opacity-50"),children:y.map(s=>{let n=e.kind===s.kind;return(0,t.jsx)("button",{type:"button",role:"radio","aria-checked":n,tabIndex:n?0:-1,disabled:u,onClick:()=>d(s.kind),onKeyDown:t=>{if("ArrowRight"===t.key||"ArrowLeft"===t.key){t.preventDefault();let s=y.findIndex(t=>t.kind===e.kind);d(y[(s+("ArrowRight"===t.key?1:-1)+y.length)%y.length].kind)}},className:(0,r.cn)("stg:inline-flex stg:cursor-pointer stg:items-center stg:rounded-sm stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",n?"stg:bg-background stg:text-foreground stg:shadow-sm":"stg:text-muted-foreground stg:hover:text-foreground"),children:s.label},s.kind)})}),"hourly"===e.kind&&(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:text-xs stg:text-foreground",children:[(0,t.jsx)("label",{htmlFor:`${c}-minute`,children:"At minute"}),(0,t.jsx)("input",{id:`${c}-minute`,type:"number",min:0,max:59,value:e.minute,onChange:t=>l({kind:"hourly",minute:k(t.target.value,0,59,e.minute)}),disabled:u,className:v})]}),"daily"===e.kind&&(0,t.jsx)(b,{id:`${c}-time`,hour:e.hour,minute:e.minute,disabled:u,onChange:(e,t)=>l({kind:"daily",hour:e,minute:t})}),"weekly"===e.kind&&(0,t.jsxs)("div",{className:"stg:space-y-2",children:[(0,t.jsx)("div",{role:"group","aria-label":"Days of week",className:"stg:flex stg:flex-wrap stg:gap-1",children:i.map((s,i)=>{let a=e.days.includes(i),o=a&&1===e.days.length;return(0,t.jsxs)(n.Tooltip,{children:[(0,t.jsx)(n.TooltipTrigger,{render:(0,t.jsx)("span",{className:"stg:inline-flex"}),children:(0,t.jsx)("button",{type:"button","aria-pressed":a,"aria-label":s,disabled:u||o,onClick:()=>l({...e,days:a?e.days.filter(e=>e!==i):[...e.days,i].sort((e,t)=>e-t)}),className:(0,r.cn)("stg:inline-flex stg:h-7 stg:w-9 stg:items-center stg:justify-center stg:rounded-md stg:border stg:text-xs stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none",a?"stg:border-primary stg:bg-primary stg:text-primary-foreground":"stg:border-input stg:bg-background stg:text-muted-foreground stg:hover:text-foreground",o&&"stg:opacity-70"),children:s.slice(0,3)})}),(0,t.jsx)(n.TooltipContent,{side:"top",children:o?"A weekly schedule needs at least one day":s})]},s)})}),(0,t.jsx)(b,{id:`${c}-time`,hour:e.hour,minute:e.minute,disabled:u,onChange:(t,s)=>l({...e,hour:t,minute:s})})]}),"monthly"===e.kind&&(0,t.jsxs)("div",{className:"stg:space-y-2",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:text-xs stg:text-foreground",children:[(0,t.jsx)("label",{htmlFor:`${c}-day`,children:"On day"}),(0,t.jsx)("input",{id:`${c}-day`,type:"number",min:1,max:31,value:e.day,onChange:t=>l({...e,day:k(t.target.value,1,31,e.day)}),disabled:u,className:v}),(0,t.jsx)("span",{className:"stg:text-muted-foreground",children:"of every month"})]}),e.day>=29&&(0,t.jsxs)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:["Months without day ",e.day," are skipped — February never fires a day-",e.day," schedule",29===e.day?" except in leap years":"","."]}),(0,t.jsx)(b,{id:`${c}-time`,hour:e.hour,minute:e.minute,disabled:u,onChange:(t,s)=>l({...e,hour:t,minute:s})})]}),"custom"===e.kind&&(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("input",{type:"text","aria-label":"Cron expression",placeholder:"e.g. 0 9 * * MON-FRI",value:e.cron,onChange:e=>l({kind:"custom",cron:e.target.value}),disabled:u,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:font-mono stg:text-xs stg:text-foreground","stg:placeholder:font-sans stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50",g&&"stg:border-destructive")}),g?(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-destructive",role:"alert",children:g}):(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"5 fields (minute hour day-of-month month day-of-week) or @hourly, @daily, @weekly, @monthly, @yearly."})]}),!("custom"===e.kind&&(g||""===e.cron.trim()))&&(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground","data-testid":"cadence-summary",children:m(e,o)})]})}],653904);let j="stgm-timezone-list";e.s(["TimeZoneField",0,function({id:e,value:n,onChange:i,disabled:a}){let l=(0,s.useMemo)(()=>(function(){try{return Intl.supportedValuesOf("timeZone")}catch{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;return e&&"UTC"!==e?[e,"UTC"]:["UTC"]}})(),[]),[o,u]=(0,s.useState)(null),[c,d]=(0,s.useState)(-1),g=(0,s.useRef)(null),m=null!==o,h=(0,s.useMemo)(()=>{if(null===o)return[];let e=o.trim().toLowerCase().replace(/\s+/g,"_");return(e?l.filter(t=>t.toLowerCase().includes(e)):l).slice(0,100)},[l,o]),p=(0,s.useCallback)(()=>{u(null),d(-1)},[]),f=(0,s.useCallback)(e=>{i(e),p()},[i,p]),x=(0,s.useCallback)(e=>{if("Escape"===e.key){e.preventDefault(),p();return}m&&("ArrowDown"===e.key?(e.preventDefault(),d(e=>e<h.length-1?e+1:e)):"ArrowUp"===e.key?(e.preventDefault(),d(e=>e>0?e-1:-1)):"Enter"===e.key&&(e.preventDefault(),c>=0&&c<h.length?f(h[c]):1===h.length&&f(h[0])))},[m,h,c,f,p]);return(0,t.jsxs)("div",{className:"stg:relative",children:[(0,t.jsx)("input",{id:e,type:"text",role:"combobox","aria-expanded":m,"aria-controls":j,"aria-activedescendant":c>=0?`stgm-timezone-${c}`:void 0,"aria-label":"Time zone",placeholder:"Search time zones…",value:o??n,onChange:e=>{u(e.target.value),d(-1)},onFocus:()=>u(""),onBlur:p,onKeyDown:x,disabled:a,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50")}),m&&(0,t.jsx)("div",{ref:g,id:j,role:"listbox","aria-label":"Time zones",className:(0,r.cn)("stg:absolute stg:z-popover stg:mt-1 stg:max-h-52 stg:w-full stg:overflow-y-auto stg:rounded-md stg:border stg:border-border","stg:bg-popover stg:p-1 stg:text-popover-foreground stg:shadow-md"),children:0===h.length?(0,t.jsx)("div",{className:"stg:py-3 stg:text-center stg:text-xs stg:text-muted-foreground",children:"No time zones match"}):h.map((e,s)=>(0,t.jsx)("button",{id:`stgm-timezone-${s}`,type:"button",role:"option","aria-selected":e===n,onMouseDown:t=>{t.preventDefault(),f(e)},className:(0,r.cn)("stg:flex stg:w-full stg:items-center stg:rounded-sm stg:px-2 stg:py-1.5 stg:text-left stg:text-xs stg:transition-colors",s===c?"stg:bg-accent stg:text-foreground":"stg:text-popover-foreground stg:hover:bg-accent-hover",e===n&&"stg:font-medium"),children:e},e))})]})},"browserTimeZone",0,function(){return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}],540560)},774079,901501,e=>{"use strict";var t=e.i(843476),s=e.i(893976);e.s(["RedactedSecretsNotice",0,function({className:e}){return(0,t.jsxs)("p",{className:(0,s.cn)("stg:rounded-md stg:border stg:border-border stg:bg-muted stg:px-3 stg:py-2 stg:text-xs stg:text-muted-foreground",e),children:["Secret values are shown as ",(0,t.jsx)("code",{className:"stg:font-mono",children:"***REDACTED***"}),". Applying keeps the stored secrets; replace a marker to set a new value."]})}],774079),e.s(["containsRedactedSecrets",0,function(e){return e.includes("***REDACTED***")}],901501)},616629,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),n=e.i(468806),i=e.i(610595),a=e.i(846696),l=e.i(774079),o=e.i(901501),u=e.i(864652),c=e.i(590745),d=e.i(586108),g=e.i(326283);let m=(0,s.lazy)(()=>e.A(573374).then(e=>({default:e.YamlEditor})));function h({label:e="Loading editor…"}){return(0,t.jsx)("div",{className:"stg:flex stg:h-80 stg:items-center stg:justify-center stg:rounded-md stg:border stg:border-border stg:bg-muted stg:text-sm stg:text-muted-foreground",children:e})}e.s(["EditResourceYamlDialog",0,function({open:e,onOpenChange:p,resource:f,onApplied:x}){let y=function({resource:e}){let t=(0,d.useStigmer)(),r=(0,s.useMemo)(()=>e?(0,c.serializeManifest)(e):"",[e]),[n,i]=(0,s.useState)(r),[a,l]=(0,s.useState)(!1),[m,h]=(0,s.useState)(!1),[p,f]=(0,s.useState)(null),[x,y]=(0,s.useState)(null);(0,s.useEffect)(()=>{a||i(r)},[r,a]);let v=(0,s.useCallback)(e=>{i(e),l(e!==r)},[r]),b=(0,s.useCallback)(()=>{i(r),l(!1),f(null)},[r]),k=(0,s.useCallback)(()=>f(null),[]),j=(0,s.useMemo)(()=>e&&r?(0,u.parseManifest)(r)[0].handler.yamlKind:null,[e,r]),w=(0,s.useMemo)(()=>{let e;if(!n.trim())return{status:"empty"};try{e=(0,u.parseManifest)(n)}catch(e){return{status:"invalid",message:(0,g.toError)(e).message}}if(e.length>1)return{status:"invalid",message:"This editor applies a single resource. Remove the extra documents, or use Apply YAML in the Library for multi-document manifests."};let t=e[0];return null!==j&&t.handler.yamlKind!==j?{status:"invalid",message:`The document's kind changed from ${j} to ${t.handler.yamlKind}. To apply a different resource kind, use Apply YAML in the Library instead.`}:{status:"valid",document:t}},[n,j]),N=(0,s.useRef)(0);(0,s.useEffect)(()=>{if("valid"!==w.status)return void y(null);let{document:e}=w,s=++N.current;y(null);let r=setTimeout(async()=>{let r;try{let s=await t.manifest.getByReference(e.handler.yamlKind,e.org,e.slug);r=null!==s?"update":"create"}catch{r="unknown"}N.current===s&&y({action:r,slug:e.slug})},400);return()=>clearTimeout(r)},[w,t]);let C=(0,s.useCallback)(async()=>{if("valid"!==w.status)return null;h(!0),f(null);try{let e=await t.manifest.apply(w.document);return l(!1),e}catch(e){throw f((0,g.toError)(e)),e}finally{h(!1)}},[w,t]),A=(0,s.useMemo)(()=>(0,o.containsRedactedSecrets)(n),[n]);return(0,s.useMemo)(()=>({yaml:n,setYaml:v,isDirty:a,validation:w,target:x,hasRedactedSecrets:A,apply:C,isApplying:m,error:p,clearError:k,reset:b}),[n,v,a,w,x,A,C,m,p,k,b])}({resource:f}),{reset:v}=y;(0,s.useEffect)(()=>{e&&v()},[e,v]);let b=(0,s.useCallback)(async()=>{try{let e=await y.apply();if(!e)return;a.toast.success(`${e.displayName} "${e.name}" applied`),p(!1),x?.(e)}catch{}},[y,p,x]),k="valid"===y.validation.status&&y.isDirty&&!y.isApplying;return(0,t.jsx)(n.DialogShell,{open:e,onOpenChange:p,width:"3xl","aria-label":"Edit YAML",children:(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-4 stg:p-6",children:[(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1",children:[(0,t.jsx)("h3",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:"Edit YAML"}),(0,t.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground",children:"Edit the resource definition and apply. Changes are validated against the resource schema as you type."})]}),f?(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(h,{}),children:(0,t.jsx)(m,{value:y.yaml,onChange:y.setYaml,className:"stg:h-80"})}):(0,t.jsx)(h,{label:"Loading resource…"}),y.hasRedactedSecrets&&(0,t.jsx)(l.RedactedSecretsNotice,{}),"invalid"===y.validation.status&&(0,t.jsx)("div",{role:"alert",className:"stg:rounded-md stg:border stg:border-destructive stg:bg-card stg:px-3 stg:py-2.5 stg:text-sm stg:text-destructive",children:y.validation.message}),y.error&&(0,t.jsxs)("div",{role:"alert",className:"stg:flex stg:items-start stg:gap-3 stg:rounded-md stg:border stg:border-destructive stg:bg-card stg:px-3 stg:py-2.5",children:[(0,t.jsx)("p",{className:"stg:flex-1 stg:text-sm stg:text-destructive",children:(0,i.getUserMessage)(y.error)}),(0,t.jsxs)("div",{className:"stg:flex stg:shrink-0 stg:items-center stg:gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:b,disabled:"valid"!==y.validation.status||y.isApplying,className:(0,r.cn)("stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2 stg:py-1 stg:text-xs stg:font-medium stg:text-foreground","stg:hover:bg-accent stg:hover:text-accent-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Try again"}),(0,t.jsx)("button",{type:"button",onClick:y.clearError,"aria-label":"Dismiss error",className:(0,r.cn)("stg:rounded-md stg:px-2 stg:py-1 stg:text-xs stg:font-medium stg:text-muted-foreground","stg:hover:bg-accent stg:hover:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring"),children:"Dismiss"})]})]}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between stg:gap-3",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground","aria-live":"polite",children:function(e,t,s){if("valid"!==e)return"";if(!t)return"No changes yet.";if(null===s)return"Checking what applying will do…";switch(s.action){case"update":return`Applying will update ${s.slug}.`;case"create":return`Applying will create ${s.slug} — the name or slug changed.`;case"unknown":return`Applying will create or update ${s.slug}.`}}(y.validation.status,y.isDirty,y.target)}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>p(!1),disabled:y.isApplying,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:border stg:border-input stg:bg-background stg:text-foreground","stg:hover:bg-accent stg:hover:text-accent-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"}),(0,t.jsx)("button",{type:"button",onClick:b,disabled:!k,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:y.isApplying?"Applying…":"Apply changes"})]})]})]})})}],616629)},81346,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976);function n({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}function i({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"m3 8.5 3.5 3.5 6.5-8"})})}function a({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"m4 4 8 8M12 4l-8 8"})})}function l({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("rect",{x:"2",y:"2",width:"12",height:"12",rx:"1.5"}),(0,t.jsx)("circle",{cx:"5.5",cy:"5.5",r:"1"}),(0,t.jsx)("path",{d:"m14 10.5-3-3L4 14"})]})}function o(){return(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"stg:animate-spin","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M8 2a6 6 0 1 0 6 6"})})}e.s(["InlineEditImage",0,function({value:e,onSave:u,fallback:c,size:d="md",disabled:g,isSaving:m,error:h,className:p}){let[f,x]=(0,s.useState)(!1),[y,v]=(0,s.useState)(e),[b,k]=(0,s.useState)(null),j=(0,s.useRef)(null);(0,s.useEffect)(()=>{f&&(v(e),k(null),requestAnimationFrame(()=>j.current?.focus()))},[f,e]);let w=(0,s.useCallback)(async()=>{let t=y.trim();t===e?x(!1):t&&!function(e){try{return new URL(e),!0}catch{return!1}}(t)?k("Enter a valid URL"):await u(t)&&x(!1)},[y,e,u]),N=(0,s.useCallback)(()=>{x(!1),v(e),k(null)},[e]),C=(0,s.useCallback)(e=>{"Enter"===e.key?(e.preventDefault(),w()):"Escape"===e.key&&N()},[w,N]),A="sm"===d?"stg:size-6":"stg:size-8",S=b||h;return g||!f?(0,t.jsx)("div",{className:(0,r.cn)("stg:group/inline-edit stg:inline-flex",p),children:(0,t.jsxs)("button",{type:"button",onClick:()=>{g||x(!0)},disabled:g,className:(0,r.cn)("stg:relative stg:rounded-md stg:p-0.5 stg:transition-colors",!g&&"stg:hover:bg-accent-hover stg:cursor-pointer","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),"aria-label":"Change icon",children:[e?(0,t.jsx)("img",{src:e,alt:"",className:(0,r.cn)(A,"stg:shrink-0 stg:rounded stg:object-cover")}):c??(0,t.jsx)(l,{className:(0,r.cn)(A,"stg:text-muted-foreground")}),!g&&(0,t.jsx)("span",{className:"stg:absolute stg:-bottom-0.5 stg:-right-0.5 stg:flex stg:size-4 stg:items-center stg:justify-center stg:rounded-full stg:bg-muted stg:text-muted-foreground stg:opacity-0 stg:transition-opacity stg:group-hover/inline-edit:opacity-100",children:(0,t.jsx)(n,{className:"stg:size-2.5"})})]})}):(0,t.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-1",p),children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,t.jsx)("input",{ref:j,type:"url",value:y,onChange:e=>{v(e.target.value),k(null)},onKeyDown:C,disabled:m,placeholder:"https://example.com/icon.png",className:(0,r.cn)("stg:flex-1 stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-2 stg:py-1 stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring","stg:disabled:opacity-50",S&&"stg:border-destructive")}),(0,t.jsx)("button",{type:"button",onClick:w,disabled:m,"aria-label":"Save",className:(0,r.cn)("stg:inline-flex stg:size-7 stg:items-center stg:justify-center stg:rounded-md","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:m?(0,t.jsx)(o,{}):(0,t.jsx)(i,{className:"stg:size-3.5"})}),(0,t.jsx)("button",{type:"button",onClick:N,disabled:m,"aria-label":"Cancel",className:(0,r.cn)("stg:inline-flex stg:size-7 stg:items-center stg:justify-center stg:rounded-md","stg:border stg:border-border stg:bg-background stg:text-foreground stg:hover:bg-accent stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:(0,t.jsx)(a,{className:"stg:size-3.5"})}),y&&(0,t.jsx)("button",{type:"button",onClick:()=>v(""),disabled:m,"aria-label":"Clear",className:"stg:text-xs stg:text-muted-foreground stg:underline stg:decoration-muted-foreground/40 stg:underline-offset-2 stg:hover:text-foreground",children:"Clear"})]}),S&&(0,t.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:S})]})}])},789198,e=>{"use strict";var t=e.i(843476),s=e.i(271645);let r=(0,s.createContext)(null);function n(){let e=(0,s.useContext)(r);if(!e)throw Error("useFullViewportLayout must be used within <FullViewportLayoutProvider>");return e}e.s(["FullViewportLayoutProvider",0,function({children:e}){let[n,i]=(0,s.useState)(!1),a=(0,s.useCallback)(e=>{i(e)},[]),l=(0,s.useMemo)(()=>({isFullViewport:n,setFullViewport:a}),[n,a]);return(0,t.jsx)(r.Provider,{value:l,children:e})},"useFullViewportLayout",0,n,"useRequestFullViewport",0,function(e){let{setFullViewport:t}=n();(0,s.useEffect)(()=>(t(e),()=>t(!1)),[e,t])}])},175730,e=>{"use strict";var t=e.i(843476),s=e.i(893976),r=e.i(451241),n=e.i(789198),i=e.i(522016),a=e.i(310057);let l={agents:"Agents",skills:"Skills","mcp-servers":"MCP Servers",workflows:"Workflows",schedules:"Schedules"};function o(){let{currentLibraryPath:e}=(0,r.useLibraryNavigation)(),s=(0,a.useBreadcrumbLabel)(),n=e.replace(/^\/library\/?/,"").split("/").filter(Boolean);return 0===n.length?null:(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"mb-6",children:(0,t.jsxs)("ol",{className:"flex items-center gap-1.5 text-sm",children:[(0,t.jsx)("li",{children:(0,t.jsx)(i.default,{href:"/library",className:"text-muted-foreground transition-colors hover:text-foreground",children:"Library"})}),n.map((e,r)=>{let a=r===n.length-1,o=e in l;if(!a&&!o)return null;let u=a&&!o&&s?s:l[e]??e;return(0,t.jsxs)("li",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"text-muted-foreground-subtle","aria-hidden":"true",children:"/"}),a?(0,t.jsx)("span",{className:"text-foreground font-medium","aria-current":"page",children:u}):(0,t.jsx)(i.default,{href:`/library/${n.slice(0,r+1).join("/")}`,className:"text-muted-foreground transition-colors hover:text-foreground",children:u})]},e)})]})})}var u=e.i(63353),c=e.i(949037),d=e.i(697720),g=e.i(284416),m=e.i(470370);function h({children:e}){let{activeDetail:i}=(0,r.useLibraryNavigation)(),{isFullViewport:a}=(0,n.useFullViewportLayout)(),l=null!=i;return(0,t.jsxs)("div",{className:(0,s.cn)(a?"flex h-full flex-col":"mx-auto max-w-4xl px-6 py-8"),children:[!a&&(0,t.jsx)(o,{}),(0,t.jsx)("div",{"data-slot":"library-route-children",className:(0,s.cn)(l&&"hidden",a&&"flex min-h-0 flex-1 flex-col"),"aria-hidden":l,children:e}),null!=i&&(0,t.jsx)(p,{detail:i},`${i.resourceType}/${i.org}/${i.slug}`)]})}function p({detail:e}){switch(e.resourceType){case"agents":return(0,t.jsx)(u.AgentDetailPageInner,{org:e.org,slug:e.slug});case"skills":return(0,t.jsx)(c.SkillDetailPageInner,{org:e.org,slug:e.slug});case"mcp-servers":return(0,t.jsx)(d.McpServerDetailPageInner,{org:e.org,slug:e.slug});case"workflows":return(0,t.jsx)(g.WorkflowDetailPageInner,{org:e.org,slug:e.slug});case"schedules":return(0,t.jsx)(m.ScheduleDetailPageInner,{org:e.org,slug:e.slug})}}e.s(["default",0,function({children:e}){return(0,t.jsx)(r.LibraryNavigationProvider,{children:(0,t.jsx)(a.LibraryBreadcrumbProvider,{children:(0,t.jsx)(n.FullViewportLayoutProvider,{children:(0,t.jsx)(h,{children:e})})})})}],175730)},573374,e=>{e.v(e=>Promise.resolve().then(()=>e(573732)))},180067,e=>{e.v(t=>Promise.all(["static/chunks/0gepanyj709pr.js"].map(t=>e.l(t))).then(()=>t(229969)))},508951,e=>{e.v(t=>Promise.all(["static/chunks/0uz5-~rqk9vr..js"].map(t=>e.l(t))).then(()=>t(393676)))},846022,e=>{e.v(t=>Promise.all(["static/chunks/10ymqudg~95gr.js"].map(t=>e.l(t))).then(()=>t(618006)))},600124,e=>{e.v(t=>Promise.all(["static/chunks/0tj3k0t29gpn7.js"].map(t=>e.l(t))).then(()=>t(531849)))}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,373351,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),n=e.i(869803),i=e.i(348990);function a({value:e,disabled:s,resolveEnvName:i,resolveEnvDescription:l,onRemove:o,onMoveUp:c,onMoveDown:u,total:x}){return(0,t.jsx)("ol",{className:(0,r.cn)(n.UNSTYLED_LIST,"stg:space-y-1.5"),"aria-label":"Selected environments (merge order)",children:e.map((e,n)=>(0,t.jsxs)("li",{className:(0,r.cn)("stg:flex stg:items-center stg:gap-2 stg:rounded-md stg:border stg:border-border stg:px-3 stg:py-2","stg:bg-muted/30"),children:[(0,t.jsxs)("span",{className:"stg:shrink-0 stg:w-5 stg:text-xs stg:font-medium stg:text-muted-foreground stg:text-right",children:[n+1,"."]}),(0,t.jsxs)("div",{className:"stg:flex-1 stg:min-w-0",children:[(0,t.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground stg:truncate stg:block",children:i(e)}),l(e)&&(0,t.jsx)("span",{className:"stg:text-[0.65rem] stg:text-muted-foreground stg:truncate stg:block",children:l(e)})]}),!s&&(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-0.5 stg:shrink-0",children:[(0,t.jsx)(g,{direction:"up",disabled:0===n,onClick:()=>c(n),label:`Move ${i(e)} up`}),(0,t.jsx)(g,{direction:"down",disabled:n===x-1,onClick:()=>u(n),label:`Move ${i(e)} down`}),(0,t.jsx)("button",{type:"button",onClick:()=>o(n),"aria-label":`Remove ${i(e)}`,className:(0,r.cn)("stg:rounded stg:p-1 stg:text-muted-foreground","stg:hover:text-destructive stg:hover:bg-destructive/10","stg:focus:outline-none stg:focus:ring-1 stg:focus:ring-ring"),children:(0,t.jsx)(d,{})})]})]},`${e.org}-${e.slug}-${n}`))})}function g({direction:e,disabled:s,onClick:n,label:i}){return(0,t.jsx)("button",{type:"button",disabled:s,onClick:n,"aria-label":i,className:(0,r.cn)("stg:rounded stg:p-1 stg:text-muted-foreground","stg:hover:text-foreground stg:hover:bg-accent-hover","stg:focus:outline-none stg:focus:ring-1 stg:focus:ring-ring","stg:disabled:opacity-30 stg:disabled:cursor-not-allowed stg:disabled:hover:bg-transparent"),children:"up"===e?(0,t.jsx)(l,{}):(0,t.jsx)(o,{})})}function l(){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M6 2.5v7M6 2.5L3 5.5M6 2.5l3 3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function o(){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M6 9.5v-7M6 9.5L3 6.5M6 9.5l3-3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function d(){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M3 3l6 6M9 3l-6 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}e.s(["EnvironmentPicker",0,function({org:e,value:n,onChange:g,disabled:l=!1,filterEnvironment:o,className:d}){let{environments:c,isLoading:u}=(0,i.useEnvironmentList)(e),x=(0,s.useId)(),m=(0,s.useMemo)(()=>new Set(n.map(e=>e.slug)),[n]),b=(0,s.useMemo)(()=>c.filter(e=>!m.has(e.metadata?.slug??"")&&(o?.(e)??!0)),[c,m,o]),h=(0,s.useCallback)(t=>{let s=c.find(e=>e.metadata?.slug===t);s&&g([...n,{org:e,slug:s.metadata.slug}])},[c,g,e,n]),f=(0,s.useCallback)(e=>{let t=[...n];t.splice(e,1),g(t)},[g,n]),p=(0,s.useCallback)(e=>{if(0===e)return;let t=[...n];[t[e-1],t[e]]=[t[e],t[e-1]],g(t)},[g,n]),v=(0,s.useCallback)(e=>{if(e>=n.length-1)return;let t=[...n];[t[e],t[e+1]]=[t[e+1],t[e]],g(t)},[g,n]),j=(0,s.useCallback)(e=>{let t=c.find(t=>t.metadata?.slug===e.slug);return t?.metadata?.name??e.slug},[c]),k=(0,s.useCallback)(e=>{let t=c.find(t=>t.metadata?.slug===e.slug);return t?.spec?.description??""},[c]);return(0,t.jsxs)("div",{className:(0,r.cn)("stg:space-y-3",d),role:"group","aria-label":"Environment bindings",children:[n.length>0&&(0,t.jsx)(a,{value:n,disabled:l,resolveEnvName:j,resolveEnvDescription:k,onRemove:f,onMoveUp:p,onMoveDown:v,total:n.length}),n.length>1&&(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"Environments are merged in order. Later entries override earlier ones when keys conflict."}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:x,className:"stg:sr-only",children:"Add environment"}),(0,t.jsxs)("select",{id:x,disabled:l||0===b.length,value:"",onChange:e=>{e.target.value&&h(e.target.value)},className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-border stg:bg-background stg:px-3 stg:py-1.5 stg:text-sm","stg:text-foreground stg:placeholder:text-muted-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring","stg:disabled:cursor-not-allowed stg:disabled:opacity-50"),children:[(0,t.jsx)("option",{value:"",children:u?"Loading environments...":0===b.length?n.length===c.length&&c.length>0?"All environments selected":"No environments available":"+ Add environment"}),b.map(e=>(0,t.jsx)("option",{value:e.metadata?.slug,children:e.metadata?.name??e.metadata?.slug},e.metadata?.slug))]})]})]})}])},476007,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(610595),n=e.i(893976);let i={auth:"Authentication required",permission:"Access denied","not-found":"Not found",validation:"Invalid request",server:"Server error",unavailable:"Service unavailable",cancelled:"Request cancelled",unknown:"Something went wrong"};function a({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M7.13 2.5a1 1 0 0 1 1.74 0l5.5 9.5A1 1 0 0 1 13.5 13.5h-11a1 1 0 0 1-.87-1.5l5.5-9.5z"}),(0,t.jsx)("path",{d:"M8 6v3"}),(0,t.jsx)("circle",{cx:"8",cy:"11",r:"0.5",fill:"currentColor",stroke:"none"})]})}function g({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M8 1.5l5 2v4c0 3.5-2.5 5.5-5 6.5-2.5-1-5-3-5-6.5v-4l5-2z"}),(0,t.jsx)("path",{d:"M6 6.5l4 4M10 6.5l-4 4"})]})}function l({className:e}){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 6l4 4 4-4"})})}function o({className:e}){return(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M2 6.5h4v-4"}),(0,t.jsx)("path",{d:"M3.5 11.5a5.5 5.5 0 1 0 .5-6l-2 1"})]})}e.s(["ErrorMessage",0,function({error:e,title:d,retry:c,className:u}){let[x,m]=(0,s.useState)(!1);if(!e)return null;let b=(0,r.classifyError)(e),h=(0,r.getUserMessage)(e),f=(0,r.getRpcMetadata)(e),p=(0,r.isRetryableError)(e);return(0,t.jsx)("div",{role:"alert",className:(0,n.cn)("stg:bg-destructive-subtle stg:border-destructive/20 stg:text-destructive stg:rounded-lg stg:border stg:p-4",u),children:(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3",children:["auth"===b||"permission"===b?(0,t.jsx)(g,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}):(0,t.jsx)(a,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1 stg:space-y-1",children:[(0,t.jsx)("p",{className:"stg:text-sm stg:font-medium",children:d??i[b]}),(0,t.jsx)("p",{className:"stg:text-destructive-muted stg:text-sm",children:h}),f&&(0,t.jsxs)("div",{className:"stg:pt-1",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>m(e=>!e),className:"stg:text-destructive-muted stg:hover:text-destructive-muted stg:inline-flex stg:items-center stg:gap-1 stg:text-xs stg:transition-colors",children:[(0,t.jsx)(l,{className:(0,n.cn)("stg:size-3 stg:transition-transform",x&&"stg:rotate-180")}),"Technical details"]}),x&&(0,t.jsxs)("dl",{className:"stg:text-destructive-muted stg:mt-1.5 stg:space-y-0.5 stg:font-mono stg:text-xs",children:[(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)("dt",{className:"stg:shrink-0",children:"Method:"}),(0,t.jsx)("dd",{className:"stg:truncate",children:f.method})]}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)("dt",{className:"stg:shrink-0",children:"Path:"}),(0,t.jsx)("dd",{className:"stg:truncate",children:f.path})]})]})]})]}),c&&p&&(0,t.jsxs)("button",{type:"button",onClick:c,className:(0,n.cn)("stg:inline-flex stg:shrink-0 stg:items-center stg:gap-1.5 stg:rounded-md stg:border stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:border-destructive/20 stg:text-destructive stg:hover:bg-destructive-subtle","stg:transition-colors"),children:[(0,t.jsx)(o,{className:"stg:size-3"}),"Retry"]})]})})}])},310057,e=>{"use strict";var t=e.i(843476),s=e.i(271645);let r=(0,s.createContext)(null);e.s(["LibraryBreadcrumbProvider",0,function({children:e}){let[n,i]=(0,s.useState)(null),a=(0,s.useCallback)(e=>i(e),[]),g=(0,s.useMemo)(()=>({label:n,setLabel:a}),[n,a]);return(0,t.jsx)(r.Provider,{value:g,children:e})},"useBreadcrumbLabel",0,function(){return(0,s.useContext)(r)?.label??null},"useBreadcrumbOverride",0,function(){let e=(0,s.useContext)(r),t=(0,s.useCallback)(e=>{},[]);return{setLabel:e?.setLabel??t}}])},927056,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976);e.s(["Tabs",0,function({tabs:e,activeTab:n,onTabChange:i,children:a,"aria-label":g,className:l}){let o=(0,s.useId)(),d=(0,s.useRef)(new Map),c=e=>`${o}-tab-${e}`,u=e=>`${o}-panel-${e}`,x=(0,s.useCallback)(e=>{d.current.get(e)?.focus(),i(e)},[i]),m=(0,s.useCallback)(t=>{let s=e.findIndex(e=>e.id===n);if(-1===s)return;let r=null;switch(t.key){case"ArrowRight":r=(s+1)%e.length;break;case"ArrowLeft":r=(s-1+e.length)%e.length;break;case"Home":r=0;break;case"End":r=e.length-1;break;default:return}t.preventDefault(),x(e[r].id)},[e,n,x]);return(0,t.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col",l),children:[(0,t.jsx)("div",{role:"tablist","aria-label":g,onKeyDown:m,className:"stg:flex stg:border-b stg:border-border",children:e.map(e=>{let s=e.id===n;return(0,t.jsxs)("button",{ref:t=>{t?d.current.set(e.id,t):d.current.delete(e.id)},id:c(e.id),role:"tab",type:"button","aria-selected":s,"aria-controls":u(e.id),tabIndex:s?0:-1,onClick:()=>i(e.id),"data-cursor-target":`tab-${e.id}`,className:(0,r.cn)("stg:relative stg:inline-flex stg:items-center stg:gap-1.5 stg:px-3 stg:py-2 stg:text-xs stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:focus-visible:ring-offset-1",s?"stg:text-foreground":"stg:text-muted-foreground stg:hover:text-foreground"),children:[e.icon,e.label,null!=e.badge&&e.badge>0&&(0,t.jsx)("span",{"aria-hidden":"true",className:(0,r.cn)("stg:inline-flex stg:min-w-[1.25rem] stg:items-center stg:justify-center stg:rounded-full stg:px-1 stg:py-px stg:text-[10px] stg:font-medium stg:leading-none",s?"stg:bg-primary-subtle stg:text-primary":"stg:bg-muted stg:text-muted-foreground"),children:e.badge}),s&&(0,t.jsx)("span",{className:"stg:absolute stg:inset-x-0 stg:-bottom-px stg:h-0.5 stg:bg-primary","aria-hidden":"true"})]},e.id)})}),(0,t.jsx)("div",{id:u(n),role:"tabpanel","aria-labelledby":c(n),tabIndex:0,className:"stg:min-h-0 stg:flex-1 stg:pt-4 stg:focus-visible:outline-none",children:a})]})}])},266442,e=>{"use strict";var t=e.i(843476),s=e.i(893976),r=e.i(188482);let n={ready:"Ready",running:"Running",pending:"Pending",degraded:"Degraded",failed:"Failed",disabled:"Disabled",draft:"Draft"};e.s(["StatusBadge",0,function({phase:e,label:i,tooltip:a,className:g}){let l=i??n[e],o=(0,t.jsxs)("span",{className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-full stg:px-2 stg:py-0.5 stg:text-[11px] stg:font-medium stg:leading-none",function(e){switch(e){case"ready":return"stg:bg-[var(--stgm-status-ready-subtle)] stg:text-[var(--stgm-status-ready)]";case"running":return"stg:bg-[var(--stgm-status-running-subtle)] stg:text-[var(--stgm-status-running)]";case"pending":return"stg:bg-[var(--stgm-status-pending-subtle)] stg:text-[var(--stgm-status-pending)]";case"degraded":return"stg:bg-[var(--stgm-status-degraded-subtle)] stg:text-[var(--stgm-status-degraded)]";case"failed":return"stg:bg-[var(--stgm-status-failed-subtle)] stg:text-[var(--stgm-status-failed)]";case"disabled":return"stg:bg-[var(--stgm-status-disabled-subtle)] stg:text-[var(--stgm-status-disabled)]";case"draft":return"stg:bg-[var(--stgm-status-draft-subtle)] stg:text-[var(--stgm-status-draft)]"}}(e),g),children:[(0,t.jsx)("span",{className:(0,s.cn)("stg:size-1.5 stg:shrink-0 stg:rounded-full",function(e){switch(e){case"ready":return"stg:bg-[var(--stgm-status-ready)]";case"running":return"stg:bg-[var(--stgm-status-running)]";case"pending":return"stg:bg-[var(--stgm-status-pending)]";case"degraded":return"stg:bg-[var(--stgm-status-degraded)]";case"failed":return"stg:bg-[var(--stgm-status-failed)]";case"disabled":return"stg:bg-[var(--stgm-status-disabled)]";case"draft":return"stg:bg-[var(--stgm-status-draft)]"}}(e)),"aria-hidden":"true"}),l]});return a?(0,t.jsxs)(r.Tooltip,{children:[(0,t.jsx)(r.TooltipTrigger,{render:(0,t.jsx)("span",{className:"stg:inline-flex"}),children:o}),(0,t.jsx)(r.TooltipContent,{side:"top",children:a})]}):o}])},154752,e=>{"use strict";var t=e.i(271645),s=e.i(846696),r=e.i(193799);e.s(["useCopyResource",0,function(){let{copy:e}=(0,r.useCopyFeedback)(),n=(0,t.useCallback)(async(t,r)=>{await e(t)?s.toast.success(`${r} copied`):s.toast.error(`Couldn't copy ${r}`)},[e]),i=(0,t.useCallback)(e=>n(e,"ID"),[n]),a=(0,t.useCallback)(e=>n(e,"Slug"),[n]),g=(0,t.useCallback)((e,t)=>n(`${e}/${t}`,"Qualified slug"),[n]);return(0,t.useMemo)(()=>({copy:n,copyId:i,copySlug:a,copyQualifiedSlug:g}),[n,i,a,g])}])},668093,652337,e=>{"use strict";var t=e.i(843476),s=e.i(893976),r=e.i(266442),n=e.i(927056),i=e.i(271645),a=e.i(845132);function g({primaryAction:e,actions:r,className:n}){let i=null!=r&&r.length>0;return e||i?(0,t.jsxs)("div",{className:(0,s.cn)("stg:flex stg:items-center stg:gap-2",n),children:[e&&(0,t.jsxs)("button",{type:"button",onClick:e.onAction,disabled:e.disabled,className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:[e.icon,e.label]}),i&&(0,t.jsx)(l,{actions:r})]}):null}function l({actions:e}){var s;let r=(s=e,(0,i.useMemo)(()=>{let e=new Map;for(let t of s){let s=t.group??"__default",r=e.get(s);r?r.push(t):e.set(s,[t])}return Array.from(e.entries()).map(([e,t])=>({key:e,items:t}))},[s]));return(0,t.jsxs)(a.ActionMenu,{children:[(0,t.jsx)(a.ActionMenu.Trigger,{"aria-label":"More actions",children:(0,t.jsx)(o,{className:"stg:size-4"})}),(0,t.jsx)(a.ActionMenu.Content,{children:r.map((e,s)=>(0,t.jsxs)(a.ActionMenu.Group,{children:[s>0&&(0,t.jsx)(a.ActionMenu.Separator,{}),e.items.map(e=>(0,t.jsx)(a.ActionMenu.Item,{icon:e.icon,shortcut:e.shortcut,variant:e.variant,disabled:e.disabled,onSelect:e.onAction,children:e.label},e.id))]},e.key))})]})}function o({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"8",cy:"3",r:"1.25"}),(0,t.jsx)("circle",{cx:"8",cy:"8",r:"1.25"}),(0,t.jsx)("circle",{cx:"8",cy:"13",r:"1.25"})]})}function d({header:e,visibilityControl:s,metaExtra:n}){let{name:i,nameElement:a,org:g,slug:l,qualifiedSlug:o,description:x,iconUrl:m,icon:b,createdAt:h,updatedAt:f,status:p,statusLabel:v}=e,j=l&&l!==i&&!o;return(0,t.jsxs)("div",{className:"stg:flex stg:min-w-0 stg:items-start stg:gap-3",children:[m?(0,t.jsx)("img",{src:m,alt:"",className:"stg:mt-0.5 stg:size-8 stg:shrink-0 stg:rounded stg:object-cover"}):b?(0,t.jsx)("span",{className:"stg:mt-1 stg:shrink-0",children:b}):null,(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[a??(0,t.jsx)("h2",{className:"stg:truncate stg:text-lg stg:font-semibold stg:text-foreground",children:i}),j&&(0,t.jsx)("code",{className:"stg:shrink-0 stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium stg:text-muted-foreground",children:l}),p&&(0,t.jsx)(r.StatusBadge,{phase:p,label:v}),s]}),o&&(0,t.jsx)("span",{className:"stg:mt-0.5 stg:block stg:truncate stg:font-mono stg:text-xs stg:text-muted-foreground",children:o}),(0,t.jsxs)("div",{className:"stg:mt-0.5 stg:flex stg:flex-wrap stg:items-center stg:gap-x-1.5 stg:text-xs stg:text-muted-foreground",children:[g&&(0,t.jsx)("span",{children:g}),n,h&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c,{}),(0,t.jsxs)("span",{children:["Created ",u(h)]})]}),f&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c,{}),(0,t.jsxs)("span",{children:["Updated ",u(f)]})]})]}),x&&(0,t.jsx)("p",{className:"stg:mt-2 stg:text-sm stg:text-muted-foreground",children:x})]})]})}function c(){return(0,t.jsx)("span",{className:"stg:shrink-0","aria-hidden":"true",children:"·"})}function u(e){return e.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function x({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}e.s(["ResourceDetailShell",0,function({header:e,visibilityControl:r,headerMetaExtra:i,headerBanner:a,primaryAction:l,actions:o,tabs:c,activeTab:u,onTabChange:x,tabsAriaLabel:m,children:b,className:h}){let f=null!=c&&c.length>0;return(0,t.jsxs)("div",{className:(0,s.cn)("stg:flex stg:flex-col stg:gap-6",h),children:[a,(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-4",children:[(0,t.jsx)(d,{header:e,visibilityControl:r,metaExtra:i}),(0,t.jsx)(g,{primaryAction:l,actions:o,className:"stg:shrink-0"})]}),f&&u&&x?(0,t.jsx)(n.Tabs,{tabs:c,activeTab:u,onTabChange:x,"aria-label":m,children:b}):b]})}],668093),e.s(["Section",0,function({title:e,count:r,headerActions:n,onEdit:i,scrollTarget:a,children:g,className:l}){return(0,t.jsxs)("section",{className:l,"data-scroll-target":a,children:[(0,t.jsxs)("div",{className:"stg:mb-2 stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("h3",{className:"stg:text-xs stg:font-medium stg:uppercase stg:tracking-wider stg:text-muted-foreground",children:e}),null!=r&&r>0&&(0,t.jsx)("span",{className:"stg:inline-flex stg:size-5 stg:items-center stg:justify-center stg:rounded-full stg:bg-muted stg:text-[10px] stg:font-semibold stg:text-muted-foreground",children:r}),(n||i)&&(0,t.jsxs)("div",{className:"stg:ml-auto stg:flex stg:items-center stg:gap-1",children:[n,i&&(0,t.jsx)("button",{type:"button",onClick:i,"aria-label":`Edit ${e.toLowerCase()}`,className:(0,s.cn)("stg:inline-flex stg:size-6 stg:items-center stg:justify-center stg:rounded-md stg:text-muted-foreground","stg:hover:bg-accent-hover stg:hover:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:transition-colors"),children:(0,t.jsx)(x,{className:"stg:size-3.5"})})]})]}),(0,t.jsx)("div",{className:"stg:overflow-hidden stg:rounded-lg stg:border stg:border-border",children:g})]})}],652337)},261722,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976);function n({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}function i(){return(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"stg:animate-spin","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M8 2a6 6 0 1 0 6 6"})})}e.s(["InlineEditTextarea",0,function({value:e,onSave:a,placeholder:g="Click to edit",validate:l,minRows:o=3,disabled:d,isSaving:c,error:u,className:x}){let[m,b]=(0,s.useState)(!1),[h,f]=(0,s.useState)(e),[p,v]=(0,s.useState)(null),j=(0,s.useRef)(null);(0,s.useEffect)(()=>{m&&(f(e),v(null),requestAnimationFrame(()=>{let e=j.current;e&&(e.focus(),e.selectionStart=e.value.length)}))},[m,e]),(0,s.useEffect)(()=>{let e=j.current;e&&(e.style.height="auto",e.style.height=`${e.scrollHeight}px`)},[h,m]);let k=(0,s.useCallback)(async()=>{if(h===e)return void b(!1);if(l){let e=l(h);if(e)return void v(e)}await a(h)&&b(!1)},[h,e,l,a]),y=(0,s.useCallback)(()=>{b(!1),f(e),v(null)},[e]),N=(0,s.useCallback)(e=>{"Enter"===e.key&&(e.ctrlKey||e.metaKey)?(e.preventDefault(),k()):"Escape"===e.key&&y()},[k,y]),C=p||u;return d||!m?(0,t.jsx)("div",{className:(0,r.cn)("stg:group/inline-edit",x),children:(0,t.jsx)("button",{type:"button",onClick:()=>{d||b(!0)},disabled:d,className:(0,r.cn)("stg:w-full stg:rounded-md stg:px-2 stg:py-1.5 stg:text-left stg:transition-colors",!d&&"stg:hover:bg-accent-hover stg:cursor-pointer",d&&"stg:cursor-default","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-inset stg:focus-visible:ring-ring"),children:(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-2",children:[(0,t.jsx)("pre",{className:(0,r.cn)("stg:min-w-0 stg:whitespace-pre-wrap stg:break-words stg:font-mono stg:text-sm stg:text-foreground",!e&&"stg:text-muted-foreground stg:italic stg:font-sans"),children:e||g}),!d&&(0,t.jsx)(n,{className:"stg:mt-0.5 stg:size-3 stg:shrink-0 stg:text-muted-foreground stg:opacity-0 stg:transition-opacity stg:group-hover/inline-edit:opacity-100"})]})})}):(0,t.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-1.5",x),children:[(0,t.jsx)("textarea",{ref:j,value:h,onChange:e=>{f(e.target.value),v(null)},onKeyDown:N,disabled:c,placeholder:g,rows:o,className:(0,r.cn)("stg:w-full stg:resize-y stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-3 stg:py-2 stg:font-mono stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring","stg:disabled:opacity-50",C&&"stg:border-destructive")}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between",children:[(0,t.jsx)("span",{className:"stg:text-[10px] stg:text-muted-foreground",children:c?"Saving...":"Ctrl+Enter to save, Escape to cancel"}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,t.jsx)("button",{type:"button",onClick:y,disabled:c,className:(0,r.cn)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:border stg:border-border stg:bg-background stg:text-foreground stg:hover:bg-accent stg:hover:text-accent-foreground","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:"Cancel"}),(0,t.jsxs)("button",{type:"button",onClick:k,disabled:c,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[c&&(0,t.jsx)(i,{}),"Save"]})]})]}),C&&(0,t.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:C})]})}])},582321,e=>{"use strict";var t=e.i(271645),s=e.i(586108),r=e.i(326283),n=e.i(846696);function i(e){switch(e){case"agent":return"agent";case"skill":return"skill";case"mcpServer":return"MCP server";case"workflow":return"workflow";case"schedule":return"schedule"}}e.s(["useDeleteResource",0,function(e,a,g){let l=(0,s.useStigmer)(),[o,d]=(0,t.useState)(!1),[c,u]=(0,t.useState)(null),x=(0,t.useCallback)(async()=>{if(a){d(!0),u(null);try{switch(e){case"agent":await l.agent.delete(a);break;case"skill":await l.skill.delete(a);break;case"mcpServer":await l.mcpServer.delete({resourceId:a});break;case"workflow":await l.workflow.delete(a);break;case"schedule":await l.schedule.delete(a)}n.toast.success(g?`${g} deleted`:`${i(e)} deleted`)}catch(s){let t=(0,r.toError)(s);throw u(t),n.toast.error(`Failed to delete ${i(e)}`),t}finally{d(!1)}}},[l,e,a,g]);return(0,t.useMemo)(()=>({deleteResource:x,isDeleting:o,error:c}),[x,o,c])}])},267912,e=>{"use strict";var t=e.i(271645);e.s(["useDetailTabs",0,function({builtInTabs:e,additionalTabs:s,activeTab:r,onTabChange:n,defaultTab:i}){let a=void 0!==r&&void 0!==n,g=(0,t.useMemo)(()=>s&&0!==s.length?[...e,...s]:e,[e,s]),l=i??e[0]?.id??"",[o,d]=(0,t.useState)(l),c=a?r:o,u=(0,t.useCallback)(e=>{a?n(e):d(e)},[a,n]),x=g.length>1?g:void 0,m=(0,t.useMemo)(()=>{if(s)return s.find(e=>e.id===c)},[s,c]);return{effectiveTabs:x,effectiveActiveTab:c,effectiveOnTabChange:u,activeAdditionalTab:m}}])},352371,e=>{"use strict";var t=e.i(271645);e.i(222258);var s=e.i(967785),r=e.i(590745),n=e.i(846696),i=e.i(745176),a=e.i(193799),g=e.i(926059);e.s(["useExportResource",0,function({kind:e,resource:l}){let o=(0,t.useMemo)(()=>l?"Workflow"===e?(0,g.serializeWorkflowYaml)(l):(0,r.serializeManifest)(l):null,[e,l]),d=(0,t.useMemo)(()=>o?JSON.stringify((0,s.parse)(o),null,2):null,[o]),c=(0,t.useMemo)(()=>l&&(l.metadata?.slug||l.metadata?.name)||"resource",[l]),{copy:u}=(0,a.useCopyFeedback)(),x=(0,t.useCallback)(async()=>{o&&(await u(o)?n.toast.success("YAML copied to clipboard"):n.toast.error("Couldn't copy YAML"))},[u,o]),m=(0,t.useCallback)(async()=>{d&&(await u(d)?n.toast.success("JSON copied to clipboard"):n.toast.error("Couldn't copy JSON"))},[u,d]),b=(0,t.useCallback)(()=>{o&&(0,i.downloadTextFile)(o,`${c}.yaml`,"text/yaml")},[o,c]),h=(0,t.useCallback)(()=>{d&&(0,i.downloadTextFile)(d,`${c}.json`,"application/json")},[d,c]);return(0,t.useMemo)(()=>({copyYaml:x,copyJson:m,downloadYaml:b,downloadJson:h,yaml:o,json:d}),[x,m,b,h,o,d])}])},484763,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(981922),n=e.i(213149);e.s(["useManageAccess",0,function({resource:e,visibility:i,extraSection:a,label:g="Manage access"}){let[l,o]=(0,s.useState)(!1),{allowed:d}=(0,r.useCheckPermission)(e?{kind:e.kindString,id:e.id}:null,"can_view_access"),c=(0,s.useCallback)(()=>o(!0),[]);return{action:e&&d?{id:"manage-access",label:g,group:"sharing",onAction:c}:null,dialog:e?(0,t.jsx)(n.ManageAccessDialog,{open:l,onOpenChange:o,resource:e,visibility:i,extraSection:a}):null,open:c,isOpen:l}}])},52595,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976);function n({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M8 3v10M3 8h10"})})}function i({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M2 4h12M5.333 4V2.667a1.333 1.333 0 0 1 1.334-1.334h2.666a1.333 1.333 0 0 1 1.334 1.334V4M12.667 4v9.333a1.333 1.333 0 0 1-1.334 1.334H4.667a1.333 1.333 0 0 1-1.334-1.334V4"})})}function a(){return(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"stg:animate-spin","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M8 2a6 6 0 1 0 6 6"})})}e.s(["InlineEditKeyValue",0,function({value:e,onSave:g,keyLabel:l="Key",showValue:o=!1,valueLabel:d="Value",showSecretToggle:c=!1,showOptionalToggle:u=!1,showDescription:x=!1,editing:m,onEditingChange:b,disabled:h,isSaving:f,error:p,className:v}){let[j,k]=(0,s.useState)(!1),y=m??j,N=(0,s.useCallback)(e=>{k(e),b?.(e)},[b]);(0,s.useEffect)(()=>{void 0!==m&&k(m)},[m]);let[C,w]=(0,s.useState)([...e]);(0,s.useCallback)(()=>{w([...e]),N(!0)},[e,N]);let M=(0,s.useCallback)(()=>{N(!1),w([...e])},[e,N]),S=(0,s.useCallback)(async()=>{let e=C.filter(e=>e.key.trim());await g(e)&&N(!1)},[C,g,N]),L=(0,s.useCallback)((e,t)=>{w(s=>s.map((s,r)=>r===e?{...s,...t}:s))},[]),A=(0,s.useCallback)(e=>{w(t=>t.filter((t,s)=>s!==e))},[]),E=(0,s.useCallback)(()=>{w(e=>[...e,{key:"",value:"",isSecret:!1,description:""}])},[]);return h||!y?(0,t.jsx)("div",{className:(0,r.cn)("stg:flex stg:flex-col",v),children:e.length>0?(0,t.jsx)("div",{className:"stg:flex stg:flex-col stg:divide-y stg:divide-border",children:e.map(e=>(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3 stg:px-3 stg:py-2.5",children:[(0,t.jsx)("code",{className:"stg:shrink-0 stg:font-mono stg:text-sm stg:font-medium stg:text-foreground",children:e.key}),o&&(0,t.jsx)("span",{className:"stg:min-w-0 stg:break-all stg:font-mono stg:text-xs stg:text-muted-foreground",children:e.value}),c&&(0,t.jsx)("span",{className:"stg:shrink-0 stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-[10px] stg:font-medium stg:text-muted-foreground",children:e.isSecret?"secret":"config"}),u&&e.optional&&(0,t.jsx)("span",{className:"stg:shrink-0 stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-[10px] stg:font-medium stg:text-muted-foreground-subtle",children:"optional"}),e.description&&(0,t.jsx)("span",{className:"stg:text-xs stg:text-muted-foreground",children:e.description})]},e.key))}):(0,t.jsx)("p",{className:"stg:px-3 stg:py-3 stg:text-xs stg:text-muted-foreground stg:italic",children:"No entries"})}):(0,t.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-3",v),children:[C.map((e,s)=>(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-2 stg:rounded-md stg:border stg:border-border stg:bg-muted-faint stg:p-2.5",children:[(0,t.jsxs)("div",{className:"stg:flex stg:flex-1 stg:flex-col stg:gap-1.5",children:[(0,t.jsx)("input",{type:"text",value:e.key,onChange:e=>L(s,{key:e.target.value}),placeholder:l,className:(0,r.cn)("stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-2 stg:py-1 stg:font-mono stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring")}),o&&(0,t.jsx)("input",{type:"text",value:e.value,onChange:e=>L(s,{value:e.target.value}),placeholder:d,className:(0,r.cn)("stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-2 stg:py-1 stg:font-mono stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring")}),x&&(0,t.jsx)("input",{type:"text",value:e.description??"",onChange:e=>L(s,{description:e.target.value}),placeholder:"Description",className:(0,r.cn)("stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-2 stg:py-1 stg:text-xs stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring")}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-3",children:[c&&(0,t.jsxs)("label",{className:"stg:inline-flex stg:items-center stg:gap-1.5 stg:text-xs stg:text-muted-foreground stg:cursor-pointer",children:[(0,t.jsx)("input",{type:"checkbox",checked:e.isSecret??!1,onChange:e=>L(s,{isSecret:e.target.checked}),className:"stg:size-3.5 stg:rounded stg:border-border"}),"Secret"]}),u&&(0,t.jsxs)("label",{className:"stg:inline-flex stg:items-center stg:gap-1.5 stg:text-xs stg:text-muted-foreground stg:cursor-pointer",children:[(0,t.jsx)("input",{type:"checkbox",checked:e.optional??!1,onChange:e=>L(s,{optional:e.target.checked}),className:"stg:size-3.5 stg:rounded stg:border-border"}),"Optional"]})]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>A(s),"aria-label":`Remove ${e.key||"entry"}`,className:(0,r.cn)("stg:mt-1 stg:inline-flex stg:size-6 stg:items-center stg:justify-center stg:rounded-md stg:text-muted-foreground","stg:hover:bg-destructive-subtle stg:hover:text-destructive","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:(0,t.jsx)(i,{className:"stg:size-3.5"})})]},s)),(0,t.jsxs)("button",{type:"button",onClick:E,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:border stg:border-dashed stg:border-border stg:text-muted-foreground","stg:hover:border-muted-foreground stg:hover:text-foreground stg:hover:bg-muted-subtle","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:transition-colors"),children:[(0,t.jsx)(n,{className:"stg:size-3"}),"Add entry"]}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-end stg:gap-1.5",children:[(0,t.jsx)("button",{type:"button",onClick:M,disabled:f,className:(0,r.cn)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:border stg:border-border stg:bg-background stg:text-foreground stg:hover:bg-accent","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:"Cancel"}),(0,t.jsxs)("button",{type:"button",onClick:S,disabled:f,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[f&&(0,t.jsx)(a,{}),"Save changes"]})]}),p&&(0,t.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:p})]})}])},330815,e=>{"use strict";var t=e.i(843476),s=e.i(758960),r=e.i(973532),n=e.i(853793);e.s(["InstanceVisibilitySelector",0,function({visibility:e,onVisibilityChange:i,mode:a,isPending:g=!1,disabled:l=!1,className:o}){let d=(0,r.useCanSetPublicVisibility)();return(0,t.jsx)(s.VisibilitySelector,{visibility:e,options:(0,n.instanceVisibilityLevels)({canSetPublicVisibility:d.allowed}),onVisibilityChange:i,mode:a,isPending:g,disabled:l,ariaLabel:"Instance visibility",className:o})}])}]);