@stigmer/server-slim 3.18.0 → 3.19.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 +24 -23
  4. package/console/__next._head.txt +4 -4
  5. package/console/__next._index.txt +13 -15
  6. package/console/__next._tree.txt +2 -2
  7. package/console/_next/static/chunks/0.k18aw8l68rs.js +1 -0
  8. package/console/_next/static/chunks/0.wpyf_drhv8x.css +1 -0
  9. package/console/_next/static/chunks/0028ryyk-zcrk.js +1 -0
  10. package/console/_next/static/chunks/{0x.4919xjicc5.js → 004w~8qxculo~.js} +1 -1
  11. package/console/_next/static/chunks/05121lnteh0k4.js +1 -0
  12. package/console/_next/static/chunks/05hsc2apcu-66.js +1 -0
  13. package/console/_next/static/chunks/0625f_sg_08~p.js +1 -0
  14. package/console/_next/static/chunks/06rm9q_8qy6o9.js +1 -0
  15. package/console/_next/static/chunks/0a9_yomn052wg.js +1 -0
  16. package/console/_next/static/chunks/0af9vacgizdg..js +1 -0
  17. package/console/_next/static/chunks/0ala3mcyjvwvv.js +1 -0
  18. package/console/_next/static/chunks/0b8nbfovx36l5.js +1 -0
  19. package/console/_next/static/chunks/0dozqag.y8cvd.js +1 -0
  20. package/console/_next/static/chunks/{0.cr0e7bzkpoi.js → 0hjw5613u.jem.js} +3 -3
  21. package/console/_next/static/chunks/0id2oe7r5dozz.js +1 -0
  22. package/console/_next/static/chunks/0l9~uyr.vjf0t.js +2 -0
  23. package/console/_next/static/chunks/0mg-64_rqe3v9.js +1 -0
  24. package/console/_next/static/chunks/0rihzw4w1wzg3.js +1 -0
  25. package/console/_next/static/chunks/0s.hd0_eyzhc..js +1 -0
  26. package/console/_next/static/chunks/0ta6paxih8wwd.js +1 -0
  27. package/console/_next/static/chunks/0u9~d-cnb0w01.js +1 -0
  28. package/console/_next/static/chunks/0zc3nm7n~zcnb.js +3 -0
  29. package/console/_next/static/chunks/{0ij17mw0v0qd-.js → 0zfzrf3u6eg~~.js} +1 -1
  30. package/console/_next/static/chunks/12wm5jicnl6m8.js +1 -0
  31. package/console/_not-found/__next._full.txt +27 -26
  32. package/console/_not-found/__next._head.txt +4 -4
  33. package/console/_not-found/__next._index.txt +13 -15
  34. package/console/_not-found/__next._not-found.__PAGE__.txt +3 -3
  35. package/console/_not-found/__next._not-found.txt +3 -3
  36. package/console/_not-found/__next._tree.txt +2 -2
  37. package/console/_not-found.html +1 -1
  38. package/console/_not-found.txt +27 -26
  39. package/console/auth/callback/__next._full.txt +32 -31
  40. package/console/auth/callback/__next._head.txt +4 -4
  41. package/console/auth/callback/__next._index.txt +13 -15
  42. package/console/auth/callback/__next._tree.txt +2 -2
  43. package/console/auth/callback/__next.auth.callback.__PAGE__.txt +4 -4
  44. package/console/auth/callback/__next.auth.callback.txt +3 -3
  45. package/console/auth/callback/__next.auth.txt +3 -3
  46. package/console/auth/callback.html +1 -1
  47. package/console/auth/callback.txt +32 -31
  48. package/console/auth/github/callback/__next._full.txt +35 -34
  49. package/console/auth/github/callback/__next._head.txt +4 -4
  50. package/console/auth/github/callback/__next._index.txt +13 -15
  51. package/console/auth/github/callback/__next._tree.txt +2 -2
  52. package/console/auth/github/callback/__next.auth.github.callback.__PAGE__.txt +4 -4
  53. package/console/auth/github/callback/__next.auth.github.callback.txt +3 -3
  54. package/console/auth/github/callback/__next.auth.github.txt +3 -3
  55. package/console/auth/github/callback/__next.auth.txt +3 -3
  56. package/console/auth/github/callback.html +1 -1
  57. package/console/auth/github/callback.txt +35 -34
  58. package/console/auth/oauth/callback/__next._full.txt +35 -34
  59. package/console/auth/oauth/callback/__next._head.txt +4 -4
  60. package/console/auth/oauth/callback/__next._index.txt +13 -15
  61. package/console/auth/oauth/callback/__next._tree.txt +2 -2
  62. package/console/auth/oauth/callback/__next.auth.oauth.callback.__PAGE__.txt +4 -4
  63. package/console/auth/oauth/callback/__next.auth.oauth.callback.txt +3 -3
  64. package/console/auth/oauth/callback/__next.auth.oauth.txt +3 -3
  65. package/console/auth/oauth/callback/__next.auth.txt +3 -3
  66. package/console/auth/oauth/callback.html +1 -1
  67. package/console/auth/oauth/callback.txt +35 -34
  68. package/console/chat/__placeholder__/__placeholder__/__next._full.txt +30 -32
  69. package/console/chat/__placeholder__/__placeholder__/__next._head.txt +4 -4
  70. package/console/chat/__placeholder__/__placeholder__/__next._index.txt +13 -15
  71. package/console/chat/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  72. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.__PAGE__.txt +3 -3
  73. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.txt +3 -3
  74. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.txt +3 -3
  75. package/console/chat/__placeholder__/__placeholder__/__next.chat.txt +3 -3
  76. package/console/chat/__placeholder__/__placeholder__.html +1 -1
  77. package/console/chat/__placeholder__/__placeholder__.txt +30 -32
  78. package/console/conversations/__next._full.txt +28 -27
  79. package/console/conversations/__next._head.txt +4 -4
  80. package/console/conversations/__next._index.txt +13 -15
  81. package/console/conversations/__next._tree.txt +2 -2
  82. package/console/conversations/__next.conversations.__PAGE__.txt +3 -3
  83. package/console/conversations/__next.conversations.txt +3 -3
  84. package/console/conversations/__placeholder__/__placeholder__/__next._full.txt +30 -32
  85. package/console/conversations/__placeholder__/__placeholder__/__next._head.txt +4 -4
  86. package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +13 -15
  87. package/console/conversations/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  88. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.__PAGE__.txt +3 -3
  89. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.txt +3 -3
  90. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.txt +3 -3
  91. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.txt +3 -3
  92. package/console/conversations/__placeholder__/__placeholder__.html +1 -1
  93. package/console/conversations/__placeholder__/__placeholder__.txt +30 -32
  94. package/console/conversations.html +1 -1
  95. package/console/conversations.txt +28 -27
  96. package/console/dashboard/__next._full.txt +28 -27
  97. package/console/dashboard/__next._head.txt +4 -4
  98. package/console/dashboard/__next._index.txt +13 -15
  99. package/console/dashboard/__next._tree.txt +2 -2
  100. package/console/dashboard/__next.dashboard.__PAGE__.txt +3 -3
  101. package/console/dashboard/__next.dashboard.txt +3 -3
  102. package/console/dashboard.html +1 -1
  103. package/console/dashboard.txt +28 -27
  104. package/console/executions/__placeholder__/__next._full.txt +30 -29
  105. package/console/executions/__placeholder__/__next._head.txt +4 -4
  106. package/console/executions/__placeholder__/__next._index.txt +13 -15
  107. package/console/executions/__placeholder__/__next._tree.txt +2 -2
  108. package/console/executions/__placeholder__/__next.executions.$d$id.__PAGE__.txt +2 -2
  109. package/console/executions/__placeholder__/__next.executions.$d$id.txt +3 -3
  110. package/console/executions/__placeholder__/__next.executions.txt +3 -3
  111. package/console/executions/__placeholder__.html +1 -1
  112. package/console/executions/__placeholder__.txt +30 -29
  113. package/console/index.html +1 -1
  114. package/console/index.txt +24 -23
  115. package/console/invite/__placeholder__/__next._full.txt +31 -30
  116. package/console/invite/__placeholder__/__next._head.txt +4 -4
  117. package/console/invite/__placeholder__/__next._index.txt +13 -15
  118. package/console/invite/__placeholder__/__next._tree.txt +2 -2
  119. package/console/invite/__placeholder__/__next.invite.$d$token.__PAGE__.txt +3 -3
  120. package/console/invite/__placeholder__/__next.invite.$d$token.txt +3 -3
  121. package/console/invite/__placeholder__/__next.invite.txt +3 -3
  122. package/console/invite/__placeholder__.html +1 -1
  123. package/console/invite/__placeholder__.txt +31 -30
  124. package/console/library/__next._full.txt +29 -28
  125. package/console/library/__next._head.txt +4 -4
  126. package/console/library/__next._index.txt +13 -15
  127. package/console/library/__next._tree.txt +2 -2
  128. package/console/library/__next.library.__PAGE__.txt +3 -3
  129. package/console/library/__next.library.txt +5 -5
  130. package/console/library/agents/__next._full.txt +34 -33
  131. package/console/library/agents/__next._head.txt +4 -4
  132. package/console/library/agents/__next._index.txt +13 -15
  133. package/console/library/agents/__next._tree.txt +2 -2
  134. package/console/library/agents/__next.library.agents.__PAGE__.txt +3 -3
  135. package/console/library/agents/__next.library.agents.txt +3 -3
  136. package/console/library/agents/__next.library.txt +5 -5
  137. package/console/library/agents/__placeholder__/__placeholder__/__next._full.txt +34 -36
  138. package/console/library/agents/__placeholder__/__placeholder__/__next._head.txt +4 -4
  139. package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +13 -15
  140. package/console/library/agents/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  141. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.__PAGE__.txt +3 -3
  142. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.txt +3 -3
  143. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.txt +3 -3
  144. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.txt +3 -3
  145. package/console/library/agents/__placeholder__/__placeholder__/__next.library.txt +5 -5
  146. package/console/library/agents/__placeholder__/__placeholder__.html +1 -1
  147. package/console/library/agents/__placeholder__/__placeholder__.txt +34 -36
  148. package/console/library/agents/new/__next._full.txt +38 -37
  149. package/console/library/agents/new/__next._head.txt +4 -4
  150. package/console/library/agents/new/__next._index.txt +13 -15
  151. package/console/library/agents/new/__next._tree.txt +2 -2
  152. package/console/library/agents/new/__next.library.agents.new.__PAGE__.txt +4 -4
  153. package/console/library/agents/new/__next.library.agents.new.txt +3 -3
  154. package/console/library/agents/new/__next.library.agents.txt +3 -3
  155. package/console/library/agents/new/__next.library.txt +5 -5
  156. package/console/library/agents/new.html +1 -1
  157. package/console/library/agents/new.txt +38 -37
  158. package/console/library/agents.html +1 -1
  159. package/console/library/agents.txt +34 -33
  160. package/console/library/mcp-servers/__next._full.txt +34 -33
  161. package/console/library/mcp-servers/__next._head.txt +4 -4
  162. package/console/library/mcp-servers/__next._index.txt +13 -15
  163. package/console/library/mcp-servers/__next._tree.txt +2 -2
  164. package/console/library/mcp-servers/__next.library.mcp-servers.__PAGE__.txt +3 -3
  165. package/console/library/mcp-servers/__next.library.mcp-servers.txt +3 -3
  166. package/console/library/mcp-servers/__next.library.txt +5 -5
  167. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._full.txt +34 -36
  168. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._head.txt +4 -4
  169. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._index.txt +13 -15
  170. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  171. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.__PAGE__.txt +3 -3
  172. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.txt +3 -3
  173. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.txt +3 -3
  174. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.txt +3 -3
  175. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.txt +5 -5
  176. package/console/library/mcp-servers/__placeholder__/__placeholder__.html +1 -1
  177. package/console/library/mcp-servers/__placeholder__/__placeholder__.txt +34 -36
  178. package/console/library/mcp-servers/new/__next._full.txt +38 -37
  179. package/console/library/mcp-servers/new/__next._head.txt +4 -4
  180. package/console/library/mcp-servers/new/__next._index.txt +13 -15
  181. package/console/library/mcp-servers/new/__next._tree.txt +2 -2
  182. package/console/library/mcp-servers/new/__next.library.mcp-servers.new.__PAGE__.txt +4 -4
  183. package/console/library/mcp-servers/new/__next.library.mcp-servers.new.txt +3 -3
  184. package/console/library/mcp-servers/new/__next.library.mcp-servers.txt +3 -3
  185. package/console/library/mcp-servers/new/__next.library.txt +5 -5
  186. package/console/library/mcp-servers/new.html +1 -1
  187. package/console/library/mcp-servers/new.txt +38 -37
  188. package/console/library/mcp-servers.html +1 -1
  189. package/console/library/mcp-servers.txt +34 -33
  190. package/console/library/plugins/__next._full.txt +34 -33
  191. package/console/library/plugins/__next._head.txt +4 -4
  192. package/console/library/plugins/__next._index.txt +13 -15
  193. package/console/library/plugins/__next._tree.txt +2 -2
  194. package/console/library/plugins/__next.library.plugins.__PAGE__.txt +3 -3
  195. package/console/library/plugins/__next.library.plugins.txt +3 -3
  196. package/console/library/plugins/__next.library.txt +5 -5
  197. package/console/library/plugins/__placeholder__/__placeholder__/__next._full.txt +34 -36
  198. package/console/library/plugins/__placeholder__/__placeholder__/__next._head.txt +4 -4
  199. package/console/library/plugins/__placeholder__/__placeholder__/__next._index.txt +13 -15
  200. package/console/library/plugins/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  201. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.__PAGE__.txt +3 -3
  202. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.txt +3 -3
  203. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.txt +3 -3
  204. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.txt +3 -3
  205. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.txt +5 -5
  206. package/console/library/plugins/__placeholder__/__placeholder__.html +1 -1
  207. package/console/library/plugins/__placeholder__/__placeholder__.txt +34 -36
  208. package/console/library/plugins/upload/__next._full.txt +38 -37
  209. package/console/library/plugins/upload/__next._head.txt +4 -4
  210. package/console/library/plugins/upload/__next._index.txt +13 -15
  211. package/console/library/plugins/upload/__next._tree.txt +2 -2
  212. package/console/library/plugins/upload/__next.library.plugins.txt +3 -3
  213. package/console/library/plugins/upload/__next.library.plugins.upload.__PAGE__.txt +4 -4
  214. package/console/library/plugins/upload/__next.library.plugins.upload.txt +3 -3
  215. package/console/library/plugins/upload/__next.library.txt +5 -5
  216. package/console/library/plugins/upload.html +1 -1
  217. package/console/library/plugins/upload.txt +38 -37
  218. package/console/library/plugins.html +1 -1
  219. package/console/library/plugins.txt +34 -33
  220. package/console/library/schedules/__next._full.txt +34 -33
  221. package/console/library/schedules/__next._head.txt +4 -4
  222. package/console/library/schedules/__next._index.txt +13 -15
  223. package/console/library/schedules/__next._tree.txt +2 -2
  224. package/console/library/schedules/__next.library.schedules.__PAGE__.txt +3 -3
  225. package/console/library/schedules/__next.library.schedules.txt +3 -3
  226. package/console/library/schedules/__next.library.txt +5 -5
  227. package/console/library/schedules/__placeholder__/__placeholder__/__next._full.txt +34 -36
  228. package/console/library/schedules/__placeholder__/__placeholder__/__next._head.txt +4 -4
  229. package/console/library/schedules/__placeholder__/__placeholder__/__next._index.txt +13 -15
  230. package/console/library/schedules/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  231. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.__PAGE__.txt +3 -3
  232. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.txt +3 -3
  233. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.txt +3 -3
  234. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.txt +3 -3
  235. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.txt +5 -5
  236. package/console/library/schedules/__placeholder__/__placeholder__.html +1 -1
  237. package/console/library/schedules/__placeholder__/__placeholder__.txt +34 -36
  238. package/console/library/schedules/new/__next._full.txt +38 -37
  239. package/console/library/schedules/new/__next._head.txt +4 -4
  240. package/console/library/schedules/new/__next._index.txt +13 -15
  241. package/console/library/schedules/new/__next._tree.txt +2 -2
  242. package/console/library/schedules/new/__next.library.schedules.new.__PAGE__.txt +4 -4
  243. package/console/library/schedules/new/__next.library.schedules.new.txt +3 -3
  244. package/console/library/schedules/new/__next.library.schedules.txt +3 -3
  245. package/console/library/schedules/new/__next.library.txt +5 -5
  246. package/console/library/schedules/new.html +1 -1
  247. package/console/library/schedules/new.txt +38 -37
  248. package/console/library/schedules.html +1 -1
  249. package/console/library/schedules.txt +34 -33
  250. package/console/library/skills/__next._full.txt +34 -33
  251. package/console/library/skills/__next._head.txt +4 -4
  252. package/console/library/skills/__next._index.txt +13 -15
  253. package/console/library/skills/__next._tree.txt +2 -2
  254. package/console/library/skills/__next.library.skills.__PAGE__.txt +3 -3
  255. package/console/library/skills/__next.library.skills.txt +3 -3
  256. package/console/library/skills/__next.library.txt +5 -5
  257. package/console/library/skills/__placeholder__/__placeholder__/__next._full.txt +34 -36
  258. package/console/library/skills/__placeholder__/__placeholder__/__next._head.txt +4 -4
  259. package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +13 -15
  260. package/console/library/skills/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  261. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.__PAGE__.txt +3 -3
  262. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.txt +3 -3
  263. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.txt +3 -3
  264. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.txt +3 -3
  265. package/console/library/skills/__placeholder__/__placeholder__/__next.library.txt +5 -5
  266. package/console/library/skills/__placeholder__/__placeholder__.html +1 -1
  267. package/console/library/skills/__placeholder__/__placeholder__.txt +34 -36
  268. package/console/library/skills/new/__next._full.txt +38 -37
  269. package/console/library/skills/new/__next._head.txt +4 -4
  270. package/console/library/skills/new/__next._index.txt +13 -15
  271. package/console/library/skills/new/__next._tree.txt +2 -2
  272. package/console/library/skills/new/__next.library.skills.new.__PAGE__.txt +4 -4
  273. package/console/library/skills/new/__next.library.skills.new.txt +3 -3
  274. package/console/library/skills/new/__next.library.skills.txt +3 -3
  275. package/console/library/skills/new/__next.library.txt +5 -5
  276. package/console/library/skills/new.html +1 -1
  277. package/console/library/skills/new.txt +38 -37
  278. package/console/library/skills.html +1 -1
  279. package/console/library/skills.txt +34 -33
  280. package/console/library/workflows/__next._full.txt +34 -33
  281. package/console/library/workflows/__next._head.txt +4 -4
  282. package/console/library/workflows/__next._index.txt +13 -15
  283. package/console/library/workflows/__next._tree.txt +2 -2
  284. package/console/library/workflows/__next.library.txt +5 -5
  285. package/console/library/workflows/__next.library.workflows.__PAGE__.txt +3 -3
  286. package/console/library/workflows/__next.library.workflows.txt +3 -3
  287. package/console/library/workflows/__placeholder__/__placeholder__/__next._full.txt +34 -36
  288. package/console/library/workflows/__placeholder__/__placeholder__/__next._head.txt +4 -4
  289. package/console/library/workflows/__placeholder__/__placeholder__/__next._index.txt +13 -15
  290. package/console/library/workflows/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  291. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.txt +5 -5
  292. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.__PAGE__.txt +3 -3
  293. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.txt +3 -3
  294. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.txt +3 -3
  295. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.txt +3 -3
  296. package/console/library/workflows/__placeholder__/__placeholder__.html +1 -1
  297. package/console/library/workflows/__placeholder__/__placeholder__.txt +34 -36
  298. package/console/library/workflows/executions/__next._full.txt +35 -34
  299. package/console/library/workflows/executions/__next._head.txt +4 -4
  300. package/console/library/workflows/executions/__next._index.txt +13 -15
  301. package/console/library/workflows/executions/__next._tree.txt +2 -2
  302. package/console/library/workflows/executions/__next.library.txt +5 -5
  303. package/console/library/workflows/executions/__next.library.workflows.executions.__PAGE__.txt +3 -3
  304. package/console/library/workflows/executions/__next.library.workflows.executions.txt +3 -3
  305. package/console/library/workflows/executions/__next.library.workflows.txt +3 -3
  306. package/console/library/workflows/executions.html +1 -1
  307. package/console/library/workflows/executions.txt +35 -34
  308. package/console/library/workflows/new/__next._full.txt +38 -37
  309. package/console/library/workflows/new/__next._head.txt +4 -4
  310. package/console/library/workflows/new/__next._index.txt +13 -15
  311. package/console/library/workflows/new/__next._tree.txt +2 -2
  312. package/console/library/workflows/new/__next.library.txt +5 -5
  313. package/console/library/workflows/new/__next.library.workflows.new.__PAGE__.txt +4 -4
  314. package/console/library/workflows/new/__next.library.workflows.new.txt +3 -3
  315. package/console/library/workflows/new/__next.library.workflows.txt +3 -3
  316. package/console/library/workflows/new.html +1 -1
  317. package/console/library/workflows/new.txt +38 -37
  318. package/console/library/workflows.html +1 -1
  319. package/console/library/workflows.txt +34 -33
  320. package/console/library.html +1 -1
  321. package/console/library.txt +29 -28
  322. package/console/login/__next._full.txt +31 -30
  323. package/console/login/__next._head.txt +4 -4
  324. package/console/login/__next._index.txt +13 -15
  325. package/console/login/__next._tree.txt +2 -2
  326. package/console/login/__next.login.__PAGE__.txt +4 -4
  327. package/console/login/__next.login.txt +3 -3
  328. package/console/login.html +1 -1
  329. package/console/login.txt +31 -30
  330. package/console/marketplace/__next._full.txt +28 -27
  331. package/console/marketplace/__next._head.txt +4 -4
  332. package/console/marketplace/__next._index.txt +13 -15
  333. package/console/marketplace/__next._tree.txt +2 -2
  334. package/console/marketplace/__next.marketplace.__PAGE__.txt +3 -3
  335. package/console/marketplace/__next.marketplace.txt +3 -3
  336. package/console/marketplace.html +1 -1
  337. package/console/marketplace.txt +28 -27
  338. package/console/oauth/slack/callback/__next._full.txt +35 -34
  339. package/console/oauth/slack/callback/__next._head.txt +4 -4
  340. package/console/oauth/slack/callback/__next._index.txt +13 -15
  341. package/console/oauth/slack/callback/__next._tree.txt +2 -2
  342. package/console/oauth/slack/callback/__next.oauth.slack.callback.__PAGE__.txt +4 -4
  343. package/console/oauth/slack/callback/__next.oauth.slack.callback.txt +3 -3
  344. package/console/oauth/slack/callback/__next.oauth.slack.txt +3 -3
  345. package/console/oauth/slack/callback/__next.oauth.txt +3 -3
  346. package/console/oauth/slack/callback.html +1 -1
  347. package/console/oauth/slack/callback.txt +35 -34
  348. package/console/sessions/__placeholder__/__next._full.txt +30 -29
  349. package/console/sessions/__placeholder__/__next._head.txt +4 -4
  350. package/console/sessions/__placeholder__/__next._index.txt +13 -15
  351. package/console/sessions/__placeholder__/__next._tree.txt +2 -2
  352. package/console/sessions/__placeholder__/__next.sessions.$d$id.__PAGE__.txt +2 -2
  353. package/console/sessions/__placeholder__/__next.sessions.$d$id.txt +3 -3
  354. package/console/sessions/__placeholder__/__next.sessions.txt +3 -3
  355. package/console/sessions/__placeholder__.html +1 -1
  356. package/console/sessions/__placeholder__.txt +30 -29
  357. package/console/settings/__next._full.txt +31 -30
  358. package/console/settings/__next._head.txt +4 -4
  359. package/console/settings/__next._index.txt +13 -15
  360. package/console/settings/__next._tree.txt +2 -2
  361. package/console/settings/__next.settings.__PAGE__.txt +4 -4
  362. package/console/settings/__next.settings.txt +5 -5
  363. package/console/settings/account-preferences/__next._full.txt +33 -32
  364. package/console/settings/account-preferences/__next._head.txt +4 -4
  365. package/console/settings/account-preferences/__next._index.txt +13 -15
  366. package/console/settings/account-preferences/__next._tree.txt +2 -2
  367. package/console/settings/account-preferences/__next.settings.account-preferences.__PAGE__.txt +3 -3
  368. package/console/settings/account-preferences/__next.settings.account-preferences.txt +3 -3
  369. package/console/settings/account-preferences/__next.settings.txt +5 -5
  370. package/console/settings/account-preferences.html +1 -1
  371. package/console/settings/account-preferences.txt +33 -32
  372. package/console/settings/api-keys/__next._full.txt +33 -32
  373. package/console/settings/api-keys/__next._head.txt +4 -4
  374. package/console/settings/api-keys/__next._index.txt +13 -15
  375. package/console/settings/api-keys/__next._tree.txt +2 -2
  376. package/console/settings/api-keys/__next.settings.api-keys.__PAGE__.txt +3 -3
  377. package/console/settings/api-keys/__next.settings.api-keys.txt +3 -3
  378. package/console/settings/api-keys/__next.settings.txt +5 -5
  379. package/console/settings/api-keys.html +1 -1
  380. package/console/settings/api-keys.txt +33 -32
  381. package/console/settings/billing/__next._full.txt +36 -35
  382. package/console/settings/billing/__next._head.txt +4 -4
  383. package/console/settings/billing/__next._index.txt +13 -15
  384. package/console/settings/billing/__next._tree.txt +2 -2
  385. package/console/settings/billing/__next.settings.billing.__PAGE__.txt +4 -4
  386. package/console/settings/billing/__next.settings.billing.txt +3 -3
  387. package/console/settings/billing/__next.settings.txt +5 -5
  388. package/console/settings/billing.html +1 -1
  389. package/console/settings/billing.txt +36 -35
  390. package/console/settings/channel-apps/__next._full.txt +33 -32
  391. package/console/settings/channel-apps/__next._head.txt +4 -4
  392. package/console/settings/channel-apps/__next._index.txt +13 -15
  393. package/console/settings/channel-apps/__next._tree.txt +2 -2
  394. package/console/settings/channel-apps/__next.settings.channel-apps.__PAGE__.txt +3 -3
  395. package/console/settings/channel-apps/__next.settings.channel-apps.txt +3 -3
  396. package/console/settings/channel-apps/__next.settings.txt +5 -5
  397. package/console/settings/channel-apps.html +1 -1
  398. package/console/settings/channel-apps.txt +33 -32
  399. package/console/settings/cursor-accounts/__next._full.txt +36 -35
  400. package/console/settings/cursor-accounts/__next._head.txt +4 -4
  401. package/console/settings/cursor-accounts/__next._index.txt +13 -15
  402. package/console/settings/cursor-accounts/__next._tree.txt +2 -2
  403. package/console/settings/cursor-accounts/__next.settings.cursor-accounts.__PAGE__.txt +4 -4
  404. package/console/settings/cursor-accounts/__next.settings.cursor-accounts.txt +3 -3
  405. package/console/settings/cursor-accounts/__next.settings.txt +5 -5
  406. package/console/settings/cursor-accounts.html +1 -1
  407. package/console/settings/cursor-accounts.txt +36 -35
  408. package/console/settings/environments/__next._full.txt +33 -32
  409. package/console/settings/environments/__next._head.txt +4 -4
  410. package/console/settings/environments/__next._index.txt +13 -15
  411. package/console/settings/environments/__next._tree.txt +2 -2
  412. package/console/settings/environments/__next.settings.environments.__PAGE__.txt +3 -3
  413. package/console/settings/environments/__next.settings.environments.txt +3 -3
  414. package/console/settings/environments/__next.settings.txt +5 -5
  415. package/console/settings/environments.html +1 -1
  416. package/console/settings/environments.txt +33 -32
  417. package/console/settings/identity-providers/__next._full.txt +33 -32
  418. package/console/settings/identity-providers/__next._head.txt +4 -4
  419. package/console/settings/identity-providers/__next._index.txt +13 -15
  420. package/console/settings/identity-providers/__next._tree.txt +2 -2
  421. package/console/settings/identity-providers/__next.settings.identity-providers.__PAGE__.txt +3 -3
  422. package/console/settings/identity-providers/__next.settings.identity-providers.txt +3 -3
  423. package/console/settings/identity-providers/__next.settings.txt +5 -5
  424. package/console/settings/identity-providers.html +1 -1
  425. package/console/settings/identity-providers.txt +33 -32
  426. package/console/settings/invitations/__next._full.txt +33 -32
  427. package/console/settings/invitations/__next._head.txt +4 -4
  428. package/console/settings/invitations/__next._index.txt +13 -15
  429. package/console/settings/invitations/__next._tree.txt +2 -2
  430. package/console/settings/invitations/__next.settings.invitations.__PAGE__.txt +3 -3
  431. package/console/settings/invitations/__next.settings.invitations.txt +3 -3
  432. package/console/settings/invitations/__next.settings.txt +5 -5
  433. package/console/settings/invitations.html +1 -1
  434. package/console/settings/invitations.txt +33 -32
  435. package/console/settings/members/__next._full.txt +33 -32
  436. package/console/settings/members/__next._head.txt +4 -4
  437. package/console/settings/members/__next._index.txt +13 -15
  438. package/console/settings/members/__next._tree.txt +2 -2
  439. package/console/settings/members/__next.settings.members.__PAGE__.txt +3 -3
  440. package/console/settings/members/__next.settings.members.txt +3 -3
  441. package/console/settings/members/__next.settings.txt +5 -5
  442. package/console/settings/members.html +1 -1
  443. package/console/settings/members.txt +33 -32
  444. package/console/settings/memory/__next._full.txt +33 -32
  445. package/console/settings/memory/__next._head.txt +4 -4
  446. package/console/settings/memory/__next._index.txt +13 -15
  447. package/console/settings/memory/__next._tree.txt +2 -2
  448. package/console/settings/memory/__next.settings.memory.__PAGE__.txt +3 -3
  449. package/console/settings/memory/__next.settings.memory.txt +3 -3
  450. package/console/settings/memory/__next.settings.txt +5 -5
  451. package/console/settings/memory.html +1 -1
  452. package/console/settings/memory.txt +33 -32
  453. package/console/settings/oauth-apps/__next._full.txt +33 -32
  454. package/console/settings/oauth-apps/__next._head.txt +4 -4
  455. package/console/settings/oauth-apps/__next._index.txt +13 -15
  456. package/console/settings/oauth-apps/__next._tree.txt +2 -2
  457. package/console/settings/oauth-apps/__next.settings.oauth-apps.__PAGE__.txt +3 -3
  458. package/console/settings/oauth-apps/__next.settings.oauth-apps.txt +3 -3
  459. package/console/settings/oauth-apps/__next.settings.txt +5 -5
  460. package/console/settings/oauth-apps.html +1 -1
  461. package/console/settings/oauth-apps.txt +33 -32
  462. package/console/settings/org-preferences/__next._full.txt +33 -32
  463. package/console/settings/org-preferences/__next._head.txt +4 -4
  464. package/console/settings/org-preferences/__next._index.txt +13 -15
  465. package/console/settings/org-preferences/__next._tree.txt +2 -2
  466. package/console/settings/org-preferences/__next.settings.org-preferences.__PAGE__.txt +3 -3
  467. package/console/settings/org-preferences/__next.settings.org-preferences.txt +3 -3
  468. package/console/settings/org-preferences/__next.settings.txt +5 -5
  469. package/console/settings/org-preferences.html +1 -1
  470. package/console/settings/org-preferences.txt +33 -32
  471. package/console/settings/org-profile/__next._full.txt +33 -32
  472. package/console/settings/org-profile/__next._head.txt +4 -4
  473. package/console/settings/org-profile/__next._index.txt +13 -15
  474. package/console/settings/org-profile/__next._tree.txt +2 -2
  475. package/console/settings/org-profile/__next.settings.org-profile.__PAGE__.txt +3 -3
  476. package/console/settings/org-profile/__next.settings.org-profile.txt +3 -3
  477. package/console/settings/org-profile/__next.settings.txt +5 -5
  478. package/console/settings/org-profile.html +1 -1
  479. package/console/settings/org-profile.txt +33 -32
  480. package/console/settings/platform-clients/__next._full.txt +33 -32
  481. package/console/settings/platform-clients/__next._head.txt +4 -4
  482. package/console/settings/platform-clients/__next._index.txt +13 -15
  483. package/console/settings/platform-clients/__next._tree.txt +2 -2
  484. package/console/settings/platform-clients/__next.settings.platform-clients.__PAGE__.txt +3 -3
  485. package/console/settings/platform-clients/__next.settings.platform-clients.txt +3 -3
  486. package/console/settings/platform-clients/__next.settings.txt +5 -5
  487. package/console/settings/platform-clients.html +1 -1
  488. package/console/settings/platform-clients.txt +33 -32
  489. package/console/settings/pricing-governance/__next._full.txt +36 -35
  490. package/console/settings/pricing-governance/__next._head.txt +4 -4
  491. package/console/settings/pricing-governance/__next._index.txt +13 -15
  492. package/console/settings/pricing-governance/__next._tree.txt +2 -2
  493. package/console/settings/pricing-governance/__next.settings.pricing-governance.__PAGE__.txt +4 -4
  494. package/console/settings/pricing-governance/__next.settings.pricing-governance.txt +3 -3
  495. package/console/settings/pricing-governance/__next.settings.txt +5 -5
  496. package/console/settings/pricing-governance.html +1 -1
  497. package/console/settings/pricing-governance.txt +36 -35
  498. package/console/settings/provider-standing/__next._full.txt +36 -35
  499. package/console/settings/provider-standing/__next._head.txt +4 -4
  500. package/console/settings/provider-standing/__next._index.txt +13 -15
  501. package/console/settings/provider-standing/__next._tree.txt +2 -2
  502. package/console/settings/provider-standing/__next.settings.provider-standing.__PAGE__.txt +4 -4
  503. package/console/settings/provider-standing/__next.settings.provider-standing.txt +3 -3
  504. package/console/settings/provider-standing/__next.settings.txt +5 -5
  505. package/console/settings/provider-standing.html +1 -1
  506. package/console/settings/provider-standing.txt +36 -35
  507. package/console/settings/usage/__next._full.txt +33 -32
  508. package/console/settings/usage/__next._head.txt +4 -4
  509. package/console/settings/usage/__next._index.txt +13 -15
  510. package/console/settings/usage/__next._tree.txt +2 -2
  511. package/console/settings/usage/__next.settings.txt +5 -5
  512. package/console/settings/usage/__next.settings.usage.__PAGE__.txt +3 -3
  513. package/console/settings/usage/__next.settings.usage.txt +3 -3
  514. package/console/settings/usage.html +1 -1
  515. package/console/settings/usage.txt +33 -32
  516. package/console/settings.html +1 -1
  517. package/console/settings.txt +31 -30
  518. package/console/workflows/__next._full.txt +28 -27
  519. package/console/workflows/__next._head.txt +4 -4
  520. package/console/workflows/__next._index.txt +13 -15
  521. package/console/workflows/__next._tree.txt +2 -2
  522. package/console/workflows/__next.workflows.__PAGE__.txt +2 -2
  523. package/console/workflows/__next.workflows.txt +3 -3
  524. package/console/workflows/__placeholder__/__placeholder__/__next._full.txt +30 -32
  525. package/console/workflows/__placeholder__/__placeholder__/__next._head.txt +4 -4
  526. package/console/workflows/__placeholder__/__placeholder__/__next._index.txt +13 -15
  527. package/console/workflows/__placeholder__/__placeholder__/__next._tree.txt +2 -2
  528. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.__PAGE__.txt +3 -3
  529. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.txt +3 -3
  530. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.txt +3 -3
  531. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.txt +3 -3
  532. package/console/workflows/__placeholder__/__placeholder__.html +1 -1
  533. package/console/workflows/__placeholder__/__placeholder__.txt +30 -32
  534. package/console/workflows/executions/__next._full.txt +31 -30
  535. package/console/workflows/executions/__next._head.txt +4 -4
  536. package/console/workflows/executions/__next._index.txt +13 -15
  537. package/console/workflows/executions/__next._tree.txt +2 -2
  538. package/console/workflows/executions/__next.workflows.executions.__PAGE__.txt +2 -2
  539. package/console/workflows/executions/__next.workflows.executions.txt +3 -3
  540. package/console/workflows/executions/__next.workflows.txt +3 -3
  541. package/console/workflows/executions/__placeholder__/__next._full.txt +30 -31
  542. package/console/workflows/executions/__placeholder__/__next._head.txt +4 -4
  543. package/console/workflows/executions/__placeholder__/__next._index.txt +13 -15
  544. package/console/workflows/executions/__placeholder__/__next._tree.txt +2 -2
  545. package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.__PAGE__.txt +3 -3
  546. package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.txt +3 -3
  547. package/console/workflows/executions/__placeholder__/__next.workflows.executions.txt +3 -3
  548. package/console/workflows/executions/__placeholder__/__next.workflows.txt +3 -3
  549. package/console/workflows/executions/__placeholder__.html +1 -1
  550. package/console/workflows/executions/__placeholder__.txt +30 -31
  551. package/console/workflows/executions.html +1 -1
  552. package/console/workflows/executions.txt +31 -30
  553. package/console/workflows.html +1 -1
  554. package/console/workflows.txt +28 -27
  555. package/main.js +21 -21
  556. package/package.json +6 -6
  557. package/console/_next/static/chunks/0-3vl848v~x7_.js +0 -1
  558. package/console/_next/static/chunks/0.ocu5b3uajbn.js +0 -1
  559. package/console/_next/static/chunks/00609po93aecc.js +0 -1
  560. package/console/_next/static/chunks/00o8ud2dmna2j.js +0 -1
  561. package/console/_next/static/chunks/02fsq8lsaeu8j.js +0 -1
  562. package/console/_next/static/chunks/071fdr3kvata1.js +0 -1
  563. package/console/_next/static/chunks/0_3utrn1at0vi.js +0 -1
  564. package/console/_next/static/chunks/0_j8~rfb.1ufy.js +0 -1
  565. package/console/_next/static/chunks/0amugang-25bm.js +0 -1
  566. package/console/_next/static/chunks/0c7llz2igr3w7.js +0 -1
  567. package/console/_next/static/chunks/0dtrm.qvfku1r.js +0 -3
  568. package/console/_next/static/chunks/0e7jd8wufwnu2.js +0 -1
  569. package/console/_next/static/chunks/0fgcvnc-b_oz_.js +0 -1
  570. package/console/_next/static/chunks/0g4-6iy.9p8sl.js +0 -1
  571. package/console/_next/static/chunks/0gz8yljnjzsmu.js +0 -1
  572. package/console/_next/static/chunks/0j~6628v9z3k-.js +0 -1
  573. package/console/_next/static/chunks/0og40-yo-nth-.js +0 -1
  574. package/console/_next/static/chunks/0rob~86j~8vge.js +0 -1
  575. package/console/_next/static/chunks/0s6bm1sujua~8.css +0 -1
  576. package/console/_next/static/chunks/0xq42ojv80jqz.js +0 -1
  577. package/console/_next/static/chunks/0xs_3fux3hsk3.js +0 -2
  578. package/console/_next/static/chunks/12329wyw7127c.js +0 -1
  579. /package/console/_next/static/{0d4BawxHa-jMy4WgCDP1P → -SJovNiHfwazArKzyL7X6}/_buildManifest.js +0 -0
  580. /package/console/_next/static/{0d4BawxHa-jMy4WgCDP1P → -SJovNiHfwazArKzyL7X6}/_clientMiddlewareManifest.js +0 -0
  581. /package/console/_next/static/{0d4BawxHa-jMy4WgCDP1P → -SJovNiHfwazArKzyL7X6}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,174886,e=>{"use strict";let t=(0,e.i(475254).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,t],174886)},195057,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var r={formatUrl:function(){return o},formatWithValidation:function(){return d},urlObjectKeys:function(){return l}};for(var n in r)Object.defineProperty(s,n,{enumerable:!0,get:r[n]});let i=e.r(190809)._(e.r(998183)),a=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:s}=e,r=e.protocol||"",n=e.pathname||"",o=e.hash||"",l=e.query||"",d=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?d=t+e.host:s&&(d=t+(~s.indexOf(":")?`[${s}]`:s),e.port&&(d+=":"+e.port)),l&&"object"==typeof l&&(l=String(i.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||a.test(r))&&!1!==d?(d="//"+(d||""),n&&"/"!==n[0]&&(n="/"+n)):d||(d=""),o&&"#"!==o[0]&&(o="#"+o),c&&"?"!==c[0]&&(c="?"+c),n=n.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${r}${d}${n}${c}${o}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function d(e){return o(e)}},818581,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"useMergedRef",{enumerable:!0,get:function(){return n}});let r=e.r(271645);function n(e,t){let s=(0,r.useRef)(null),n=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=s.current;e&&(s.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(s.current=i(e,r)),t&&(n.current=i(t,r))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let s=e(t);return"function"==typeof s?s:()=>e(null)}}("function"==typeof s.default||"object"==typeof s.default&&null!==s.default)&&void 0===s.default.__esModule&&(Object.defineProperty(s.default,"__esModule",{value:!0}),Object.assign(s.default,s),t.exports=s.default)},573668,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"isLocalURL",{enumerable:!0,get:function(){return i}});let r=e.r(718967),n=e.r(652817);function i(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),s=new URL(e,t);return s.origin===t&&(0,n.hasBasePath)(s.pathname)}catch(e){return!1}}},284508,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},522016,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var r={default:function(){return x},useLinkStatus:function(){return v}};for(var n in r)Object.defineProperty(s,n,{enumerable:!0,get:r[n]});let i=e.r(190809),a=e.r(843476),o=i._(e.r(271645)),l=e.r(195057),d=e.r(8372),c=e.r(818581),u=e.r(718967),g=e.r(405550);e.r(233525);let p=e.r(388540),h=e.r(91949),m=e.r(573668),f=e.r(509396);function x(t){var s,r;let n,i,x,[v,y]=(0,o.useOptimistic)(h.IDLE_LINK_STATUS),k=(0,o.useRef)(null),{href:j,as:A,children:w,prefetch:S=null,passHref:C,replace:N,shallow:E,scroll:R,onClick:M,onMouseEnter:W,onTouchStart:_,legacyBehavior:I=!1,onNavigate:L,transitionTypes:Z,ref:F,unstable_dynamicOnHover:V,...B}=t;n=w,I&&("string"==typeof n||"number"==typeof n)&&(n=(0,a.jsx)("a",{children:n}));let Y=o.default.useContext(d.AppRouterContext),G=!1!==S,T=!1!==S?null===(r=S)||"auto"===r?f.FetchStrategy.PPR:f.FetchStrategy.Full:f.FetchStrategy.PPR,D="string"==typeof(s=A||j)?s:(0,l.formatUrl)(s);if(I){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});i=o.default.Children.only(n)}let O=I?i&&"object"==typeof i&&i.ref:F,X=o.default.useCallback(e=>(null!==Y&&(k.current=(0,h.mountLinkInstance)(e,D,Y,T,G,y)),()=>{k.current&&((0,h.unmountLinkForCurrentNavigation)(k.current),k.current=null),(0,h.unmountPrefetchableInstance)(e)}),[G,D,Y,T,y]),P={ref:(0,c.useMergedRef)(X,O),onClick(t){I||"function"!=typeof M||M(t),I&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(t),!Y||t.defaultPrevented||function(t,s,r,n,i,a,l){if("u">typeof window){let d,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((d=t.currentTarget.getAttribute("target"))&&"_self"!==d||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(s)){n&&(t.preventDefault(),location.replace(s));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:u}=e.r(699781);o.default.startTransition(()=>{u(s,n?"replace":"push",!1===i?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,r.current,l)})}}(t,D,k,N,R,L,Z)},onMouseEnter(e){I||"function"!=typeof W||W(e),I&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),Y&&G&&(0,h.onNavigationIntent)(e.currentTarget,!0===V)},onTouchStart:function(e){I||"function"!=typeof _||_(e),I&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),Y&&G&&(0,h.onNavigationIntent)(e.currentTarget,!0===V)}};return(0,u.isAbsoluteUrl)(D)?P.href=D:I&&!C&&("a"!==i.type||"href"in i.props)||(P.href=(0,g.addBasePath)(D)),x=I?o.default.cloneElement(i,P):(0,a.jsx)("a",{...B,...P,children:n}),(0,a.jsx)(b.Provider,{value:v,children:x})}e.r(284508);let b=(0,o.createContext)(h.IDLE_LINK_STATUS),v=()=>(0,o.useContext)(b);("function"==typeof s.default||"object"==typeof s.default&&null!==s.default)&&void 0===s.default.__esModule&&(Object.defineProperty(s.default,"__esModule",{value:!0}),Object.assign(s.default,s),t.exports=s.default)},254450,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),n=e.i(188482);let i=[{value:"org",label:"Org",ariaLabel:"Organization only",icon:function({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("rect",{x:"4",y:"2",width:"8",height:"12",rx:"1"}),(0,t.jsx)("path",{d:"M6.5 5h3M6.5 8h3M6.5 11h3"})]})}},{value:"all",label:"All",ariaLabel:"All including public",icon:function({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:"6"}),(0,t.jsx)("path",{d:"M2 8h12"}),(0,t.jsx)("path",{d:"M8 2c1.66 1.46 2.6 3.63 2.6 6s-.94 4.54-2.6 6c-1.66-1.46-2.6-3.63-2.6-6s.94-4.54 2.6-6Z"})]})}}];e.s(["ScopeToggle",0,function({value:e,onChange:a,disabled:o=!1,className:l,compact:d=!1}){let c=(0,s.useRef)([]),u=(0,s.useCallback)(t=>{t!==e&&a(t)},[e,a]),g=(0,s.useCallback)((e,t)=>{let s=null;"ArrowRight"===e.key||"ArrowDown"===e.key?(e.preventDefault(),s=(t+1)%i.length):("ArrowLeft"===e.key||"ArrowUp"===e.key)&&(e.preventDefault(),s=(t-1+i.length)%i.length),null!==s&&(c.current[s]?.focus(),u(i[s].value))},[u]);return(0,t.jsx)("div",{role:"radiogroup","aria-label":"Resource scope","aria-disabled":o||void 0,className:(0,r.cn)("stg:inline-flex stg:rounded-md stg:bg-muted stg:p-0.5",o&&"stg:pointer-events-none stg:opacity-50",l),children:i.map((s,i)=>{let a=e===s.value,l=s.icon,p=(0,t.jsxs)("button",{ref:e=>{c.current[i]=e},type:"button",role:"radio","aria-checked":a,"aria-label":s.ariaLabel,tabIndex:a?0:-1,disabled:o,onClick:()=>u(s.value),onKeyDown:e=>g(e,i),className:(0,r.cn)("stg:inline-flex stg:cursor-pointer stg:items-center stg:gap-1 stg:rounded-sm stg:px-2 stg:py-1 stg:text-xs stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",a?"stg:bg-background stg:text-foreground stg:shadow-sm":"stg:text-muted-foreground stg:hover:text-foreground"),children:[(0,t.jsx)(l,{className:"stg:size-3"}),!d&&s.label]},s.value);return d?(0,t.jsxs)(n.Tooltip,{children:[(0,t.jsx)(n.TooltipTrigger,{render:p}),(0,t.jsx)(n.TooltipContent,{side:"top",children:s.ariaLabel})]},s.value):p})})}])},297629,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(586108),n=e.i(941693);let i=(0,s.createContext)(null),a="stigmer:activeOrgSlug";function o(e){try{localStorage.setItem(a,e)}catch{}}function l(){let e=(0,s.useContext)(i);if(!e)throw Error("useOrg must be used within <OrgProvider>. Wrap your component tree with <OrgProvider> inside a <StigmerProvider>.");return e}e.s(["OrgProvider",0,function({children:e}){let l=(0,r.useStigmer)(),d=(0,n.useFetchCache)(),[c,u]=(0,s.useState)([]),[g,p]=(0,s.useState)(null),[h,m]=(0,s.useState)(!0),[f,x]=(0,s.useState)(null),b=(0,s.useRef)(0),v=(0,s.useCallback)(async e=>{let t=++b.current;m(!0),x(null);try{let s=(await l.organization.findMyOrganizations()).entries;if(t!==b.current)return;if(u(s),0===s.length)return void p(null);let r=e??function(){try{return localStorage.getItem(a)}catch{return null}}(),n=(r?s.find(e=>e.metadata?.slug===r):void 0)??s[0];p(n),n.metadata?.slug&&o(n.metadata.slug)}catch(e){if(t!==b.current)return;x(e instanceof Error?e.message:"Failed to load organizations"),u([]),p(null)}finally{t===b.current&&m(!1)}},[l]);(0,s.useEffect)(()=>{v()},[v]);let y=(0,s.useCallback)(e=>{p(e),e.metadata?.slug&&o(e.metadata.slug)},[]),k=(0,s.useRef)(null),j=g?.metadata?.slug??null;(0,s.useEffect)(()=>{let e=k.current;k.current=j,null!==e&&null!==j&&e!==j&&d?.clear()},[j,d]);let A=(0,s.useMemo)(()=>({orgs:c,activeOrg:g,setActiveOrg:y,isLoading:h,error:f,retry:v,refresh:v}),[c,g,y,h,f,v]);return(0,t.jsx)(i.Provider,{value:A,children:e})},"useActiveOrgId",0,function(){let{activeOrg:e}=l();return e?.metadata?.id??""},"useActiveOrgSlug",0,function(){let{activeOrg:e}=l();return e?.metadata?.slug??""},"useOrg",0,l])},618566,(e,t,s)=>{t.exports=e.r(976562)},65642,e=>{"use strict";var t=e.i(843476),s=e.i(893976);let r={primary:"stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover",outline:"stg:border stg:border-border stg:text-foreground stg:hover:bg-accent-hover",ghost:"stg:text-foreground stg:hover:bg-accent-hover",destructive:"stg:bg-destructive stg:text-destructive-foreground stg:hover:bg-destructive-hover"},n={xs:"stg:px-2.5 stg:py-1 stg:text-xs",sm:"stg:px-3 stg:py-1.5 stg:text-xs"};e.s(["Button",0,function({variant:e="primary",size:i="sm",icon:a,type:o="button",className:l,children:d,...c}){return(0,t.jsxs)("button",{type:o,className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:font-medium stg:transition-colors","stg:motion-reduce:transition-none","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50",n[i],r[e],l),...c,children:[a,d]})}])},63209,e=>{"use strict";let t=(0,e.i(475254).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,t],63209)},107233,e=>{"use strict";let t=(0,e.i(475254).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],107233)},102508,e=>{"use strict";let t,s;var r=e.i(843476);e.i(247167);var n=e.i(271645),i=e.i(991730),a=e.i(327601);let o=n.forwardRef(function(e,t){let{render:s,className:r,disabled:n=!1,focusableWhenDisabled:o=!1,nativeButton:l=!0,...d}=e,{getButtonProps:c,buttonRef:u}=(0,i.useButton)({disabled:n,focusableWhenDisabled:o,native:l});return(0,a.useRenderElement)("button",e,{state:{disabled:n},ref:[t,u],props:[d,c]})});var l=e.i(207670);let d=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,c=l.clsx;var u=e.i(893976);let g=(t="group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s={variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary-hover",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted-subtle",destructive:"bg-destructive-subtle text-destructive hover:bg-accent hover:text-destructive focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:hover:bg-accent dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}},e=>{var r;if((null==s?void 0:s.variants)==null)return c(t,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:n,defaultVariants:i}=s,a=Object.keys(n).map(t=>{let s=null==e?void 0:e[t],r=null==i?void 0:i[t];if(null===s)return null;let a=d(s)||d(r);return n[t][a]}),o=e&&Object.entries(e).reduce((e,t)=>{let[s,r]=t;return void 0===r||(e[s]=r),e},{});return c(t,a,null==s||null==(r=s.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:s,className:r,...n}=t;return Object.entries(n).every(e=>{let[t,s]=e;return Array.isArray(s)?s.includes({...i,...o}[t]):({...i,...o})[t]===s})?[...e,s,r]:e},[]),null==e?void 0:e.class,null==e?void 0:e.className)});e.s(["Button",0,function({className:e,variant:t="default",size:s="default",...n}){return(0,r.jsx)(o,{"data-slot":"button",className:(0,u.cn)(g({variant:t,size:s,className:e})),...n})}],102508)},415774,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),n=e.i(610595),i=e.i(336973),a=e.i(351240),o=e.i(230849),l=e.i(4144),d=e.i(188482);function c({tools:e,toolApprovals:n,enabledTools:i,onChange:a,disabled:d,className:g}){let p=(0,s.useId)(),h=(0,o.useScrollShadows)(),m=(0,s.useMemo)(()=>new Map(n.map(e=>[e.toolName,e.message])),[n]),f=(0,s.useMemo)(()=>new Set(i),[i]),x=(0,s.useCallback)(e=>{a(f.has(e)?i.filter(t=>t!==e):[...i,e])},[f,i,a]),b=(0,s.useCallback)(()=>{a(e.map(e=>e.name))},[e,a]),v=(0,s.useCallback)(()=>{a([])},[a]);return 0===e.length?(0,t.jsxs)("div",{className:(0,r.cn)("stg:space-y-1",g),children:[(0,t.jsx)("div",{className:"stg:text-[0.65rem] stg:font-medium stg:text-muted-foreground",children:"Tools"}),(0,t.jsxs)("div",{className:"stg:rounded-md stg:border stg:border-border stg:px-3 stg:py-4 stg:text-center",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:"Tools have not been discovered yet."}),(0,t.jsx)("p",{className:"stg:mt-1 stg:text-[0.65rem] stg:text-muted-foreground-subtle",children:"All tools will be enabled by default."})]})]}):(0,t.jsxs)("div",{className:(0,r.cn)("stg:space-y-1.5",g),children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between",children:[(0,t.jsxs)("span",{className:"stg:text-[0.65rem] stg:font-medium stg:text-muted-foreground",children:["Tools (",e.length,")"]}),(0,t.jsxs)("span",{className:"stg:flex stg:items-center stg:gap-1",children:[(0,t.jsx)("button",{type:"button",onClick:b,disabled:d,className:(0,r.cn)("stg:rounded stg:px-1.5 stg:py-0.5 stg:text-[0.6rem] stg:font-medium","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"All"}),(0,t.jsx)("button",{type:"button",onClick:v,disabled:d,className:(0,r.cn)("stg:rounded stg:px-1.5 stg:py-0.5 stg:text-[0.6rem] stg:font-medium","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"None"})]})]}),(0,t.jsxs)("div",{className:"stg:relative",children:[h.canScrollUp&&(0,t.jsx)(l.ScrollFade,{position:"top"}),(0,t.jsx)("div",{ref:h.scrollRef,role:"group","aria-label":"MCP server tools",className:"stg:max-h-52 stg:space-y-0.5 stg:overflow-y-auto",children:e.map(e=>{let s=`${p}-tool-${e.name}`,n=e.description?`${s}-desc`:void 0,i=m.get(e.name),a=f.has(e.name);return(0,t.jsx)("div",{className:(0,r.cn)("stg:group stg:rounded-md stg:px-2 stg:py-1.5 stg:transition-colors",a?"stg:bg-accent-hover":"stg:hover:bg-accent-hover"),children:(0,t.jsxs)("label",{htmlFor:s,className:"stg:flex stg:cursor-pointer stg:items-start stg:gap-2",children:[(0,t.jsx)("input",{id:s,type:"checkbox",checked:a,onChange:()=>x(e.name),disabled:d,"aria-describedby":n,className:"stg:mt-0.5 stg:size-3 stg:shrink-0 stg:accent-primary stg:disabled:pointer-events-none stg:disabled:opacity-50"}),(0,t.jsxs)("span",{className:"stg:min-w-0 stg:flex-1",children:[(0,t.jsxs)("span",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,t.jsx)("span",{className:"stg:truncate stg:font-mono stg:text-xs stg:text-foreground",children:e.name}),void 0!==i&&(0,t.jsx)(u,{message:i})]}),e.description&&(0,t.jsx)("span",{id:n,className:"stg:line-clamp-2 stg:group-hover:line-clamp-none stg:group-focus-within:line-clamp-none stg:text-[0.65rem] stg:leading-relaxed stg:text-muted-foreground",children:e.description})]})]})},e.name)})}),h.canScrollDown&&(0,t.jsx)(l.ScrollFade,{position:"bottom"})]})]})}function u({message:e}){return(0,t.jsxs)(d.Tooltip,{children:[(0,t.jsxs)(d.TooltipTrigger,{render:(0,t.jsx)("span",{className:"stg:inline-flex stg:shrink-0 stg:items-center stg:gap-0.5 stg:rounded stg:px-1 stg:py-0.5 stg:text-[0.6rem] stg:font-medium stg:leading-none stg:bg-warning/15 stg:text-warning"}),children:[(0,t.jsx)(g,{}),"Approval"]}),(0,t.jsx)(d.TooltipContent,{side:"top",children:e||"This tool requires approval before execution"})]})}function g(){return(0,t.jsx)("svg",{width:"10",height:"10",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:"M8 1.5L2.5 4v4c0 3.5 2.5 5.5 5.5 7 3-1.5 5.5-3.5 5.5-7V4L8 1.5z"})})}var p=e.i(793907),h=e.i(168197);function m(e,t,s){if(s&&!t)return{textClass:"stg:text-amber-600 stg:dark:text-amber-400",dotClass:"stg:bg-amber-500",label:"Pending approval"};switch(e){case i.OAuthConnectionHealth.OAUTH_CONNECTION_HEALTH_HEALTHY:return{textClass:"stg:text-success",dotClass:"stg:bg-success",label:"Signed in"};case i.OAuthConnectionHealth.OAUTH_CONNECTION_HEALTH_TOKEN_EXPIRED_REFRESHABLE:return{textClass:"stg:text-amber-600 stg:dark:text-amber-400",dotClass:"stg:bg-amber-500",label:"Token expired"};case i.OAuthConnectionHealth.OAUTH_CONNECTION_HEALTH_TOKEN_EXPIRED:return{textClass:"stg:text-destructive",dotClass:"stg:bg-destructive",label:"Re-auth needed"};default:return{textClass:"stg:text-muted-foreground",dotClass:"stg:bg-muted-foreground",label:"Sign-in required"}}}function f({serverName:e,isConnected:a,connectionHealth:o,phase:l,onSignIn:d,onDisconnect:c,isDisconnecting:u,disconnectError:g,onClearDisconnectError:b,error:v,failedPhase:y,isOAuthStranded:k,onClearError:j,isVendorApprovalPending:A,isVendorApprovalBlocked:w,vendorApprovalDocsUrl:S,canBringOwnApp:C,isOrgOAuthApp:N,onBringOwnApp:E,onRemoveOrgApp:R,isRemovingOrgApp:M,manualEntrySupported:W,onSwitchToManual:_}){let[I,L]=(0,s.useState)("idle"),[Z,F]=(0,s.useState)("idle"),V=w??A,B="initiating"===l||"awaiting-callback"===l||"completing"===l||"connecting"===l,Y=!!k,G=B||!!V&&!N&&!Y,T=B||!!u||!!M,D=o===i.OAuthConnectionHealth.OAUTH_CONNECTION_HEALTH_TOKEN_EXPIRED,O=Y?{textClass:"stg:text-amber-600 stg:dark:text-amber-400",dotClass:"stg:bg-amber-500",label:"Signed in — tools not discovered yet"}:m(o,a,!!A&&!N),X=a&&c&&!T&&"idle"===I,P=N&&R&&!T&&"idle"===Z;return"confirming"===I||"disconnecting"===I?(0,t.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-foreground",children:"Remove credentials? You can reconnect at any time."}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,t.jsxs)("button",{type:"button",disabled:!!u,onClick:async()=>{if(c){L("disconnecting");try{await c(),L("idle")}catch{L("confirming")}}},className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded stg:px-2 stg:py-0.5 stg:text-[0.65rem] stg:font-medium","stg:bg-destructive stg:text-destructive-foreground stg:hover:bg-destructive-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:[u&&(0,t.jsx)(x,{}),"Disconnect"]}),(0,t.jsx)("button",{type:"button",disabled:!!u,onClick:()=>{L("idle"),b?.()},className:(0,r.cn)("stg:inline-flex stg:items-center stg:rounded stg:px-2 stg:py-0.5 stg:text-[0.65rem] stg:font-medium","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"})]}),g&&(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-1.5 stg:text-[0.65rem] stg:text-destructive",role:"alert",children:[(0,t.jsx)("span",{className:"stg:flex-1",children:(0,n.getUserMessage)(g)}),(0,t.jsx)("button",{type:"button",onClick:()=>b?.(),className:"stg:shrink-0 stg:underline stg:underline-offset-2 stg:hover:no-underline",children:"Dismiss"})]})]}):"confirming"===Z||"removing"===Z?(0,t.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-foreground",children:"Remove your custom OAuth app? The server will revert to the platform's app."}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,t.jsxs)("button",{type:"button",disabled:!!M,onClick:async()=>{if(R){F("removing");try{await R(),F("idle")}catch{F("confirming")}}},className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded stg:px-2 stg:py-0.5 stg:text-[0.65rem] stg:font-medium","stg:bg-destructive stg:text-destructive-foreground stg:hover:bg-destructive-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:[M&&(0,t.jsx)(x,{}),"Remove"]}),(0,t.jsx)("button",{type:"button",disabled:!!M,onClick:()=>F("idle"),className:(0,r.cn)("stg:inline-flex stg:items-center stg:rounded stg:px-2 stg:py-0.5 stg:text-[0.65rem] stg:font-medium","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"})]})]}):(0,t.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,t.jsxs)("span",{className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:text-[0.65rem] stg:font-medium",O.textClass),children:[(0,t.jsx)("span",{className:(0,r.cn)("stg:size-1.5 stg:rounded-full",O.dotClass),"aria-hidden":"true"}),O.label]}),N&&a&&(0,t.jsx)("span",{className:"stg:text-[0.6rem] stg:text-muted-foreground",children:"Your app"}),X&&(0,t.jsx)("button",{type:"button",onClick:()=>L("confirming"),className:"stg:text-[0.65rem] stg:text-muted-foreground stg:underline stg:decoration-muted-foreground/40 stg:underline-offset-2 stg:hover:text-foreground stg:hover:decoration-foreground",children:"Disconnect"}),P&&(0,t.jsx)("button",{type:"button",onClick:()=>F("confirming"),className:"stg:text-[0.65rem] stg:text-muted-foreground stg:underline stg:decoration-muted-foreground/40 stg:underline-offset-2 stg:hover:text-foreground stg:hover:decoration-foreground",children:"Remove custom app"})]}),(0,t.jsx)("button",{type:"button",onClick:d,disabled:G,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded stg:px-2 stg:py-0.5 stg:text-[0.65rem] stg:font-medium",!a||D||Y?"stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover":"stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:B?(0,t.jsx)(x,{}):Y?"Discover tools":N&&!a?"Sign in with your app":a&&!D?"Re-authenticate":D?"Sign in to reconnect":`Sign in with ${e}`})]}),!a&&!N&&(0,t.jsx)(p.VendorApprovalBlockedNotice,{blocked:!!V,pending:!!A,manualEntrySupported:W??!!_,canBringOwnApp:!!(C&&E),docsUrl:S??null,onBringOwnApp:E,compact:!0}),N&&!a&&(0,t.jsx)("span",{className:"stg:text-[0.6rem] stg:text-muted-foreground",children:"Using your OAuth app"}),v&&(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-1.5 stg:text-[0.65rem] stg:text-destructive",role:"alert",children:[(0,t.jsx)("span",{className:"stg:flex-1",children:(0,h.getOAuthConnectErrorMessage)(v,y??null)}),(0,t.jsxs)("div",{className:"stg:flex stg:shrink-0 stg:items-center stg:gap-1.5",children:[(0,n.isRetryableError)(v)&&(0,t.jsx)("button",{type:"button",onClick:()=>{j(),d()},className:"stg:font-medium stg:underline stg:underline-offset-2 stg:hover:no-underline",children:"Try again"}),(0,t.jsx)("button",{type:"button",onClick:j,className:"stg:underline stg:underline-offset-2 stg:hover:no-underline",children:"Dismiss"})]})]}),!a&&!B&&(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[_&&(0,t.jsx)("button",{type:"button",onClick:_,className:"stg:text-[0.65rem] stg:text-muted-foreground stg:underline stg:decoration-muted-foreground/40 stg:underline-offset-2 stg:hover:text-foreground stg:hover:decoration-foreground",children:"Enter token manually"}),C&&E&&!V&&(0,t.jsx)("button",{type:"button",onClick:E,className:"stg:text-[0.65rem] stg:text-muted-foreground stg:underline stg:decoration-muted-foreground/40 stg:underline-offset-2 stg:hover:text-foreground stg:hover:decoration-foreground",children:"Use your own OAuth app"})]})]})}function x(){return(0,t.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"stg:animate-spin","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M8 2a6 6 0 1 0 6 6"})})}function b(){return(0,t.jsx)("svg",{width:"14",height:"14",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:"M10 3L5 8l5 5"})})}e.s(["McpServerConfigPanel",0,function({mcpServer:e,credentials:i,oauthSignIn:o,discoveredTools:l,toolApprovals:d,enabledTools:u,onEnabledToolsChange:g,onBack:p,onSwitchToManual:h,onSwitchToOAuth:m,error:x,disabled:v,className:y}){let k=e.metadata?.name??e.metadata?.slug??"MCP Server",j=e.spec?.iconUrl,A=e.spec?.description,w=v||i?.isSubmitting,S=!!o&&("initiating"===o.phase||"awaiting-callback"===o.phase||"completing"===o.phase||"connecting"===o.phase),C=(0,s.useCallback)((e,t)=>{i?.onSubmit(e,t)},[i]);return(0,t.jsxs)("div",{className:(0,r.cn)("stg:space-y-3",y),role:"region","aria-label":`Configure ${k}`,children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:p,disabled:i?.isSubmitting||S,className:(0,r.cn)("stg:mt-0.5 stg:shrink-0 stg:rounded stg:p-0.5","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-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"),"aria-label":"Back to MCP server list",children:(0,t.jsx)(b,{})}),(0,t.jsxs)("div",{className:"stg:flex stg:min-w-0 stg:flex-1 stg:items-start stg:gap-2",children:[j&&(0,t.jsx)("img",{src:j,alt:"",width:16,height:16,className:"stg:mt-0.5 stg:size-4 stg:shrink-0 stg:rounded-sm stg:object-contain"}),(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,t.jsx)("h3",{className:"stg:truncate stg:text-xs stg:font-medium stg:text-foreground",children:k}),A&&(0,t.jsx)("p",{className:"stg:line-clamp-2 stg:text-[0.65rem] stg:leading-relaxed stg:text-muted-foreground",children:A})]})]})]}),o&&(0,t.jsx)(f,{serverName:k,isConnected:o.isConnected,connectionHealth:o.connectionHealth,phase:o.phase,onSignIn:o.onSignIn,onDisconnect:o.onDisconnect,isDisconnecting:o.isDisconnecting,disconnectError:o.disconnectError,onClearDisconnectError:o.onClearDisconnectError,error:o.error,failedPhase:o.failedPhase,isOAuthStranded:o.isOAuthStranded,onClearError:o.onClearError,isVendorApprovalPending:o.isVendorApprovalPending,isVendorApprovalBlocked:o.isVendorApprovalBlocked,vendorApprovalDocsUrl:o.vendorApprovalDocsUrl,canBringOwnApp:o.canBringOwnApp,isOrgOAuthApp:o.isOrgOAuthApp,onBringOwnApp:o.onBringOwnApp,onRemoveOrgApp:o.onRemoveOrgApp,isRemovingOrgApp:o.isRemovingOrgApp,manualEntrySupported:o.manualEntrySupported,onSwitchToManual:h}),!o&&m&&(0,t.jsx)("button",{type:"button",onClick:m,className:"stg:text-[0.65rem] stg:text-muted-foreground stg:underline stg:decoration-muted-foreground/40 stg:underline-offset-2 stg:hover:text-foreground stg:hover:decoration-foreground",children:"Sign in with OAuth instead"}),i&&(0,t.jsx)(a.EnvVarForm,{variables:i.variables,onSubmit:C,isSubmitting:i.isSubmitting,disabled:v||S,title:"Credentials required",defaultSaveForFuture:i.defaultSaveForFuture,hideSaveToggle:i.hideSaveToggle,poolValues:i.poolValues,className:"stg:w-full"}),x&&(0,t.jsx)("div",{role:"alert",className:"stg:rounded-md stg:border stg:border-destructive/30 stg:bg-destructive-subtle stg:px-2.5 stg:py-2 stg:text-xs stg:text-destructive",children:(0,n.getUserMessage)(x)}),(0,t.jsx)(c,{tools:l,toolApprovals:d,enabledTools:u,onChange:g,disabled:!!w||!!i||S})]})},"inlineHealthProps",0,m],415774)},289677,e=>{"use strict";var t=e.i(271645),s=e.i(583093);e.s(["useResourceSearch",0,function(e,r,n){let[i,a]=(0,t.useState)(""),[o,l]=(0,t.useState)(""),d=n?.pageSize??30,c=n?.debounceMs??300,u=n?.scope??"org";(0,t.useEffect)(()=>{let e=setTimeout(()=>l(i),c);return()=>clearTimeout(e)},[i,c]);let{data:g,isLoading:p,isRefetching:h,error:m,refetch:f}=(0,s.useFetch)(async()=>[...(await e({org:r,query:o||void 0,excludePublic:!1,crossOrgPublic:"all"===u,page:{num:1,size:d}})).entries],[e,r,o,d,u],[]);return{results:g,isLoading:p,isRefetching:h,error:m,query:i,setQuery:a,refetch:f}}])},954884,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(170255),n=e.i(893976),i=e.i(586108),a=e.i(289677),o=e.i(230849),l=e.i(4144),d=e.i(254450);let c="stgm-agent-list";function u({text:e,query:s}){if(!s)return(0,t.jsx)(t.Fragment,{children:e});let r=e.toLowerCase().indexOf(s.toLowerCase());return -1===r?(0,t.jsx)(t.Fragment,{children:e}):(0,t.jsxs)(t.Fragment,{children:[e.slice(0,r),(0,t.jsx)("span",{className:"stg:font-semibold",children:e.slice(r,r+s.length)}),e.slice(r+s.length)]})}function g(){return(0,t.jsx)("div",{className:"stg:space-y-1 stg:py-1",children:[50,65,40,58].map((e,s)=>(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1 stg:px-2 stg:py-1.5",children:[(0,t.jsx)("div",{className:"stg:h-3 stg:rounded stg:bg-muted stg:animate-pulse",style:{width:`${e}%`}}),(0,t.jsx)("div",{className:"stg:h-2 stg:rounded stg:bg-muted-subtle stg:animate-pulse",style:{width:`${Math.min(e+15,90)}%`}})]},s))})}function p(){return(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"stg:shrink-0 stg:text-muted-foreground","aria-hidden":"true",children:[(0,t.jsx)("rect",{x:"3",y:"5",width:"10",height:"8",rx:"2"}),(0,t.jsx)("circle",{cx:"6",cy:"9",r:"1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"10",cy:"9",r:"1",fill:"currentColor",stroke:"none"}),(0,t.jsx)("path",{d:"M8 1v4"}),(0,t.jsx)("circle",{cx:"8",cy:"1",r:"1"})]})}function h(){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 4L10 10M10 4L4 10"})})}e.s(["AgentPicker",0,function({org:e,value:m,onChange:f,onDisplayNameResolved:x,scope:b,showScopeToggle:v=!0,disabled:y,className:k}){var j;let A,w,[S,C]=(0,s.useState)(b??"org"),{results:N,isLoading:E,error:R,query:M,setQuery:W}=(j={scope:S},A=(0,i.useStigmer)(),w=(0,s.useCallback)(e=>A.agent.list(e),[A]),(0,a.useResourceSearch)(w,e,j)),[_,I]=(0,s.useState)(-1),L=(0,s.useRef)(null),{scrollRef:Z,canScrollUp:F,canScrollDown:V}=(0,o.useScrollShadows)(),B=(0,s.useMemo)(()=>m?`${m.org}/${m.slug}`:null,[m]),Y=(0,s.useMemo)(()=>B?N.filter(e=>`${e.org}/${e.slug}`!==B):N,[N,B]);(0,s.useEffect)(()=>{I(-1)},[M]),(0,s.useEffect)(()=>{_>=0&&Z.current?.querySelector(`[data-idx="${_}"]`)?.scrollIntoView({block:"nearest"})},[_,Z]);let G=(0,s.useCallback)(e=>{f({org:e.org,slug:e.slug,kind:r.ApiResourceKind.agent}),x?.(`${e.org}/${e.slug}`,e.name)},[f,x]),T=(0,s.useCallback)(()=>{f(null)},[f]),D=(0,s.useCallback)(e=>{"ArrowDown"===e.key?(e.preventDefault(),I(e=>e<Y.length-1?e+1:e)):"ArrowUp"===e.key?(e.preventDefault(),I(e=>e>0?e-1:-1)):"Enter"===e.key&&_>=0&&_<Y.length?(e.preventDefault(),G(Y[_])):"Enter"===e.key&&e.preventDefault()},[Y,_,G]);return(0,t.jsxs)("div",{className:["stg:space-y-2 stg:w-72",k].filter(Boolean).join(" "),children:[m&&(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("div",{className:"stg:text-[0.65rem] stg:font-medium stg:text-muted-foreground",children:"Selected"}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:rounded-md stg:bg-muted-faint stg:px-2 stg:py-1 stg:text-xs",children:[(0,t.jsx)(p,{}),(0,t.jsx)("span",{className:"stg:min-w-0 stg:flex-1 stg:truncate stg:text-foreground",children:m.slug}),(0,t.jsx)("button",{type:"button",onClick:T,disabled:y,className:"stg:shrink-0 stg:text-muted-foreground stg:hover:text-destructive stg:disabled:pointer-events-none","aria-label":`Remove ${m.slug}`,children:(0,t.jsx)(h,{})})]})]}),(0,t.jsx)("input",{ref:L,type:"text",role:"combobox","aria-expanded":!0,"aria-controls":c,"aria-activedescendant":_>=0?`stgm-agent-${_}`:void 0,placeholder:"Search agents...",value:M,onChange:e=>W(e.target.value),onKeyDown:D,disabled:y,className:"stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground stg:placeholder:text-muted-foreground stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:disabled:pointer-events-none stg:disabled:opacity-50",autoFocus:!0}),v&&(0,t.jsx)(d.ScopeToggle,{value:S,onChange:C,disabled:y}),R&&(0,t.jsx)("p",{className:"stg:text-xs stg:text-destructive",children:R.message}),(0,t.jsxs)("div",{className:"stg:relative",children:[F&&(0,t.jsx)(l.ScrollFade,{position:"top"}),(0,t.jsx)("div",{ref:Z,id:c,role:"listbox","aria-label":"Agents",className:"stg:max-h-52 stg:overflow-y-auto",children:E?(0,t.jsx)(g,{}):0===Y.length?(0,t.jsx)("div",{className:"stg:py-4 stg:text-center stg:text-xs stg:text-muted-foreground",children:M?"No agents match your search":m?"No other agents available":"No agents found"}):Y.map((e,s)=>(0,t.jsxs)("button",{id:`stgm-agent-${s}`,type:"button","data-idx":s,onClick:()=>G(e),disabled:y,className:(0,n.cn)("stg:group stg:flex stg:w-full stg:flex-col stg:gap-0.5 stg:rounded-md stg:px-2 stg:py-1.5 stg:text-left stg:text-xs stg:transition-colors","stg:disabled:pointer-events-none stg:disabled:opacity-50",s===_?"stg:bg-accent stg:text-foreground":"stg:text-foreground stg:hover:bg-accent-hover"),role:"option","aria-selected":s===_,children:[(0,t.jsxs)("span",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,t.jsx)(p,{}),(0,t.jsx)("span",{className:"stg:truncate stg:font-medium",children:(0,t.jsx)(u,{text:e.name,query:M})}),(0,t.jsx)("span",{className:"stg:ml-auto stg:shrink-0 stg:text-[0.6rem] stg:text-muted-foreground",children:e.org})]}),e.description&&(0,t.jsx)("span",{className:(0,n.cn)("stg:pl-5 stg:text-[0.65rem] stg:text-muted-foreground",s!==_&&"stg:line-clamp-2 stg:group-hover:line-clamp-none"),children:e.description})]},e.id))}),V&&(0,t.jsx)(l.ScrollFade,{position:"bottom"})]})]})}],954884)},266584,e=>{"use strict";var t=e.i(843476),s=e.i(893976),r=e.i(65642),n=e.i(415774),i=e.i(674542),a=e.i(271645),o=e.i(336973),l=e.i(727996),d=e.i(153158),c=e.i(168197);function u({readiness:e,keysAskedAt:a,className:o}){let l=(0,s.cn)("stg:flex stg:min-w-0 stg:flex-wrap stg:items-center stg:justify-end stg:gap-2 stg:text-xs",o);switch(e.kind){case"loading":return(0,t.jsx)("span",{className:(0,s.cn)(l,"stg:text-muted-foreground"),role:"status",children:"Reading…"});case"unreadable":return(0,t.jsx)("span",{className:(0,s.cn)(l,"stg:text-destructive"),role:"status",children:e.error?.message??"This server could not be read."});case"signed-in":case"approval-pending":{let r=(0,n.inlineHealthProps)(e.connectionHealth,"signed-in"===e.kind,"approval-pending"===e.kind);return(0,t.jsxs)("span",{className:(0,s.cn)(l,r.textClass),role:"status",children:[(0,t.jsx)(g,{className:r.dotClass}),r.label]})}case"sign-in-needed":{let a=(0,n.inlineHealthProps)(e.connectionHealth,!1,!1);return(0,t.jsxs)("span",{className:l,children:[e.error&&(0,t.jsx)("span",{role:"alert",className:"stg:text-destructive",children:e.error.message}),!e.isSigningIn&&(0,t.jsxs)("span",{className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1.5",a.textClass),children:[(0,t.jsx)(g,{className:a.dotClass}),a.label]}),(0,t.jsx)(r.Button,{variant:"primary",size:"sm",onClick:e.signIn,disabled:e.isSigningIn,"aria-label":`Sign in to ${e.mcpServer?.metadata?.name||e.mcpServer?.metadata?.slug||"this server"}`,children:e.isSigningIn?(0,i.oauthPhaseLabel)(e.phase):"Sign in"})]})}case"api-key":return(0,t.jsxs)("span",{className:(0,s.cn)(l,"stg:text-muted-foreground"),children:["Needs ",(0,t.jsx)("code",{className:"stg:font-mono stg:text-foreground",children:e.declaredVariables.join(", ")}),"agent"===a?"; the agent asks at its first session.":"; set when you connect it."]});case"open":return null;default:return e.kind}}function g({className:e}){return(0,t.jsx)("span",{"aria-hidden":"true",className:(0,s.cn)("stg:inline-block stg:size-2 stg:rounded-full",e)})}e.s(["McpServerReadiness",0,function({org:e,slug:s,keysAskedAt:r,onSignedIn:n,className:i}){let g=function(e,t,s){let{mcpServer:r,isLoading:n,error:i,refetch:u}=(0,l.useMcpServer)(e,t),g=(0,d.useMcpServerCredentials)(e,r),p=(0,c.useMcpServerOAuthConnect)(),h=(0,a.useMemo)(()=>Object.keys(r?.spec?.env??{}),[r]),m=(0,a.useMemo)(()=>i?"unreadable":n||null===r?"loading":"oauth"===g.authMode?g.isOAuthConnected&&g.connectionHealth!==o.OAuthConnectionHealth.OAUTH_CONNECTION_HEALTH_TOKEN_EXPIRED?"signed-in":g.isVendorApprovalBlocked?"approval-pending":"sign-in-needed":h.length>0?"api-key":"open",[i,n,r,g.authMode,g.isOAuthConnected,g.connectionHealth,g.isVendorApprovalBlocked,h.length]),f=(0,a.useCallback)(()=>{u(),g.refetch()},[u,g.refetch]),x=(0,a.useCallback)(()=>{let t=r?.metadata?.id;"sign-in-needed"===m&&t&&null!==e&&(p.clearError(),p.startOAuth(t,e,h).then(()=>{f(),s?.(t)},()=>void 0))},[m,r,e,p.clearError,p.startOAuth,h,f,s]),b=(0,a.useMemo)(()=>i||(p.error?Error((0,c.getOAuthConnectErrorMessage)(p.error,p.failedPhase)):null),[i,p.error,p.failedPhase]);return(0,a.useMemo)(()=>({kind:m,mcpServer:r,connectionHealth:g.connectionHealth,declaredVariables:h,error:b,signIn:x,phase:p.phase,isSigningIn:p.isInProgress,refetch:f}),[m,r,g.connectionHealth,h,b,x,p.phase,p.isInProgress,f])}(e,s,n);return(0,t.jsx)(u,{readiness:g,keysAskedAt:r,className:i})}],266584)},768079,e=>{"use strict";let t=(0,e.i(271645).createContext)(null);e.s(["AuthContext",0,t])},531278,e=>{"use strict";let t=(0,e.i(475254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],531278)},55389,e=>{"use strict";var t=e.i(271645),s=e.i(891287),r=e.i(95265),n=e.i(586108),i=e.i(207344);let a="stigmer:github:oauth-state",o="GITHUB_TOKEN",l="stigmer:github:callback-success";async function d(e){try{let t=await fetch("https://api.github.com/user",{headers:{Authorization:`Bearer ${e}`}});if(!t.ok)return null;let s=await t.json();return{login:s.login,avatarUrl:s.avatar_url,name:s.name??null}}catch{return null}}function c(e,t){return e?.spec?.data!=null&&t in e.spec.data}e.s(["GITHUB_CALLBACK_MESSAGE_TYPE",0,l,"useGitHubConnection",0,function(e,u){let g=(0,n.useStigmer)(),[p,h]=(0,t.useState)(null),[m,f]=(0,t.useState)(null),[x,b]=(0,t.useState)(!0),[v,y]=(0,t.useState)(!1),[k,j]=(0,t.useState)(!1),A=(0,i.usePersonalEnvironment)(e||null),w=(0,t.useRef)(A);w.current=A;let S=(0,t.useRef)(!1),C=(0,t.useRef)(null),N=(0,t.useRef)(null),[E,R]=(0,t.useState)(e);e!==E&&(R(e),b(!!e),S.current=!1),(0,t.useEffect)(()=>{if(!e||A.isLoading||S.current)return;S.current=!0;let t=A.environment;if(!c(t,o)||!t)return void b(!1);let n=!1;return async function(){try{let e=await g.environment.getSecretValue((0,s.create)(r.EnvironmentSecretValueInputSchema,{environmentId:t.metadata.id,key:o}));if(n)return;let i=e.value;if(i){let e=await d(i);if(n)return;if(e)h(i),f(e);else{try{await w.current.removeVariables([o])}catch{}h(null),f(null)}}}catch{}n||b(!1)}(),()=>{n=!0}},[e,A.isLoading,A.environment,g]),(0,t.useEffect)(()=>{function e(e){e.origin!==window.location.origin||e.data?.type===l&&(N.current&&(clearInterval(N.current),N.current=null),C.current=null,y(!1),b(!0),S.current=!1,w.current.refetch())}return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[]),(0,t.useEffect)(()=>()=>{N.current&&clearInterval(N.current)},[]);let M=(0,t.useCallback)(async(e,t)=>{let s=u?.callbackUrl??e,{authorizeUrl:r,state:n}=await g.github.getOAuthAuthorizeUrl({redirectUri:s});if(sessionStorage.setItem(a,n),!t?.popup){window.location.href=r;return}if(u?.openUrl){y(!0),await u.openUrl(r);return}if(C.current&&!C.current.closed)return void C.current.focus();let i=window.screenX+(window.outerWidth-600)/2,o=window.screenY+(window.outerHeight-700)/2,l=window.open(r,"stigmer-github-auth",`width=600,height=700,left=${i},top=${o},popup=yes`);if(!l||l.closed)return void j(!0);j(!1),y(!0),C.current=l;let d=setInterval(()=>{l.closed&&(clearInterval(d),N.current===d&&(N.current=null,C.current=null,y(!1),b(!0),S.current=!1,w.current.refetch()))},500);N.current=d},[g,u?.openUrl,u?.callbackUrl]),W=(0,t.useCallback)(async(e,t,s)=>{let r=function(){try{if(window.opener&&!window.opener.closed){let e=window.opener.sessionStorage.getItem(a);if(e)return e}}catch{}return sessionStorage.getItem(a)}();if(r&&r!==t)throw Error("OAuth state mismatch — possible CSRF attack");sessionStorage.removeItem(a);try{window.opener?.sessionStorage?.removeItem(a)}catch{}try{let{accessToken:r}=await g.github.exchangeOAuthCode({code:e,state:t,redirectUri:s});await w.current.getOrCreate(),await w.current.addVariables({[o]:{value:r,isSecret:!0}}),h(r);let n=await d(r);f(n)}finally{y(!1)}},[g]),_=(0,t.useCallback)(()=>{y(!1),b(!0),S.current=!1,w.current.refetch()},[]),I=(0,t.useCallback)(()=>{sessionStorage.removeItem(a),h(null),f(null),C.current&&!C.current.closed&&C.current.close(),C.current=null,N.current&&(clearInterval(N.current),N.current=null),y(!1);let e=w.current.environment;e&&c(e,o)&&w.current.removeVariables([o]).catch(()=>{})},[]),L=null!==p;return(0,t.useMemo)(()=>({isConnected:L,isLoading:x,isConnecting:v,popupBlocked:k,user:m,token:p,connect:M,handleCallback:W,reconcile:_,disconnect:I}),[L,x,v,k,m,p,M,W,_,I])}])},536907,879049,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),n=e.i(869803);let i={js:"code",jsx:"code",mjs:"code",cjs:"code",ts:"code",tsx:"code",py:"code",rb:"code",go:"code",rs:"code",java:"code",kt:"code",c:"code",h:"code",cpp:"code",cc:"code",hpp:"code",cs:"code",php:"code",swift:"code",sh:"code",bash:"code",zsh:"code",lua:"code",dart:"code",scala:"code",proto:"code",html:"markup",htm:"markup",xml:"markup",vue:"markup",svelte:"markup",css:"style",scss:"style",sass:"style",less:"style",json:"data",jsonc:"data",yaml:"data",yml:"data",toml:"data",ini:"data",env:"data",csv:"data",tsv:"data",md:"markdown",mdx:"markdown",markdown:"markdown",png:"image",jpg:"image",jpeg:"image",gif:"image",webp:"image",svg:"image",ico:"image",bmp:"image"};function a({fileName:e}){let s,r=(s=e.lastIndexOf("."))<0||s===e.length-1?"generic":i[e.slice(s+1).toLowerCase()]??"generic";return(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round",className:"stg:shrink-0","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M9.5 1.5H4.5C3.95 1.5 3.5 1.95 3.5 2.5V13.5C3.5 14.05 3.95 14.5 4.5 14.5H11.5C12.05 14.5 12.5 14.05 12.5 13.5V4.5L9.5 1.5Z"}),(0,t.jsx)("path",{d:"M9.3 1.7V4.5H12.3"}),o[r]]})}let o={code:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M7 8.5L5.75 9.75L7 11"}),(0,t.jsx)("path",{d:"M9 8.5L10.25 9.75L9 11"})]}),markup:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M6.5 8.5L5.5 9.9L6.5 11.3"}),(0,t.jsx)("path",{d:"M9.5 8.5L10.5 9.9L9.5 11.3"})]}),style:(0,t.jsx)("path",{d:"M5.5 9.3H10.5M5.5 11.1H8.5"}),data:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M7 8.4C6.2 8.4 6.2 9.3 6.2 9.9C6.2 10.5 6.2 11.4 5.4 11.4"}),(0,t.jsx)("path",{d:"M9 8.4C9.8 8.4 9.8 9.3 9.8 9.9C9.8 10.5 9.8 11.4 10.6 11.4"})]}),markdown:(0,t.jsx)("path",{d:"M5.4 11.3V8.6L6.9 10.1L8.4 8.6V11.3M10.4 8.7V11.1M9.5 10.2L10.4 11.2L11.3 10.2"}),image:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:"6.4",cy:"9",r:"0.7"}),(0,t.jsx)("path",{d:"M5.2 11.4L7.3 9.9L10.6 11.6"})]}),generic:(0,t.jsx)("path",{d:"M5.5 9.3H10.5M5.5 11.1H10.5"})};function l({open:e=!1}){return(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round",className:"stg:shrink-0","aria-hidden":"true",children:e?(0,t.jsx)("path",{d:"M1.8 5.5V12A1 1 0 002.8 13H12.6L14.5 7.5H4.2L2.8 11"}):(0,t.jsx)("path",{d:"M1.8 4.5A1 1 0 012.8 3.5H6L7.3 5H13.2A1 1 0 0114.2 6V12A1 1 0 0113.2 13H2.8A1 1 0 011.8 12V4.5Z"})})}e.s(["FileTypeIcon",0,a,"FolderTypeIcon",0,l],879049);let d="application/x-stigmer-file-ref";e.s(["FILE_REF_MIME",0,d,"FileTreeNode",0,function e({node:i,selectedPath:o,onSelect:c,onActivate:u,depth:g,enableDrag:p=!1,showIcons:h=!1,indentGuides:m=!1,maxInitialDepth:f}){let[x,b]=(0,s.useState)(void 0===f||g<f),v=!!i.children,y=i.path===o,k=p&&!v,j=(0,s.useCallback)(()=>{v?b(e=>!e):c(i.path)},[v,i.path,c]),A=(0,s.useCallback)(()=>{v||u?.(i.path)},[v,i.path,u]),w=(0,s.useCallback)(e=>{e.dataTransfer.setData(d,JSON.stringify({path:i.path})),e.dataTransfer.effectAllowed="link"},[i.path]);return(0,t.jsxs)("li",{role:"treeitem","aria-level":g+1,"aria-expanded":v?x:void 0,children:[(0,t.jsxs)("button",{type:"button",onClick:j,onDoubleClick:u?A:void 0,draggable:k,onDragStart:k?w:void 0,className:(0,r.cn)("stg:flex stg:w-full stg:items-center stg:gap-1.5 stg:py-1 stg:text-left stg:text-xs stg:transition-colors","stg:hover:bg-muted","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-inset stg:focus-visible:ring-ring",y&&!v&&"stg:bg-muted stg:text-foreground stg:font-medium",!y&&"stg:text-muted-foreground",k&&"stg:cursor-grab stg:active:cursor-grabbing"),style:{paddingLeft:m?"8px":`${12+12*g}px`,paddingRight:"8px"},"aria-current":y?"true":void 0,children:[v&&(0,t.jsx)("span",{"aria-hidden":"true",className:"stg:text-[10px] stg:text-muted-foreground-subtle",children:x?"▼":"▶"}),h&&(v?(0,t.jsx)(l,{open:x}):(0,t.jsx)(a,{fileName:i.name})),(0,t.jsx)("span",{className:(0,r.cn)("stg:truncate",v&&"stg:font-medium stg:text-foreground"),children:i.name})]}),v&&x&&i.children&&(0,t.jsx)("ul",{role:"group",className:(0,r.cn)(n.UNSTYLED_LIST,m&&"stg:ml-3 stg:border-l stg:border-border"),children:i.children.map(s=>(0,t.jsx)(e,{node:s,selectedPath:o,onSelect:c,onActivate:u,depth:g+1,enableDrag:p,showIcons:h,indentGuides:m,maxInitialDepth:f},s.path))})]})}],536907)},469196,e=>{"use strict";e.s(["buildFileTree",0,function(e){let t=[];for(let s of[...e].sort((e,t)=>e.path.localeCompare(t.path))){let e=s.path.split("/");if(1===e.length)t.push({name:e[0],path:s.path});else{let r=t;for(let t=0;t<e.length-1;t++){let s=e[t],n=r.find(e=>e.name===s&&e.children);n||(n={name:s,path:e.slice(0,t+1).join("/")+"/",children:[]},r.push(n)),r=n.children}r.push({name:e[e.length-1],path:s.path})}}return t}])},488479,e=>{"use strict";var t=e.i(843476),s=e.i(893976);function r({changeType:e}){return(0,t.jsx)("span",{className:(0,s.cn)("stg:shrink-0 stg:font-mono stg:text-[10px] stg:font-bold","modified"===e?"stg:text-diff-hunk-header-fg":"added"===e?"stg:text-diff-added-fg":"stg:text-diff-removed-fg"),"aria-label":e,children:"modified"===e?"M":"added"===e?"A":"D"})}function n({additions:e,deletions:s}){return(0,t.jsxs)("span",{className:"stg:shrink-0 stg:font-mono stg:text-[10px]",children:[e>0&&(0,t.jsxs)("span",{className:"stg:text-diff-added-fg",children:["+",e]}),e>0&&s>0&&" ",s>0&&(0,t.jsxs)("span",{className:"stg:text-diff-removed-fg",children:["-",s]})]})}e.s(["DiffFileList",0,function({files:e,selectedPath:i,onSelect:a,className:o}){return 0===e.length?null:(0,t.jsx)("nav",{"aria-label":"Changed files",className:(0,s.cn)("stg:flex stg:flex-col stg:overflow-auto",o),children:e.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>a(e.path),"aria-current":e.path===i?"true":void 0,className:(0,s.cn)("stg:flex stg:items-center stg:gap-2 stg:px-3 stg:py-1.5 stg:text-left stg:text-xs stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:focus-visible:ring-inset",e.path===i?"stg:bg-accent-hover stg:text-foreground":"stg:text-muted-foreground stg:hover:bg-accent-hover stg:hover:text-foreground"),children:[(0,t.jsx)(r,{changeType:e.changeType}),(0,t.jsx)("span",{className:"stg:min-w-0 stg:flex-1 stg:truncate stg:font-mono",children:e.path}),(0,t.jsx)(n,{additions:e.additions,deletions:e.deletions})]},e.path))})}])},745176,e=>{"use strict";e.s(["downloadTextFile",0,function(e,t,s){let r=new Blob([e],{type:`${s};charset=utf-8;`}),n=URL.createObjectURL(r),i=document.createElement("a");i.href=n,i.download=t,i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(n)}])},926059,e=>{"use strict";e.i(222258);var t=e.i(967785),s=e.i(735922);function r(e){var t;let s={name:e.name,kind:(t=e.kind,n.get(t)??`unknown_${t}`)};return e.taskConfig&&Object.keys(e.taskConfig).length>0&&(s.task_config=function e(t){if(null==t)return t;if("bigint"==typeof t)return Number(t);if("object"!=typeof t)return t;if(Array.isArray(t))return t.map(e);let s={};for(let[r,n]of Object.entries(t))s[r]=e(n);return s}(e.taskConfig)),e.export?.as&&(s.export={as:e.export.as}),e.flow?.then&&(s.flow={then:e.flow.then}),s}let n=new Map(Object.entries(s.WorkflowTaskKind).filter(e=>"number"==typeof e[1]&&e[1]!==s.WorkflowTaskKind.workflow_task_kind_unspecified).map(([e,t])=>[t,e])),i=new Map(Array.from(n.entries()).map(([e,t])=>[t,e])),a=new Map([[s.BudgetExceededPolicy.budget_exceeded_terminate,"budget_exceeded_terminate"],[s.BudgetExceededPolicy.budget_exceeded_human_review,"budget_exceeded_human_review"],[s.BudgetExceededPolicy.budget_exceeded_warn,"budget_exceeded_warn"]]),o=new Map(Array.from(a.entries()).map(([e,t])=>[t,e]));function l(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function d(e,t,s){let r=e[t];if("string"!=typeof r||0===r.length)throw Error(`Workflow YAML is missing required field: ${s}.`);return r}function c(e,t){let s=e[t];return"string"==typeof s&&s.length>0?s:void 0}function u(e){if("bigint"==typeof e)return e;if("number"==typeof e&&Number.isFinite(e))return BigInt(Math.round(e));if("string"==typeof e)try{return BigInt(e)}catch{}}e.s(["parseWorkflowYaml",0,function(e,s){let r=function(e){let s;try{s=(0,t.parse)(e)}catch{throw Error("Failed to parse content as YAML.")}if(!l(s))throw Error("YAML must be a mapping document, not a scalar or list.");return s}(e);var n=r;let a=n.kind;if("string"==typeof a&&"Workflow"!==a)throw Error(`Expected resource kind "Workflow", got "${a}".`);if(!l(n.metadata))throw Error("Workflow YAML is missing required field: metadata.");if(!l(n.spec))throw Error("Workflow YAML is missing required field: spec.");let g=r.metadata,p=r.spec,h=d(g,"name","metadata.name"),m=c(g,"slug"),f=function(e,t){let s=e[t];if(!l(s))return;let r={},n=!1;for(let[e,t]of Object.entries(s))"string"==typeof t&&(r[e]=t,n=!0);return n?r:void 0}(g,"labels"),x=function(e){let t=e.document;if(!l(t))throw Error("Workflow YAML is missing required field: spec.document.");return{dsl:c(t,"dsl")??"1.0.0",namespace:d(t,"namespace","spec.document.namespace"),name:d(t,"name","spec.document.name"),version:d(t,"version","spec.document.version"),...t.description&&"string"==typeof t.description?{description:t.description}:{}}}(p),b=function(e){let t=e.tasks;if(!Array.isArray(t)||0===t.length)throw Error("Workflow YAML is missing required field: spec.tasks (must be a non-empty list).");return t.filter(l).map((e,t)=>{var s;let r=e.name;if("string"!=typeof r||0===r.length)throw Error(`Workflow YAML: task at index ${t} is missing required field: name.`);let n=e.kind;if("string"!=typeof n||0===n.length)throw Error(`Workflow YAML: task "${r}" is missing required field: kind.`);let a=(s=n,i.get(s));if(void 0===a)throw Error(`Workflow YAML: task "${r}" has unknown kind "${n}".`);let o=e.task_config??e.taskConfig;if(!l(o))throw Error(`Workflow YAML: task "${r}" is missing required field: task_config.`);let d=e.export??e.export,c=e.flow,u={name:r,kind:a,taskConfig:o};if(l(d)){let e=d.as;"string"==typeof e&&e.length>0&&(u.export={as:e})}if(l(c)){let e=c.then;"string"==typeof e&&e.length>0&&(u.flow={then:e})}return u})}(p),v=function(e){let t=e.env;if(!l(t))return;let s={},r=!1;for(let[e,n]of Object.entries(t)){if(!l(n))continue;let t=n.is_secret??n.isSecret,i=n.description,a=n.optional;s[e]={..."boolean"==typeof t&&{isSecret:t},..."string"==typeof i&&{description:i},..."boolean"==typeof a&&{optional:a}},r=!0}return r?s:void 0}(p),y=function(e){var t;let s=e.budget;if(!l(s))return;let r=u(s.max_cost_micros??s.maxCostMicros),n=u(s.max_total_tokens??s.maxTotalTokens),i=function(e){if("number"==typeof e&&Number.isFinite(e))return e;if("string"==typeof e){let t=Number(e);return Number.isFinite(t)?t:void 0}}(s.max_duration_seconds??s.maxDurationSeconds),a=s.on_exceeded??s.onExceeded,d="string"==typeof a?(t=a,o.get(t)):void 0;if(void 0!==r&&r>BigInt(0)||void 0!==n&&n>BigInt(0)||void 0!==i&&i>0)return{...void 0!==r&&{maxCostMicros:r},...void 0!==n&&{maxTotalTokens:n},...void 0!==i&&{maxDurationSeconds:i},...void 0!==d&&{onExceeded:d}}}(p),k=c(p,"description");return{name:h,org:s,...void 0!==m&&{slug:m},...void 0!==f&&{labels:f},...void 0!==k&&{description:k},document:x,tasks:b,...void 0!==v&&{env:v},...void 0!==y&&{budget:y}}},"serializeWorkflowYaml",0,function(e){let n={apiVersion:e.apiVersion||"agentic.stigmer.ai/v1",kind:e.kind||"Workflow",metadata:function(e){let t=e.metadata;if(!t)return{};let s={name:t.name};return t.org&&(s.org=t.org),t.slug&&t.slug!==t.name&&(s.slug=t.slug),t.labels&&Object.keys(t.labels).length>0&&(s.labels={...t.labels}),s}(e),spec:function(e){var t,n,i,o;let l,d,c,u;if(!e)return{};let g={};return e.description&&(g.description=e.description),e.document&&(t=e.document,l={},t.dsl&&(l.dsl=t.dsl),t.namespace&&(l.namespace=t.namespace),t.name&&(l.name=t.name),t.version&&(l.version=t.version),t.description&&(l.description=t.description),g.document=l),e.tasks.length>0&&(g.tasks=e.tasks.map(r)),e.env&&Object.keys(e.env).length>0&&(g.env=function(e){let t={};for(let[s,r]of Object.entries(e)){let e={};r.isSecret&&(e.is_secret=!0),r.description&&(e.description=r.description),r.optional&&(e.optional=!0),t[s]=e}return t}(e.env)),e.budget&&(Number((n=e.budget).maxCostMicros)>0||Number(n.maxTotalTokens)>0||n.maxDurationSeconds>0)&&(i=e.budget,d={},c=Number(i.maxCostMicros),u=Number(i.maxTotalTokens),c>0&&(d.max_cost_micros=c),u>0&&(d.max_total_tokens=u),i.maxDurationSeconds>0&&(d.max_duration_seconds=i.maxDurationSeconds),i.onExceeded!==s.BudgetExceededPolicy.budget_exceeded_policy_unspecified&&(o=i.onExceeded,d.on_exceeded=a.get(o)??"budget_exceeded_policy_unspecified"),g.budget=d),g}(e.spec)};return(0,t.stringify)(n,{lineWidth:0,blockQuote:"literal"})}])},361353,e=>{"use strict";e.s(["formatRelativeTime",0,function(e,t){let s=t??new Date,r=s.getTime()-e.getTime();if(r<6e4)return"now";let n=Math.floor(r/6e4);if(n<60)return`${n}m`;let i=Math.floor(n/60);if(i<24)return`${i}h`;let a=Math.floor(i/24);if(a<7)return`${a}d`;let o=e.getFullYear()===s.getFullYear();return e.toLocaleDateString(void 0,{month:"short",day:"numeric",...o?{}:{year:"numeric"}})}])},312056,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(618566);let n=(0,s.createContext)(null);function i(){return window.location.pathname}e.s(["AppNavigationProvider",0,function({children:e}){let[a,o]=(0,s.useState)(i),l=(0,s.useRef)(a);(0,s.useEffect)(()=>{l.current=a},[a]);let d=(0,r.usePathname)(),[c,u]=(0,s.useState)(d);d!==c&&(u(d),d!==a&&o(d));let g=(0,s.useCallback)(e=>{e!==l.current&&(o(e),window.history.pushState(null,"",e))},[]);(0,s.useEffect)(()=>{function e(){o(window.location.pathname)}return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]);let p=(0,s.useMemo)(()=>({currentPath:a,navigate:g}),[a,g]);return(0,t.jsx)(n.Provider,{value:p,children:e})},"useAppNavigation",0,function(){let e=(0,s.useContext)(n);if(!e)throw Error("useAppNavigation must be used within <AppNavigationProvider>");return e}])},635549,e=>{"use strict";var t=e.i(271645),s=e.i(312056);let r=/^\/executions\/(.+)/;e.s(["useExecutionNavigation",0,function(){let{currentPath:e,navigate:n}=(0,s.useAppNavigation)(),i=r.test(e);return{activeExecutionId:i?e.match(r)?.[1]??null:null,isExecutionZone:i,navigateToExecution:(0,t.useCallback)(e=>{n(`/executions/${e}`)},[n])}}])},244686,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(566022),n=e.i(893976);let i=new Map([[r.ExecutionPhase.EXECUTION_PENDING,{label:"Pending",icon:o,colorClass:"stg:text-muted-foreground"}],[r.ExecutionPhase.EXECUTION_IN_PROGRESS,{label:"Running",icon:o,colorClass:"stg:text-foreground"}],[r.ExecutionPhase.EXECUTION_COMPLETED,{label:"Completed",icon:function(){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M2.5 6L5 8.5L9.5 3.5"})})},colorClass:"stg:text-success"}],[r.ExecutionPhase.EXECUTION_FAILED,{label:"Failed",icon:l,colorClass:"stg:text-destructive"}],[r.ExecutionPhase.EXECUTION_CANCELLED,{label:"Cancelled",icon:l,colorClass:"stg:text-muted-foreground"}],[r.ExecutionPhase.EXECUTION_TERMINATED,{label:"Terminated",icon:function(){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",children:(0,t.jsx)("rect",{x:"2",y:"2",width:"8",height:"8",rx:"1"})})},colorClass:"stg:text-destructive"}],[r.ExecutionPhase.EXECUTION_PAUSED,{label:"Paused",icon:function(){return(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",children:[(0,t.jsx)("rect",{x:"2.5",y:"2",width:"2.5",height:"8",rx:"0.5"}),(0,t.jsx)("rect",{x:"7",y:"2",width:"2.5",height:"8",rx:"0.5"})]})},colorClass:"stg:text-muted-foreground"}]]),a=(0,s.memo)(function({phase:e,className:s}){let r=i.get(e);if(!r)return null;let a=r.icon;return(0,t.jsxs)("span",{role:"status","aria-label":r.label,className:(0,n.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:text-xs stg:font-medium",r.colorClass,s),children:[(0,t.jsx)("span",{"aria-hidden":"true",children:(0,t.jsx)(a,{})}),r.label]})});function o(){return(0,t.jsxs)("span",{className:"stg:relative stg:flex stg:h-2 stg:w-2",children:[(0,t.jsx)("span",{className:"stg:absolute stg:inline-flex stg:h-full stg:w-full stg:animate-ping stg:rounded-full stg:bg-current stg:opacity-75"}),(0,t.jsx)("span",{className:"stg:relative stg:inline-flex stg:h-2 stg:w-2 stg:rounded-full stg:bg-current"})]})}function l(){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M3 3L9 9M9 3L3 9"})})}e.s(["WorkflowExecutionPhaseBadge",0,a])},879738,e=>{"use strict";var t=e.i(891287),s=e.i(218766),r=e.i(586108),n=e.i(583093);let i={executions:[],totalPages:0};e.s(["useWorkflowExecutionList",0,function(e){let a=(0,r.useStigmer)(),o=e?.pageSize??20,l=e?.pageToken??"",d=e?.workflowId??null,c=e?.org??"",u=async()=>{if(d){let e=await a.workflowExecution.listByWorkflow((0,t.create)(s.ListWorkflowExecutionsByWorkflowRequestSchema,{workflowId:d,pageSize:o,pageToken:l}));return{executions:[...e.entries],totalPages:e.totalPages}}let e=await a.workflowExecution.list((0,t.create)(s.ListWorkflowExecutionsRequestSchema,{pageSize:o,pageToken:l,org:c}));return{executions:[...e.entries],totalPages:e.totalPages}},{data:g,isLoading:p,isRefetching:h,error:m,refetch:f}=(0,n.useFetch)(u,[a,d,c,o,l],i);return{executions:g.executions,totalPages:g.totalPages,isLoading:p,isRefetching:h,error:m,refetch:f}}])},267460,e=>{"use strict";let t=BigInt(0);function s(e){if(e<1e3)return`${e}ms`;let t=e/1e3;if(t<60)return`${t.toFixed(1)}s`;let s=Math.floor(t/60),r=Math.round(t%60);if(s<60)return r>0?`${s}m ${r}s`:`${s}m`;let n=Math.floor(s/60),i=s%60;return i>0?`${n}h ${i}m`:`${n}h`}function r(e){let t=Number(e)/1e6;return t<.01?`$${t.toFixed(4)}`:`$${t.toFixed(2)}`}e.s(["formatDuration",0,s,"formatDurationSec",0,function(e){if(e<60)return`${Math.round(e)}s`;if(e<3600){let t=Math.floor(e/60),s=Math.round(e%60);return s>0?`${t}m ${s}s`:`${t}m`}let t=Math.floor(e/3600),s=Math.floor(e%3600/60);return s>0?`${t}h ${s}m`:`${t}h`},"formatMetaChips",0,function(e){let n=[];return e.durationMs&&e.durationMs>0&&n.push(s(e.durationMs)),e.costMicros&&e.costMicros>t&&n.push(r(e.costMicros)),e.tokens&&e.tokens>t&&n.push(`${e.tokens.toLocaleString()} tok`),n.length>0?n.join(" · "):null},"formatMicroUsd",0,r,"formatTimestamp",0,function(e){if(!e)return"";try{let t=new Date(e);if(Number.isNaN(t.getTime()))return e;return t.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}catch{return e}},"formatTokenCount",0,function(e){let t=Number(e);return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:t.toLocaleString()}])},911237,e=>{"use strict";var t=e.i(566022);BigInt(0);let s=new Set([t.WorkflowTaskStatus.WORKFLOW_TASK_COMPLETED,t.WorkflowTaskStatus.WORKFLOW_TASK_FAILED,t.WorkflowTaskStatus.WORKFLOW_TASK_SKIPPED]);function r(e){if(!e)return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t}function n(e){let n=e.metadata,i=e.status,a=i?.tasks??[],o=r(i?.startedAt),l=r(i?.completedAt),d=null;o&&l?d=l.getTime()-o.getTime():o&&i?.phase===t.ExecutionPhase.EXECUTION_IN_PROGRESS&&(d=Date.now()-o.getTime());let c=null,u=null,g=0,p=0,h=!1;for(let e of a)s.has(e.status)&&g++,c||e.status!==t.WorkflowTaskStatus.WORKFLOW_TASK_FAILED||(c=e.taskName||null),u||e.status!==t.WorkflowTaskStatus.WORKFLOW_TASK_IN_PROGRESS||(u=e.taskName||null),e.status===t.WorkflowTaskStatus.WORKFLOW_TASK_WAITING_APPROVAL&&(h=!0,u||(u=e.taskName||null)),p+=function(e){if(!e?.fields)return 0;let t=e.fields.retry_count??e.fields.retryCount;return t&&"object"==typeof t&&null!==t&&"numberValue"in t?Math.max(0,Math.floor(t.numberValue??0)):0}(e.metadata);let m=BigInt(i?.totalCostMicros??0),f=BigInt(i?.totalInputTokens??0),x=BigInt(i?.totalOutputTokens??0);return{id:n?.id??"",name:n?.name||n?.slug||"",phase:i?.phase??t.ExecutionPhase.EXECUTION_PHASE_UNSPECIFIED,startedAt:o,completedAt:l,durationMs:d,costMicros:m,inputTokens:f,outputTokens:x,totalTokens:f+x,taskCount:a.length,completedTaskCount:g,failedTaskName:c,currentTaskName:u,retryCount:p,hasHumanWait:h,error:i?.error||null,_source:e}}let i={name:(e,t)=>e.name.localeCompare(t.name),phase:(e,t)=>e.phase-t.phase,startedAt:(e,t)=>(e.startedAt?.getTime()??0)-(t.startedAt?.getTime()??0),duration:(e,t)=>(e.durationMs??-1)-(t.durationMs??-1),cost:(e,t)=>Number(e.costMicros-t.costMicros),tokens:(e,t)=>Number(e.totalTokens-t.totalTokens),tasks:(e,t)=>e.taskCount-t.taskCount};e.s(["deriveExecutionRow",0,n,"deriveExecutionRows",0,function(e){return e.map(n)},"filterExecutionRows",0,function(e,t){return e.filter(e=>(!t.phases?.length||!!t.phases.includes(e.phase))&&(null==t.minDurationMs||!((e.durationMs??-1)<t.minDurationMs))&&(null==t.maxDurationMs||!((e.durationMs??1/0)>t.maxDurationMs))&&(null==t.minCostMicros||!(e.costMicros<t.minCostMicros))&&(null==t.maxCostMicros||!(e.costMicros>t.maxCostMicros))&&(!t.failedTaskName||e.failedTaskName===t.failedTaskName)&&(!t.hasRetries||0!==e.retryCount)&&!0)},"sortExecutionRows",0,function(e,t,s){let r=i[t],n="desc"===s?-1:1;return[...e].sort((e,t)=>n*r(e,t))}])},348728,841358,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),n=e.i(170255),i=e.i(336973),a=e.i(437241),o=e.i(586108),l=e.i(289677),d=e.i(230849),c=e.i(4144),u=e.i(415774),g=e.i(862645),p=e.i(168197),h=e.i(254450);function m(e){var t;return t=e.mcpServerRef,`${t.org}/${t.slug}`}function f(e){let t=e.indexOf("/");return{org:e.slice(0,t),slug:e.slice(t+1),kind:n.ApiResourceKind.mcp_server}}function x({slug:e,onRemove:s,disabled:r}){return(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:rounded-md stg:bg-muted-faint stg:px-2 stg:py-1 stg:text-xs",children:[(0,t.jsx)(j,{}),(0,t.jsx)("span",{className:"stg:min-w-0 stg:flex-1 stg:truncate stg:text-foreground",children:e}),(0,t.jsx)("button",{type:"button",onClick:s,disabled:r,className:"stg:shrink-0 stg:text-muted-foreground stg:hover:text-destructive stg:disabled:pointer-events-none","aria-label":`Remove ${e}`,children:(0,t.jsx)(A,{})})]})}function b({serverKey:e,entry:s,onConfigure:n,onRetry:i,onRemove:a,disabled:o}){let l,d=(l=e.indexOf("/"),e.slice(l+1)),c="submitting"===s.status,u=null!=s.error;return(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsxs)("div",{className:(0,r.cn)("stg:flex stg:items-center stg:gap-2 stg:rounded-md stg:px-2 stg:py-1 stg:text-xs",u?"stg:bg-destructive-subtle":"stg:bg-muted-faint"),children:[(0,t.jsx)(v,{status:s.status,hasError:u}),(0,t.jsx)("span",{className:"stg:min-w-0 stg:flex-1 stg:truncate stg:text-foreground",children:d}),"loading"===s.status&&!u&&(0,t.jsx)("span",{className:"stg:shrink-0 stg:text-[0.6rem] stg:text-muted-foreground",children:"Loading…"}),"loading"===s.status&&u&&(0,t.jsx)("button",{type:"button",onClick:i,disabled:o,className:(0,r.cn)("stg:shrink-0 stg:rounded stg:px-1.5 stg:py-0.5 stg:text-[0.6rem] stg:font-medium","stg:text-destructive stg:hover:bg-destructive-subtle","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Retry"}),"needsSetup"===s.status&&(0,t.jsx)("button",{type:"button",onClick:n,disabled:o,className:(0,r.cn)("stg:shrink-0 stg:rounded stg:px-1.5 stg:py-0.5 stg:text-[0.6rem] stg:font-medium","stg:text-warning stg:hover:bg-warning/10","stg:disabled:pointer-events-none stg:disabled:opacity-50"),"aria-label":`Configure ${d}`,children:"Configure"}),c&&(0,t.jsx)("span",{className:"stg:shrink-0 stg:text-[0.6rem] stg:text-muted-foreground",children:"Saving…"}),"ready"===s.status&&(0,t.jsxs)("button",{type:"button",onClick:n,disabled:o,className:(0,r.cn)("stg:shrink-0 stg:flex stg:items-center stg:gap-0.5 stg:rounded stg:px-1.5 stg:py-0.5 stg:text-[0.6rem] stg:font-medium","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),"aria-label":`Configure ${d}`,children:[s.discoveredTools.length>0&&(0,t.jsxs)("span",{children:[s.enabledTools.length,"/",s.discoveredTools.length," tools"]}),(0,t.jsx)(w,{})]}),(0,t.jsx)("button",{type:"button",onClick:a,disabled:o||c,className:"stg:shrink-0 stg:text-muted-foreground stg:hover:text-destructive stg:disabled:pointer-events-none stg:disabled:opacity-50","aria-label":`Remove ${d}`,children:(0,t.jsx)(A,{})})]}),u&&"loading"===s.status&&(0,t.jsx)("p",{className:"stg:px-2 stg:text-[0.6rem] stg:leading-relaxed stg:text-destructive stg:line-clamp-2",children:s.error.message})]})}function v({status:e,hasError:s}){if(s)return(0,t.jsx)("span",{className:"stg:inline-block stg:size-2 stg:shrink-0 stg:rounded-full stg:bg-destructive","aria-label":"Error"});switch(e){case"loading":case"submitting":return(0,t.jsx)(S,{});case"needsSetup":return(0,t.jsx)("span",{className:"stg:inline-block stg:size-2 stg:shrink-0 stg:rounded-full stg:bg-warning","aria-label":"Needs setup"});case"ready":return(0,t.jsx)("span",{className:"stg:inline-block stg:size-2 stg:shrink-0 stg:rounded-full stg:bg-emerald-500","aria-label":"Ready"})}}function y({text:e,query:s}){if(!s)return(0,t.jsx)(t.Fragment,{children:e});let r=e.toLowerCase().indexOf(s.toLowerCase());return -1===r?(0,t.jsx)(t.Fragment,{children:e}):(0,t.jsxs)(t.Fragment,{children:[e.slice(0,r),(0,t.jsx)("span",{className:"stg:font-semibold",children:e.slice(r,r+s.length)}),e.slice(r+s.length)]})}function k(){return(0,t.jsx)("div",{className:"stg:space-y-1 stg:py-1",children:[60,75,50,68].map((e,s)=>(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1 stg:px-2 stg:py-1.5",children:[(0,t.jsx)("div",{className:"stg:h-3 stg:rounded stg:bg-muted stg:animate-pulse",style:{width:`${e}%`}}),(0,t.jsx)("div",{className:"stg:h-2 stg:rounded stg:bg-muted-subtle stg:animate-pulse",style:{width:`${Math.min(e+15,90)}%`}})]},s))})}function j(){return(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"stg:shrink-0 stg:text-muted-foreground","aria-hidden":"true",children:[(0,t.jsx)("rect",{x:"2",y:"2",width:"12",height:"4",rx:"1"}),(0,t.jsx)("rect",{x:"2",y:"10",width:"12",height:"4",rx:"1"}),(0,t.jsx)("circle",{cx:"5",cy:"4",r:"0.75",fill:"currentColor",stroke:"none"}),(0,t.jsx)("circle",{cx:"5",cy:"12",r:"0.75",fill:"currentColor",stroke:"none"})]})}function A(){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 4L10 10M10 4L4 10"})})}function w(){return(0,t.jsx)("svg",{width:"10",height:"10",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:"M6 4l4 4-4 4"})})}function S(){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"stg:shrink-0 stg:animate-spin stg:text-muted-foreground","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M8 2a6 6 0 1 0 6 6"})})}function C(e){return`${e.org}/${e.slug}`}e.s(["McpServerPicker",0,function({org:e,scope:v,value:A,onChange:w,onDisplayNameResolved:S,disabled:C,className:N,setup:E,initialServerKey:R,poolValues:M,activeOrg:W}){var _;let I,L,Z=(0,s.useId)(),F=`${Z}-list`,[V,B]=(0,s.useState)(v??"org"),{results:Y,isLoading:G,error:T,query:D,setQuery:O}=(_={scope:V},I=(0,o.useStigmer)(),L=(0,s.useCallback)(e=>I.mcpServer.list(e),[I]),(0,l.useResourceSearch)(L,e,_)),X=(0,p.useMcpServerOAuthConnect)(),P=(0,g.useMcpServerConnect)(),[K,H]=(0,s.useState)(null),[z,U]=(0,s.useState)(-1),[$,J]=(0,s.useState)(()=>R?{type:"configure",serverKey:R}:{type:"list"}),[Q,q]=(0,s.useState)(()=>new Set),ee=(0,s.useRef)(null),et=(0,d.useScrollShadows)(),es=(0,d.useScrollShadows)(),er=(0,s.useMemo)(()=>new Set(E?Object.keys(E.entries):(A??[]).map(m)),[E,A]),en=er.size,ei=(0,s.useMemo)(()=>Y.filter(e=>!er.has(`${e.org}/${e.slug}`)),[Y,er]);(0,s.useEffect)(()=>{"configure"!==$.type||E&&$.serverKey in E.entries||J({type:"list"})},[$,E]),(0,s.useEffect)(()=>{U(-1)},[D]),(0,s.useEffect)(()=>{z>=0&&et.scrollRef.current?.querySelector(`[data-idx="${z}"]`)?.scrollIntoView({block:"nearest"})},[z,et.scrollRef]);let ea=(0,s.useCallback)(e=>{let t={org:e.org,slug:e.slug,kind:n.ApiResourceKind.mcp_server};E?E.onServerAdded(t):w?.([...A??[],{mcpServerRef:t}]),S?.(`${e.org}/${e.slug}`,e.name)},[E,A,w,S]),eo=(0,s.useCallback)(e=>{"configure"===$.type&&$.serverKey===e&&J({type:"list"}),E?E.onServerRemoved(f(e)):w?.((A??[]).filter(t=>m(t)!==e))},[E,A,w,$]),el=(0,s.useCallback)(e=>{"ArrowDown"===e.key?(e.preventDefault(),U(e=>e<ei.length-1?e+1:e)):"ArrowUp"===e.key?(e.preventDefault(),U(e=>e>0?e-1:-1)):"Enter"===e.key&&z>=0&&z<ei.length?(e.preventDefault(),ea(ei[z])):"Enter"===e.key&&e.preventDefault()},[ei,z,ea]);if("configure"===$.type&&E){let s=E.entries[$.serverKey];if(!s||"loading"===s.status)return J({type:"list"}),null;let n=f($.serverKey),o="needsSetup"===s.status||"submitting"===s.status,l=s.mcpServer.spec?.auth,d=l?.targetEnvVar||null,c=!!l,g=!l?.oauthOnly,p=Q.has($.serverKey),h="needsSetup"===s.status?s.missingVariables:[],m=d&&!p?h.filter(e=>e.key!==d):h,x=m.length>0,b=!!d&&h.some(e=>e.key===d),v=s.mcpServer.status?.oauthStatus,y=c&&v?.vendorApprovalStatus===a.VendorApprovalStatus.PENDING,k=c&&(v?.vendorApprovalStatus===a.VendorApprovalStatus.PENDING||v?.vendorApprovalStatus===a.VendorApprovalStatus.REJECTED),j=Object.keys(s.mcpServer.spec?.env??{}),A=K===$.serverKey,w=A?X.error:null,S=A?X.failedPhase:null,R=A?P.error:null,_="connecting"===S,I=s.oauthConnectionHealth===i.OAuthConnectionHealth.OAUTH_CONNECTION_HEALTH_HEALTHY||s.oauthConnectionHealth===i.OAuthConnectionHealth.OAUTH_CONNECTION_HEALTH_TOKEN_EXPIRED_REFRESHABLE,L=_||c&&"ready"===s.status&&I&&0===s.discoveredTools.length,Z=c&&!p?{onSignIn:async()=>{if(!s.mcpServer.metadata?.id)return;let t=s.mcpServer.metadata.id,r=W??e;if(H($.serverKey),L){try{await P.connect(t,r,void 0,j),X.clearError(),E.onServerAdded(n)}catch{}return}try{await X.startOAuth(t,r,j),E.onServerAdded(n)}catch{}},phase:P.isConnecting&&A?"connecting":X.phase,isConnected:!b,connectionHealth:s.oauthConnectionHealth,error:w??R,failedPhase:w?S:R?"connecting":null,isOAuthStranded:L,onClearError:()=>{X.clearError(),P.clearError()},isVendorApprovalPending:y,isVendorApprovalBlocked:k,vendorApprovalDocsUrl:v?.vendorApprovalDocsUrl||null,manualEntrySupported:g}:void 0,F=c&&g?()=>{q(e=>{let t=new Set(e);return t.add($.serverKey),t})}:void 0,V=c&&p?()=>{q(e=>{let t=new Set(e);return t.delete($.serverKey),t})}:void 0;return(0,t.jsx)("div",{className:(0,r.cn)("stg:w-72",N),children:(0,t.jsx)(u.McpServerConfigPanel,{mcpServer:s.mcpServer,oauthSignIn:Z,credentials:o&&x?{variables:m,onSubmit:(e,t)=>E.onSubmitEnvVars(n,e,t),isSubmitting:"submitting"===s.status,poolValues:M}:void 0,onSwitchToManual:F,onSwitchToOAuth:V,discoveredTools:s.discoveredTools,toolApprovals:s.toolApprovals,enabledTools:"ready"===s.status?s.enabledTools:s.discoveredTools.map(e=>e.name),onEnabledToolsChange:e=>E.onEnabledToolsChange(n,e),onBack:()=>J({type:"list"}),error:s.error,disabled:C})})}return(0,t.jsxs)("div",{className:(0,r.cn)("stg:space-y-2 stg:w-72",N),children:[en>0&&(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("div",{className:"stg:text-[0.65rem] stg:font-medium stg:text-muted-foreground",children:"Selected"}),(0,t.jsxs)("div",{className:"stg:relative",children:[es.canScrollUp&&(0,t.jsx)(c.ScrollFade,{position:"top"}),(0,t.jsx)("div",{ref:es.scrollRef,className:"stg:max-h-28 stg:space-y-1 stg:overflow-y-auto",children:E?Object.entries(E.entries).map(([e,s])=>(0,t.jsx)(b,{serverKey:e,entry:s,onConfigure:()=>J({type:"configure",serverKey:e}),onRetry:()=>E.onServerAdded(f(e)),onRemove:()=>eo(e),disabled:C},e)):(A??[]).map(e=>{let s=m(e);return(0,t.jsx)(x,{slug:e.mcpServerRef.slug,onRemove:()=>eo(s),disabled:C},s)})}),es.canScrollDown&&(0,t.jsx)(c.ScrollFade,{position:"bottom"})]})]}),(0,t.jsx)("input",{ref:ee,type:"text",role:"combobox","aria-expanded":!0,"aria-controls":F,"aria-activedescendant":z>=0?`${Z}-opt-${z}`:void 0,placeholder:"Search MCP servers...",value:D,onChange:e=>O(e.target.value),onKeyDown:el,disabled:C,className:"stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground stg:placeholder:text-muted-foreground stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:disabled:pointer-events-none stg:disabled:opacity-50",autoFocus:!0}),(0,t.jsx)(h.ScopeToggle,{value:V,onChange:B,disabled:C}),T&&(0,t.jsx)("p",{className:"stg:text-xs stg:text-destructive",children:T.message}),(0,t.jsxs)("div",{className:"stg:relative",children:[et.canScrollUp&&(0,t.jsx)(c.ScrollFade,{position:"top"}),(0,t.jsx)("div",{ref:et.scrollRef,id:F,role:"listbox","aria-label":"MCP Servers",className:"stg:max-h-52 stg:overflow-y-auto",children:G?(0,t.jsx)(k,{}):0===ei.length?(0,t.jsx)("div",{className:"stg:py-4 stg:text-center stg:text-xs stg:text-muted-foreground",children:D?"No MCP servers match your search":en>0?"All available servers selected":"No MCP servers found"}):ei.map((e,s)=>(0,t.jsxs)("button",{id:`${Z}-opt-${s}`,type:"button","data-idx":s,onClick:()=>ea(e),disabled:C,className:(0,r.cn)("stg:group stg:flex stg:w-full stg:flex-col stg:gap-0.5 stg:rounded-md stg:px-2 stg:py-1.5 stg:text-left stg:text-xs stg:transition-colors","stg:disabled:pointer-events-none stg:disabled:opacity-50",s===z?"stg:bg-accent stg:text-foreground":"stg:text-foreground stg:hover:bg-accent-hover"),role:"option","aria-selected":s===z,children:[(0,t.jsxs)("span",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,t.jsx)(j,{}),(0,t.jsx)("span",{className:"stg:truncate stg:font-medium",children:(0,t.jsx)(y,{text:e.name,query:D})}),(0,t.jsx)("span",{className:"stg:ml-auto stg:shrink-0 stg:text-[0.6rem] stg:text-muted-foreground",children:e.org})]}),e.description&&(0,t.jsx)("span",{className:(0,r.cn)("stg:pl-5 stg:text-[0.65rem] stg:text-muted-foreground",s!==z&&"stg:line-clamp-2 stg:group-hover:line-clamp-none"),children:e.description})]},e.id))}),et.canScrollDown&&(0,t.jsx)(c.ScrollFade,{position:"bottom"})]})]})}],348728);let N="stgm-skill-list";function E({text:e,query:s}){if(!s)return(0,t.jsx)(t.Fragment,{children:e});let r=e.toLowerCase().indexOf(s.toLowerCase());return -1===r?(0,t.jsx)(t.Fragment,{children:e}):(0,t.jsxs)(t.Fragment,{children:[e.slice(0,r),(0,t.jsx)("span",{className:"stg:font-semibold",children:e.slice(r,r+s.length)}),e.slice(r+s.length)]})}function R(){return(0,t.jsx)("div",{className:"stg:space-y-1 stg:py-1",children:[55,70,45,62].map((e,s)=>(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1 stg:px-2 stg:py-1.5",children:[(0,t.jsx)("div",{className:"stg:h-3 stg:rounded stg:bg-muted stg:animate-pulse",style:{width:`${e}%`}}),(0,t.jsx)("div",{className:"stg:h-2 stg:rounded stg:bg-muted-subtle stg:animate-pulse",style:{width:`${Math.min(e+15,90)}%`}})]},s))})}function M(){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"stg:shrink-0 stg:text-muted-foreground","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M2 3h12M2 7h8M2 11h10M2 15h6"})})}function W(){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 4L10 10M10 4L4 10"})})}e.s(["SkillPicker",0,function({org:e,scope:i,value:a,onChange:u,onDisplayNameResolved:g,disabled:p,className:m}){var f;let x,b,[v,y]=(0,s.useState)(i??"org"),{results:k,isLoading:j,error:A,query:w,setQuery:S}=(f={scope:v},x=(0,o.useStigmer)(),b=(0,s.useCallback)(e=>x.skill.list(e),[x]),(0,l.useResourceSearch)(b,e,f)),[_,I]=(0,s.useState)(-1),L=(0,s.useRef)(null),Z=(0,d.useScrollShadows)(),F=(0,d.useScrollShadows)(),V=(0,s.useMemo)(()=>new Set(a.map(C)),[a]),B=(0,s.useMemo)(()=>k.filter(e=>!V.has(`${e.org}/${e.slug}`)),[k,V]);(0,s.useEffect)(()=>{I(-1)},[w]),(0,s.useEffect)(()=>{_>=0&&Z.scrollRef.current?.querySelector(`[data-idx="${_}"]`)?.scrollIntoView({block:"nearest"})},[_,Z.scrollRef]);let Y=(0,s.useCallback)(e=>{u([...a,{org:e.org,slug:e.slug,kind:n.ApiResourceKind.skill}]),g?.(`${e.org}/${e.slug}`,e.name)},[a,u,g]),G=(0,s.useCallback)(e=>{u(a.filter(t=>C(t)!==e))},[a,u]),T=(0,s.useCallback)(e=>{"ArrowDown"===e.key?(e.preventDefault(),I(e=>e<B.length-1?e+1:e)):"ArrowUp"===e.key?(e.preventDefault(),I(e=>e>0?e-1:-1)):"Enter"===e.key&&_>=0&&_<B.length?(e.preventDefault(),Y(B[_])):"Enter"===e.key&&e.preventDefault()},[B,_,Y]);return(0,t.jsxs)("div",{className:["stg:space-y-2 stg:w-72",m].filter(Boolean).join(" "),children:[a.length>0&&(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("div",{className:"stg:text-[0.65rem] stg:font-medium stg:text-muted-foreground",children:"Selected"}),(0,t.jsxs)("div",{className:"stg:relative",children:[F.canScrollUp&&(0,t.jsx)(c.ScrollFade,{position:"top"}),(0,t.jsx)("div",{ref:F.scrollRef,className:"stg:max-h-28 stg:space-y-1 stg:overflow-y-auto",children:a.map(e=>{let s=C(e);return(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:rounded-md stg:bg-muted-faint stg:px-2 stg:py-1 stg:text-xs",children:[(0,t.jsx)(M,{}),(0,t.jsx)("span",{className:"stg:min-w-0 stg:flex-1 stg:truncate stg:text-foreground",children:e.slug}),(0,t.jsx)("button",{type:"button",onClick:()=>G(s),disabled:p,className:"stg:shrink-0 stg:text-muted-foreground stg:hover:text-destructive stg:disabled:pointer-events-none","aria-label":`Remove ${e.slug}`,children:(0,t.jsx)(W,{})})]},s)})}),F.canScrollDown&&(0,t.jsx)(c.ScrollFade,{position:"bottom"})]})]}),(0,t.jsx)("input",{ref:L,type:"text",role:"combobox","aria-expanded":!0,"aria-controls":N,"aria-activedescendant":_>=0?`stgm-skill-${_}`:void 0,placeholder:"Search skills...",value:w,onChange:e=>S(e.target.value),onKeyDown:T,disabled:p,className:"stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground stg:placeholder:text-muted-foreground stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:disabled:pointer-events-none stg:disabled:opacity-50",autoFocus:!0}),(0,t.jsx)(h.ScopeToggle,{value:v,onChange:y,disabled:p}),A&&(0,t.jsx)("p",{className:"stg:text-xs stg:text-destructive",children:A.message}),(0,t.jsxs)("div",{className:"stg:relative",children:[Z.canScrollUp&&(0,t.jsx)(c.ScrollFade,{position:"top"}),(0,t.jsx)("div",{ref:Z.scrollRef,id:N,role:"listbox","aria-label":"Skills",className:"stg:max-h-52 stg:overflow-y-auto",children:j?(0,t.jsx)(R,{}):0===B.length?(0,t.jsx)("div",{className:"stg:py-4 stg:text-center stg:text-xs stg:text-muted-foreground",children:w?"No skills match your search":a.length>0?"All available skills selected":"No skills found"}):B.map((e,s)=>(0,t.jsxs)("button",{id:`stgm-skill-${s}`,type:"button","data-idx":s,onClick:()=>Y(e),disabled:p,className:(0,r.cn)("stg:group stg:flex stg:w-full stg:flex-col stg:gap-0.5 stg:rounded-md stg:px-2 stg:py-1.5 stg:text-left stg:text-xs stg:transition-colors","stg:disabled:pointer-events-none stg:disabled:opacity-50",s===_?"stg:bg-accent stg:text-foreground":"stg:text-foreground stg:hover:bg-accent-hover"),role:"option","aria-selected":s===_,children:[(0,t.jsxs)("span",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,t.jsx)(M,{}),(0,t.jsx)("span",{className:"stg:truncate stg:font-medium",children:(0,t.jsx)(E,{text:e.name,query:w})}),(0,t.jsx)("span",{className:"stg:ml-auto stg:shrink-0 stg:text-[0.6rem] stg:text-muted-foreground",children:e.org})]}),e.description&&(0,t.jsx)("span",{className:(0,r.cn)("stg:pl-5 stg:text-[0.65rem] stg:text-muted-foreground",s!==_&&"stg:line-clamp-2 stg:group-hover:line-clamp-none"),children:e.description})]},e.id))}),Z.canScrollDown&&(0,t.jsx)(c.ScrollFade,{position:"bottom"})]})]})}],841358)},686311,e=>{"use strict";let t=(0,e.i(475254).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",0,t],686311)},705450,e=>{"use strict";var t=e.i(142245),s=e.i(57897),r=e.i(274217),n=e.i(971811),i=e.i(647767);function a(e,t,r,n){return t.$typeName==e.typeName&&r.$typeName==e.typeName&&(t===r||o((0,s.reflect)(e,t),(0,s.reflect)(e,r),n))}function o(e,s,o){if("google.protobuf.Any"===e.desc.typeName&&(null==o?void 0:o.unpackAny)==!0)return function(e,s,i){if(e.typeUrl!==s.typeUrl)return!1;let o=(0,n.anyUnpack)(e,i.registry),l=(0,n.anyUnpack)(s,i.registry);if(o&&l){let e=i.registry.getMessage(o.$typeName);if(e)return a(e,o,l,i)}return(0,t.scalarEquals)(r.ScalarType.BYTES,e.value,s.value)}(e.message,s.message,o);for(let t of e.fields)if(!l(t,e,s,o))return!1;return((null==o?void 0:o.unknown)!=!0||!!function(e,s,n){function i(e,t){var s;let r=null!=(s=e.getUnknown())?s:[];return t?r.filter(s=>!t.getExtensionFor(e.desc,s.no)):r}let a=i(e,n),o=i(s,n);if(a.length!=o.length)return!1;for(let e=0;e<a.length;e++){let s=a[e],n=o[e];if(s.no!=n.no||s.wireType!=n.wireType||!(0,t.scalarEquals)(r.ScalarType.BYTES,s.data,n.data))return!1}return!0}(e,s,o.registry))&&((null==o?void 0:o.extensions)!=!0||!!function(e,t,s){function r(e,t){var s;return(null!=(s=e.getUnknown())?s:[]).map(s=>t.getExtensionFor(e.desc,s.no)).filter(e=>void 0!=e).filter((e,t,s)=>s.indexOf(e)===t)}let n=r(e,s.registry),a=r(t,s.registry);if(n.length!=a.length||n.some(e=>!a.includes(e)))return!1;for(let r of n){let[n,a]=(0,i.createExtensionContainer)(r,(0,i.getExtension)(e.message,r)),[o]=(0,i.createExtensionContainer)(r,(0,i.getExtension)(t.message,r));if(!l(a,n,o,s))return!1}return!0}(e,s,o))}function l(e,s,r,n){if(!s.isSet(e)&&!r.isSet(e))return!0;if(!s.isSet(e)||!r.isSet(e))return!1;switch(e.fieldKind){case"scalar":return(0,t.scalarEquals)(e.scalar,s.get(e),r.get(e));case"enum":return s.get(e)===r.get(e);case"message":return o(s.get(e),r.get(e),n);case"map":{let i=s.get(e),a=r.get(e),l=[];for(let e of i.keys()){if(!a.has(e))return!1;l.push(e)}for(let e of a.keys())if(!i.has(e))return!1;for(let s of l){let r=i.get(s),l=a.get(s);if(r!==l)switch(e.mapKind){case"enum":return!1;case"message":if(!o(r,l,n))return!1;break;case"scalar":if(!(0,t.scalarEquals)(e.scalar,r,l))return!1}}break}case"list":{let i=s.get(e),a=r.get(e);if(i.size!=a.size)return!1;for(let s=0;s<i.size;s++){let r=i.get(s),l=a.get(s);if(r!==l)switch(e.listKind){case"enum":return!1;case"message":if(!o(r,l,n))return!1;break;case"scalar":if(!(0,t.scalarEquals)(e.scalar,r,l))return!1}}}}return!0}e.s(["equals",0,a])},37727,e=>{"use strict";let t=(0,e.i(475254).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],37727)},284614,e=>{"use strict";let t=(0,e.i(475254).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",0,t],284614)},12556,913668,215133,e=>{"use strict";e.i(113024);var t,s,r,n,i,a,o,l,d,c,u,g,p,h,m,f,x=e.i(424407),b=e.i(304532),v=e.i(732303);let y=(0,x.fileDesc)("CjFhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnRjaGFubmVsL3YxL2RlbGl2ZXJ5LnByb3RvEiJhaS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxIvwFCg9DaGFubmVsRGVsaXZlcnkSEwoLZGVsaXZlcnlfaWQYASABKAkSGAoQYWdlbnRfY2hhbm5lbF9pZBgCIAEoCRILCgNvcmcYAyABKAkSFAoMZXhlY3V0aW9uX2lkGAQgASgJEhIKCnNlc3Npb25faWQYBSABKAkSGAoQY29udmVyc2F0aW9uX2tleRgGIAEoCRIZChFleHRlcm5hbF91c2VyX2tleRgHIAEoCRJJCgZzdGF0dXMYCCABKA4yOS5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkNoYW5uZWxEZWxpdmVyeVN0YXR1cxIQCghhdHRlbXB0cxgJIAEoBRISCgpsYXN0X2Vycm9yGAogASgJEhcKD2lkZW1wb3RlbmN5X2tleRgLIAEoCRJJCgVzbGFjaxgMIAEoCzI4LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuU2xhY2tEZWxpdmVyeUNvbnRleHRIABJPCgh3aGF0c2FwcBgQIAEoCzI7LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuV2hhdHNBcHBEZWxpdmVyeUNvbnRleHRIABIuCgpjcmVhdGVkX2F0GA0gASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GA4gASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIzCg9uZXh0X2F0dGVtcHRfYXQYDyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhIKCnJlcGx5X3RleHQYESABKAkSUwoMZmFpbHVyZV9raW5kGBIgASgOMj0uYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5DaGFubmVsQXR0ZW1wdEZhaWx1cmVLaW5kEhYKDmF0dGVtcHRfZGV0YWlsGBMgASgJQhIKEGRlbGl2ZXJ5X2NvbnRleHQiVQoUU2xhY2tEZWxpdmVyeUNvbnRleHQSEgoKY2hhbm5lbF9pZBgBIAEoCRIRCgl0aHJlYWRfdHMYAiABKAkSFgoOcGxhY2Vob2xkZXJfdHMYAyABKAkiSwoXV2hhdHNBcHBEZWxpdmVyeUNvbnRleHQSFwoPcGhvbmVfbnVtYmVyX2lkGAEgASgJEhcKD3JlY2lwaWVudF93YV9pZBgCIAEoCSqIAQoVQ2hhbm5lbERlbGl2ZXJ5U3RhdHVzEicKI2NoYW5uZWxfZGVsaXZlcnlfc3RhdHVzX3Vuc3BlY2lmaWVkEAASCwoHcGVuZGluZxABEg4KCmRlbGl2ZXJpbmcQAhINCglkZWxpdmVyZWQQAxIKCgZmYWlsZWQQBBIOCgpzdXBwcmVzc2VkEAUqfQoZQ2hhbm5lbEF0dGVtcHRGYWlsdXJlS2luZBIfChthdHRlbXB0X2ZhaWx1cmVfdW5zcGVjaWZpZWQQABITCg9hdHRlbXB0X3JlZnVzZWQQARITCg9hdHRlbXB0X2Vycm9yZWQQAhIVChFhdHRlbXB0X3dpdGhkcmF3bhADYgZwcm90bzM",[v.file_google_protobuf_timestamp]);(t=d||(d={}))[t.channel_delivery_status_unspecified=0]="channel_delivery_status_unspecified",t[t.pending=1]="pending",t[t.delivering=2]="delivering",t[t.delivered=3]="delivered",t[t.failed=4]="failed",t[t.suppressed=5]="suppressed",(s=c||(c={}))[s.attempt_failure_unspecified=0]="attempt_failure_unspecified",s[s.attempt_refused=1]="attempt_refused",s[s.attempt_errored=2]="attempt_errored",s[s.attempt_withdrawn=3]="attempt_withdrawn",e.s(["ChannelAttemptFailureKind",0,c,"ChannelDeliveryStatus",0,d,"file_ai_stigmer_agentic_agentchannel_v1_delivery",0,y],913668);var k=e.i(730938);let j=(0,x.fileDesc)("CjFhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnRjaGFubmVsL3YxL291dGJvdW5kLnByb3RvEiJhaS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxIo8HChZDaGFubmVsT3V0Ym91bmRNZXNzYWdlEhsKE291dGJvdW5kX21lc3NhZ2VfaWQYASABKAkSGAoQYWdlbnRfY2hhbm5lbF9pZBgCIAEoCRILCgNvcmcYAyABKAkSEgoKc2Vzc2lvbl9pZBgEIAEoCRJJCgZvcmlnaW4YBSABKA4yOS5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkNoYW5uZWxPdXRib3VuZE9yaWdpbhIRCglyZWNpcGllbnQYBiABKAkSSwoHcGF5bG9hZBgHIAEoCzI6LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuQ2hhbm5lbE91dGJvdW5kUGF5bG9hZBJJCgZzdGF0dXMYCCABKA4yOS5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkNoYW5uZWxEZWxpdmVyeVN0YXR1cxIQCghhdHRlbXB0cxgJIAEoBRISCgpsYXN0X2Vycm9yGAogASgJEhcKD2lkZW1wb3RlbmN5X2tleRgLIAEoCRIbChNwcm92aWRlcl9tZXNzYWdlX2lkGAwgASgJEi4KCmNyZWF0ZWRfYXQYDSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYDiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjMKD25leHRfYXR0ZW1wdF9hdBgPIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASTgoNcmVjZWlwdF9zdGF0ZRgQIAEoDjI3LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuQ2hhbm5lbFJlY2VpcHRTdGF0ZRIWCg5yZWNlaXB0X2RldGFpbBgRIAEoCRIaChJyZWNlaXB0X2Vycm9yX2NvZGUYEiABKAUSLgoKcmVjZWlwdF9hdBgTIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASFQoNcmVuZGVyZWRfYm9keRgUIAEoCRJTCgxmYWlsdXJlX2tpbmQYFSABKA4yPS5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkNoYW5uZWxBdHRlbXB0RmFpbHVyZUtpbmQSFgoOYXR0ZW1wdF9kZXRhaWwYFiABKAkqgwEKE0NoYW5uZWxSZWNlaXB0U3RhdGUSHQoZcmVjZWlwdF9zdGF0ZV91bnNwZWNpZmllZBAAEhAKDHJlY2VpcHRfc2VudBABEhUKEXJlY2VpcHRfZGVsaXZlcmVkEAISEAoMcmVjZWlwdF9yZWFkEAMSEgoOcmVjZWlwdF9mYWlsZWQQBCqHAQoVQ2hhbm5lbE91dGJvdW5kT3JpZ2luEicKI2NoYW5uZWxfb3V0Ym91bmRfb3JpZ2luX3Vuc3BlY2lmaWVkEAASGAoUY2hhbm5lbF9jb252ZXJzYXRpb24QARIMCghvcGVyYXRvchACEgwKCHBsYXRmb3JtEAMSDwoLcGFydGljaXBhbnQQBGIGcHJvdG8z",[y,k.file_ai_stigmer_agentic_agentchannel_v1_message_io,v.file_google_protobuf_timestamp]);(r=u||(u={}))[r.receipt_state_unspecified=0]="receipt_state_unspecified",r[r.receipt_sent=1]="receipt_sent",r[r.receipt_delivered=2]="receipt_delivered",r[r.receipt_read=3]="receipt_read",r[r.receipt_failed=4]="receipt_failed",(n=g||(g={}))[n.channel_outbound_origin_unspecified=0]="channel_outbound_origin_unspecified",n[n.channel_conversation=1]="channel_conversation",n[n.operator=2]="operator",n[n.platform=3]="platform",n[n.participant=4]="participant",e.s(["ChannelReceiptState",0,u,"file_ai_stigmer_agentic_agentchannel_v1_outbound",0,j],215133);var A=e.i(85849),w=e.i(761867);let S=(0,x.fileDesc)("CjhhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnRjaGFubmVsL3YxL2NvbnZlcnNhdGlvbl9pby5wcm90bxIiYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MSL+AwoTQ2hhbm5lbENvbnZlcnNhdGlvbhIYChBhZ2VudF9jaGFubmVsX2lkGAEgASgJEhgKEGNvbnZlcnNhdGlvbl9rZXkYAiABKAkSCwoDb3JnGAMgASgJEkgKB2NvbnRyb2wYBCABKA4yNy5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkNvbnZlcnNhdGlvbkNvbnRyb2wSFQoNY29udHJvbGxlZF9ieRgFIAEoCRI2ChJjb250cm9sX2NoYW5nZWRfYXQYBiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhcKD25lZWRzX2F0dGVudGlvbhgHIAEoCBIYChBhdHRlbnRpb25fcmVhc29uGAggASgJEjgKFGF0dGVudGlvbl9jaGFuZ2VkX2F0GAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIUCgxkaXNwbGF5X25hbWUYCiABKAkSPAoYbGFzdF9jdXN0b21lcl9tZXNzYWdlX2F0GAsgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBI0ChBsYXN0X2FjdGl2aXR5X2F0GAwgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIWCg5hd2FpdGluZ19yZXBseRgNIAEoCCKGBgoYQ29udmVyc2F0aW9uVGltZWxpbmVJdGVtEg8KB2l0ZW1faWQYASABKAkSQgoEbGFuZRgCIAEoDjI0LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuQ29udmVyc2F0aW9uTGFuZRJKCgZhdXRob3IYAyABKA4yOi5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkNvbnZlcnNhdGlvbkl0ZW1BdXRob3ISEwoLYXV0aG9yZWRfYnkYBCABKAkSDAoEdGV4dBgFIAEoCRIdChVwcm92aWRlcl9tZXNzYWdlX3R5cGUYBiABKAkSJgoCYXQYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wElIKD2RlbGl2ZXJ5X3N0YXR1cxgIIAEoDjI5LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuQ2hhbm5lbERlbGl2ZXJ5U3RhdHVzEk4KDXJlY2VpcHRfc3RhdGUYCSABKA4yNy5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkNoYW5uZWxSZWNlaXB0U3RhdGUSSQoGb3JpZ2luGAogASgOMjkuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5DaGFubmVsT3V0Ym91bmRPcmlnaW4SFgoOcmVjZWlwdF9kZXRhaWwYCyABKAkSGgoScmVjZWlwdF9lcnJvcl9jb2RlGAwgASgFEkcKBW1lZGlhGA0gASgLMjguYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5Db252ZXJzYXRpb25NZWRpYVJlZhIWCg5hdHRlbXB0X2RldGFpbBgOIAEoCRJbChRhdHRlbXB0X2ZhaWx1cmVfa2luZBgPIAEoDjI9LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuQ2hhbm5lbEF0dGVtcHRGYWlsdXJlS2luZCJSChRDb252ZXJzYXRpb25NZWRpYVJlZhIQCghmaWxlbmFtZRgBIAEoCRIUCgxjb250ZW50X3R5cGUYAiABKAkSEgoKc2l6ZV9ieXRlcxgDIAEoAyLjAQodTGlzdENoYW5uZWxDb252ZXJzYXRpb25zSW5wdXQSFgoDb3JnGAEgASgJQgm6SAZyBBABGD8SIgoQYWdlbnRfY2hhbm5lbF9pZBgCIAEoCUIIukgFcgMYgAESMwoJcGFnZV9pbmZvGAMgASgLMiAuYWkuc3RpZ21lci5jb21tb25zLnJwYy5QYWdlSW5mbxJRCgZmaWx0ZXIYBCABKA4yQS5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRjaGFubmVsLnYxLkNoYW5uZWxDb252ZXJzYXRpb25MaXN0RmlsdGVyInYKF0NoYW5uZWxDb252ZXJzYXRpb25MaXN0EhMKC3RvdGFsX2NvdW50GAEgASgFEkYKBWl0ZW1zGAIgAygLMjcuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5DaGFubmVsQ29udmVyc2F0aW9uImkKG0dldENoYW5uZWxDb252ZXJzYXRpb25JbnB1dBIkChBhZ2VudF9jaGFubmVsX2lkGAEgASgJQgq6SAdyBRABGIABEiQKEGNvbnZlcnNhdGlvbl9rZXkYAiABKAlCCrpIB3IFEAEYgAEikQEKHEdldENvbnZlcnNhdGlvblRpbWVsaW5lSW5wdXQSJAoQYWdlbnRfY2hhbm5lbF9pZBgBIAEoCUIKukgHcgUQARiAARIkChBjb252ZXJzYXRpb25fa2V5GAIgASgJQgq6SAdyBRABGIABEhEKCXBhZ2Vfc2l6ZRgDIAEoBRISCgpwYWdlX3Rva2VuGAQgASgJInwKFENvbnZlcnNhdGlvblRpbWVsaW5lEksKBWl0ZW1zGAEgAygLMjwuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5Db252ZXJzYXRpb25UaW1lbGluZUl0ZW0SFwoPbmV4dF9wYWdlX3Rva2VuGAIgASgJIo8BCiRHZXRDb252ZXJzYXRpb25NZWRpYURvd25sb2FkVXJsSW5wdXQSJAoQYWdlbnRfY2hhbm5lbF9pZBgBIAEoCUIKukgHcgUQARiAARIkChBjb252ZXJzYXRpb25fa2V5GAIgASgJQgq6SAdyBRABGIABEhsKB2l0ZW1faWQYAyABKAlCCrpIB3IFEAEYgAIiWwocQ29udmVyc2F0aW9uTWVkaWFEb3dubG9hZFVybBILCgN1cmwYASABKAkSLgoKZXhwaXJlc19hdBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiZgoYQ29udmVyc2F0aW9uQ29udHJvbElucHV0EiQKEGFnZW50X2NoYW5uZWxfaWQYASABKAlCCrpIB3IFEAEYgAESJAoQY29udmVyc2F0aW9uX2tleRgCIAEoCUIKukgHcgUQARiAASK7AQoYUmVwbHlUb0NvbnZlcnNhdGlvbklucHV0EiQKEGFnZW50X2NoYW5uZWxfaWQYASABKAlCCrpIB3IFEAEYgAESJAoQY29udmVyc2F0aW9uX2tleRgCIAEoCUIKukgHcgUQARiAARJTCgdwYXlsb2FkGAMgASgLMjouYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5DaGFubmVsT3V0Ym91bmRQYXlsb2FkQga6SAPIAQEiNwoZRXNjYWxhdGVDb252ZXJzYXRpb25JbnB1dBIaCgZyZWFzb24YASABKAlCCrpIB3IFEAEYgAgqYQoTQ29udmVyc2F0aW9uQ29udHJvbBIkCiBjb252ZXJzYXRpb25fY29udHJvbF91bnNwZWNpZmllZBAAEhEKDWNvbnRyb2xfYWdlbnQQARIRCg1jb250cm9sX2h1bWFuEAIqWQoQQ29udmVyc2F0aW9uTGFuZRIhCh1jb252ZXJzYXRpb25fbGFuZV91bnNwZWNpZmllZBAAEg8KC2xhbmVfcHVibGljEAESEQoNbGFuZV9pbnRlcm5hbBACKpMBChZDb252ZXJzYXRpb25JdGVtQXV0aG9yEigKJGNvbnZlcnNhdGlvbl9pdGVtX2F1dGhvcl91bnNwZWNpZmllZBAAEhMKD2F1dGhvcl9jdXN0b21lchABEhAKDGF1dGhvcl9hZ2VudBACEhMKD2F1dGhvcl90ZWFtbWF0ZRADEhMKD2F1dGhvcl9wbGF0Zm9ybRAEKmkKHUNoYW5uZWxDb252ZXJzYXRpb25MaXN0RmlsdGVyEjAKLGNoYW5uZWxfY29udmVyc2F0aW9uX2xpc3RfZmlsdGVyX3Vuc3BlY2lmaWVkEAASFgoSZmlsdGVyX3dhbnRzX2h1bWFuEAFiBnByb3RvMw",[y,k.file_ai_stigmer_agentic_agentchannel_v1_message_io,j,A.file_ai_stigmer_commons_rpc_pagination,w.file_buf_validate_validate,v.file_google_protobuf_timestamp]),C=(0,b.messageDesc)(S,0),N=(0,b.messageDesc)(S,1),E=(0,b.messageDesc)(S,3),R=(0,b.messageDesc)(S,5),M=(0,b.messageDesc)(S,6),W=(0,b.messageDesc)(S,8),_=(0,b.messageDesc)(S,10),I=(0,b.messageDesc)(S,11);(i=p||(p={}))[i.conversation_control_unspecified=0]="conversation_control_unspecified",i[i.control_agent=1]="control_agent",i[i.control_human=2]="control_human",(a=h||(h={}))[a.conversation_lane_unspecified=0]="conversation_lane_unspecified",a[a.lane_public=1]="lane_public",a[a.lane_internal=2]="lane_internal",(o=m||(m={}))[o.conversation_item_author_unspecified=0]="conversation_item_author_unspecified",o[o.author_customer=1]="author_customer",o[o.author_agent=2]="author_agent",o[o.author_teammate=3]="author_teammate",o[o.author_platform=4]="author_platform",(l=f||(f={}))[l.channel_conversation_list_filter_unspecified=0]="channel_conversation_list_filter_unspecified",l[l.filter_wants_human=1]="filter_wants_human",e.s(["ChannelConversationListFilter",0,f,"ChannelConversationSchema",0,C,"ConversationControl",0,p,"ConversationControlInputSchema",0,_,"ConversationItemAuthor",0,m,"ConversationLane",0,h,"ConversationTimelineItemSchema",0,N,"GetChannelConversationInputSchema",0,R,"GetConversationMediaDownloadUrlInputSchema",0,W,"GetConversationTimelineInputSchema",0,M,"ListChannelConversationsInputSchema",0,E,"ReplyToConversationInputSchema",0,I,"file_ai_stigmer_agentic_agentchannel_v1_conversation_io",0,S],12556)},973621,711364,945850,e=>{"use strict";var t=e.i(271645);e.s(["useComposer",0,function({onSubmit:e,disabled:s=!1,maxHeight:r=240,autoFocusOnEnable:n=!0}){let i=(0,t.useRef)(null),[a,o]=(0,t.useState)(""),l=(0,t.useRef)(s),d=a.trim().length>0&&!s;(0,t.useEffect)(()=>{n&&l.current&&!s&&i.current?.focus(),l.current=s},[s,n]);let c=(0,t.useCallback)(()=>{let e=i.current;e&&(e.style.height="auto",e.style.height=`${Math.min(e.scrollHeight,r)}px`)},[r]),u=(0,t.useCallback)(()=>{let e=i.current;e&&(e.style.height="auto")},[]),g=(0,t.useCallback)(()=>{o(""),u()},[u]),p=(0,t.useCallback)(()=>{let t=a.trim();t&&!s&&(e(t),g())},[a,s,e,g]),h=(0,t.useCallback)(e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),p())},[p]),m=(0,t.useCallback)(e=>{o(e.target.value),c()},[c]);return{message:a,setMessage:o,textareaRef:i,textareaProps:{ref:i,value:a,onChange:m,onKeyDown:h,disabled:s},canSubmit:d,submit:p,clear:g}}],973621);let s={".md":"text/markdown",".markdown":"text/markdown",".yaml":"application/x-yaml",".yml":"application/x-yaml",".json":"application/json",".csv":"text/csv",".tsv":"text/tab-separated-values",".xml":"application/xml",".html":"text/html",".htm":"text/html",".css":"text/css",".js":"application/javascript",".ts":"application/typescript",".py":"text/x-python",".go":"text/x-go",".rs":"text/x-rust",".java":"text/x-java",".rb":"text/x-ruby",".sh":"application/x-sh",".bash":"application/x-sh",".sql":"application/sql",".toml":"application/toml",".ini":"text/plain",".cfg":"text/plain",".conf":"text/plain",".env":"text/plain",".txt":"text/plain",".log":"text/plain",".pdf":"application/pdf",".zip":"application/zip",".gz":"application/gzip",".tar":"application/x-tar",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".webp":"image/webp"},r=["B","KB","MB","GB"];function n(e){if(0===e)return"0 B";let t=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1),s=e/Math.pow(1024,t);return 0===t?`${e} B`:`${s.toFixed(1)} ${r[t]}`}e.s(["detectContentType",0,function(e){if(e.type&&"application/octet-stream"!==e.type)return e.type;let t=e.name.lastIndexOf(".");if(-1!==t){let r=s[e.name.slice(t).toLowerCase()];if(r)return r}return"application/octet-stream"},"formatFileSize",0,n,"uniquifyFilename",0,function(e,t){if(!t.has(e))return e;let s=e.lastIndexOf("."),r=s>0?e.slice(0,s):e,n=s>0?e.slice(s):"";for(let e=2;;e++){let s=`${r}-${e}${n}`;if(!t.has(s))return s}},"validateAttachmentSize",0,function(e){return e.size>0xa00000?`${e.name} exceeds the 10 MB attachment limit (${n(e.size)})`:null}],711364);var i=e.i(326283);let a=new Set,o=new Map;e.s(["useKeyedSubmission",0,function(){let[e,s]=(0,t.useState)(a),[r,n]=(0,t.useState)(o),l=(0,t.useCallback)(()=>n(o),[]),d=(0,t.useCallback)(async(e,t)=>{s(t=>{let s=new Set(t);return s.add(e),s}),n(t=>{if(!t.has(e))return t;let s=new Map(t);return s.delete(e),s});try{return await t()}catch(s){let t=(0,i.toError)(s);throw n(s=>new Map(s).set(e,t)),s}finally{s(t=>{if(!t.has(e))return t;let s=new Set(t);return s.delete(e),s})}},[]);return(0,t.useMemo)(()=>({submittingKeys:e,errorsByKey:r,run:d,clearErrors:l}),[e,r,d,l])}],945850)},217127,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),n=e.i(590150),i=e.i(213149);function a(){return(0,t.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"12",cy:"3.5",r:"1.75"}),(0,t.jsx)("circle",{cx:"4",cy:"8",r:"1.75"}),(0,t.jsx)("circle",{cx:"12",cy:"12.5",r:"1.75"}),(0,t.jsx)("path",{d:"M5.5 7.1l5-2.7M5.5 8.9l5 2.7"})]})}e.s(["ManageAccessButton",0,function({resource:e,visibility:o,extraSection:l,label:d="Manage access",className:c}){let[u,g]=(0,s.useState)(!1);return(0,t.jsxs)(n.PermissionGate,{resource:{kind:e.kindString,id:e.id},relation:"can_view_access",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>g(!0),className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:border stg:border-border stg:text-foreground stg:hover:bg-accent-hover","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring",c),children:[(0,t.jsx)(a,{}),d]}),(0,t.jsx)(i.ManageAccessDialog,{open:u,onOpenChange:g,resource:e,visibility:o,extraSection:l})]})}])},766354,799190,e=>{"use strict";let t=(0,e.i(475254).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],766354),e.s(["CONVERSATION_BADGE_POLL_INTERVAL_MS",0,6e4,"CONVERSATION_DETAIL_POLL_INTERVAL_MS",0,5e3,"CONVERSATION_LIST_POLL_INTERVAL_MS",0,2e4],799190)},981997,e=>{"use strict";let t=(0,e.i(475254).default)("messages-square",[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]]);e.s(["MessagesSquare",0,t],981997)},465261,649582,e=>{"use strict";var t=e.i(475254);let s=(0,t.default)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);e.s(["KeyRound",0,s],465261);let r=(0,t.default)("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]);e.s(["SlidersHorizontal",0,r],649582)},287237,e=>{"use strict";var t=e.i(972992);let s={native:{label:"Stigmer",description:"Stigmer's native agent runtime"},cursor:{label:"Cursor",description:"Cursor IDE agent with codebase indexing"},copilot:{label:"GitHub Copilot",description:"GitHub-native sub-agent orchestration"},claude_code:{label:"Claude Agent SDK",description:"Anthropic's agent SDK with built-in tools"},codex:{label:"OpenAI Codex",description:"Thread-based execution with structured output"},devin:{label:"Devin",description:"Full autonomous engineer, session-based"}},r=Object.fromEntries(Object.entries(s).map(([e,t])=>[e,t.label]));e.s(["DEFAULT_HARNESS",0,"native","HARNESS_LABELS",0,r,"HARNESS_META",0,s,"HARNESS_OPTIONS",0,["native","cursor","copilot","claude_code","codex","devin"],"fromProtoHarness",0,function(e){switch(e){case t.Harness.CURSOR:return"cursor";case t.Harness.NATIVE:case t.Harness.UNSPECIFIED:default:return"native"}},"toProtoHarness",0,function(e){return"cursor"===e?t.Harness.CURSOR:t.Harness.NATIVE}])},444857,766817,e=>{"use strict";var t=e.i(661438);e.s(["FAST_SERVICE_TIER",0,"fast","fromProtoServiceTier",0,function(e){switch(e){case t.ServiceTier.STANDARD:return"standard";case t.ServiceTier.FAST:return"fast";default:return}},"toProtoServiceTier",0,function(e){return"fast"===e?t.ServiceTier.FAST:t.ServiceTier.STANDARD}],444857),e.s(["fromProtoThinkingMode",0,function(e){switch(e){case t.ThinkingMode.DISABLED:return"disabled";case t.ThinkingMode.ENABLED:return"enabled";default:return}},"toProtoThinkingMode",0,function(e){return"enabled"===e?t.ThinkingMode.ENABLED:t.ThinkingMode.DISABLED}],766817)},383406,e=>{"use strict";var t=e.i(271645);let s=(0,t.createContext)({models:[],isLoading:!0,error:null,refetch:()=>{}});e.s(["ModelRegistryContext",0,s,"useModelRegistryContext",0,function(){return(0,t.useContext)(s)}])},614920,e=>{"use strict";let t=new Set(["ollama"]),s=new Set(["economy","standard","premium"]),r=new Set(["fastest","fast","balanced","slow"]),n=new Set(["native","cursor","copilot","claude_code","codex","devin"]);function i(e){return"string"==typeof e.id&&"string"==typeof e.displayName&&"string"==typeof e.provider&&"string"==typeof e.harness&&n.has(e.harness)&&"string"==typeof e.costTier&&s.has(e.costTier)}async function a(e,t,s){let n=s??globalThis.fetch,a={};t&&(a.Authorization=`Bearer ${t}`);let o=await n(`${e}/v1/proxy/model-registry`,{headers:a});if(!o.ok)throw Error(`Model registry fetch failed: ${o.status}`);var l=await o.json();if(!l||"object"!=typeof l)return{models:[]};let d=l.models;if(!Array.isArray(d))return{models:[]};let c=d.filter(i).map(e=>{let t=function(e){if(!e||"object"!=typeof e)return;let t=e.vision;return"boolean"==typeof t?t:void 0}(e.capabilities),s=function(e){if(!e||"object"!=typeof e)return;let t=e.thinking;return"boolean"==typeof t?t:void 0}(e.capabilities);return{modelId:e.id,provider:e.provider,displayName:e.displayName,shortDescription:e.shortDescription??"",speedTier:r.has(e.speedTier??"")?e.speedTier:"fast",costTier:e.costTier,harness:e.harness,featured:e.featured??!1,serviceTiers:e.pricingVariants&&"object"==typeof e.pricingVariants?Object.keys(e.pricingVariants).sort():[],...void 0!==t?{visionCapability:t}:{},...void 0!==s?{thinkingCapable:s}:{}}}),u=function(e){let t=e.limits;if(!t||"object"!=typeof t)return;let s=t.vision;if(!s||"object"!=typeof s)return;let{maxImageBytes:r,maxTotalBytes:n,maxImages:i}=s;if("number"==typeof r&&!(r<=0)&&"number"==typeof n&&!(n<=0)&&"number"==typeof i&&!(i<=0))return{maxImageBytes:r,maxTotalBytes:n,maxImages:i}}(l);return{models:c,...void 0!==u?{visionLimits:u}:{}}}let o="claude-sonnet-4.6",l="default";e.s(["DEFAULT_MODEL_ID",0,o,"DISABLED_PROVIDERS",0,t,"fetchModelRegistryDocument",0,a,"modelKey",0,function(e,t){return`${e}/${t}`},"parseModelKey",0,function(e){let t=e.indexOf("/");if(t<1)return;let s=e.slice(0,t);if("native"===s||"cursor"===s)return{harness:s,modelId:e.slice(t+1)}},"resolveDefaultModelId",0,function(e,t,s){if(s?.userPreference){let r=t.find(t=>t.harness===e&&t.modelId===s.userPreference);if(r)return{modelId:r.modelId,source:"user_preference"}}if(s?.orgDefault){let r=t.find(t=>t.harness===e&&t.modelId===s.orgDefault);if(r)return{modelId:r.modelId,source:"org_default"}}if(s?.agentDefault){let r=t.find(t=>t.harness===e&&t.modelId===s.agentDefault);if(r)return{modelId:r.modelId,source:"agent_default"}}if("cursor"===e){let s=t.find(t=>t.harness===e&&t.modelId===l);if(s)return{modelId:s.modelId,source:"harness_default"}}else{let s=t.find(t=>t.harness===e&&t.featured&&"standard"===t.costTier)??t.find(t=>t.harness===e&&"standard"===t.costTier);if(s)return{modelId:s.modelId,source:"harness_default"}}let r=t.find(t=>t.harness===e&&t.featured);return r?{modelId:r.modelId,source:"harness_default"}:{modelId:"cursor"===e?l:o,source:"platform_fallback"}}])},934197,e=>{"use strict";var t=e.i(843476),s=e.i(893976);e.s(["Switch",0,function({checked:e,onCheckedChange:r,disabled:n,"aria-label":i,"aria-labelledby":a,"aria-describedby":o,id:l,className:d}){return(0,t.jsx)("button",{type:"button",role:"switch",id:l,"aria-checked":e,"aria-label":i,"aria-labelledby":a,"aria-describedby":o,disabled:n,onClick:()=>r(!e),className:(0,s.cn)("stg:relative stg:inline-flex stg:h-5 stg:w-9 stg:shrink-0 stg:items-center stg:rounded-full stg:transition-colors","stg:motion-reduce:transition-none",e?"stg:bg-primary":"stg:bg-input","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:focus-visible:ring-offset-2","stg:disabled:pointer-events-none stg:disabled:opacity-50","stg:after:absolute stg:after:-inset-3 stg:after:content-['']",d),children:(0,t.jsx)("span",{"aria-hidden":"true",className:(0,s.cn)("stg:pointer-events-none stg:block stg:size-4 stg:rounded-full stg:bg-background stg:shadow-sm stg:transition-transform","stg:motion-reduce:transition-none",e?"stg:translate-x-[18px]":"stg:translate-x-0.5")})})}])},557702,e=>{"use strict";var t=e.i(271645),s=e.i(614920),r=e.i(383406);e.s(["useModelRegistry",0,function(e){let n=e?.harness,{models:i,visionLimits:a,isLoading:o,error:l,refetch:d}=(0,r.useModelRegistryContext)();return(0,t.useMemo)(()=>{let e,t=void 0===n,{modelId:r}=n?(0,s.resolveDefaultModelId)(n,i):{modelId:s.DEFAULT_MODEL_ID},c=new Map,u=new Map,g=new Map,p=[],h=[];for(let a of i){if(t){if(s.DISABLED_PROVIDERS.has(a.provider))continue}else if(a.harness!==n||s.DISABLED_PROVIDERS.has(a.provider))continue;p.push(a),g.set((0,s.modelKey)(a.harness,a.modelId),a),u.has(a.modelId)||u.set(a.modelId,a);let i=c.get(a.provider);i?i.push(a):c.set(a.provider,[a]),a.modelId===r&&(e??=a),a.featured&&h.push(a)}let m=Array.from(c.keys());return{models:p,byProvider:c,defaultModel:e??p[0],getModel:e=>u.get(e),providers:m,featured:h,getByKey:e=>g.get(e),visionLimits:a,isLoading:o,error:l,refetch:d}},[n,i,a,o,l,d])}])},216386,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(506213),n=e.i(893976),i=e.i(364354),a=e.i(934197),o=e.i(557702),l=e.i(287237),d=e.i(444857);let c={economy:"$",standard:"$$",premium:"$$$"},u={fastest:"Fastest",fast:"Fast",balanced:"Balanced",slow:"Powerful"};function g(e){return"cursor"===e.harness&&!0===e.thinkingCapable}function p({model:e,isSelected:s,isHighlighted:r,showDescription:i,showSpeedBadge:a,onClick:o,onMouseEnter:l}){return(0,t.jsxs)("button",{"data-model-option":"",role:"option","aria-selected":s,type:"button",className:(0,n.cn)("stg:flex stg:w-full stg:cursor-pointer stg:flex-col stg:rounded-md stg:px-2 stg:py-1.5 stg:text-xs stg:outline-none","stg:transition-colors",r&&"stg:bg-accent stg:text-accent-foreground",!r&&"stg:hover:bg-accent-hover"),onClick:o,onMouseEnter:l,children:[(0,t.jsxs)("div",{className:"stg:flex stg:w-full stg:items-center stg:gap-2",children:[(0,t.jsx)("span",{className:"stg:flex-1 stg:truncate stg:text-left stg:font-medium",children:e.displayName}),!1===e.visionCapability&&(0,t.jsxs)("span",{className:"stg:flex stg:shrink-0 stg:items-center stg:gap-0.5 stg:text-[0.6rem] stg:text-muted-foreground",children:[(0,t.jsx)(f,{}),"No image input"]}),(0,t.jsx)("span",{className:"stg:shrink-0 stg:text-[0.6rem] stg:text-muted-foreground",children:a?`${u[e.speedTier]} ${c[e.costTier]}`:c[e.costTier]}),s&&(0,t.jsx)(m,{className:"stg:shrink-0 stg:text-primary"})]}),i&&e.shortDescription&&(0,t.jsx)("span",{className:"stg:mt-0.5 stg:block stg:text-left stg:text-[0.65rem] stg:text-muted-foreground",children:e.shortDescription})]})}function h(){return(0,t.jsx)("svg",{className:"stg:shrink-0 stg:text-muted-foreground",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M2.5 3.75L5 6.25L7.5 3.75"})})}function m({className:e}){return(0,t.jsx)("svg",{className:e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M2 6L5 9L10 3"})})}function f(){return(0,t.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("rect",{x:"1.5",y:"2",width:"9",height:"8",rx:"1.2"}),(0,t.jsx)("path",{d:"M1.5 8L4.2 5.6L6.4 7.6"}),(0,t.jsx)("circle",{cx:"7.6",cy:"4.6",r:"0.8",fill:"currentColor",stroke:"none"}),(0,t.jsx)("path",{d:"M1 1L11 11"})]})}function x(){return(0,t.jsx)("svg",{className:"stg:shrink-0",width:"8",height:"10",viewBox:"0 0 8 10",fill:"currentColor","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M4.9 0.2L0.6 5.6h2.6L3.1 9.8l4.3-5.4H4.8L4.9 0.2z"})})}e.s(["ModelSelector",0,function({value:e,onValueChange:c,harness:u,initialHarness:f,onHarnessChange:b,onHarnessResolved:v,availableHarnesses:y,curatedModels:k,groupBy:j="provider",showSpeedBadge:A=!0,showDescriptions:w=!0,compact:S=!1,className:C,disabled:N,placeholderLabel:E,serviceTier:R="standard",onServiceTierChange:M,thinkingMode:W="disabled",onThinkingModeChange:_}){let I=(0,i.useStigmerPortalContainer)(),L=void 0!==u,[Z,F]=(0,s.useState)(u??f??"native"),V=u??Z;(0,s.useEffect)(()=>{L||void 0===f||F(f)},[f,L]);let{models:B,featured:Y,defaultModel:G,getModel:T,byProvider:D,isLoading:O,error:X,refetch:P}=(0,o.useModelRegistry)({harness:V}),[K,H]=(0,s.useState)(!1),[z,U]=(0,s.useState)(!1),[$,J]=(0,s.useState)(""),[Q,q]=(0,s.useState)(!1),[ee,et]=(0,s.useState)(-1),es=(0,s.useRef)(null),er=(0,s.useRef)(null),en=(0,s.useMemo)(()=>y||l.HARNESS_OPTIONS.filter(e=>"native"===e||"cursor"===e),[y]),ei=(e?T(e):void 0)??G??void 0,ea=$.length>0,eo=$.toLowerCase(),el=(0,s.useMemo)(()=>k?new Set(k):null,[k]),ed=(0,s.useMemo)(()=>el?B.filter(e=>el.has(e.modelId)):Y,[B,Y,el]),ec=(0,s.useMemo)(()=>ea?B.filter(e=>e.displayName.toLowerCase().includes(eo)||e.modelId.toLowerCase().includes(eo)||e.shortDescription.toLowerCase().includes(eo)):Q?B:ed.length>0?ed:B,[B,ed,ea,Q,eo]),eu=(0,s.useMemo)(()=>{if(!Q||"none"===j||ea)return null;let e=new Map;for(let t of B){let s="provider"===j?t.provider:t.costTier,r=e.get(s);r?r.push(t):e.set(s,[t])}return e},[B,Q,j,ea]);(0,s.useEffect)(()=>{et(-1)},[ec]),(0,s.useEffect)(()=>{K||(J(""),q(!1),et(-1),U(!1))},[K]),(0,s.useEffect)(()=>{K&&requestAnimationFrame(()=>es.current?.focus())},[K]);let eg=(0,s.useCallback)(e=>{F(e),b?.(e),v?.(e),q(!1),J("")},[b,v]),ep=(0,s.useCallback)(e=>{c(e.modelId),"fast"===R&&M&&!e.serviceTiers.includes(d.FAST_SERVICE_TIER)&&M("standard"),"enabled"===W&&_&&!g(e)&&_("disabled"),H(!1)},[c,R,M,W,_]),eh=(0,s.useCallback)(e=>{let t=er.current;if(!t)return;let s=t.querySelectorAll("[data-model-option]");s[e]?.scrollIntoView({block:"nearest"})},[]),em=(0,s.useCallback)(e=>{let t=ec.length;if(0!==t)switch(e.key){case"ArrowDown":{e.preventDefault();let s=ee<t-1?ee+1:0;et(s),eh(s);break}case"ArrowUp":{e.preventDefault();let s=ee>0?ee-1:t-1;et(s),eh(s);break}case"Enter":{e.preventDefault();let t=ee>=0?ec[ee]:ec[0];t&&ep(t);break}case"Escape":e.preventDefault(),H(!1)}},[ec,ee,ep,eh]),ef=!ea&&!Q&&ed.length>0&&ed.length<B.length,ex=void 0!==M&&void 0!==ei&&ei.serviceTiers.includes(d.FAST_SERVICE_TIER),eb="fast"===R&&(ei?.serviceTiers.includes(d.FAST_SERVICE_TIER)??!1),ev=void 0!==_&&void 0!==ei&&g(ei),ey="enabled"===W&&void 0!==ei&&g(ei),ek=!e&&void 0!==E,ej=ek?E:ei?.displayName??"Select model",eA=L||ek?void 0:l.HARNESS_META[V].label;return(0,t.jsxs)(r.Popover.Root,{open:K,onOpenChange:H,children:[(0,t.jsxs)(r.Popover.Trigger,{disabled:N,className:(0,n.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:border stg:border-border","stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:hover:bg-accent-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","stg:transition-colors stg:max-w-[20rem] stg:max-sm:max-w-[12rem]",C),children:[eA&&(0,t.jsx)("span",{className:"stg:shrink-0 stg:text-muted-foreground",children:eA}),eA&&(0,t.jsx)("span",{className:"stg:shrink-0 stg:text-border","aria-hidden":!0,children:"·"}),(0,t.jsx)("span",{className:"stg:truncate",children:ej}),eb&&(0,t.jsxs)("span",{className:(0,n.cn)("stg:inline-flex stg:shrink-0 stg:items-center stg:gap-0.5 stg:rounded-full stg:border stg:border-primary stg:px-1.5 stg:py-px","stg:text-[0.6rem] stg:font-medium stg:uppercase stg:tracking-wider stg:text-primary"),children:[(0,t.jsx)(x,{}),"Fast"]}),ey&&(0,t.jsx)("span",{className:(0,n.cn)("stg:inline-flex stg:shrink-0 stg:items-center stg:gap-0.5 stg:rounded-full stg:border stg:border-primary stg:px-1.5 stg:py-px","stg:text-[0.6rem] stg:font-medium stg:uppercase stg:tracking-wider stg:text-primary"),children:"Thinking"}),(0,t.jsx)(h,{})]}),(0,t.jsx)(r.Popover.Portal,{container:I,children:(0,t.jsx)(r.Popover.Positioner,{sideOffset:4,children:(0,t.jsxs)(r.Popover.Popup,{role:"dialog","aria-label":"Model selector",className:(0,n.cn)("stg:z-popover stg:w-72 stg:rounded-lg stg:border stg:border-border stg:bg-popover stg:shadow-md","stg:text-popover-foreground"),children:[(0,t.jsxs)("div",{className:"stg:relative stg:flex stg:items-center stg:justify-between stg:border-b stg:border-border stg:px-3 stg:py-2",children:[(0,t.jsx)("span",{className:"stg:text-xs stg:text-muted-foreground",children:"Harness"}),(0,t.jsxs)("button",{type:"button","aria-haspopup":"listbox","aria-expanded":z,"aria-label":"Select harness",disabled:L,className:(0,n.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:border stg:border-border","stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",L?"stg:cursor-not-allowed stg:opacity-50":"stg:hover:bg-accent-hover"),onClick:()=>{L||U(!z)},onKeyDown:e=>{"Escape"===e.key&&z&&(e.stopPropagation(),U(!1))},children:[(0,t.jsx)("span",{children:l.HARNESS_META[V].label}),!L&&(0,t.jsx)(h,{})]}),!L&&z&&(0,t.jsx)("div",{role:"listbox","aria-label":"Available harnesses",className:(0,n.cn)("stg:absolute stg:right-3 stg:top-full stg:z-10 stg:mt-1 stg:overflow-hidden stg:rounded-md stg:border stg:border-border","stg:bg-popover stg:shadow-md"),children:en.map(e=>{let s=e===V;return(0,t.jsxs)("button",{type:"button",role:"option","aria-selected":s,className:(0,n.cn)("stg:flex stg:w-full stg:items-center stg:gap-2 stg:px-2.5 stg:py-1.5 stg:text-xs stg:transition-colors","stg:hover:bg-accent-hover",s&&"stg:font-medium"),onClick:()=>{eg(e),U(!1)},children:[(0,t.jsx)("span",{className:"stg:flex-1 stg:text-left",children:l.HARNESS_META[e].label}),s&&(0,t.jsx)(m,{className:"stg:shrink-0 stg:text-primary"})]},e)})})]}),ex&&(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between stg:border-b stg:border-border stg:px-3 stg:py-2",children:[(0,t.jsxs)("div",{className:"stg:flex stg:flex-col",children:[(0,t.jsx)("span",{className:"stg:text-xs stg:text-foreground",children:"Fast tier"}),(0,t.jsx)("span",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"Faster responses at higher per-token rates"})]}),(0,t.jsx)(a.Switch,{checked:eb,onCheckedChange:e=>M?.(e?"fast":"standard"),"aria-label":"Fast tier"})]}),ev&&(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between stg:border-b stg:border-border stg:px-3 stg:py-2",children:[(0,t.jsxs)("div",{className:"stg:flex stg:flex-col",children:[(0,t.jsx)("span",{className:"stg:text-xs stg:text-foreground",children:"Thinking"}),(0,t.jsx)("span",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"Extended reasoning; uses more output tokens"})]}),(0,t.jsx)(a.Switch,{checked:ey,onCheckedChange:e=>_?.(e?"enabled":"disabled"),"aria-label":"Thinking"})]}),(0,t.jsx)("div",{className:"stg:border-b stg:border-border stg:px-3 stg:py-1.5",children:(0,t.jsx)("input",{ref:es,role:"searchbox","aria-label":"Search models",placeholder:"Search models…",value:$,onChange:e=>J(e.target.value),onKeyDown:em,className:(0,n.cn)("stg:w-full stg:bg-transparent stg:text-xs stg:text-foreground stg:placeholder:text-muted-foreground","stg:outline-none")})}),(0,t.jsxs)("div",{ref:er,role:"listbox","aria-label":"Available models",className:"stg:max-h-72 stg:overflow-y-auto stg:p-1",children:[0===ec.length&&O&&(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-center stg:gap-2 stg:px-2 stg:py-3",children:[(0,t.jsx)("div",{className:"stg:size-3 stg:animate-spin stg:rounded-full stg:border stg:border-muted stg:border-t-primary"}),(0,t.jsx)("span",{className:"stg:text-xs stg:text-muted-foreground",children:"Loading models…"})]}),0===ec.length&&!O&&null!=X&&(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:items-center stg:gap-1.5 stg:px-2 stg:py-3",children:[(0,t.jsx)("span",{className:"stg:text-xs stg:text-muted-foreground",children:"Failed to load models"}),(0,t.jsx)("button",{type:"button",className:(0,n.cn)("stg:rounded-md stg:border stg:border-border stg:bg-background stg:px-2.5 stg:py-1 stg:text-xs stg:text-foreground","stg:hover:bg-accent-hover stg:transition-colors stg:cursor-pointer"),onClick:P,children:"Retry"})]}),0===ec.length&&!O&&null==X&&(0,t.jsx)("div",{className:"stg:px-2 stg:py-3 stg:text-center stg:text-xs stg:text-muted-foreground",children:"No models found"}),eu?Array.from(eu.entries()).map(([e,s])=>(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"stg:px-2 stg:pb-0.5 stg:pt-2 stg:text-[0.6rem] stg:font-medium stg:uppercase stg:tracking-wider stg:text-muted-foreground",children:e}),s.map(e=>(0,t.jsx)(p,{model:e,isSelected:e.modelId===ei?.modelId,showDescription:!1,showSpeedBadge:A,onClick:()=>ep(e)},e.modelId))]},e)):ec.map((e,s)=>(0,t.jsx)(p,{model:e,isSelected:e.modelId===ei?.modelId,isHighlighted:s===ee,showDescription:w&&!S&&!ea&&!Q,showSpeedBadge:A,onClick:()=>ep(e),onMouseEnter:()=>et(s)},e.modelId)),ef&&(0,t.jsx)("button",{type:"button",className:(0,n.cn)("stg:mt-1 stg:flex stg:w-full stg:items-center stg:justify-center stg:rounded-md stg:border stg:border-dashed stg:border-border","stg:px-2 stg:py-1.5 stg:text-xs stg:text-muted-foreground","stg:hover:bg-accent-hover stg:hover:text-foreground stg:transition-colors stg:cursor-pointer"),onClick:()=>q(!0),children:"Show all models"})]})]})})})]})}])},526025,e=>{"use strict";e.s(["channelSessionExternalUserKey",0,function(e){return e?.metadata?.labels?.["stigmer.ai/channel-external-user-key"]},"isChannelOriginSession",0,function(e){return!!e?.metadata?.labels?.["stigmer.ai/channel-id"]}])},615987,e=>{"use strict";var t=e.i(586108),s=e.i(583093);e.s(["useMyIdentityAccount",0,function(e){let r=(0,t.useStigmer)(),n=e?.enabled??!0,{data:i,isLoading:a,isRefetching:o,error:l,refetch:d}=(0,s.useFetch)(n?()=>r.identityAccount.whoAmI():null,[r,n],null,{cacheKey:n?"identity-account:me":void 0});return{account:i,isLoading:a,isRefetching:o,error:l,refetch:d}}])},640524,e=>{"use strict";let t=(0,e.i(475254).default)("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);e.s(["Workflow",0,t],640524)},223945,e=>{"use strict";let t=(0,e.i(475254).default)("store",[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]]);e.s(["Store",0,t],223945)},230374,e=>{"use strict";var t=e.i(271645),s=e.i(472402);e.s(["useDeploymentMode",0,function(e){let[r,n]=(0,t.useState)(()=>({mode:function(){try{let e=new URL((0,s.getApiBaseUrl)()).hostname;if("localhost"===e||"127.0.0.1"===e||"::1"===e)return"local"}catch{return"local"}return"cloud"}(),resolved:!1})),i=(0,t.useMemo)(()=>e,[e]);return(0,t.useEffect)(()=>{if(!i)return;let e=!1;return i.platform.getServerInfo().then(t=>{e||n({mode:t.deploymentMode,resolved:!0})},()=>{e||n(e=>({mode:e.mode,resolved:!0}))}),()=>{e=!0}},[i]),r}])},21218,e=>{"use strict";let t=(0,e.i(475254).default)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);e.s(["Activity",0,t],21218)},607486,e=>{"use strict";let t=(0,e.i(475254).default)("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);e.s(["Building2",0,t],607486)},20753,e=>{"use strict";var t=e.i(271645),s=e.i(981922),r=e.i(21218),n=e.i(475254);let i=(0,n.default)("app-window",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]),a=(0,n.default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),o=(0,n.default)("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]),l=(0,n.default)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]);var d=e.i(607486);let c=(0,n.default)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);var u=e.i(465261);let g=(0,n.default)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);var p=e.i(686311);let h=(0,n.default)("mouse-pointer-click",[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]]),m=(0,n.default)("plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]),f=(0,n.default)("scale",[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"m19 8 3 8a5 5 0 0 1-6 0zV7",key:"zcdpyk"}],["path",{d:"M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1",key:"1yorad"}],["path",{d:"m5 8 3 8a5 5 0 0 1-6 0zV7",key:"eua70x"}],["path",{d:"M7 21h10",key:"1b0cd5"}]]),x=(0,n.default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var b=e.i(649582);let v=(0,n.default)("user-cog",[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),y=(0,n.default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),k=[{label:"Organization",description:"Manage your team, organization identity, and identity providers.",items:[{href:"/settings/org-profile",label:"Org Profile",icon:d.Building2},{href:"/settings/org-preferences",label:"Preferences",icon:b.SlidersHorizontal},{href:"/settings/members",label:"Members",icon:y},{href:"/settings/invitations",label:"Invitations",icon:g},{href:"/settings/identity-providers",label:"Identity Providers",icon:x}]},{label:"Configuration",description:"API keys, environment variables, and OAuth app credentials for your integrations.",items:[{href:"/settings/api-keys",label:"API Keys",icon:u.KeyRound},{href:"/settings/platform-clients",label:"Platform Clients",icon:m},{href:"/settings/environments",label:"Environments",icon:o},{href:"/settings/oauth-apps",label:"OAuth Apps",icon:i},{href:"/settings/channel-apps",label:"Channel Apps",icon:p.MessageSquare}]},{label:"Billing & Usage",description:"Credit management and usage metrics.",items:[{href:"/settings/billing",label:"Billing",icon:c},{href:"/settings/usage",label:"Usage",icon:a}]},{label:"Account",description:"Personal settings that apply to you across the platform.",items:[{href:"/settings/account-preferences",label:"Preferences",icon:v},{href:"/settings/memory",label:"Memory",icon:l}]}],j={label:"Platform",description:"Stigmer-internal operations. Visible to platform operators only.",items:[{href:"/settings/pricing-governance",label:"Pricing Governance",icon:f,requiredPermission:"can_manage_model_pricing"},{href:"/settings/cursor-accounts",label:"Cursor Accounts",icon:h,requiredPermission:"can_manage_cursor_accounts"},{href:"/settings/provider-standing",label:"Provider Standing",icon:r.Activity,requiredPermission:"can_view_provider_standing"}]},A={kind:"platform",id:"stigmer"};e.s(["useSettingsNavGroups",0,function(){let e=(0,s.useCheckPermission)(A,"can_manage_model_pricing",{fail:"closed"}),r=(0,s.useCheckPermission)(A,"can_manage_cursor_accounts",{fail:"closed"}),n=(0,s.useCheckPermission)(A,"can_view_provider_standing",{fail:"closed"}),i=e.allowed,a=r.allowed,o=n.allowed;return(0,t.useMemo)(()=>{let e={can_manage_model_pricing:i,can_manage_cursor_accounts:a,can_view_provider_standing:o},t=j.items.filter(t=>void 0!==t.requiredPermission&&!0===e[t.requiredPermission]);return 0===t.length?k:[...k,{...j,items:t}]},[i,a,o])}],20753)},781195,e=>{e.v(t=>Promise.all(["static/chunks/033ax6lji-tes.js","static/chunks/0cu7jpps89qek.js"].map(t=>e.l(t))).then(()=>t(791738)))},769781,e=>{e.v(t=>Promise.all(["static/chunks/06huuay3x3z07.js"].map(t=>e.l(t))).then(()=>t(347442)))},321591,e=>{e.v(t=>Promise.all(["static/chunks/01.9x7hzkgv7j.js"].map(t=>e.l(t))).then(()=>t(236863)))},695802,e=>{e.v(t=>Promise.all(["static/chunks/0hhe78mplcj67.js","static/chunks/0hq~c-~dp2g~1.js","static/chunks/15wc.2zpsy4wc.js","static/chunks/06o.rsm2b~dht.js","static/chunks/0_mhv9_2_g.-d.js","static/chunks/0lp.du_t-~cqs.js","static/chunks/0ed3hfv95qark.js","static/chunks/03v0v690_bw8u.js"].map(t=>e.l(t))).then(()=>t(876913)))},714587,e=>{e.v(t=>Promise.all(["static/chunks/0jxlubusvmdjm.js"].map(t=>e.l(t))).then(()=>t(777094)))}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,414385,e=>{"use strict";var n=e.i(274217),t=e.i(265209),r=e.i(57897),o=e.i(971811),a=e.i(95560),i=e.i(577755),s=e.i(647767),l=e.i(606322);let c={alwaysEmitImplicit:!1,enumAsInteger:!1,useProtoFieldName:!1};function u(e,n,t){return d((0,r.reflect)(e,n),t?Object.assign(Object.assign({},c),t):c)}function d(e,n){var i,l;let c=function e(n,i){if(n.desc.typeName.startsWith("google.protobuf."))switch(n.desc.typeName){case"google.protobuf.Any":return function(n,t){let i,s;if(""===n.typeUrl)return{};let{registry:l}=t;if(l&&(i=(0,o.anyUnpack)(n,l))&&(s=l.getMessage(i.$typeName)),!s||!i)throw Error(`cannot encode message ${n.$typeName} to JSON: "${n.typeUrl}" is not in the type registry`);let c=(0,r.reflect)(s,i),u=(0,a.hasCustomJsonRepresentation)(s)?{value:e(c,t)}:d(c,t);return u["@type"]=n.typeUrl,u}(n.message,i);case"google.protobuf.Timestamp":return function(e){let n=1e3*Number(e.seconds);if(n<Date.parse("0001-01-01T00:00:00Z")||n>Date.parse("9999-12-31T23:59:59Z"))throw Error(`cannot encode message ${e.$typeName} to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive`);if(e.nanos<0)throw Error(`cannot encode message ${e.$typeName} to JSON: nanos must not be negative`);if(e.nanos>0x3b9ac9ff)throw Error(`cannot encode message ${e.$typeName} to JSON: nanos must not be greater than 99999999`);let t="Z";if(e.nanos>0){let n=(e.nanos+1e9).toString().substring(1);t="000000"===n.substring(3)?"."+n.substring(0,3)+"Z":"000"===n.substring(6)?"."+n.substring(0,6)+"Z":"."+n+"Z"}return new Date(n).toISOString().replace(".000Z",t)}(n.message);case"google.protobuf.Duration":return function(e){let n=Number(e.seconds),t=e.nanos;if(n>315576e6||n<-315576e6)throw Error(`cannot encode message ${e.$typeName} to JSON: value out of range`);if(n>0&&t<0||n<0&&t>0)throw Error(`cannot encode message ${e.$typeName} to JSON: nanos sign must match seconds sign`);let r=e.seconds.toString();if(0!==t){let e=Math.abs(t).toString();"000000"===(e="0".repeat(9-e.length)+e).substring(3)?e=e.substring(0,3):"000"===e.substring(6)&&(e=e.substring(0,6)),r+="."+e,t<0&&0==n&&(r="-"+r)}return r+"s"}(n.message);case"google.protobuf.FieldMask":var s;return(s=n.message).paths.map(e=>{if((0,t.protoSnakeCase)((0,t.protoCamelCase)(e))!==e)throw Error(`cannot encode message ${s.$typeName} to JSON: lowerCamelCase of path name "${e}" is irreversible`);return(0,t.protoCamelCase)(e)}).join(",");case"google.protobuf.Struct":return h(n.message);case"google.protobuf.Value":return y(n.message);case"google.protobuf.ListValue":return p(n.message);default:if((0,a.isWrapperDesc)(n.desc)){let e=n.desc.fields[0];return g(e,n.get(e))}return}}(e,n);if(void 0!==c)return c;let u={};for(let t of e.sortedFields){if(!e.isSet(t)){if(3==t.presence)throw Error(`cannot encode ${t} to JSON: required field not set`);if(!n.alwaysEmitImplicit||2!==t.presence)continue}let r=f(t,e.get(t),n);void 0!==r&&(u[l=t,n.useProtoFieldName?l.name:l.jsonName]=r)}if(n.registry){let t=new Set;for(let{no:r}of null!=(i=e.getUnknown())?i:[])if(!t.has(r)){t.add(r);let o=n.registry.getExtensionFor(e.desc,r);if(!o)continue;let a=(0,s.getExtension)(e.message,o),[i,l]=(0,s.createExtensionContainer)(o,a),c=f(l,i.get(l),n);void 0!==c&&(u[o.jsonName]=c)}}return u}function f(e,n,t){switch(e.fieldKind){case"scalar":return g(e,n);case"message":return d(n,t);case"enum":return m(e.enum,n,t.enumAsInteger);case"list":var r=n,o=t;let a=r.field(),i=[];switch(a.listKind){case"scalar":for(let e of r)i.push(g(a,e));break;case"enum":for(let e of r)i.push(m(a.enum,e,o.enumAsInteger));break;case"message":for(let e of r)i.push(d(e,o))}return o.alwaysEmitImplicit||i.length>0?i:void 0;case"map":var s=n,l=t;let c=s.field(),u={};switch(c.mapKind){case"scalar":for(let[e,n]of s)u[e]=g(c,n);break;case"message":for(let[e,n]of s)u[e]=d(n,l);break;case"enum":for(let[e,n]of s)u[e]=m(c.enum,n,l.enumAsInteger)}return l.alwaysEmitImplicit||s.size>0?u:void 0}}function m(e,n,t){var r;if("number"!=typeof n)throw Error(`cannot encode ${e} to JSON: expected number, got ${(0,l.formatVal)(n)}`);if("google.protobuf.NullValue"==e.typeName)return null;if(t)return n;let o=e.value[n];return null!=(r=null==o?void 0:o.name)?r:n}function g(e,t){var r,o,a,s,c,u;switch(e.scalar){case n.ScalarType.INT32:case n.ScalarType.SFIXED32:case n.ScalarType.SINT32:case n.ScalarType.FIXED32:case n.ScalarType.UINT32:if("number"!=typeof t)throw Error(`cannot encode ${e} to JSON: ${null==(r=(0,l.checkField)(e,t))?void 0:r.message}`);return t;case n.ScalarType.FLOAT:case n.ScalarType.DOUBLE:if("number"!=typeof t)throw Error(`cannot encode ${e} to JSON: ${null==(o=(0,l.checkField)(e,t))?void 0:o.message}`);if(Number.isNaN(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";return t;case n.ScalarType.STRING:if("string"!=typeof t)throw Error(`cannot encode ${e} to JSON: ${null==(a=(0,l.checkField)(e,t))?void 0:a.message}`);return t;case n.ScalarType.BOOL:if("boolean"!=typeof t)throw Error(`cannot encode ${e} to JSON: ${null==(s=(0,l.checkField)(e,t))?void 0:s.message}`);return t;case n.ScalarType.UINT64:case n.ScalarType.FIXED64:case n.ScalarType.INT64:case n.ScalarType.SFIXED64:case n.ScalarType.SINT64:if("bigint"==typeof t||"string"==typeof t||"number"==typeof t&&Number.isInteger(t))return t.toString();throw Error(`cannot encode ${e} to JSON: ${null==(c=(0,l.checkField)(e,t))?void 0:c.message}`);case n.ScalarType.BYTES:if(t instanceof Uint8Array)return(0,i.base64Encode)(t);throw Error(`cannot encode ${e} to JSON: ${null==(u=(0,l.checkField)(e,t))?void 0:u.message}`)}}function h(e){let n={};for(let[t,r]of Object.entries(e.fields))n[t]=y(r);return n}function y(e){switch(e.kind.case){case"nullValue":return null;case"numberValue":if(!Number.isFinite(e.kind.value))throw Error(`${e.$typeName} cannot be NaN or Infinity`);return e.kind.value;case"boolValue":case"stringValue":return e.kind.value;case"structValue":return h(e.kind.value);case"listValue":return p(e.kind.value);default:throw Error(`${e.$typeName} must have a value`)}}function p(e){return e.values.map(y)}e.s(["toJson",0,u,"toJsonString",0,function(e,n,t){var r;return JSON.stringify(u(e,n,t),null,null!=(r=null==t?void 0:t.prettySpaces)?r:0)}])},167937,939910,524093,e=>{"use strict";let n;(t=r||(r={}))[t.Canceled=1]="Canceled",t[t.Unknown=2]="Unknown",t[t.InvalidArgument=3]="InvalidArgument",t[t.DeadlineExceeded=4]="DeadlineExceeded",t[t.NotFound=5]="NotFound",t[t.AlreadyExists=6]="AlreadyExists",t[t.PermissionDenied=7]="PermissionDenied",t[t.ResourceExhausted=8]="ResourceExhausted",t[t.FailedPrecondition=9]="FailedPrecondition",t[t.Aborted=10]="Aborted",t[t.OutOfRange=11]="OutOfRange",t[t.Unimplemented=12]="Unimplemented",t[t.Internal=13]="Internal",t[t.Unavailable=14]="Unavailable",t[t.DataLoss=15]="DataLoss",t[t.Unauthenticated=16]="Unauthenticated",e.s(["Code",0,r],939910);var t,r,o=e.i(891287),a=e.i(29671);function i(e){let n=r[e];return"string"!=typeof n?e.toString():n[0].toLowerCase()+n.substring(1).replace(/[A-Z]/g,e=>"_"+e.toLowerCase())}e.s(["codeFromString",0,function(e){if(!n)for(let e of(n={},Object.values(r)))"string"!=typeof e&&(n[i(e)]=e);return n[e]},"codeToString",0,i],524093);class s extends Error{constructor(e,n=r.Unknown,t,o,a){super(function(e,n){return e.length?`[${i(n)}] ${e}`:`[${i(n)}]`}(e,n)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=e,this.code=n,this.metadata=new Headers(null!=t?t:{}),this.details=null!=o?o:[],this.cause=a}static from(e,n=r.Unknown){return e instanceof s?e:e instanceof Error?"AbortError"==e.name||"TimeoutError"==e.name?new s(e.message,r.Canceled):new s(e.message,n,void 0,void 0,e):new s(String(e),n,void 0,void 0,e)}static[Symbol.hasInstance](e){return e instanceof Error&&(Object.getPrototypeOf(e)===s.prototype||"ConnectError"===e.name&&"code"in e&&"number"==typeof e.code&&"metadata"in e&&"details"in e&&Array.isArray(e.details)&&"rawMessage"in e&&"string"==typeof e.rawMessage&&"cause"in e)}findDetails(e){let n="message"===e.kind?{getMessage:n=>n===e.typeName?e:void 0}:e,t=[];for(let e of this.details){if("desc"in e){n.getMessage(e.desc.typeName)&&t.push((0,o.create)(e.desc,e.value));continue}let r=n.getMessage(e.type);if(r)try{t.push((0,a.fromBinary)(r,e.value))}catch(e){}}return t}}e.s(["ConnectError",0,s],167937)},849156,e=>{"use strict";var n=e.i(424407),t=e.i(304532),r=e.i(81027);let o=(0,n.fileDesc)("Ch5nb29nbGUvcnBjL2Vycm9yX2RldGFpbHMucHJvdG8SCmdvb2dsZS5ycGMikwEKCUVycm9ySW5mbxIOCgZyZWFzb24YASABKAkSDgoGZG9tYWluGAIgASgJEjUKCG1ldGFkYXRhGAMgAygLMiMuZ29vZ2xlLnJwYy5FcnJvckluZm8uTWV0YWRhdGFFbnRyeRovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiOwoJUmV0cnlJbmZvEi4KC3JldHJ5X2RlbGF5GAEgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uIjIKCURlYnVnSW5mbxIVCg1zdGFja19lbnRyaWVzGAEgAygJEg4KBmRldGFpbBgCIAEoCSKPAwoMUXVvdGFGYWlsdXJlEjYKCnZpb2xhdGlvbnMYASADKAsyIi5nb29nbGUucnBjLlF1b3RhRmFpbHVyZS5WaW9sYXRpb24axgIKCVZpb2xhdGlvbhIPCgdzdWJqZWN0GAEgASgJEhMKC2Rlc2NyaXB0aW9uGAIgASgJEhMKC2FwaV9zZXJ2aWNlGAMgASgJEhQKDHF1b3RhX21ldHJpYxgEIAEoCRIQCghxdW90YV9pZBgFIAEoCRJRChBxdW90YV9kaW1lbnNpb25zGAYgAygLMjcuZ29vZ2xlLnJwYy5RdW90YUZhaWx1cmUuVmlvbGF0aW9uLlF1b3RhRGltZW5zaW9uc0VudHJ5EhMKC3F1b3RhX3ZhbHVlGAcgASgDEh8KEmZ1dHVyZV9xdW90YV92YWx1ZRgIIAEoA0gAiAEBGjYKFFF1b3RhRGltZW5zaW9uc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAFCFQoTX2Z1dHVyZV9xdW90YV92YWx1ZSKVAQoTUHJlY29uZGl0aW9uRmFpbHVyZRI9Cgp2aW9sYXRpb25zGAEgAygLMikuZ29vZ2xlLnJwYy5QcmVjb25kaXRpb25GYWlsdXJlLlZpb2xhdGlvbho/CglWaW9sYXRpb24SDAoEdHlwZRgBIAEoCRIPCgdzdWJqZWN0GAIgASgJEhMKC2Rlc2NyaXB0aW9uGAMgASgJIswBCgpCYWRSZXF1ZXN0Ej8KEGZpZWxkX3Zpb2xhdGlvbnMYASADKAsyJS5nb29nbGUucnBjLkJhZFJlcXVlc3QuRmllbGRWaW9sYXRpb24afQoORmllbGRWaW9sYXRpb24SDQoFZmllbGQYASABKAkSEwoLZGVzY3JpcHRpb24YAiABKAkSDgoGcmVhc29uGAMgASgJEjcKEWxvY2FsaXplZF9tZXNzYWdlGAQgASgLMhwuZ29vZ2xlLnJwYy5Mb2NhbGl6ZWRNZXNzYWdlIjcKC1JlcXVlc3RJbmZvEhIKCnJlcXVlc3RfaWQYASABKAkSFAoMc2VydmluZ19kYXRhGAIgASgJImAKDFJlc291cmNlSW5mbxIVCg1yZXNvdXJjZV90eXBlGAEgASgJEhUKDXJlc291cmNlX25hbWUYAiABKAkSDQoFb3duZXIYAyABKAkSEwoLZGVzY3JpcHRpb24YBCABKAkiVgoESGVscBIkCgVsaW5rcxgBIAMoCzIVLmdvb2dsZS5ycGMuSGVscC5MaW5rGigKBExpbmsSEwoLZGVzY3JpcHRpb24YASABKAkSCwoDdXJsGAIgASgJIjMKEExvY2FsaXplZE1lc3NhZ2USDgoGbG9jYWxlGAEgASgJEg8KB21lc3NhZ2UYAiABKAlCbAoOY29tLmdvb2dsZS5ycGNCEUVycm9yRGV0YWlsc1Byb3RvUAFaP2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvcnBjL2VycmRldGFpbHM7ZXJyZGV0YWlsc6ICA1JQQ2IGcHJvdG8z",[r.file_google_protobuf_duration]),a=(0,t.messageDesc)(o,0);e.s(["ErrorInfoSchema",0,a])},910304,e=>{"use strict";var n=e.i(167937),t=e.i(939910);let r={[t.Code.NotFound]:"not-found",[t.Code.PermissionDenied]:"permission-denied",[t.Code.Unauthenticated]:"unauthenticated",[t.Code.InvalidArgument]:"invalid-argument",[t.Code.AlreadyExists]:"already-exists",[t.Code.ResourceExhausted]:"resource-exhausted",[t.Code.FailedPrecondition]:"failed-precondition",[t.Code.Internal]:"internal",[t.Code.Unavailable]:"unavailable",[t.Code.Canceled]:"cancelled"};class o extends Error{code;connectCode;constructor(e,n,t,r){super(n,r),this.name="StigmerError",this.code=e,this.connectCode=t}}e.s(["StigmerError",0,o,"isNotFound",0,function(e){return e instanceof o&&"not-found"===e.code},"isPermissionDenied",0,function(e){return e instanceof o&&"permission-denied"===e.code},"isUnimplemented",0,function(e){return e instanceof o&&e.connectCode===t.Code.Unimplemented},"wrapError",0,function(e){return e instanceof n.ConnectError?new o(r[e.code]??"unknown",e.rawMessage||e.message,e.code,{cause:e}):e instanceof o?e:e instanceof Error?new o("unknown",e.message,t.Code.Unknown,{cause:e}):new o("unknown",String(e),t.Code.Unknown)}])},610595,e=>{"use strict";var n=e.i(167937),t=e.i(939910),r=e.i(849156),o=e.i(910304);let a={[t.Code.Unauthenticated]:"auth",[t.Code.PermissionDenied]:"permission",[t.Code.NotFound]:"not-found",[t.Code.InvalidArgument]:"validation",[t.Code.FailedPrecondition]:"validation",[t.Code.OutOfRange]:"validation",[t.Code.AlreadyExists]:"validation",[t.Code.Aborted]:"validation",[t.Code.Internal]:"server",[t.Code.Unknown]:"server",[t.Code.DataLoss]:"server",[t.Code.Unimplemented]:"server",[t.Code.Unavailable]:"unavailable",[t.Code.DeadlineExceeded]:"unavailable",[t.Code.ResourceExhausted]:"unavailable",[t.Code.Canceled]:"cancelled"},i={unauthenticated:"auth","permission-denied":"permission","not-found":"not-found","invalid-argument":"validation","already-exists":"validation","failed-precondition":"validation","resource-exhausted":"unavailable",internal:"server",unavailable:"unavailable",cancelled:"cancelled",unknown:"server"};function s(e){return e instanceof n.ConnectError}function l(e){return e instanceof o.StigmerError?i[e.code]??"unknown":s(e)?a[e.code]??"unknown":"unknown"}let c=new Set(["server","unavailable"]);function u(e){return c.has(l(e))}let d={auth:"Your session has expired. Please sign in again.",permission:"You do not have permission to perform this action.","not-found":"The requested resource was not found.",validation:"The request contains invalid data.",server:"An unexpected server error occurred. Please try again.",unavailable:"The server is temporarily unavailable. Please try again in a moment.",cancelled:"The request was cancelled.",unknown:"An unexpected error occurred."},f=[[/token audience does not match/i,"The token's audience does not match the IdentityProvider's expected_audience. Verify your Auth0 API identifier matches the expected_audience configured in Stigmer."],[/token signature verification failed/i,"Token signature verification failed. Check that the IdentityProvider's jwks_uri points to the correct JWKS endpoint."],[/token has expired/i,"The access token has expired. Request a new token and retry."],[/federated identity account not found/i,"No identity account exists for this user. The platform must create a federated account via createFederatedAccount before the user can authenticate."],[/account provisioning failed/i,"SSO account provisioning failed. Ensure the IdentityProvider's userinfo_endpoint is configured and the access token includes the 'openid email profile' scopes."]],m=[[/no healthy upstream/i,"The server is temporarily unavailable."],[/ECONNREFUSED/i,"Unable to connect to the server."],[/ECONNRESET/i,"The connection to the server was lost."],[/ETIMEDOUT/i,"The request timed out. Please try again."],[/fetch failed/i,"Unable to reach the server. Check your connection."],[/network error/i,"A network error occurred. Check your connection."],[/failed to fetch/i,"Unable to reach the server. Check your connection."],[/load failed/i,"The connection to the server was lost."],[/load balancer/i,"The server is temporarily unavailable."],[/illegal invocation/i,"A browser API call failed. Please try again."],[/can only call .+ on instances of/i,"A browser API call failed. Please try again."]];function g(e){return e instanceof o.StigmerError?e.message:s(e)?e.rawMessage:e instanceof Error?e.message:"string"==typeof e?e:""}let h=new WeakMap;e.s(["annotateRpcError",0,function(e,n){h.set(e,n)},"classifyError",0,l,"getErrorReason",0,function(e){let n=e;for(;null!=n;){if(s(n)){let e=n.findDetails(r.ErrorInfoSchema)[0];if(!e)return null;return{reason:e.reason,domain:e.domain,metadata:{...e.metadata}}}n=n instanceof Error?n.cause:void 0}return null},"getRpcMetadata",0,function(e){if(null!==e&&"object"==typeof e)return h.get(e)},"getUserMessage",0,function(e,n){let t=function(e){if(!e)return"";for(let[n,t]of f)if(n.test(e))return t;for(let[n,t]of m)if(n.test(e))return t;return e}(g(e));if(t)return t;let r=l(e);return n??d[r]},"isRetryableError",0,u,"isTransientStreamError",0,function(e){return!!u(e)||function(e){if(!e)return!1;for(let[n]of m)if(n.test(e))return!0;return!1}(g(e))}])},379410,e=>{"use strict";var n=e.i(843476),t=e.i(893976);e.s(["SpinnerIcon",0,function({size:e=16,className:r}={}){return(0,n.jsx)("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:(0,t.cn)("stg:animate-spin",r),"aria-hidden":"true",children:(0,n.jsx)("path",{d:"M8 2a6 6 0 1 0 6 6"})})}])},17616,e=>{"use strict";var n=e.i(732303),t=e.i(891287),r=e.i(314511);function o(e){return a(e.getTime())}function a(e){let o=Math.floor(e/1e3);return(0,t.create)(n.TimestampSchema,{seconds:r.protoInt64.parse(o),nanos:(e-1e3*o)*1e6})}e.s(["timestampDate",0,function(e){var n;return new Date(1e3*Number((n=e).seconds)+Math.round(n.nanos/1e6))},"timestampFromDate",0,o,"timestampFromMs",0,a,"timestampNow",0,function(){return o(new Date)}])},338300,e=>{"use strict";var n=e.i(167937),t=e.i(939910),r=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,o){var a,i,s;a=r,i=o,s=(n=e[t](n)).done,Promise.resolve(n.value).then(function(e){a({value:e,done:s})},i)})}}},o=function(e){return this instanceof o?(this.v=e,this):new o(e)},a=function(e,n,t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,a=t.apply(e,n||[]),i=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(e){return function(n){return Promise.resolve(n).then(e,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function s(e,n){a[e]&&(r[e]=function(n){return new Promise(function(t,r){i.push([e,n,t,r])>1||l(e,n)})},n&&(r[e]=n(r[e])))}function l(e,n){try{var t;(t=a[e](n)).value instanceof o?Promise.resolve(t.value.v).then(c,u):d(i[0][2],t)}catch(e){d(i[0][3],e)}}function c(e){l("next",e)}function u(e){l("throw",e)}function d(e,n){e(n),i.shift(),i.length&&l(i[0][0],i[0][1])}},i=function(e){var n,t;return n={},r("next"),r("throw",function(e){throw e}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,a){n[r]=e[r]?function(n){return(t=!t)?{value:o(e[r](n)),done:!1}:a?a(n):n}:a}},s=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,o){var a,i,s;a=r,i=o,s=(n=e[t](n)).done,Promise.resolve(n.value).then(function(e){a({value:e,done:s})},i)})}}},l=function(e){return this instanceof l?(this.v=e,this):new l(e)},c=function(e){var n,t;return n={},r("next"),r("throw",function(e){throw e}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,o){n[r]=e[r]?function(n){return(t=!t)?{value:l(e[r](n)),done:!1}:o?o(n):n}:o}},u=function(e,n,t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,o=t.apply(e,n||[]),a=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),i("next"),i("throw"),i("return",function(e){return function(n){return Promise.resolve(n).then(e,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function i(e,n){o[e]&&(r[e]=function(n){return new Promise(function(t,r){a.push([e,n,t,r])>1||s(e,n)})},n&&(r[e]=n(r[e])))}function s(e,n){try{var t;(t=o[e](n)).value instanceof l?Promise.resolve(t.value.v).then(c,u):d(a[0][2],t)}catch(e){d(a[0][3],e)}}function c(e){s("next",e)}function u(e){s("throw",e)}function d(e,n){e(n),a.shift(),a.length&&s(a[0][0],a[0][1])}};function d(e,n){let t=(function(){return u(this,arguments,function*(){var t,r;let o=yield l(e);null==(t=null==n?void 0:n.onHeader)||t.call(n,o.header),yield l((yield*c(s(o.message)))),null==(r=null==n?void 0:n.onTrailer)||r.call(n,o.trailer)})})()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>t.next()})}}e.s(["createClient",0,function(e,l){let c={};for(let u of e.methods){let e=(e=>{switch(e.methodKind){case"unary":return function(e,n){return async(t,r)=>{var o,a;let i=await e.unary(n,null==r?void 0:r.signal,null==r?void 0:r.timeoutMs,null==r?void 0:r.headers,t,null==r?void 0:r.contextValues);return null==(o=null==r?void 0:r.onHeader)||o.call(r,i.header),null==(a=null==r?void 0:r.onTrailer)||a.call(r,i.trailer),i.message}}(l,e);case"server_streaming":return function(e,n){return(t,s)=>d(e.stream(n,null==s?void 0:s.signal,null==s?void 0:s.timeoutMs,null==s?void 0:s.headers,function(e){return a(this,arguments,function*(){yield o((yield*i(r(e))))})}([t]),null==s?void 0:s.contextValues),s)}(l,e);case"client_streaming":return function(e,r){return async(o,a)=>{let i,l=await e.stream(r,null==a?void 0:a.signal,null==a?void 0:a.timeoutMs,null==a?void 0:a.headers,o,null==a?void 0:a.contextValues);null==(g=null==a?void 0:a.onHeader)||g.call(a,l.header);let c=0;try{for(var u,d,f,m,g,h,y,p=!0,v=s(l.message);!(u=(y=await v.next()).done);p=!0)m=y.value,p=!1,i=m,c++}catch(e){d={error:e}}finally{try{!p&&!u&&(f=v.return)&&await f.call(v)}finally{if(d)throw d.error}}if(!i)throw new n.ConnectError("protocol error: missing response message",t.Code.Unimplemented);if(c>1)throw new n.ConnectError("protocol error: received extra messages for client streaming method",t.Code.Unimplemented);return null==(h=null==a?void 0:a.onTrailer)||h.call(a,l.trailer),i}}(l,e);case"bidi_streaming":return function(e,n){return(t,r)=>d(e.stream(n,null==r?void 0:r.signal,null==r?void 0:r.timeoutMs,null==r?void 0:r.headers,t,null==r?void 0:r.contextValues),r)}(l,e);default:return null}})(u);null!=e&&(c[u.localName]=e)}return c}],338300)},292558,e=>{"use strict";var n=e.i(17616);function t(e){if(e&&(e.org||e.slug))return{org:e.org,slug:e.slug,...e.version&&{version:e.version},...e.kind&&{kind:e.kind}}}e.s(["stripUndefined",0,function(e){let n={};for(let t of Object.keys(e))void 0!==e[t]&&(n[t]=e[t]);return n},"toResourceRefInput",0,t,"toResourceRefInputs",0,function(e){if(e&&0!==e.length)return e.map(e=>t(e)??{org:"",slug:""})},"toTimestamp",0,function(e){let t=e instanceof Date?e:new Date(e);return(0,n.timestampFromDate)(t)}])},798525,301218,e=>{"use strict";var n=e.i(424407),t=e.i(304532),r=e.i(170255),o=e.i(302933),a=e.i(85849),i=e.i(761867),s=e.i(732303);let l=(0,n.fileDesc)("Ch1haS9zdGlnbWVyL3NlYXJjaC92MS9pby5wcm90bxIUYWkuc3RpZ21lci5zZWFyY2gudjEilQIKDVNlYXJjaFJlcXVlc3QSXQoFa2luZHMYASADKA4yPy5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuYXBpcmVzb3VyY2VraW5kLkFwaVJlc291cmNlS2luZEINukgKkgEHIgWCAQIQARIXCgVxdWVyeRgCIAEoCUIIukgFcgMY9AMSKgoDb3JnGAMgASgJQh26SBpyGBg/MhReJHxeW2Etel1bYS16MC05LV0qJBIWCg5leGNsdWRlX3B1YmxpYxgEIAEoCBIuCgRwYWdlGAUgASgLMiAuYWkuc3RpZ21lci5jb21tb25zLnJwYy5QYWdlSW5mbxIYChBjcm9zc19vcmdfcHVibGljGAYgASgIIvQBCg5TZWFyY2hSZXNwb25zZRIzCgdlbnRyaWVzGAEgAygLMiIuYWkuc3RpZ21lci5zZWFyY2gudjEuU2VhcmNoUmVzdWx0Ek4KDmNvdW50c19ieV9raW5kGAIgAygLMjYuYWkuc3RpZ21lci5zZWFyY2gudjEuU2VhcmNoUmVzcG9uc2UuQ291bnRzQnlLaW5kRW50cnkSEwoLdG90YWxfY291bnQYAyABKAUSEwoLdG90YWxfcGFnZXMYBCABKAUaMwoRQ291bnRzQnlLaW5kRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgFOgI4ASKZAwoMU2VhcmNoUmVzdWx0Ek0KBGtpbmQYASABKA4yPy5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuYXBpcmVzb3VyY2VraW5kLkFwaVJlc291cmNlS2luZBIKCgJpZBgCIAEoCRIMCgRuYW1lGAMgASgJEgwKBHNsdWcYBCABKAkSFgoOcXVhbGlmaWVkX3NsdWcYBSABKAkSCwoDb3JnGAYgASgJEhMKC2Rlc2NyaXB0aW9uGAcgASgJEkkKCnZpc2liaWxpdHkYCCABKA4yNS5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VWaXNpYmlsaXR5EgwKBHRhZ3MYCSADKAkSLgoKY3JlYXRlZF9hdBgKIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKdXBkYXRlZF9hdBgLIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASDQoFc2NvcmUYDCABKAISEAoIaWNvbl91cmwYDSABKAliBnByb3RvMw",[r.file_ai_stigmer_commons_apiresource_apiresourcekind_api_resource_kind,o.file_ai_stigmer_commons_apiresource_enum,a.file_ai_stigmer_commons_rpc_pagination,i.file_buf_validate_validate,s.file_google_protobuf_timestamp]),c=(0,t.messageDesc)(l,0);e.s(["SearchRequestSchema",0,c,"file_ai_stigmer_search_v1_io",0,l],798525);var u=e.i(499328),d=e.i(693569);let f=(0,n.fileDesc)("CiBhaS9zdGlnbWVyL3NlYXJjaC92MS9xdWVyeS5wcm90bxIUYWkuc3RpZ21lci5zZWFyY2gudjEyagoNU2VhcmNoU2VydmljZRJZCgZzZWFyY2gSIy5haS5zdGlnbWVyLnNlYXJjaC52MS5TZWFyY2hSZXF1ZXN0GiQuYWkuc3RpZ21lci5zZWFyY2gudjEuU2VhcmNoUmVzcG9uc2UiBNC4GAFiBnByb3RvMw",[d.file_ai_stigmer_commons_rpc_method_options,l]),m=(0,u.serviceDesc)(f,0);e.s(["SearchService",0,m],301218)}]);