@stigmer/server-slim 3.13.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 (738) hide show
  1. package/README.md +3 -0
  2. package/console/404.html +1 -0
  3. package/console/Icon-bw.svg +10 -0
  4. package/console/Icon-light.svg +10 -0
  5. package/console/__next.__PAGE__.txt +5 -0
  6. package/console/__next._full.txt +28 -0
  7. package/console/__next._head.txt +6 -0
  8. package/console/__next._index.txt +17 -0
  9. package/console/__next._tree.txt +5 -0
  10. package/console/_next/static/XrBnttPHHP5Wmi7mT4uLM/_buildManifest.js +11 -0
  11. package/console/_next/static/XrBnttPHHP5Wmi7mT4uLM/_clientMiddlewareManifest.js +1 -0
  12. package/console/_next/static/XrBnttPHHP5Wmi7mT4uLM/_ssgManifest.js +1 -0
  13. package/console/_next/static/chunks/0-6znc4v4kg4~.js +1 -0
  14. package/console/_next/static/chunks/0-73gkqs33_.~.js +1 -0
  15. package/console/_next/static/chunks/0-l4jzu40dd8w.js +1 -0
  16. package/console/_next/static/chunks/0-z-fnjdx4ulh.js +1 -0
  17. package/console/_next/static/chunks/0-zcgxw8vt51~.js +1 -0
  18. package/console/_next/static/chunks/0.f-b71h~m9l_.js +1 -0
  19. package/console/_next/static/chunks/0.p57pbuzo8j7.js +90 -0
  20. package/console/_next/static/chunks/0.qu8zg6yocro.js +1 -0
  21. package/console/_next/static/chunks/00-fpv~l3r27l.js +1 -0
  22. package/console/_next/static/chunks/005ctashl3n1r.js +1 -0
  23. package/console/_next/static/chunks/0068d1zb538z~.js +1 -0
  24. package/console/_next/static/chunks/008b.zzs.t4bw.js +139 -0
  25. package/console/_next/static/chunks/00d~s.n2ue-_h.js +1 -0
  26. package/console/_next/static/chunks/00o8ud2dmna2j.js +1 -0
  27. package/console/_next/static/chunks/00r~itj4ekq5y.js +1 -0
  28. package/console/_next/static/chunks/01.9x7hzkgv7j.js +1 -0
  29. package/console/_next/static/chunks/016uwj-o-jqap.js +1 -0
  30. package/console/_next/static/chunks/01f1gh.2dzexy.js +1 -0
  31. package/console/_next/static/chunks/01ontipw7_pn-.js +1 -0
  32. package/console/_next/static/chunks/02fsq8lsaeu8j.js +1 -0
  33. package/console/_next/static/chunks/02qsbdquvk64o.js +1 -0
  34. package/console/_next/static/chunks/03.b9z-1o34dx.js +1 -0
  35. package/console/_next/static/chunks/038jxymv2x4u-.js +148 -0
  36. package/console/_next/static/chunks/03f2f6enzzhsy.js +1 -0
  37. package/console/_next/static/chunks/03l_lqxocp3uj.js +1 -0
  38. package/console/_next/static/chunks/03lth2le32c6r.js +201 -0
  39. package/console/_next/static/chunks/03v0v690_bw8u.js +62 -0
  40. package/console/_next/static/chunks/03yru4-m-450t.js +1 -0
  41. package/console/_next/static/chunks/03~yq9q893hmn.js +1 -0
  42. package/console/_next/static/chunks/04nu-nyhd8yfk.js +18 -0
  43. package/console/_next/static/chunks/04uzf6wcrofgt.js +1 -0
  44. package/console/_next/static/chunks/056bfxvkb8fd~.js +1 -0
  45. package/console/_next/static/chunks/06huuay3x3z07.js +1 -0
  46. package/console/_next/static/chunks/06o.rsm2b~dht.js +60 -0
  47. package/console/_next/static/chunks/07.l7154cu7z-.js +1 -0
  48. package/console/_next/static/chunks/07wnm1~gr1rx~.js +1 -0
  49. package/console/_next/static/chunks/08.rk-nar1l2t.js +25 -0
  50. package/console/_next/static/chunks/08iibm2~7e.mj.js +1 -0
  51. package/console/_next/static/chunks/08o5wsrurx9ux.js +5 -0
  52. package/console/_next/static/chunks/09~n7y-jkmjlj.js +152 -0
  53. package/console/_next/static/chunks/0_mhv9_2_g.-d.js +119 -0
  54. package/console/_next/static/chunks/0af53k.rxu1kn.js +1 -0
  55. package/console/_next/static/chunks/0amugang-25bm.js +1 -0
  56. package/console/_next/static/chunks/0awsj.h.eiuen.js +1 -0
  57. package/console/_next/static/chunks/0axtn1ln1j35_.js +79 -0
  58. package/console/_next/static/chunks/0c5xj4q0jmdu0.js +1 -0
  59. package/console/_next/static/chunks/0c7llz2igr3w7.js +1 -0
  60. package/console/_next/static/chunks/0cgp87bgoglgv.js +1 -0
  61. package/console/_next/static/chunks/0co3~00k0sae5.js +1 -0
  62. package/console/_next/static/chunks/0cq0zrqlu~xa7.js +1 -0
  63. package/console/_next/static/chunks/0cs_h74-ljzlt.js +77 -0
  64. package/console/_next/static/chunks/0cu8k_dz43e4y.js +1 -0
  65. package/console/_next/static/chunks/0d05q_m7mqj4o.js +1 -0
  66. package/console/_next/static/chunks/0dsde0n1co0l..js +1 -0
  67. package/console/_next/static/chunks/0e4xdug~7dxzk.js +1 -0
  68. package/console/_next/static/chunks/0e7hldxv930hc.js +12 -0
  69. package/console/_next/static/chunks/0ed3hfv95qark.js +10 -0
  70. package/console/_next/static/chunks/0f1nokqa6poai.js +1 -0
  71. package/console/_next/static/chunks/0f8bbcvfh6x_j.js +64 -0
  72. package/console/_next/static/chunks/0fy2-q-5a0j3r.js +1 -0
  73. package/console/_next/static/chunks/0g-98wql22rf4.css +1 -0
  74. package/console/_next/static/chunks/0g167wye7-x6z.js +1 -0
  75. package/console/_next/static/chunks/0g4_345f39a55.js +1 -0
  76. package/console/_next/static/chunks/0ge0mq0ea60lx.js +1 -0
  77. package/console/_next/static/chunks/0gepanyj709pr.js +1 -0
  78. package/console/_next/static/chunks/0glne1asott9e.js +2 -0
  79. package/console/_next/static/chunks/0hb.-vcj2w6kf.js +1 -0
  80. package/console/_next/static/chunks/0hdh_2akzrlxi.js +287 -0
  81. package/console/_next/static/chunks/0hhe78mplcj67.js +1 -0
  82. package/console/_next/static/chunks/0hori02zn~h3o.js +1 -0
  83. package/console/_next/static/chunks/0hq~c-~dp2g~1.js +1 -0
  84. package/console/_next/static/chunks/0i.l9589uvx0j.js +1 -0
  85. package/console/_next/static/chunks/0i8pgzf~hu-3m.js +24 -0
  86. package/console/_next/static/chunks/0icpvuwlmnlty.js +43 -0
  87. package/console/_next/static/chunks/0icsogze8wb_v.js +3 -0
  88. package/console/_next/static/chunks/0ij17mw0v0qd-.js +1 -0
  89. package/console/_next/static/chunks/0io-wgdji~5d0.js +1 -0
  90. package/console/_next/static/chunks/0ipk1er3w80bj.js +24 -0
  91. package/console/_next/static/chunks/0irq1yd9ix16u.js +1 -0
  92. package/console/_next/static/chunks/0iwpyv2wbln6f.js +1 -0
  93. package/console/_next/static/chunks/0ixo5_jc~m0~2.js +1 -0
  94. package/console/_next/static/chunks/0jxlubusvmdjm.js +1 -0
  95. package/console/_next/static/chunks/0j~3z.dgn_8ff.css +6 -0
  96. package/console/_next/static/chunks/0k9_1v72yx36d.js +226 -0
  97. package/console/_next/static/chunks/0ka-.7dww7nze.js +101 -0
  98. package/console/_next/static/chunks/0kt3942_0py-t.js +1 -0
  99. package/console/_next/static/chunks/0l3uvjh3oslhq.js +1 -0
  100. package/console/_next/static/chunks/0lp.du_t-~cqs.js +2 -0
  101. package/console/_next/static/chunks/0lq22-4n7_uyt.js +34 -0
  102. package/console/_next/static/chunks/0lypu-.xpph9..js +15 -0
  103. package/console/_next/static/chunks/0mb.pnhflhw95.js +1 -0
  104. package/console/_next/static/chunks/0mcz_room09fj.js +1 -0
  105. package/console/_next/static/chunks/0mo3-obfy2_6v.js +15 -0
  106. package/console/_next/static/chunks/0mtfbfe5xd3.6.js +1 -0
  107. package/console/_next/static/chunks/0mvcspqlkvjri.js +1 -0
  108. package/console/_next/static/chunks/0n2qydw3oc1oj.js +1 -0
  109. package/console/_next/static/chunks/0nnkdto25tilf.js +1 -0
  110. package/console/_next/static/chunks/0npm9l63~4j0v.js +1 -0
  111. package/console/_next/static/chunks/0nu6llqvg4741.js +1 -0
  112. package/console/_next/static/chunks/0n~glqz40m6gv.js +1 -0
  113. package/console/_next/static/chunks/0o-.19qua6web.js +5 -0
  114. package/console/_next/static/chunks/0omq5mq8dkd24.js +1 -0
  115. package/console/_next/static/chunks/0oprw5m.lmqln.js +1 -0
  116. package/console/_next/static/chunks/0ortphe030oky.js +1 -0
  117. package/console/_next/static/chunks/0oufb2b491l23.js +153 -0
  118. package/console/_next/static/chunks/0owq59irnycu5.js +1 -0
  119. package/console/_next/static/chunks/0ptwwlt0l20~o.js +1 -0
  120. package/console/_next/static/chunks/0q2tc-vqxe1_n.js +1 -0
  121. package/console/_next/static/chunks/0qfu4h5g.k-yt.js +1 -0
  122. package/console/_next/static/chunks/0qji_.pm~u8x3.js +1 -0
  123. package/console/_next/static/chunks/0qm2930z0c.8m.js +80 -0
  124. package/console/_next/static/chunks/0q~1rz_i~v0vs.js +1 -0
  125. package/console/_next/static/chunks/0r4lipg4xb6fx.js +1 -0
  126. package/console/_next/static/chunks/0rhvismtjivza.js +104 -0
  127. package/console/_next/static/chunks/0rmt10l3458p_.js +93 -0
  128. package/console/_next/static/chunks/0rob~86j~8vge.js +1 -0
  129. package/console/_next/static/chunks/0r~zu0c3j_b7p.js +1 -0
  130. package/console/_next/static/chunks/0s0v8xobo-2ok.js +34 -0
  131. package/console/_next/static/chunks/0s8nwq43gep9_.js +15 -0
  132. package/console/_next/static/chunks/0spswjguxbqfn.js +1 -0
  133. package/console/_next/static/chunks/0t6aq14rpn1.w.js +1 -0
  134. package/console/_next/static/chunks/0taiwi2j.k7mm.js +1 -0
  135. package/console/_next/static/chunks/0tj3k0t29gpn7.js +1 -0
  136. package/console/_next/static/chunks/0tq77.56bu2eu.js +1 -0
  137. package/console/_next/static/chunks/0ulcdeu8yx-cn.js +1 -0
  138. package/console/_next/static/chunks/0uvbqsa~x3_x6.js +1 -0
  139. package/console/_next/static/chunks/0uw8zy_zoej6s.js +1 -0
  140. package/console/_next/static/chunks/0uz5-~rqk9vr..js +1 -0
  141. package/console/_next/static/chunks/0w3ug0~zih~j2.js +1 -0
  142. package/console/_next/static/chunks/0wfrz3x.bxehc.js +1 -0
  143. package/console/_next/static/chunks/0wyb4nqlt6his.js +1 -0
  144. package/console/_next/static/chunks/0x.4919xjicc5.js +75 -0
  145. package/console/_next/static/chunks/0xr1dk~mec2dn.js +1 -0
  146. package/console/_next/static/chunks/0xxouzzjw_a6q.js +115 -0
  147. package/console/_next/static/chunks/0y0u4wm.3~_ac.js +1 -0
  148. package/console/_next/static/chunks/0y4vop46pw7ip.js +2 -0
  149. package/console/_next/static/chunks/0y5z3t-z1c8ks.js.map +5 -0
  150. package/console/_next/static/chunks/0y99xmlf_e2si.js +1 -0
  151. package/console/_next/static/chunks/0ydl92ezt_ppz.js +1 -0
  152. package/console/_next/static/chunks/0ywlzawl2ml3h.js +1 -0
  153. package/console/_next/static/chunks/0yysdfbgz-l8n.js +1 -0
  154. package/console/_next/static/chunks/0zjs5hlwbvch9.js +4 -0
  155. package/console/_next/static/chunks/0zsntdh42--v1.js +1 -0
  156. package/console/_next/static/chunks/104yvyc1ce3q5.js +1 -0
  157. package/console/_next/static/chunks/1051z1rwyse00.js +1 -0
  158. package/console/_next/static/chunks/10h6g4u9i~5h8.js +1 -0
  159. package/console/_next/static/chunks/10isn5~-bj4w5.js +4 -0
  160. package/console/_next/static/chunks/10ymqudg~95gr.js +1 -0
  161. package/console/_next/static/chunks/111eimn8nia.7.js +1 -0
  162. package/console/_next/static/chunks/1155_-gh-rcvi.js +1 -0
  163. package/console/_next/static/chunks/117cg_x8i7.ol.js +1 -0
  164. package/console/_next/static/chunks/11_7qxlc92f5s.js +1 -0
  165. package/console/_next/static/chunks/11h85j-8~tny3.js +36 -0
  166. package/console/_next/static/chunks/11t~35bechtea.js +1 -0
  167. package/console/_next/static/chunks/11uh-ttx4zin-.js +9 -0
  168. package/console/_next/static/chunks/11xfx57fbi3md.js +2 -0
  169. package/console/_next/static/chunks/12329wyw7127c.js +1 -0
  170. package/console/_next/static/chunks/123jshjvn0ocr.js +31 -0
  171. package/console/_next/static/chunks/128ahbvhdeeq-.js +1 -0
  172. package/console/_next/static/chunks/13hl4dngamd3l.js +127 -0
  173. package/console/_next/static/chunks/14.38bpm-d3-l.js +1 -0
  174. package/console/_next/static/chunks/14i46k409qlt0.js +1 -0
  175. package/console/_next/static/chunks/14j238ax8coge.js +29 -0
  176. package/console/_next/static/chunks/159151ghv9-cc.js +1 -0
  177. package/console/_next/static/chunks/15hlb71q~xfev.js +1 -0
  178. package/console/_next/static/chunks/15r_pfbdb2jhp.js +23 -0
  179. package/console/_next/static/chunks/15wc.2zpsy4wc.js +4 -0
  180. package/console/_next/static/chunks/16pzrphqjtyli.js +1 -0
  181. package/console/_next/static/chunks/16ukgtm3fhab~.js +1071 -0
  182. package/console/_next/static/chunks/170p3g7_6_620.js +2 -0
  183. package/console/_next/static/chunks/175hd_pl41_vh.js +15 -0
  184. package/console/_next/static/chunks/17glhyaxi4vs-.js +1 -0
  185. package/console/_next/static/chunks/17jhgtykn778_.js +1 -0
  186. package/console/_next/static/chunks/17v4twif7y~.b.js +1 -0
  187. package/console/_next/static/chunks/182b_f_n0-cdr.js +1 -0
  188. package/console/_next/static/chunks/187v8dzyf1l-f.js +80 -0
  189. package/console/_next/static/chunks/turbopack-0cvnq9zq1g68-.js +1 -0
  190. package/console/_next/static/chunks/turbopack-172c~.rma.yso.js +1 -0
  191. package/console/_next/static/chunks/turbopack-worker-0sjn--fhq~1cg.js +1 -0
  192. package/console/_next/static/media/02263ebadd758ea4-s.0qg7j5o.yrclm.woff2 +0 -0
  193. package/console/_next/static/media/03fc1b4a8d284b5e-s.09.f.n_ccld80.woff2 +0 -0
  194. package/console/_next/static/media/07454f8ad8aaac57-s.0tqkxa-w3pk~c.woff2 +0 -0
  195. package/console/_next/static/media/1bcd0e671759a44c-s.0vnh8.d8wxa2x.woff2 +0 -0
  196. package/console/_next/static/media/1bffadaabf893a1e-s.16ipb6fqu393i.woff2 +0 -0
  197. package/console/_next/static/media/224e262ef877bfa4-s.0mo8vqgr8yagc.woff2 +0 -0
  198. package/console/_next/static/media/2bbe8d2671613f1f-s.067x_6k0k23tk.woff2 +0 -0
  199. package/console/_next/static/media/2c55a0e60120577a-s.0bjc5tiuqdqro.woff2 +0 -0
  200. package/console/_next/static/media/2fe89d53234c61d4-s.0k_.i63k_i_qa.woff2 +0 -0
  201. package/console/_next/static/media/4fa387ec64143e14-s.0wkzw~je483f-.woff2 +0 -0
  202. package/console/_next/static/media/53b9e256198e5412-s.0-wfv7uh4i7h9.woff2 +0 -0
  203. package/console/_next/static/media/5476f68d60460930-s.0wxq9webf.ew4.woff2 +0 -0
  204. package/console/_next/static/media/57215795b8570f5c-s.0vwgtotjdgnhr.woff2 +0 -0
  205. package/console/_next/static/media/59b15b4bcd7b1eb5-s.0x08jh8vondwt.woff2 +0 -0
  206. package/console/_next/static/media/5ce348bf30bf5439-s.0zgw-jeven.3w.woff2 +0 -0
  207. package/console/_next/static/media/5e05ae5b48faa55e-s.0m9hhkgdlzukj.woff2 +0 -0
  208. package/console/_next/static/media/6306c77e7c8268e4-s.0rhz0arwfsn~5.woff2 +0 -0
  209. package/console/_next/static/media/68757d6cddeff913-s.0hkrq11n-dhos.woff2 +0 -0
  210. package/console/_next/static/media/7178b3e590c64307-s.0nx0ww8fni_q3.woff2 +0 -0
  211. package/console/_next/static/media/797e433ab948586e-s.p.08e28id.o-okb.woff2 +0 -0
  212. package/console/_next/static/media/7d817b4c03b0c5f1-s.0l76wvqk9d84w.woff2 +0 -0
  213. package/console/_next/static/media/7f11d98043fdedc9-s.0r4w1y.tjq0ay.woff2 +0 -0
  214. package/console/_next/static/media/7fea77d1d19108bf-s.0xyeb7czu1stb.woff2 +0 -0
  215. package/console/_next/static/media/83afe278b6a6bb3c-s.0q-301v4kxxnr.woff2 +0 -0
  216. package/console/_next/static/media/8a480f0b521d4e75-s.0jzbimsg8vl84.woff2 +0 -0
  217. package/console/_next/static/media/90c51ce8fb754fe8-s.00z~hoalba5dm.woff2 +0 -0
  218. package/console/_next/static/media/99e609270109b47d-s.16-z~2sp29ex6.woff2 +0 -0
  219. package/console/_next/static/media/9c72aa0f40e4eef8-s.0m6w47a4e5dy9.woff2 +0 -0
  220. package/console/_next/static/media/a7afbb44bec2bb18-s.0juuwbcf7uz~t.woff2 +0 -0
  221. package/console/_next/static/media/ad66f9afd8947f86-s.11u06r12fd6v_.woff2 +0 -0
  222. package/console/_next/static/media/bbc41e54d2fcbd21-s.0k4k9394f2q-k.woff2 +0 -0
  223. package/console/_next/static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2 +0 -0
  224. package/console/_next/static/media/d8cb5ab3660140cd-s.0ri_id_kcagyz.woff2 +0 -0
  225. package/console/_next/static/media/e15f58668ad64cb8-s.0~.8lt~vdqmc3.woff2 +0 -0
  226. package/console/_next/static/media/e390973e931a41c5-s.08hd0g.321csk.woff2 +0 -0
  227. package/console/_next/static/media/e532fa1b9921e1cd-s.0~wrfy7sm-h4g.woff2 +0 -0
  228. package/console/_next/static/media/e6d00ff86ef9e699-s.0lcb62h0-.jh3.woff2 +0 -0
  229. package/console/_next/static/media/effe91970fc4db64-s.07ig5l8azj~hy.woff2 +0 -0
  230. package/console/_next/static/media/elk-worker.min.13hrbirt7_.ef.js +6401 -0
  231. package/console/_next/static/media/favicon.0x3dzn~oxb6tn.ico +0 -0
  232. package/console/_next/static/media/fef07dbb0973bf53-s.12tyk43_3sh9u.woff2 +0 -0
  233. package/console/_not-found/__next._full.txt +29 -0
  234. package/console/_not-found/__next._head.txt +6 -0
  235. package/console/_not-found/__next._index.txt +17 -0
  236. package/console/_not-found/__next._not-found.__PAGE__.txt +6 -0
  237. package/console/_not-found/__next._not-found.txt +5 -0
  238. package/console/_not-found/__next._tree.txt +3 -0
  239. package/console/_not-found.html +1 -0
  240. package/console/_not-found.txt +29 -0
  241. package/console/apple-touch-icon-dark.png +0 -0
  242. package/console/apple-touch-icon-light.png +0 -0
  243. package/console/auth/callback/__next._full.txt +36 -0
  244. package/console/auth/callback/__next._head.txt +6 -0
  245. package/console/auth/callback/__next._index.txt +17 -0
  246. package/console/auth/callback/__next._tree.txt +5 -0
  247. package/console/auth/callback/__next.auth.callback.__PAGE__.txt +9 -0
  248. package/console/auth/callback/__next.auth.callback.txt +5 -0
  249. package/console/auth/callback/__next.auth.txt +5 -0
  250. package/console/auth/callback.html +1 -0
  251. package/console/auth/callback.txt +36 -0
  252. package/console/auth/github/callback/__next._full.txt +37 -0
  253. package/console/auth/github/callback/__next._head.txt +6 -0
  254. package/console/auth/github/callback/__next._index.txt +17 -0
  255. package/console/auth/github/callback/__next._tree.txt +5 -0
  256. package/console/auth/github/callback/__next.auth.github.callback.__PAGE__.txt +9 -0
  257. package/console/auth/github/callback/__next.auth.github.callback.txt +5 -0
  258. package/console/auth/github/callback/__next.auth.github.txt +5 -0
  259. package/console/auth/github/callback/__next.auth.txt +5 -0
  260. package/console/auth/github/callback.html +1 -0
  261. package/console/auth/github/callback.txt +37 -0
  262. package/console/auth/oauth/callback/__next._full.txt +37 -0
  263. package/console/auth/oauth/callback/__next._head.txt +6 -0
  264. package/console/auth/oauth/callback/__next._index.txt +17 -0
  265. package/console/auth/oauth/callback/__next._tree.txt +5 -0
  266. package/console/auth/oauth/callback/__next.auth.oauth.callback.__PAGE__.txt +9 -0
  267. package/console/auth/oauth/callback/__next.auth.oauth.callback.txt +5 -0
  268. package/console/auth/oauth/callback/__next.auth.oauth.txt +5 -0
  269. package/console/auth/oauth/callback/__next.auth.txt +5 -0
  270. package/console/auth/oauth/callback.html +1 -0
  271. package/console/auth/oauth/callback.txt +37 -0
  272. package/console/chat/__placeholder__/__placeholder__/__next._full.txt +35 -0
  273. package/console/chat/__placeholder__/__placeholder__/__next._head.txt +6 -0
  274. package/console/chat/__placeholder__/__placeholder__/__next._index.txt +17 -0
  275. package/console/chat/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  276. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.__PAGE__.txt +6 -0
  277. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.txt +5 -0
  278. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.txt +5 -0
  279. package/console/chat/__placeholder__/__placeholder__/__next.chat.txt +5 -0
  280. package/console/chat/__placeholder__/__placeholder__.html +1 -0
  281. package/console/chat/__placeholder__/__placeholder__.txt +35 -0
  282. package/console/conversations/__next._full.txt +32 -0
  283. package/console/conversations/__next._head.txt +6 -0
  284. package/console/conversations/__next._index.txt +17 -0
  285. package/console/conversations/__next._tree.txt +5 -0
  286. package/console/conversations/__next.conversations.__PAGE__.txt +6 -0
  287. package/console/conversations/__next.conversations.txt +5 -0
  288. package/console/conversations/__placeholder__/__placeholder__/__next._full.txt +35 -0
  289. package/console/conversations/__placeholder__/__placeholder__/__next._head.txt +6 -0
  290. package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +17 -0
  291. package/console/conversations/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  292. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.__PAGE__.txt +6 -0
  293. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.txt +5 -0
  294. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.txt +5 -0
  295. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.txt +5 -0
  296. package/console/conversations/__placeholder__/__placeholder__.html +1 -0
  297. package/console/conversations/__placeholder__/__placeholder__.txt +35 -0
  298. package/console/conversations.html +1 -0
  299. package/console/conversations.txt +32 -0
  300. package/console/dashboard/__next._full.txt +32 -0
  301. package/console/dashboard/__next._head.txt +6 -0
  302. package/console/dashboard/__next._index.txt +17 -0
  303. package/console/dashboard/__next._tree.txt +5 -0
  304. package/console/dashboard/__next.dashboard.__PAGE__.txt +6 -0
  305. package/console/dashboard/__next.dashboard.txt +5 -0
  306. package/console/dashboard.html +1 -0
  307. package/console/dashboard.txt +32 -0
  308. package/console/embed.js +1 -0
  309. package/console/executions/__placeholder__/__next._full.txt +32 -0
  310. package/console/executions/__placeholder__/__next._head.txt +6 -0
  311. package/console/executions/__placeholder__/__next._index.txt +17 -0
  312. package/console/executions/__placeholder__/__next._tree.txt +5 -0
  313. package/console/executions/__placeholder__/__next.executions.$d$id.__PAGE__.txt +5 -0
  314. package/console/executions/__placeholder__/__next.executions.$d$id.txt +5 -0
  315. package/console/executions/__placeholder__/__next.executions.txt +5 -0
  316. package/console/executions/__placeholder__.html +1 -0
  317. package/console/executions/__placeholder__.txt +32 -0
  318. package/console/favicon-dark-16x16.png +0 -0
  319. package/console/favicon-dark-32x32.png +0 -0
  320. package/console/favicon-dark.ico +0 -0
  321. package/console/favicon-dark.svg +11 -0
  322. package/console/favicon-light-16x16.png +0 -0
  323. package/console/favicon-light-32x32.png +0 -0
  324. package/console/favicon-light.ico +0 -0
  325. package/console/favicon-light.svg +11 -0
  326. package/console/favicon.ico +0 -0
  327. package/console/index.html +1 -0
  328. package/console/index.txt +28 -0
  329. package/console/invite/__placeholder__/__next._full.txt +33 -0
  330. package/console/invite/__placeholder__/__next._head.txt +6 -0
  331. package/console/invite/__placeholder__/__next._index.txt +17 -0
  332. package/console/invite/__placeholder__/__next._tree.txt +5 -0
  333. package/console/invite/__placeholder__/__next.invite.$d$token.__PAGE__.txt +6 -0
  334. package/console/invite/__placeholder__/__next.invite.$d$token.txt +5 -0
  335. package/console/invite/__placeholder__/__next.invite.txt +5 -0
  336. package/console/invite/__placeholder__.html +1 -0
  337. package/console/invite/__placeholder__.txt +33 -0
  338. package/console/library/__next._full.txt +33 -0
  339. package/console/library/__next._head.txt +6 -0
  340. package/console/library/__next._index.txt +17 -0
  341. package/console/library/__next._tree.txt +5 -0
  342. package/console/library/__next.library.__PAGE__.txt +6 -0
  343. package/console/library/__next.library.txt +7 -0
  344. package/console/library/agents/__next._full.txt +36 -0
  345. package/console/library/agents/__next._head.txt +6 -0
  346. package/console/library/agents/__next._index.txt +17 -0
  347. package/console/library/agents/__next._tree.txt +5 -0
  348. package/console/library/agents/__next.library.agents.__PAGE__.txt +6 -0
  349. package/console/library/agents/__next.library.agents.txt +5 -0
  350. package/console/library/agents/__next.library.txt +7 -0
  351. package/console/library/agents/__placeholder__/__placeholder__/__next._full.txt +39 -0
  352. package/console/library/agents/__placeholder__/__placeholder__/__next._head.txt +6 -0
  353. package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +17 -0
  354. package/console/library/agents/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  355. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.__PAGE__.txt +6 -0
  356. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.txt +5 -0
  357. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.txt +5 -0
  358. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.txt +5 -0
  359. package/console/library/agents/__placeholder__/__placeholder__/__next.library.txt +7 -0
  360. package/console/library/agents/__placeholder__/__placeholder__.html +1 -0
  361. package/console/library/agents/__placeholder__/__placeholder__.txt +39 -0
  362. package/console/library/agents/new/__next._full.txt +40 -0
  363. package/console/library/agents/new/__next._head.txt +6 -0
  364. package/console/library/agents/new/__next._index.txt +17 -0
  365. package/console/library/agents/new/__next._tree.txt +5 -0
  366. package/console/library/agents/new/__next.library.agents.new.__PAGE__.txt +9 -0
  367. package/console/library/agents/new/__next.library.agents.new.txt +5 -0
  368. package/console/library/agents/new/__next.library.agents.txt +5 -0
  369. package/console/library/agents/new/__next.library.txt +7 -0
  370. package/console/library/agents/new.html +1 -0
  371. package/console/library/agents/new.txt +40 -0
  372. package/console/library/agents.html +1 -0
  373. package/console/library/agents.txt +36 -0
  374. package/console/library/mcp-servers/__next._full.txt +36 -0
  375. package/console/library/mcp-servers/__next._head.txt +6 -0
  376. package/console/library/mcp-servers/__next._index.txt +17 -0
  377. package/console/library/mcp-servers/__next._tree.txt +5 -0
  378. package/console/library/mcp-servers/__next.library.mcp-servers.__PAGE__.txt +6 -0
  379. package/console/library/mcp-servers/__next.library.mcp-servers.txt +5 -0
  380. package/console/library/mcp-servers/__next.library.txt +7 -0
  381. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._full.txt +39 -0
  382. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._head.txt +6 -0
  383. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._index.txt +17 -0
  384. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  385. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.__PAGE__.txt +6 -0
  386. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.txt +5 -0
  387. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.txt +5 -0
  388. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.txt +5 -0
  389. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.txt +7 -0
  390. package/console/library/mcp-servers/__placeholder__/__placeholder__.html +1 -0
  391. package/console/library/mcp-servers/__placeholder__/__placeholder__.txt +39 -0
  392. package/console/library/mcp-servers/new/__next._full.txt +40 -0
  393. package/console/library/mcp-servers/new/__next._head.txt +6 -0
  394. package/console/library/mcp-servers/new/__next._index.txt +17 -0
  395. package/console/library/mcp-servers/new/__next._tree.txt +5 -0
  396. package/console/library/mcp-servers/new/__next.library.mcp-servers.new.__PAGE__.txt +9 -0
  397. package/console/library/mcp-servers/new/__next.library.mcp-servers.new.txt +5 -0
  398. package/console/library/mcp-servers/new/__next.library.mcp-servers.txt +5 -0
  399. package/console/library/mcp-servers/new/__next.library.txt +7 -0
  400. package/console/library/mcp-servers/new.html +1 -0
  401. package/console/library/mcp-servers/new.txt +40 -0
  402. package/console/library/mcp-servers.html +1 -0
  403. package/console/library/mcp-servers.txt +36 -0
  404. package/console/library/schedules/__next._full.txt +36 -0
  405. package/console/library/schedules/__next._head.txt +6 -0
  406. package/console/library/schedules/__next._index.txt +17 -0
  407. package/console/library/schedules/__next._tree.txt +5 -0
  408. package/console/library/schedules/__next.library.schedules.__PAGE__.txt +6 -0
  409. package/console/library/schedules/__next.library.schedules.txt +5 -0
  410. package/console/library/schedules/__next.library.txt +7 -0
  411. package/console/library/schedules/__placeholder__/__placeholder__/__next._full.txt +39 -0
  412. package/console/library/schedules/__placeholder__/__placeholder__/__next._head.txt +6 -0
  413. package/console/library/schedules/__placeholder__/__placeholder__/__next._index.txt +17 -0
  414. package/console/library/schedules/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  415. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.__PAGE__.txt +6 -0
  416. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.txt +5 -0
  417. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.txt +5 -0
  418. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.txt +5 -0
  419. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.txt +7 -0
  420. package/console/library/schedules/__placeholder__/__placeholder__.html +1 -0
  421. package/console/library/schedules/__placeholder__/__placeholder__.txt +39 -0
  422. package/console/library/schedules/new/__next._full.txt +40 -0
  423. package/console/library/schedules/new/__next._head.txt +6 -0
  424. package/console/library/schedules/new/__next._index.txt +17 -0
  425. package/console/library/schedules/new/__next._tree.txt +5 -0
  426. package/console/library/schedules/new/__next.library.schedules.new.__PAGE__.txt +9 -0
  427. package/console/library/schedules/new/__next.library.schedules.new.txt +5 -0
  428. package/console/library/schedules/new/__next.library.schedules.txt +5 -0
  429. package/console/library/schedules/new/__next.library.txt +7 -0
  430. package/console/library/schedules/new.html +1 -0
  431. package/console/library/schedules/new.txt +40 -0
  432. package/console/library/schedules.html +1 -0
  433. package/console/library/schedules.txt +36 -0
  434. package/console/library/skills/__next._full.txt +36 -0
  435. package/console/library/skills/__next._head.txt +6 -0
  436. package/console/library/skills/__next._index.txt +17 -0
  437. package/console/library/skills/__next._tree.txt +5 -0
  438. package/console/library/skills/__next.library.skills.__PAGE__.txt +6 -0
  439. package/console/library/skills/__next.library.skills.txt +5 -0
  440. package/console/library/skills/__next.library.txt +7 -0
  441. package/console/library/skills/__placeholder__/__placeholder__/__next._full.txt +39 -0
  442. package/console/library/skills/__placeholder__/__placeholder__/__next._head.txt +6 -0
  443. package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +17 -0
  444. package/console/library/skills/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  445. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.__PAGE__.txt +6 -0
  446. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.txt +5 -0
  447. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.txt +5 -0
  448. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.txt +5 -0
  449. package/console/library/skills/__placeholder__/__placeholder__/__next.library.txt +7 -0
  450. package/console/library/skills/__placeholder__/__placeholder__.html +1 -0
  451. package/console/library/skills/__placeholder__/__placeholder__.txt +39 -0
  452. package/console/library/skills/new/__next._full.txt +40 -0
  453. package/console/library/skills/new/__next._head.txt +6 -0
  454. package/console/library/skills/new/__next._index.txt +17 -0
  455. package/console/library/skills/new/__next._tree.txt +5 -0
  456. package/console/library/skills/new/__next.library.skills.new.__PAGE__.txt +9 -0
  457. package/console/library/skills/new/__next.library.skills.new.txt +5 -0
  458. package/console/library/skills/new/__next.library.skills.txt +5 -0
  459. package/console/library/skills/new/__next.library.txt +7 -0
  460. package/console/library/skills/new.html +1 -0
  461. package/console/library/skills/new.txt +40 -0
  462. package/console/library/skills.html +1 -0
  463. package/console/library/skills.txt +36 -0
  464. package/console/library/workflows/__next._full.txt +36 -0
  465. package/console/library/workflows/__next._head.txt +6 -0
  466. package/console/library/workflows/__next._index.txt +17 -0
  467. package/console/library/workflows/__next._tree.txt +5 -0
  468. package/console/library/workflows/__next.library.txt +7 -0
  469. package/console/library/workflows/__next.library.workflows.__PAGE__.txt +6 -0
  470. package/console/library/workflows/__next.library.workflows.txt +5 -0
  471. package/console/library/workflows/__placeholder__/__placeholder__/__next._full.txt +39 -0
  472. package/console/library/workflows/__placeholder__/__placeholder__/__next._head.txt +6 -0
  473. package/console/library/workflows/__placeholder__/__placeholder__/__next._index.txt +17 -0
  474. package/console/library/workflows/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  475. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.txt +7 -0
  476. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.__PAGE__.txt +6 -0
  477. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.txt +5 -0
  478. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.txt +5 -0
  479. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.txt +5 -0
  480. package/console/library/workflows/__placeholder__/__placeholder__.html +1 -0
  481. package/console/library/workflows/__placeholder__/__placeholder__.txt +39 -0
  482. package/console/library/workflows/executions/__next._full.txt +37 -0
  483. package/console/library/workflows/executions/__next._head.txt +6 -0
  484. package/console/library/workflows/executions/__next._index.txt +17 -0
  485. package/console/library/workflows/executions/__next._tree.txt +5 -0
  486. package/console/library/workflows/executions/__next.library.txt +7 -0
  487. package/console/library/workflows/executions/__next.library.workflows.executions.__PAGE__.txt +6 -0
  488. package/console/library/workflows/executions/__next.library.workflows.executions.txt +5 -0
  489. package/console/library/workflows/executions/__next.library.workflows.txt +5 -0
  490. package/console/library/workflows/executions.html +1 -0
  491. package/console/library/workflows/executions.txt +37 -0
  492. package/console/library/workflows/new/__next._full.txt +40 -0
  493. package/console/library/workflows/new/__next._head.txt +6 -0
  494. package/console/library/workflows/new/__next._index.txt +17 -0
  495. package/console/library/workflows/new/__next._tree.txt +5 -0
  496. package/console/library/workflows/new/__next.library.txt +7 -0
  497. package/console/library/workflows/new/__next.library.workflows.new.__PAGE__.txt +9 -0
  498. package/console/library/workflows/new/__next.library.workflows.new.txt +5 -0
  499. package/console/library/workflows/new/__next.library.workflows.txt +5 -0
  500. package/console/library/workflows/new.html +1 -0
  501. package/console/library/workflows/new.txt +40 -0
  502. package/console/library/workflows.html +1 -0
  503. package/console/library/workflows.txt +36 -0
  504. package/console/library.html +1 -0
  505. package/console/library.txt +33 -0
  506. package/console/login/__next._full.txt +35 -0
  507. package/console/login/__next._head.txt +6 -0
  508. package/console/login/__next._index.txt +17 -0
  509. package/console/login/__next._tree.txt +5 -0
  510. package/console/login/__next.login.__PAGE__.txt +9 -0
  511. package/console/login/__next.login.txt +5 -0
  512. package/console/login.html +1 -0
  513. package/console/login.txt +35 -0
  514. package/console/logo.svg +1 -0
  515. package/console/oauth/slack/callback/__next._full.txt +37 -0
  516. package/console/oauth/slack/callback/__next._head.txt +6 -0
  517. package/console/oauth/slack/callback/__next._index.txt +17 -0
  518. package/console/oauth/slack/callback/__next._tree.txt +5 -0
  519. package/console/oauth/slack/callback/__next.oauth.slack.callback.__PAGE__.txt +9 -0
  520. package/console/oauth/slack/callback/__next.oauth.slack.callback.txt +5 -0
  521. package/console/oauth/slack/callback/__next.oauth.slack.txt +5 -0
  522. package/console/oauth/slack/callback/__next.oauth.txt +5 -0
  523. package/console/oauth/slack/callback.html +1 -0
  524. package/console/oauth/slack/callback.txt +37 -0
  525. package/console/sessions/__placeholder__/__next._full.txt +32 -0
  526. package/console/sessions/__placeholder__/__next._head.txt +6 -0
  527. package/console/sessions/__placeholder__/__next._index.txt +17 -0
  528. package/console/sessions/__placeholder__/__next._tree.txt +5 -0
  529. package/console/sessions/__placeholder__/__next.sessions.$d$id.__PAGE__.txt +5 -0
  530. package/console/sessions/__placeholder__/__next.sessions.$d$id.txt +5 -0
  531. package/console/sessions/__placeholder__/__next.sessions.txt +5 -0
  532. package/console/sessions/__placeholder__.html +1 -0
  533. package/console/sessions/__placeholder__.txt +32 -0
  534. package/console/settings/__next._full.txt +35 -0
  535. package/console/settings/__next._head.txt +6 -0
  536. package/console/settings/__next._index.txt +17 -0
  537. package/console/settings/__next._tree.txt +5 -0
  538. package/console/settings/__next.settings.__PAGE__.txt +9 -0
  539. package/console/settings/__next.settings.txt +6 -0
  540. package/console/settings/account-preferences/__next._full.txt +35 -0
  541. package/console/settings/account-preferences/__next._head.txt +6 -0
  542. package/console/settings/account-preferences/__next._index.txt +17 -0
  543. package/console/settings/account-preferences/__next._tree.txt +5 -0
  544. package/console/settings/account-preferences/__next.settings.account-preferences.__PAGE__.txt +6 -0
  545. package/console/settings/account-preferences/__next.settings.account-preferences.txt +5 -0
  546. package/console/settings/account-preferences/__next.settings.txt +6 -0
  547. package/console/settings/account-preferences.html +1 -0
  548. package/console/settings/account-preferences.txt +35 -0
  549. package/console/settings/api-keys/__next._full.txt +35 -0
  550. package/console/settings/api-keys/__next._head.txt +6 -0
  551. package/console/settings/api-keys/__next._index.txt +17 -0
  552. package/console/settings/api-keys/__next._tree.txt +5 -0
  553. package/console/settings/api-keys/__next.settings.api-keys.__PAGE__.txt +6 -0
  554. package/console/settings/api-keys/__next.settings.api-keys.txt +5 -0
  555. package/console/settings/api-keys/__next.settings.txt +6 -0
  556. package/console/settings/api-keys.html +1 -0
  557. package/console/settings/api-keys.txt +35 -0
  558. package/console/settings/billing/__next._full.txt +38 -0
  559. package/console/settings/billing/__next._head.txt +6 -0
  560. package/console/settings/billing/__next._index.txt +17 -0
  561. package/console/settings/billing/__next._tree.txt +5 -0
  562. package/console/settings/billing/__next.settings.billing.__PAGE__.txt +9 -0
  563. package/console/settings/billing/__next.settings.billing.txt +5 -0
  564. package/console/settings/billing/__next.settings.txt +6 -0
  565. package/console/settings/billing.html +1 -0
  566. package/console/settings/billing.txt +38 -0
  567. package/console/settings/channel-apps/__next._full.txt +35 -0
  568. package/console/settings/channel-apps/__next._head.txt +6 -0
  569. package/console/settings/channel-apps/__next._index.txt +17 -0
  570. package/console/settings/channel-apps/__next._tree.txt +5 -0
  571. package/console/settings/channel-apps/__next.settings.channel-apps.__PAGE__.txt +6 -0
  572. package/console/settings/channel-apps/__next.settings.channel-apps.txt +5 -0
  573. package/console/settings/channel-apps/__next.settings.txt +6 -0
  574. package/console/settings/channel-apps.html +1 -0
  575. package/console/settings/channel-apps.txt +35 -0
  576. package/console/settings/cursor-accounts/__next._full.txt +38 -0
  577. package/console/settings/cursor-accounts/__next._head.txt +6 -0
  578. package/console/settings/cursor-accounts/__next._index.txt +17 -0
  579. package/console/settings/cursor-accounts/__next._tree.txt +5 -0
  580. package/console/settings/cursor-accounts/__next.settings.cursor-accounts.__PAGE__.txt +9 -0
  581. package/console/settings/cursor-accounts/__next.settings.cursor-accounts.txt +5 -0
  582. package/console/settings/cursor-accounts/__next.settings.txt +6 -0
  583. package/console/settings/cursor-accounts.html +1 -0
  584. package/console/settings/cursor-accounts.txt +38 -0
  585. package/console/settings/environments/__next._full.txt +35 -0
  586. package/console/settings/environments/__next._head.txt +6 -0
  587. package/console/settings/environments/__next._index.txt +17 -0
  588. package/console/settings/environments/__next._tree.txt +5 -0
  589. package/console/settings/environments/__next.settings.environments.__PAGE__.txt +6 -0
  590. package/console/settings/environments/__next.settings.environments.txt +5 -0
  591. package/console/settings/environments/__next.settings.txt +6 -0
  592. package/console/settings/environments.html +1 -0
  593. package/console/settings/environments.txt +35 -0
  594. package/console/settings/identity-providers/__next._full.txt +35 -0
  595. package/console/settings/identity-providers/__next._head.txt +6 -0
  596. package/console/settings/identity-providers/__next._index.txt +17 -0
  597. package/console/settings/identity-providers/__next._tree.txt +5 -0
  598. package/console/settings/identity-providers/__next.settings.identity-providers.__PAGE__.txt +6 -0
  599. package/console/settings/identity-providers/__next.settings.identity-providers.txt +5 -0
  600. package/console/settings/identity-providers/__next.settings.txt +6 -0
  601. package/console/settings/identity-providers.html +1 -0
  602. package/console/settings/identity-providers.txt +35 -0
  603. package/console/settings/invitations/__next._full.txt +35 -0
  604. package/console/settings/invitations/__next._head.txt +6 -0
  605. package/console/settings/invitations/__next._index.txt +17 -0
  606. package/console/settings/invitations/__next._tree.txt +5 -0
  607. package/console/settings/invitations/__next.settings.invitations.__PAGE__.txt +6 -0
  608. package/console/settings/invitations/__next.settings.invitations.txt +5 -0
  609. package/console/settings/invitations/__next.settings.txt +6 -0
  610. package/console/settings/invitations.html +1 -0
  611. package/console/settings/invitations.txt +35 -0
  612. package/console/settings/members/__next._full.txt +35 -0
  613. package/console/settings/members/__next._head.txt +6 -0
  614. package/console/settings/members/__next._index.txt +17 -0
  615. package/console/settings/members/__next._tree.txt +5 -0
  616. package/console/settings/members/__next.settings.members.__PAGE__.txt +6 -0
  617. package/console/settings/members/__next.settings.members.txt +5 -0
  618. package/console/settings/members/__next.settings.txt +6 -0
  619. package/console/settings/members.html +1 -0
  620. package/console/settings/members.txt +35 -0
  621. package/console/settings/memory/__next._full.txt +35 -0
  622. package/console/settings/memory/__next._head.txt +6 -0
  623. package/console/settings/memory/__next._index.txt +17 -0
  624. package/console/settings/memory/__next._tree.txt +5 -0
  625. package/console/settings/memory/__next.settings.memory.__PAGE__.txt +6 -0
  626. package/console/settings/memory/__next.settings.memory.txt +5 -0
  627. package/console/settings/memory/__next.settings.txt +6 -0
  628. package/console/settings/memory.html +1 -0
  629. package/console/settings/memory.txt +35 -0
  630. package/console/settings/oauth-apps/__next._full.txt +35 -0
  631. package/console/settings/oauth-apps/__next._head.txt +6 -0
  632. package/console/settings/oauth-apps/__next._index.txt +17 -0
  633. package/console/settings/oauth-apps/__next._tree.txt +5 -0
  634. package/console/settings/oauth-apps/__next.settings.oauth-apps.__PAGE__.txt +6 -0
  635. package/console/settings/oauth-apps/__next.settings.oauth-apps.txt +5 -0
  636. package/console/settings/oauth-apps/__next.settings.txt +6 -0
  637. package/console/settings/oauth-apps.html +1 -0
  638. package/console/settings/oauth-apps.txt +35 -0
  639. package/console/settings/org-preferences/__next._full.txt +35 -0
  640. package/console/settings/org-preferences/__next._head.txt +6 -0
  641. package/console/settings/org-preferences/__next._index.txt +17 -0
  642. package/console/settings/org-preferences/__next._tree.txt +5 -0
  643. package/console/settings/org-preferences/__next.settings.org-preferences.__PAGE__.txt +6 -0
  644. package/console/settings/org-preferences/__next.settings.org-preferences.txt +5 -0
  645. package/console/settings/org-preferences/__next.settings.txt +6 -0
  646. package/console/settings/org-preferences.html +1 -0
  647. package/console/settings/org-preferences.txt +35 -0
  648. package/console/settings/org-profile/__next._full.txt +35 -0
  649. package/console/settings/org-profile/__next._head.txt +6 -0
  650. package/console/settings/org-profile/__next._index.txt +17 -0
  651. package/console/settings/org-profile/__next._tree.txt +5 -0
  652. package/console/settings/org-profile/__next.settings.org-profile.__PAGE__.txt +6 -0
  653. package/console/settings/org-profile/__next.settings.org-profile.txt +5 -0
  654. package/console/settings/org-profile/__next.settings.txt +6 -0
  655. package/console/settings/org-profile.html +1 -0
  656. package/console/settings/org-profile.txt +35 -0
  657. package/console/settings/platform-clients/__next._full.txt +35 -0
  658. package/console/settings/platform-clients/__next._head.txt +6 -0
  659. package/console/settings/platform-clients/__next._index.txt +17 -0
  660. package/console/settings/platform-clients/__next._tree.txt +5 -0
  661. package/console/settings/platform-clients/__next.settings.platform-clients.__PAGE__.txt +6 -0
  662. package/console/settings/platform-clients/__next.settings.platform-clients.txt +5 -0
  663. package/console/settings/platform-clients/__next.settings.txt +6 -0
  664. package/console/settings/platform-clients.html +1 -0
  665. package/console/settings/platform-clients.txt +35 -0
  666. package/console/settings/pricing-governance/__next._full.txt +38 -0
  667. package/console/settings/pricing-governance/__next._head.txt +6 -0
  668. package/console/settings/pricing-governance/__next._index.txt +17 -0
  669. package/console/settings/pricing-governance/__next._tree.txt +5 -0
  670. package/console/settings/pricing-governance/__next.settings.pricing-governance.__PAGE__.txt +9 -0
  671. package/console/settings/pricing-governance/__next.settings.pricing-governance.txt +5 -0
  672. package/console/settings/pricing-governance/__next.settings.txt +6 -0
  673. package/console/settings/pricing-governance.html +1 -0
  674. package/console/settings/pricing-governance.txt +38 -0
  675. package/console/settings/provider-standing/__next._full.txt +38 -0
  676. package/console/settings/provider-standing/__next._head.txt +6 -0
  677. package/console/settings/provider-standing/__next._index.txt +17 -0
  678. package/console/settings/provider-standing/__next._tree.txt +5 -0
  679. package/console/settings/provider-standing/__next.settings.provider-standing.__PAGE__.txt +9 -0
  680. package/console/settings/provider-standing/__next.settings.provider-standing.txt +5 -0
  681. package/console/settings/provider-standing/__next.settings.txt +6 -0
  682. package/console/settings/provider-standing.html +1 -0
  683. package/console/settings/provider-standing.txt +38 -0
  684. package/console/settings/usage/__next._full.txt +35 -0
  685. package/console/settings/usage/__next._head.txt +6 -0
  686. package/console/settings/usage/__next._index.txt +17 -0
  687. package/console/settings/usage/__next._tree.txt +5 -0
  688. package/console/settings/usage/__next.settings.txt +6 -0
  689. package/console/settings/usage/__next.settings.usage.__PAGE__.txt +6 -0
  690. package/console/settings/usage/__next.settings.usage.txt +5 -0
  691. package/console/settings/usage.html +1 -0
  692. package/console/settings/usage.txt +35 -0
  693. package/console/settings.html +1 -0
  694. package/console/settings.txt +35 -0
  695. package/console/workflows/__next._full.txt +32 -0
  696. package/console/workflows/__next._head.txt +6 -0
  697. package/console/workflows/__next._index.txt +17 -0
  698. package/console/workflows/__next._tree.txt +5 -0
  699. package/console/workflows/__next.workflows.__PAGE__.txt +6 -0
  700. package/console/workflows/__next.workflows.txt +5 -0
  701. package/console/workflows/__placeholder__/__placeholder__/__next._full.txt +35 -0
  702. package/console/workflows/__placeholder__/__placeholder__/__next._head.txt +6 -0
  703. package/console/workflows/__placeholder__/__placeholder__/__next._index.txt +17 -0
  704. package/console/workflows/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  705. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.__PAGE__.txt +6 -0
  706. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.txt +5 -0
  707. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.txt +5 -0
  708. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.txt +5 -0
  709. package/console/workflows/__placeholder__/__placeholder__.html +1 -0
  710. package/console/workflows/__placeholder__/__placeholder__.txt +35 -0
  711. package/console/workflows/executions/__next._full.txt +33 -0
  712. package/console/workflows/executions/__next._head.txt +6 -0
  713. package/console/workflows/executions/__next._index.txt +17 -0
  714. package/console/workflows/executions/__next._tree.txt +5 -0
  715. package/console/workflows/executions/__next.workflows.executions.__PAGE__.txt +6 -0
  716. package/console/workflows/executions/__next.workflows.executions.txt +5 -0
  717. package/console/workflows/executions/__next.workflows.txt +5 -0
  718. package/console/workflows/executions/__placeholder__/__next._full.txt +34 -0
  719. package/console/workflows/executions/__placeholder__/__next._head.txt +6 -0
  720. package/console/workflows/executions/__placeholder__/__next._index.txt +17 -0
  721. package/console/workflows/executions/__placeholder__/__next._tree.txt +5 -0
  722. package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.__PAGE__.txt +6 -0
  723. package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.txt +5 -0
  724. package/console/workflows/executions/__placeholder__/__next.workflows.executions.txt +5 -0
  725. package/console/workflows/executions/__placeholder__/__next.workflows.txt +5 -0
  726. package/console/workflows/executions/__placeholder__.html +1 -0
  727. package/console/workflows/executions/__placeholder__.txt +34 -0
  728. package/console/workflows/executions.html +1 -0
  729. package/console/workflows/executions.txt +33 -0
  730. package/console/workflows.html +1 -0
  731. package/console/workflows.txt +32 -0
  732. package/main.js +1138 -0
  733. package/mappings.wasm +0 -0
  734. package/package.json +25 -0
  735. package/workflow-bundle-agent-execution.js +31729 -0
  736. package/workflow-bundle-schedule.js +11315 -0
  737. package/workflow-bundle-workflow-execution.js +29297 -0
  738. package/workflow-worker-thread.cjs +111 -0
@@ -0,0 +1,75 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,658653,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),n=e.i(468806),i=e.i(869803),a=e.i(846696),o=e.i(774079),l=e.i(901501),g=e.i(864652),c=e.i(586108),d=e.i(326283);let u=(0,s.lazy)(()=>e.A(573374).then(e=>({default:e.YamlEditor})));function p(){return(0,t.jsx)("div",{className:"stg:flex stg:h-56 stg:items-center stg:justify-center stg:rounded-md stg:border stg:border-border stg:bg-muted stg:text-sm stg:text-muted-foreground",children:"Loading editor…"})}function m({entry:e}){return(0,t.jsxs)("li",{className:"stg:rounded-md stg:border stg:border-border stg:bg-card stg:px-3 stg:py-2",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("span",{className:"stg:inline-flex stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium stg:text-muted-foreground",children:e.document.handler.displayName}),(0,t.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:e.document.name}),(0,t.jsx)(x,{entry:e}),(0,t.jsx)("span",{className:"stg:ml-auto stg:text-xs stg:text-muted-foreground",children:e.document.org})]}),e.document.warning&&(0,t.jsx)("p",{className:"stg:mt-1 stg:text-xs stg:text-muted-foreground",children:e.document.warning}),"failed"===e.status&&e.errorMessage&&(0,t.jsx)("p",{role:"alert",className:"stg:mt-1 stg:text-xs stg:text-destructive",children:e.errorMessage})]})}function x({entry:e}){let s=function(e){switch(e.status){case"applying":return"Applying…";case"applied":return"Applied";case"failed":return"Failed";case"skipped":return"Skipped";case"pending":switch(e.action){case"create":return"Will create";case"update":return"Will update";case"unknown":return"Create or update"}}}(e);return(0,t.jsx)("span",{className:(0,r.cn)("stg:inline-flex stg:rounded stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium","failed"===e.status?"stg:bg-card stg:text-destructive stg:border stg:border-destructive":"stg:bg-muted stg:text-muted-foreground"),children:s})}e.s(["ApplyManifestDialog",0,function({open:e,onOpenChange:x,org:h,onApplied:f}){var b;let v=(0,s.useRef)(null),y=function(e){let t=(0,c.useStigmer)(),[r,n]=(0,s.useState)(""),[i,a]=(0,s.useState)(null),[o,u]=(0,s.useState)(null),[p,m]=(0,s.useState)(!1),[x,h]=(0,s.useState)(!1),f=(0,s.useRef)(e);f.current=e;let b=(0,s.useCallback)(e=>{n(e)},[]),v=(0,s.useCallback)(async e=>{let t;try{t=await e.text()}catch{n(""),a(null),u(`Failed to read ${e.name}.`);return}n(t)},[]),y=(0,s.useCallback)(()=>{n(""),a(null),u(null),m(!1),h(!1)},[]),j=(0,s.useRef)(0);(0,s.useEffect)(()=>{if(x)return;let e=++j.current;if(!r.trim()){a(null),u(null),m(!1);return}m(!0);let s=setTimeout(async()=>{let s;try{s=(0,g.parseManifest)(r,{org:f.current})}catch(t){j.current===e&&(a(null),u((0,d.toError)(t).message),m(!1));return}let n=await Promise.all(s.map(async e=>{let s;try{let r=await t.manifest.getByReference(e.handler.yamlKind,e.org,e.slug);s=null!==r?"update":"create"}catch{s="unknown"}return{document:e,action:s,status:"pending"}}));j.current===e&&(a(n),u(null),m(!1))},500);return()=>clearTimeout(s)},[r,t,x]);let k=(0,s.useCallback)(async()=>{if(!i||0===i.length)return[];j.current++,h(!0);let e=i.map(e=>({...e,status:"pending"})),s=()=>a([...e]),r=!1;for(let n=0;n<e.length;n++){if(r){e[n]={...e[n],status:"skipped"};continue}e[n]={...e[n],status:"applying"},s();try{let s=await t.manifest.apply(e[n].document);e[n]={...e[n],status:"applied",result:s}}catch(t){e[n]={...e[n],status:"failed",errorMessage:(0,d.toError)(t).message},r=!0}s()}return s(),h(!1),e},[i,t]),N=(0,s.useMemo)(()=>(0,l.containsRedactedSecrets)(r),[r]);return(0,s.useMemo)(()=>({content:r,setContent:b,readFile:v,entries:i,validationError:o,isValidating:p,hasRedactedSecrets:N,applyAll:k,isApplying:x,reset:y}),[r,b,v,i,o,p,N,k,x,y])}(h),{reset:j}=y;(0,s.useEffect)(()=>{e&&(j(),v.current&&(v.current.value=""))},[e,j]);let k=(0,s.useCallback)(()=>{x(!1);let e=(y.entries??[]).filter(e=>"applied"===e.status);e.length>0&&f?.(e)},[x,y.entries,f]),N=(0,s.useCallback)(e=>{e||k()},[k]),w=(0,s.useCallback)(e=>{let t=e.target.files?.[0];t&&y.readFile(t)},[y]),C=(0,s.useCallback)(async()=>{let e=await y.applyAll(),t=e.filter(e=>"applied"===e.status);e.length>0&&t.length===e.length&&(a.toast.success(1===t.length?"Resource applied":`${t.length} resources applied`),x(!1),f?.(t))},[y,x,f]),S=null!==y.entries&&y.entries.length>0&&!y.isValidating&&!y.isApplying;return(0,t.jsx)(n.DialogShell,{open:e,onOpenChange:N,width:"3xl","aria-label":"Apply YAML",children:(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-4 stg:p-6",children:[(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1",children:[(0,t.jsx)("h3",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:"Apply YAML"}),(0,t.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground",children:"Paste a resource manifest or upload a file. Resources are created when new and updated when they already exist."})]}),(0,t.jsx)("input",{ref:v,type:"file",accept:".yaml,.yml,.json",onChange:w,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-3 stg:py-2 stg:text-sm stg:text-foreground","stg:file:mr-3 stg:file:rounded-md stg:file:border-0 stg:file:bg-primary stg:file:px-2.5 stg:file:py-1 stg:file:text-xs stg:file:font-medium stg:file:text-primary-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),"aria-label":"Select manifest file"}),(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(p,{}),children:(0,t.jsx)(u,{value:y.content,onChange:y.setContent,className:"stg:h-56"})}),y.hasRedactedSecrets&&(0,t.jsx)(o.RedactedSecretsNotice,{}),y.validationError&&(0,t.jsx)("div",{role:"alert",className:"stg:rounded-md stg:border stg:border-destructive stg:bg-card stg:px-3 stg:py-2.5 stg:text-sm stg:text-destructive",children:y.validationError}),y.entries&&y.entries.length>0&&(0,t.jsx)("ul",{className:(0,r.cn)(i.UNSTYLED_LIST,"stg:flex stg:max-h-48 stg:flex-col stg:gap-2 stg:overflow-y-auto"),"aria-label":"Resources to apply",children:y.entries.map((e,s)=>(0,t.jsx)(m,{entry:e},`${e.document.handler.yamlKind}/${e.document.org}/${e.document.slug}/${s}`))}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between stg:gap-3",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground","aria-live":"polite",children:y.isValidating?"Validating…":""}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:k,disabled:y.isApplying,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:border stg:border-input stg:bg-background stg:text-foreground","stg:hover:bg-accent stg:hover:text-accent-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"}),(0,t.jsx)("button",{type:"button",onClick:C,disabled:!S,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:y.isApplying?"Applying…":(b=y.entries?.length??0)<=1?"Apply":`Apply ${b} resources`})]})]})]})})}],658653)},855862,e=>{"use strict";e.s(["TEMPLATE_CATEGORY_LABELS",0,{"customer-support":"Customer Support","code-review":"Code Review","data-analysis":"Data Analysis",devops:"DevOps",content:"Content",integration:"Integration",general:"General"}])},938107,e=>{"use strict";var t=e.i(271645);e.s(["useTemplateFilter",0,function(e){let{templates:s}=e,[r,n]=(0,t.useState)(""),[i,a]=(0,t.useState)(null),o=(0,t.useCallback)(e=>{n(e)},[]),l=(0,t.useMemo)(()=>{let e=new Set;for(let t of s)e.add(t.category);return[...e].sort()},[s]),g=(0,t.useMemo)(()=>{let e=s;i&&(e=e.filter(e=>e.category===i));let t=r.trim().toLowerCase();return t&&(e=e.filter(e=>[e.name,e.description,...e.tags??[]].join(" ").toLowerCase().includes(t))),e},[s,i,r]);return(0,t.useMemo)(()=>({filtered:g,query:r,setQuery:o,activeCategory:i,setActiveCategory:a,availableCategories:l}),[g,r,o,i,a,l])}])},379711,982438,385332,e=>{"use strict";var t=e.i(271645);e.s(["useWizardState",0,function(e){let{steps:s,initialData:r}=e,n=(0,t.useMemo)(()=>function(e,t){switch(t.type){case"GO_NEXT":{let t=s[e.currentStepIndex],r=t?.validate?.(e.data)??null;if(r)return{...e,validationError:r};let n=Math.min(e.currentStepIndex+1,s.length-1);return{...e,currentStepIndex:n,validationError:null}}case"GO_BACK":{let t=Math.max(e.currentStepIndex-1,0);return{...e,currentStepIndex:t,validationError:null}}case"GO_TO_STEP":if(t.index<0||t.index>=s.length||t.index>=e.currentStepIndex)return e;return{...e,currentStepIndex:t.index,validationError:null};case"UPDATE_DATA":return{...e,data:{...e.data,...t.partial},validationError:null};case"SET_VALIDATION_ERROR":return{...e,validationError:t.error};default:return e}},[s]),[i,a]=(0,t.useReducer)(n,{currentStepIndex:0,data:r,validationError:null}),o=s[i.currentStepIndex],l=0===i.currentStepIndex,g=i.currentStepIndex===s.length-1,c=(0,t.useMemo)(()=>null===(o.validate?.(i.data)??null),[o,i.data]),d=!l,u=(0,t.useCallback)(()=>{a({type:"GO_NEXT"})},[]),p=(0,t.useCallback)(()=>{a({type:"GO_BACK"})},[]),m=(0,t.useCallback)(e=>{a({type:"GO_TO_STEP",index:e})},[]),x=(0,t.useCallback)(e=>{a({type:"UPDATE_DATA",partial:e})},[]);return(0,t.useMemo)(()=>({currentStepIndex:i.currentStepIndex,currentStep:o,data:i.data,updateData:x,canGoNext:c,canGoBack:d,goNext:u,goBack:p,goToStep:m,validationError:i.validationError,isFirstStep:l,isLastStep:g}),[i.currentStepIndex,i.data,i.validationError,o,c,d,l,g,x,u,p,m])}],379711);var s=e.i(843476),r=e.i(893976),n=e.i(869803);function i({steps:e,currentStepIndex:t,onStepClick:o,className:l}){return(0,s.jsx)("nav",{"aria-label":"Wizard progress",className:(0,r.cn)("stg:flex stg:flex-col stg:gap-1",l),children:(0,s.jsx)("ol",{className:(0,r.cn)(n.UNSTYLED_LIST,"stg:flex stg:flex-col stg:gap-1"),role:"list",children:e.map((n,i)=>{var l,g;let c=(l=i)<(g=t)?"completed":l===g?"active":"pending",d="completed"===c&&null!=o,u=(0,s.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-3",children:[(0,s.jsx)(a,{index:i,state:c}),(0,s.jsx)("span",{className:(0,r.cn)("stg:text-sm stg:font-medium stg:transition-colors","active"===c&&"stg:text-foreground","completed"===c&&"stg:text-foreground","pending"===c&&"stg:text-muted-foreground"),children:n.label})]});return(0,s.jsxs)("li",{children:[d?(0,s.jsx)("button",{type:"button",onClick:()=>o(i),className:(0,r.cn)("stg:w-full stg:rounded-md stg:px-2 stg:py-2 stg:text-left stg:transition-colors","stg:hover:bg-accent-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-inset stg:focus-visible:ring-ring"),"aria-label":`Go back to step ${i+1}: ${n.label}`,"aria-current":void 0,children:u}):(0,s.jsx)("div",{className:"stg:px-2 stg:py-2","aria-current":"active"===c?"step":void 0,children:u}),i<e.length-1&&(0,s.jsx)("div",{className:"stg:ml-[18px] stg:h-4 stg:w-px stg:bg-border","aria-hidden":"true"})]},n.id)})})})}function a({index:e,state:t}){return(0,s.jsx)("div",{className:(0,r.cn)("stg:flex stg:size-7 stg:shrink-0 stg:items-center stg:justify-center stg:rounded-full stg:text-xs stg:font-medium stg:transition-colors","completed"===t&&"stg:bg-primary stg:text-primary-foreground","active"===t&&"stg:border-2 stg:border-primary stg:text-primary","pending"===t&&"stg:border stg:border-border stg:text-muted-foreground"),"aria-hidden":"true",children:"completed"===t?(0,s.jsx)(o,{className:"stg:size-3.5"}):(0,s.jsx)("span",{children:e+1})})}function o({className:e}){return(0,s.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"m3 8.5 3.5 3.5 6.5-8"})})}var l=e.i(379410);function g({showBack:e,nextLabel:t,nextDisabled:n,isSubmitting:i,onBack:a,onNext:o,onCancel:u,className:p}){return(0,s.jsxs)("div",{className:(0,r.cn)("stg:flex stg:items-center stg:justify-between stg:border-t stg:border-border stg:px-6 stg:py-4",p),children:[(0,s.jsx)("div",{className:"stg:flex stg:items-center stg:gap-2",children:u&&(0,s.jsx)("button",{type:"button",onClick:u,disabled:i,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm","stg:text-muted-foreground stg:transition-colors","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"),children:"Cancel"})}),(0,s.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[e&&(0,s.jsxs)("button",{type:"button",onClick:a,disabled:i,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:text-foreground stg:transition-colors","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"),children:[(0,s.jsx)(c,{className:"stg:size-3.5"}),"Back"]}),(0,s.jsxs)("button",{type:"button",onClick:o,disabled:n||i,"data-cursor-target":"wizard-next",className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:bg-primary stg:px-4 stg:py-1.5 stg:text-sm stg:font-medium stg:text-primary-foreground stg:transition-colors","stg:hover:bg-primary-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-40"),children:[i&&(0,s.jsx)(l.SpinnerIcon,{size:14}),t,!i&&(0,s.jsx)(d,{className:"stg:size-3.5"})]})]})]})}function c({className:e}){return(0,s.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M10 3 5 8l5 5"})})}function d({className:e}){return(0,s.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"m6 3 5 5-5 5"})})}function u({current:e,total:t}){return(0,s.jsxs)("span",{className:"stg:inline-flex stg:items-center stg:justify-center stg:rounded-full stg:bg-primary stg:px-2 stg:py-0.5 stg:text-[10px] stg:font-semibold stg:text-primary-foreground",children:[e,"/",t]})}e.s(["WizardShell",0,function({steps:e,currentStepIndex:t,children:n,submitLabel:a,isSubmitting:o,canGoNext:l=!0,canGoBack:c=!1,onNext:d,onBack:p,onGoToStep:m,onCancel:x,className:h}){let f=t===e.length-1;return(0,s.jsxs)("div",{className:(0,r.cn)("stg:flex stg:min-h-0 stg:flex-col stg:overflow-hidden stg:rounded-lg stg:border stg:border-border stg:bg-background",h),children:[(0,s.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:border-b stg:border-border stg:px-4 stg:py-3 stg:sm:hidden",children:[(0,s.jsx)(u,{current:t+1,total:e.length}),(0,s.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:e[t]?.label})]}),(0,s.jsxs)("div",{className:"stg:flex stg:min-h-0 stg:flex-1",children:[(0,s.jsx)("aside",{className:"stg:hidden stg:w-52 stg:shrink-0 stg:border-r stg:border-border stg:bg-muted-faint stg:px-3 stg:py-6 stg:sm:block",children:(0,s.jsx)(i,{steps:e,currentStepIndex:t,onStepClick:m})}),(0,s.jsx)("main",{className:"stg:flex-1 stg:overflow-y-auto stg:px-6 stg:py-6 stg:sm:px-8",children:n})]}),(0,s.jsx)(g,{showBack:c,nextLabel:f?a:"Next",nextDisabled:!l,isSubmitting:o,onBack:p,onNext:d,onCancel:x})]})}],982438);var p=e.i(855862),m=e.i(938107);let x={"customer-support":"stg:bg-blue-500/10 stg:text-blue-700 stg:dark:text-blue-400","code-review":"stg:bg-violet-500/10 stg:text-violet-700 stg:dark:text-violet-400","data-analysis":"stg:bg-amber-500/10 stg:text-amber-700 stg:dark:text-amber-400",devops:"stg:bg-emerald-500/10 stg:text-emerald-700 stg:dark:text-emerald-400",content:"stg:bg-pink-500/10 stg:text-pink-700 stg:dark:text-pink-400",integration:"stg:bg-cyan-500/10 stg:text-cyan-700 stg:dark:text-cyan-400",general:"stg:bg-muted stg:text-muted-foreground"},h=["stg:bg-blue-500/15 stg:text-blue-700 stg:dark:text-blue-400","stg:bg-violet-500/15 stg:text-violet-700 stg:dark:text-violet-400","stg:bg-emerald-500/15 stg:text-emerald-700 stg:dark:text-emerald-400","stg:bg-amber-500/15 stg:text-amber-700 stg:dark:text-amber-400","stg:bg-pink-500/15 stg:text-pink-700 stg:dark:text-pink-400","stg:bg-cyan-500/15 stg:text-cyan-700 stg:dark:text-cyan-400","stg:bg-rose-500/15 stg:text-rose-700 stg:dark:text-rose-400"];function f({template:e,onSelect:n,className:i}){let a=(0,t.useCallback)(()=>{n(e)},[n,e]),o=(0,t.useCallback)(t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),n(e))},[n,e]),l=function(e){let t=0;for(let s=0;s<e.length;s++)t=(t<<5)-t+e.charCodeAt(s)|0;return Math.abs(t)}(e.id)%h.length,g=h[l],c=e.name.charAt(0).toUpperCase(),d=p.TEMPLATE_CATEGORY_LABELS[e.category]??e.category;return(0,s.jsxs)("div",{role:"button",tabIndex:0,onClick:a,onKeyDown:o,"aria-label":`Use ${e.name} template`,className:(0,r.cn)("stg:group stg:flex stg:cursor-pointer stg:flex-col stg:gap-3 stg:rounded-lg stg:border stg:border-border stg:bg-card stg:p-4","stg:transition-colors stg:hover:border-primary stg:hover:bg-accent","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",i),children:[(0,s.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3",children:[(0,s.jsx)("span",{className:(0,r.cn)("stg:inline-flex stg:size-9 stg:shrink-0 stg:items-center stg:justify-center stg:rounded-md stg:text-sm stg:font-semibold",g),"aria-hidden":"true",children:c}),(0,s.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,s.jsx)("p",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:e.name}),(0,s.jsx)("span",{className:(0,r.cn)("stg:mt-1 stg:inline-block stg:rounded-full stg:px-2 stg:py-0.5 stg:text-[10px] stg:font-medium",x[e.category]??x.general),children:d})]})]}),(0,s.jsx)("p",{className:"stg:line-clamp-2 stg:text-xs stg:leading-relaxed stg:text-muted-foreground",children:e.description})]})}function b({templates:e,onSelect:n,emptyContent:i,className:a}){let{filtered:o,query:l,setQuery:g,activeCategory:c,setActiveCategory:d,availableCategories:u}=(0,m.useTemplateFilter)({templates:e}),x=(0,t.useRef)(null),h=(0,t.useCallback)(e=>{let t=x.current?.querySelectorAll('[role="tab"]');if(!t?.length)return;let s=Array.from(t).findIndex(e=>e===document.activeElement);if(-1===s)return;let r=null;"ArrowRight"===e.key?r=(s+1)%t.length:"ArrowLeft"===e.key?r=(s-1+t.length)%t.length:"Home"===e.key?r=0:"End"===e.key&&(r=t.length-1),null!==r&&(e.preventDefault(),t[r].focus(),t[r].click())},[]);return(0,s.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-4",a),children:[(0,s.jsxs)("div",{className:"stg:relative",children:[(0,s.jsx)(y,{}),(0,s.jsx)("input",{type:"search",value:l,onChange:e=>g(e.target.value),placeholder:"Search templates…","aria-label":"Search templates",className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:py-2 stg:pl-9 stg:pr-3 stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]}),u.length>1&&(0,s.jsxs)("div",{ref:x,role:"tablist","aria-label":"Template categories",onKeyDown:h,className:"stg:flex stg:flex-wrap stg:gap-1",children:[(0,s.jsx)(v,{label:"All",isActive:null===c,onClick:()=>d(null)}),u.map(e=>(0,s.jsx)(v,{label:p.TEMPLATE_CATEGORY_LABELS[e]??e,isActive:c===e,onClick:()=>d(e)},e))]}),o.length>0?(0,s.jsx)("div",{role:"list","aria-label":"Templates",className:"stg:grid stg:grid-cols-1 stg:gap-3 stg:sm:grid-cols-2 stg:lg:grid-cols-3",children:o.map(e=>(0,s.jsx)("div",{role:"listitem",children:(0,s.jsx)(f,{template:e,onSelect:n})},e.id))}):i??(0,s.jsx)("div",{className:"stg:py-8 stg:text-center stg:text-sm stg:text-muted-foreground",children:"No templates match your search."})]})}function v({label:e,isActive:t,onClick:n}){return(0,s.jsx)("button",{type:"button",role:"tab","aria-selected":t,tabIndex:t?0:-1,onClick:n,className:(0,r.cn)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",t?"stg:bg-primary stg:text-primary-foreground":"stg:bg-muted stg:text-muted-foreground stg:hover:bg-accent stg:hover:text-accent-foreground"),children:e})}function y(){return(0,s.jsxs)("svg",{className:"stg:pointer-events-none stg:absolute stg:left-3 stg:top-1/2 stg:size-4 stg:-translate-y-1/2 stg:text-muted-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("circle",{cx:11,cy:11,r:8}),(0,s.jsx)("path",{d:"m21 21-4.3-4.3"})]})}function j({title:e,description:t,icon:n,onClick:i,badge:a,cursorTarget:o}){return(0,s.jsxs)("button",{type:"button",onClick:i,"data-cursor-target":o,className:(0,r.cn)("stg:group stg:flex stg:flex-col stg:items-center stg:gap-3 stg:rounded-lg stg:border stg:border-border stg:bg-card stg:p-6 stg:text-center","stg:transition-colors stg:hover:border-primary stg:hover:bg-accent","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[(0,s.jsx)("span",{className:"stg:text-muted-foreground stg:transition-colors stg:group-hover:text-foreground",children:n}),(0,s.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1",children:[(0,s.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:e}),(0,s.jsx)("span",{className:"stg:text-xs stg:text-muted-foreground",children:t})]}),a&&(0,s.jsx)("span",{className:"stg:rounded-full stg:bg-muted stg:px-2 stg:py-0.5 stg:text-[10px] stg:font-medium stg:text-muted-foreground",children:a})]})}function k(){return(0,s.jsxs)("svg",{className:"stg:size-8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),(0,s.jsx)("polyline",{points:"14 2 14 8 20 8"})]})}function N(){return(0,s.jsxs)("svg",{className:"stg:size-8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}),(0,s.jsx)("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),(0,s.jsx)("rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}),(0,s.jsx)("rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"})]})}function w(){return(0,s.jsxs)("svg",{className:"stg:size-8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,s.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,s.jsx)("line",{x1:"12",x2:"12",y1:"3",y2:"15"})]})}function C(){return(0,s.jsxs)("svg",{className:"stg:size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"m12 19-7-7 7-7"}),(0,s.jsx)("path",{d:"M19 12H5"})]})}e.s(["CreationPicker",0,function({resourceLabel:e,templates:n,onSelect:i,className:a}){let[o,l]=(0,t.useState)("options"),g=(0,t.useCallback)(e=>{i({kind:"template",data:e.data})},[i]),c=(0,t.useCallback)(()=>{l("options")},[]);return"gallery"===o?(0,s.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-4",a),children:[(0,s.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,s.jsx)("button",{type:"button",onClick:c,"aria-label":"Back to creation options",className:(0,r.cn)("stg:inline-flex stg:items-center stg:justify-center stg:rounded-md stg:p-1.5","stg:text-muted-foreground stg:transition-colors","stg:hover:bg-accent stg:hover:text-accent-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:(0,s.jsx)(C,{})}),(0,s.jsx)("h2",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:"Choose a template"})]}),(0,s.jsx)(b,{templates:n,onSelect:g})]}):(0,s.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-6",a),children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("h2",{className:"stg:text-lg stg:font-semibold stg:text-foreground",children:["Create a new ",e]}),(0,s.jsx)("p",{className:"stg:mt-1 stg:text-sm stg:text-muted-foreground",children:"Choose how you'd like to get started."})]}),(0,s.jsxs)("div",{className:"stg:grid stg:grid-cols-1 stg:gap-3 stg:sm:grid-cols-3",children:[(0,s.jsx)(j,{title:"Start from scratch",description:`Create a blank ${e} and configure it step by step.`,icon:(0,s.jsx)(k,{}),onClick:()=>i({kind:"scratch"}),cursorTarget:"creation-path-scratch"}),n.length>0&&(0,s.jsx)(j,{title:"Browse templates",description:`Start with a pre-built ${e} configuration.`,icon:(0,s.jsx)(N,{}),onClick:()=>l("gallery"),badge:`${n.length} available`,cursorTarget:"creation-path-template"}),(0,s.jsx)(j,{title:"Import from file",description:"Upload a YAML or JSON configuration file.",icon:(0,s.jsx)(w,{}),onClick:()=>i({kind:"import"}),cursorTarget:"creation-path-import"})]})]})}],385332)},155732,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(618566),n=e.i(379711),i=e.i(982438),a=e.i(586108),o=e.i(326283),l=e.i(893976),g=e.i(869803),c=e.i(367539);let d=/^[a-z0-9]+(-[a-z0-9]+)*$/;function u({data:e,updateData:r,validationError:n}){let i=(0,s.useId)(),a=(0,s.useCallback)(t=>{e.slugTouched?r({name:t}):r({name:t,slug:(0,c.generateSlug)(t)})},[e.slugTouched,r]),o=(0,s.useCallback)(e=>{r({slug:e,slugTouched:!0})},[r]),m=e.slug.length>0&&!d.test(e.slug)?"Slug must be lowercase letters, numbers, and hyphens only":null;return(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"stg:text-lg stg:font-semibold stg:text-foreground",children:"Identity & Instructions"}),(0,t.jsx)("p",{className:"stg:mt-1 stg:text-sm stg:text-muted-foreground",children:"Define what this agent is and what it does."})]}),n&&(0,t.jsx)("p",{className:"stg:text-sm stg:text-destructive",role:"alert",children:n}),(0,t.jsxs)("div",{className:"stg:grid stg:gap-4 stg:sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,t.jsxs)("label",{htmlFor:`${i}-name`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:["Name ",(0,t.jsx)("span",{className:"stg:text-destructive",children:"*"})]}),(0,t.jsx)("input",{id:`${i}-name`,type:"text",value:e.name,onChange:e=>a(e.target.value),placeholder:"e.g. PR Review Bot",autoFocus:!0,className:(0,l.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-3 stg:py-2 stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]}),(0,t.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,t.jsx)("label",{htmlFor:`${i}-slug`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Slug"}),(0,t.jsx)("input",{id:`${i}-slug`,type:"text",value:e.slug,onChange:e=>o(e.target.value),placeholder:"auto-generated",className:(0,l.cn)("stg:w-full stg:rounded-md stg:border stg:px-3 stg:py-2 stg:font-mono stg:text-sm stg:text-foreground",m?"stg:border-destructive stg:bg-input-bg":"stg:border-input stg:bg-input-bg","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")}),m&&(0,t.jsx)("p",{className:"stg:text-xs stg:text-destructive",children:m}),!m&&e.slug&&(0,t.jsxs)("p",{className:"stg:text-xs stg:text-muted-foreground",children:["Referenced as ",(0,t.jsx)("code",{className:"stg:font-mono",children:e.slug})]})]})]}),(0,t.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,t.jsx)("label",{htmlFor:`${i}-description`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Description"}),(0,t.jsx)("input",{id:`${i}-description`,type:"text",value:e.description,onChange:e=>r({description:e.target.value}),placeholder:"A brief description of what this agent does",maxLength:200,className:(0,l.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-3 stg:py-2 stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]}),(0,t.jsxs)("div",{className:"stg:grid stg:gap-4 stg:sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,t.jsx)("label",{htmlFor:`${i}-icon`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Icon URL"}),(0,t.jsx)("input",{id:`${i}-icon`,type:"url",value:e.iconUrl,onChange:e=>r({iconUrl:e.target.value}),placeholder:"https://example.com/icon.png",className:(0,l.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-3 stg:py-2 stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]}),(0,t.jsxs)("fieldset",{className:(0,l.cn)(g.UNSTYLED_FIELDSET,"stg:space-y-1.5"),children:[(0,t.jsx)("legend",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Visibility"}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)(p,{name:`${i}-visibility`,value:"private",label:"Private",checked:"private"===e.visibility,onChange:()=>r({visibility:"private"})}),(0,t.jsx)(p,{name:`${i}-visibility`,value:"public",label:"Public",checked:"public"===e.visibility,onChange:()=>r({visibility:"public"})})]})]})]}),(0,t.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,t.jsx)("label",{htmlFor:`${i}-instructions`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Instructions"}),(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:"The system prompt that defines this agent's behavior."}),(0,t.jsx)("textarea",{id:`${i}-instructions`,value:e.instructions,onChange:e=>r({instructions:e.target.value}),placeholder:"You are a helpful assistant that...",rows:12,className:(0,l.cn)("stg:w-full stg:resize-y stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-3 stg:py-2 stg:font-mono stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]})]})}function p({name:e,value:s,label:r,checked:n,onChange:i}){return(0,t.jsxs)("label",{className:(0,l.cn)("stg:inline-flex stg:cursor-pointer stg:items-center stg:rounded-md stg:border stg:px-3 stg:py-1.5 stg:text-sm stg:transition-colors",n?"stg:border-primary stg:bg-primary-subtle stg:text-primary stg:font-medium":"stg:border-input stg:bg-input-bg stg:text-muted-foreground stg:hover:border-border stg:hover:text-foreground"),children:[(0,t.jsx)("input",{type:"radio",name:e,value:s,checked:n,onChange:i,className:"stg:sr-only"}),r]})}var m=e.i(348728),x=e.i(841358);function h({org:e,data:r,updateData:n}){let[i,a]=(0,s.useState)(()=>{let e=new Set;return r.mcpServerUsages.length>0&&e.add("mcp"),r.skillRefs.length>0&&e.add("skills"),r.env.length>0&&e.add("env"),e}),o=(0,s.useCallback)(e=>{a(t=>{let s=new Set(t);return s.has(e)?s.delete(e):s.add(e),s})},[]),l=(0,s.useCallback)(e=>{n({mcpServerUsages:e})},[n]),g=(0,s.useCallback)(e=>{n({skillRefs:e})},[n]);return(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"stg:text-lg stg:font-semibold stg:text-foreground",children:"Capabilities"}),(0,t.jsx)("p",{className:"stg:mt-1 stg:text-sm stg:text-muted-foreground",children:"Configure what tools, skills, and secrets this agent can use. All sections are optional."})]}),(0,t.jsx)(f,{id:"mcp",title:"MCP Servers",subtitle:"Tools and integrations the agent can call",count:r.mcpServerUsages.length,expanded:i.has("mcp"),onToggle:o,children:(0,t.jsx)(m.McpServerPicker,{org:e,scope:"all",value:r.mcpServerUsages,onChange:l})}),(0,t.jsx)(f,{id:"skills",title:"Skills",subtitle:"Knowledge and capabilities to attach",count:r.skillRefs.length,expanded:i.has("skills"),onToggle:o,children:(0,t.jsx)(x.SkillPicker,{org:e,scope:"all",value:r.skillRefs,onChange:g})}),(0,t.jsx)(f,{id:"env",title:"Environment Variables",subtitle:"Secrets and config the agent declares",count:r.env.length,expanded:i.has("env"),onToggle:o,children:(0,t.jsx)(b,{entries:r.env,onChange:e=>n({env:e})})})]})}function f({id:e,title:r,subtitle:n,count:i,expanded:a,onToggle:o,children:g}){let c=(0,s.useId)();return(0,t.jsxs)("div",{className:"stg:overflow-hidden stg:rounded-lg stg:border stg:border-border",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>o(e),"aria-expanded":a,"aria-controls":c,className:(0,l.cn)("stg:flex stg:w-full stg:items-center stg:justify-between stg:px-4 stg:py-3 stg:text-left stg:transition-colors","stg:hover:bg-accent-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-inset stg:focus-visible:ring-ring"),children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:r}),i>0&&(0,t.jsx)("span",{className:"stg:ml-2 stg:inline-flex stg:items-center stg:justify-center stg:rounded-full stg:bg-primary stg:px-1.5 stg:py-0.5 stg:text-[10px] stg:font-medium stg:text-primary-foreground",children:i}),(0,t.jsx)("p",{className:"stg:mt-0.5 stg:text-xs stg:text-muted-foreground",children:n})]}),(0,t.jsx)(v,{className:(0,l.cn)("stg:size-4 stg:shrink-0 stg:text-muted-foreground stg:transition-transform",a&&"stg:rotate-180")})]}),a&&(0,t.jsx)("div",{id:c,className:"stg:border-t stg:border-border stg:px-4 stg:py-4",children:g})]})}function b({entries:e,onChange:r}){let n=(0,s.useCallback)(()=>{r([...e,{key:"",description:"",isSecret:!0,optional:!1}])},[e,r]),i=(0,s.useCallback)((t,s)=>{r(e.map((e,r)=>r===t?{...e,...s}:e))},[e,r]),a=(0,s.useCallback)(t=>{r(e.filter((e,s)=>s!==t))},[e,r]);return(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-3",children:[e.map((e,s)=>(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-2 stg:rounded-md stg:border stg:border-border stg:p-3",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-2",children:[(0,t.jsxs)("div",{className:"stg:flex-1 stg:space-y-1.5",children:[(0,t.jsx)("input",{type:"text",value:e.key,onChange:e=>i(s,{key:e.target.value.toUpperCase().replace(/[^A-Z0-9_]/g,"")}),placeholder:"VARIABLE_NAME","aria-label":`Environment variable name ${s+1}`,className:(0,l.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-2.5 stg:py-1.5 stg:font-mono stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring")}),(0,t.jsx)("input",{type:"text",value:e.description,onChange:e=>i(s,{description:e.target.value}),placeholder:"Description (optional)","aria-label":`Description for ${e.key||`variable ${s+1}`}`,className:(0,l.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring")})]}),(0,t.jsx)("button",{type:"button",onClick:()=>a(s),"aria-label":`Remove ${e.key||"variable"}`,className:(0,l.cn)("stg:mt-1 stg:rounded stg:p-1 stg:text-muted-foreground stg:transition-colors","stg:hover:bg-accent-hover stg:hover:text-destructive","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:(0,t.jsx)(j,{className:"stg:size-3.5"})})]}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-4",children:[(0,t.jsxs)("label",{className:"stg:flex stg:items-center stg:gap-1.5 stg:text-xs stg:text-muted-foreground",children:[(0,t.jsx)("input",{type:"checkbox",checked:e.isSecret,onChange:e=>i(s,{isSecret:e.target.checked}),className:"stg:size-3.5 stg:rounded stg:border-input"}),"Secret"]}),(0,t.jsxs)("label",{className:"stg:flex stg:items-center stg:gap-1.5 stg:text-xs stg:text-muted-foreground",children:[(0,t.jsx)("input",{type:"checkbox",checked:e.optional,onChange:e=>i(s,{optional:e.target.checked}),className:"stg:size-3.5 stg:rounded stg:border-input"}),"Optional"]})]})]},s)),(0,t.jsxs)("button",{type:"button",onClick:n,className:(0,l.cn)("stg:inline-flex stg:w-fit stg:items-center stg:gap-1.5 stg:rounded-md stg:border stg:border-dashed stg:border-input stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium stg:text-muted-foreground stg:transition-colors","stg:hover:border-border stg:hover:text-foreground stg:hover:bg-accent-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[(0,t.jsx)(y,{className:"stg:size-3"}),"Add variable"]})]})}function v({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"m4 6 4 4 4-4"})})}function y({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M8 3v10M3 8h10"})})}function j({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 4l8 8M12 4l-8 8"})})}var k=e.i(992999),N=e.i(610595),w=e.i(590745);function C({org:e,data:r,isCreating:n,error:i}){var a;let o=(0,s.useMemo)(()=>A(e,r),[e,r]),l=(0,s.useMemo)(()=>(0,w.serializeManifest)((0,k.buildAgentProto)(o)),[o]);return(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"stg:text-lg stg:font-semibold stg:text-foreground",children:"Review & Create"}),(0,t.jsx)("p",{className:"stg:mt-1 stg:text-sm stg:text-muted-foreground",children:"Review the agent configuration below, then create it."})]}),(0,t.jsx)("div",{className:"stg:rounded-lg stg:border stg:border-border stg:p-4",children:(0,t.jsxs)("dl",{className:"stg:grid stg:gap-x-6 stg:gap-y-3 stg:text-sm stg:sm:grid-cols-2",children:[(0,t.jsx)(S,{label:"Name",value:r.name}),(0,t.jsx)(S,{label:"Slug",value:r.slug,mono:!0}),(0,t.jsx)(S,{label:"Organization",value:e,mono:!0}),(0,t.jsx)(S,{label:"Visibility",value:"public"===r.visibility?"Public":"Private"}),r.description&&(0,t.jsx)(S,{label:"Description",value:r.description,className:"stg:sm:col-span-2"}),r.instructions&&(0,t.jsx)(S,{label:"Instructions",value:(a=r.instructions).length<=120?a:a.slice(0,120)+"…",className:"stg:sm:col-span-2"}),(0,t.jsx)(S,{label:"MCP Servers",value:r.mcpServerUsages.length>0?`${r.mcpServerUsages.length} configured`:"None"}),(0,t.jsx)(S,{label:"Skills",value:r.skillRefs.length>0?`${r.skillRefs.length} attached`:"None"}),r.env.length>0&&(0,t.jsx)(S,{label:"Env Variables",value:`${r.env.length} declared`})]})}),(0,t.jsxs)("div",{className:"stg:space-y-2",children:[(0,t.jsx)("h3",{className:"stg:text-xs stg:font-medium stg:uppercase stg:tracking-wider stg:text-muted-foreground",children:"YAML Preview"}),(0,t.jsx)("div",{className:"stg:max-h-80 stg:overflow-auto stg:rounded-lg stg:border stg:border-border stg:bg-muted-faint",children:(0,t.jsx)("pre",{className:"stg:p-4 stg:font-mono stg:text-xs stg:leading-relaxed stg:text-foreground",children:l})})]}),i&&(0,t.jsxs)("div",{className:"stg:rounded-md stg:border stg:border-destructive stg:bg-muted-faint stg:px-4 stg:py-3",role:"alert",children:[(0,t.jsx)("p",{className:"stg:text-sm stg:font-medium stg:text-destructive",children:"Failed to create agent"}),(0,t.jsx)("p",{className:"stg:mt-1 stg:text-xs stg:text-muted-foreground",children:(0,N.getUserMessage)(i)})]}),n&&(0,t.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground","aria-live":"polite",children:"Creating agent…"})]})}function S({label:e,value:s,mono:r,className:n}){return(0,t.jsxs)("div",{className:n,children:[(0,t.jsx)("dt",{className:"stg:text-xs stg:text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:(0,l.cn)("stg:mt-0.5 stg:text-sm stg:text-foreground",r&&"stg:font-mono"),children:s})]})}function A(e,t){let s={name:t.name.trim(),org:e,...t.slug&&{slug:t.slug},...t.description&&{description:t.description.trim()},...t.iconUrl&&{iconUrl:t.iconUrl.trim()},...t.instructions&&{instructions:t.instructions}};if(t.mcpServerUsages.length>0&&(s.mcpServerUsages=t.mcpServerUsages),t.skillRefs.length>0&&(s.skillRefs=t.skillRefs),t.env.length>0){let e={};for(let s of t.env)s.key&&(e[s.key]={...s.isSecret&&{isSecret:!0},...s.description&&{description:s.description},...s.optional&&{optional:!0}});Object.keys(e).length>0&&(s.env=e)}return s}let E=[{id:"identity",label:"Identity & Instructions",validate:e=>e.name.trim()?null:"Name is required"},{id:"capabilities",label:"Capabilities"},{id:"review",label:"Review & Create"}];function L({org:e,initialData:r,onComplete:l,onCancel:g,className:c}){let d=(0,s.useMemo)(()=>({name:"",slug:"",slugTouched:!1,description:"",iconUrl:"",visibility:"private",instructions:"",mcpServerUsages:[],skillRefs:[],env:[],...r}),[r]),p=(0,n.useWizardState)({steps:E,initialData:d}),{create:m,isCreating:x,error:f,clearError:b}=function(){let e=(0,a.useStigmer)(),[t,r]=(0,s.useState)(!1),[n,i]=(0,s.useState)(null),l=(0,s.useCallback)(()=>i(null),[]);return{create:(0,s.useCallback)(async t=>{r(!0),i(null);try{return await e.agent.apply(t)}catch(e){throw i((0,o.toError)(e)),e}finally{r(!1)}},[e]),isCreating:t,error:n,clearError:l}}(),v=(0,s.useCallback)(()=>{p.isLastStep?y():(b(),p.goNext())},[p.isLastStep,p.goNext,b]),y=(0,s.useCallback)(async()=>{b();let t=A(e,p.data);try{let s=await m(t);l({org:s.metadata?.org??e,slug:s.metadata?.slug??t.slug??t.name,name:s.metadata?.name??t.name})}catch{}},[e,p.data,m,b,l]),j=(0,s.useMemo)(()=>{switch(p.currentStep.id){case"identity":return(0,t.jsx)(u,{data:p.data,updateData:p.updateData,validationError:p.validationError});case"capabilities":return(0,t.jsx)(h,{org:e,data:p.data,updateData:p.updateData});case"review":return(0,t.jsx)(C,{org:e,data:p.data,isCreating:x,error:f});default:return null}},[p.currentStep.id,p.data,p.updateData,p.validationError,e,x,f]);return(0,t.jsx)(i.WizardShell,{steps:E,currentStepIndex:p.currentStepIndex,submitLabel:"Create agent",isSubmitting:x,canGoNext:p.canGoNext,canGoBack:p.canGoBack,onNext:v,onBack:p.goBack,onGoToStep:p.goToStep,onCancel:g,className:c,children:j})}var T=e.i(385332),R=e.i(658653);let I=[{id:"customer-support",name:"Customer Support Agent",description:"A support agent that handles customer inquiries with empathy, follows escalation procedures, and maintains a professional tone.",category:"customer-support",tags:["support","helpdesk","tickets","customer"],data:{name:"Customer Support Agent",description:"Handles customer inquiries, troubleshoots issues, and escalates when necessary.",instructions:`You are a customer support agent. Your role is to help customers resolve their issues efficiently and empathetically.
2
+
3
+ ## Guidelines
4
+
5
+ - **Tone:** Professional, friendly, and patient. Acknowledge the customer's frustration before troubleshooting.
6
+ - **Scope:** Answer questions about the product, troubleshoot common issues, and guide customers through solutions step by step.
7
+ - **Escalation:** If you cannot resolve the issue within your capabilities, clearly explain what you've tried and escalate to a human agent with a summary of the conversation.
8
+ - **Privacy:** Never ask for or store sensitive information like passwords or payment details. Direct customers to secure channels for sensitive operations.
9
+
10
+ ## Response Format
11
+
12
+ 1. Acknowledge the customer's issue
13
+ 2. Ask clarifying questions if needed
14
+ 3. Provide a step-by-step solution
15
+ 4. Confirm the issue is resolved or escalate`}},{id:"code-review",name:"Code Review Agent",description:"Reviews pull requests and code changes with a focus on correctness, maintainability, and adherence to coding standards.",category:"code-review",tags:["code","review","pull-request","engineering"],data:{name:"Code Review Agent",description:"Reviews code changes for correctness, maintainability, and style consistency.",instructions:`You are a code reviewer. Your role is to review code changes and provide constructive, actionable feedback.
16
+
17
+ ## Review Priorities (in order)
18
+
19
+ 1. **Correctness** — Does the code do what it claims? Are there edge cases, off-by-one errors, or logic flaws?
20
+ 2. **Security** — Are there injection vulnerabilities, auth bypasses, or data leaks?
21
+ 3. **Maintainability** — Is the code readable? Would a new team member understand it in under 5 minutes?
22
+ 4. **Performance** — Are there obvious performance issues (N+1 queries, unnecessary allocations, blocking calls)?
23
+ 5. **Style** — Does it follow the project's conventions?
24
+
25
+ ## Feedback Format
26
+
27
+ - Be specific: reference line numbers and variable names.
28
+ - Explain *why* something is a problem, not just *what* to change.
29
+ - Distinguish between blockers (must fix), suggestions (should consider), and nits (optional polish).
30
+ - Acknowledge what the author did well.`}},{id:"data-analysis",name:"Data Analysis Agent",description:"Analyzes datasets, generates insights, and presents findings with clear explanations and visualizations.",category:"data-analysis",tags:["data","analytics","insights","reporting"],data:{name:"Data Analysis Agent",description:"Analyzes data, identifies patterns, and presents actionable insights.",instructions:`You are a data analysis agent. Your role is to help users understand their data by identifying patterns, anomalies, and actionable insights.
31
+
32
+ ## Guidelines
33
+
34
+ - **Clarity over complexity:** Explain findings in plain language before diving into technical details. Not every user is a data scientist.
35
+ - **Statistical rigor:** When making claims about trends or correlations, state the confidence level and sample size. Distinguish correlation from causation.
36
+ - **Visualization:** When appropriate, suggest or generate charts and tables that make the data story clear. Choose the right chart type for the data relationship being shown.
37
+ - **Assumptions:** State your assumptions explicitly. If the data is incomplete or ambiguous, say so rather than guessing.
38
+
39
+ ## Response Structure
40
+
41
+ 1. Summary of the key finding (one sentence)
42
+ 2. Supporting evidence with specific numbers
43
+ 3. Recommended next steps or questions to investigate further`}},{id:"content-writer",name:"Content Writer Agent",description:"Writes and edits content with consistent style, tone, and formatting across different content types.",category:"content",tags:["writing","content","copywriting","editing"],data:{name:"Content Writer Agent",description:"Creates and edits written content with consistent style and tone.",instructions:`You are a content writing agent. Your role is to produce clear, engaging, and well-structured written content.
44
+
45
+ ## Writing Principles
46
+
47
+ - **Audience-first:** Adapt vocabulary, depth, and tone to the target audience. Technical docs for developers differ from blog posts for general readers.
48
+ - **Structure:** Use headings, short paragraphs, and bullet points for scannability. Front-load the most important information.
49
+ - **Voice:** Active voice by default. Concise sentences. Avoid filler words and unnecessary qualifiers.
50
+ - **Accuracy:** Do not invent facts, statistics, or quotes. If you are uncertain, say so.
51
+
52
+ ## Content Types
53
+
54
+ - Blog posts: informative, engaging, SEO-aware structure
55
+ - Documentation: precise, task-oriented, with code examples where relevant
56
+ - Marketing copy: benefit-focused, clear call-to-action
57
+ - Internal communications: concise, action-oriented
58
+
59
+ ## Editing Mode
60
+
61
+ When editing existing content, preserve the author's voice while improving clarity and flow. Explain your changes.`}},{id:"devops-assistant",name:"DevOps Assistant Agent",description:"Assists with infrastructure operations, incident response, and deployment workflows.",category:"devops",tags:["devops","infrastructure","deployment","incident","sre"],data:{name:"DevOps Assistant Agent",description:"Assists with infrastructure operations, incident triage, and deployment workflows.",instructions:`You are a DevOps assistant agent. Your role is to help engineering teams with infrastructure operations, incident response, and deployment workflows.
62
+
63
+ ## Capabilities
64
+
65
+ - **Incident triage:** Analyze alerts, logs, and metrics to identify the likely root cause. Prioritize by blast radius and customer impact.
66
+ - **Runbook execution:** Follow documented runbooks step by step. If a step fails or produces unexpected output, pause and report rather than improvising.
67
+ - **Deployment support:** Guide users through deployment checklists, validate configurations, and monitor rollout health.
68
+ - **Infrastructure queries:** Answer questions about resource configurations, service dependencies, and architecture topology.
69
+
70
+ ## Safety Rules
71
+
72
+ - **Never execute destructive operations** (delete, force-push, scale-to-zero) without explicit human confirmation.
73
+ - **Always verify the target environment** (staging vs production) before any operation.
74
+ - **Prefer read-only operations** when gathering information. Only suggest write operations when the user requests a change.
75
+ - **Escalate uncertainty:** If you are not confident in a diagnosis or action, say so and recommend involving a human operator.`}}];var D=e.i(297629),M=e.i(310057);e.s(["AgentNewPage",0,function(){let e=(0,D.useActiveOrgSlug)(),n=(0,r.useRouter)(),{setLabel:i}=(0,M.useBreadcrumbOverride)(),[a,o]=(0,s.useState)({phase:"picking"}),[l,g]=(0,s.useState)(!1);(0,s.useEffect)(()=>{i("New agent")},[i]);let c=(0,s.useCallback)(e=>{switch(e.kind){case"scratch":o({phase:"wizard"});break;case"template":o({phase:"wizard",initialData:e.data});break;case"import":g(!0)}},[]),d=(0,s.useCallback)(e=>{n.push(`/library/agents/${e.org}/${e.slug}`)},[n]),u=(0,s.useCallback)(()=>{"wizard"===a.phase?o({phase:"picking"}):n.push("/library/agents")},[a.phase,n]);return e?(0,t.jsxs)(t.Fragment,{children:["picking"===a.phase?(0,t.jsx)(T.CreationPicker,{resourceLabel:"agent",templates:I,onSelect:c}):(0,t.jsx)(L,{org:e,initialData:a.initialData,onComplete:d,onCancel:u,className:"min-h-[480px]"}),(0,t.jsx)(R.ApplyManifestDialog,{open:l,onOpenChange:g,org:e,onApplied:()=>n.push("/library/agents")})]}):null}],155732)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,531466,e=>{"use strict";var t=e.i(843476);e.s(["StigmerLogo",0,function(){return(0,t.jsx)("div",{className:"mx-auto flex size-14 items-center justify-center rounded-xl bg-primary",children:(0,t.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 34 34",fill:"currentColor",className:"text-primary-foreground","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M7.22379 10.1458C9.05407 9.86272 10.2601 10.7932 10.1332 12.7168C10.0607 13.816 9.37085 13.9538 8.991 14.6751C8.15807 16.257 8.23651 19.0558 9.83964 20.1704C11.0252 20.9947 12.3089 20.9226 13.6764 20.8136C15.351 20.6822 15.7312 18.9283 17.4949 19.1781C18.5045 19.3212 19.3539 19.986 19.5308 21.0368C19.8731 23.115 17.5328 24.6973 15.796 23.4003C15.4981 23.1941 15.2124 22.7836 14.9017 22.6188C13.8888 22.0813 12.4364 22.1988 11.3325 22.2567C10.3331 22.2995 9.9481 22.827 9.24872 23.3777C7.78404 24.5308 5.5977 23.5036 5.5362 21.6393C5.49261 20.3166 5.97204 20.2337 6.65004 19.3786C7.14854 18.7498 7.22436 17.5822 7.1666 16.8242C7.15174 16.5125 7.16799 16.2157 7.1345 15.8989C6.95287 14.18 5.54082 14.0969 5.53861 12.3885C5.54697 12.0035 5.56265 11.8801 5.64874 11.5096C5.77807 11.1548 5.9613 10.9652 6.1995 10.6742C6.55201 10.3742 6.78576 10.2673 7.22379 10.1458Z"}),(0,t.jsx)("path",{d:"M15.9375 5.05709C16.4863 4.88101 17.0211 4.86877 17.5308 5.14264C17.9448 5.36503 18.4229 5.80132 18.5317 6.24791C18.8693 7.63344 18.0298 8.97957 16.4783 8.77693C16.0886 8.726 15.378 8.51377 15.0055 8.66575C14.8321 8.79577 14.5069 9.39896 14.3364 9.61119C14.003 10.0262 13.6777 10.3331 13.4151 10.7953C12.911 11.7801 12.9882 13.5299 13.2403 14.5874C13.5117 15.7261 14.8648 16.067 14.7677 17.4599C14.753 18.4001 14.0312 19.4698 13.1005 19.7406C11.8014 20.1187 10.437 19.382 10.0585 18.0656C9.74119 16.962 10.2395 16.3481 10.9358 15.6014C11.6326 14.8542 11.6829 13.8901 11.625 12.9246C11.6019 12.4623 11.6428 11.698 11.527 11.2677C11.1984 10.0464 9.8135 9.61166 9.96919 8.10529C10.1705 6.92461 11.0909 5.99196 12.3211 5.99226C12.4559 5.9923 12.5904 5.99301 12.7253 5.99481C13.4296 6.07526 13.5342 6.37133 14.0066 6.55894C14.231 6.41566 14.313 6.54908 14.3628 6.51437C14.5546 6.38061 14.5933 6.22329 14.8535 6.15937C15.0853 5.76885 15.2225 5.6133 15.5494 5.29676L15.9375 5.05709Z"}),(0,t.jsx)("path",{d:"M26.0385 10.077C27.2284 10.0687 28.2828 10.7748 28.4955 12.0193C28.7075 13.2596 28.0148 13.7278 27.3582 14.5966C26.6054 15.5925 26.6842 17.9707 27.197 19.0797C27.5852 19.846 28.3581 20.3182 28.4914 21.2145C28.6816 22.4934 27.7395 23.7173 26.4719 23.9195C25.1999 24.1224 24.0097 23.1019 23.8163 21.8685C23.6467 20.7868 24.2415 20.2214 24.8926 19.481C25.6418 18.5769 25.5329 16.5867 25.3735 15.4935C25.1206 14.5153 24.2806 13.5335 23.2874 13.2836C22.3671 13.0521 20.1592 12.9783 19.2892 13.4472C18.5563 13.8421 17.9765 14.7779 16.9495 14.8475C16.4639 14.9012 15.748 14.583 15.3706 14.2874C14.9233 13.9438 14.6306 13.4366 14.5568 12.8773C14.4823 12.2675 14.5398 11.5165 14.9442 11.0497C16.1084 9.70584 17.5753 9.90845 18.7589 11.0712C19.7302 12.0255 22.5325 12.0177 23.6494 11.4266C24.6503 10.8969 24.5342 10.2494 26.0385 10.077Z"}),(0,t.jsx)("path",{d:"M21.4613 14.1264C21.7085 14.1091 22.1094 14.2505 22.3436 14.3287C23.3527 14.6651 23.9782 15.4779 23.9631 16.5522C23.9447 17.8506 22.83 18.2703 22.4409 19.388C22.1931 20.0995 22.2474 20.7953 22.2654 21.5345C22.2815 22.2131 22.3898 22.9193 22.7868 23.4961C23.0911 23.9404 23.5497 24.2076 23.7702 24.7176C24.6099 26.658 22.6283 28.7293 20.6657 27.781C20.4308 27.6674 19.6747 27.2047 19.5265 27.3624C18.9443 27.982 18.9227 28.5279 18.0373 28.9311C17.5994 29.1049 17.1136 29.116 16.6682 28.9623C16.1287 28.7737 15.7497 28.3615 15.513 27.8535C15.3039 27.4051 15.2846 26.8912 15.4594 26.4284C15.642 25.9407 16.0436 25.5058 16.5179 25.2929C17.2492 24.9648 17.9962 25.2105 18.6926 25.4769C19.2726 25.1432 19.3258 24.7958 19.6894 24.2827C19.9037 23.9801 20.3712 23.6667 20.5162 23.3254C21.1284 21.884 21.1859 20.1407 20.4614 18.729C20.1032 18.2156 19.5862 17.8974 19.411 17.2616C19.2477 16.669 19.2064 16.0187 19.515 15.4598C19.9589 14.6558 20.6234 14.3736 21.4613 14.1264Z"}),(0,t.jsx)("path",{d:"M21.3264 7.13262C22.3915 6.99169 23.3682 7.74343 23.5045 8.80913C23.6409 9.87482 22.885 10.8483 21.8187 10.9801C20.7588 11.1111 19.7926 10.3607 19.657 9.30148C19.5215 8.24225 20.2677 7.27274 21.3264 7.13262Z"}),(0,t.jsx)("path",{d:"M12.1482 22.9577C13.2006 22.807 14.1781 23.5319 14.3396 24.5828C14.501 25.6336 13.7861 26.6184 12.737 26.7905C12.0487 26.9035 11.3528 26.6381 10.9146 26.0955C10.4764 25.5529 10.3633 24.8168 10.6185 24.1677C10.8737 23.5186 11.4578 23.0565 12.1482 22.9577Z"}),(0,t.jsx)("path",{d:"M4.88784 15.6498C5.61993 15.5335 6.3073 16.0339 6.42154 16.7663C6.53575 17.4987 6.0334 18.1847 5.30067 18.2968C4.65759 18.3952 4.03672 18.0173 3.82881 17.4008C3.7368 17.1281 3.7351 16.8329 3.82401 16.5591C3.97953 16.0801 4.39049 15.7288 4.88784 15.6498Z"}),(0,t.jsx)("path",{d:"M28.6677 15.6546C29.3955 15.5226 30.0918 16.0073 30.2208 16.7356C30.3498 17.4639 29.8622 18.1582 29.1334 18.2842C28.4088 18.4095 27.7193 17.9253 27.5911 17.2013C27.4629 16.4772 27.9442 15.7858 28.6677 15.6546Z"})]})})}])},968563,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(618566),n=e.i(363178),i=e.i(272012),o=e.i(163308),a=e.i(893976),l=e.i(610595),c=e.i(575407),d=e.i(379410);function g({initialOrg:e,onSsoLogin:r,className:n}){var i,o,l,d;let[p,h]=(0,s.useState)(e??""),[j,b]=(0,s.useState)(e??null),{ssoProvider:v,isLoading:y,error:N}=(0,c.useSsoProvider)(j),k=(0,s.useRef)(null),S=(i=j,o=y,l=v,d=N,i?o?"loading":d?"error":l?"found":"not-found":"input");(0,s.useEffect)(()=>{"input"===S&&k.current?.focus()},[S]);let w=(0,s.useCallback)(e=>{e.preventDefault();let t=p.trim().toLowerCase();t&&b(t)},[p]),M=(0,s.useCallback)(()=>{b(null),h("")},[]),L=(0,s.useCallback)(()=>{j&&(b(null),queueMicrotask(()=>b(j)))},[j]),z=(0,s.useCallback)(()=>{v&&j&&r(v,j)},[v,j,r]),A=(0,s.useCallback)(e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),z())},[z]);return(0,t.jsxs)("div",{className:(0,a.cn)("stg:w-full",n),role:"region","aria-label":"SSO sign-in",children:["input"===S&&(0,t.jsx)(u,{ref:k,value:p,onChange:h,onSubmit:w}),"loading"===S&&(0,t.jsx)(m,{org:j}),"found"===S&&v&&(0,t.jsx)(x,{provider:v,org:j,onClick:z,onKeyDown:A,onChangeOrg:M}),"not-found"===S&&(0,t.jsx)(C,{org:j,onBack:M}),"error"===S&&N&&(0,t.jsx)(f,{error:N,onRetry:L,onBack:M})]})}let u=(0,s.forwardRef)(function({value:e,onChange:r,onSubmit:n},i){let o=(0,s.useId)();return(0,t.jsxs)("form",{onSubmit:n,className:"stg:space-y-3",children:[(0,t.jsx)("label",{htmlFor:o,className:"stg:block stg:text-sm stg:font-medium stg:text-foreground",children:"Organization"}),(0,t.jsx)("input",{ref:i,id:o,type:"text",value:e,onChange:e=>r(e.target.value),placeholder:"Enter your organization slug",autoComplete:"organization",spellCheck:!1,className:(0,a.cn)("stg:block stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-3 stg:py-2","stg:text-sm stg:text-foreground stg:placeholder:text-muted-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring","stg:transition-colors")}),(0,t.jsx)("button",{type:"submit",disabled:!e.trim(),className:(0,a.cn)("stg:w-full stg:rounded-md stg:px-4 stg:py-2 stg:text-sm stg:font-medium","stg:bg-primary stg:text-primary-foreground","stg:hover:bg-primary-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50","stg:transition-colors"),children:"Continue"})]})});function m({org:e}){return(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:items-center stg:gap-3 stg:py-4","aria-busy":"true","aria-label":`Looking up SSO provider for ${e}`,children:[(0,t.jsx)(d.SpinnerIcon,{size:20,className:"stg:text-muted-foreground"}),(0,t.jsxs)("p",{className:"stg:text-sm stg:text-muted-foreground",children:["Looking up ",(0,t.jsx)("span",{className:"stg:font-medium stg:text-foreground",children:e}),"…"]})]})}function x({provider:e,org:s,onClick:r,onKeyDown:n,onChangeOrg:i}){return(0,t.jsxs)("div",{className:"stg:space-y-4",children:[(0,t.jsx)("div",{className:"stg:text-center",children:(0,t.jsxs)("p",{className:"stg:text-xs stg:text-muted-foreground",children:["Signing in to"," ",(0,t.jsx)("span",{className:"stg:font-medium stg:text-foreground",children:s})]})}),(0,t.jsxs)("button",{type:"button",onClick:r,onKeyDown:n,className:(0,a.cn)("stg:flex stg:w-full stg:items-center stg:justify-center stg:gap-2 stg:rounded-md stg:px-4 stg:py-2.5","stg:text-sm stg:font-medium","stg:bg-primary stg:text-primary-foreground","stg:hover:bg-primary-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:transition-colors"),children:[(0,t.jsx)(p,{}),"Sign in with ",e.displayName]}),(0,t.jsx)("button",{type:"button",onClick:i,className:"stg:block stg:w-full stg:text-center stg:text-xs stg:text-muted-foreground stg:hover:text-foreground stg:transition-colors",children:"Not your organization? Change"})]})}function C({org:e,onBack:s}){return(0,t.jsxs)("div",{className:"stg:space-y-3 stg:text-center",children:[(0,t.jsxs)("p",{className:"stg:text-sm stg:text-muted-foreground",children:["No SSO provider configured for"," ",(0,t.jsx)("span",{className:"stg:font-medium stg:text-foreground",children:e}),"."]}),(0,t.jsx)("button",{type:"button",onClick:s,className:"stg:text-xs stg:text-primary stg:hover:text-primary-hover stg:transition-colors",children:"Try a different organization"})]})}function f({error:e,onRetry:s,onBack:r}){return(0,t.jsxs)("div",{className:"stg:space-y-3 stg:text-center",role:"alert",children:[(0,t.jsx)("p",{className:"stg:text-sm stg:text-destructive",children:(0,l.getUserMessage)(e)}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-center stg:gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:s,className:(0,a.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:transition-colors"),children:"Retry"}),(0,t.jsx)("button",{type:"button",onClick:r,className:"stg:text-xs stg:text-muted-foreground stg:hover:text-foreground stg:transition-colors",children:"Back"})]})]})}function p(){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M8 1.5L2 4v4c0 3.5 2.5 5.5 6 7 3.5-1.5 6-3.5 6-7V4L8 1.5z"}),(0,t.jsx)("path",{d:"M6 8l1.5 1.5L10 6.5"})]})}var h=e.i(472402),j=e.i(35127),b=e.i(470858),v=e.i(567989),y=e.i(531466);let N="stigmer:auth:redirect_path";function k(){let e=(0,r.useSearchParams)().get("org")??void 0,{resolvedTheme:a}=(0,n.useTheme)(),l=(0,s.useMemo)(()=>new i.Stigmer({baseUrl:(0,h.getApiBaseUrl)(),getAccessToken:()=>null}),[]),c=(0,s.useCallback)((e,t)=>{(0,v.saveSsoLoginState)({issuer:e.issuer,clientId:e.oidcClientId,audience:e.expectedAudience,org:t}),sessionStorage.setItem(N,"/");let s={};e.expectedAudience&&(s.audience=e.expectedAudience),(0,b.createUserManager)({issuer:e.issuer,clientId:e.oidcClientId,audience:e.expectedAudience}).signinRedirect({extraQueryParams:s})},[]),d=(0,s.useCallback)(()=>{let e=(0,j.resolveAuthConfig)();"oidc"!==e.mode||(sessionStorage.setItem(N,"/"),(0,b.createUserManager)(e.oidc).signinRedirect())},[]);return(0,t.jsx)(o.StigmerProvider,{client:l,colorMode:"dark"===a?"dark":"light",preset:"monochrome",children:(0,t.jsx)("div",{className:"flex min-h-screen flex-col items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"w-full max-w-sm space-y-8",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)(y.StigmerLogo,{}),(0,t.jsx)("h1",{className:"mt-4 text-lg font-semibold text-foreground",children:"Sign in to Stigmer"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Enter your organization to continue with SSO"})]}),(0,t.jsx)(g,{initialOrg:e,onSsoLogin:c}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("div",{className:"w-full border-t border-border"})}),(0,t.jsx)("div",{className:"relative flex justify-center text-xs",children:(0,t.jsx)("span",{className:"bg-background px-2 text-muted-foreground",children:"or"})})]}),(0,t.jsx)("button",{type:"button",onClick:d,className:"block w-full rounded-md border border-input bg-background px-4 py-2.5 text-center text-sm font-medium text-foreground hover:bg-accent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:"Sign in with email"})]})})})}function S(){return(0,t.jsx)("div",{className:"flex min-h-screen flex-col items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"w-full max-w-sm space-y-8",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,t.jsx)("div",{className:"h-10 w-10 animate-pulse rounded-lg bg-muted"}),(0,t.jsx)("div",{className:"h-5 w-40 animate-pulse rounded bg-muted"}),(0,t.jsx)("div",{className:"h-4 w-56 animate-pulse rounded bg-muted"})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("div",{className:"h-4 w-24 animate-pulse rounded bg-muted"}),(0,t.jsx)("div",{className:"h-10 animate-pulse rounded-md bg-muted"}),(0,t.jsx)("div",{className:"h-10 animate-pulse rounded-md bg-muted"})]})]})})}e.s(["default",0,function(){return(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(S,{}),children:(0,t.jsx)(k,{})})}],968563)}]);
@@ -0,0 +1,115 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,279769,t=>{"use strict";var e=t.i(475058),n=t.i(810199),i=t.i(216888);function a(t){return t.innerRadius}function r(t){return t.outerRadius}function s(t){return t.startAngle}function o(t){return t.endAngle}function l(t){return t&&t.padAngle}function c(t,e,i,a,r,s,o){var l=t-i,c=e-a,h=(o?s:-s)/(0,n.sqrt)(l*l+c*c),d=h*c,u=-h*l,p=t+d,g=e+u,f=i+d,m=a+u,y=(p+f)/2,_=(g+m)/2,x=f-p,b=m-g,k=x*x+b*b,v=r-s,w=p*m-f*g,$=(b<0?-1:1)*(0,n.sqrt)((0,n.max)(0,v*v*k-w*w)),S=(w*b-x*$)/k,T=(-w*x-b*$)/k,E=(w*b+x*$)/k,I=(-w*x+b*$)/k,M=S-y,C=T-_,A=E-y,L=I-_;return M*M+C*C>A*A+L*L&&(S=E,T=I),{cx:S,cy:T,x01:-d,y01:-u,x11:S*(r/v-1),y11:T*(r/v-1)}}t.s(["arc",0,function(){var t=a,h=r,d=(0,e.default)(0),u=null,p=s,g=o,f=l,m=null,y=(0,i.withPath)(_);function _(){var e,i,a=+t.apply(this,arguments),r=+h.apply(this,arguments),s=p.apply(this,arguments)-n.halfPi,o=g.apply(this,arguments)-n.halfPi,l=(0,n.abs)(o-s),_=o>s;if(m||(m=e=y()),r<a&&(i=r,r=a,a=i),r>n.epsilon)if(l>n.tau-n.epsilon)m.moveTo(r*(0,n.cos)(s),r*(0,n.sin)(s)),m.arc(0,0,r,s,o,!_),a>n.epsilon&&(m.moveTo(a*(0,n.cos)(o),a*(0,n.sin)(o)),m.arc(0,0,a,o,s,_));else{var x,b,k=s,v=o,w=s,$=o,S=l,T=l,E=f.apply(this,arguments)/2,I=E>n.epsilon&&(u?+u.apply(this,arguments):(0,n.sqrt)(a*a+r*r)),M=(0,n.min)((0,n.abs)(r-a)/2,+d.apply(this,arguments)),C=M,A=M;if(I>n.epsilon){var L=(0,n.asin)(I/a*(0,n.sin)(E)),H=(0,n.asin)(I/r*(0,n.sin)(E));(S-=2*L)>n.epsilon?(L*=_?1:-1,w+=L,$-=L):(S=0,w=$=(s+o)/2),(T-=2*H)>n.epsilon?(H*=_?1:-1,k+=H,v-=H):(T=0,k=v=(s+o)/2)}var D=r*(0,n.cos)(k),R=r*(0,n.sin)(k),O=a*(0,n.cos)($),P=a*(0,n.sin)($);if(M>n.epsilon){var B,N=r*(0,n.cos)(v),W=r*(0,n.sin)(v),z=a*(0,n.cos)(w),F=a*(0,n.sin)(w);if(l<n.pi)if(B=function(t,e,i,a,r,s,o,l){var c=i-t,h=a-e,d=o-r,u=l-s,p=u*c-d*h;if(!(p*p<n.epsilon))return p=(d*(e-s)-u*(t-r))/p,[t+p*c,e+p*h]}(D,R,z,F,N,W,O,P)){var j=D-B[0],q=R-B[1],V=N-B[0],G=W-B[1],U=1/(0,n.sin)((0,n.acos)((j*V+q*G)/((0,n.sqrt)(j*j+q*q)*(0,n.sqrt)(V*V+G*G)))/2),Z=(0,n.sqrt)(B[0]*B[0]+B[1]*B[1]);C=(0,n.min)(M,(a-Z)/(U-1)),A=(0,n.min)(M,(r-Z)/(U+1))}else C=A=0}T>n.epsilon?A>n.epsilon?(x=c(z,F,D,R,r,A,_),b=c(N,W,O,P,r,A,_),m.moveTo(x.cx+x.x01,x.cy+x.y01),A<M?m.arc(x.cx,x.cy,A,(0,n.atan2)(x.y01,x.x01),(0,n.atan2)(b.y01,b.x01),!_):(m.arc(x.cx,x.cy,A,(0,n.atan2)(x.y01,x.x01),(0,n.atan2)(x.y11,x.x11),!_),m.arc(0,0,r,(0,n.atan2)(x.cy+x.y11,x.cx+x.x11),(0,n.atan2)(b.cy+b.y11,b.cx+b.x11),!_),m.arc(b.cx,b.cy,A,(0,n.atan2)(b.y11,b.x11),(0,n.atan2)(b.y01,b.x01),!_))):(m.moveTo(D,R),m.arc(0,0,r,k,v,!_)):m.moveTo(D,R),a>n.epsilon&&S>n.epsilon?C>n.epsilon?(x=c(O,P,N,W,a,-C,_),b=c(D,R,z,F,a,-C,_),m.lineTo(x.cx+x.x01,x.cy+x.y01),C<M?m.arc(x.cx,x.cy,C,(0,n.atan2)(x.y01,x.x01),(0,n.atan2)(b.y01,b.x01),!_):(m.arc(x.cx,x.cy,C,(0,n.atan2)(x.y01,x.x01),(0,n.atan2)(x.y11,x.x11),!_),m.arc(0,0,a,(0,n.atan2)(x.cy+x.y11,x.cx+x.x11),(0,n.atan2)(b.cy+b.y11,b.cx+b.x11),_),m.arc(b.cx,b.cy,C,(0,n.atan2)(b.y11,b.x11),(0,n.atan2)(b.y01,b.x01),!_))):m.arc(0,0,a,$,w,_):m.lineTo(O,P)}else m.moveTo(0,0);if(m.closePath(),e)return m=null,e+""||null}return _.centroid=function(){var e=(+t.apply(this,arguments)+ +h.apply(this,arguments))/2,i=(+p.apply(this,arguments)+ +g.apply(this,arguments))/2-n.pi/2;return[(0,n.cos)(i)*e,(0,n.sin)(i)*e]},_.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:(0,e.default)(+n),_):t},_.outerRadius=function(t){return arguments.length?(h="function"==typeof t?t:(0,e.default)(+t),_):h},_.cornerRadius=function(t){return arguments.length?(d="function"==typeof t?t:(0,e.default)(+t),_):d},_.padRadius=function(t){return arguments.length?(u=null==t?null:"function"==typeof t?t:(0,e.default)(+t),_):u},_.startAngle=function(t){return arguments.length?(p="function"==typeof t?t:(0,e.default)(+t),_):p},_.endAngle=function(t){return arguments.length?(g="function"==typeof t?t:(0,e.default)(+t),_):g},_.padAngle=function(t){return arguments.length?(f="function"==typeof t?t:(0,e.default)(+t),_):f},_.context=function(t){return arguments.length?(m=null==t?null:t,_):m},_}],279769)},242955,t=>{"use strict";var e=t.i(332090),n=t.i(669587),i=t.i(908381),a=t.i(171206);t.i(947716);var r=t.i(723685),s=t.i(279769),o=t.i(536413),l=t.i(512690),c=t.i(709240),h=function(){var t=(0,a.__name)(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),e=[6,11,13,14,15,17,19,20,23,24],n=[1,12],i=[1,13],r=[1,14],s=[1,15],o=[1,16],l=[1,19],c=[1,20],h={trace:(0,a.__name)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:(0,a.__name)(function(t,e,n,i,a,r,s){var o=r.length-1;switch(a){case 1:return r[o-1];case 3:i.setDirection("LR");break;case 4:i.setDirection("TD");break;case 5:case 9:case 10:this.$=[];break;case 6:r[o-1].push(r[o]),this.$=r[o-1];break;case 7:case 8:this.$=r[o];break;case 11:i.getCommonDb().setDiagramTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 12:this.$=r[o].trim(),i.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=r[o].trim(),i.getCommonDb().setAccDescription(this.$);break;case 15:i.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 18:i.addTask(r[o],0,""),this.$=r[o];break;case 19:i.addEvent(r[o].substr(2)),this.$=r[o]}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},t(e,[2,5],{5:6}),t(e,[2,2]),t(e,[2,3]),t(e,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:i,17:r,19:s,20:o,21:17,22:18,23:l,24:c},t(e,[2,10],{1:[2,1]}),t(e,[2,6]),{12:21,14:n,15:i,17:r,19:s,20:o,21:17,22:18,23:l,24:c},t(e,[2,8]),t(e,[2,9]),t(e,[2,11]),{16:[1,22]},{18:[1,23]},t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,7]),t(e,[2,12]),t(e,[2,13])],defaultActions:{},parseError:(0,a.__name)(function(t,e){if(e.recoverable)this.trace(t);else{var n=Error(t);throw n.hash=e,n}},"parseError"),parse:(0,a.__name)(function(t){var e=this,n=[0],i=[],r=[null],s=[],o=this.table,l="",c=0,h=0,d=0,u=s.slice.call(arguments,1),p=Object.create(this.lexer),g={};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(g[f]=this.yy[f]);p.setInput(t,g),g.lexer=p,g.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;s.push(m);var y=p.options&&p.options.ranges;function _(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.parseError?this.parseError=g.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,a.__name)(function(t){n.length=n.length-2*t,r.length=r.length-t,s.length=s.length-t},"popStack"),(0,a.__name)(_,"lex");for(var x,b,k,v,w,$,S,T,E,I={};;){if(k=n[n.length-1],this.defaultActions[k]?v=this.defaultActions[k]:(null==x&&(x=_()),v=o[k]&&o[k][x]),void 0===v||!v.length||!v[0]){var M="";for($ in E=[],o[k])this.terminals_[$]&&$>2&&E.push("'"+this.terminals_[$]+"'");M=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(M,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:m,expected:E})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+k+", token: "+x);switch(v[0]){case 1:n.push(x),r.push(p.yytext),s.push(p.yylloc),n.push(v[1]),x=null,b?(x=b,b=null):(h=p.yyleng,l=p.yytext,c=p.yylineno,m=p.yylloc,d>0&&d--);break;case 2:if(S=this.productions_[v[1]][1],I.$=r[r.length-S],I._$={first_line:s[s.length-(S||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(S||1)].first_column,last_column:s[s.length-1].last_column},y&&(I._$.range=[s[s.length-(S||1)].range[0],s[s.length-1].range[1]]),void 0!==(w=this.performAction.apply(I,[l,h,c,g,v[1],r,s].concat(u))))return w;S&&(n=n.slice(0,-1*S*2),r=r.slice(0,-1*S),s=s.slice(0,-1*S)),n.push(this.productions_[v[1]][0]),r.push(I.$),s.push(I._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0},"parse")};function d(){this.yy={}}return h.lexer={EOF:1,parseError:(0,a.__name)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,a.__name)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,a.__name)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,a.__name)(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,a.__name)(function(){return this._more=!0,this},"more"),reject:(0,a.__name)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,a.__name)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,a.__name)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,a.__name)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,a.__name)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,a.__name)(function(t,e){var n,i,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var r in a)this[r]=a[r];return!1},"test_match"),next:(0,a.__name)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,n,i,a=this._currentRules(),r=0;r<a.length;r++)if((n=this._input.match(this.rules[a[r]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,a[r])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,a[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,a.__name)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,a.__name)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,a.__name)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,a.__name)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,a.__name)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,a.__name)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,a.__name)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,a.__name)(function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 13;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}},(0,a.__name)(d,"Parser"),d.prototype=h,h.Parser=d,new d}();h.parser=h;var d={};(0,a.__export)(d,{addEvent:()=>T,addSection:()=>v,addTask:()=>S,addTaskOrg:()=>E,clear:()=>x,default:()=>M,getCommonDb:()=>_,getDirection:()=>k,getSections:()=>w,getTasks:()=>$,setDirection:()=>b});var u="",p=0,g="LR",f=[],m=[],y=[],_=(0,a.__name)(()=>i.commonDb_exports,"getCommonDb"),x=(0,a.__name)(function(){f.length=0,m.length=0,u="",y.length=0,g="LR",(0,i.clear)()},"clear"),b=(0,a.__name)(function(t){g=t},"setDirection"),k=(0,a.__name)(function(){return g},"getDirection"),v=(0,a.__name)(function(t){u=t,f.push(t)},"addSection"),w=(0,a.__name)(function(){return f},"getSections"),$=(0,a.__name)(function(){let t=I(),e=0;for(;!t&&e<100;)t=I(),e++;return m.push(...y),m},"getTasks"),S=(0,a.__name)(function(t,e,n){let i={id:p++,section:u,type:u,task:t,score:e||0,events:n?[n]:[]};y.push(i)},"addTask"),T=(0,a.__name)(function(t){y.find(t=>t.id===p-1).events.push(t)},"addEvent"),E=(0,a.__name)(function(t){let e={section:u,type:u,description:t,task:t,classes:[]};m.push(e)},"addTaskOrg"),I=(0,a.__name)(function(){let t=(0,a.__name)(function(t){return y[t].processed},"compileTask"),e=!0;for(let[n,i]of y.entries())t(n),e=e&&i.processed;return e},"compileTasks"),M={clear:x,getCommonDb:_,getDirection:k,setDirection:b,addSection:v,getSections:w,getTasks:$,addTask:S,addTaskOrg:E,addEvent:T},C=0,A=(0,a.__name)(function(t,e){let n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},"drawRect"),L=(0,a.__name)(function(t,e){let n=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");function r(t){let n=(0,s.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function o(t){let n=(0,s.arc)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function l(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return i.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),(0,a.__name)(r,"smile"),(0,a.__name)(o,"sad"),(0,a.__name)(l,"ambivalent"),e.score>3?r(i):e.score<3?o(i):l(i),n},"drawFace"),H=(0,a.__name)(function(t,e){let n=e.text.replace(/<br\s*\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);let a=i.append("tspan");return a.attr("x",e.x+2*e.textMargin),a.text(n),i},"drawText"),D=-1,R=(0,a.__name)(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),O=function(){function t(t,e,n,a,r,s,o,l){i(e.append("text").attr("x",n+r/2).attr("y",a+s/2+5).style("font-color",l).style("text-anchor","middle").text(t),o)}function e(t,e,n,a,r,s,o,l,c){let{taskFontSize:h,taskFontFamily:d}=l,u=t.split(/<br\s*\/?>/gi);for(let t=0;t<u.length;t++){let l=t*h-h*(u.length-1)/2,p=e.append("text").attr("x",n+r/2).attr("y",a).attr("fill",c).style("text-anchor","middle").style("font-size",h).style("font-family",d);p.append("tspan").attr("x",n+r/2).attr("dy",l).text(u[t]),p.attr("y",a+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(p,o)}}function n(t,n,a,r,s,o,l,c){let h=n.append("switch"),d=h.append("foreignObject").attr("x",a).attr("y",r).attr("width",s).attr("height",o).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,a,r,s,o,l,c),i(d,l)}function i(t,e){for(let n in e)n in e&&t.attr(n,e[n])}return(0,a.__name)(t,"byText"),(0,a.__name)(e,"byTspan"),(0,a.__name)(n,"byFo"),(0,a.__name)(i,"_setTextAttrs"),function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}(),P=(0,a.__name)(function(t,e){C=0,D=-1,t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function B(t,e){t.each(function(){var t,n=(0,r.select)(this),i=n.text().split(/(\s+|<br>)/).reverse(),a=[],s=n.attr("y"),o=parseFloat(n.attr("dy")),l=n.text(null).append("tspan").attr("x",0).attr("y",s).attr("dy",o+"em");for(let r=0;r<i.length;r++)t=i[i.length-1-r],a.push(t),l.text(a.join(" ").trim()),(l.node().getComputedTextLength()>e||"<br>"===t)&&(a.pop(),l.text(a.join(" ").trim()),a="<br>"===t?[""]:[t],l=n.append("tspan").attr("x",0).attr("y",s).attr("dy","1.1em").text(t))})}(0,a.__name)(B,"wrap");var N=(0,a.__name)(function(t,e,n,i,a,s=!1){let{theme:o,look:l}=i,c=o?.includes("redux"),h=n%(i?.themeVariables?.THEME_COLOR_LIMIT??12)-1,d=t.append("g");e.section=h,d.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+h);let u=d.append("g"),p=d.append("g"),g=p.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(B,e.width).node().getBBox(),f=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;if(e.height=g.height+1.1*f*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,p.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),c&&p.attr("transform",`translate(${e.width/2}, ${s?e.padding/2+3:e.padding})`),z(u,e,h,a,i),"neo"===l&&(d.attr("data-look","neo"),c)){let e=o.includes("dark"),n=t.node()?.ownerSVGElement??t.node(),i=(0,r.select)(n),a=i.attr("id")??"",s=a?`${a}-drop-shadow`:"drop-shadow";if(i.select(`#${s}`).empty()){let t=i.select("defs");(t.empty()?i.append("defs"):t).append("filter").attr("id",s).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",e?"0.2":"0.06").attr("flood-color",e?"#FFFFFF":"#000000")}}return e},"drawNode"),W=(0,a.__name)(function(t,e,n){let i=t.append("g"),a=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(B,e.width).node().getBBox(),r=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;return i.remove(),a.height+1.1*r*.5+e.padding},"getVirtualNodeHeight"),z=(0,a.__name)(function(t,e,n,i,a){let{theme:r}=a,s=5*!r?.includes("redux"),o=s>0?`M0 ${e.height-5} v${-e.height+10} q0,-${s},${s},-${s} h${e.width-10} q${s},0,${s},${s} v${e.height-5} H0 Z`:`M0 ${e.height-5} v${-(e.height-5)} h${e.width} v${e.height} H0 Z`;t.append("path").attr("id",i+"-node-"+C++).attr("class","node-bkg node-"+e.type).attr("d",o),r?.includes("redux")||t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),F=(0,a.__name)(function(t,e,n,s){let o,l=(0,i.getConfig2)(),{look:c,theme:h,themeVariables:d}=l,{useGradient:u,gradientStart:p,gradientStop:g}=d,f=l.timeline?.leftMargin??50;a.log.debug("timeline",s.db);let m=l.securityLevel;"sandbox"===m&&(o=(0,r.select)("#i"+e));let y=("sandbox"===m?(0,r.select)(o.nodes()[0].contentDocument.body):(0,r.select)("body")).select("#"+e);y.append("g");let _=s.db.getTasks(),x=s.db.getCommonDb().getDiagramTitle();a.log.debug("task",_),P(y,e);let b=s.db.getSections();a.log.debug("sections",b);let k=0,v=0,w=0,$=0,S=50+f,T=50;$=50;let E=0,I=!0;b.forEach(function(t){let e=W(y,{number:E,descr:t,section:E,width:150,padding:20,maxHeight:k},l);a.log.debug("sectionHeight before draw",e),k=Math.max(k,e+20)});let M=0,C=0;for(let[t,e]of(a.log.debug("tasks.length",_.length),_.entries())){let n=W(y,{number:t,descr:e,section:e.section,width:150,padding:20,maxHeight:v},l);a.log.debug("taskHeight before draw",n),v=Math.max(v,n+20),M=Math.max(M,e.events.length);let i=0;for(let t of e.events)i+=W(y,{descr:t,section:e.section,number:e.section,width:150,padding:20,maxHeight:50},l);e.events.length>0&&(i+=(e.events.length-1)*10),C=Math.max(C,i)}a.log.debug("maxSectionHeight before draw",k),a.log.debug("maxTaskHeight before draw",v),b&&b.length>0?b.forEach(t=>{let n=_.filter(e=>e.section===t),i={number:E,descr:t,section:E,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:k};a.log.debug("sectionNode",i);let r=y.append("g"),s=N(r,i,E,l,e);a.log.debug("sectionNode output",s),r.attr("transform",`translate(${S}, ${$})`),T+=k+50,n.length>0&&j(y,n,E,S,T,v,l,M,C,k,!1,e),S+=200*Math.max(n.length,1),T=$,E++}):(I=!1,j(y,_,E,S,T,v,l,M,C,k,!0,e));let A=y.node().getBBox();if(a.log.debug("bounds",A),x&&y.append("text").text(x).attr("x","neo"===c?2*A.x+f:A.width/2-f).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),w=I?k+v+150:v+100,y.append("g").attr("class","lineWrapper").append("line").attr("x1",f).attr("y1",w).attr("x2",A.width+3*f).attr("y2",w).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),"neo"===c&&u&&"neutral"!==h){let t=y.select("defs"),e=(t.empty()?y.append("defs"):t).append("linearGradient").attr("id",y.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("stop").attr("offset","0%").attr("stop-color",p).attr("stop-opacity",1),e.append("stop").attr("offset","100%").attr("stop-color",g).attr("stop-opacity",1)}(0,i.setupGraphViewbox)(void 0,y,l.timeline?.padding??50,l.timeline?.useMaxWidth??!1)},"draw"),j=(0,a.__name)(function(t,e,n,i,r,s,o,l,c,h,d,u){for(let l of e){let e={descr:l.task,section:n,number:n,width:150,padding:20,maxHeight:s};a.log.debug("taskNode",e);let h=t.append("g").attr("class","taskWrapper"),p=N(h,e,n,o,u).height;if(a.log.debug("taskHeight after draw",p),h.attr("transform",`translate(${i}, ${r})`),s=Math.max(s,p),l.events){let e=t.append("g").attr("class","lineWrapper");r+=100,q(t,l.events,n,i,r,o,u),r-=100,e.append("line").attr("x1",i+95).attr("y1",r+s).attr("x2",i+95).attr("y2",r+s+100+c+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${u}-arrowhead)`).attr("stroke-dasharray","5,5")}i+=200,d&&!o.timeline?.disableMulticolor&&n++}},"drawTasks"),q=(0,a.__name)(function(t,e,n,i,r,s,o){let l=0,c=r;for(let c of(r+=100,e)){let e={descr:c,section:n,number:n,width:150,padding:20,maxHeight:50};a.log.debug("eventNode",e);let h=t.append("g").attr("class","eventWrapper"),d=N(h,e,n,s,o,!0).height;l+=d,h.attr("transform",`translate(${i}, ${r})`),r=r+10+d}return r=c,l},"drawEvents"),V={setConf:(0,a.__name)(()=>{},"setConf"),draw:F},G=(0,a.__name)(function(t,r,s,o){let l=(0,i.getConfig2)(),c=l.timeline?.leftMargin??50;a.log.debug("timeline",o.db);let h=(0,e.selectSvgElement)(r);h.append("g");let d=o.db.getTasks(),u=o.db.getCommonDb().getDiagramTitle();a.log.debug("task",d),P(h);let p=o.db.getSections();a.log.debug("sections",p);let g=0,f=0,m=50,y=230,_=0,x=p&&p.length>0,b=50+c+y,k=Math.max(50,y+360-10);p.forEach(function(t){let e=W(h,{number:_,descr:t,section:_,width:k,padding:5,maxHeight:g},l);a.log.debug("sectionHeight before draw",e),g=Math.max(g,e)});let v=0;for(let[t,e]of(a.log.debug("tasks.length",d.length),d.entries())){let n=W(h,{number:t,descr:e,section:e.section,width:200,padding:5,maxHeight:f},l);a.log.debug("taskHeight before draw",n),f=Math.max(f,n);let i=0;for(let t of e.events)i+=W(h,{descr:t,section:e.section,number:e.section,width:300,padding:5,maxHeight:50},l);e.events.length>0&&(i+=(e.events.length-1)*10),v=Math.max(v,i)+0}a.log.debug("maxSectionHeight before draw",g),a.log.debug("maxTaskHeight before draw",f);let w=Math.max(f,v)+30;x?p.forEach(t=>{let e=d.filter(e=>e.section===t),n={number:_,descr:t,section:_,width:k,padding:5,maxHeight:g};a.log.debug("sectionNode",n);let i=h.append("g"),r=N(i,n,_,l);a.log.debug("sectionNode output",r);let s=b-y;i.attr("transform",`translate(${s}, ${m})`);let o=m+r.height+20;e.length>0&&U(h,e,_,b,o,f,l,w,!1);let c=e.length,u=r.height+20+w*Math.max(c,1)-60*(c>0);m+=u,_++}):U(h,d,_,b,m,f,l,w,!0);let $=h.node()?.getBBox();if(!$)throw Error("bbox not found");if(a.log.debug("bounds",$),u){if(h.append("text").text(u).attr("x",$.width/2-c).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),!($=h.node()?.getBBox()))throw Error("bbox not found");a.log.debug("bounds after title",$)}let[S]=(0,n.parseFontSize)(l.fontSize),T=h.append("g").attr("class","lineWrapper");T.append("line").attr("x1",b).attr("y1",50-(S??16)*2).attr("x2",b).attr("y2",$.y+$.height+((S??16)*.5+20)).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),T.lower(),(0,i.setupGraphViewbox)(void 0,h,l.timeline?.padding??50,l.timeline?.useMaxWidth??!1)},"draw"),U=(0,a.__name)(function(t,e,n,i,r,s,o,l,c){for(let h of e){let e={descr:h.task,section:n,number:n,width:200,padding:5,maxHeight:s};a.log.debug("taskNode",e);let d=t.append("g").attr("class","taskWrapper"),u=N(d,e,n,o),p=u.height;a.log.debug("taskHeight after draw",p);let g=i-20-u.width;if(d.attr("transform",`translate(${g}, ${r})`),s=Math.max(s,p),h.events&&h.events.length>0){let e=r,a=i+50;Z(t,h.events,n,i,a,e,o)}r+=l,c&&!o.timeline?.disableMulticolor&&n++}},"drawTasks"),Z=(0,a.__name)(function(t,e,n,i,r,s,o){let l=s;for(let s of e){let e={descr:s,section:n,number:n,width:300,padding:5,maxHeight:0};a.log.debug("eventNode",e);let c=t.append("g").attr("class","eventWrapper"),h=N(c,e,n,o).height;c.attr("transform",`translate(${r}, ${l})`);let d=t.append("g").attr("class","lineWrapper"),u=l+h/2;d.append("line").attr("x1",i).attr("y1",u).attr("x2",r).attr("y2",u).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),l=l+h+10}return l-s},"drawEvents"),K={setConf:(0,a.__name)(()=>{},"setConf"),draw:G},Y=(0,a.__name)(t=>{let{theme:e}=(0,i.getConfig)(),n=e?.includes("dark"),a=e?.includes("color"),r=t.svgId?.replace(/^#/,"")??"",s=r?`url(#${r}-drop-shadow)`:t.dropShadow??"none",o="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++){let i=`${17-3*e}`,r=a?t.borderColorArray[e]:t.mainBkg,l=a?t.borderColorArray[e]:t.nodeBorder;o+=`
2
+ .section-${e-1} rect,
3
+ .section-${e-1} path,
4
+ .section-${e-1} circle {
5
+ fill: ${n&&a?t.mainBkg:r};
6
+ stroke: ${l};
7
+ stroke-width: ${t.strokeWidth};
8
+ filter: ${s};
9
+ }
10
+
11
+ .section-${e-1} text {
12
+ fill: ${t.nodeBorder};
13
+ font-weight: ${t.fontWeight}
14
+ }
15
+
16
+ .node-icon-${e-1} {
17
+ font-size: 40px;
18
+ color: ${t["cScaleLabel"+e]};
19
+ }
20
+
21
+ .section-edge-${e-1} {
22
+ stroke: ${t["cScale"+e]};
23
+ }
24
+
25
+ .edge-depth-${e-1} {
26
+ stroke-width: ${i};
27
+ }
28
+
29
+ .section-${e-1} line {
30
+ stroke: ${t["cScaleInv"+e]};
31
+ stroke-width: 3;
32
+ }
33
+
34
+ .lineWrapper line {
35
+ stroke: ${t.nodeBorder};
36
+ stroke-width:${t.strokeWidth}
37
+ }
38
+
39
+ .disabled,
40
+ .disabled circle,
41
+ .disabled text {
42
+ fill: ${t.tertiaryColor??"lightgray"};
43
+ }
44
+
45
+ .disabled text {
46
+ fill: ${t.clusterBorder??"#efefef"};
47
+ }
48
+ `}return o},"genReduxSections"),X=(0,a.__name)(t=>{let e="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)t["lineColor"+e]=t["lineColor"+e]||t["cScaleInv"+e],(0,c.isDark)(t["lineColor"+e])?t["lineColor"+e]=(0,l.lighten)(t["lineColor"+e],20):t["lineColor"+e]=(0,o.darken)(t["lineColor"+e],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){let i=""+(17-3*n);e+=`
49
+ .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {
50
+ fill: ${t["cScale"+n]};
51
+ }
52
+ .section-${n-1} text {
53
+ fill: ${t["cScaleLabel"+n]};
54
+ }
55
+ .node-icon-${n-1} {
56
+ font-size: 40px;
57
+ color: ${t["cScaleLabel"+n]};
58
+ }
59
+ .section-edge-${n-1}{
60
+ stroke: ${t["cScale"+n]};
61
+ }
62
+ .edge-depth-${n-1}{
63
+ stroke-width: ${i};
64
+ }
65
+ .section-${n-1} line {
66
+ stroke: ${t["cScaleInv"+n]} ;
67
+ stroke-width: 3;
68
+ }
69
+
70
+ .lineWrapper line{
71
+ stroke: ${t["cScaleLabel"+n]} ;
72
+ }
73
+
74
+ .disabled, .disabled circle, .disabled text {
75
+ fill: ${t.tertiaryColor??"lightgray"};
76
+ }
77
+ .disabled text {
78
+ fill: ${t.clusterBorder??"#efefef"};
79
+ }
80
+ `}return e},"genSections"),J=(0,a.__name)(t=>{let{theme:e}=(0,i.getConfig)(),n=e?.includes("redux"),a="neutral"===e,r=t.svgId?.replace(/^#/,"")??"",s="";if(t.useGradient&&r&&t.THEME_COLOR_LIMIT&&!a)for(let e=0;e<t.THEME_COLOR_LIMIT;e++)s+=`
81
+ .section-${e-1}[data-look="neo"] rect,
82
+ .section-${e-1}[data-look="neo"] path,
83
+ .section-${e-1}[data-look="neo"] circle {
84
+ fill: ${t.mainBkg};
85
+ stroke: url(#${r}-gradient);
86
+ stroke-width: 2;
87
+ }
88
+ .section-${e-1}[data-look="neo"] line {
89
+ stroke: url(#${r}-gradient);
90
+ stroke-width: 2;
91
+ }`;return`
92
+ .edge {
93
+ stroke-width: 3;
94
+ }
95
+ ${n?Y(t):X(t)}
96
+ ${s}
97
+ .section-root rect, .section-root path, .section-root circle {
98
+ fill: ${t.git0};
99
+ }
100
+ .section-root text {
101
+ fill: ${t.gitBranchLabel0};
102
+ }
103
+ .icon-container {
104
+ height:100%;
105
+ display: flex;
106
+ justify-content: center;
107
+ align-items: center;
108
+ }
109
+ .edge {
110
+ fill: none;
111
+ }
112
+ .eventWrapper {
113
+ filter: brightness(120%);
114
+ }
115
+ `},"getStyles"),Q={setConf:(0,a.__name)(()=>{},"setConf"),draw:(0,a.__name)((t,e,n,i)=>"TD"===(i?.db?.getDirection?.()??"LR")?K.draw(t,e,n,i):V.draw(t,e,n,i),"draw")};t.s(["diagram",0,{db:d,renderer:Q,parser:h,styles:J}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,658653,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),l=e.i(468806),a=e.i(869803),i=e.i(846696),n=e.i(774079),o=e.i(901501),c=e.i(864652),d=e.i(586108),g=e.i(326283);let u=(0,s.lazy)(()=>e.A(573374).then(e=>({default:e.YamlEditor})));function m(){return(0,t.jsx)("div",{className:"stg:flex stg:h-56 stg:items-center stg:justify-center stg:rounded-md stg:border stg:border-border stg:bg-muted stg:text-sm stg:text-muted-foreground",children:"Loading editor…"})}function p({entry:e}){return(0,t.jsxs)("li",{className:"stg:rounded-md stg:border stg:border-border stg:bg-card stg:px-3 stg:py-2",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("span",{className:"stg:inline-flex stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium stg:text-muted-foreground",children:e.document.handler.displayName}),(0,t.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:e.document.name}),(0,t.jsx)(f,{entry:e}),(0,t.jsx)("span",{className:"stg:ml-auto stg:text-xs stg:text-muted-foreground",children:e.document.org})]}),e.document.warning&&(0,t.jsx)("p",{className:"stg:mt-1 stg:text-xs stg:text-muted-foreground",children:e.document.warning}),"failed"===e.status&&e.errorMessage&&(0,t.jsx)("p",{role:"alert",className:"stg:mt-1 stg:text-xs stg:text-destructive",children:e.errorMessage})]})}function f({entry:e}){let s=function(e){switch(e.status){case"applying":return"Applying…";case"applied":return"Applied";case"failed":return"Failed";case"skipped":return"Skipped";case"pending":switch(e.action){case"create":return"Will create";case"update":return"Will update";case"unknown":return"Create or update"}}}(e);return(0,t.jsx)("span",{className:(0,r.cn)("stg:inline-flex stg:rounded stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium","failed"===e.status?"stg:bg-card stg:text-destructive stg:border stg:border-destructive":"stg:bg-muted stg:text-muted-foreground"),children:s})}e.s(["ApplyManifestDialog",0,function({open:e,onOpenChange:f,org:h,onApplied:x}){var b;let y=(0,s.useRef)(null),v=function(e){let t=(0,d.useStigmer)(),[r,l]=(0,s.useState)(""),[a,i]=(0,s.useState)(null),[n,u]=(0,s.useState)(null),[m,p]=(0,s.useState)(!1),[f,h]=(0,s.useState)(!1),x=(0,s.useRef)(e);x.current=e;let b=(0,s.useCallback)(e=>{l(e)},[]),y=(0,s.useCallback)(async e=>{let t;try{t=await e.text()}catch{l(""),i(null),u(`Failed to read ${e.name}.`);return}l(t)},[]),v=(0,s.useCallback)(()=>{l(""),i(null),u(null),p(!1),h(!1)},[]),k=(0,s.useRef)(0);(0,s.useEffect)(()=>{if(f)return;let e=++k.current;if(!r.trim()){i(null),u(null),p(!1);return}p(!0);let s=setTimeout(async()=>{let s;try{s=(0,c.parseManifest)(r,{org:x.current})}catch(t){k.current===e&&(i(null),u((0,g.toError)(t).message),p(!1));return}let l=await Promise.all(s.map(async e=>{let s;try{let r=await t.manifest.getByReference(e.handler.yamlKind,e.org,e.slug);s=null!==r?"update":"create"}catch{s="unknown"}return{document:e,action:s,status:"pending"}}));k.current===e&&(i(l),u(null),p(!1))},500);return()=>clearTimeout(s)},[r,t,f]);let j=(0,s.useCallback)(async()=>{if(!a||0===a.length)return[];k.current++,h(!0);let e=a.map(e=>({...e,status:"pending"})),s=()=>i([...e]),r=!1;for(let l=0;l<e.length;l++){if(r){e[l]={...e[l],status:"skipped"};continue}e[l]={...e[l],status:"applying"},s();try{let s=await t.manifest.apply(e[l].document);e[l]={...e[l],status:"applied",result:s}}catch(t){e[l]={...e[l],status:"failed",errorMessage:(0,g.toError)(t).message},r=!0}s()}return s(),h(!1),e},[a,t]),N=(0,s.useMemo)(()=>(0,o.containsRedactedSecrets)(r),[r]);return(0,s.useMemo)(()=>({content:r,setContent:b,readFile:y,entries:a,validationError:n,isValidating:m,hasRedactedSecrets:N,applyAll:j,isApplying:f,reset:v}),[r,b,y,a,n,m,N,j,f,v])}(h),{reset:k}=v;(0,s.useEffect)(()=>{e&&(k(),y.current&&(y.current.value=""))},[e,k]);let j=(0,s.useCallback)(()=>{f(!1);let e=(v.entries??[]).filter(e=>"applied"===e.status);e.length>0&&x?.(e)},[f,v.entries,x]),N=(0,s.useCallback)(e=>{e||j()},[j]),w=(0,s.useCallback)(e=>{let t=e.target.files?.[0];t&&v.readFile(t)},[v]),S=(0,s.useCallback)(async()=>{let e=await v.applyAll(),t=e.filter(e=>"applied"===e.status);e.length>0&&t.length===e.length&&(i.toast.success(1===t.length?"Resource applied":`${t.length} resources applied`),f(!1),x?.(t))},[v,f,x]),C=null!==v.entries&&v.entries.length>0&&!v.isValidating&&!v.isApplying;return(0,t.jsx)(l.DialogShell,{open:e,onOpenChange:N,width:"3xl","aria-label":"Apply YAML",children:(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-4 stg:p-6",children:[(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1",children:[(0,t.jsx)("h3",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:"Apply YAML"}),(0,t.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground",children:"Paste a resource manifest or upload a file. Resources are created when new and updated when they already exist."})]}),(0,t.jsx)("input",{ref:y,type:"file",accept:".yaml,.yml,.json",onChange:w,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-3 stg:py-2 stg:text-sm stg:text-foreground","stg:file:mr-3 stg:file:rounded-md stg:file:border-0 stg:file:bg-primary stg:file:px-2.5 stg:file:py-1 stg:file:text-xs stg:file:font-medium stg:file:text-primary-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),"aria-label":"Select manifest file"}),(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(m,{}),children:(0,t.jsx)(u,{value:v.content,onChange:v.setContent,className:"stg:h-56"})}),v.hasRedactedSecrets&&(0,t.jsx)(n.RedactedSecretsNotice,{}),v.validationError&&(0,t.jsx)("div",{role:"alert",className:"stg:rounded-md stg:border stg:border-destructive stg:bg-card stg:px-3 stg:py-2.5 stg:text-sm stg:text-destructive",children:v.validationError}),v.entries&&v.entries.length>0&&(0,t.jsx)("ul",{className:(0,r.cn)(a.UNSTYLED_LIST,"stg:flex stg:max-h-48 stg:flex-col stg:gap-2 stg:overflow-y-auto"),"aria-label":"Resources to apply",children:v.entries.map((e,s)=>(0,t.jsx)(p,{entry:e},`${e.document.handler.yamlKind}/${e.document.org}/${e.document.slug}/${s}`))}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between stg:gap-3",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground","aria-live":"polite",children:v.isValidating?"Validating…":""}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:j,disabled:v.isApplying,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:border stg:border-input stg:bg-background stg:text-foreground","stg:hover:bg-accent stg:hover:text-accent-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"}),(0,t.jsx)("button",{type:"button",onClick:S,disabled:!C,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:v.isApplying?"Applying…":(b=v.entries?.length??0)<=1?"Apply":`Apply ${b} resources`})]})]})]})})}],658653)},531245,e=>{"use strict";let t=(0,e.i(475254).default)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);e.s(["Bot",0,t],531245)},618393,e=>{"use strict";let t=(0,e.i(475254).default)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);e.s(["Server",0,t],618393)},283086,e=>{"use strict";let t=(0,e.i(475254).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",0,t],283086)},959208,437632,e=>{"use strict";let t=(0,e.i(475254).default)("calendar-clock",[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);e.s(["CalendarClock",0,t],959208);var s=e.i(891287),r=e.i(695682);async function l(e,t,a={}){let i=a.size&&a.size>0?a.size:20,n=a.num&&a.num>0?a.num:1,o=await e.schedule.list((0,s.create)(r.ListSchedulesRequestSchema,{org:t,pageInfo:{num:n,size:i}}));return{items:o.items.length>i?o.items.slice((n-1)*i,n*i):o.items,totalCount:o.totalCount,totalPages:Math.ceil(o.totalCount/i)}}e.s(["createScheduleListFn",0,function(e){return async t=>{let{items:s,totalCount:r,totalPages:a}=await l(e,t.org,t.page??{});return{entries:s,totalCount:r,totalPages:a}}}],437632)},774764,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(522016),l=e.i(618566),a=e.i(531245),i=e.i(959208),n=e.i(862749),o=e.i(107233),c=e.i(283086),d=e.i(618393),g=e.i(640524),u=e.i(506213),m=e.i(893976),p=e.i(901352),f=e.i(658653),h=e.i(586108),x=e.i(583093);function b(e,t,s){let r=s?.query,l=s?.scope??"org",a=s?.refetchToken,{data:i,isLoading:n,isRefetching:o,error:c,refetch:d}=(0,x.useFetch)(t?async()=>(await e({org:t,query:r||void 0,excludePublic:!1,crossOrgPublic:"all"===l,page:{num:1,size:1}})).totalCount:null,[e,t,r,l,a],void 0);return{count:i,isLoading:n,isRefetching:o,error:c,refetch:d}}var y=e.i(437632);function v({icon:e,label:s,count:r,isLoading:l=!1,href:a,onClick:i,className:n}){let o=l&&void 0===r,c=(0,m.cn)("stg:flex stg:flex-col stg:rounded-lg stg:border stg:border-border stg:bg-card stg:p-4 stg:text-left stg:no-underline",(!!a||!!i)&&["stg:cursor-pointer stg:transition-colors stg:hover:bg-accent-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"],n),d=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"stg:text-muted-foreground",children:e}),o?(0,t.jsx)("div",{className:"stg:mt-3 stg:h-7 stg:w-12 stg:animate-pulse stg:rounded stg:bg-muted","aria-hidden":"true"}):(0,t.jsx)("div",{className:"stg:mt-3 stg:text-2xl stg:font-semibold stg:tabular-nums stg:text-foreground",children:void 0!==r?r.toLocaleString():"—"}),(0,t.jsx)("div",{className:"stg:mt-1 stg:text-sm stg:text-muted-foreground",children:s})]});return a?(0,t.jsx)("a",{href:a,onClick:i,"aria-label":k(s,r,l),className:c,children:d}):i?(0,t.jsx)("button",{type:"button",onClick:i,"aria-label":k(s,r,l),className:c,children:d}):(0,t.jsx)("div",{className:c,children:d})}function k(e,t,s){return void 0!==t?`${e}: ${t.toLocaleString()}`:s?`${e}: loading`:e}var j=e.i(297629);let N=[{key:"agents",label:"Agents",href:"/library/agents",icon:(0,t.jsx)(a.Bot,{className:"size-5","aria-hidden":"true"})},{key:"workflows",label:"Workflows",href:"/library/workflows",icon:(0,t.jsx)(g.Workflow,{className:"size-5","aria-hidden":"true"})},{key:"skills",label:"Skills",href:"/library/skills",icon:(0,t.jsx)(c.Sparkles,{className:"size-5","aria-hidden":"true"})},{key:"mcp-servers",label:"MCP Servers",href:"/library/mcp-servers",icon:(0,t.jsx)(d.Server,{className:"size-5","aria-hidden":"true"})},{key:"schedules",label:"Schedules",href:"/library/schedules",icon:(0,t.jsx)(i.CalendarClock,{className:"size-5","aria-hidden":"true"})}],w=[{label:"Agent",icon:(0,t.jsx)(a.Bot,{className:"size-4","aria-hidden":"true"}),href:(0,p.getDraftSessionUrl)("agent")},{label:"Workflow",icon:(0,t.jsx)(g.Workflow,{className:"size-4","aria-hidden":"true"}),href:"/library/workflows/new"},{label:"Skill",icon:(0,t.jsx)(c.Sparkles,{className:"size-4","aria-hidden":"true"}),href:(0,p.getDraftSessionUrl)("skill")},{label:"MCP Server",icon:(0,t.jsx)(d.Server,{className:"size-4","aria-hidden":"true"}),href:(0,p.getDraftSessionUrl)("mcp-server")},{label:"Schedule",icon:(0,t.jsx)(i.CalendarClock,{className:"size-4","aria-hidden":"true"}),href:"/library/schedules/new"}];function S(){let[e,l]=(0,s.useState)(!1);return(0,t.jsxs)(u.Popover.Root,{open:e,onOpenChange:l,children:[(0,t.jsxs)(u.Popover.Trigger,{className:(0,m.cn)("inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-sm","text-muted-foreground transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),"aria-label":"Add a new resource",children:[(0,t.jsx)(o.Plus,{className:"size-3.5","aria-hidden":"true"}),"Add"]}),(0,t.jsx)(u.Popover.Portal,{children:(0,t.jsx)(u.Popover.Positioner,{sideOffset:4,align:"start",children:(0,t.jsx)(u.Popover.Popup,{className:(0,m.cn)("z-popover min-w-[10rem] overflow-hidden rounded-lg","border border-border bg-popover shadow-md text-popover-foreground"),children:(0,t.jsx)("div",{className:"py-1",role:"menu",children:w.map(e=>(0,t.jsxs)(r.default,{href:e.href,role:"menuitem",onClick:()=>l(!1),className:(0,m.cn)("flex w-full items-center gap-2.5 px-3 py-2 text-sm","text-foreground transition-colors hover:bg-accent"),children:[(0,t.jsx)("span",{className:"shrink-0 text-muted-foreground",children:e.icon}),(0,t.jsx)("span",{children:e.label})]},e.label))})})})})]})}e.s(["LibraryLanding",0,function(){var e,r,a,i,o,c;let d,g,u,p,x,k,w,C,M=(0,j.useActiveOrgSlug)(),A=(0,l.useRouter)(),[z,P]=(0,s.useReducer)(e=>e+1,0),T=(e=M||null,r={refetchToken:z},d=(0,h.useStigmer)(),g=b((0,s.useCallback)(e=>d.agent.list(e),[d]),e,r),a={refetchToken:z},u=(0,h.useStigmer)(),p=b((0,s.useCallback)(e=>u.workflow.list(e),[u]),e,a),i={refetchToken:z},x=(0,h.useStigmer)(),k=b((0,s.useCallback)(e=>x.skill.list(e),[x]),e,i),o={refetchToken:z},w=(0,h.useStigmer)(),{agents:g,workflows:p,skills:k,"mcp-servers":b((0,s.useCallback)(e=>w.mcpServer.list(e),[w]),e,o),schedules:(c={refetchToken:z},C=(0,h.useStigmer)(),b((0,s.useMemo)(()=>(0,y.createScheduleListFn)(C),[C]),e,{refetchToken:c?.refetchToken}))}),[R,L]=(0,s.useState)(!1),$=(0,s.useCallback)(e=>t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||0!==t.button||(t.preventDefault(),A.push(e))},[A]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h1",{className:"text-foreground mb-1 text-xl font-semibold",children:"Library"}),(0,t.jsx)("p",{className:"text-muted-foreground mb-8 text-sm",children:"Browse and manage your agents, workflows, skills, and MCP servers."}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:N.map(e=>{let{count:s,isLoading:r}=T[e.key];return(0,t.jsx)(v,{icon:e.icon,label:e.label,count:s,isLoading:r,href:e.href,onClick:$(e.href)},e.key)})}),(0,t.jsxs)("div",{className:"mt-6 flex items-center gap-2",children:[(0,t.jsx)(S,{}),(0,t.jsxs)("button",{type:"button",onClick:()=>L(!0),className:(0,m.cn)("inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-sm","text-muted-foreground transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),children:[(0,t.jsx)(n.FileCode2,{className:"size-3.5","aria-hidden":"true"}),"Apply YAML"]})]}),(0,t.jsx)(f.ApplyManifestDialog,{open:R,onOpenChange:L,org:M??"",onApplied:P})]})}],774764)}]);