@stigmer/server-slim 3.17.0 → 3.18.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 (581) 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/{04hrkprhk3cjo.js → 0.cr0e7bzkpoi.js} +3 -3
  8. package/console/_next/static/chunks/0.ocu5b3uajbn.js +1 -0
  9. package/console/_next/static/chunks/{16ukgtm3fhab~.js → 06qoer~dl1svs.js} +2 -2
  10. package/console/_next/static/chunks/071fdr3kvata1.js +1 -0
  11. package/console/_next/static/chunks/{0s5t77.~jqey1.js → 0_3utrn1at0vi.js} +1 -1
  12. package/console/_next/static/chunks/0_j8~rfb.1ufy.js +1 -0
  13. package/console/_next/static/chunks/0auyo62rglco8.js +1 -0
  14. package/console/_next/static/chunks/{0xp6mamoqde.n.js → 0fgcvnc-b_oz_.js} +1 -1
  15. package/console/_next/static/chunks/0gz8yljnjzsmu.js +1 -0
  16. package/console/_next/static/chunks/{107065384mt73.js → 0hc-53ypd.8xp.js} +1 -1
  17. package/console/_next/static/chunks/0hca-f9-nua.e.js +1 -0
  18. package/console/_next/static/chunks/0j~6628v9z3k-.js +1 -0
  19. package/console/_next/static/chunks/0pxd7smgb31vs.js +1 -0
  20. package/console/_next/static/chunks/0rs1tuslqwnz3.js +1 -0
  21. package/console/_next/static/chunks/0s6bm1sujua~8.css +1 -0
  22. package/console/_next/static/chunks/0xq42ojv80jqz.js +1 -0
  23. package/console/_next/static/chunks/{0dmmn-x2crcuv.js → 0xs_3fux3hsk3.js} +2 -2
  24. package/console/_next/static/chunks/{127-4s-8utcan.js → 0yheev3nzjrip.js} +1 -1
  25. package/console/_next/static/chunks/0yuo~koxf.2fn.js +1 -0
  26. package/console/_next/static/chunks/0zzf3a9srn32x.js +1 -0
  27. package/console/_next/static/chunks/110bry9pdkk8s.js +5 -0
  28. package/console/_next/static/chunks/17pusweun3t84.js +1 -0
  29. package/console/_not-found/__next._full.txt +16 -16
  30. package/console/_not-found/__next._head.txt +4 -4
  31. package/console/_not-found/__next._index.txt +10 -10
  32. package/console/_not-found/__next._not-found.__PAGE__.txt +3 -3
  33. package/console/_not-found/__next._not-found.txt +3 -3
  34. package/console/_not-found/__next._tree.txt +2 -2
  35. package/console/_not-found.html +1 -1
  36. package/console/_not-found.txt +16 -16
  37. package/console/auth/callback/__next._full.txt +18 -18
  38. package/console/auth/callback/__next._head.txt +4 -4
  39. package/console/auth/callback/__next._index.txt +10 -10
  40. package/console/auth/callback/__next._tree.txt +2 -2
  41. package/console/auth/callback/__next.auth.callback.__PAGE__.txt +4 -4
  42. package/console/auth/callback/__next.auth.callback.txt +3 -3
  43. package/console/auth/callback/__next.auth.txt +3 -3
  44. package/console/auth/callback.html +1 -1
  45. package/console/auth/callback.txt +18 -18
  46. package/console/auth/github/callback/__next._full.txt +18 -18
  47. package/console/auth/github/callback/__next._head.txt +4 -4
  48. package/console/auth/github/callback/__next._index.txt +10 -10
  49. package/console/auth/github/callback/__next._tree.txt +2 -2
  50. package/console/auth/github/callback/__next.auth.github.callback.__PAGE__.txt +4 -4
  51. package/console/auth/github/callback/__next.auth.github.callback.txt +3 -3
  52. package/console/auth/github/callback/__next.auth.github.txt +3 -3
  53. package/console/auth/github/callback/__next.auth.txt +3 -3
  54. package/console/auth/github/callback.html +1 -1
  55. package/console/auth/github/callback.txt +18 -18
  56. package/console/auth/oauth/callback/__next._full.txt +18 -18
  57. package/console/auth/oauth/callback/__next._head.txt +4 -4
  58. package/console/auth/oauth/callback/__next._index.txt +10 -10
  59. package/console/auth/oauth/callback/__next._tree.txt +2 -2
  60. package/console/auth/oauth/callback/__next.auth.oauth.callback.__PAGE__.txt +4 -4
  61. package/console/auth/oauth/callback/__next.auth.oauth.callback.txt +3 -3
  62. package/console/auth/oauth/callback/__next.auth.oauth.txt +3 -3
  63. package/console/auth/oauth/callback/__next.auth.txt +3 -3
  64. package/console/auth/oauth/callback.html +1 -1
  65. package/console/auth/oauth/callback.txt +18 -18
  66. package/console/chat/__placeholder__/__placeholder__/__next._full.txt +17 -17
  67. package/console/chat/__placeholder__/__placeholder__/__next._head.txt +4 -4
  68. package/console/chat/__placeholder__/__placeholder__/__next._index.txt +10 -10
  69. package/console/chat/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  70. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.__PAGE__.txt +3 -3
  71. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.txt +3 -3
  72. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.txt +3 -3
  73. package/console/chat/__placeholder__/__placeholder__/__next.chat.txt +3 -3
  74. package/console/chat/__placeholder__/__placeholder__.html +1 -1
  75. package/console/chat/__placeholder__/__placeholder__.txt +17 -17
  76. package/console/conversations/__next._full.txt +17 -17
  77. package/console/conversations/__next._head.txt +4 -4
  78. package/console/conversations/__next._index.txt +10 -10
  79. package/console/conversations/__next._tree.txt +2 -2
  80. package/console/conversations/__next.conversations.__PAGE__.txt +3 -3
  81. package/console/conversations/__next.conversations.txt +3 -3
  82. package/console/conversations/__placeholder__/__placeholder__/__next._full.txt +17 -17
  83. package/console/conversations/__placeholder__/__placeholder__/__next._head.txt +4 -4
  84. package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +10 -10
  85. package/console/conversations/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  86. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.__PAGE__.txt +3 -3
  87. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.txt +3 -3
  88. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.txt +3 -3
  89. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.txt +3 -3
  90. package/console/conversations/__placeholder__/__placeholder__.html +1 -1
  91. package/console/conversations/__placeholder__/__placeholder__.txt +17 -17
  92. package/console/conversations.html +1 -1
  93. package/console/conversations.txt +17 -17
  94. package/console/dashboard/__next._full.txt +17 -17
  95. package/console/dashboard/__next._head.txt +4 -4
  96. package/console/dashboard/__next._index.txt +10 -10
  97. package/console/dashboard/__next._tree.txt +2 -2
  98. package/console/dashboard/__next.dashboard.__PAGE__.txt +3 -3
  99. package/console/dashboard/__next.dashboard.txt +3 -3
  100. package/console/dashboard.html +1 -1
  101. package/console/dashboard.txt +17 -17
  102. package/console/executions/__placeholder__/__next._full.txt +16 -16
  103. package/console/executions/__placeholder__/__next._head.txt +4 -4
  104. package/console/executions/__placeholder__/__next._index.txt +10 -10
  105. package/console/executions/__placeholder__/__next._tree.txt +2 -2
  106. package/console/executions/__placeholder__/__next.executions.$d$id.__PAGE__.txt +2 -2
  107. package/console/executions/__placeholder__/__next.executions.$d$id.txt +3 -3
  108. package/console/executions/__placeholder__/__next.executions.txt +3 -3
  109. package/console/executions/__placeholder__.html +1 -1
  110. package/console/executions/__placeholder__.txt +16 -16
  111. package/console/index.html +1 -1
  112. package/console/index.txt +16 -16
  113. package/console/invite/__placeholder__/__next._full.txt +17 -17
  114. package/console/invite/__placeholder__/__next._head.txt +4 -4
  115. package/console/invite/__placeholder__/__next._index.txt +10 -10
  116. package/console/invite/__placeholder__/__next._tree.txt +2 -2
  117. package/console/invite/__placeholder__/__next.invite.$d$token.__PAGE__.txt +3 -3
  118. package/console/invite/__placeholder__/__next.invite.$d$token.txt +3 -3
  119. package/console/invite/__placeholder__/__next.invite.txt +3 -3
  120. package/console/invite/__placeholder__.html +1 -1
  121. package/console/invite/__placeholder__.txt +17 -17
  122. package/console/library/__next._full.txt +21 -21
  123. package/console/library/__next._head.txt +4 -4
  124. package/console/library/__next._index.txt +10 -10
  125. package/console/library/__next._tree.txt +2 -2
  126. package/console/library/__next.library.__PAGE__.txt +3 -3
  127. package/console/library/__next.library.txt +5 -5
  128. package/console/library/agents/__next._full.txt +21 -21
  129. package/console/library/agents/__next._head.txt +4 -4
  130. package/console/library/agents/__next._index.txt +10 -10
  131. package/console/library/agents/__next._tree.txt +2 -2
  132. package/console/library/agents/__next.library.agents.__PAGE__.txt +3 -3
  133. package/console/library/agents/__next.library.agents.txt +3 -3
  134. package/console/library/agents/__next.library.txt +5 -5
  135. package/console/library/agents/__placeholder__/__placeholder__/__next._full.txt +20 -20
  136. package/console/library/agents/__placeholder__/__placeholder__/__next._head.txt +4 -4
  137. package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +10 -10
  138. package/console/library/agents/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  139. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.__PAGE__.txt +3 -3
  140. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.txt +3 -3
  141. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.txt +3 -3
  142. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.txt +3 -3
  143. package/console/library/agents/__placeholder__/__placeholder__/__next.library.txt +5 -5
  144. package/console/library/agents/__placeholder__/__placeholder__.html +1 -1
  145. package/console/library/agents/__placeholder__/__placeholder__.txt +20 -20
  146. package/console/library/agents/new/__next._full.txt +21 -21
  147. package/console/library/agents/new/__next._head.txt +4 -4
  148. package/console/library/agents/new/__next._index.txt +10 -10
  149. package/console/library/agents/new/__next._tree.txt +2 -2
  150. package/console/library/agents/new/__next.library.agents.new.__PAGE__.txt +4 -4
  151. package/console/library/agents/new/__next.library.agents.new.txt +3 -3
  152. package/console/library/agents/new/__next.library.agents.txt +3 -3
  153. package/console/library/agents/new/__next.library.txt +5 -5
  154. package/console/library/agents/new.html +1 -1
  155. package/console/library/agents/new.txt +21 -21
  156. package/console/library/agents.html +1 -1
  157. package/console/library/agents.txt +21 -21
  158. package/console/library/mcp-servers/__next._full.txt +21 -21
  159. package/console/library/mcp-servers/__next._head.txt +4 -4
  160. package/console/library/mcp-servers/__next._index.txt +10 -10
  161. package/console/library/mcp-servers/__next._tree.txt +2 -2
  162. package/console/library/mcp-servers/__next.library.mcp-servers.__PAGE__.txt +3 -3
  163. package/console/library/mcp-servers/__next.library.mcp-servers.txt +3 -3
  164. package/console/library/mcp-servers/__next.library.txt +5 -5
  165. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._full.txt +20 -20
  166. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._head.txt +4 -4
  167. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._index.txt +10 -10
  168. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  169. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.__PAGE__.txt +3 -3
  170. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.txt +3 -3
  171. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.txt +3 -3
  172. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.txt +3 -3
  173. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.txt +5 -5
  174. package/console/library/mcp-servers/__placeholder__/__placeholder__.html +1 -1
  175. package/console/library/mcp-servers/__placeholder__/__placeholder__.txt +20 -20
  176. package/console/library/mcp-servers/new/__next._full.txt +21 -21
  177. package/console/library/mcp-servers/new/__next._head.txt +4 -4
  178. package/console/library/mcp-servers/new/__next._index.txt +10 -10
  179. package/console/library/mcp-servers/new/__next._tree.txt +2 -2
  180. package/console/library/mcp-servers/new/__next.library.mcp-servers.new.__PAGE__.txt +4 -4
  181. package/console/library/mcp-servers/new/__next.library.mcp-servers.new.txt +3 -3
  182. package/console/library/mcp-servers/new/__next.library.mcp-servers.txt +3 -3
  183. package/console/library/mcp-servers/new/__next.library.txt +5 -5
  184. package/console/library/mcp-servers/new.html +1 -1
  185. package/console/library/mcp-servers/new.txt +21 -21
  186. package/console/library/mcp-servers.html +1 -1
  187. package/console/library/mcp-servers.txt +21 -21
  188. package/console/library/plugins/__next._full.txt +21 -21
  189. package/console/library/plugins/__next._head.txt +4 -4
  190. package/console/library/plugins/__next._index.txt +10 -10
  191. package/console/library/plugins/__next._tree.txt +2 -2
  192. package/console/library/plugins/__next.library.plugins.__PAGE__.txt +3 -3
  193. package/console/library/plugins/__next.library.plugins.txt +3 -3
  194. package/console/library/plugins/__next.library.txt +5 -5
  195. package/console/library/plugins/__placeholder__/__placeholder__/__next._full.txt +20 -20
  196. package/console/library/plugins/__placeholder__/__placeholder__/__next._head.txt +4 -4
  197. package/console/library/plugins/__placeholder__/__placeholder__/__next._index.txt +10 -10
  198. package/console/library/plugins/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  199. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.__PAGE__.txt +3 -3
  200. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.txt +3 -3
  201. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.txt +3 -3
  202. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.txt +3 -3
  203. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.txt +5 -5
  204. package/console/library/plugins/__placeholder__/__placeholder__.html +1 -1
  205. package/console/library/plugins/__placeholder__/__placeholder__.txt +20 -20
  206. package/console/library/plugins/upload/__next._full.txt +41 -0
  207. package/console/library/plugins/upload/__next._head.txt +6 -0
  208. package/console/library/plugins/upload/__next._index.txt +17 -0
  209. package/console/library/plugins/{install → upload}/__next._tree.txt +2 -2
  210. package/console/library/plugins/upload/__next.library.plugins.txt +5 -0
  211. package/console/library/plugins/upload/__next.library.plugins.upload.__PAGE__.txt +9 -0
  212. package/console/library/plugins/upload/__next.library.plugins.upload.txt +5 -0
  213. package/console/library/plugins/upload/__next.library.txt +7 -0
  214. package/console/library/plugins/upload.html +1 -0
  215. package/console/library/plugins/upload.txt +41 -0
  216. package/console/library/plugins.html +1 -1
  217. package/console/library/plugins.txt +21 -21
  218. package/console/library/schedules/__next._full.txt +20 -20
  219. package/console/library/schedules/__next._head.txt +4 -4
  220. package/console/library/schedules/__next._index.txt +10 -10
  221. package/console/library/schedules/__next._tree.txt +2 -2
  222. package/console/library/schedules/__next.library.schedules.__PAGE__.txt +3 -3
  223. package/console/library/schedules/__next.library.schedules.txt +3 -3
  224. package/console/library/schedules/__next.library.txt +5 -5
  225. package/console/library/schedules/__placeholder__/__placeholder__/__next._full.txt +20 -20
  226. package/console/library/schedules/__placeholder__/__placeholder__/__next._head.txt +4 -4
  227. package/console/library/schedules/__placeholder__/__placeholder__/__next._index.txt +10 -10
  228. package/console/library/schedules/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  229. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.__PAGE__.txt +3 -3
  230. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.txt +3 -3
  231. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.txt +3 -3
  232. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.txt +3 -3
  233. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.txt +5 -5
  234. package/console/library/schedules/__placeholder__/__placeholder__.html +1 -1
  235. package/console/library/schedules/__placeholder__/__placeholder__.txt +20 -20
  236. package/console/library/schedules/new/__next._full.txt +21 -21
  237. package/console/library/schedules/new/__next._head.txt +4 -4
  238. package/console/library/schedules/new/__next._index.txt +10 -10
  239. package/console/library/schedules/new/__next._tree.txt +2 -2
  240. package/console/library/schedules/new/__next.library.schedules.new.__PAGE__.txt +4 -4
  241. package/console/library/schedules/new/__next.library.schedules.new.txt +3 -3
  242. package/console/library/schedules/new/__next.library.schedules.txt +3 -3
  243. package/console/library/schedules/new/__next.library.txt +5 -5
  244. package/console/library/schedules/new.html +1 -1
  245. package/console/library/schedules/new.txt +21 -21
  246. package/console/library/schedules.html +1 -1
  247. package/console/library/schedules.txt +20 -20
  248. package/console/library/skills/__next._full.txt +20 -20
  249. package/console/library/skills/__next._head.txt +4 -4
  250. package/console/library/skills/__next._index.txt +10 -10
  251. package/console/library/skills/__next._tree.txt +2 -2
  252. package/console/library/skills/__next.library.skills.__PAGE__.txt +3 -3
  253. package/console/library/skills/__next.library.skills.txt +3 -3
  254. package/console/library/skills/__next.library.txt +5 -5
  255. package/console/library/skills/__placeholder__/__placeholder__/__next._full.txt +20 -20
  256. package/console/library/skills/__placeholder__/__placeholder__/__next._head.txt +4 -4
  257. package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +10 -10
  258. package/console/library/skills/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  259. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.__PAGE__.txt +3 -3
  260. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.txt +3 -3
  261. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.txt +3 -3
  262. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.txt +3 -3
  263. package/console/library/skills/__placeholder__/__placeholder__/__next.library.txt +5 -5
  264. package/console/library/skills/__placeholder__/__placeholder__.html +1 -1
  265. package/console/library/skills/__placeholder__/__placeholder__.txt +20 -20
  266. package/console/library/skills/new/__next._full.txt +22 -22
  267. package/console/library/skills/new/__next._head.txt +4 -4
  268. package/console/library/skills/new/__next._index.txt +10 -10
  269. package/console/library/skills/new/__next._tree.txt +2 -2
  270. package/console/library/skills/new/__next.library.skills.new.__PAGE__.txt +4 -4
  271. package/console/library/skills/new/__next.library.skills.new.txt +3 -3
  272. package/console/library/skills/new/__next.library.skills.txt +3 -3
  273. package/console/library/skills/new/__next.library.txt +5 -5
  274. package/console/library/skills/new.html +1 -1
  275. package/console/library/skills/new.txt +22 -22
  276. package/console/library/skills.html +1 -1
  277. package/console/library/skills.txt +20 -20
  278. package/console/library/workflows/__next._full.txt +21 -21
  279. package/console/library/workflows/__next._head.txt +4 -4
  280. package/console/library/workflows/__next._index.txt +10 -10
  281. package/console/library/workflows/__next._tree.txt +2 -2
  282. package/console/library/workflows/__next.library.txt +5 -5
  283. package/console/library/workflows/__next.library.workflows.__PAGE__.txt +3 -3
  284. package/console/library/workflows/__next.library.workflows.txt +3 -3
  285. package/console/library/workflows/__placeholder__/__placeholder__/__next._full.txt +20 -20
  286. package/console/library/workflows/__placeholder__/__placeholder__/__next._head.txt +4 -4
  287. package/console/library/workflows/__placeholder__/__placeholder__/__next._index.txt +10 -10
  288. package/console/library/workflows/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  289. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.txt +5 -5
  290. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.__PAGE__.txt +3 -3
  291. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.txt +3 -3
  292. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.txt +3 -3
  293. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.txt +3 -3
  294. package/console/library/workflows/__placeholder__/__placeholder__.html +1 -1
  295. package/console/library/workflows/__placeholder__/__placeholder__.txt +20 -20
  296. package/console/library/workflows/executions/__next._full.txt +20 -20
  297. package/console/library/workflows/executions/__next._head.txt +4 -4
  298. package/console/library/workflows/executions/__next._index.txt +10 -10
  299. package/console/library/workflows/executions/__next._tree.txt +2 -2
  300. package/console/library/workflows/executions/__next.library.txt +5 -5
  301. package/console/library/workflows/executions/__next.library.workflows.executions.__PAGE__.txt +3 -3
  302. package/console/library/workflows/executions/__next.library.workflows.executions.txt +3 -3
  303. package/console/library/workflows/executions/__next.library.workflows.txt +3 -3
  304. package/console/library/workflows/executions.html +1 -1
  305. package/console/library/workflows/executions.txt +20 -20
  306. package/console/library/workflows/new/__next._full.txt +22 -22
  307. package/console/library/workflows/new/__next._head.txt +4 -4
  308. package/console/library/workflows/new/__next._index.txt +10 -10
  309. package/console/library/workflows/new/__next._tree.txt +2 -2
  310. package/console/library/workflows/new/__next.library.txt +5 -5
  311. package/console/library/workflows/new/__next.library.workflows.new.__PAGE__.txt +4 -4
  312. package/console/library/workflows/new/__next.library.workflows.new.txt +3 -3
  313. package/console/library/workflows/new/__next.library.workflows.txt +3 -3
  314. package/console/library/workflows/new.html +1 -1
  315. package/console/library/workflows/new.txt +22 -22
  316. package/console/library/workflows.html +1 -1
  317. package/console/library/workflows.txt +21 -21
  318. package/console/library.html +1 -1
  319. package/console/library.txt +21 -21
  320. package/console/login/__next._full.txt +18 -18
  321. package/console/login/__next._head.txt +4 -4
  322. package/console/login/__next._index.txt +10 -10
  323. package/console/login/__next._tree.txt +2 -2
  324. package/console/login/__next.login.__PAGE__.txt +4 -4
  325. package/console/login/__next.login.txt +3 -3
  326. package/console/login.html +1 -1
  327. package/console/login.txt +18 -18
  328. package/console/marketplace/__next._full.txt +32 -0
  329. package/console/marketplace/__next._head.txt +6 -0
  330. package/console/marketplace/__next._index.txt +17 -0
  331. package/console/marketplace/__next._tree.txt +5 -0
  332. package/console/marketplace/__next.marketplace.__PAGE__.txt +6 -0
  333. package/console/marketplace/__next.marketplace.txt +5 -0
  334. package/console/marketplace.html +1 -0
  335. package/console/marketplace.txt +32 -0
  336. package/console/oauth/slack/callback/__next._full.txt +18 -18
  337. package/console/oauth/slack/callback/__next._head.txt +4 -4
  338. package/console/oauth/slack/callback/__next._index.txt +10 -10
  339. package/console/oauth/slack/callback/__next._tree.txt +2 -2
  340. package/console/oauth/slack/callback/__next.oauth.slack.callback.__PAGE__.txt +4 -4
  341. package/console/oauth/slack/callback/__next.oauth.slack.callback.txt +3 -3
  342. package/console/oauth/slack/callback/__next.oauth.slack.txt +3 -3
  343. package/console/oauth/slack/callback/__next.oauth.txt +3 -3
  344. package/console/oauth/slack/callback.html +1 -1
  345. package/console/oauth/slack/callback.txt +18 -18
  346. package/console/sessions/__placeholder__/__next._full.txt +16 -16
  347. package/console/sessions/__placeholder__/__next._head.txt +4 -4
  348. package/console/sessions/__placeholder__/__next._index.txt +10 -10
  349. package/console/sessions/__placeholder__/__next._tree.txt +2 -2
  350. package/console/sessions/__placeholder__/__next.sessions.$d$id.__PAGE__.txt +2 -2
  351. package/console/sessions/__placeholder__/__next.sessions.$d$id.txt +3 -3
  352. package/console/sessions/__placeholder__/__next.sessions.txt +3 -3
  353. package/console/sessions/__placeholder__.html +1 -1
  354. package/console/sessions/__placeholder__.txt +16 -16
  355. package/console/settings/__next._full.txt +20 -20
  356. package/console/settings/__next._head.txt +4 -4
  357. package/console/settings/__next._index.txt +10 -10
  358. package/console/settings/__next._tree.txt +2 -2
  359. package/console/settings/__next.settings.__PAGE__.txt +4 -4
  360. package/console/settings/__next.settings.txt +5 -5
  361. package/console/settings/account-preferences/__next._full.txt +19 -19
  362. package/console/settings/account-preferences/__next._head.txt +4 -4
  363. package/console/settings/account-preferences/__next._index.txt +10 -10
  364. package/console/settings/account-preferences/__next._tree.txt +2 -2
  365. package/console/settings/account-preferences/__next.settings.account-preferences.__PAGE__.txt +3 -3
  366. package/console/settings/account-preferences/__next.settings.account-preferences.txt +3 -3
  367. package/console/settings/account-preferences/__next.settings.txt +5 -5
  368. package/console/settings/account-preferences.html +1 -1
  369. package/console/settings/account-preferences.txt +19 -19
  370. package/console/settings/api-keys/__next._full.txt +19 -19
  371. package/console/settings/api-keys/__next._head.txt +4 -4
  372. package/console/settings/api-keys/__next._index.txt +10 -10
  373. package/console/settings/api-keys/__next._tree.txt +2 -2
  374. package/console/settings/api-keys/__next.settings.api-keys.__PAGE__.txt +3 -3
  375. package/console/settings/api-keys/__next.settings.api-keys.txt +3 -3
  376. package/console/settings/api-keys/__next.settings.txt +5 -5
  377. package/console/settings/api-keys.html +1 -1
  378. package/console/settings/api-keys.txt +19 -19
  379. package/console/settings/billing/__next._full.txt +20 -20
  380. package/console/settings/billing/__next._head.txt +4 -4
  381. package/console/settings/billing/__next._index.txt +10 -10
  382. package/console/settings/billing/__next._tree.txt +2 -2
  383. package/console/settings/billing/__next.settings.billing.__PAGE__.txt +4 -4
  384. package/console/settings/billing/__next.settings.billing.txt +3 -3
  385. package/console/settings/billing/__next.settings.txt +5 -5
  386. package/console/settings/billing.html +1 -1
  387. package/console/settings/billing.txt +20 -20
  388. package/console/settings/channel-apps/__next._full.txt +19 -19
  389. package/console/settings/channel-apps/__next._head.txt +4 -4
  390. package/console/settings/channel-apps/__next._index.txt +10 -10
  391. package/console/settings/channel-apps/__next._tree.txt +2 -2
  392. package/console/settings/channel-apps/__next.settings.channel-apps.__PAGE__.txt +3 -3
  393. package/console/settings/channel-apps/__next.settings.channel-apps.txt +3 -3
  394. package/console/settings/channel-apps/__next.settings.txt +5 -5
  395. package/console/settings/channel-apps.html +1 -1
  396. package/console/settings/channel-apps.txt +19 -19
  397. package/console/settings/cursor-accounts/__next._full.txt +20 -20
  398. package/console/settings/cursor-accounts/__next._head.txt +4 -4
  399. package/console/settings/cursor-accounts/__next._index.txt +10 -10
  400. package/console/settings/cursor-accounts/__next._tree.txt +2 -2
  401. package/console/settings/cursor-accounts/__next.settings.cursor-accounts.__PAGE__.txt +4 -4
  402. package/console/settings/cursor-accounts/__next.settings.cursor-accounts.txt +3 -3
  403. package/console/settings/cursor-accounts/__next.settings.txt +5 -5
  404. package/console/settings/cursor-accounts.html +1 -1
  405. package/console/settings/cursor-accounts.txt +20 -20
  406. package/console/settings/environments/__next._full.txt +19 -19
  407. package/console/settings/environments/__next._head.txt +4 -4
  408. package/console/settings/environments/__next._index.txt +10 -10
  409. package/console/settings/environments/__next._tree.txt +2 -2
  410. package/console/settings/environments/__next.settings.environments.__PAGE__.txt +3 -3
  411. package/console/settings/environments/__next.settings.environments.txt +3 -3
  412. package/console/settings/environments/__next.settings.txt +5 -5
  413. package/console/settings/environments.html +1 -1
  414. package/console/settings/environments.txt +19 -19
  415. package/console/settings/identity-providers/__next._full.txt +19 -19
  416. package/console/settings/identity-providers/__next._head.txt +4 -4
  417. package/console/settings/identity-providers/__next._index.txt +10 -10
  418. package/console/settings/identity-providers/__next._tree.txt +2 -2
  419. package/console/settings/identity-providers/__next.settings.identity-providers.__PAGE__.txt +3 -3
  420. package/console/settings/identity-providers/__next.settings.identity-providers.txt +3 -3
  421. package/console/settings/identity-providers/__next.settings.txt +5 -5
  422. package/console/settings/identity-providers.html +1 -1
  423. package/console/settings/identity-providers.txt +19 -19
  424. package/console/settings/invitations/__next._full.txt +19 -19
  425. package/console/settings/invitations/__next._head.txt +4 -4
  426. package/console/settings/invitations/__next._index.txt +10 -10
  427. package/console/settings/invitations/__next._tree.txt +2 -2
  428. package/console/settings/invitations/__next.settings.invitations.__PAGE__.txt +3 -3
  429. package/console/settings/invitations/__next.settings.invitations.txt +3 -3
  430. package/console/settings/invitations/__next.settings.txt +5 -5
  431. package/console/settings/invitations.html +1 -1
  432. package/console/settings/invitations.txt +19 -19
  433. package/console/settings/members/__next._full.txt +19 -19
  434. package/console/settings/members/__next._head.txt +4 -4
  435. package/console/settings/members/__next._index.txt +10 -10
  436. package/console/settings/members/__next._tree.txt +2 -2
  437. package/console/settings/members/__next.settings.members.__PAGE__.txt +3 -3
  438. package/console/settings/members/__next.settings.members.txt +3 -3
  439. package/console/settings/members/__next.settings.txt +5 -5
  440. package/console/settings/members.html +1 -1
  441. package/console/settings/members.txt +19 -19
  442. package/console/settings/memory/__next._full.txt +19 -19
  443. package/console/settings/memory/__next._head.txt +4 -4
  444. package/console/settings/memory/__next._index.txt +10 -10
  445. package/console/settings/memory/__next._tree.txt +2 -2
  446. package/console/settings/memory/__next.settings.memory.__PAGE__.txt +3 -3
  447. package/console/settings/memory/__next.settings.memory.txt +3 -3
  448. package/console/settings/memory/__next.settings.txt +5 -5
  449. package/console/settings/memory.html +1 -1
  450. package/console/settings/memory.txt +19 -19
  451. package/console/settings/oauth-apps/__next._full.txt +19 -19
  452. package/console/settings/oauth-apps/__next._head.txt +4 -4
  453. package/console/settings/oauth-apps/__next._index.txt +10 -10
  454. package/console/settings/oauth-apps/__next._tree.txt +2 -2
  455. package/console/settings/oauth-apps/__next.settings.oauth-apps.__PAGE__.txt +3 -3
  456. package/console/settings/oauth-apps/__next.settings.oauth-apps.txt +3 -3
  457. package/console/settings/oauth-apps/__next.settings.txt +5 -5
  458. package/console/settings/oauth-apps.html +1 -1
  459. package/console/settings/oauth-apps.txt +19 -19
  460. package/console/settings/org-preferences/__next._full.txt +19 -19
  461. package/console/settings/org-preferences/__next._head.txt +4 -4
  462. package/console/settings/org-preferences/__next._index.txt +10 -10
  463. package/console/settings/org-preferences/__next._tree.txt +2 -2
  464. package/console/settings/org-preferences/__next.settings.org-preferences.__PAGE__.txt +3 -3
  465. package/console/settings/org-preferences/__next.settings.org-preferences.txt +3 -3
  466. package/console/settings/org-preferences/__next.settings.txt +5 -5
  467. package/console/settings/org-preferences.html +1 -1
  468. package/console/settings/org-preferences.txt +19 -19
  469. package/console/settings/org-profile/__next._full.txt +19 -19
  470. package/console/settings/org-profile/__next._head.txt +4 -4
  471. package/console/settings/org-profile/__next._index.txt +10 -10
  472. package/console/settings/org-profile/__next._tree.txt +2 -2
  473. package/console/settings/org-profile/__next.settings.org-profile.__PAGE__.txt +3 -3
  474. package/console/settings/org-profile/__next.settings.org-profile.txt +3 -3
  475. package/console/settings/org-profile/__next.settings.txt +5 -5
  476. package/console/settings/org-profile.html +1 -1
  477. package/console/settings/org-profile.txt +19 -19
  478. package/console/settings/platform-clients/__next._full.txt +19 -19
  479. package/console/settings/platform-clients/__next._head.txt +4 -4
  480. package/console/settings/platform-clients/__next._index.txt +10 -10
  481. package/console/settings/platform-clients/__next._tree.txt +2 -2
  482. package/console/settings/platform-clients/__next.settings.platform-clients.__PAGE__.txt +3 -3
  483. package/console/settings/platform-clients/__next.settings.platform-clients.txt +3 -3
  484. package/console/settings/platform-clients/__next.settings.txt +5 -5
  485. package/console/settings/platform-clients.html +1 -1
  486. package/console/settings/platform-clients.txt +19 -19
  487. package/console/settings/pricing-governance/__next._full.txt +20 -20
  488. package/console/settings/pricing-governance/__next._head.txt +4 -4
  489. package/console/settings/pricing-governance/__next._index.txt +10 -10
  490. package/console/settings/pricing-governance/__next._tree.txt +2 -2
  491. package/console/settings/pricing-governance/__next.settings.pricing-governance.__PAGE__.txt +4 -4
  492. package/console/settings/pricing-governance/__next.settings.pricing-governance.txt +3 -3
  493. package/console/settings/pricing-governance/__next.settings.txt +5 -5
  494. package/console/settings/pricing-governance.html +1 -1
  495. package/console/settings/pricing-governance.txt +20 -20
  496. package/console/settings/provider-standing/__next._full.txt +20 -20
  497. package/console/settings/provider-standing/__next._head.txt +4 -4
  498. package/console/settings/provider-standing/__next._index.txt +10 -10
  499. package/console/settings/provider-standing/__next._tree.txt +2 -2
  500. package/console/settings/provider-standing/__next.settings.provider-standing.__PAGE__.txt +4 -4
  501. package/console/settings/provider-standing/__next.settings.provider-standing.txt +3 -3
  502. package/console/settings/provider-standing/__next.settings.txt +5 -5
  503. package/console/settings/provider-standing.html +1 -1
  504. package/console/settings/provider-standing.txt +20 -20
  505. package/console/settings/usage/__next._full.txt +19 -19
  506. package/console/settings/usage/__next._head.txt +4 -4
  507. package/console/settings/usage/__next._index.txt +10 -10
  508. package/console/settings/usage/__next._tree.txt +2 -2
  509. package/console/settings/usage/__next.settings.txt +5 -5
  510. package/console/settings/usage/__next.settings.usage.__PAGE__.txt +3 -3
  511. package/console/settings/usage/__next.settings.usage.txt +3 -3
  512. package/console/settings/usage.html +1 -1
  513. package/console/settings/usage.txt +19 -19
  514. package/console/settings.html +1 -1
  515. package/console/settings.txt +20 -20
  516. package/console/workflows/__next._full.txt +16 -16
  517. package/console/workflows/__next._head.txt +4 -4
  518. package/console/workflows/__next._index.txt +10 -10
  519. package/console/workflows/__next._tree.txt +2 -2
  520. package/console/workflows/__next.workflows.__PAGE__.txt +2 -2
  521. package/console/workflows/__next.workflows.txt +3 -3
  522. package/console/workflows/__placeholder__/__placeholder__/__next._full.txt +17 -17
  523. package/console/workflows/__placeholder__/__placeholder__/__next._head.txt +4 -4
  524. package/console/workflows/__placeholder__/__placeholder__/__next._index.txt +10 -10
  525. package/console/workflows/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  526. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.__PAGE__.txt +3 -3
  527. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.txt +3 -3
  528. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.txt +3 -3
  529. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.txt +3 -3
  530. package/console/workflows/__placeholder__/__placeholder__.html +1 -1
  531. package/console/workflows/__placeholder__/__placeholder__.txt +17 -17
  532. package/console/workflows/executions/__next._full.txt +16 -16
  533. package/console/workflows/executions/__next._head.txt +4 -4
  534. package/console/workflows/executions/__next._index.txt +10 -10
  535. package/console/workflows/executions/__next._tree.txt +2 -2
  536. package/console/workflows/executions/__next.workflows.executions.__PAGE__.txt +2 -2
  537. package/console/workflows/executions/__next.workflows.executions.txt +3 -3
  538. package/console/workflows/executions/__next.workflows.txt +3 -3
  539. package/console/workflows/executions/__placeholder__/__next._full.txt +17 -17
  540. package/console/workflows/executions/__placeholder__/__next._head.txt +4 -4
  541. package/console/workflows/executions/__placeholder__/__next._index.txt +10 -10
  542. package/console/workflows/executions/__placeholder__/__next._tree.txt +2 -2
  543. package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.__PAGE__.txt +3 -3
  544. package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.txt +3 -3
  545. package/console/workflows/executions/__placeholder__/__next.workflows.executions.txt +3 -3
  546. package/console/workflows/executions/__placeholder__/__next.workflows.txt +3 -3
  547. package/console/workflows/executions/__placeholder__.html +1 -1
  548. package/console/workflows/executions/__placeholder__.txt +17 -17
  549. package/console/workflows/executions.html +1 -1
  550. package/console/workflows/executions.txt +16 -16
  551. package/console/workflows.html +1 -1
  552. package/console/workflows.txt +16 -16
  553. package/main.js +6 -6
  554. package/package.json +6 -6
  555. package/workflow-bundle-agent-execution.js +1 -1
  556. package/workflow-bundle-workflow-execution.js +1 -1
  557. package/console/_next/static/chunks/0-rl_~-k4zneu.js +0 -1
  558. package/console/_next/static/chunks/00d~s.n2ue-_h.js +0 -1
  559. package/console/_next/static/chunks/03y0rf3oc7s.8.js +0 -1
  560. package/console/_next/static/chunks/05hwz_mbqzf1o.js +0 -1
  561. package/console/_next/static/chunks/08tdiho~eajic.js +0 -1
  562. package/console/_next/static/chunks/0h5_gexj.8ede.js +0 -1
  563. package/console/_next/static/chunks/0hb.-vcj2w6kf.js +0 -1
  564. package/console/_next/static/chunks/0n_eq4ve3k9iw.js +0 -5
  565. package/console/_next/static/chunks/0uvbqsa~x3_x6.js +0 -1
  566. package/console/_next/static/chunks/0~t6-khw6kbrz.js +0 -1
  567. package/console/_next/static/chunks/148.037r-t498.js +0 -1
  568. package/console/_next/static/chunks/16ql-tt25wyl~.css +0 -1
  569. package/console/_next/static/chunks/17h3h-dhcyv24.js +0 -1
  570. package/console/library/plugins/install/__next._full.txt +0 -41
  571. package/console/library/plugins/install/__next._head.txt +0 -6
  572. package/console/library/plugins/install/__next._index.txt +0 -17
  573. package/console/library/plugins/install/__next.library.plugins.install.__PAGE__.txt +0 -9
  574. package/console/library/plugins/install/__next.library.plugins.install.txt +0 -5
  575. package/console/library/plugins/install/__next.library.plugins.txt +0 -5
  576. package/console/library/plugins/install/__next.library.txt +0 -7
  577. package/console/library/plugins/install.html +0 -1
  578. package/console/library/plugins/install.txt +0 -41
  579. /package/console/_next/static/{nsysxL2UYvxTUeX1Z93Nk → 0d4BawxHa-jMy4WgCDP1P}/_buildManifest.js +0 -0
  580. /package/console/_next/static/{nsysxL2UYvxTUeX1Z93Nk → 0d4BawxHa-jMy4WgCDP1P}/_clientMiddlewareManifest.js +0 -0
  581. /package/console/_next/static/{nsysxL2UYvxTUeX1Z93Nk → 0d4BawxHa-jMy4WgCDP1P}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,940069,e=>{"use strict";let t={agents:"stigmer:library:agents:scope",skills:"stigmer:library:skills:scope","mcp-servers":"stigmer:library:mcp-servers:scope",workflows:"stigmer:workflows:scope",plugins:"stigmer:library:plugins:scope"};e.s(["readPersistedScope",0,function(e){return"all"===localStorage.getItem(t[e])?"all":"org"},"writePersistedScope",0,function(e,s){localStorage.setItem(t[e],s)}])},658653,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),n=e.i(468806),i=e.i(869803),a=e.i(846696),o=e.i(774079),l=e.i(901501),g=e.i(864652),c=e.i(586108),d=e.i(326283);let u=(0,s.lazy)(()=>e.A(573374).then(e=>({default:e.YamlEditor})));function m(){return(0,t.jsx)("div",{className:"stg:flex stg:h-56 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:"Loading editor…"})}function p({entry:e}){return(0,t.jsxs)("li",{className:"stg:rounded-md stg:border stg:border-border stg:bg-card stg:px-3 stg:py-2",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("span",{className:"stg:inline-flex stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium stg:text-muted-foreground",children:e.document.handler.displayName}),(0,t.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:e.document.name}),(0,t.jsx)(x,{entry:e}),(0,t.jsx)("span",{className:"stg:ml-auto stg:text-xs stg:text-muted-foreground",children:e.document.org})]}),e.document.warning&&(0,t.jsx)("p",{className:"stg:mt-1 stg:text-xs stg:text-muted-foreground",children:e.document.warning}),"failed"===e.status&&e.errorMessage&&(0,t.jsx)("p",{role:"alert",className:"stg:mt-1 stg:text-xs stg:text-destructive",children:e.errorMessage})]})}function x({entry:e}){let s=function(e){switch(e.status){case"applying":return"Applying…";case"applied":return"Applied";case"failed":return"Failed";case"skipped":return"Skipped";case"pending":switch(e.action){case"create":return"Will create";case"update":return"Will update";case"unknown":return"Create or update"}}}(e);return(0,t.jsx)("span",{className:(0,r.cn)("stg:inline-flex stg:rounded stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium","failed"===e.status?"stg:bg-card stg:text-destructive stg:border stg:border-destructive":"stg:bg-muted stg:text-muted-foreground"),children:s})}e.s(["ApplyManifestDialog",0,function({open:e,onOpenChange:x,org:f,onApplied:h}){var b;let v=(0,s.useRef)(null),y=function(e){let t=(0,c.useStigmer)(),[r,n]=(0,s.useState)(""),[i,a]=(0,s.useState)(null),[o,u]=(0,s.useState)(null),[m,p]=(0,s.useState)(!1),[x,f]=(0,s.useState)(!1),h=(0,s.useRef)(e);h.current=e;let b=(0,s.useCallback)(e=>{n(e)},[]),v=(0,s.useCallback)(async e=>{let t;try{t=await e.text()}catch{n(""),a(null),u(`Failed to read ${e.name}.`);return}n(t)},[]),y=(0,s.useCallback)(()=>{n(""),a(null),u(null),p(!1),f(!1)},[]),j=(0,s.useRef)(0);(0,s.useEffect)(()=>{if(x)return;let e=++j.current;if(!r.trim()){a(null),u(null),p(!1);return}p(!0);let s=setTimeout(async()=>{let s;try{s=(0,g.parseManifest)(r,{org:h.current})}catch(t){j.current===e&&(a(null),u((0,d.toError)(t).message),p(!1));return}let n=await Promise.all(s.map(async e=>{let s;try{let r=await t.manifest.getByReference(e.handler.yamlKind,e.org,e.slug);s=null!==r?"update":"create"}catch{s="unknown"}return{document:e,action:s,status:"pending"}}));j.current===e&&(a(n),u(null),p(!1))},500);return()=>clearTimeout(s)},[r,t,x]);let N=(0,s.useCallback)(async()=>{if(!i||0===i.length)return[];j.current++,f(!0);let e=i.map(e=>({...e,status:"pending"})),s=()=>a([...e]),r=!1;for(let n=0;n<e.length;n++){if(r){e[n]={...e[n],status:"skipped"};continue}e[n]={...e[n],status:"applying"},s();try{let s=await t.manifest.apply(e[n].document);e[n]={...e[n],status:"applied",result:s}}catch(t){e[n]={...e[n],status:"failed",errorMessage:(0,d.toError)(t).message},r=!0}s()}return s(),f(!1),e},[i,t]),C=(0,s.useMemo)(()=>(0,l.containsRedactedSecrets)(r),[r]);return(0,s.useMemo)(()=>({content:r,setContent:b,readFile:v,entries:i,validationError:o,isValidating:m,hasRedactedSecrets:C,applyAll:N,isApplying:x,reset:y}),[r,b,v,i,o,m,C,N,x,y])}(f),{reset:j}=y;(0,s.useEffect)(()=>{e&&(j(),v.current&&(v.current.value=""))},[e,j]);let N=(0,s.useCallback)(()=>{x(!1);let e=(y.entries??[]).filter(e=>"applied"===e.status);e.length>0&&h?.(e)},[x,y.entries,h]),C=(0,s.useCallback)(e=>{e||N()},[N]),k=(0,s.useCallback)(e=>{let t=e.target.files?.[0];t&&y.readFile(t)},[y]),S=(0,s.useCallback)(async()=>{let e=await y.applyAll(),t=e.filter(e=>"applied"===e.status);e.length>0&&t.length===e.length&&(a.toast.success(1===t.length?"Resource applied":`${t.length} resources applied`),x(!1),h?.(t))},[y,x,h]),w=null!==y.entries&&y.entries.length>0&&!y.isValidating&&!y.isApplying;return(0,t.jsx)(n.DialogShell,{open:e,onOpenChange:C,width:"3xl","aria-label":"Apply 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:"Apply YAML"}),(0,t.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground",children:"Paste a resource manifest or upload a file. Resources are created when new and updated when they already exist."})]}),(0,t.jsx)("input",{ref:v,type:"file",accept:".yaml,.yml,.json",onChange:k,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-3 stg:py-2 stg:text-sm stg:text-foreground","stg:file:mr-3 stg:file:rounded-md stg:file:border-0 stg:file:bg-primary stg:file:px-2.5 stg:file:py-1 stg:file:text-xs stg:file:font-medium stg:file:text-primary-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),"aria-label":"Select manifest file"}),(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(m,{}),children:(0,t.jsx)(u,{value:y.content,onChange:y.setContent,className:"stg:h-56"})}),y.hasRedactedSecrets&&(0,t.jsx)(o.RedactedSecretsNotice,{}),y.validationError&&(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.validationError}),y.entries&&y.entries.length>0&&(0,t.jsx)("ul",{className:(0,r.cn)(i.UNSTYLED_LIST,"stg:flex stg:max-h-48 stg:flex-col stg:gap-2 stg:overflow-y-auto"),"aria-label":"Resources to apply",children:y.entries.map((e,s)=>(0,t.jsx)(p,{entry:e},`${e.document.handler.yamlKind}/${e.document.org}/${e.document.slug}/${s}`))}),(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:y.isValidating?"Validating…":""}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:N,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:S,disabled:!w,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…":(b=y.entries?.length??0)<=1?"Apply":`Apply ${b} resources`})]})]})]})})}],658653)},569074,e=>{"use strict";let t=(0,e.i(475254).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",0,t],569074)},618393,e=>{"use strict";let t=(0,e.i(475254).default)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);e.s(["Server",0,t],618393)},699347,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(522016),n=e.i(107233),i=e.i(569074),a=e.i(618393),o=e.i(451241),l=e.i(940069),g=e.i(610008),c=e.i(893976),d=e.i(468806),u=e.i(727996),m=e.i(153158),p=e.i(168197),x=e.i(862645),f=e.i(388894),h=e.i(351240),b=e.i(476007),v=e.i(844533),y=e.i(801731),j=e.i(793907);function N({org:e,slug:r,activeOrg:n,open:i,onClose:a,onConnected:o,onOpenDetails:l,className:g}){let u=n||e,m=(0,s.useCallback)(e=>{e||a()},[a]);return i?(0,t.jsx)(d.DialogShell,{open:!0,onOpenChange:m,width:"md",dismissOnBackdrop:!0,className:(0,c.cn)("stg:max-h-[85vh] stg:overflow-visible stg:bg-card stg:text-foreground",g),"aria-label":`Connect ${r}`,children:(0,t.jsx)("div",{className:"stg:flex stg:max-h-[85vh] stg:flex-col stg:overflow-y-auto stg:p-6",onClick:e=>e.stopPropagation(),children:(0,t.jsx)(C,{org:e,slug:r,activeOrg:u,onClose:a,onConnected:o,onOpenDetails:l})})}):null}function C({org:e,slug:r,activeOrg:n,onClose:i,onConnected:a,onOpenDetails:o}){let{mcpServer:l,isLoading:g,error:d}=(0,u.useMcpServer)(e,r),j=(0,m.useMcpServerCredentials)(n,l),{connect:N,isConnecting:M,error:O,clearError:P}=(0,x.useMcpServerConnect)(),z=(0,p.useMcpServerOAuthConnect)();(0,f.useDisconnectOAuth)();let[R,E]=(0,s.useState)("credentials"),L=l?.metadata?.name??r,D=l?.metadata?.id??"",T=Object.keys(l?.spec?.env??{}),B=(0,s.useCallback)(async()=>{if(D){E("connecting");try{await N(D,n,void 0,T),E("success"),a?.(L)}catch{E("error")}}},[D,n,T,N,a,L]),V=(0,s.useCallback)(async e=>{await j.saveCredentials(e),j.refetch()},[j]),F=(0,s.useCallback)(()=>{if(D){if("connecting"===z.failedPhase)return void B();z.startOAuth(D,n,T).then(()=>{j.refetch(),E("success"),a?.(L)},()=>{j.refetch(),E("error")})}},[D,n,T,z,j,a,L,B]);if((0,s.useEffect)(()=>{"credentials"===R&&j.isReady&&!j.isLoading&&l&&j.authMode},[R,j.isReady,j.isLoading,l,j.authMode]),g||j.isLoading)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k,{title:"Connect MCP Server",onClose:i}),(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:items-center stg:gap-3 stg:py-8",children:[(0,t.jsx)(w,{}),(0,t.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground",children:"Loading server details..."})]})]});if(d)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k,{title:"Connect MCP Server",onClose:i}),(0,t.jsx)("div",{className:"stg:py-4",children:(0,t.jsx)(b.ErrorMessage,{error:d})})]});if(!l)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k,{title:"Connect MCP Server",onClose:i}),(0,t.jsx)("p",{className:"stg:py-4 stg:text-sm stg:text-muted-foreground",children:"MCP server not found."})]});if("success"===R)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k,{title:"Connected",onClose:i}),(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:items-center stg:gap-3 stg:py-6",children:[(0,t.jsx)(A,{}),(0,t.jsxs)("p",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:["Successfully connected to ",L]}),(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:"Tools and capabilities have been discovered."}),(0,t.jsx)("button",{type:"button",onClick:i,className:(0,c.cn)("stg:mt-2 stg:inline-flex stg:items-center stg:rounded-md stg:px-4 stg:py-2 stg:text-sm stg:font-medium","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"),children:"Done"})]})]});let $="connecting"===R||M||z.isInProgress,I=O??z.error;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k,{title:L,onClose:i}),l.spec?.description&&(0,t.jsx)("p",{className:"stg:mb-4 stg:text-xs stg:leading-relaxed stg:text-muted-foreground",children:l.spec.description}),(0,t.jsx)(v.StdioSandboxNotice,{serverType:l.spec?.serverType,className:"stg:mb-4"}),(0,t.jsx)(y.OAuthRequiredNotice,{oauthOnly:l.spec?.auth?.oauthOnly,className:"stg:mb-4"}),I&&(0,t.jsx)("div",{className:"stg:mb-4",children:(0,t.jsx)(b.ErrorMessage,{error:I,title:z.error&&"connecting"===z.failedPhase?"Signed in, but tool discovery failed":void 0,retry:()=>{let e="connecting"===z.failedPhase;P(),z.clearError(),e?B():E("credentials")}})}),"oauth"===j.authMode&&!j.manualOverride&&(0,t.jsx)(S,{isConnected:j.isOAuthConnected,phase:z.phase,onSignIn:F,isVendorApprovalBlocked:j.isVendorApprovalBlocked,isVendorApprovalPending:j.isVendorApprovalPending,isOrgOAuthApp:j.isOrgOAuthApp,manualEntrySupported:j.manualEntrySupported,canBringOwnApp:j.canBringOwnApp,vendorApprovalDocsUrl:j.vendorApprovalDocsUrl,onSwitchToManual:j.manualEntrySupported?()=>j.setManualOverride(!0):void 0,onOpenDetails:o,disabled:$}),j.missingVariables.length>0&&(0,t.jsx)("div",{className:"stg:mt-2",children:(0,t.jsx)(h.EnvVarForm,{variables:j.missingVariables,onSubmit:e=>V(e),isSubmitting:j.isSaving,disabled:$,hideSaveToggle:!0})}),"oauth"===j.authMode&&j.manualOverride&&(0,t.jsx)("button",{type:"button",onClick:()=>j.setManualOverride(!1),disabled:$,className:"stg:mt-2 stg:text-xs stg:text-muted-foreground stg:underline stg:hover:text-foreground",children:"Sign in with OAuth instead"}),j.isReady&&"manual"===j.authMode&&(0,t.jsxs)("button",{type:"button",onClick:B,disabled:$,className:(0,c.cn)("stg:mt-4 stg:inline-flex stg:w-full stg:items-center stg:justify-center stg:gap-2 stg:rounded-md stg:px-4 stg:py-2 stg:text-sm stg:font-medium","stg:bg-primary stg:text-primary-foreground","stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[$&&(0,t.jsx)(w,{size:"sm"}),$?"Connecting...":"Connect"]}),j.isReady&&"oauth"===j.authMode&&j.isOAuthConnected&&(0,t.jsxs)("button",{type:"button",onClick:B,disabled:$,className:(0,c.cn)("stg:mt-4 stg:inline-flex stg:w-full stg:items-center stg:justify-center stg:gap-2 stg:rounded-md stg:px-4 stg:py-2 stg:text-sm stg:font-medium","stg:bg-primary stg:text-primary-foreground","stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[$&&(0,t.jsx)(w,{size:"sm"}),$?"Discovering tools...":"Discover Tools"]}),!j.isReady&&0===j.missingVariables.length&&"manual"===j.authMode&&(0,t.jsx)("p",{className:"stg:mt-4 stg:text-center stg:text-xs stg:text-muted-foreground",children:"No credentials required — this server is ready to connect."})]})}function k({title:e,onClose:s}){return(0,t.jsxs)("div",{className:"stg:mb-4 stg:flex stg:items-start stg:justify-between stg:gap-3",children:[(0,t.jsx)("h2",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:e}),(0,t.jsx)("button",{type:"button",onClick:s,"aria-label":"Close",className:"stg:inline-flex stg:size-7 stg:shrink-0 stg:items-center stg:justify-center stg:rounded-md stg:text-muted-foreground stg:transition-colors stg:hover:bg-accent stg:hover:text-accent-foreground stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",children:(0,t.jsx)(M,{})})]})}function S({isConnected:e,phase:s,onSignIn:r,isVendorApprovalBlocked:n,isVendorApprovalPending:i,isOrgOAuthApp:a,manualEntrySupported:o,canBringOwnApp:l,vendorApprovalDocsUrl:g,onSwitchToManual:d,onOpenDetails:u,disabled:m}){if(e)return(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:rounded-md stg:border stg:border-border stg:bg-muted-faint stg:px-3 stg:py-2",children:[(0,t.jsx)("span",{className:"stg:size-2 stg:shrink-0 stg:rounded-full stg:bg-green-500"}),(0,t.jsx)("span",{className:"stg:text-sm stg:text-foreground",children:"OAuth connected"})]});let p="idle"!==s&&"done"!==s;return(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-2",children:[(0,t.jsxs)("button",{type:"button",onClick:r,disabled:m||p||n&&!a,className:(0,c.cn)("stg:inline-flex stg:w-full stg:items-center stg:justify-center stg:gap-2 stg:rounded-md stg:px-4 stg:py-2 stg:text-sm stg:font-medium","stg:bg-primary stg:text-primary-foreground","stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[p&&(0,t.jsx)(w,{size:"sm"}),p?({initiating:"Starting OAuth...","awaiting-callback":"Waiting for authorization...",completing:"Completing OAuth...",connecting:"Discovering tools..."})[s]??"Connecting...":a?"Sign in with your app":"Sign in with OAuth"]}),!a&&(0,t.jsx)(j.VendorApprovalBlockedNotice,{blocked:n,pending:i,manualEntrySupported:o,canBringOwnApp:l,docsUrl:g,onBringOwnApp:u,className:"stg:rounded-md stg:border stg:border-amber-500/20"}),d&&(0,t.jsx)("button",{type:"button",onClick:d,disabled:m||p,className:"stg:text-xs stg:text-muted-foreground stg:underline stg:hover:text-foreground",children:"Enter token manually"})]})}function w({size:e="md"}){return(0,t.jsxs)("svg",{className:(0,c.cn)("sm"===e?"stg:size-3.5":"stg:size-5","stg:animate-spin stg:text-current"),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",className:"stg:opacity-25"}),(0,t.jsx)("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",className:"stg:opacity-75"})]})}function A(){return(0,t.jsxs)("svg",{className:"stg:size-10 stg:text-green-500",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("path",{d:"m9 12 2 2 4-4"})]})}function M(){return(0,t.jsx)("svg",{className:"stg:size-4",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:"m4 4 8 8M12 4l-8 8"})})}var O=e.i(658653),P=e.i(586108),z=e.i(297629);let R=[{id:"name",header:"Name",cell:e=>(0,t.jsx)("span",{className:"font-medium text-foreground",children:e.name||e.slug}),sortable:!0,flex:2},{id:"org",header:"Organization",cell:e=>(0,t.jsx)("span",{className:"text-muted-foreground",children:e.org}),flex:1},{id:"description",header:"Description",cell:e=>(0,t.jsx)("span",{className:"line-clamp-1 text-muted-foreground",children:e.description||"—"}),flex:3}];e.s(["McpServerListPage",0,function(){let e=(0,z.useActiveOrgSlug)(),c=(0,P.useStigmer)(),{navigateToDetail:d}=(0,o.useLibraryNavigation)(),[u,m]=(0,s.useState)(()=>(0,l.readPersistedScope)("mcp-servers")),[p,x]=(0,s.useState)(null),[f,h]=(0,s.useState)(!1),[b,v]=(0,s.useReducer)(e=>e+1,0),y=(0,s.useCallback)(e=>{m(e),(0,l.writePersistedScope)("mcp-servers",e)},[]),j=(0,s.useMemo)(()=>e=>c.mcpServer.list(e),[c]),C="/library/mcp-servers/new";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("h1",{className:"text-foreground text-xl font-semibold",children:"MCP Servers"}),(0,t.jsx)("p",{className:"text-muted-foreground mt-1 text-sm",children:"Browse and manage MCP servers in your organization."})]}),(0,t.jsx)(g.ResourceWorkbench,{refetchToken:b,listFn:j,org:e,columns:R,scope:u,onScopeChange:y,defaultViewMode:"cards",viewModes:["table","cards"],viewModeStorageKey:"stigmer:workbench:mcp-servers:viewMode",searchPlaceholder:"Search MCP servers…",emptyIcon:(0,t.jsx)(a.Server,{className:"size-10","aria-hidden":"true"}),emptyTitle:"No MCP servers yet",emptyDescription:"Add an MCP server to connect external tools and data sources to your agents.",headerAction:(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("button",{type:"button",onClick:()=>h(!0),"aria-label":"Apply YAML",className:"inline-flex items-center justify-center rounded-md border border-input bg-background p-1.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,t.jsx)(i.Upload,{className:"size-3.5","aria-hidden":"true"})}),(0,t.jsxs)(r.default,{href:C,className:"inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,t.jsx)(n.Plus,{className:"size-3.5","aria-hidden":"true"}),"Add MCP server"]})]}),emptyAction:(0,t.jsxs)(r.default,{href:C,className:"inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground transition-colors hover:bg-primary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,t.jsx)(n.Plus,{className:"size-3.5","aria-hidden":"true"}),"Add MCP server"]}),onItemClick:e=>d("mcp-servers",e.org,e.slug),renderItemAction:e=>(0,t.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),x({org:e.org,slug:e.slug})},"aria-label":`Connect ${e.name||e.slug}`,className:"inline-flex size-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,t.jsx)(n.Plus,{className:"size-4","aria-hidden":"true"})}),"aria-label":"MCP server workbench"}),(0,t.jsx)(N,{org:p?.org??"",slug:p?.slug??"",activeOrg:e,open:null!==p,onClose:()=>x(null),onOpenDetails:()=>{if(!p)return;let{org:e,slug:t}=p;x(null),d("mcp-servers",e,t)}}),(0,t.jsx)(O.ApplyManifestDialog,{open:f,onOpenChange:h,org:e??"",onApplied:v})]})}],699347)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,658653,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),n=e.i(468806),i=e.i(869803),a=e.i(846696),o=e.i(774079),l=e.i(901501),g=e.i(864652),c=e.i(586108),d=e.i(326283);let u=(0,s.lazy)(()=>e.A(573374).then(e=>({default:e.YamlEditor})));function m(){return(0,t.jsx)("div",{className:"stg:flex stg:h-56 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:"Loading editor…"})}function p({entry:e}){return(0,t.jsxs)("li",{className:"stg:rounded-md stg:border stg:border-border stg:bg-card stg:px-3 stg:py-2",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("span",{className:"stg:inline-flex stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium stg:text-muted-foreground",children:e.document.handler.displayName}),(0,t.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:e.document.name}),(0,t.jsx)(x,{entry:e}),(0,t.jsx)("span",{className:"stg:ml-auto stg:text-xs stg:text-muted-foreground",children:e.document.org})]}),e.document.warning&&(0,t.jsx)("p",{className:"stg:mt-1 stg:text-xs stg:text-muted-foreground",children:e.document.warning}),"failed"===e.status&&e.errorMessage&&(0,t.jsx)("p",{role:"alert",className:"stg:mt-1 stg:text-xs stg:text-destructive",children:e.errorMessage})]})}function x({entry:e}){let s=function(e){switch(e.status){case"applying":return"Applying…";case"applied":return"Applied";case"failed":return"Failed";case"skipped":return"Skipped";case"pending":switch(e.action){case"create":return"Will create";case"update":return"Will update";case"unknown":return"Create or update"}}}(e);return(0,t.jsx)("span",{className:(0,r.cn)("stg:inline-flex stg:rounded stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium","failed"===e.status?"stg:bg-card stg:text-destructive stg:border stg:border-destructive":"stg:bg-muted stg:text-muted-foreground"),children:s})}e.s(["ApplyManifestDialog",0,function({open:e,onOpenChange:x,org:f,onApplied:h}){var b;let v=(0,s.useRef)(null),y=function(e){let t=(0,c.useStigmer)(),[r,n]=(0,s.useState)(""),[i,a]=(0,s.useState)(null),[o,u]=(0,s.useState)(null),[m,p]=(0,s.useState)(!1),[x,f]=(0,s.useState)(!1),h=(0,s.useRef)(e);h.current=e;let b=(0,s.useCallback)(e=>{n(e)},[]),v=(0,s.useCallback)(async e=>{let t;try{t=await e.text()}catch{n(""),a(null),u(`Failed to read ${e.name}.`);return}n(t)},[]),y=(0,s.useCallback)(()=>{n(""),a(null),u(null),p(!1),f(!1)},[]),j=(0,s.useRef)(0);(0,s.useEffect)(()=>{if(x)return;let e=++j.current;if(!r.trim()){a(null),u(null),p(!1);return}p(!0);let s=setTimeout(async()=>{let s;try{s=(0,g.parseManifest)(r,{org:h.current})}catch(t){j.current===e&&(a(null),u((0,d.toError)(t).message),p(!1));return}let n=await Promise.all(s.map(async e=>{let s;try{let r=await t.manifest.getByReference(e.handler.yamlKind,e.org,e.slug);s=null!==r?"update":"create"}catch{s="unknown"}return{document:e,action:s,status:"pending"}}));j.current===e&&(a(n),u(null),p(!1))},500);return()=>clearTimeout(s)},[r,t,x]);let N=(0,s.useCallback)(async()=>{if(!i||0===i.length)return[];j.current++,f(!0);let e=i.map(e=>({...e,status:"pending"})),s=()=>a([...e]),r=!1;for(let n=0;n<e.length;n++){if(r){e[n]={...e[n],status:"skipped"};continue}e[n]={...e[n],status:"applying"},s();try{let s=await t.manifest.apply(e[n].document);e[n]={...e[n],status:"applied",result:s}}catch(t){e[n]={...e[n],status:"failed",errorMessage:(0,d.toError)(t).message},r=!0}s()}return s(),f(!1),e},[i,t]),C=(0,s.useMemo)(()=>(0,l.containsRedactedSecrets)(r),[r]);return(0,s.useMemo)(()=>({content:r,setContent:b,readFile:v,entries:i,validationError:o,isValidating:m,hasRedactedSecrets:C,applyAll:N,isApplying:x,reset:y}),[r,b,v,i,o,m,C,N,x,y])}(f),{reset:j}=y;(0,s.useEffect)(()=>{e&&(j(),v.current&&(v.current.value=""))},[e,j]);let N=(0,s.useCallback)(()=>{x(!1);let e=(y.entries??[]).filter(e=>"applied"===e.status);e.length>0&&h?.(e)},[x,y.entries,h]),C=(0,s.useCallback)(e=>{e||N()},[N]),k=(0,s.useCallback)(e=>{let t=e.target.files?.[0];t&&y.readFile(t)},[y]),S=(0,s.useCallback)(async()=>{let e=await y.applyAll(),t=e.filter(e=>"applied"===e.status);e.length>0&&t.length===e.length&&(a.toast.success(1===t.length?"Resource applied":`${t.length} resources applied`),x(!1),h?.(t))},[y,x,h]),w=null!==y.entries&&y.entries.length>0&&!y.isValidating&&!y.isApplying;return(0,t.jsx)(n.DialogShell,{open:e,onOpenChange:C,width:"3xl","aria-label":"Apply 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:"Apply YAML"}),(0,t.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground",children:"Paste a resource manifest or upload a file. Resources are created when new and updated when they already exist."})]}),(0,t.jsx)("input",{ref:v,type:"file",accept:".yaml,.yml,.json",onChange:k,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-3 stg:py-2 stg:text-sm stg:text-foreground","stg:file:mr-3 stg:file:rounded-md stg:file:border-0 stg:file:bg-primary stg:file:px-2.5 stg:file:py-1 stg:file:text-xs stg:file:font-medium stg:file:text-primary-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),"aria-label":"Select manifest file"}),(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(m,{}),children:(0,t.jsx)(u,{value:y.content,onChange:y.setContent,className:"stg:h-56"})}),y.hasRedactedSecrets&&(0,t.jsx)(o.RedactedSecretsNotice,{}),y.validationError&&(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.validationError}),y.entries&&y.entries.length>0&&(0,t.jsx)("ul",{className:(0,r.cn)(i.UNSTYLED_LIST,"stg:flex stg:max-h-48 stg:flex-col stg:gap-2 stg:overflow-y-auto"),"aria-label":"Resources to apply",children:y.entries.map((e,s)=>(0,t.jsx)(p,{entry:e},`${e.document.handler.yamlKind}/${e.document.org}/${e.document.slug}/${s}`))}),(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:y.isValidating?"Validating…":""}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:N,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:S,disabled:!w,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…":(b=y.entries?.length??0)<=1?"Apply":`Apply ${b} resources`})]})]})]})})}],658653)},569074,e=>{"use strict";let t=(0,e.i(475254).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",0,t],569074)},940069,e=>{"use strict";let t={agents:"stigmer:library:agents:scope",skills:"stigmer:library:skills:scope","mcp-servers":"stigmer:library:mcp-servers:scope",workflows:"stigmer:workflows:scope",plugins:"stigmer:library:plugins:scope"};e.s(["readPersistedScope",0,function(e){return"all"===localStorage.getItem(t[e])?"all":"org"},"writePersistedScope",0,function(e,s){localStorage.setItem(t[e],s)}])},618393,e=>{"use strict";let t=(0,e.i(475254).default)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);e.s(["Server",0,t],618393)},699347,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(522016),n=e.i(107233),i=e.i(569074),a=e.i(618393),o=e.i(451241),l=e.i(940069),g=e.i(610008),c=e.i(893976),d=e.i(468806),u=e.i(727996),m=e.i(153158),p=e.i(168197),x=e.i(862645),f=e.i(388894),h=e.i(351240),b=e.i(476007),v=e.i(844533),y=e.i(801731),j=e.i(793907);function N({org:e,slug:r,activeOrg:n,open:i,onClose:a,onConnected:o,onOpenDetails:l,className:g}){let u=n||e,m=(0,s.useCallback)(e=>{e||a()},[a]);return i?(0,t.jsx)(d.DialogShell,{open:!0,onOpenChange:m,width:"md",dismissOnBackdrop:!0,className:(0,c.cn)("stg:max-h-[85vh] stg:overflow-visible stg:bg-card stg:text-foreground",g),"aria-label":`Connect ${r}`,children:(0,t.jsx)("div",{className:"stg:flex stg:max-h-[85vh] stg:flex-col stg:overflow-y-auto stg:p-6",onClick:e=>e.stopPropagation(),children:(0,t.jsx)(C,{org:e,slug:r,activeOrg:u,onClose:a,onConnected:o,onOpenDetails:l})})}):null}function C({org:e,slug:r,activeOrg:n,onClose:i,onConnected:a,onOpenDetails:o}){let{mcpServer:l,isLoading:g,error:d}=(0,u.useMcpServer)(e,r),j=(0,m.useMcpServerCredentials)(n,l),{connect:N,isConnecting:M,error:O,clearError:P}=(0,x.useMcpServerConnect)(),z=(0,p.useMcpServerOAuthConnect)();(0,f.useDisconnectOAuth)();let[R,E]=(0,s.useState)("credentials"),L=l?.metadata?.name??r,D=l?.metadata?.id??"",T=Object.keys(l?.spec?.env??{}),B=(0,s.useCallback)(async()=>{if(D){E("connecting");try{await N(D,n,void 0,T),E("success"),a?.(L)}catch{E("error")}}},[D,n,T,N,a,L]),V=(0,s.useCallback)(async e=>{await j.saveCredentials(e),j.refetch()},[j]),F=(0,s.useCallback)(()=>{if(D){if("connecting"===z.failedPhase)return void B();z.startOAuth(D,n,T).then(()=>{j.refetch(),E("success"),a?.(L)},()=>{j.refetch(),E("error")})}},[D,n,T,z,j,a,L,B]);if((0,s.useEffect)(()=>{"credentials"===R&&j.isReady&&!j.isLoading&&l&&j.authMode},[R,j.isReady,j.isLoading,l,j.authMode]),g||j.isLoading)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k,{title:"Connect MCP Server",onClose:i}),(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:items-center stg:gap-3 stg:py-8",children:[(0,t.jsx)(w,{}),(0,t.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground",children:"Loading server details..."})]})]});if(d)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k,{title:"Connect MCP Server",onClose:i}),(0,t.jsx)("div",{className:"stg:py-4",children:(0,t.jsx)(b.ErrorMessage,{error:d})})]});if(!l)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k,{title:"Connect MCP Server",onClose:i}),(0,t.jsx)("p",{className:"stg:py-4 stg:text-sm stg:text-muted-foreground",children:"MCP server not found."})]});if("success"===R)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k,{title:"Connected",onClose:i}),(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:items-center stg:gap-3 stg:py-6",children:[(0,t.jsx)(A,{}),(0,t.jsxs)("p",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:["Successfully connected to ",L]}),(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:"Tools and capabilities have been discovered."}),(0,t.jsx)("button",{type:"button",onClick:i,className:(0,c.cn)("stg:mt-2 stg:inline-flex stg:items-center stg:rounded-md stg:px-4 stg:py-2 stg:text-sm stg:font-medium","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"),children:"Done"})]})]});let $="connecting"===R||M||z.isInProgress,I=O??z.error;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k,{title:L,onClose:i}),l.spec?.description&&(0,t.jsx)("p",{className:"stg:mb-4 stg:text-xs stg:leading-relaxed stg:text-muted-foreground",children:l.spec.description}),(0,t.jsx)(v.StdioSandboxNotice,{serverType:l.spec?.serverType,className:"stg:mb-4"}),(0,t.jsx)(y.OAuthRequiredNotice,{oauthOnly:l.spec?.auth?.oauthOnly,className:"stg:mb-4"}),I&&(0,t.jsx)("div",{className:"stg:mb-4",children:(0,t.jsx)(b.ErrorMessage,{error:I,title:z.error&&"connecting"===z.failedPhase?"Signed in, but tool discovery failed":void 0,retry:()=>{let e="connecting"===z.failedPhase;P(),z.clearError(),e?B():E("credentials")}})}),"oauth"===j.authMode&&!j.manualOverride&&(0,t.jsx)(S,{isConnected:j.isOAuthConnected,phase:z.phase,onSignIn:F,isVendorApprovalBlocked:j.isVendorApprovalBlocked,isVendorApprovalPending:j.isVendorApprovalPending,isOrgOAuthApp:j.isOrgOAuthApp,manualEntrySupported:j.manualEntrySupported,canBringOwnApp:j.canBringOwnApp,vendorApprovalDocsUrl:j.vendorApprovalDocsUrl,onSwitchToManual:j.manualEntrySupported?()=>j.setManualOverride(!0):void 0,onOpenDetails:o,disabled:$}),j.missingVariables.length>0&&(0,t.jsx)("div",{className:"stg:mt-2",children:(0,t.jsx)(h.EnvVarForm,{variables:j.missingVariables,onSubmit:e=>V(e),isSubmitting:j.isSaving,disabled:$,hideSaveToggle:!0})}),"oauth"===j.authMode&&j.manualOverride&&(0,t.jsx)("button",{type:"button",onClick:()=>j.setManualOverride(!1),disabled:$,className:"stg:mt-2 stg:text-xs stg:text-muted-foreground stg:underline stg:hover:text-foreground",children:"Sign in with OAuth instead"}),j.isReady&&"manual"===j.authMode&&(0,t.jsxs)("button",{type:"button",onClick:B,disabled:$,className:(0,c.cn)("stg:mt-4 stg:inline-flex stg:w-full stg:items-center stg:justify-center stg:gap-2 stg:rounded-md stg:px-4 stg:py-2 stg:text-sm stg:font-medium","stg:bg-primary stg:text-primary-foreground","stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[$&&(0,t.jsx)(w,{size:"sm"}),$?"Connecting...":"Connect"]}),j.isReady&&"oauth"===j.authMode&&j.isOAuthConnected&&(0,t.jsxs)("button",{type:"button",onClick:B,disabled:$,className:(0,c.cn)("stg:mt-4 stg:inline-flex stg:w-full stg:items-center stg:justify-center stg:gap-2 stg:rounded-md stg:px-4 stg:py-2 stg:text-sm stg:font-medium","stg:bg-primary stg:text-primary-foreground","stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[$&&(0,t.jsx)(w,{size:"sm"}),$?"Discovering tools...":"Discover Tools"]}),!j.isReady&&0===j.missingVariables.length&&"manual"===j.authMode&&(0,t.jsx)("p",{className:"stg:mt-4 stg:text-center stg:text-xs stg:text-muted-foreground",children:"No credentials required — this server is ready to connect."})]})}function k({title:e,onClose:s}){return(0,t.jsxs)("div",{className:"stg:mb-4 stg:flex stg:items-start stg:justify-between stg:gap-3",children:[(0,t.jsx)("h2",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:e}),(0,t.jsx)("button",{type:"button",onClick:s,"aria-label":"Close",className:"stg:inline-flex stg:size-7 stg:shrink-0 stg:items-center stg:justify-center stg:rounded-md stg:text-muted-foreground stg:transition-colors stg:hover:bg-accent stg:hover:text-accent-foreground stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",children:(0,t.jsx)(M,{})})]})}function S({isConnected:e,phase:s,onSignIn:r,isVendorApprovalBlocked:n,isVendorApprovalPending:i,isOrgOAuthApp:a,manualEntrySupported:o,canBringOwnApp:l,vendorApprovalDocsUrl:g,onSwitchToManual:d,onOpenDetails:u,disabled:m}){if(e)return(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:rounded-md stg:border stg:border-border stg:bg-muted-faint stg:px-3 stg:py-2",children:[(0,t.jsx)("span",{className:"stg:size-2 stg:shrink-0 stg:rounded-full stg:bg-green-500"}),(0,t.jsx)("span",{className:"stg:text-sm stg:text-foreground",children:"OAuth connected"})]});let p="idle"!==s&&"done"!==s;return(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-2",children:[(0,t.jsxs)("button",{type:"button",onClick:r,disabled:m||p||n&&!a,className:(0,c.cn)("stg:inline-flex stg:w-full stg:items-center stg:justify-center stg:gap-2 stg:rounded-md stg:px-4 stg:py-2 stg:text-sm stg:font-medium","stg:bg-primary stg:text-primary-foreground","stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[p&&(0,t.jsx)(w,{size:"sm"}),p?({initiating:"Starting OAuth...","awaiting-callback":"Waiting for authorization...",completing:"Completing OAuth...",connecting:"Discovering tools..."})[s]??"Connecting...":a?"Sign in with your app":"Sign in with OAuth"]}),!a&&(0,t.jsx)(j.VendorApprovalBlockedNotice,{blocked:n,pending:i,manualEntrySupported:o,canBringOwnApp:l,docsUrl:g,onBringOwnApp:u,className:"stg:rounded-md stg:border stg:border-amber-500/20"}),d&&(0,t.jsx)("button",{type:"button",onClick:d,disabled:m||p,className:"stg:text-xs stg:text-muted-foreground stg:underline stg:hover:text-foreground",children:"Enter token manually"})]})}function w({size:e="md"}){return(0,t.jsxs)("svg",{className:(0,c.cn)("sm"===e?"stg:size-3.5":"stg:size-5","stg:animate-spin stg:text-current"),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",className:"stg:opacity-25"}),(0,t.jsx)("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",className:"stg:opacity-75"})]})}function A(){return(0,t.jsxs)("svg",{className:"stg:size-10 stg:text-green-500",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("path",{d:"m9 12 2 2 4-4"})]})}function M(){return(0,t.jsx)("svg",{className:"stg:size-4",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:"m4 4 8 8M12 4l-8 8"})})}var O=e.i(658653),P=e.i(586108),z=e.i(297629);let R=[{id:"name",header:"Name",cell:e=>(0,t.jsx)("span",{className:"font-medium text-foreground",children:e.name||e.slug}),sortable:!0,flex:2},{id:"org",header:"Organization",cell:e=>(0,t.jsx)("span",{className:"text-muted-foreground",children:e.org}),flex:1},{id:"description",header:"Description",cell:e=>(0,t.jsx)("span",{className:"line-clamp-1 text-muted-foreground",children:e.description||"—"}),flex:3}];e.s(["McpServerListPage",0,function(){let e=(0,z.useActiveOrgSlug)(),c=(0,P.useStigmer)(),{navigateToDetail:d}=(0,o.useLibraryNavigation)(),[u,m]=(0,s.useState)(()=>(0,l.readPersistedScope)("mcp-servers")),[p,x]=(0,s.useState)(null),[f,h]=(0,s.useState)(!1),[b,v]=(0,s.useReducer)(e=>e+1,0),y=(0,s.useCallback)(e=>{m(e),(0,l.writePersistedScope)("mcp-servers",e)},[]),j=(0,s.useMemo)(()=>e=>c.mcpServer.list(e),[c]),C="/library/mcp-servers/new";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("h1",{className:"text-foreground text-xl font-semibold",children:"MCP Servers"}),(0,t.jsx)("p",{className:"text-muted-foreground mt-1 text-sm",children:"Browse and manage MCP servers in your organization."})]}),(0,t.jsx)(g.ResourceWorkbench,{refetchToken:b,listFn:j,org:e,columns:R,scope:u,onScopeChange:y,defaultViewMode:"cards",viewModes:["table","cards"],viewModeStorageKey:"stigmer:workbench:mcp-servers:viewMode",searchPlaceholder:"Search MCP servers…",emptyIcon:(0,t.jsx)(a.Server,{className:"size-10","aria-hidden":"true"}),emptyTitle:"No MCP servers yet",emptyDescription:"Add an MCP server to connect external tools and data sources to your agents.",headerAction:(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("button",{type:"button",onClick:()=>h(!0),"aria-label":"Apply YAML",className:"inline-flex items-center justify-center rounded-md border border-input bg-background p-1.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,t.jsx)(i.Upload,{className:"size-3.5","aria-hidden":"true"})}),(0,t.jsxs)(r.default,{href:C,className:"inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,t.jsx)(n.Plus,{className:"size-3.5","aria-hidden":"true"}),"Add MCP server"]})]}),emptyAction:(0,t.jsxs)(r.default,{href:C,className:"inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground transition-colors hover:bg-primary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,t.jsx)(n.Plus,{className:"size-3.5","aria-hidden":"true"}),"Add MCP server"]}),onItemClick:e=>d("mcp-servers",e.org,e.slug),renderItemAction:e=>(0,t.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),x({org:e.org,slug:e.slug})},"aria-label":`Connect ${e.name||e.slug}`,className:"inline-flex size-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,t.jsx)(n.Plus,{className:"size-4","aria-hidden":"true"})}),"aria-label":"MCP server workbench"}),(0,t.jsx)(N,{org:p?.org??"",slug:p?.slug??"",activeOrg:e,open:null!==p,onClose:()=>x(null),onOpenDetails:()=>{if(!p)return;let{org:e,slug:t}=p;x(null),d("mcp-servers",e,t)}}),(0,t.jsx)(O.ApplyManifestDialog,{open:f,onOpenChange:h,org:e??"",onApplied:v})]})}],699347)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,869803,t=>{"use strict";t.s(["UNSTYLED_FIELDSET",0,"stg:m-0 stg:min-w-0 stg:p-0","UNSTYLED_LIST",0,"stg:m-0 stg:list-none stg:p-0"])},468806,t=>{"use strict";var e=t.i(843476),a=t.i(271645),o=t.i(893976);let r={sm:"stg:max-w-sm",md:"stg:max-w-md",lg:"stg:max-w-lg",xl:"stg:max-w-xl","2xl":"stg:max-w-2xl","3xl":"stg:max-w-3xl","4xl":"stg:max-w-4xl"};t.s(["DialogShell",0,function({open:t,onOpenChange:n,width:s="md",modal:i=!0,dismissOnBackdrop:l=!1,className:d,children:u,"aria-label":c,"aria-labelledby":f}){let m=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=m.current;e&&i&&(t&&!e.open?e.showModal():!t&&e.open&&e.close())},[t,i]);let p=(0,a.useCallback)(t=>{t.preventDefault(),n(!1)},[n]),g=(0,a.useCallback)(()=>{t&&n(!1)},[t,n]),h=(0,a.useCallback)(t=>{t.target===t.currentTarget&&n(!1)},[n]);return(0,e.jsx)("dialog",{ref:m,open:i?void 0:t||void 0,onCancel:i?p:void 0,onClose:i?g:void 0,onClick:i&&l?h:void 0,"aria-label":c,"aria-labelledby":f,className:(0,o.cn)("stg:w-full stg:rounded-xl stg:border stg:border-border stg:bg-popover stg:p-0 stg:text-popover-foreground stg:shadow-xl",i?(0,o.cn)("stg:fixed stg:inset-0 stg:z-50 stg:m-auto","stg:backdrop:bg-backdrop","stg:open:animate-in stg:open:fade-in-0 stg:open:zoom-in-95"):"stg:relative",r[s],d),children:u})}])},846696,t=>{"use strict";var e=t.i(271645),a=t.i(174080);let o=Array(12).fill(0),r=({visible:t,className:a})=>e.default.createElement("div",{className:["sonner-loading-wrapper",a].filter(Boolean).join(" "),"data-visible":t},e.default.createElement("div",{className:"sonner-spinner"},o.map((t,a)=>e.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),n=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),s=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},e.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),i=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),l=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),d=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},e.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),u=1,c=new class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:a,...o}=t,r="number"==typeof(null==t?void 0:t.id)||(null==(e=t.id)?void 0:e.length)>0?t.id:u++,n=this.toasts.find(t=>t.id===r),s=void 0===t.dismissible||t.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),n?this.toasts=this.toasts.map(e=>e.id===r?(this.publish({...e,...t,id:r,title:a}),{...e,...t,id:r,dismissible:s,title:a}):e):this.addToast({title:a,...o,dismissible:s,id:r}),r},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(e=>e({id:t,dismiss:!0})))):this.toasts.forEach(t=>{this.subscribers.forEach(e=>e({id:t.id,dismiss:!0}))}),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,a)=>{let o,r;if(!a)return;void 0!==a.loading&&(r=this.create({...a,promise:t,type:"loading",message:a.loading,description:"function"!=typeof a.description?a.description:void 0}));let n=Promise.resolve(t instanceof Function?t():t),s=void 0!==r,i=n.then(async t=>{if(o=["resolve",t],e.default.isValidElement(t))s=!1,this.create({id:r,type:"default",message:t});else if(f(t)&&!t.ok){s=!1;let o="function"==typeof a.error?await a.error(`HTTP error! status: ${t.status}`):a.error,n="function"==typeof a.description?await a.description(`HTTP error! status: ${t.status}`):a.description,i="object"!=typeof o||e.default.isValidElement(o)?{message:o}:o;this.create({id:r,type:"error",description:n,...i})}else if(t instanceof Error){s=!1;let o="function"==typeof a.error?await a.error(t):a.error,n="function"==typeof a.description?await a.description(t):a.description,i="object"!=typeof o||e.default.isValidElement(o)?{message:o}:o;this.create({id:r,type:"error",description:n,...i})}else if(void 0!==a.success){s=!1;let o="function"==typeof a.success?await a.success(t):a.success,n="function"==typeof a.description?await a.description(t):a.description,i="object"!=typeof o||e.default.isValidElement(o)?{message:o}:o;this.create({id:r,type:"success",description:n,...i})}}).catch(async t=>{if(o=["reject",t],void 0!==a.error){s=!1;let o="function"==typeof a.error?await a.error(t):a.error,n="function"==typeof a.description?await a.description(t):a.description,i="object"!=typeof o||e.default.isValidElement(o)?{message:o}:o;this.create({id:r,type:"error",description:n,...i})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),null==a.finally||a.finally.call(a)}),l=()=>new Promise((t,e)=>i.then(()=>"reject"===o[0]?e(o[1]):t(o[1])).catch(e));return"string"!=typeof r&&"number"!=typeof r?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,e)=>{let a=(null==e?void 0:e.id)||u++;return this.create({jsx:t(a),id:a,...e}),a},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},f=t=>t&&"object"==typeof t&&"ok"in t&&"boolean"==typeof t.ok&&"status"in t&&"number"==typeof t.status,m=Object.assign((t,e)=>{let a=(null==e?void 0:e.id)||u++;return c.addToast({title:t,...e,id:a}),a},{success:c.success,info:c.info,warning:c.warning,error:c.error,custom:c.custom,message:c.message,promise:c.promise,dismiss:c.dismiss,loading:c.loading},{getHistory:()=>c.toasts,getToasts:()=>c.getActiveToasts()});function p(t){return void 0!==t.label}function g(...t){return t.filter(Boolean).join(" ")}!function(t){if(!t||"u"<typeof document)return;let e=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",e.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");let h=t=>{var a,o,u,c,f,m,h,b,v,y,x,w,E;let{invert:k,toast:T,unstyled:N,interacting:S,setHeights:M,visibleToasts:C,heights:B,index:z,toasts:j,expanded:R,removeToast:D,defaultRichColors:Y,closeButton:I,style:L,cancelButtonStyle:P,actionButtonStyle:$,className:A="",descriptionClassName:H="",duration:U,position:V,gap:X,expandByDefault:F,classNames:O,icons:K,closeButtonAriaLabel:q="Close toast"}=t,[W,_]=e.default.useState(null),[G,J]=e.default.useState(null),[Q,Z]=e.default.useState(!1),[tt,te]=e.default.useState(!1),[ta,to]=e.default.useState(!1),[tr,tn]=e.default.useState(!1),[ts,ti]=e.default.useState(!1),[tl,td]=e.default.useState(0),[tu,tc]=e.default.useState(0),tf=e.default.useRef(T.duration||U||4e3),tm=e.default.useRef(null),tp=e.default.useRef(null),tg=0===z,th=z+1<=C,tb=T.type,tv=!1!==T.dismissible,ty=T.className||"",tx=T.descriptionClassName||"",tw=e.default.useMemo(()=>B.findIndex(t=>t.toastId===T.id)||0,[B,T.id]),tE=e.default.useMemo(()=>{var t;return null!=(t=T.closeButton)?t:I},[T.closeButton,I]),tk=e.default.useMemo(()=>T.duration||U||4e3,[T.duration,U]),tT=e.default.useRef(0),tN=e.default.useRef(0),tS=e.default.useRef(0),tM=e.default.useRef(null),[tC,tB]=V.split("-"),tz=e.default.useMemo(()=>B.reduce((t,e,a)=>a>=tw?t:t+e.height,0),[B,tw]),tj=(()=>{let[t,a]=e.default.useState(document.hidden);return e.default.useEffect(()=>{let t=()=>{a(document.hidden)};return document.addEventListener("visibilitychange",t),()=>window.removeEventListener("visibilitychange",t)},[]),t})(),tR=T.invert||k,tD="loading"===tb;tN.current=e.default.useMemo(()=>tw*X+tz,[tw,tz]),e.default.useEffect(()=>{tf.current=tk},[tk]),e.default.useEffect(()=>{Z(!0)},[]),e.default.useEffect(()=>{let t=tp.current;if(t){let e=t.getBoundingClientRect().height;return tc(e),M(t=>[{toastId:T.id,height:e,position:T.position},...t]),()=>M(t=>t.filter(t=>t.toastId!==T.id))}},[M,T.id]),e.default.useLayoutEffect(()=>{if(!Q)return;let t=tp.current,e=t.style.height;t.style.height="auto";let a=t.getBoundingClientRect().height;t.style.height=e,tc(a),M(t=>t.find(t=>t.toastId===T.id)?t.map(t=>t.toastId===T.id?{...t,height:a}:t):[{toastId:T.id,height:a,position:T.position},...t])},[Q,T.title,T.description,M,T.id,T.jsx,T.action,T.cancel]);let tY=e.default.useCallback(()=>{te(!0),td(tN.current),M(t=>t.filter(t=>t.toastId!==T.id)),setTimeout(()=>{D(T)},200)},[T,D,M,tN]);e.default.useEffect(()=>{let t;if((!T.promise||"loading"!==tb)&&T.duration!==1/0&&"loading"!==T.type){if(R||S||tj){if(tS.current<tT.current){let t=new Date().getTime()-tT.current;tf.current=tf.current-t}tS.current=new Date().getTime()}else tf.current!==1/0&&(tT.current=new Date().getTime(),t=setTimeout(()=>{null==T.onAutoClose||T.onAutoClose.call(T,T),tY()},tf.current));return()=>clearTimeout(t)}},[R,S,T,tb,tj,tY]),e.default.useEffect(()=>{T.delete&&(tY(),null==T.onDismiss||T.onDismiss.call(T,T))},[tY,T.delete]);let tI=T.icon||(null==K?void 0:K[tb])||(t=>{switch(t){case"success":return n;case"info":return i;case"warning":return s;case"error":return l;default:return null}})(tb);return e.default.createElement("li",{tabIndex:0,ref:tp,className:g(A,ty,null==O?void 0:O.toast,null==T||null==(a=T.classNames)?void 0:a.toast,null==O?void 0:O.default,null==O?void 0:O[tb],null==T||null==(o=T.classNames)?void 0:o[tb]),"data-sonner-toast":"","data-rich-colors":null!=(y=T.richColors)?y:Y,"data-styled":!(T.jsx||T.unstyled||N),"data-mounted":Q,"data-promise":!!T.promise,"data-swiped":ts,"data-removed":tt,"data-visible":th,"data-y-position":tC,"data-x-position":tB,"data-index":z,"data-front":tg,"data-swiping":ta,"data-dismissible":tv,"data-type":tb,"data-invert":tR,"data-swipe-out":tr,"data-swipe-direction":G,"data-expanded":!!(R||F&&Q),"data-testid":T.testId,style:{"--index":z,"--toasts-before":z,"--z-index":j.length-z,"--offset":`${tt?tl:tN.current}px`,"--initial-height":F?"auto":`${tu}px`,...L,...T.style},onDragEnd:()=>{to(!1),_(null),tM.current=null},onPointerDown:t=>{2===t.button||tD||!tv||(tm.current=new Date,td(tN.current),t.target.setPointerCapture(t.pointerId),"BUTTON"!==t.target.tagName&&(to(!0),tM.current={x:t.clientX,y:t.clientY}))},onPointerUp:()=>{var t,e,a,o,r;if(tr||!tv)return;tM.current=null;let n=Number((null==(t=tp.current)?void 0:t.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),s=Number((null==(e=tp.current)?void 0:e.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),i=new Date().getTime()-(null==(a=tm.current)?void 0:a.getTime()),l="x"===W?n:s,d=Math.abs(l)/i;if(Math.abs(l)>=45||d>.11){td(tN.current),null==T.onDismiss||T.onDismiss.call(T,T),"x"===W?J(n>0?"right":"left"):J(s>0?"down":"up"),tY(),tn(!0);return}null==(o=tp.current)||o.style.setProperty("--swipe-amount-x","0px"),null==(r=tp.current)||r.style.setProperty("--swipe-amount-y","0px"),ti(!1),to(!1),_(null)},onPointerMove:e=>{var a,o,r,n;if(!tM.current||!tv||(null==(a=window.getSelection())?void 0:a.toString().length)>0)return;let s=e.clientY-tM.current.y,i=e.clientX-tM.current.x,l=null!=(n=t.swipeDirections)?n:function(t){let[e,a]=t.split("-"),o=[];return e&&o.push(e),a&&o.push(a),o}(V);!W&&(Math.abs(i)>1||Math.abs(s)>1)&&_(Math.abs(i)>Math.abs(s)?"x":"y");let d={x:0,y:0},u=t=>1/(1.5+Math.abs(t)/20);if("y"===W){if(l.includes("top")||l.includes("bottom"))if(l.includes("top")&&s<0||l.includes("bottom")&&s>0)d.y=s;else{let t=s*u(s);d.y=Math.abs(t)<Math.abs(s)?t:s}}else if("x"===W&&(l.includes("left")||l.includes("right")))if(l.includes("left")&&i<0||l.includes("right")&&i>0)d.x=i;else{let t=i*u(i);d.x=Math.abs(t)<Math.abs(i)?t:i}(Math.abs(d.x)>0||Math.abs(d.y)>0)&&ti(!0),null==(o=tp.current)||o.style.setProperty("--swipe-amount-x",`${d.x}px`),null==(r=tp.current)||r.style.setProperty("--swipe-amount-y",`${d.y}px`)}},tE&&!T.jsx&&"loading"!==tb?e.default.createElement("button",{"aria-label":q,"data-disabled":tD,"data-close-button":!0,onClick:tD||!tv?()=>{}:()=>{tY(),null==T.onDismiss||T.onDismiss.call(T,T)},className:g(null==O?void 0:O.closeButton,null==T||null==(u=T.classNames)?void 0:u.closeButton)},null!=(x=null==K?void 0:K.close)?x:d):null,(tb||T.icon||T.promise)&&null!==T.icon&&((null==K?void 0:K[tb])!==null||T.icon)?e.default.createElement("div",{"data-icon":"",className:g(null==O?void 0:O.icon,null==T||null==(c=T.classNames)?void 0:c.icon)},T.promise||"loading"===T.type&&!T.icon?T.icon||((null==K?void 0:K.loading)?e.default.createElement("div",{className:g(null==O?void 0:O.loader,null==T||null==(E=T.classNames)?void 0:E.loader,"sonner-loader"),"data-visible":"loading"===tb},K.loading):e.default.createElement(r,{className:g(null==O?void 0:O.loader,null==T||null==(w=T.classNames)?void 0:w.loader),visible:"loading"===tb})):null,"loading"!==T.type?tI:null):null,e.default.createElement("div",{"data-content":"",className:g(null==O?void 0:O.content,null==T||null==(f=T.classNames)?void 0:f.content)},e.default.createElement("div",{"data-title":"",className:g(null==O?void 0:O.title,null==T||null==(m=T.classNames)?void 0:m.title)},T.jsx?T.jsx:"function"==typeof T.title?T.title():T.title),T.description?e.default.createElement("div",{"data-description":"",className:g(H,tx,null==O?void 0:O.description,null==T||null==(h=T.classNames)?void 0:h.description)},"function"==typeof T.description?T.description():T.description):null),e.default.isValidElement(T.cancel)?T.cancel:T.cancel&&p(T.cancel)?e.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:T.cancelButtonStyle||P,onClick:t=>{!p(T.cancel)||tv&&(null==T.cancel.onClick||T.cancel.onClick.call(T.cancel,t),tY())},className:g(null==O?void 0:O.cancelButton,null==T||null==(b=T.classNames)?void 0:b.cancelButton)},T.cancel.label):null,e.default.isValidElement(T.action)?T.action:T.action&&p(T.action)?e.default.createElement("button",{"data-button":!0,"data-action":!0,style:T.actionButtonStyle||$,onClick:t=>{!p(T.action)||(null==T.action.onClick||T.action.onClick.call(T.action,t),t.defaultPrevented||tY())},className:g(null==O?void 0:O.actionButton,null==T||null==(v=T.classNames)?void 0:v.actionButton)},T.action.label):null)};function b(){if("u"<typeof window||"u"<typeof document)return"ltr";let t=document.documentElement.getAttribute("dir");return"auto"!==t&&t?t:window.getComputedStyle(document.documentElement).direction}let v=e.default.forwardRef(function(t,o){let{id:r,invert:n,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:l,closeButton:d,className:u,offset:f,mobileOffset:m,theme:p="light",richColors:g,duration:v,style:y,visibleToasts:x=3,toastOptions:w,dir:E=b(),gap:k=14,icons:T,containerAriaLabel:N="Notifications"}=t,[S,M]=e.default.useState([]),C=e.default.useMemo(()=>r?S.filter(t=>t.toasterId===r):S.filter(t=>!t.toasterId),[S,r]),B=e.default.useMemo(()=>Array.from(new Set([s].concat(C.filter(t=>t.position).map(t=>t.position)))),[C,s]),[z,j]=e.default.useState([]),[R,D]=e.default.useState(!1),[Y,I]=e.default.useState(!1),[L,P]=e.default.useState("system"!==p?p:"u">typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),$=e.default.useRef(null),A=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),H=e.default.useRef(null),U=e.default.useRef(!1),V=e.default.useCallback(t=>{M(e=>{var a;return(null==(a=e.find(e=>e.id===t.id))?void 0:a.delete)||c.dismiss(t.id),e.filter(({id:e})=>e!==t.id)})},[]);return e.default.useEffect(()=>c.subscribe(t=>{t.dismiss?requestAnimationFrame(()=>{M(e=>e.map(e=>e.id===t.id?{...e,delete:!0}:e))}):setTimeout(()=>{a.default.flushSync(()=>{M(e=>{let a=e.findIndex(e=>e.id===t.id);return -1!==a?[...e.slice(0,a),{...e[a],...t},...e.slice(a+1)]:[t,...e]})})})}),[S]),e.default.useEffect(()=>{if("system"!==p)return void P(p);if("system"===p&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?P("dark"):P("light")),"u"<typeof window)return;let t=window.matchMedia("(prefers-color-scheme: dark)");try{t.addEventListener("change",({matches:t})=>{t?P("dark"):P("light")})}catch(e){t.addListener(({matches:t})=>{try{t?P("dark"):P("light")}catch(t){console.error(t)}})}},[p]),e.default.useEffect(()=>{S.length<=1&&D(!1)},[S]),e.default.useEffect(()=>{let t=t=>{var e,a;i.every(e=>t[e]||t.code===e)&&(D(!0),null==(a=$.current)||a.focus()),"Escape"===t.code&&(document.activeElement===$.current||(null==(e=$.current)?void 0:e.contains(document.activeElement)))&&D(!1)};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[i]),e.default.useEffect(()=>{if($.current)return()=>{H.current&&(H.current.focus({preventScroll:!0}),H.current=null,U.current=!1)}},[$.current]),e.default.createElement("section",{ref:o,"aria-label":`${N} ${A}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},B.map((a,o)=>{var r;let s,[i,c]=a.split("-");return C.length?e.default.createElement("ol",{key:a,dir:"auto"===E?b():E,tabIndex:-1,ref:$,className:u,"data-sonner-toaster":!0,"data-sonner-theme":L,"data-y-position":i,"data-x-position":c,style:{"--front-toast-height":`${(null==(r=z[0])?void 0:r.height)||0}px`,"--width":"356px","--gap":`${k}px`,...y,...(s={},[f,m].forEach((t,e)=>{let a=1===e,o=a?"--mobile-offset":"--offset",r=a?"16px":"24px";function n(t){["top","right","bottom","left"].forEach(e=>{s[`${o}-${e}`]="number"==typeof t?`${t}px`:t})}"number"==typeof t||"string"==typeof t?n(t):"object"==typeof t?["top","right","bottom","left"].forEach(e=>{void 0===t[e]?s[`${o}-${e}`]=r:s[`${o}-${e}`]="number"==typeof t[e]?`${t[e]}px`:t[e]}):n(r)}),s)},onBlur:t=>{U.current&&!t.currentTarget.contains(t.relatedTarget)&&(U.current=!1,H.current&&(H.current.focus({preventScroll:!0}),H.current=null))},onFocus:t=>{!(t.target instanceof HTMLElement&&"false"===t.target.dataset.dismissible)&&(U.current||(U.current=!0,H.current=t.relatedTarget))},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{Y||D(!1)},onDragEnd:()=>D(!1),onPointerDown:t=>{t.target instanceof HTMLElement&&"false"===t.target.dataset.dismissible||I(!0)},onPointerUp:()=>I(!1)},C.filter(t=>!t.position&&0===o||t.position===a).map((o,r)=>{var s,i;return e.default.createElement(h,{key:o.id,icons:T,index:r,toast:o,defaultRichColors:g,duration:null!=(s=null==w?void 0:w.duration)?s:v,className:null==w?void 0:w.className,descriptionClassName:null==w?void 0:w.descriptionClassName,invert:n,visibleToasts:x,closeButton:null!=(i=null==w?void 0:w.closeButton)?i:d,interacting:Y,position:a,style:null==w?void 0:w.style,unstyled:null==w?void 0:w.unstyled,classNames:null==w?void 0:w.classNames,cancelButtonStyle:null==w?void 0:w.cancelButtonStyle,actionButtonStyle:null==w?void 0:w.actionButtonStyle,closeButtonAriaLabel:null==w?void 0:w.closeButtonAriaLabel,removeToast:V,toasts:C.filter(t=>t.position==o.position),heights:z.filter(t=>t.position==o.position),setHeights:j,expandByDefault:l,gap:k,expanded:R,swipeDirections:t.swipeDirections})})):null}))});t.s(["Toaster",0,v,"toast",0,m])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,658653,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),i=e.i(468806),n=e.i(869803),l=e.i(846696),a=e.i(774079),o=e.i(901501),c=e.i(864652),g=e.i(586108),d=e.i(326283);let u=(0,s.lazy)(()=>e.A(573374).then(e=>({default:e.YamlEditor})));function m(){return(0,t.jsx)("div",{className:"stg:flex stg:h-56 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:"Loading editor…"})}function p({entry:e}){return(0,t.jsxs)("li",{className:"stg:rounded-md stg:border stg:border-border stg:bg-card stg:px-3 stg:py-2",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("span",{className:"stg:inline-flex stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium stg:text-muted-foreground",children:e.document.handler.displayName}),(0,t.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:e.document.name}),(0,t.jsx)(f,{entry:e}),(0,t.jsx)("span",{className:"stg:ml-auto stg:text-xs stg:text-muted-foreground",children:e.document.org})]}),e.document.warning&&(0,t.jsx)("p",{className:"stg:mt-1 stg:text-xs stg:text-muted-foreground",children:e.document.warning}),"failed"===e.status&&e.errorMessage&&(0,t.jsx)("p",{role:"alert",className:"stg:mt-1 stg:text-xs stg:text-destructive",children:e.errorMessage})]})}function f({entry:e}){let s=function(e){switch(e.status){case"applying":return"Applying…";case"applied":return"Applied";case"failed":return"Failed";case"skipped":return"Skipped";case"pending":switch(e.action){case"create":return"Will create";case"update":return"Will update";case"unknown":return"Create or update"}}}(e);return(0,t.jsx)("span",{className:(0,r.cn)("stg:inline-flex stg:rounded stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium","failed"===e.status?"stg:bg-card stg:text-destructive stg:border stg:border-destructive":"stg:bg-muted stg:text-muted-foreground"),children:s})}e.s(["ApplyManifestDialog",0,function({open:e,onOpenChange:f,org:x,onApplied:h}){var b;let y=(0,s.useRef)(null),v=function(e){let t=(0,g.useStigmer)(),[r,i]=(0,s.useState)(""),[n,l]=(0,s.useState)(null),[a,u]=(0,s.useState)(null),[m,p]=(0,s.useState)(!1),[f,x]=(0,s.useState)(!1),h=(0,s.useRef)(e);h.current=e;let b=(0,s.useCallback)(e=>{i(e)},[]),y=(0,s.useCallback)(async e=>{let t;try{t=await e.text()}catch{i(""),l(null),u(`Failed to read ${e.name}.`);return}i(t)},[]),v=(0,s.useCallback)(()=>{i(""),l(null),u(null),p(!1),x(!1)},[]),w=(0,s.useRef)(0);(0,s.useEffect)(()=>{if(f)return;let e=++w.current;if(!r.trim()){l(null),u(null),p(!1);return}p(!0);let s=setTimeout(async()=>{let s;try{s=(0,c.parseManifest)(r,{org:h.current})}catch(t){w.current===e&&(l(null),u((0,d.toError)(t).message),p(!1));return}let i=await Promise.all(s.map(async e=>{let s;try{let r=await t.manifest.getByReference(e.handler.yamlKind,e.org,e.slug);s=null!==r?"update":"create"}catch{s="unknown"}return{document:e,action:s,status:"pending"}}));w.current===e&&(l(i),u(null),p(!1))},500);return()=>clearTimeout(s)},[r,t,f]);let j=(0,s.useCallback)(async()=>{if(!n||0===n.length)return[];w.current++,x(!0);let e=n.map(e=>({...e,status:"pending"})),s=()=>l([...e]),r=!1;for(let i=0;i<e.length;i++){if(r){e[i]={...e[i],status:"skipped"};continue}e[i]={...e[i],status:"applying"},s();try{let s=await t.manifest.apply(e[i].document);e[i]={...e[i],status:"applied",result:s}}catch(t){e[i]={...e[i],status:"failed",errorMessage:(0,d.toError)(t).message},r=!0}s()}return s(),x(!1),e},[n,t]),k=(0,s.useMemo)(()=>(0,o.containsRedactedSecrets)(r),[r]);return(0,s.useMemo)(()=>({content:r,setContent:b,readFile:y,entries:n,validationError:a,isValidating:m,hasRedactedSecrets:k,applyAll:j,isApplying:f,reset:v}),[r,b,y,n,a,m,k,j,f,v])}(x),{reset:w}=v;(0,s.useEffect)(()=>{e&&(w(),y.current&&(y.current.value=""))},[e,w]);let j=(0,s.useCallback)(()=>{f(!1);let e=(v.entries??[]).filter(e=>"applied"===e.status);e.length>0&&h?.(e)},[f,v.entries,h]),k=(0,s.useCallback)(e=>{e||j()},[j]),N=(0,s.useCallback)(e=>{let t=e.target.files?.[0];t&&v.readFile(t)},[v]),C=(0,s.useCallback)(async()=>{let e=await v.applyAll(),t=e.filter(e=>"applied"===e.status);e.length>0&&t.length===e.length&&(l.toast.success(1===t.length?"Resource applied":`${t.length} resources applied`),f(!1),h?.(t))},[v,f,h]),A=null!==v.entries&&v.entries.length>0&&!v.isValidating&&!v.isApplying;return(0,t.jsx)(i.DialogShell,{open:e,onOpenChange:k,width:"3xl","aria-label":"Apply 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:"Apply YAML"}),(0,t.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground",children:"Paste a resource manifest or upload a file. Resources are created when new and updated when they already exist."})]}),(0,t.jsx)("input",{ref:y,type:"file",accept:".yaml,.yml,.json",onChange:N,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-3 stg:py-2 stg:text-sm stg:text-foreground","stg:file:mr-3 stg:file:rounded-md stg:file:border-0 stg:file:bg-primary stg:file:px-2.5 stg:file:py-1 stg:file:text-xs stg:file:font-medium stg:file:text-primary-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),"aria-label":"Select manifest file"}),(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(m,{}),children:(0,t.jsx)(u,{value:v.content,onChange:v.setContent,className:"stg:h-56"})}),v.hasRedactedSecrets&&(0,t.jsx)(a.RedactedSecretsNotice,{}),v.validationError&&(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:v.validationError}),v.entries&&v.entries.length>0&&(0,t.jsx)("ul",{className:(0,r.cn)(n.UNSTYLED_LIST,"stg:flex stg:max-h-48 stg:flex-col stg:gap-2 stg:overflow-y-auto"),"aria-label":"Resources to apply",children:v.entries.map((e,s)=>(0,t.jsx)(p,{entry:e},`${e.document.handler.yamlKind}/${e.document.org}/${e.document.slug}/${s}`))}),(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:v.isValidating?"Validating…":""}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:j,disabled:v.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:C,disabled:!A,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:v.isApplying?"Applying…":(b=v.entries?.length??0)<=1?"Apply":`Apply ${b} resources`})]})]})]})})}],658653)},569074,e=>{"use strict";let t=(0,e.i(475254).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",0,t],569074)},940069,e=>{"use strict";let t={agents:"stigmer:library:agents:scope",skills:"stigmer:library:skills:scope","mcp-servers":"stigmer:library:mcp-servers:scope",workflows:"stigmer:workflows:scope",plugins:"stigmer:library:plugins:scope"};e.s(["readPersistedScope",0,function(e){return"all"===localStorage.getItem(t[e])?"all":"org"},"writePersistedScope",0,function(e,s){localStorage.setItem(t[e],s)}])},566338,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(522016);let i=(0,e.i(475254).default)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]);var n=e.i(541071),l=e.i(174886),a=e.i(778917),o=e.i(727612),c=e.i(107233),g=e.i(569074),d=e.i(451241),u=e.i(940069),m=e.i(610008),p=e.i(845132),f=e.i(658653),x=e.i(586108),h=e.i(297629),b=e.i(966205),y=e.i(10337),v=e.i(846696);let w=[{id:"name",header:"Name",cell:e=>(0,t.jsx)("span",{className:"font-medium text-foreground",children:e.name||e.slug}),sortable:!0,flex:2},{id:"org",header:"Organization",cell:e=>(0,t.jsx)("span",{className:"text-muted-foreground",children:e.org}),flex:1},{id:"description",header:"Description",cell:e=>(0,t.jsx)("span",{className:"line-clamp-1 text-muted-foreground",children:e.description||"—"}),flex:3}];e.s(["WorkflowListPage",0,function(){let e=(0,h.useActiveOrgSlug)(),j=(0,x.useStigmer)(),{navigateToDetail:k}=(0,d.useLibraryNavigation)(),{confirmState:N,confirm:C,handleConfirm:A,handleCancel:S}=(0,b.useConfirmAction)(),[M,T]=(0,s.useState)(()=>(0,u.readPersistedScope)("workflows")),[P,R]=(0,s.useState)(!1),[$,z]=(0,s.useReducer)(e=>e+1,0),D="/library/workflows/new",L=(0,s.useCallback)(async e=>{if(await C({title:`Delete ${e.name||e.slug}?`,description:"This permanently removes the workflow and all of its instances. Past executions are preserved in the execution history. This action cannot be undone.",confirmLabel:"Delete",variant:"destructive"}))try{await j.workflow.delete(e.id),v.toast.success(`${e.name||e.slug} deleted`),z()}catch{v.toast.error("Failed to delete workflow")}},[C,j]),E=(0,s.useCallback)(e=>{T(e),(0,u.writePersistedScope)("workflows",e)},[]),I=(0,s.useMemo)(()=>e=>j.workflow.list(e),[j]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("h1",{className:"text-xl font-semibold text-foreground",children:"Workflows"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Browse and manage multi-step orchestration workflows."})]}),(0,t.jsx)(m.ResourceWorkbench,{refetchToken:$,listFn:I,org:e,columns:w,scope:M,onScopeChange:E,defaultViewMode:"cards",viewModes:["table","cards"],viewModeStorageKey:"stigmer:workbench:workflows:viewMode",searchPlaceholder:"Search workflows…",emptyIcon:(0,t.jsx)(i,{className:"size-10","aria-hidden":"true"}),emptyTitle:"No workflows yet",emptyDescription:"Workflows define multi-step orchestration for agents. Create one to get started.",headerAction:(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("button",{type:"button",onClick:()=>R(!0),"aria-label":"Apply YAML",className:"inline-flex items-center justify-center rounded-md border border-input bg-background p-1.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,t.jsx)(g.Upload,{className:"size-3.5","aria-hidden":"true"})}),(0,t.jsxs)(r.default,{href:D,className:"inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,t.jsx)(c.Plus,{className:"size-3.5","aria-hidden":"true"}),"Create workflow"]})]}),emptyAction:(0,t.jsxs)(r.default,{href:D,className:"inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground transition-colors hover:bg-primary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,t.jsx)(c.Plus,{className:"size-3.5","aria-hidden":"true"}),"Create workflow"]}),onItemClick:e=>k("workflows",e.org,e.slug),renderItemAction:e=>(0,t.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,t.jsxs)(p.ActionMenu,{children:[(0,t.jsx)(p.ActionMenu.Trigger,{"aria-label":`Actions for ${e.name||e.slug}`,children:(0,t.jsx)(n.MoreHorizontal,{className:"size-4"})}),(0,t.jsxs)(p.ActionMenu.Content,{children:[(0,t.jsx)(p.ActionMenu.Item,{icon:(0,t.jsx)(a.ExternalLink,{className:"size-4"}),onSelect:()=>k("workflows",e.org,e.slug),children:"View details"}),(0,t.jsx)(p.ActionMenu.Item,{icon:(0,t.jsx)(l.Copy,{className:"size-4"}),onSelect:()=>{navigator.clipboard.writeText(`${e.org}/${e.slug}`),v.toast.success("Copied workflow reference")},children:"Copy reference"}),(0,t.jsx)(p.ActionMenu.Separator,{}),(0,t.jsx)(p.ActionMenu.Item,{icon:(0,t.jsx)(o.Trash2,{className:"size-4"}),variant:"destructive",onSelect:()=>L(e),children:"Delete"})]})]})}),"aria-label":"Workflow workbench"}),(0,t.jsx)(f.ApplyManifestDialog,{open:P,onOpenChange:R,org:e??"",onApplied:z}),(0,t.jsx)(y.ConfirmDialog,{state:N,onConfirm:A,onCancel:S})]})}],566338)}]);